@feedmepos/mf-inventory-portal 0.0.23-dev.30 → 0.0.23-dev.4

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.
Files changed (100) hide show
  1. package/dist/{App-Brc7GX7l.js → App-DReDvY0M.js} +73 -85
  2. package/dist/{ApprovalView-CMRd7pcC.js → ApprovalView-BMZlYmRk.js} +27 -24
  3. package/dist/{BindingsDialog-DoakDtFI.js → BindingsDialog-Y2K4I7H7.js} +4 -4
  4. package/dist/{BindingsPicker-BC3rjqKw.js → BindingsPicker-DKBq9c37.js} +9 -8
  5. package/dist/{BindingsTable-xKRvhEV5.js → BindingsTable-45v4SDfp.js} +22 -18
  6. package/dist/{ClosingTemplateView-DFxLuV8k.js → ClosingTemplateView-CKJVYSbj.js} +286 -272
  7. package/dist/FmDroppableField-8RzKjEdL.js +154 -0
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js} +23 -22
  9. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +436 -0
  10. package/dist/FmMultiselectDialog-D7YtdoyJ.js +415 -0
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js} +49 -48
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js} +5 -5
  13. package/dist/{IngredientGroupView-C4bL0O5L.js → IngredientGroupView-BuP-HGeg.js} +69 -63
  14. package/dist/IngredientsView-DMRN-odY.js +1613 -0
  15. package/dist/{IntegrationView-aSAeFNtp.js → IntegrationView-kYCaKG0o.js} +95 -92
  16. package/dist/{InventoryBindingForm-C7rIUyV1.js → InventoryBindingForm-BXHq4h-n.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js} +27 -25
  18. package/dist/{InventoryBindingSummary-Ix92wSE6.js → InventoryBindingSummary-Bjasfc_v.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js} +24 -23
  21. package/dist/{PurchaseOrderPrintPreview-DJSF8YaR.js → PurchaseOrderPrintPreview-CmjkfTTS.js} +14 -13
  22. package/dist/{ReceiveRequestView-BUyShiP2.js → ReceiveRequestView-aQZJO8sq.js} +1302 -1325
  23. package/dist/{RecipeView-c0XB2_P8.js → RecipeView-DXO43tFi.js} +85 -79
  24. package/dist/{StockView-DNPNymCW.js → StockView-D9no-mrA.js} +1446 -1338
  25. package/dist/{SupplierView-Cz0hgito.js → SupplierView-DAx7E7sR.js} +787 -2325
  26. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +1209 -0
  28. package/dist/TransferTemplateView-CfxdQF1t.js +1261 -0
  29. package/dist/{UnitView-BKWbaZfc.js → UnitView-CQPGZ8-r.js} +44 -40
  30. package/dist/{WarehouseView-BgE3teyT.js → WarehouseView-jy-RNCgy.js} +100 -94
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/closing.d.ts +0 -1
  33. package/dist/api/netsuite.d.ts +1 -1
  34. package/dist/app-KnSMkJBV.js +33496 -0
  35. package/dist/app.d.ts +0 -56
  36. package/dist/app.js +2 -2
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -1
  38. package/dist/components/row-action.enum.d.ts +0 -1
  39. package/dist/composable/defineDeepModel.d.ts +1 -1
  40. package/dist/date2-CIeUqUIc.js +117 -0
  41. package/dist/dayjs.min-Df5jSnDJ.js +282 -0
  42. package/dist/{decimal-CZ3lFF__.js → decimal-BAc9M88Q.js} +1 -1
  43. package/dist/defineDeepModel-BfuQAIoM.js +13 -0
  44. package/dist/{feature-By_PNrnn.js → feature-dwB4OxRQ.js} +6 -12
  45. package/dist/format-time-from-id-BbvzyIN6.js +15 -0
  46. package/dist/{format-unit-display-ZlJT10zr.js → format-unit-display-BBWblJEt.js} +171 -162
  47. package/dist/fuzzy-B9ryZ9VZ.js +41 -0
  48. package/dist/index-BN0CY3sZ.js +22277 -0
  49. package/dist/index-Bj1fJum-.js +45 -0
  50. package/dist/index-C4yL_7rR.js +10545 -0
  51. package/dist/netsuite-ByWOS6tI.js +194 -0
  52. package/dist/normalizeArguments-DP7Hrren.js +1552 -0
  53. package/dist/router/name.d.ts +0 -2
  54. package/dist/row-action.enum-PMKMRrZR.js +50 -0
  55. package/dist/rules-C12nWDD1.js +198 -0
  56. package/dist/stores/feature.d.ts +0 -1
  57. package/dist/stores/integration/netsuite.d.ts +1 -69
  58. package/dist/stores/inventory.d.ts +4 -1
  59. package/dist/style.css +1 -1
  60. package/dist/{supplier-eaFF1izE.js → supplier-DJC0UZWv.js} +15 -15
  61. package/dist/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/{use-inventory-binding-dialog-14JW4t6q.js → use-inventory-binding-dialog-PEQbFRvO.js} +11 -10
  63. package/dist/use-template-enabled-locations-2-k9g5t8tt.js +86 -0
  64. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +192 -24
  65. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +193 -25
  66. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  67. package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
  68. package/dist/xlsx-B4XHad7S.js +24004 -0
  69. package/dist/xlsx.util-BSO4SHJi.js +78 -0
  70. package/package.json +3 -3
  71. package/dist/ClosingDraftView-DlaVbAHy.js +0 -1190
  72. package/dist/IngredientsView-CfS8FgxA.js +0 -1657
  73. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +0 -1227
  74. package/dist/TransferTemplateView-B7kzPdfT.js +0 -1264
  75. package/dist/api/adjustment-template.d.ts +0 -23
  76. package/dist/api/closing-draft.d.ts +0 -6
  77. package/dist/app-Bkg0JUKr.js +0 -84182
  78. package/dist/index-B4nO9Djl.js +0 -12087
  79. package/dist/stock-DNajb8lV.js +0 -125
  80. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +0 -2
  81. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +0 -18
  82. package/dist/views/adjustment-template/import/export.d.ts +0 -60
  83. package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +0 -2
  84. package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +0 -22
  85. package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +0 -6
  86. package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +0 -2
  87. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -1295
  88. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +0 -16
  89. package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +0 -35
  90. package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +0 -20
  91. package/dist/views/adjustment-template/wastage-template/props.d.ts +0 -29
  92. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -1273
  93. package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +0 -2
  94. package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +0 -22
  95. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -621
  96. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +0 -25
  97. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -3621
  98. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +0 -1
  99. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +0 -19
  100. package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +0 -4
