Fix register regression (#1647)

This commit is contained in:
FrancescoUK
2018-01-01 14:03:39 +00:00
parent 080d3c0e3b
commit b3835ec6a3

View File

@@ -177,10 +177,13 @@ if(isset($success))
<td><?php echo form_input(array('name'=>'discount', 'class'=>'form-control input-sm', 'value'=>to_decimals($item['discount'], 0), 'tabindex'=>++$tabindex));?></td>
<td>
<?php
if($item['item_type'] == 2) {
if($item['item_type'] == 2)
{
echo form_input(array('name'=>'total', 'class'=>'form-control input-sm', 'value'=>to_currency_no_money($item['total']), 'tabindex'=>++$tabindex));
} else {
echo to_currency($item['total']);
}
else
{
echo to_currency($item['price']*$item['quantity']-$item['price']*$item['quantity']*$item['discount']/100);
}
?>
</td>