From: marina Date: Thu, 19 Dec 2024 09:12:33 +0000 (+0300) Subject: ERP-256 Сделать отправку документов Пересортица в 1с X-Git-Tag: 1.7~131^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=ae7360bcd126c7cf33631f8dc943e6a256c10eae;p=erp24_rep%2Fyii-erp24%2F.git ERP-256 Сделать отправку документов Пересортица в 1с --- diff --git a/erp24/records/StoreBalance.php b/erp24/records/StoreBalance.php index 7f81166b..f1e2f72b 100644 --- a/erp24/records/StoreBalance.php +++ b/erp24/records/StoreBalance.php @@ -141,10 +141,10 @@ class StoreBalance extends \yii\db\ActiveRecord 'store_id' => $shiftTransfer->store_guid, 'shift_transfer_id' => $shiftTransfer->id, 'date' => $shiftTransfer->date, - 'amount' => WaybillWriteOffs::find() + 'amount' => - (WaybillWriteOffs::find() ->where(['shift_transfer_id' => $shiftTransfer->id]) ->select(['summ']) - ->scalar() ?? '', + ->scalar()), 'status_id' => self::STATUS_NEW, 'comment' => $shiftTransfer->comment, 'json' => json_encode($writeOffsData, JSON_UNESCAPED_UNICODE),