From 868b8f01c5e18b33d32a70b1cbd188d0105eef5b Mon Sep 17 00:00:00 2001 From: Semenov Date: Thu, 21 Jul 2022 16:51:02 +0300 Subject: [PATCH] dev --- src/Money.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Money.php b/src/Money.php index ce308de..a917457 100644 --- a/src/Money.php +++ b/src/Money.php @@ -211,7 +211,8 @@ public function jsonSerialize() { return [ 'amount' => (float) $this->amount, - 'currency' => $this->currency->code + 'currency' => $this->currency->code, + 'convertAndFormat' => \Yii::$app->money->convertAndFormat($this), ]; }