show invoice/bill totals sorted
This commit is contained in:
@ -74,7 +74,7 @@ class Bills extends Controller
|
||||
$date_format = $this->getCompanyDateFormat();
|
||||
|
||||
// Get Bill Totals
|
||||
foreach ($bill->totals as $bill_total) {
|
||||
foreach ($bill->totals_sorted as $bill_total) {
|
||||
$bill->{$bill_total->code} = $bill_total->amount;
|
||||
}
|
||||
|
||||
|
@ -77,7 +77,7 @@ class Invoices extends Controller
|
||||
$date_format = $this->getCompanyDateFormat();
|
||||
|
||||
// Get Invoice Totals
|
||||
foreach ($invoice->totals as $invoice_total) {
|
||||
foreach ($invoice->totals_sorted as $invoice_total) {
|
||||
$invoice->{$invoice_total->code} = $invoice_total->amount;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user