Support updates to payments

This commit is contained in:
Steve Ireland
2019-04-26 22:04:55 -04:00
parent 3b49f7829e
commit a89674ccfe
7 changed files with 149 additions and 40 deletions

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)
{