diff --git a/packages/Sarga/API/Http/Resources/Checkout/CartRuleResource.php b/packages/Sarga/API/Http/Resources/Checkout/CartRuleResource.php index 1942faaa8..cd1f78be1 100644 --- a/packages/Sarga/API/Http/Resources/Checkout/CartRuleResource.php +++ b/packages/Sarga/API/Http/Resources/Checkout/CartRuleResource.php @@ -20,7 +20,7 @@ class CartRuleResource extends JsonResource 'description' => $this->description, 'is_fixed' => $is_fixed, 'is_discount' => $this->discount_amoun >0, - 'amount' => (double) ($is_fixed ? + 'amount' => abs($is_fixed ? core()->convertPrice($this->discount_amount, $this->currency): $this->discount_amount) ];