Show discounted price instead of discount itself on receipt

This commit is contained in:
jekkos
2016-01-04 17:18:13 +01:00
parent 1601d679fd
commit 9e2d89c528
2 changed files with 1 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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; ?>