From 345f03fd56a164913cc7f51c4a86d1cfa45e36de Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 15 Aug 2024 17:13:11 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D0=BE=D0=B4=D0=BD=D0=B8=D0=BC=D0=B0=D0=B5?= =?utf8?q?=D0=BC=20=D1=81=D0=BE=20=D0=B4=D0=BD=D0=B0=20=D0=BC=D1=83=D1=81?= =?utf8?q?=D0=BE=D1=80:=20/modul/storage,=20/modul/store/itemmatrix?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/StorageController.php | 12 +++++++ erp24/controllers/StoreController.php | 6 ++-- erp24/inc/uni.php | 2 +- .../modul/storage/ajax_balances_in_group.php | 13 +++---- erp24/modul/storage/index.php | 36 +++++++++---------- erp24/modul/storage/store.php | 29 ++++++++------- erp24/modul/store/itemmatrix.php | 20 ++++++----- .../views/storage/ajax-balances-in-group.php | 5 +++ erp24/views/storage/index.php | 5 +++ erp24/views/storage/store.php | 5 +++ erp24/views/store/itemmatrix.php | 5 +++ 11 files changed, 87 insertions(+), 51 deletions(-) create mode 100644 erp24/controllers/StorageController.php create mode 100644 erp24/views/storage/ajax-balances-in-group.php create mode 100644 erp24/views/storage/index.php create mode 100644 erp24/views/storage/store.php create mode 100644 erp24/views/store/itemmatrix.php diff --git a/erp24/controllers/StorageController.php b/erp24/controllers/StorageController.php new file mode 100644 index 00000000..dc4dda8e --- /dev/null +++ b/erp24/controllers/StorageController.php @@ -0,0 +1,12 @@ +render('index'); } + public function actionStore() { return $this->render('store'); } + public function actionAjaxBalancesInGroup() { return $this->renderPartial('ajax-balances-in-group'); } +} \ No newline at end of file diff --git a/erp24/controllers/StoreController.php b/erp24/controllers/StoreController.php index a0b49cec..20666274 100755 --- a/erp24/controllers/StoreController.php +++ b/erp24/controllers/StoreController.php @@ -6,8 +6,6 @@ use yii\web\Controller; class StoreController extends Controller { - public function actionStats() - { - return $this->render('stats'); - } + public function actionStats() { return $this->render('stats'); } + public function actionItemmatrix() { return $this->render('itemmatrix'); } } \ No newline at end of file diff --git a/erp24/inc/uni.php b/erp24/inc/uni.php index b55f7261..936e1411 100644 --- a/erp24/inc/uni.php +++ b/erp24/inc/uni.php @@ -1,6 +1,6 @@

Складские остатки '.$row["name"].''; +if ($row) { + echo''; +if($form==1) echo''; +echo'

'; echo"Остатки по группам как в 1с"; @@ -63,4 +62,3 @@ echo''; } -include"templates/bottom.php"; diff --git a/erp24/modul/storage/store.php b/erp24/modul/storage/store.php index 745cd05f..706c10ea 100644 --- a/erp24/modul/storage/store.php +++ b/erp24/modul/storage/store.php @@ -1,11 +1,13 @@ -'; echo''); @@ -127,11 +132,11 @@ $.ajax({ -'; - +'; + -include"templates/bottom.php"; \ No newline at end of file +include_once dirname(__DIR__, 2) . '/templates/bottom_light.php'; \ No newline at end of file diff --git a/erp24/modul/store/itemmatrix.php b/erp24/modul/store/itemmatrix.php index d7655662..d387360b 100644 --- a/erp24/modul/store/itemmatrix.php +++ b/erp24/modul/store/itemmatrix.php @@ -1,11 +1,14 @@
'+data+'
'; echo''; - -include"templates/bottom.php"; - + + diff --git a/erp24/views/storage/ajax-balances-in-group.php b/erp24/views/storage/ajax-balances-in-group.php new file mode 100644 index 00000000..26b42f0d --- /dev/null +++ b/erp24/views/storage/ajax-balances-in-group.php @@ -0,0 +1,5 @@ +