Merge pull request #20498 from andreubisquerra/develop

Avoid grouping lines with ordered lines
This commit is contained in:
Laurent Destailleur 2022-04-01 13:18:40 +02:00 committed by GitHub
commit 27a49af4d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -535,7 +535,8 @@ if ($action == "addline") {
}
$idoflineadded = 0;
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT)) {
// Group if enabled. Skip group if line already sent to the printer
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT) && $line->special_code != "4") {
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