Details
-
Type: Story
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: None
-
Labels:None
Description
We currently have a service, service data, and service change presenter. under /Blesta\Core\Pricing\Presenter* as created in CORE-1763 & CORE-2209.
We should add an invoice presenter (and maybe an invoice data presenter, although that may be redundant) to build invoice line items from a set of invoice data, client information, and tax rules. All of the locations that currently build an invoice from invoice data (like manual invoice creation, recurring invoice creation, etc.) can be updated to call this new invoice presenter instead. This can also be used to generate totals in the total sections of many locations. This will give us more consistent use of invoice info and totals, and may even be usable by the Orders plugin.