Merge pull request #1374 from prashant-webkul/development

Development
This commit is contained in:
Jitendra Singh 2019-08-31 18:02:26 +05:30 committed by GitHub
commit 6158e8cd16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class FixedAmount extends Action
}
}
} else {
$discount = round(($itemPrice - $rule->disc_amount), 4);
$discount = $rule->disc_amount;
}
if ($itemProductId == $productID) {
@ -91,7 +91,7 @@ class FixedAmount extends Action
}
}
} else {
$discount = round(($itemPrice - $rule->disc_amount), 4);
$discount = $rule->disc_amount;
}
$totalDiscount = $totalDiscount + $discount;

View File

@ -668,7 +668,7 @@ abstract class Discount
if (! $result) {
$this->clearDiscount();
$alreadyAppliedRule->delete();
$alreadyAppliedRule->first()->delete();
} else {
$this->reassess($alreadyAppliedCartRule);
}