From b3835ec6a3aadad7ddaf1bc219f6b400a95fc94e Mon Sep 17 00:00:00 2001 From: FrancescoUK Date: Mon, 1 Jan 2018 14:03:39 +0000 Subject: [PATCH] Fix register regression (#1647) --- application/views/sales/register.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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); } ?>