Avoid (DEPOSIT) (1) & (2) descriptions

When splitting a rebate into two parts, the word "DEPOSIT" is no longer translated on the invoices.
This commit is contained in:
Widee 2017-04-04 12:22:51 +02:00 committed by GitHub
parent e8767122b0
commit 89716a86a5

View File

@ -92,7 +92,7 @@ if ($action == 'confirm_split' && GETPOST("confirm") == 'yes')
$newdiscount2->fk_facture=$discount->fk_facture;
$newdiscount1->fk_facture_line=$discount->fk_facture_line;
$newdiscount2->fk_facture_line=$discount->fk_facture_line;
if ($discount->description == '(CREDIT_NOTE)')
if ($discount->description == '(CREDIT_NOTE)' || $discount->description == '(DEPOSIT)')
{
$newdiscount1->description=$discount->description;
$newdiscount2->description=$discount->description;