Merge branch 'fix-uncombinable' into develop

This commit is contained in:
Marion Muszynski 2017-10-02 12:41:38 +02:00
commit 20b2adc944

View File

@ -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){