@@ -1,125 +0,0 @@
1
- import { W as m, u as B, a as d, am as k, K as p } from "./app-Bkg0JUKr.js";
2
- import { useCoreStore as v } from "@feedmepos/mf-common";
3
- import { useSnackbar as y } from "@feedmepos/ui-library";
4
- import { ref as $, computed as S } from "vue";
5
- const b = m((r, o) => {
6
- const u = B(), a = v(), c = y();
7
- return o.onError(async (t) => {
8
- t.name === "SvcForbiddenError" && (c == null || c.open({
9
- title: t.title,
10
- message: t.message,
11
- type: "error"
12
- }));
13
- }), {
14
- async readStockBalance() {
15
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/stock-balance`;
16
- return await o.get(e);
17
- },
18
- async readSkuBalance() {
19
- var s;
20
- const t = u.currentLocationDBName, e = `${r.inventoryBackendUrl}/${t}/sku/balance`;
21
- return (((s = a.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await o.get(e) : await o.get(`${e}?useInventoryDoc=true`);
22
- },
23
- async readSingleAdjustment(t) {
24
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/adjustment`;
25
- return await o.get(`${n}?adjustmentId=${t}`);
26
- },
27
- async readStockAdjustment(t, e, n) {
28
- const s = u.currentLocationDBName, i = `${r.inventoryBackendUrl}/${s}/sku`;
29
- return await o.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
30
- },
31
- async convertSku(t) {
32
- var i;
33
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/convert`;
34
- return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
35
- },
36
- async adjustSku(t) {
37
- var i;
38
- const e = u.currentLocationDBName, n = `${r.inventoryBackendUrl}/${e}/sku/adjust`;
39
- return (((i = a.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await o.post(n, t) : await o.post(`${n}?useInventoryDoc=true`, t);
40
- },
41
- recalculation: {
42
- getRecalculateAbility() {
43
- var s;
44
- const e = `business_${(s = a.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
45
- return o.get(n);
46
- },
47
- startRecalculateTask() {
48
- var s;
49
- const e = `business_${(s = a.currentBusiness.value) == null ? void 0 : s._id}`, n = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
50
- return o.post(n);
51
- }
52
- }
53
- };
54
- });
55
- function g() {
56
- return {
57
- stockBalance: {
58
- _id: "",
59
- items: []
60
- },
61
- productBalance: []
62
- };
63
- }
64
- const f = p(0), w = {
65
- id: "",
66
- balance: f,
67
- closing: null,
68
- costs: null
69
- }, l = $(g()), A = () => {
70
- const r = d(), o = S(() => {
71
- var t;
72
- const a = (t = l.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), c = (e) => {
73
- var n;
74
- return ((n = a == null ? void 0 : a.get(e)) == null ? void 0 : n[0]) ?? { ...w, id: e };
75
- };
76
- return r.skus.map((e) => c(e._id));
77
- }), u = b();
78
- return {
79
- // state
80
- get stockBalance() {
81
- return {
82
- ...l.value.stockBalance,
83
- skus: o.value
84
- };
85
- },
86
- set stockBalance(a) {
87
- l.value.stockBalance = a;
88
- },
89
- get productBalance() {
90
- return l.value.productBalance;
91
- },
92
- set productBalance(a) {
93
- l.value.productBalance = a;
94
- },
95
- // actions
96
- async readStockBalance() {
97
- this.stockBalance = await u.readStockBalance();
98
- },
99
- async readProductBalance() {
100
- this.productBalance = [];
101
- const a = d(), c = k({
102
- recipes: a.recipes,
103
- skus: a.skus,
104
- inventoryBindingMapping: {},
105
- stockBalance: this.stockBalance
106
- // silent: true
107
- });
108
- function t(e, n) {
109
- return Object.prototype.hasOwnProperty.call(e, n);
110
- }
111
- for (const e in c.convertCountdown)
112
- if (t(c.convertCountdown, e)) {
113
- const n = c.convertCountdown[e];
114
- this.productBalance.push({
115
- id: e,
116
- count: n
117
- });
118
- }
119
- }
120
- };
121
- };
122
- export {
123
- b as a,
124
- A as u
125
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,18 +0,0 @@
1
- export interface AdjustmentTemplateImportItemProps {
2
- type: 'create' | 'update';
3
- name: string;
4
- locations?: FdoInventoryLocation[] | null | undefined;
5
- items?: FdoAdjustmentTemplateItem[] | null | undefined;
6
- errors: string[];
7
- }
8
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
- export default _default;
10
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
- type __VLS_TypePropsToRuntimeProps<T> = {
12
- [K in keyof T]-?: {} extends Pick<T, K> ? {
13
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
- } : {
15
- type: import('vue').PropType<T[K]>;
16
- required: true;
17
- };
18
- };
@@ -1,60 +0,0 @@
1
- import type { WorkBook, WorkSheet } from 'xlsx';
2
- import type { RevisionIdMeta } from '@feedmepos/inventory-core';
3
- import type { FdoMenuV4 } from '@feedmepos/menu/entity';
4
- export declare enum ReservedSheetNames {
5
- Ingredients = "Ingredients"
6
- }
7
- export interface AdjustmentItemRow {
8
- type?: string;
9
- code?: string | null;
10
- name?: string;
11
- /** abbrev for base unit or measurement unit */
12
- unit?: string;
13
- enabled?: boolean;
14
- }
15
- export interface TemplateInfo {
16
- id: string;
17
- name: string;
18
- reference: string;
19
- locations: string[];
20
- }
21
- export interface ImportCreateResult {
22
- type: 'create';
23
- template: Omit<FdoAdjustmentTemplate, '_id'>;
24
- excelSheetName: string;
25
- errors: string[];
26
- }
27
- export interface ImportUpdateResult {
28
- type: 'update';
29
- original: FdoAdjustmentTemplate;
30
- template: FdoAdjustmentTemplate & RevisionIdMeta;
31
- excelSheetName: string;
32
- errors: string[];
33
- }
34
- export type ImportResult = {
35
- invalidExcel: boolean;
36
- invalidExcelMessage?: string;
37
- importCreateResult: ImportCreateResult[];
38
- importUpdateResult: ImportUpdateResult[];
39
- };
40
- export type ObjectWithIndex<T> = {
41
- index: number;
42
- data: T;
43
- };
44
- export declare const FakeUnit: FdoInventoryUnit;
45
- export declare function templateItemToExcelRow(item: FdoAdjustmentTemplateItem, inventory: FdoInventory, menu?: FdoMenuV4 | null): AdjustmentItemRow[];
46
- export type ColIdHeader<T> = {
47
- id: keyof T;
48
- name: string;
49
- };
50
- export declare function getExcelHeaders(): ColIdHeader<AdjustmentItemRow>[];
51
- export declare function exportTemplates(templates: FdoAdjustmentTemplate[]): string;
52
- export declare function exportImportTemplate(): string;
53
- /** @returns empty array if for all locations */
54
- export declare function extractLocations(locationRow: string[]): {
55
- location?: FdoInventoryLocation;
56
- errors: string[];
57
- }[];
58
- export declare function worksheetToTemplateMeta(sheet: WorkSheet): TemplateInfo;
59
- export declare function worksheetToItemRow(sheet: WorkSheet): ObjectWithIndex<AdjustmentItemRow>[];
60
- export declare function getItemToCreateUpdate(workbook: WorkBook): ImportResult;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,22 +0,0 @@
1
- import type { WastageTemplateDialogProps } from './props';
2
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<WastageTemplateDialogProps>>, {
3
- validateInputs: () => void;
4
- resetInputsValidation: () => void;
5
- resetInputs: () => void;
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:show": (show: boolean) => void;
8
- submitted: () => void;
9
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<WastageTemplateDialogProps>>> & Readonly<{
10
- "onUpdate:show"?: ((show: boolean) => any) | undefined;
11
- onSubmitted?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
- export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToRuntimeProps<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
- close: () => void;
3
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
4
- onClose?: (() => any) | undefined;
5
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;