mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-07 15:23:50 -04:00
Show discounted price instead of discount itself on receipt
This commit is contained in:
@@ -317,7 +317,6 @@ class Sale_lib
|
||||
'price'=>$price,
|
||||
'total'=>$total,
|
||||
'discounted_total'=>$discounted_total,
|
||||
'discounted_price'=>$this->get_item_discount($quantity, $price, $discount)
|
||||
)
|
||||
);
|
||||
//add to existing array
|
||||
@@ -400,7 +399,6 @@ class Sale_lib
|
||||
$line['price'] = $price;
|
||||
$line['total'] = $this->get_item_total($quantity, $price, $discount);
|
||||
$line['discounted_total'] = $this->get_item_total($quantity, $price, $discount, TRUE);
|
||||
$line['discounted_price'] = $this->get_item_discount($quantity, $price, $discount);
|
||||
$this->set_cart($items);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ if (isset($error_message))
|
||||
</tr>
|
||||
<?php if ($item['discount'] > 0) : ?>
|
||||
<tr>
|
||||
<td colspan="3" class="discount"> <?php echo number_format($item['discount'], 0) . " " . $this->lang->line("sales_discount_included")?> </td><td class="total-value"><?php echo to_currency($item['discounted_price']*-1) ; ?></td>
|
||||
<td colspan="3" class="discount"> <?php echo number_format($item['discount'], 0) . " " . $this->lang->line("sales_discount_included")?> </td><td class="total-value"><?php echo to_currency($item['discounted_total']) ; ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user