Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.4.0
-
Fix Version/s: 4.0.0-b2
-
Component/s: None
-
Labels:None
Description
Void unpaid invoices when cancelling a service.
If there are any discount line items on the invoice (e.g. coupons), then the TOTAL of the invoice after the service item(s) are removed MAY not match the EXPECTED TOTAL, as those line items MAY not be removed.
For each non-closed, non-pastdue invoice that the service being cancelled appears on
- If the invoice has no other line items (besides those matching the service ID):
- Void the invoice
- Else:
- Unapply payments on the invoice
- Remove the line items matching the service ID from the invoice
- Reapply payments to the invoice
This requires a company/client group setting, enabled by default called Update Open Invoices on Service Cancellation.
We need to run this by pro forma users. They may instead expect this invoice to be voided, and a separate invoice created for other items on the invoice.
Also, I think this is blocked by
CORE-1479.