Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.2.0
-
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.
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.