Support updates to payments

This commit is contained in:
Steve Ireland committed 2019-05-01 21:17:22 -04:00
1 parent 3b49f7829e
commit a89674ccfe
7 files changed
+149 -40

No files matched your search

+3
View File
@@ -485,15 +485,18 @@ class Sale_lib
$totals['prediscount_subtotal'] = $prediscount_subtotal;
$totals['total_discount'] = $total_discount;
$totals['subtotal'] = $subtotal;
$sales_tax = 0;
foreach($taxes as $tax_excluded)
{
if($tax_excluded['tax_type'] == Tax_lib::TAX_TYPE_EXCLUDED)
{
$total = bcadd($total, $tax_excluded['sale_tax_amount']);
$sales_tax = bcadd($sales_tax, $tax_excluded['sale_tax_amount']);
}
}
$totals['total'] = $total;
$totals['tax_total'] = $sales_tax;
if($cash_rounding)
{