techlify-inventory-common 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +13 -0
- package/README.md +27 -0
- package/angular.json +207 -0
- package/e2e/protractor.conf.js +28 -0
- package/e2e/src/app.e2e-spec.ts +14 -0
- package/e2e/src/app.po.ts +11 -0
- package/e2e/tsconfig.e2e.json +13 -0
- package/ng-package.json +6 -0
- package/package.json +92 -0
- package/projects/inventory-common/README.md +24 -0
- package/projects/inventory-common/ng-package.json +7 -0
- package/projects/inventory-common/package.json +12 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.html +41 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form/category-form.component.ts +75 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category.module.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/category/category.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-common-routing.module.ts +65 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-common.module.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/inventory-value-report.service.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/low-stock-report.service.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/material.module.ts +95 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure.module.ts +26 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measure.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.html +88 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
- package/projects/inventory-common/src/lib/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.html +209 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form/product-form.component.ts +182 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-form.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.html +254 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-list/product-list.component.ts +171 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.html +110 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-quick-search/product-quick-search.component.ts +102 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-routing.module.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.html +78 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.scss +12 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.component.ts +153 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-search/product-search.module.ts +22 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.html +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +62 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +15 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.html +9 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-summary-widget/product-summary-widget.component.ts +39 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.module.ts +23 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-tax/product-tax.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product.module.ts +69 -0
- package/projects/inventory-common/src/lib/inventory-common/product/product.service.ts +54 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.html +8 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/product/widgets/product-category-badges/product-category-badges.component.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.html +140 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/inventory-value-report/inventory-value-report.component.ts +191 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.html +158 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/reports/low-stock-report/low-stock-report.component.ts +191 -0
- package/projects/inventory-common/src/lib/inventory-common/services/techlify-form-service.ts +14 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.html +20 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.ts +35 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html +18 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts +33 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
- package/projects/inventory-common/src/lib/inventory-common/stock-summary.service.ts +18 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.css +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.spec.ts +28 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-delete-button/supplier-delete-button.component.ts +56 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.css +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.spec.ts +28 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form-button/supplier-form-button.component.ts +40 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.html +100 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-routing.module.ts +32 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-type.service.ts +17 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.html +3 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.component.ts +16 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.module.ts +46 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/supplier.service.ts +57 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.html +98 -0
- package/projects/inventory-common/src/lib/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +126 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.html +442 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.scss +0 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.component.ts +109 -0
- package/projects/inventory-common/src/lib/inventory-common/techlify-filter/techlify-filter.module.ts +24 -0
- package/projects/inventory-common/src/public-api.ts +10 -0
- package/projects/inventory-common/tsconfig.lib.json +17 -0
- package/projects/inventory-common/tsconfig.lib.prod.json +13 -0
- package/projects/inventory-common/tsconfig.spec.json +17 -0
- package/public_api.ts +23 -0
- package/releases/techlify-ng-users-0.0.4.tgz +0 -0
- package/releases/techlify-ng-users-0.0.5.tgz +0 -0
- package/src/.htaccess +19 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.html +3 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.scss +0 -0
- package/src/app/@modules/@shared/print-button/print-button/print-button.component.ts +11 -0
- package/src/app/@modules/@shared/print-button/print-button.module.ts +11 -0
- package/src/app/@modules/@shared/print-button/print.service.ts +38 -0
- package/src/app/@modules/@shared/techlify-form-service.ts +14 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.html +26 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.spec.ts +23 -0
- package/src/app/@modules/@shared/user-menu/user-menu.component.ts +46 -0
- package/src/app/@modules/@shared/user-menu/user-menu.module.ts +20 -0
- package/src/app/@modules/administration/administration-routing.module.ts +44 -0
- package/src/app/@modules/administration/administration.component.html +3 -0
- package/src/app/@modules/administration/administration.component.ts +11 -0
- package/src/app/@modules/administration/administration.module.ts +18 -0
- package/src/app/@modules/administration/administration.service.ts +33 -0
- package/src/app/@modules/auth/auth-routing.module.ts +17 -0
- package/src/app/@modules/auth/auth.module.ts +12 -0
- package/src/app/@modules/auth/login/login.component.html +302 -0
- package/src/app/@modules/auth/login/login.component.scss +43 -0
- package/src/app/@modules/auth/login/login.component.ts +57 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.html +41 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-form/category-form.component.ts +75 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.html +32 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-form-button/category-form-button.component.ts +29 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.html +79 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/category/category-list-page/category-list-page.component.ts +61 -0
- package/src/app/@modules/inventory-common/category/category-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/category/category.module.ts +36 -0
- package/src/app/@modules/inventory-common/category/category.service.ts +11 -0
- package/src/app/@modules/inventory-common/inventory-common-routing.module.ts +55 -0
- package/src/app/@modules/inventory-common/inventory-common.module.ts +20 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.html +88 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/inventory-dashboard-page/inventory-dashboard-page.component.ts +35 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.html +37 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete-button/measure-delete-button.component.ts +44 -0
- package/src/app/@modules/inventory-common/measure/measure-delete/measure-delete.module.ts +11 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.html +66 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form/measure-form.component.ts +78 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.html +16 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form-button/measure-form-button.component.ts +29 -0
- package/src/app/@modules/inventory-common/measure/measure-form/measure-form.module.ts +13 -0
- package/src/app/@modules/inventory-common/measure/measure-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/measure/measure.module.ts +26 -0
- package/src/app/@modules/inventory-common/measure/measure.service.ts +11 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.html +88 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/measure/measures-list/measures-list.component.ts +67 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.html +52 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.component.ts +42 -0
- package/src/app/@modules/inventory-common/product/low-stock-products-widget/low-stock-products-widget.module.ts +20 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.html +114 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-basic-info/product-basic-info.component.ts +43 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.html +33 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-delete-button/product-delete-button.component.ts +53 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.html +209 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-form/product-form.component.ts +182 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.html +17 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-form-button/product-form-button.component.ts +39 -0
- package/src/app/@modules/inventory-common/product/product-form.service.ts +11 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.html +1 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-import-page/product-import-page.component.ts +66 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.html +229 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-list/product-list.component.ts +176 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.html +44 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-measure-form/product-measure-form.component.ts +93 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.html +90 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-measures-list/product-measures-list.component.ts +153 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.html +3 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.spec.ts +24 -0
- package/src/app/@modules/inventory-common/product/product-nav-bar/product-nav-bar.component.ts +7 -0
- package/src/app/@modules/inventory-common/product/product-routing.module.ts +49 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.html +78 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.scss +12 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.component.ts +153 -0
- package/src/app/@modules/inventory-common/product/product-search/product-search.module.ts +22 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.html +17 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.component.ts +45 -0
- package/src/app/@modules/inventory-common/product/product-summary-chart/product-summary-chart.module.ts +18 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-delete-button/product-tax-delete-button.component.ts +55 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.html +49 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-form-button/product-tax-form-button.component.ts +87 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.html +48 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax-list/product-tax-list.component.ts +33 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax.module.ts +23 -0
- package/src/app/@modules/inventory-common/product/product-tax/product-tax.service.ts +11 -0
- package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.html +34 -0
- package/src/app/@modules/inventory-common/product/product-view-page/product-view-page.component.ts +63 -0
- package/src/app/@modules/inventory-common/product/product.module.ts +67 -0
- package/src/app/@modules/inventory-common/product/product.service.ts +54 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.component.ts +49 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance-delete-button/stock-issuance-delete-button.module.ts +11 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuance.service.ts +11 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.html +165 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.component.ts +113 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-list/stock-issuances-list.module.ts +26 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issuances.module.ts +36 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.html +64 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form/stock-issue-form.component.ts +115 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.html +20 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form-button/stock-issue-form-button.component.ts +35 -0
- package/src/app/@modules/inventory-common/stock-issuances/stock-issue-form/stock-issue-form.module.ts +29 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.html +32 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-delete-button/stock-receipt-delete-button.component.ts +49 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.html +74 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form/stock-receipt-form.component.ts +122 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.html +18 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form-button/stock-receipt-form-button.component.ts +33 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt-form/stock-receipt-form.module.ts +29 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipt.service.ts +11 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.html +139 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.scss +0 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-list-page/stock-receipts-list-page.component.ts +109 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts-routing.module.ts +16 -0
- package/src/app/@modules/inventory-common/stock-receipts/stock-receipts.module.ts +45 -0
- package/src/app/@modules/inventory-common/stock-summary.service.ts +18 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.html +22 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector/payee-selector.component.ts +44 -0
- package/src/app/@modules/inventory-common/supplier/payee-selector/payee-selector.module.ts +19 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.html +133 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.component.ts +116 -0
- package/src/app/@modules/inventory-common/supplier/supplier-form/supplier-form.service.ts +11 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.html +67 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/supplier-information/supplier-information.component.ts +68 -0
- package/src/app/@modules/inventory-common/supplier/supplier-routing.module.ts +32 -0
- package/src/app/@modules/inventory-common/supplier/supplier-type.service.ts +17 -0
- package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.html +60 -0
- package/src/app/@modules/inventory-common/supplier/supplier-view/supplier-view.component.ts +58 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.html +3 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.scss +0 -0
- package/src/app/@modules/inventory-common/supplier/supplier.component.ts +16 -0
- package/src/app/@modules/inventory-common/supplier/supplier.module.ts +42 -0
- package/src/app/@modules/inventory-common/supplier/supplier.service.ts +57 -0
- package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.html +140 -0
- package/src/app/@modules/inventory-common/supplier/suppliers-list/suppliers-list.component.ts +240 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.html +10 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.scss +20 -0
- package/src/app/@modules/sidebar-layout/expandable-menu/expandable-menu.component.ts +24 -0
- package/src/app/@modules/sidebar-layout/menu-item.model.ts +12 -0
- package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.html +26 -0
- package/src/app/@modules/sidebar-layout/sidebar-administration-menu/sidebar-administration-menu.component.ts +23 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.html +32 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.scss +48 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout/sidebar-layout.component.ts +173 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout-routing.module.ts +52 -0
- package/src/app/@modules/sidebar-layout/sidebar-layout.module.ts +52 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.html +85 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.scss +0 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.component.ts +46 -0
- package/src/app/@modules/sidebar-layout/top-menu/top-menu.service.ts +29 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.html +442 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.scss +0 -0
- package/src/app/@modules/techlify-filter/techlify-filter.component.ts +109 -0
- package/src/app/@modules/techlify-filter/techlify-filter.module.ts +24 -0
- package/src/app/@modules/user/user-layout/user-layout.component.html +15 -0
- package/src/app/@modules/user/user-layout/user-layout.component.scss +0 -0
- package/src/app/@modules/user/user-layout/user-layout.component.ts +12 -0
- package/src/app/@modules/user/user-routing.module.ts +23 -0
- package/src/app/@modules/user/user.module.ts +13 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.html +15 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.scss +0 -0
- package/src/app/@modules/user-setting-button/user-setting-button/user-setting-button.component.ts +12 -0
- package/src/app/@modules/user-setting-button/user-setting-button.module.ts +20 -0
- package/src/app/app-routing.module.ts +28 -0
- package/src/app/app.component.html +1 -0
- package/src/app/app.component.scss +43 -0
- package/src/app/app.component.spec.ts +18 -0
- package/src/app/app.component.ts +62 -0
- package/src/app/app.module.ts +73 -0
- package/src/app/material.module.ts +95 -0
- package/src/assets/.gitkeep +0 -0
- package/src/assets/images/techlify-logo-xs.png +0 -0
- package/src/assets/product/product-import-sample.csv +1 -0
- package/src/environments/common-environment.ts +36 -0
- package/src/environments/environment.prod.ts +10 -0
- package/src/environments/environment.staging.ts +19 -0
- package/src/environments/environment.ts +18 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +34 -0
- package/src/main.ts +19 -0
- package/src/polyfills.ts +57 -0
- package/src/styles.scss +366 -0
- package/src/test.ts +12 -0
- package/src/theme/theme-variables.scss +132 -0
- package/src/theme/theme.scss +17 -0
- package/src/tsconfig.app.json +15 -0
- package/src/tsconfig.spec.json +14 -0
- package/tsconfig.app.json +17 -0
- package/tsconfig.json +69 -0
- package/tslint.json +130 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<h3 class="text-center mb-1">{{ measure?.id ? "Edit" : "Create" }} Measure</h3>
|
|
2
|
+
<p class="text-center text-secondary">
|
|
3
|
+
Measures are used throughout the app. ONLY create measure as is applicable.
|
|
4
|
+
</p>
|
|
5
|
+
|
|
6
|
+
<form
|
|
7
|
+
[formGroup]="form"
|
|
8
|
+
class="d-flex flex-row flex-wrap justify-content-start gap-2"
|
|
9
|
+
(submit)="save()"
|
|
10
|
+
>
|
|
11
|
+
<mat-form-field style="width: calc(100%)">
|
|
12
|
+
<mat-label>Title</mat-label>
|
|
13
|
+
<input formControlName="title" type="text" matInput placeholder="Title" />
|
|
14
|
+
<mat-error *ngIf="isFieldValid('title')">
|
|
15
|
+
{{ getErrorMessage("title") }}
|
|
16
|
+
</mat-error>
|
|
17
|
+
</mat-form-field>
|
|
18
|
+
|
|
19
|
+
<mat-form-field style="width: calc(100%)">
|
|
20
|
+
<mat-label>Quantity Measure</mat-label>
|
|
21
|
+
<input
|
|
22
|
+
formControlName="quantity_measure"
|
|
23
|
+
type="text"
|
|
24
|
+
matInput
|
|
25
|
+
placeholder="Quantity Measure"
|
|
26
|
+
/>
|
|
27
|
+
<mat-hint>
|
|
28
|
+
What is this measure for? eg: Unit, Length, Mass, Capacity.
|
|
29
|
+
</mat-hint>
|
|
30
|
+
<mat-error *ngIf="isFieldValid('quantity_measure')">
|
|
31
|
+
{{ getErrorMessage("quantity_measure") }}
|
|
32
|
+
</mat-error>
|
|
33
|
+
</mat-form-field>
|
|
34
|
+
|
|
35
|
+
<mat-form-field style="width: calc(100%)">
|
|
36
|
+
<mat-label>Description</mat-label>
|
|
37
|
+
<textarea
|
|
38
|
+
matInput
|
|
39
|
+
formControlName="description"
|
|
40
|
+
placeholder="Description"
|
|
41
|
+
rows="3"
|
|
42
|
+
></textarea>
|
|
43
|
+
</mat-form-field>
|
|
44
|
+
|
|
45
|
+
<div
|
|
46
|
+
class="d-flex justify-content-end align-items-center gap-2"
|
|
47
|
+
style="width: calc(100%)"
|
|
48
|
+
>
|
|
49
|
+
<button
|
|
50
|
+
[disabled]="isWorking"
|
|
51
|
+
type="submit"
|
|
52
|
+
mat-raised-button
|
|
53
|
+
color="primary"
|
|
54
|
+
>
|
|
55
|
+
Save
|
|
56
|
+
</button>
|
|
57
|
+
<button
|
|
58
|
+
[disabled]="isWorking"
|
|
59
|
+
type="button"
|
|
60
|
+
mat-flat-button
|
|
61
|
+
(click)="cancelled.emit()"
|
|
62
|
+
>
|
|
63
|
+
Cancel
|
|
64
|
+
</button>
|
|
65
|
+
</div>
|
|
66
|
+
</form>
|
|
File without changes
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
AlertService,
|
|
4
|
+
FormValidatorService,
|
|
5
|
+
TechlifyFormComponentInterface,
|
|
6
|
+
} from "ngx-techlify-core";
|
|
7
|
+
import { FormBuilder, Validators } from "@angular/forms";
|
|
8
|
+
import { MeasureService } from "../../measure.service";
|
|
9
|
+
import { Observable } from "rxjs";
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: "app-measure-form",
|
|
13
|
+
templateUrl: "./measure-form.component.html",
|
|
14
|
+
styleUrls: ["./measure-form.component.scss"],
|
|
15
|
+
})
|
|
16
|
+
export class MeasureFormComponent
|
|
17
|
+
extends TechlifyFormComponentInterface
|
|
18
|
+
implements OnInit
|
|
19
|
+
{
|
|
20
|
+
@Input() measure: any;
|
|
21
|
+
@Output() saved: EventEmitter<any> = new EventEmitter<any>();
|
|
22
|
+
@Output() cancelled: EventEmitter<any> = new EventEmitter<any>();
|
|
23
|
+
|
|
24
|
+
isWorking!: boolean;
|
|
25
|
+
constructor(
|
|
26
|
+
formValidatorService: FormValidatorService,
|
|
27
|
+
private formBuilder: FormBuilder,
|
|
28
|
+
private alertService: AlertService,
|
|
29
|
+
private measureService: MeasureService
|
|
30
|
+
) {
|
|
31
|
+
super(formValidatorService);
|
|
32
|
+
|
|
33
|
+
this.errorMessages = {
|
|
34
|
+
title: {
|
|
35
|
+
required: "The title field is required.",
|
|
36
|
+
},
|
|
37
|
+
quantity_measure: {
|
|
38
|
+
required: "The quantity measure field is required.",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
this.form = this.formBuilder.group({
|
|
43
|
+
id: [""],
|
|
44
|
+
title: ["", Validators.required],
|
|
45
|
+
quantity_measure: ["", Validators.required],
|
|
46
|
+
description: [""],
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
ngOnInit(): void {
|
|
51
|
+
if (this.measure) {
|
|
52
|
+
this.form.patchValue({ ...this.measure });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
save() {
|
|
57
|
+
if (this.form.invalid) {
|
|
58
|
+
this.alertService.addAlert("Please check the form for errors.", "error");
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const data: any = {
|
|
62
|
+
...this.form.value,
|
|
63
|
+
};
|
|
64
|
+
this.isWorking = true;
|
|
65
|
+
let request: Observable<any> = this.measureService.store(data);
|
|
66
|
+
if (this.measure?.id) {
|
|
67
|
+
request = this.measureService.update(data);
|
|
68
|
+
}
|
|
69
|
+
request.subscribe({
|
|
70
|
+
next: (response: any) => {
|
|
71
|
+
this.alertService.addAlert("Measure saved successfully!", "success");
|
|
72
|
+
this.isWorking = false;
|
|
73
|
+
this.saved.emit(response?.item);
|
|
74
|
+
},
|
|
75
|
+
error: () => (this.isWorking = false),
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<span
|
|
2
|
+
class="material-symbols-outlined cursor-pointer"
|
|
3
|
+
(click)="showForm(measureFormTemplate)"
|
|
4
|
+
[class.text-primary]="!measure?.id"
|
|
5
|
+
>
|
|
6
|
+
{{ measure?.id ? "edit" : "add" }}
|
|
7
|
+
</span>
|
|
8
|
+
|
|
9
|
+
<ng-template #measureFormTemplate>
|
|
10
|
+
<app-measure-form
|
|
11
|
+
[measure]="measure"
|
|
12
|
+
mat-dialog-content
|
|
13
|
+
(saved)="onSave($event)"
|
|
14
|
+
(cancelled)="matDialog.closeAll()"
|
|
15
|
+
></app-measure-form>
|
|
16
|
+
</ng-template>
|
|
File without changes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Input,
|
|
5
|
+
Output,
|
|
6
|
+
TemplateRef,
|
|
7
|
+
} from "@angular/core";
|
|
8
|
+
import { MatDialog } from "@angular/material/dialog";
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: "app-measure-form-button",
|
|
12
|
+
templateUrl: "./measure-form-button.component.html",
|
|
13
|
+
styleUrls: ["./measure-form-button.component.scss"],
|
|
14
|
+
})
|
|
15
|
+
export class MeasureFormButtonComponent {
|
|
16
|
+
@Input() measure: any;
|
|
17
|
+
@Output() saved: EventEmitter<any> = new EventEmitter<any>();
|
|
18
|
+
|
|
19
|
+
constructor(public matDialog: MatDialog) {}
|
|
20
|
+
|
|
21
|
+
showForm(templateRef: TemplateRef<any>) {
|
|
22
|
+
this.matDialog.open(templateRef, { width: "500px" });
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
onSave(measure: any) {
|
|
26
|
+
this.matDialog.closeAll();
|
|
27
|
+
this.saved.emit(measure);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { MeasureFormComponent } from "./measure-form/measure-form.component";
|
|
4
|
+
import { MeasureFormButtonComponent } from "./measure-form-button/measure-form-button.component";
|
|
5
|
+
import { ReactiveFormsModule } from "@angular/forms";
|
|
6
|
+
import { MaterialModule } from 'ngx-techlify-core';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [MeasureFormComponent, MeasureFormButtonComponent],
|
|
10
|
+
imports: [CommonModule, MaterialModule, ReactiveFormsModule],
|
|
11
|
+
exports: [MeasureFormComponent, MeasureFormButtonComponent],
|
|
12
|
+
})
|
|
13
|
+
export class MeasureFormModule {}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { RouterModule, Routes } from "@angular/router";
|
|
3
|
+
import { MeasuresListComponent } from "./measures-list/measures-list.component";
|
|
4
|
+
|
|
5
|
+
const routes: Routes = [
|
|
6
|
+
{
|
|
7
|
+
path: "",
|
|
8
|
+
component: MeasuresListComponent,
|
|
9
|
+
},
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
imports: [RouterModule.forChild(routes)],
|
|
14
|
+
exports: [RouterModule],
|
|
15
|
+
})
|
|
16
|
+
export class MeasureRoutingModule {}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
|
|
4
|
+
import { MeasureRoutingModule } from "./measure-routing.module";
|
|
5
|
+
import { MeasuresListComponent } from "./measures-list/measures-list.component";
|
|
6
|
+
import { MeasureFormModule } from "./measure-form/measure-form.module";
|
|
7
|
+
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
|
8
|
+
import { MeasureDeleteModule } from "./measure-delete/measure-delete.module";
|
|
9
|
+
import { MaterialModule } from "ngx-techlify-core";
|
|
10
|
+
import { MatProgressBarModule } from "@angular/material/progress-bar";
|
|
11
|
+
import { TechlifyFilterModule } from '../techlify-filter/techlify-filter.module';
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [MeasuresListComponent],
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
MeasureRoutingModule,
|
|
18
|
+
MaterialModule,
|
|
19
|
+
MeasureFormModule,
|
|
20
|
+
TechlifyFilterModule,
|
|
21
|
+
InfiniteScrollModule,
|
|
22
|
+
MeasureDeleteModule,
|
|
23
|
+
MatProgressBarModule,
|
|
24
|
+
],
|
|
25
|
+
})
|
|
26
|
+
export class MeasureModule {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
import { HttpService, TechlifyServiceBaseClass } from "ngx-techlify-core";
|
|
3
|
+
|
|
4
|
+
@Injectable({
|
|
5
|
+
providedIn: "root",
|
|
6
|
+
})
|
|
7
|
+
export class MeasureService extends TechlifyServiceBaseClass {
|
|
8
|
+
constructor(httpService: HttpService) {
|
|
9
|
+
super(httpService, "product-measures");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<mat-card class="mb-2">
|
|
2
|
+
<mat-card-content
|
|
3
|
+
class="d-flex justify-content-between align-items-center gap-3"
|
|
4
|
+
>
|
|
5
|
+
<div class="d-flex justify-content-center align-items-center gap-2">
|
|
6
|
+
<h3 class="mb-0">Measures</h3>
|
|
7
|
+
<app-measure-form-button
|
|
8
|
+
class="mt-1"
|
|
9
|
+
(saved)="reload()"
|
|
10
|
+
></app-measure-form-button>
|
|
11
|
+
</div>
|
|
12
|
+
<app-techlify-filter
|
|
13
|
+
[filterForm]="filterForm"
|
|
14
|
+
(filterUpdated)="reload()"
|
|
15
|
+
></app-techlify-filter>
|
|
16
|
+
</mat-card-content>
|
|
17
|
+
</mat-card>
|
|
18
|
+
|
|
19
|
+
<mat-card class="p-0">
|
|
20
|
+
<mat-card-content>
|
|
21
|
+
<table
|
|
22
|
+
mat-table
|
|
23
|
+
[dataSource]="models"
|
|
24
|
+
class="w-100"
|
|
25
|
+
aria-describedby="Service Centers"
|
|
26
|
+
infiniteScroll
|
|
27
|
+
[infiniteScrollDistance]="2"
|
|
28
|
+
[infiniteScrollThrottle]="50"
|
|
29
|
+
(scrolled)="onScroll()"
|
|
30
|
+
matSort
|
|
31
|
+
(matSortChange)="onSortChange($event)"
|
|
32
|
+
>
|
|
33
|
+
<!-- # Column -->
|
|
34
|
+
<ng-container matColumnDef="no">
|
|
35
|
+
<th mat-header-cell *matHeaderCellDef>#</th>
|
|
36
|
+
<td mat-cell *matCellDef="let element; let i = index">{{ i + 1 }}</td>
|
|
37
|
+
</ng-container>
|
|
38
|
+
|
|
39
|
+
<!-- Title Column -->
|
|
40
|
+
<ng-container matColumnDef="title">
|
|
41
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>Title</th>
|
|
42
|
+
<td mat-cell *matCellDef="let element">
|
|
43
|
+
{{ element?.title }}
|
|
44
|
+
</td>
|
|
45
|
+
</ng-container>
|
|
46
|
+
|
|
47
|
+
<!-- Quantity Measure Column -->
|
|
48
|
+
<ng-container matColumnDef="quantity_measure">
|
|
49
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header>
|
|
50
|
+
Quantity Measure
|
|
51
|
+
</th>
|
|
52
|
+
<td mat-cell *matCellDef="let element">
|
|
53
|
+
{{ element?.quantity_measure }}
|
|
54
|
+
</td>
|
|
55
|
+
</ng-container>
|
|
56
|
+
|
|
57
|
+
<!-- Description Column -->
|
|
58
|
+
<ng-container matColumnDef="description">
|
|
59
|
+
<th mat-header-cell *matHeaderCellDef>Description</th>
|
|
60
|
+
<td mat-cell *matCellDef="let element">{{ element?.description }}</td>
|
|
61
|
+
</ng-container>
|
|
62
|
+
|
|
63
|
+
<!-- Actions Column -->
|
|
64
|
+
<ng-container matColumnDef="actions">
|
|
65
|
+
<th mat-header-cell *matHeaderCellDef>Actions</th>
|
|
66
|
+
<td mat-cell *matCellDef="let element">
|
|
67
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
68
|
+
<app-measure-form-button
|
|
69
|
+
[measure]="element"
|
|
70
|
+
(saved)="reload()"
|
|
71
|
+
*ngIf="element?.client_id"
|
|
72
|
+
></app-measure-form-button>
|
|
73
|
+
<app-measure-delete-button
|
|
74
|
+
[measure]="element"
|
|
75
|
+
(deleted)="reload()"
|
|
76
|
+
*ngIf="element?.client_id"
|
|
77
|
+
></app-measure-delete-button>
|
|
78
|
+
</div>
|
|
79
|
+
</td>
|
|
80
|
+
</ng-container>
|
|
81
|
+
|
|
82
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
83
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
84
|
+
</table>
|
|
85
|
+
|
|
86
|
+
<mat-progress-bar mode="indeterminate" *ngIf="isWorking"></mat-progress-bar>
|
|
87
|
+
</mat-card-content>
|
|
88
|
+
</mat-card>
|
|
File without changes
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Component, OnInit } from "@angular/core";
|
|
2
|
+
import { FormBuilder } from "@angular/forms";
|
|
3
|
+
import { TechlifyListingControllerInterface } from "ngx-techlify-core";
|
|
4
|
+
import { MeasureService } from "../measure.service";
|
|
5
|
+
import { Sort } from "@angular/material/sort";
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: "app-measure-list",
|
|
9
|
+
templateUrl: "./measures-list.component.html",
|
|
10
|
+
styleUrls: ["./measures-list.component.scss"],
|
|
11
|
+
})
|
|
12
|
+
export class MeasuresListComponent
|
|
13
|
+
extends TechlifyListingControllerInterface
|
|
14
|
+
implements OnInit
|
|
15
|
+
{
|
|
16
|
+
displayedColumns: string[] = [
|
|
17
|
+
"no",
|
|
18
|
+
"title",
|
|
19
|
+
"quantity_measure",
|
|
20
|
+
"description",
|
|
21
|
+
"actions",
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
private formBuilder: FormBuilder,
|
|
26
|
+
private measureService: MeasureService
|
|
27
|
+
) {
|
|
28
|
+
super();
|
|
29
|
+
this.filterForm = this.formBuilder.group({
|
|
30
|
+
search: [""],
|
|
31
|
+
sort_by: ["created_at|desc"],
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
ngOnInit(): void {
|
|
36
|
+
this.loadData();
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
loadData(): void {
|
|
40
|
+
const params: any = {
|
|
41
|
+
page: this.page,
|
|
42
|
+
perPage: this.perPage,
|
|
43
|
+
...this.filterForm.value,
|
|
44
|
+
};
|
|
45
|
+
this.isWorking = true;
|
|
46
|
+
this.measureService.index(params).subscribe({
|
|
47
|
+
next: (response: any) => {
|
|
48
|
+
this.isWorking = false;
|
|
49
|
+
this.models = this.models.concat(response?.data);
|
|
50
|
+
this.lastPage = response?.last_page;
|
|
51
|
+
},
|
|
52
|
+
error: () => (this.isWorking = false),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
onSortChange(sort: Sort) {
|
|
57
|
+
let { active, direction } = sort;
|
|
58
|
+
if (!active) {
|
|
59
|
+
active = "created_at";
|
|
60
|
+
}
|
|
61
|
+
if (!direction) {
|
|
62
|
+
direction = "desc";
|
|
63
|
+
active = "created_at";
|
|
64
|
+
}
|
|
65
|
+
this.filterForm.get("sort_by").setValue(active + "|" + direction);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<mat-card style="max-height: 460px; overflow: auto">
|
|
2
|
+
<mat-card-content>
|
|
3
|
+
<h3>Low Stock Products</h3>
|
|
4
|
+
</mat-card-content>
|
|
5
|
+
<mat-card-content class="p-0">
|
|
6
|
+
<table
|
|
7
|
+
mat-table
|
|
8
|
+
[dataSource]="models"
|
|
9
|
+
class="w-100"
|
|
10
|
+
infiniteScroll
|
|
11
|
+
[infiniteScrollDistance]="2"
|
|
12
|
+
[infiniteScrollThrottle]="50"
|
|
13
|
+
(scrolled)="onScroll()"
|
|
14
|
+
>
|
|
15
|
+
<!-- # Column -->
|
|
16
|
+
<ng-container matColumnDef="#">
|
|
17
|
+
<th mat-header-cell *matHeaderCellDef>#</th>
|
|
18
|
+
<td mat-cell *matCellDef="let element; let i = index">{{ i + 1 }}</td>
|
|
19
|
+
</ng-container>
|
|
20
|
+
|
|
21
|
+
<!-- Product Column -->
|
|
22
|
+
<ng-container matColumnDef="Product">
|
|
23
|
+
<th mat-header-cell *matHeaderCellDef>Product</th>
|
|
24
|
+
<td mat-cell *matCellDef="let element">
|
|
25
|
+
<a
|
|
26
|
+
[routerLink]="['/inventory/products', element?.id, 'view']"
|
|
27
|
+
class="text-dark"
|
|
28
|
+
>
|
|
29
|
+
{{ element?.name }}
|
|
30
|
+
</a>
|
|
31
|
+
</td>
|
|
32
|
+
</ng-container>
|
|
33
|
+
|
|
34
|
+
<!-- Stock Column -->
|
|
35
|
+
<ng-container matColumnDef="Stock">
|
|
36
|
+
<th mat-header-cell *matHeaderCellDef>Stock</th>
|
|
37
|
+
<td mat-cell *matCellDef="let element">{{ element?.current_stock }}</td>
|
|
38
|
+
</ng-container>
|
|
39
|
+
|
|
40
|
+
<!-- Reorder Point Column -->
|
|
41
|
+
<ng-container matColumnDef="Reorder Point">
|
|
42
|
+
<th mat-header-cell *matHeaderCellDef>Reorder Point</th>
|
|
43
|
+
<td mat-cell *matCellDef="let element">{{ element?.reorder_point }}</td>
|
|
44
|
+
</ng-container>
|
|
45
|
+
|
|
46
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
47
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
48
|
+
</table>
|
|
49
|
+
|
|
50
|
+
<mat-progress-bar mode="indeterminate" *ngIf="isWorking"></mat-progress-bar>
|
|
51
|
+
</mat-card-content>
|
|
52
|
+
</mat-card>
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Component, OnInit } from "@angular/core";
|
|
2
|
+
import { TechlifyListingControllerInterface } from "ngx-techlify-core";
|
|
3
|
+
import { ProductService } from "../product.service";
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: "app-low-stock-products-widget",
|
|
7
|
+
templateUrl: "./low-stock-products-widget.component.html",
|
|
8
|
+
})
|
|
9
|
+
export class LowStockProductsWidgetComponent
|
|
10
|
+
extends TechlifyListingControllerInterface
|
|
11
|
+
implements OnInit
|
|
12
|
+
{
|
|
13
|
+
displayedColumns: string[] = ["#", "Product", "Stock", "Reorder Point"];
|
|
14
|
+
|
|
15
|
+
constructor(private productService: ProductService) {
|
|
16
|
+
super();
|
|
17
|
+
this.lastPage = 0;
|
|
18
|
+
this.perPage = 1000;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ngOnInit() {
|
|
22
|
+
this.loadData();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
loadData() {
|
|
26
|
+
const params: any = {
|
|
27
|
+
page: this.page,
|
|
28
|
+
perPage: this.perPage,
|
|
29
|
+
is_low_stock: true,
|
|
30
|
+
num_items: this.perPage + "|" + this.page,
|
|
31
|
+
};
|
|
32
|
+
this.isWorking = true;
|
|
33
|
+
this.productService.index(params).subscribe({
|
|
34
|
+
next: (response: any) => {
|
|
35
|
+
this.models = this.models?.concat(response?.data);
|
|
36
|
+
this.lastPage = response?.last_page;
|
|
37
|
+
this.isWorking = false;
|
|
38
|
+
},
|
|
39
|
+
error: () => (this.isWorking = false),
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { MaterialModule } from "ngx-techlify-core";
|
|
4
|
+
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
|
5
|
+
import { MatProgressBarModule } from "@angular/material/progress-bar";
|
|
6
|
+
import { RouterModule } from "@angular/router";
|
|
7
|
+
import { LowStockProductsWidgetComponent } from './low-stock-products-widget.component';
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
declarations: [LowStockProductsWidgetComponent],
|
|
11
|
+
imports: [
|
|
12
|
+
CommonModule,
|
|
13
|
+
MaterialModule,
|
|
14
|
+
InfiniteScrollModule,
|
|
15
|
+
MatProgressBarModule,
|
|
16
|
+
RouterModule,
|
|
17
|
+
],
|
|
18
|
+
exports: [LowStockProductsWidgetComponent],
|
|
19
|
+
})
|
|
20
|
+
export class LowStockProductsWidgetModule {}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<mat-card *ngIf="product" class="w-100">
|
|
2
|
+
<mat-card-content
|
|
3
|
+
class="d-flex justify-content-between align-items-center mb-1 mb-2"
|
|
4
|
+
>
|
|
5
|
+
<div class="d-flex justify-content-start gap-2">
|
|
6
|
+
<span class="material-symbols-outlined"> campaign </span>
|
|
7
|
+
<strong class="mb-0 text-dark">Product Information</strong>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
10
|
+
<app-product-form-button
|
|
11
|
+
[product]="product"
|
|
12
|
+
(saved)="onProductSaved($event)"
|
|
13
|
+
></app-product-form-button>
|
|
14
|
+
<app-product-delete-button
|
|
15
|
+
[product]="product"
|
|
16
|
+
(deleted)="deleted.emit()"
|
|
17
|
+
></app-product-delete-button>
|
|
18
|
+
</div>
|
|
19
|
+
</mat-card-content>
|
|
20
|
+
<mat-divider></mat-divider>
|
|
21
|
+
<mat-card-content class="mt-3">
|
|
22
|
+
<h3 class="mb-1 font-weight-bold">{{ product?.name }}</h3>
|
|
23
|
+
<div class="d-flex flex-wrap gap-1">
|
|
24
|
+
<span
|
|
25
|
+
class="badge badge-primary"
|
|
26
|
+
*ngFor="let category of product?.categories"
|
|
27
|
+
>
|
|
28
|
+
{{ category?.title }}
|
|
29
|
+
</span>
|
|
30
|
+
</div>
|
|
31
|
+
</mat-card-content>
|
|
32
|
+
|
|
33
|
+
<mat-card-content
|
|
34
|
+
class="mt-3 d-flex justify-content-between align-items-start"
|
|
35
|
+
>
|
|
36
|
+
<div
|
|
37
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
38
|
+
>
|
|
39
|
+
<small class="text-secondary">SKU</small>
|
|
40
|
+
<p class="mb-0">{{ product?.sku }}</p>
|
|
41
|
+
</div>
|
|
42
|
+
<div
|
|
43
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
44
|
+
>
|
|
45
|
+
<small class="text-secondary">Measure</small>
|
|
46
|
+
<p class="mb-0">{{ product?.measure?.title }}</p>
|
|
47
|
+
</div>
|
|
48
|
+
<div
|
|
49
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
50
|
+
>
|
|
51
|
+
<small class="text-secondary">Reorder Point</small>
|
|
52
|
+
<p class="mb-0">{{ product?.reorder_point }}</p>
|
|
53
|
+
</div>
|
|
54
|
+
</mat-card-content>
|
|
55
|
+
|
|
56
|
+
<mat-card-content
|
|
57
|
+
class="mt-3 d-flex flex-column justify-content-start align-items-start gap-1"
|
|
58
|
+
>
|
|
59
|
+
<small class="text-secondary">Description</small>
|
|
60
|
+
<p class="mb-0">{{ product?.description }}</p>
|
|
61
|
+
</mat-card-content>
|
|
62
|
+
|
|
63
|
+
<mat-card-content
|
|
64
|
+
class="mt-5 d-flex justify-content-between align-items-start"
|
|
65
|
+
>
|
|
66
|
+
<div
|
|
67
|
+
*ngIf="stockSummary"
|
|
68
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
69
|
+
>
|
|
70
|
+
<small class="text-secondary">Stock Receipts</small>
|
|
71
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
72
|
+
<span class="material-symbols-outlined"> arrow_downward </span>
|
|
73
|
+
<p class="mb-0" style="font-size: 24px">
|
|
74
|
+
{{ stockSummary?.stock_receipts_quantity_sum }}
|
|
75
|
+
</p>
|
|
76
|
+
</div>
|
|
77
|
+
<small *ngIf="product?.last_stock_receipt" class="text-secondary">
|
|
78
|
+
Last Added On {{ product?.last_stock_receipt?.date | date }}
|
|
79
|
+
</small>
|
|
80
|
+
</div>
|
|
81
|
+
<div
|
|
82
|
+
*ngIf="stockSummary"
|
|
83
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
84
|
+
>
|
|
85
|
+
<small class="text-secondary">Stock Issuances</small>
|
|
86
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
87
|
+
<span class="material-symbols-outlined"> ungroup </span>
|
|
88
|
+
<p class="mb-0" style="font-size: 24px">
|
|
89
|
+
{{ stockSummary?.stock_issuances_quantity_sum }}
|
|
90
|
+
</p>
|
|
91
|
+
</div>
|
|
92
|
+
<small *ngIf="product?.last_stock_issuance" class="text-secondary">
|
|
93
|
+
Last Added On {{ product?.last_stock_issuance?.date | date }}
|
|
94
|
+
</small>
|
|
95
|
+
</div>
|
|
96
|
+
</mat-card-content>
|
|
97
|
+
|
|
98
|
+
<mat-card-content
|
|
99
|
+
*ngIf="stockSummary"
|
|
100
|
+
class="mt-3 d-flex justify-content-center align-items-center"
|
|
101
|
+
>
|
|
102
|
+
<div
|
|
103
|
+
class="d-flex flex-column justify-content-start align-items-start gap-1"
|
|
104
|
+
>
|
|
105
|
+
<small class="text-secondary">On Hand</small>
|
|
106
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
107
|
+
<span class="material-symbols-outlined"> inventory_2 </span>
|
|
108
|
+
<p class="mb-0" style="font-size: 24px">
|
|
109
|
+
{{ stockSummary?.stock_quantity_remaining }}
|
|
110
|
+
</p>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</mat-card-content>
|
|
114
|
+
</mat-card>
|