mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-21 07:44:37 -04:00
Support updates to payments
This commit is contained in:
1 parent
3b49f7829e
commit
a89674ccfe
7 files changed
+149
-40
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user