From 89716a86a5642d7506177b6cbce6068ac738dea4 Mon Sep 17 00:00:00 2001
From: Widee <WideeFr@users.noreply.github.com>
Date: Tue, 4 Apr 2017 12:22:51 +0200
Subject: [PATCH] Avoid (DEPOSIT) (1) & (2) descriptions

When splitting a rebate into two parts, the word "DEPOSIT" is no longer translated on the invoices.
---
 htdocs/comm/remx.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php
index 8c35c6c9e1f..6481c891d45 100644
--- a/htdocs/comm/remx.php
+++ b/htdocs/comm/remx.php
@@ -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;
-- 
GitLab