From: Alexander Smirnov Date: Wed, 18 Dec 2024 10:29:32 +0000 (+0300) Subject: STATUS_CREATED X-Git-Tag: 1.7~148^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=cac349eb500d633d3db72952c4aa3b8e9d4d8344;p=erp24_rep%2Fyii-erp24%2F.git STATUS_CREATED --- diff --git a/erp24/records/WaybillIncoming.php b/erp24/records/WaybillIncoming.php index 47beab15..3ef5dc50 100644 --- a/erp24/records/WaybillIncoming.php +++ b/erp24/records/WaybillIncoming.php @@ -119,7 +119,7 @@ class WaybillIncoming extends \yii\db\ActiveRecord $model->setAttributes([ 'guid' => DataHelper::createGuidMy(), 'shift_transfer_id' => $shiftTransfer->id, - 'status' => self::STATUS_NEW, + 'status' => WriteOffsErp::STATUS_CREATED, 'store_id' => array_flip(array_map('strval', CityStore::getAllActiveGuidId()))[$shiftTransfer->store_guid], 'store_guid' => $shiftTransfer->store_guid, 'date' => $shiftTransfer->date, diff --git a/erp24/records/WaybillWriteOffs.php b/erp24/records/WaybillWriteOffs.php index cac624eb..b93fb1d1 100644 --- a/erp24/records/WaybillWriteOffs.php +++ b/erp24/records/WaybillWriteOffs.php @@ -116,7 +116,7 @@ class WaybillWriteOffs extends \yii\db\ActiveRecord $model->setAttributes([ 'guid' => DataHelper::createGuidMy(), 'shift_transfer_id' => $shiftTransfer->id, - 'status' => self::STATUS_NEW, + 'status' => WriteOffsErp::STATUS_CREATED, 'store_id' => array_flip(array_map('strval', CityStore::getAllActiveGuidId()))[$shiftTransfer->store_guid], 'store_guid' => $shiftTransfer->store_guid, 'date' => $shiftTransfer->date,