Details
-
Type: Sub-task
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: None
-
Labels:None
Description
The ImportManager migrators call Invoices::getTotal and Invoices::getSubtotal, however, as of CORE-2529, those methods are deprecated. We should update all calls to those methods to use an alternative:
$presenter = $this->Invoices->getPresenter($invoice_id);
$totals = $presenter->totals();
$totals->subtotal;
$totals->total;
Issue Links
- is blocked by
-
CORE-2545 Update invoice creation to use Invoice presenter
- Closed