quantity issue in discount
This commit is contained in:
parent
048585853d
commit
12846df91c
|
|
@ -23,6 +23,8 @@ class BuyAGetB extends Action
|
|||
|
||||
if ($realQty > $disc_quantity) {
|
||||
$amountDiscounted = $amountDiscounted * $disc_quantity;
|
||||
} else {
|
||||
$amountDiscounted = $amountDiscounted * $realQty;
|
||||
}
|
||||
|
||||
if ($amountDiscounted > $item['base_price']) {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ class FixedAmount extends Action
|
|||
|
||||
if ($realQty > $disc_quantity) {
|
||||
$amountDiscounted = $amountDiscounted * $disc_quantity;
|
||||
} else {
|
||||
$amountDiscounted = $amountDiscounted * $realQty;
|
||||
}
|
||||
|
||||
if ($amountDiscounted > $item['base_price']) {
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ class PercentOfProduct extends Action
|
|||
|
||||
if ($realQty > $disc_quantity) {
|
||||
$amountDiscounted = $amountDiscounted * $disc_quantity;
|
||||
} else {
|
||||
$amountDiscounted = $amountDiscounted * $realQty;
|
||||
}
|
||||
|
||||
if ($amountDiscounted > $item['base_price']) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue