Use define instead of hard number (#1647)

This commit is contained in:
FrancescoUK committed 2018-01-02 22:24:56 +00:00
1 parent 447571090f
commit 8b96af3d19
1 file changed
+1 -1
+1 -1
View File
@@ -177,7 +177,7 @@ 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'] == ITEM_AMOUNT_ENTRY)
{
echo form_input(array('name'=>'discounted_total', 'class'=>'form-control input-sm', 'value'=>to_currency_no_money($item['discounted_total']), 'tabindex'=>++$tabindex));
}