mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-01-23 08:48:08 -05:00
Fix register regression (#1647)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user