From 82da83e85a2c402d30cd21527b306cb2c14ba796 Mon Sep 17 00:00:00 2001 From: TemuulenBM Date: Fri, 24 Nov 2023 17:58:22 +0800 Subject: [PATCH] Warehouse changes --- addon/components/inventory-form-panel.hbs | 149 +- addon/components/product-panel.js | 1 + .../stock-adjustment-form-panel.hbs | 12 +- addon/components/warehouse-form-panel.hbs | 103 +- addon/controllers/batch/index.js | 276 ---- addon/controllers/batch/index/details.js | 58 - addon/controllers/batch/index/edit.js | 110 -- addon/controllers/batch/index/new.js | 88 - addon/controllers/warehouses/index.js | 62 +- addon/models/stock-adjustment.js | 3 +- addon/routes/batch/index.js | 18 - addon/routes/batch/index/details.js | 14 - addon/routes/batch/index/edit.js | 10 - addon/routes/batch/index/new.js | 3 - addon/routes/products/index/details.js | 2 +- addon/templates/application.hbs | 7 +- addon/templates/batch/index.hbs | 41 - addon/templates/batch/index/details.hbs | 1 - addon/templates/batch/index/edit.hbs | 1 - addon/templates/batch/index/new.hbs | 1 - app/controllers/batch/index.js | 1 - app/controllers/batch/index/details.js | 1 - app/controllers/batch/index/edit.js | 1 - app/controllers/batch/index/new.js | 1 - app/routes/batch/index.js | 1 - app/routes/batch/index/details.js | 1 - app/routes/batch/index/edit.js | 1 - app/routes/batch/index/new.js | 1 - app/templates/batch/index.js | 1 - app/templates/batch/index/details.js | 1 - app/templates/batch/index/edit.js | 1 - app/templates/batch/index/new.js | 1 - g.sh | 44 - package.json | 6 +- pnpm-lock.yaml | 1425 ++++------------- ...5_034937_create_stock_adjustment_table.php | 5 +- server/src/Models/StockAdjustment.php | 9 +- tests/unit/controllers/batch/index-test.js | 12 - .../controllers/batch/index/details-test.js | 12 - .../unit/controllers/batch/index/edit-test.js | 12 - .../unit/controllers/batch/index/new-test.js | 12 - tests/unit/routes/batch/index-test.js | 11 - tests/unit/routes/batch/index/details-test.js | 11 - tests/unit/routes/batch/index/edit-test.js | 11 - tests/unit/routes/batch/index/new-test.js | 11 - 45 files changed, 524 insertions(+), 2029 deletions(-) delete mode 100644 addon/controllers/batch/index.js delete mode 100644 addon/controllers/batch/index/details.js delete mode 100644 addon/controllers/batch/index/edit.js delete mode 100644 addon/controllers/batch/index/new.js delete mode 100644 addon/routes/batch/index.js delete mode 100644 addon/routes/batch/index/details.js delete mode 100644 addon/routes/batch/index/edit.js delete mode 100644 addon/routes/batch/index/new.js delete mode 100644 addon/templates/batch/index.hbs delete mode 100644 addon/templates/batch/index/details.hbs delete mode 100644 addon/templates/batch/index/edit.hbs delete mode 100644 addon/templates/batch/index/new.hbs delete mode 100644 app/controllers/batch/index.js delete mode 100644 app/controllers/batch/index/details.js delete mode 100644 app/controllers/batch/index/edit.js delete mode 100644 app/controllers/batch/index/new.js delete mode 100644 app/routes/batch/index.js delete mode 100644 app/routes/batch/index/details.js delete mode 100644 app/routes/batch/index/edit.js delete mode 100644 app/routes/batch/index/new.js delete mode 100644 app/templates/batch/index.js delete mode 100644 app/templates/batch/index/details.js delete mode 100644 app/templates/batch/index/edit.js delete mode 100644 app/templates/batch/index/new.js delete mode 100644 g.sh delete mode 100644 tests/unit/controllers/batch/index-test.js delete mode 100644 tests/unit/controllers/batch/index/details-test.js delete mode 100644 tests/unit/controllers/batch/index/edit-test.js delete mode 100644 tests/unit/controllers/batch/index/new-test.js delete mode 100644 tests/unit/routes/batch/index-test.js delete mode 100644 tests/unit/routes/batch/index/details-test.js delete mode 100644 tests/unit/routes/batch/index/edit-test.js delete mode 100644 tests/unit/routes/batch/index/new-test.js diff --git a/addon/components/inventory-form-panel.hbs b/addon/components/inventory-form-panel.hbs index eb7e98bc..02488c3f 100644 --- a/addon/components/inventory-form-panel.hbs +++ b/addon/components/inventory-form-panel.hbs @@ -29,69 +29,92 @@ -
- - - {{model.name}} - - - - - {{model.name}} - - - - - {{n-a model.name model.address}} - - - - - {{model.display_name}} - - - - +
+ + + + {{model.name}} + + + + + {{model.name}} + + + + + {{n-a model.name model.address}} + + + +
+ + {{smart-humanize status}} + +
+
+ + +
+ + + + {{model.display_name}} + + + + + +