From 43bfe22addb8784928adbcd9f5ed3fe691c29855 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 30 May 2013 23:34:10 +1000 Subject: [PATCH] Fixed issue with discounts on line item table --- app/views/documents/view.ctp | 7 ------- app/views/elements/line_items_table.ctp | 2 +- app/views/line_items/get_table.ctp | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/app/views/documents/view.ctp b/app/views/documents/view.ctp index 0c846bf4..b56ed350 100755 --- a/app/views/documents/view.ctp +++ b/app/views/documents/view.ctp @@ -85,10 +85,3 @@ foreach($attachments as $index => $attachment) { - - - - - - - diff --git a/app/views/elements/line_items_table.ctp b/app/views/elements/line_items_table.ctp index 48c93ac3..54736636 100755 --- a/app/views/elements/line_items_table.ctp +++ b/app/views/elements/line_items_table.ctp @@ -62,7 +62,7 @@
less
%
discount*
- (currency($li['discount_amount_total'], $currencyCode);?>)
+ (-currency($li['discount_amount_total'], $currencyCode);?>)
=
currency($li['net_price'], $currencyCode);?> diff --git a/app/views/line_items/get_table.ctp b/app/views/line_items/get_table.ctp index e7411cdb..3aa31d69 100755 --- a/app/views/line_items/get_table.ctp +++ b/app/views/line_items/get_table.ctp @@ -84,7 +84,7 @@ else:
less
%
discount
- currency($li['discount_amount_total'], $currencyCode);?>)
+ (-currency($li['discount_amount_total'], $currencyCode);?>)
=
currency($li['net_price'], $currencyCode);?>