Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1322

Invoice draft auto-save fails when empty line items are present

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.2.2, 3.3.0-b1
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      When creating an invoice manually, auto-save as draft will fail if there are any incomplete/empty line items.

      Discussing with Cody, empty line items should only be a problem if there is a description and no price, but completely empty line items should not prevent the line item from being saved.

      In my tests, 1 or more line items that do not contain any details will prevent auto-save as draft from occurring.

      Ideally, it would be good if line items that have been partially completed and had no price would allow the invoice to be auto-saved as draft, ignoring the line item that is incomplete.

        Activity

        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        Quantity and price are not required. Not entering them result in 1, 0.00, respectively. So the description is the cause of draft failures.

        Since a line item is required on an invoice, the draft will still fail if no line items are entered. Otherwise, so long as there is 1 line item with a description, the draft should save successfully both on add and edit.

        Show
        tyson Tyson Phillips (Inactive) added a comment - Quantity and price are not required. Not entering them result in 1, 0.00, respectively. So the description is the cause of draft failures. Since a line item is required on an invoice, the draft will still fail if no line items are entered. Otherwise, so long as there is 1 line item with a description, the draft should save successfully both on add and edit.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Jul/14