Avoid grouping lines with ordered lines
This commit is contained in:
parent
f7c5154cac
commit
e46541708c
@ -535,7 +535,7 @@ if ($action == "addline") {
|
||||
}
|
||||
|
||||
$idoflineadded = 0;
|
||||
if (!empty($conf->global->TAKEPOS_GROUP_SAME_PRODUCT)) {
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user