Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop
This commit is contained in:
commit
7e089dabe1
@ -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
|
// Same sale
|
||||||
if((int)$adding_sale['id_sale'] == (int)$current_sale['id_sale']){
|
if((int)$adding_sale['id_sale'] == (int)$current_sale['id_sale']){
|
||||||
return true;
|
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
|
// 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){
|
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