Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop
This commit is contained in:
commit
3442442c3d
@ -2029,7 +2029,14 @@ class Sale {
|
|||||||
$current_sale = $sale;
|
$current_sale = $sale;
|
||||||
$adding_sale = $added_sale;
|
$adding_sale = $added_sale;
|
||||||
} else {
|
} else {
|
||||||
// We can test with the attribute
|
// Compatibility with object - We can test with the attribute
|
||||||
|
|
||||||
|
// Same sale
|
||||||
|
if((int)$sale->id == (int)$added_sale->id){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uncombinable
|
||||||
if((int)$sale->uncombinable == 1 || (int)$added_sale->uncombinable == 1) {
|
if((int)$sale->uncombinable == 1 || (int)$added_sale->uncombinable == 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user