File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/code/Magento/Quote/Model/Quote Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1228,9 +1228,10 @@ public function validateMinimumAmount()
1228
1228
? $ this ->getBaseTaxAmount () + $ this ->getBaseDiscountTaxCompensationAmount ()
1229
1229
: 0 ;
1230
1230
1231
+ // Note: ($x > $y - 0.0001) means ($x >= $y) for floats
1231
1232
return $ includeDiscount ?
1232
- ($ this ->getBaseSubtotalWithDiscount () + $ taxes >= $ amount ) :
1233
- ($ this ->getBaseSubtotal () + $ taxes >= $ amount );
1233
+ ($ this ->getBaseSubtotalWithDiscount () + $ taxes > $ amount - 0.0001 ) :
1234
+ ($ this ->getBaseSubtotal () + $ taxes > $ amount - 0.0001 );
1234
1235
}
1235
1236
1236
1237
/**
@@ -1386,7 +1387,7 @@ public function getBaseTotalAmount($code)
1386
1387
*/
1387
1388
public function getBaseSubtotalWithDiscount ()
1388
1389
{
1389
- return $ this ->getBaseSubtotal () + $ this ->getBaseDiscountAmount ();
1390
+ return $ this ->getBaseSubtotal () + $ this ->getBaseDiscountAmount () + $ this -> getBaseShippingDiscountAmount () ;
1390
1391
}
1391
1392
1392
1393
/**
You can’t perform that action at this time.
0 commit comments