|
385 | 385 | 'attributes' => [
|
386 | 386 | [
|
387 | 387 | 'label' => \Yii::t('skeeks/shop/app', 'The total value of the goods'),
|
388 |
| - 'value' => \Yii::$app->money->intlFormatter()->format($model->basketsMoney), |
| 388 | + 'value' => (string) $model->basketsMoney, |
389 | 389 | ],
|
390 | 390 |
|
391 | 391 | [
|
392 | 392 | 'label' => \Yii::t('skeeks/shop/app', 'Discount, margin'),
|
393 |
| - 'value' => \Yii::$app->money->intlFormatter()->format($model->moneyDiscount), |
| 393 | + 'value' => (string) $model->moneyDiscount, |
394 | 394 | ],
|
395 | 395 |
|
396 | 396 | [
|
397 | 397 | 'label' => \Yii::t('skeeks/shop/app', 'Delivery service'),
|
398 |
| - 'value' => \Yii::$app->money->intlFormatter()->format($model->moneyDelivery), |
| 398 | + 'value' => (string) $model->moneyDelivery, |
399 | 399 | ],
|
400 | 400 |
|
401 | 401 | [
|
402 | 402 | 'label' => \Yii::t('skeeks/shop/app', 'Taxe'),
|
403 |
| - 'value' => \Yii::$app->money->intlFormatter()->format($model->moneyVat), |
| 403 | + 'value' => (string) $model->moneyVat, |
404 | 404 | ],
|
405 | 405 |
|
406 | 406 | [
|
|
410 | 410 |
|
411 | 411 | [
|
412 | 412 | 'label' => \Yii::t('skeeks/shop/app', 'Already paid'),
|
413 |
| - 'value' => \Yii::$app->money->intlFormatter()->format($model->moneySummPaid), |
| 413 | + 'value' => (string) $model->moneySummPaid, |
414 | 414 | ],
|
415 | 415 |
|
416 | 416 | [
|
417 | 417 | 'label' => \Yii::t('skeeks/shop/app', 'In total'),
|
418 | 418 | 'format' => 'raw',
|
419 |
| - 'value' => Html::tag('b', \Yii::$app->money->intlFormatter()->format($model->money)), |
| 419 | + 'value' => Html::tag('b', (string) $model->money), |
420 | 420 | ]
|
421 | 421 | ]
|
422 | 422 | ])
|
|
511 | 511 | 'label' => \Yii::t('skeeks/shop/app', 'Sum'),
|
512 | 512 | 'format' => 'raw',
|
513 | 513 | 'value' => function (\skeeks\cms\shop\models\ShopUserTransact $shopUserTransact) {
|
514 |
| - return ($shopUserTransact->debit == "Y" ? "+" : "-") . \Yii::$app->money->intlFormatter()->format($shopUserTransact->money); |
| 514 | + return ($shopUserTransact->debit == "Y" ? "+" : "-") . (string) $shopUserTransact->money; |
515 | 515 | }
|
516 | 516 | ],
|
517 | 517 |
|
|
0 commit comments