Merge branch 'bugs_patch_1' of https://github.com/prashant-webkul/bagisto into bugs_patch_1

This commit is contained in:
Prashant Singh 2019-11-02 01:25:13 +05:30
commit b57898f9bb
4 changed files with 6 additions and 2 deletions

View File

@ -8,6 +8,8 @@ class FixedAmount extends Action
{
public function __construct($rule)
{
parent::__construct();
/**
* Setting the rule getting applied
*/

View File

@ -8,6 +8,8 @@ class PercentOfProduct extends Action
{
public function __construct($rule)
{
parent::__construct();
/**
* Setting the rule getting applied
*/

View File

@ -15,7 +15,7 @@ class WholeCartToFixed
*/
public function calculate($rule)
{
$actualInstance = new FixedAmount();
$actualInstance = new FixedAmount($rule);
$result = $actualInstance->calculate($rule);

View File

@ -15,7 +15,7 @@ class WholeCartToPercent
*/
public function calculate($rule)
{
$actualInstance = new PercentOfProduct();
$actualInstance = new PercentOfProduct($rule);
$result = $actualInstance->calculate($rule);