From 6ae6664828f40d70ef8d76877237a4167d6d6c01 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 15 Sep 2010 14:28:59 +0000 Subject: [PATCH] Fix: lost discount from deposit --- htdocs/core/tpl/freeproductline_view.tpl.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/core/tpl/freeproductline_view.tpl.php b/htdocs/core/tpl/freeproductline_view.tpl.php index b3964ed1970..3b58689b845 100644 --- a/htdocs/core/tpl/freeproductline_view.tpl.php +++ b/htdocs/core/tpl/freeproductline_view.tpl.php @@ -32,6 +32,10 @@ $discount=new DiscountAbsolute($this->db); $discount->fetch($line->fk_remise_except); echo ' - '.$langs->transnoentities("DiscountFromCreditNote",$discount->getNomUrl(0)); + } elseif ($line->description == '(DEPOSIT)') { + $discount=new DiscountAbsolute($this->db); + $discount->fetch($line->fk_remise_except); + echo ' - '.$langs->transnoentities("DiscountFromDeposit",$discount->getNomUrl(0)); } else { echo ' - '.nl2br($line->description); }