This commit is contained in:
Prashant Singh 2019-11-01 17:05:15 +05:30
parent 8ccb72f1d3
commit b01fdc7496
2 changed files with 2 additions and 2 deletions

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);