diff --git a/application/views/sales/register.php b/application/views/sales/register.php
index 255e97a54..6be9d9552 100644
--- a/application/views/sales/register.php
+++ b/application/views/sales/register.php
@@ -177,10 +177,13 @@ if(isset($success))
'discount', 'class'=>'form-control input-sm', 'value'=>to_decimals($item['discount'], 0), 'tabindex'=>++$tabindex));?> |
'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);
}
?>
|