From 68b487b7fd569f95bde8a40922448b07d4abf10b Mon Sep 17 00:00:00 2001 From: "HOME\\leonm" Date: Sun, 23 May 2021 18:04:02 +0300 Subject: [PATCH] hotfix --- www/app/entity/doc/document.php | 5 +++-- www/app/entity/doc/inventory.php | 4 ++-- www/app/entity/doc/orderfood.php | 2 +- www/app/entity/pay.php | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/www/app/entity/doc/document.php b/www/app/entity/doc/document.php index e9705280d..b50dec326 100644 --- a/www/app/entity/doc/document.php +++ b/www/app/entity/doc/document.php @@ -28,7 +28,8 @@ class Document extends \ZCL\DB\Entity const STATE_FAIL = 17; // Аннулирован const STATE_FINISHED = 18; // Закончен const STATE_APPROVED = 19; // Готов к выполнению - const STATE_READYTOSHIP = 20; // готов к отправке + const STATE_READYTOSHIP = 20; // готов к отправке + // типы экспорта const EX_WORD = 1; // Word const EX_EXCEL = 2; // Excel @@ -571,7 +572,7 @@ protected function afterDelete() { $conn->Execute("delete from docstatelog where document_id=" . $this->document_id); $conn->Execute("delete from paylist where document_id=" . $this->document_id); - $conn->Execute("delete from iostate where document_id=" . $this->document_id); + // $conn->Execute("delete from iostate where document_id=" . $this->document_id); $conn->Execute("delete from messages where item_type=" . \App\Entity\Message::TYPE_DOC . " and item_id=" . $this->document_id); $conn->Execute("delete from files where item_type=" . \App\Entity\Message::TYPE_DOC . " and item_id=" . $this->document_id); $conn->Execute("delete from filesdata where file_id not in (select file_id from files)"); diff --git a/www/app/entity/doc/inventory.php b/www/app/entity/doc/inventory.php index 03a2c290a..c3de34c4d 100644 --- a/www/app/entity/doc/inventory.php +++ b/www/app/entity/doc/inventory.php @@ -44,7 +44,7 @@ public function Execute() { $io->amount = $qty * $stock->partion; $io->iotype = \App\Entity\IOState::TYPE_OVER; - // $io->save(); + // $io->save(); } @@ -64,7 +64,7 @@ public function Execute() { $io->amount = 0-$qty * $stock->partion; $io->iotype = \App\Entity\IOState::TYPE_LOST; - // $io->save(); + // $io->save(); } diff --git a/www/app/entity/doc/orderfood.php b/www/app/entity/doc/orderfood.php index a53e93fda..d2a49dfbc 100644 --- a/www/app/entity/doc/orderfood.php +++ b/www/app/entity/doc/orderfood.php @@ -161,7 +161,7 @@ public function Execute() { $io->amount = 0-$st->quantity * $st->partion * $lost; $io->iotype = \App\Entity\IOState::TYPE_TRASH; - // $io->save(); + // $io->save(); } diff --git a/www/app/entity/pay.php b/www/app/entity/pay.php index d4e34458e..e1c6c726e 100644 --- a/www/app/entity/pay.php +++ b/www/app/entity/pay.php @@ -102,7 +102,7 @@ public static function addPayment($document_id, $paydate, $amount, $mf_id, $type $io->amount = $amount; $io->iotype = $type; - // $io->save(); + //$io->save(); $mf = \App\Entity\MoneyFund::load($mf_id);