// Small fix
This commit is contained in:
1 parent
4d289e4290
commit
8fa066859a
1 file changed
+6
-6
@@ -170,15 +170,15 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
|||||||
$tax = new Tax((int)$tax_id);
|
$tax = new Tax((int)$tax_id);
|
||||||
if (!isset($total_tax_amount[$tax->rate]))
|
if (!isset($total_tax_amount[$tax->rate]))
|
||||||
{
|
{
|
||||||
$tmp_tax_infos[(string)$tax->rate]['name'] = $tax->name;
|
$tmp_tax_infos[$tax->rate]['name'] = $tax->name;
|
||||||
$tmp_tax_infos[(string)$tax->rate]['total_price_tax_excl'] = $order_slip_details['amount_tax_excl'];
|
$tmp_tax_infos[$tax->rate]['total_price_tax_excl'] = $order_slip_details['amount_tax_excl'];
|
||||||
$tmp_tax_infos[(string)$tax->rate]['total_amount'] = $amount;
|
$tmp_tax_infos[$tax->rate]['total_amount'] = $amount;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
$tmp_tax_infos[(string)$tax->rate]['total_price_tax_excl'] += $order_slip_details['amount_tax_excl'];
|
$tmp_tax_infos[$tax->rate]['total_price_tax_excl'] += $order_slip_details['amount_tax_excl'];
|
||||||
$tmp_tax_infos[(string)$tax->rate]['total_amount'] += $amount;
|
$tmp_tax_infos[$tax->rate]['total_amount'] += $amount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -198,7 +198,7 @@ class HTMLTemplateOrderSlipCore extends HTMLTemplateInvoice
|
|||||||
$infos['total_amount'] += $amount;
|
$infos['total_amount'] += $amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
$tmp_tax_infos[(string)$tax_rate] = $infos;
|
$tmp_tax_infos[(string)number_format($tax_rate, 3)] = $infos;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user