FIX options should not exists on invoices

This commit is contained in:
Regis Houssin 2022-02-28 18:13:29 +01:00
parent b989c257ad
commit 9cf5bccf43
2 changed files with 5 additions and 5 deletions

View File

@ -765,8 +765,8 @@ if (empty($reshook)) {
// Define special_code for special lines // Define special_code for special lines
$special_code = GETPOST('special_code', 'int'); $special_code = GETPOST('special_code', 'int');
if (!GETPOST('qty', 'alpha')) { if ($special_code == 3) {
$special_code = 3; $special_code = 0; // Options should not exists on invoices
} }
/*$line = new FactureLigne($db); /*$line = new FactureLigne($db);

View File

@ -2371,9 +2371,9 @@ if (empty($reshook)) {
} }
// Define special_code for special lines // Define special_code for special lines
$special_code = GETPOST('special_code'); $special_code = GETPOST('special_code', 'int');
if (!GETPOST('qty')) { if ($special_code == 3) {
$special_code = 3; $special_code = 0; // Options should not exists on invoices
} }
$line = new FactureLigne($db); $line = new FactureLigne($db);