Merge pull request #1082 from rahulshukla-webkul/development

quantity issue in discount
This commit is contained in:
Jitendra Singh 2019-06-20 17:58:54 +05:30 committed by GitHub
commit f070f4f6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

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