Eliminate double checking if it is sent to the kitchen

This commit is contained in:
jove@bisquerra.com 2022-07-11 20:37:42 +02:00
parent 661b863314
commit 46f7c8cad5

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