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,34 @@
|
|
|
1
|
+
<mat-progress-bar mode="indeterminate" *ngIf="isLoading"></mat-progress-bar>
|
|
2
|
+
|
|
3
|
+
<div
|
|
4
|
+
*ngIf="product"
|
|
5
|
+
class="d-flex justify-content-start align-items-start gap-3"
|
|
6
|
+
>
|
|
7
|
+
<div style="width: calc(25% - 1rem)" class="d-flex flex-column gap-3">
|
|
8
|
+
<app-product-basic-info
|
|
9
|
+
[product]="product"
|
|
10
|
+
#productBasicInfoComponent
|
|
11
|
+
(deleted)="onProductDeleted()"
|
|
12
|
+
(saved)="onProductUpdated($event)"
|
|
13
|
+
></app-product-basic-info>
|
|
14
|
+
|
|
15
|
+
<app-product-tax-list [product]="product"></app-product-tax-list>
|
|
16
|
+
</div>
|
|
17
|
+
<div style="width: calc(75%)" class="d-flex flex-column gap-3">
|
|
18
|
+
<app-stock-receipts-list-page
|
|
19
|
+
[product]="product"
|
|
20
|
+
(listUpdated)="
|
|
21
|
+
getProduct(this.id);
|
|
22
|
+
productBasicInfoComponent.loadProductStocksSummary()
|
|
23
|
+
"
|
|
24
|
+
></app-stock-receipts-list-page>
|
|
25
|
+
|
|
26
|
+
<app-stock-issuances-list
|
|
27
|
+
[product]="product"
|
|
28
|
+
(listUpdated)="
|
|
29
|
+
getProduct(this.id);
|
|
30
|
+
productBasicInfoComponent.loadProductStocksSummary()
|
|
31
|
+
"
|
|
32
|
+
></app-stock-issuances-list>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Component, OnInit } from "@angular/core";
|
|
2
|
+
import { ProductService } from "../product.service";
|
|
3
|
+
import { ActivatedRoute } from "@angular/router";
|
|
4
|
+
import { Location } from "@angular/common";
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "app-product-view-page",
|
|
8
|
+
templateUrl: "./product-view-page.component.html",
|
|
9
|
+
})
|
|
10
|
+
export class ProductViewPageComponent implements OnInit {
|
|
11
|
+
public product: any;
|
|
12
|
+
id: number;
|
|
13
|
+
isLoading!: boolean;
|
|
14
|
+
|
|
15
|
+
constructor(
|
|
16
|
+
private productService: ProductService,
|
|
17
|
+
private activatedRoute: ActivatedRoute,
|
|
18
|
+
private location: Location
|
|
19
|
+
) {
|
|
20
|
+
this.id = this.activatedRoute.snapshot.params?.["id"];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
ngOnInit(): void {
|
|
24
|
+
if (this.id) {
|
|
25
|
+
this.getProduct(this.id);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get the product details.
|
|
31
|
+
*
|
|
32
|
+
* @param productId
|
|
33
|
+
*/
|
|
34
|
+
getProduct(productId: any) {
|
|
35
|
+
this.isLoading = true;
|
|
36
|
+
const params: any = {
|
|
37
|
+
with: "type,measure,incomeAccount,expenseAccount,categories,lastStockReceipt,lastStockIssuance,taxes.tax.type",
|
|
38
|
+
};
|
|
39
|
+
this.productService.show(productId, params).subscribe({
|
|
40
|
+
next: (result: any) => {
|
|
41
|
+
this.isLoading = false;
|
|
42
|
+
this.product = result?.item;
|
|
43
|
+
},
|
|
44
|
+
error: () => (this.isLoading = false),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Handle the on product update event.
|
|
50
|
+
*
|
|
51
|
+
* @param product
|
|
52
|
+
*/
|
|
53
|
+
onProductUpdated(product: any) {
|
|
54
|
+
this.getProduct(this.id);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Handle on product delete event.
|
|
59
|
+
*/
|
|
60
|
+
onProductDeleted() {
|
|
61
|
+
this.location.back();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { CommonModule } from "@angular/common";
|
|
3
|
+
import { ProductRoutingModule } from "./product-routing.module";
|
|
4
|
+
import { ProductListComponent } from "./product-list/product-list.component";
|
|
5
|
+
import { ProductFormComponent } from "./product-form/product-form.component";
|
|
6
|
+
import {
|
|
7
|
+
ColumnSelectorModule,
|
|
8
|
+
ImportCsvModule,
|
|
9
|
+
MaterialModule,
|
|
10
|
+
SearchableSelectorModule,
|
|
11
|
+
TimelineFilterModule,
|
|
12
|
+
} from "ngx-techlify-core";
|
|
13
|
+
import { ProductNavBarComponent } from "./product-nav-bar/product-nav-bar.component";
|
|
14
|
+
import { ProductMeasuresListComponent } from "./product-measures-list/product-measures-list.component";
|
|
15
|
+
import { ProductMeasureFormComponent } from "./product-measure-form/product-measure-form.component";
|
|
16
|
+
import { ProductViewPageComponent } from "./product-view-page/product-view-page.component";
|
|
17
|
+
import { ProductFormButtonComponent } from "./product-form-button/product-form-button.component";
|
|
18
|
+
import { ProductDeleteButtonComponent } from "./product-delete-button/product-delete-button.component";
|
|
19
|
+
import { ProductBasicInfoComponent } from "./product-basic-info/product-basic-info.component";
|
|
20
|
+
import { StockReceiptFormModule } from "../stock-receipts/stock-receipt-form/stock-receipt-form.module";
|
|
21
|
+
import { StockIssueFormModule } from "../stock-issuances/stock-issue-form/stock-issue-form.module";
|
|
22
|
+
import { ProductImportPageComponent } from "./product-import-page/product-import-page.component";
|
|
23
|
+
import { StockReceiptsModule } from "../stock-receipts/stock-receipts.module";
|
|
24
|
+
import { StockIssuancesListModule } from "../stock-issuances/stock-issuances-list/stock-issuances-list.module";
|
|
25
|
+
import { MatProgressBarModule } from "@angular/material/progress-bar";
|
|
26
|
+
import { InfiniteScrollModule } from "ngx-infinite-scroll";
|
|
27
|
+
import { FlexModule } from "@angular/flex-layout";
|
|
28
|
+
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
|
|
29
|
+
import { ProductTaxModule } from './product-tax/product-tax.module';
|
|
30
|
+
|
|
31
|
+
@NgModule({
|
|
32
|
+
declarations: [
|
|
33
|
+
ProductListComponent,
|
|
34
|
+
ProductFormComponent,
|
|
35
|
+
ProductNavBarComponent,
|
|
36
|
+
ProductMeasuresListComponent,
|
|
37
|
+
ProductMeasureFormComponent,
|
|
38
|
+
ProductViewPageComponent,
|
|
39
|
+
ProductFormButtonComponent,
|
|
40
|
+
ProductDeleteButtonComponent,
|
|
41
|
+
ProductBasicInfoComponent,
|
|
42
|
+
ProductImportPageComponent,
|
|
43
|
+
],
|
|
44
|
+
imports: [
|
|
45
|
+
CommonModule,
|
|
46
|
+
ProductRoutingModule,
|
|
47
|
+
SearchableSelectorModule,
|
|
48
|
+
TimelineFilterModule,
|
|
49
|
+
StockReceiptFormModule,
|
|
50
|
+
StockIssueFormModule,
|
|
51
|
+
ImportCsvModule,
|
|
52
|
+
StockReceiptsModule,
|
|
53
|
+
StockIssuancesListModule,
|
|
54
|
+
ProductTaxModule,
|
|
55
|
+
MaterialModule,
|
|
56
|
+
MatProgressBarModule,
|
|
57
|
+
InfiniteScrollModule,
|
|
58
|
+
FlexModule,
|
|
59
|
+
ReactiveFormsModule,
|
|
60
|
+
FormsModule,
|
|
61
|
+
ColumnSelectorModule,
|
|
62
|
+
],
|
|
63
|
+
exports: [
|
|
64
|
+
ProductFormComponent,
|
|
65
|
+
ProductBasicInfoComponent,
|
|
66
|
+
ProductFormButtonComponent,
|
|
67
|
+
],
|
|
68
|
+
})
|
|
69
|
+
export class ProductModule {}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Injectable } from "@angular/core";
|
|
2
|
+
import {
|
|
3
|
+
DataManager,
|
|
4
|
+
HttpService,
|
|
5
|
+
TechlifyServiceBaseClass,
|
|
6
|
+
} from "ngx-techlify-core";
|
|
7
|
+
import { Observable } from "rxjs";
|
|
8
|
+
|
|
9
|
+
@Injectable({
|
|
10
|
+
providedIn: "root",
|
|
11
|
+
})
|
|
12
|
+
export class ProductService extends TechlifyServiceBaseClass {
|
|
13
|
+
constructor(
|
|
14
|
+
private dataManager: DataManager,
|
|
15
|
+
public httpService: HttpService
|
|
16
|
+
) {
|
|
17
|
+
super(httpService, "products");
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
getProducts(filters?: any) {
|
|
21
|
+
return this.dataManager.GET(`api/products`, filters);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
getProduct(id: any) {
|
|
25
|
+
return this.dataManager.GET(`api/products/${id}`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
createProduct(model: any) {
|
|
29
|
+
return this.dataManager.POST(`api/products`, model);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
updateProducts(model: any) {
|
|
33
|
+
return this.dataManager.PUT(`api/products/${model.id}`, model);
|
|
34
|
+
}
|
|
35
|
+
deleteProduct(id: any) {
|
|
36
|
+
return this.dataManager.DELETE(`api/products/${id}`);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
getProductMeasures(filters?: any) {
|
|
40
|
+
return this.dataManager.GET(`api/product-measures`, filters);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
createProductMeasure(model: any) {
|
|
44
|
+
return this.dataManager.POST(`api/product-measures`, model);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
updateProductMeasure(model: any) {
|
|
48
|
+
return this.dataManager.PUT(`api/product-measures/${model.id}`, model);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
summary(params?: any): Observable<any> {
|
|
52
|
+
return this.httpService.get("api/products-summary", { params });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {Component, Input} from '@angular/core';
|
|
2
|
+
import {NgForOf, NgIf} from '@angular/common';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'app-product-category-badges',
|
|
6
|
+
standalone: true,
|
|
7
|
+
imports: [
|
|
8
|
+
NgIf,
|
|
9
|
+
NgForOf
|
|
10
|
+
],
|
|
11
|
+
templateUrl: './product-category-badges.component.html',
|
|
12
|
+
styleUrl: './product-category-badges.component.scss'
|
|
13
|
+
})
|
|
14
|
+
export class ProductCategoryBadgesComponent {
|
|
15
|
+
@Input() product: any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
<div class="container">
|
|
2
|
+
<mat-card>
|
|
3
|
+
<mat-card-content class="d-flex justify-content-between align-items-center gap-2">
|
|
4
|
+
<div class="d-flex justify-content-start align-items-center gap-2">
|
|
5
|
+
<h3 class="mb-0">Inventory Value Report</h3>
|
|
6
|
+
<i class="fa-solid fa-file-excel cursor-pointer d-print-none" (click)="export('excel')"></i>
|
|
7
|
+
<i class="fa-solid fa-file-pdf cursor-pointer d-print-none" (click)="export('pdf')"></i>
|
|
8
|
+
</div>
|
|
9
|
+
<form [formGroup]="filterForm" class="d-flex justify-content-end align-items-center gap-2">
|
|
10
|
+
<mat-form-field>
|
|
11
|
+
<mat-label>Search</mat-label>
|
|
12
|
+
<input matInput placeholder="Search products" formControlName="search" />
|
|
13
|
+
</mat-form-field>
|
|
14
|
+
|
|
15
|
+
<mat-form-field>
|
|
16
|
+
<mat-label>Category</mat-label>
|
|
17
|
+
<app-searchable-selector
|
|
18
|
+
apiUrl="api/product-categories"
|
|
19
|
+
formControlName="category_ids"
|
|
20
|
+
[multiple]="true"
|
|
21
|
+
>
|
|
22
|
+
</app-searchable-selector>
|
|
23
|
+
</mat-form-field>
|
|
24
|
+
</form>
|
|
25
|
+
</mat-card-content>
|
|
26
|
+
</mat-card>
|
|
27
|
+
|
|
28
|
+
<mat-card class="mt-3">
|
|
29
|
+
<mat-card-content class="p-0">
|
|
30
|
+
<table
|
|
31
|
+
mat-table [dataSource]="models" class="w-100"
|
|
32
|
+
infiniteScroll
|
|
33
|
+
[infiniteScrollDistance]="2" [infiniteScrollThrottle]="50" (scrolled)="onScroll()"
|
|
34
|
+
matSort (matSortChange)="onSortChange($event)"
|
|
35
|
+
>
|
|
36
|
+
|
|
37
|
+
<!-- # Column -->
|
|
38
|
+
<ng-container matColumnDef="#">
|
|
39
|
+
<th mat-header-cell *matHeaderCellDef> # </th>
|
|
40
|
+
<td mat-cell *matCellDef="let element; let i = index"> {{ i + 1}} </td>
|
|
41
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
42
|
+
</ng-container>
|
|
43
|
+
|
|
44
|
+
<!-- Product Column -->
|
|
45
|
+
<ng-container matColumnDef="Product">
|
|
46
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="name"> Product </th>
|
|
47
|
+
<td mat-cell *matCellDef="let element">
|
|
48
|
+
<a
|
|
49
|
+
[routerLink]="['/inventory/products', element?.id, 'view']"
|
|
50
|
+
class="text-dark"
|
|
51
|
+
>
|
|
52
|
+
{{ element?.name }}
|
|
53
|
+
</a>
|
|
54
|
+
</td>
|
|
55
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
56
|
+
</ng-container>
|
|
57
|
+
|
|
58
|
+
<!-- Description Column -->
|
|
59
|
+
<ng-container matColumnDef="Description">
|
|
60
|
+
<th mat-header-cell *matHeaderCellDef> Description </th>
|
|
61
|
+
<td mat-cell *matCellDef="let element">
|
|
62
|
+
{{ element?.description }}
|
|
63
|
+
</td>
|
|
64
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
65
|
+
</ng-container>
|
|
66
|
+
|
|
67
|
+
<!-- Categories Column -->
|
|
68
|
+
<ng-container matColumnDef="Categories">
|
|
69
|
+
<th mat-header-cell *matHeaderCellDef> Categories </th>
|
|
70
|
+
<td mat-cell *matCellDef="let element">
|
|
71
|
+
<app-product-category-badges [product]="element"></app-product-category-badges>
|
|
72
|
+
</td>
|
|
73
|
+
<td mat-footer-cell *matFooterCellDef>
|
|
74
|
+
<strong>Total</strong>
|
|
75
|
+
</td>
|
|
76
|
+
</ng-container>
|
|
77
|
+
|
|
78
|
+
<!-- Available Stock Column -->
|
|
79
|
+
<ng-container matColumnDef="Available Stock">
|
|
80
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="current_stock"> Available Stock </th>
|
|
81
|
+
<td mat-cell *matCellDef="let element">
|
|
82
|
+
{{ element?.current_stock }}
|
|
83
|
+
</td>
|
|
84
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
85
|
+
</ng-container>
|
|
86
|
+
|
|
87
|
+
<!-- Average Price Column -->
|
|
88
|
+
<ng-container matColumnDef="Average Price">
|
|
89
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="average_purchase_price"> Average Price </th>
|
|
90
|
+
<td mat-cell *matCellDef="let element">
|
|
91
|
+
{{ element?.average_purchase_price | currency }}
|
|
92
|
+
</td>
|
|
93
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
94
|
+
</ng-container>
|
|
95
|
+
|
|
96
|
+
<!-- Inventory Value Column -->
|
|
97
|
+
<ng-container matColumnDef="Inventory Value">
|
|
98
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="inventory_value"> Inventory Value </th>
|
|
99
|
+
<td mat-cell *matCellDef="let element">
|
|
100
|
+
{{ element?.inventory_value | currency }}
|
|
101
|
+
</td>
|
|
102
|
+
<td mat-footer-cell *matFooterCellDef>
|
|
103
|
+
<strong>{{ totalInventoryValue | currency }}</strong>
|
|
104
|
+
</td>
|
|
105
|
+
</ng-container>
|
|
106
|
+
|
|
107
|
+
<!-- Last Purchase Price Column -->
|
|
108
|
+
<ng-container matColumnDef="Last Purchase Price">
|
|
109
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="last_stock_receipt.purchase_price">
|
|
110
|
+
Last Purchase Price
|
|
111
|
+
</th>
|
|
112
|
+
<td mat-cell *matCellDef="let element">
|
|
113
|
+
{{ element?.last_stock_receipt?.purchase_price ?? 0 | currency }}
|
|
114
|
+
</td>
|
|
115
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
116
|
+
</ng-container>
|
|
117
|
+
|
|
118
|
+
<!-- Inventory Value Based On Last Purchase Price Column -->
|
|
119
|
+
<ng-container matColumnDef="Inventory Value Based On Last Purchase Price">
|
|
120
|
+
<th mat-header-cell *matHeaderCellDef mat-sort-header="last_stock_receipt.amount">
|
|
121
|
+
<div>
|
|
122
|
+
<p class="mb-0">Inventory Value</p>
|
|
123
|
+
<small class="text-secondary">Based on last purchase price</small>
|
|
124
|
+
</div>
|
|
125
|
+
</th>
|
|
126
|
+
<td mat-cell *matCellDef="let element">
|
|
127
|
+
{{ element?.last_stock_receipt?.amount ?? 0 | currency }}
|
|
128
|
+
</td>
|
|
129
|
+
<td mat-footer-cell *matFooterCellDef></td>
|
|
130
|
+
</ng-container>
|
|
131
|
+
|
|
132
|
+
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
133
|
+
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
|
134
|
+
<tr mat-footer-row *matFooterRowDef="displayedColumns"></tr>
|
|
135
|
+
</table>
|
|
136
|
+
|
|
137
|
+
<mat-progress-bar mode="indeterminate" *ngIf="isWorking"></mat-progress-bar>
|
|
138
|
+
</mat-card-content>
|
|
139
|
+
</mat-card>
|
|
140
|
+
</div>
|
|
File without changes
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import {Component, OnInit} from '@angular/core';
|
|
2
|
+
import {MatCard, MatCardContent} from '@angular/material/card';
|
|
3
|
+
import {
|
|
4
|
+
MatCell,
|
|
5
|
+
MatCellDef,
|
|
6
|
+
MatColumnDef, MatFooterCell, MatFooterCellDef, MatFooterRow, MatFooterRowDef,
|
|
7
|
+
MatHeaderCell, MatHeaderCellDef, MatHeaderRow,
|
|
8
|
+
MatHeaderRowDef,
|
|
9
|
+
MatRow,
|
|
10
|
+
MatRowDef,
|
|
11
|
+
MatTable
|
|
12
|
+
} from '@angular/material/table';
|
|
13
|
+
import {RequestHelperService, SearchableSelectorModule, TechlifyListingControllerInterface} from 'ngx-techlify-core';
|
|
14
|
+
import {InventoryValueReportService} from '../../inventory-value-report.service';
|
|
15
|
+
import {ActivatedRoute, RouterLink} from '@angular/router';
|
|
16
|
+
import {
|
|
17
|
+
ProductCategoryBadgesComponent
|
|
18
|
+
} from '../../product/widgets/product-category-badges/product-category-badges.component';
|
|
19
|
+
import {CurrencyPipe, NgIf} from '@angular/common';
|
|
20
|
+
import {MatProgressBar} from '@angular/material/progress-bar';
|
|
21
|
+
import {debounceTime, distinctUntilChanged} from 'rxjs';
|
|
22
|
+
import {FormBuilder, FormGroup, ReactiveFormsModule} from '@angular/forms';
|
|
23
|
+
import {MatFormField, MatLabel} from '@angular/material/form-field';
|
|
24
|
+
import {MatInput} from '@angular/material/input';
|
|
25
|
+
import {InfiniteScrollDirective} from 'ngx-infinite-scroll';
|
|
26
|
+
import {MatSort, MatSortHeader, Sort} from '@angular/material/sort';
|
|
27
|
+
|
|
28
|
+
@Component({
|
|
29
|
+
selector: 'app-inventory-value-report',
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [
|
|
32
|
+
MatCard,
|
|
33
|
+
MatCardContent,
|
|
34
|
+
MatTable,
|
|
35
|
+
MatColumnDef,
|
|
36
|
+
MatColumnDef,
|
|
37
|
+
MatCellDef,
|
|
38
|
+
MatRow,
|
|
39
|
+
MatCellDef,
|
|
40
|
+
MatHeaderCell,
|
|
41
|
+
MatCell,
|
|
42
|
+
MatRowDef,
|
|
43
|
+
MatCellDef,
|
|
44
|
+
MatHeaderCell,
|
|
45
|
+
MatColumnDef,
|
|
46
|
+
MatCell,
|
|
47
|
+
MatColumnDef,
|
|
48
|
+
MatHeaderCell,
|
|
49
|
+
MatHeaderRowDef,
|
|
50
|
+
MatHeaderCell,
|
|
51
|
+
MatCell,
|
|
52
|
+
MatHeaderRow,
|
|
53
|
+
MatCell,
|
|
54
|
+
MatCellDef,
|
|
55
|
+
MatHeaderCellDef,
|
|
56
|
+
MatHeaderCellDef,
|
|
57
|
+
MatHeaderCellDef,
|
|
58
|
+
MatHeaderCellDef,
|
|
59
|
+
RouterLink,
|
|
60
|
+
ProductCategoryBadgesComponent,
|
|
61
|
+
CurrencyPipe,
|
|
62
|
+
MatProgressBar,
|
|
63
|
+
NgIf,
|
|
64
|
+
MatFooterRowDef,
|
|
65
|
+
MatFooterRow,
|
|
66
|
+
MatFooterCellDef,
|
|
67
|
+
MatFooterCell,
|
|
68
|
+
MatFormField,
|
|
69
|
+
MatLabel,
|
|
70
|
+
ReactiveFormsModule,
|
|
71
|
+
SearchableSelectorModule,
|
|
72
|
+
MatInput,
|
|
73
|
+
InfiniteScrollDirective,
|
|
74
|
+
MatSort,
|
|
75
|
+
MatSortHeader
|
|
76
|
+
],
|
|
77
|
+
templateUrl: './inventory-value-report.component.html',
|
|
78
|
+
styleUrl: './inventory-value-report.component.scss'
|
|
79
|
+
})
|
|
80
|
+
export class InventoryValueReportComponent extends TechlifyListingControllerInterface implements OnInit {
|
|
81
|
+
displayedColumns: string[] = [
|
|
82
|
+
'#',
|
|
83
|
+
'Product',
|
|
84
|
+
'Description',
|
|
85
|
+
'Categories',
|
|
86
|
+
'Available Stock',
|
|
87
|
+
'Average Price',
|
|
88
|
+
'Inventory Value',
|
|
89
|
+
'Last Purchase Price',
|
|
90
|
+
'Inventory Value Based On Last Purchase Price',
|
|
91
|
+
];
|
|
92
|
+
totalInventoryValue = 0;
|
|
93
|
+
isExporting = false;
|
|
94
|
+
|
|
95
|
+
constructor(
|
|
96
|
+
private service: InventoryValueReportService,
|
|
97
|
+
private activatedRoute: ActivatedRoute,
|
|
98
|
+
private requestHelperService: RequestHelperService,
|
|
99
|
+
private formBuilder: FormBuilder
|
|
100
|
+
) {
|
|
101
|
+
super();
|
|
102
|
+
|
|
103
|
+
this.filterForm = this.formBuilder.group({
|
|
104
|
+
category_ids: [''],
|
|
105
|
+
search: [''],
|
|
106
|
+
sort_by: ['id|desc']
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
ngOnInit() {
|
|
111
|
+
this.updateFormWithQueryParams();
|
|
112
|
+
this.subscribeToFormChanges();
|
|
113
|
+
this.subscribeToRouteChanges();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
loadData(): void {
|
|
117
|
+
const params: any = {
|
|
118
|
+
...this.requestHelperService.convertToFormData(this.filterForm.value),
|
|
119
|
+
page: this.page,
|
|
120
|
+
perPage: this.perPage,
|
|
121
|
+
with: 'categories,lastStockReceipt',
|
|
122
|
+
}
|
|
123
|
+
this.isWorking = true;
|
|
124
|
+
this.service.index(params).subscribe({
|
|
125
|
+
next: (response: any) => {
|
|
126
|
+
this.models = this.models?.concat(response?.data);
|
|
127
|
+
this.isWorking = false;
|
|
128
|
+
|
|
129
|
+
this.models.forEach((model: any) => {
|
|
130
|
+
this.totalInventoryValue += model?.inventory_value;
|
|
131
|
+
})
|
|
132
|
+
},
|
|
133
|
+
error: () => (this.isWorking = false),
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private updateFormWithQueryParams(): void {
|
|
138
|
+
this.requestHelperService.updateFormWithQueryParams(
|
|
139
|
+
this.filterForm,
|
|
140
|
+
{
|
|
141
|
+
category_ids: { multiple: true }
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
private subscribeToFormChanges(): void {
|
|
147
|
+
(this.filterForm as FormGroup).valueChanges.pipe(
|
|
148
|
+
debounceTime(800)
|
|
149
|
+
).subscribe({
|
|
150
|
+
next: () => {
|
|
151
|
+
this.requestHelperService.updateQueryParams(
|
|
152
|
+
this.requestHelperService.convertToFormData(this.filterForm.value)
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
private subscribeToRouteChanges(): void {
|
|
159
|
+
this.activatedRoute.queryParams
|
|
160
|
+
.pipe(debounceTime(500),
|
|
161
|
+
distinctUntilChanged())
|
|
162
|
+
.subscribe(() => {
|
|
163
|
+
this.reload();
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
onSortChange(sort: Sort) {
|
|
168
|
+
let {active, direction} = sort;
|
|
169
|
+
if (!active) active = 'id';
|
|
170
|
+
if (!direction) direction = 'desc';
|
|
171
|
+
this.filterForm.get('sort_by')?.setValue(active + '|' + direction);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export(type: string = 'excel') {
|
|
175
|
+
const params: any = {
|
|
176
|
+
...this.requestHelperService.convertToFormData(this.filterForm.value),
|
|
177
|
+
page: this.page,
|
|
178
|
+
perPage: 50000,
|
|
179
|
+
with: 'categories,lastStockReceipt',
|
|
180
|
+
export_type: type,
|
|
181
|
+
}
|
|
182
|
+
this.isExporting = true;
|
|
183
|
+
this.service.export(params).subscribe({
|
|
184
|
+
next: (response: any) => {
|
|
185
|
+
this.isExporting = false;
|
|
186
|
+
window.open(response?.item?.file_link, '_blank');
|
|
187
|
+
},
|
|
188
|
+
error: () => (this.isExporting = false)
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}
|