Merge pull request #21494 from andreubisquerra/master

Eliminate double checking if it is sent to the kitchen
This commit is contained in:
Laurent Destailleur 2022-07-12 18:51:23 +02:00 committed by GitHub
commit d477d90235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,7 +544,7 @@ if (empty($reshook)) {
$idoflineadded = 0;
// Group if enabled. Skip group if line already sent to the printer
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT) && $line->special_code != "4") {
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT)) {
foreach ($invoice->lines as $line) {
if ($line->product_ref == $prod->ref) {
if ($line->special_code==4) continue; // If this line is sended to printer create new line