Merge branch 'fix-uncombinable' into develop
This commit is contained in:
commit
20b2adc944
@ -2047,16 +2047,17 @@ class Sale {
|
||||
);
|
||||
}
|
||||
|
||||
// Sale is uncombinable
|
||||
if(self::isUncombinable((int)$current_sale['id_sale']) || self::isUncombinable((int)$adding_sale['id_sale'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Same sale
|
||||
if((int)$adding_sale['id_sale'] == (int)$current_sale['id_sale']){
|
||||
return true;
|
||||
}
|
||||
|
||||
// Sale is uncombinable
|
||||
if(self::isUncombinable((int)$current_sale['id_sale']) || self::isUncombinable((int)$adding_sale['id_sale'])) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Current sale is not Noel, not classic, not particular
|
||||
if((int)$current_sale['delivery_delay'] != 1 && (int)$current_sale['delivery_delay'] != 5 && (int)$current_sale['delivery_delay'] != 9){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user