From: Alexander Smirnov Date: Mon, 16 Dec 2024 14:53:26 +0000 (+0300) Subject: РПН, РНС X-Git-Tag: 1.7~163^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=5e4d50290d9b5fdce24624e8d197019f1a3d657b;p=erp24_rep%2Fyii-erp24%2F.git РПН, РНС --- 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);