From: marina Date: Fri, 13 Dec 2024 10:23:33 +0000 (+0300) Subject: ERP-259 Доработка второго шага передачи смен X-Git-Tag: 1.7~169^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=e59fb97fad6cb35832d92f272483fcd60fa8f13e;p=erp24_rep%2Fyii-erp24%2F.git ERP-259 Доработка второго шага передачи смен --- diff --git a/erp24/records/WaybillIncoming.php b/erp24/records/WaybillIncoming.php index 3ce7eefb..ee4fed1a 100644 --- a/erp24/records/WaybillIncoming.php +++ b/erp24/records/WaybillIncoming.php @@ -130,7 +130,7 @@ class WaybillIncoming extends \yii\db\ActiveRecord $model->save(); $model->updateAttributes([ - 'number' => 'ЕРП_ПС_' . date("Y-m-d_H-i") . '_' . $model->id + 'number' => 'ЕРП_ПН_' . date("Y-m-d_H-i") . '_' . $model->id ]); WaybillIncomingProducts::setData($model, $shiftTransfer); diff --git a/erp24/records/WaybillWriteOffs.php b/erp24/records/WaybillWriteOffs.php index 9b7a4f3b..aca0b304 100644 --- a/erp24/records/WaybillWriteOffs.php +++ b/erp24/records/WaybillWriteOffs.php @@ -129,7 +129,7 @@ class WaybillWriteOffs extends \yii\db\ActiveRecord $model->save(); $model->updateAttributes([ - 'number' => 'ЕРП_ПС_' . date("Y-m-d_H-i") . '_' . $model->id + 'number' => 'ЕРП_НС_' . date("Y-m-d_H-i") . '_' . $model->id ]); WaybillWriteOffsProducts::setData($model, $shiftTransfer);