Merge branch 'bugs_patch_1' of https://github.com/prashant-webkul/bagisto into bugs_patch_1
This commit is contained in:
commit
b57898f9bb
|
|
@ -8,6 +8,8 @@ class FixedAmount extends Action
|
|||
{
|
||||
public function __construct($rule)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
/**
|
||||
* Setting the rule getting applied
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@ class PercentOfProduct extends Action
|
|||
{
|
||||
public function __construct($rule)
|
||||
{
|
||||
parent::__construct();
|
||||
|
||||
/**
|
||||
* Setting the rule getting applied
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class WholeCartToFixed
|
|||
*/
|
||||
public function calculate($rule)
|
||||
{
|
||||
$actualInstance = new FixedAmount();
|
||||
$actualInstance = new FixedAmount($rule);
|
||||
|
||||
$result = $actualInstance->calculate($rule);
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ class WholeCartToPercent
|
|||
*/
|
||||
public function calculate($rule)
|
||||
{
|
||||
$actualInstance = new PercentOfProduct();
|
||||
$actualInstance = new PercentOfProduct($rule);
|
||||
|
||||
$result = $actualInstance->calculate($rule);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue