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
Activity
Tyson Phillips (Inactive)
created issue -
Tyson Phillips (Inactive)
made changes -
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 4.6.0-b1 [ 11117 ] |
Tyson Phillips (Inactive)
made changes -
Tyson Phillips (Inactive)
made changes -
Description |
The ImportManager migrators call _Invoices::getTotal_, however, as of {code} $presenter = $this->Invoices->getPresenter($invoice_id); $presenter->totals()->total; {code} |
The ImportManager migrators call _Invoices::getTotal_ and _Invoices::getSubtotal_, however, as of {code} $presenter = $this->Invoices->getPresenter($invoice_id); $totals = $presenter->totals(); $totals->subtotal; $totals->total; {code} |
Tyson Phillips (Inactive)
made changes -
Assignee | Tyson Phillips [ tyson ] |
Automated transition triggered when Tyson Phillips (Inactive) created a branch in Stash -
Status | Open [ 1 ] | In Progress [ 3 ] |
Tyson Phillips (Inactive)
made changes -
Tyson Phillips (Inactive)
made changes -
Automated transition triggered when Tyson Phillips (Inactive) created pull request #11 in Stash -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Automated transition triggered when Tyson Phillips (Inactive) merged pull request #11 in Stash -
Status | In Review [ 5 ] | Closed [ 6 ] |