From 5e4d50290d9b5fdce24624e8d197019f1a3d657b Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Mon, 16 Dec 2024 17:53:26 +0300 Subject: [PATCH] =?utf8?q?=D0=A0=D0=9F=D0=9D,=20=D0=A0=D0=9D=D0=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/records/WaybillIncoming.php | 2 +- erp24/records/WaybillWriteOffs.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erp24/records/WaybillIncoming.php b/erp24/records/WaybillIncoming.php index ee4fed1a..665e7920 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 aca0b304..3e80d56a 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); -- 2.39.5