@feedmepos/mf-inventory-portal 1.7.1 → 1.7.2-dev.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.
Files changed (108) hide show
  1. package/dist/{App-B0lFktSW.js → App-CPiZvK24.js} +4 -4
  2. package/dist/{ApprovalView-Ka7ehCQd.js → ApprovalView-j2I6kj-5.js} +8 -8
  3. package/dist/{BindingsDialog-B_YgAtlu.js → BindingsDialog-C1MnTVRl.js} +2 -2
  4. package/dist/{BindingsPicker-CtCjgzt7.js → BindingsPicker-CpFT0xnq.js} +2 -2
  5. package/dist/{BindingsTable-BNPP0R_A.js → BindingsTable-CFDJOUOJ.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-B0bj9Syr.js → BulkReceiveRequestView-LgTAo-XE.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CiGVQ_6T.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CiUxzxG1.js} +1 -1
  8. package/dist/ClosingDraftView-CjSrjCXS.js +4496 -0
  9. package/dist/{ClosingHistoryView-BS3DFkAz.js → ClosingHistoryView-BcV1olc-.js} +5 -5
  10. package/dist/{ClosingTemplateView-B8njPb4E.js → ClosingTemplateView-B6664Bln.js} +16 -16
  11. package/dist/{DefaultView-BLv5wqcv.js → DefaultView-k_cX_Rgq.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-CnuwXphl.js → DeliveryOrderPrintPreview-Cndz9b3u.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-9lUR6kHg.js → EmailDialog.vue_vue_type_script_setup_true_lang-iQkhFqNy.js} +2262 -2262
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-fC_rbTfa.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DYkSnV3W.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvX5xI9b.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CaC6H0vH.js} +2 -2
  16. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-hFKGb0Aa.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHGRyJJ2.js} +2 -2
  17. package/dist/{FmMultiselectDialog-QrLJQhIf.js → FmMultiselectDialog-CqSQTy19.js} +2 -2
  18. package/dist/{FmMultiselectDialog-D231CKWQ.js → FmMultiselectDialog-DcbsQv6c.js} +1 -1
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C6RH3VSF.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bw3hWPX4.js} +5 -5
  20. package/dist/{ImportView-DwLmW0jr.js → ImportView-BEmVVjdx.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-LrPxsgOW.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVcaNiLi.js} +1 -1
  22. package/dist/{IngredientGroupView-D4SUVGTu.js → IngredientGroupView-Bcprjpgu.js} +5 -5
  23. package/dist/{IngredientsView-CUUYlGfs.js → IngredientsView-DUDgGzz8.js} +15 -15
  24. package/dist/{IntegrationExplorerView-C2xZMSEm.js → IntegrationExplorerView-D5RBT4zR.js} +4 -4
  25. package/dist/{IntegrationView-4J5SmJPp.js → IntegrationView-AXBRZnWR.js} +2680 -2531
  26. package/dist/{InventoryBindingForm-B7YadUXu.js → InventoryBindingForm-DRjr8bvd.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3lKJcut.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-2yPbAm.js} +5 -5
  28. package/dist/{InventoryBindingSummary-Cw8ppkq9.js → InventoryBindingSummary-BHUNtJey.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CvXdUIPp.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BeCnzNZk.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C7Gol-ne.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D7bm57E7.js} +1 -1
  31. package/dist/{ProductionView-D7_RHbkz.js → ProductionView-B3SBsS5h.js} +7 -7
  32. package/dist/{PublishView-CXalRknq.js → PublishView-BpjI7rmM.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-CRrYe6dD.js → PurchaseOrderPrintPreview-C8M6Yax5.js} +2 -2
  34. package/dist/{ReceiveRequestView-CR2_mNj2.js → ReceiveRequestView-BlBrbNoW.js} +13 -13
  35. package/dist/{RecipeView-Yzx4gY33.js → RecipeView-BdBjxgQF.js} +17 -17
  36. package/dist/{SettingsView-Dfih5z0X.js → SettingsView-D5h0Kjma.js} +4 -4
  37. package/dist/{StockView-B-OIr9-B.js → StockView-6niOF2HE.js} +21 -21
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B2vo0BFA.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-95yKD8E_.js} +1 -1
  39. package/dist/{SupplierView-CKCPRXZV.js → SupplierView-BOfucFHD.js} +12 -12
  40. package/dist/{SurchargeView-Da7YbT5A.js → SurchargeView-B4NOWDNm.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Btecdwc5.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B-T5hfVU.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgDzjf87.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BS0WQ2q-.js} +1 -1
  43. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BMFNKKmV.js +4660 -0
  44. package/dist/{TransferTemplateView-C3Nx1W5t.js → TransferTemplateView-CKytDs9X.js} +20 -20
  45. package/dist/{UnitCostHistoryView-DYHBMjfW.js → UnitCostHistoryView-Pk7ErOkB.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BmLZ-7TM.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D0vgeUur.js} +4 -4
  47. package/dist/{UnitView-Ccwmj-B0.js → UnitView-CR8xb5TS.js} +7 -7
  48. package/dist/{WarehouseView-DiXvpGkL.js → WarehouseView-DxCFvRDK.js} +5 -5
  49. package/dist/{WastageTemplateView-CAbu77vo.js → WastageTemplateView-ZOcx-Sw1.js} +14 -14
  50. package/dist/api/closing-draft.d.ts +5 -1
  51. package/dist/api/codemax.d.ts +22 -0
  52. package/dist/{app-BWvf7Pbw.js → app-UXaVUOFj.js} +1330 -1277
  53. package/dist/app.d.ts +24 -0
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-hsPMmSJP.js → closing-template-BL_7K26j.js} +1 -1
  56. package/dist/{date2-BJfdfeJO.js → date2-DWsaERsg.js} +1 -1
  57. package/dist/{dayjs.min-DadksG29.js → dayjs.min-D9-6o_pb.js} +1 -1
  58. package/dist/{decimal-C9idbIOo.js → decimal-D9akmsuY.js} +2 -2
  59. package/dist/{defineDeepModel-CH4cTogB.js → defineDeepModel-CRz54q7h.js} +1 -1
  60. package/dist/{duplicate-template-BMd6tF6Y.js → duplicate-template-CXCfl2NH.js} +1 -1
  61. package/dist/{feature-Bt9vQSu_.js → feature-4PKcZSe0.js} +2 -2
  62. package/dist/{format-time-from-id-B6Oxxcmv.js → format-time-from-id-DoWSyd1w.js} +1 -1
  63. package/dist/{format-unit-display-B32MF8YP.js → format-unit-display-BXx5PrhU.js} +12 -12
  64. package/dist/{import-export.helper-BWex8GSP.js → import-export.helper-C-njSW-F.js} +6 -6
  65. package/dist/index-DYf5BKra.js +267 -0
  66. package/dist/{index-G8zX1OUg.js → index-D__km1gW.js} +1 -1
  67. package/dist/{index-BrmQVR18.js → index-xatqRsUm.js} +1 -1
  68. package/dist/{inventory-core-dart.default-DMYZxr7z.js → inventory-core-dart.default-CG-4fho4.js} +1 -1
  69. package/dist/{jszip.min-BiUtLGgB.js → jszip.min-CuKGTB3Q.js} +129 -129
  70. package/dist/{lz-string-CVwhv8uD.js → lz-string-Di2ld6md.js} +1 -1
  71. package/dist/{netsuite-jqgyyem9.js → netsuite-B_qujeBG.js} +2 -2
  72. package/dist/{number-4scgLaMY.js → number-BaHim51P.js} +3 -3
  73. package/dist/{predefined-templates-CK5XSRe_.js → predefined-templates-BSLRBeB0.js} +1 -1
  74. package/dist/{purchase-order-template-D4JHGs3l.js → purchase-order-template-QNfXyt-d.js} +1 -1
  75. package/dist/{recalculationUtils-B9BLpNFc.js → recalculationUtils-B3CX9rQC.js} +1 -1
  76. package/dist/{rules-CEKN0fON.js → rules-DYMYmtzv.js} +2 -2
  77. package/dist/{stock-DEDIyrA9.js → stock-5uSaJQTg.js} +1 -1
  78. package/dist/{stock-BSIJKbLk.js → stock-C1jT8ufE.js} +3 -3
  79. package/dist/stores/integration/codemax.d.ts +0 -7
  80. package/dist/{supplier-CnEm0FdT.js → supplier-BoX9Fh0G.js} +2 -2
  81. package/dist/{surcharge-BTe4mWtB.js → surcharge-FJVEiOpa.js} +1 -1
  82. package/dist/tsconfig.app.tsbuildinfo +1 -1
  83. package/dist/{uom-rules-C1nV-lQn.js → uom-rules-BHrAwdAH.js} +1 -1
  84. package/dist/{use-ingredient-select-dialog-COiU0eIQ.js → use-ingredient-select-dialog-mGOA_61r.js} +2 -2
  85. package/dist/{use-inventory-binding-dialog-Dhpo1L4-.js → use-inventory-binding-dialog-BSN0xrPb.js} +2 -2
  86. package/dist/{use-template-enabled-locations-BZN5nUrH.js → use-template-enabled-locations-Dy-dcIiU.js} +2 -2
  87. package/dist/{use-transfer-locations-DDtX2nBf.js → use-transfer-locations-Da0XeXxv.js} +2 -2
  88. package/dist/{useHrmPermission-EZ3pfyTj.js → useHrmPermission-Bp7HhhKY.js} +1 -1
  89. package/dist/{useNavigationMenu-CIGwi2pS.js → useNavigationMenu-DGixRVd0.js} +2 -2
  90. package/dist/{useSseClient-Ccmg1XUC.js → useSseClient-C5GrB7_M.js} +1 -1
  91. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -2
  92. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +4 -4
  93. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +2 -2
  94. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +2 -2
  95. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +6 -6
  96. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +1 -1
  97. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +12 -12
  98. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +0 -14
  99. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +0 -14
  100. package/dist/views/integration/components/CodemaxSyncStatusDialog.vue.d.ts +19 -0
  101. package/dist/{vue-i18n-XR3XXGIN.js → vue-i18n-DvlJg9yn.js} +299 -299
  102. package/dist/{xlsx.util-Cit0fL6n.js → xlsx.util-BF_fV-5o.js} +2 -2
  103. package/package.json +5 -5
  104. package/dist/ClosingDraftView-QJKj8C9l.js +0 -4398
  105. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DuKUOvt4.js +0 -4682
  106. package/dist/index-BgS2MztF.js +0 -257
  107. package/dist/views/receive-request/helper/resolve-po-item-cost.d.ts +0 -12
  108. /package/dist/views/{receive-request/helper/resolve-po-item-cost.spec.d.ts → closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.spec.d.ts} +0 -0
@@ -1,257 +0,0 @@
1
- import { ref as p, computed as m } from "vue";
2
- import { u as C } from "./netsuite-jqgyyem9.js";
3
- import { A as $, a as S, u as f, m as L, E as h } from "./app-BWvf7Pbw.js";
4
- import { useSnackbar as x } from "@feedmepos/ui-library";
5
- import { u as b } from "./feature-Bt9vQSu_.js";
6
- function k() {
7
- return {
8
- setting: {
9
- _id: "",
10
- enable: !1,
11
- bindings: [],
12
- uniqueCode: "",
13
- branchCode: "",
14
- server: {
15
- password: "",
16
- host: "",
17
- username: "",
18
- port: "",
19
- directory: ""
20
- },
21
- histories: [],
22
- modifiers: [],
23
- exportAsJson: !1
24
- },
25
- menu: [],
26
- group: [],
27
- variants: [],
28
- categories: []
29
- };
30
- }
31
- const l = p(k());
32
- function A() {
33
- return {
34
- // state
35
- get isEnabled() {
36
- return l.value.setting.enable;
37
- },
38
- get isBusinessLocation() {
39
- return f().businessLevel;
40
- },
41
- get state() {
42
- return l.value;
43
- },
44
- async init() {
45
- var e, t, n, s;
46
- const o = $(), a = S();
47
- try {
48
- const r = await a.readCachedMenu();
49
- l.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], l.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], l.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [];
50
- const i = (((s = r.modules) == null ? void 0 : s.category) ?? []).map((v) => ({
51
- ...v,
52
- _id: v._id === void 0 ? null : v._id
53
- }));
54
- l.value.categories = i, l.value.setting = await o.readSetting();
55
- } catch (r) {
56
- x().open({
57
- title: "Something went wrong",
58
- message: "Cannot fetch integration info. Please try again.",
59
- type: "error"
60
- }), console.error("Error at fetching integration info", r);
61
- }
62
- }
63
- };
64
- }
65
- const y = L((o, a) => {
66
- const e = f();
67
- return {
68
- async readSetting() {
69
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/setting`;
70
- return await a.get(n);
71
- },
72
- async updateSetting(t) {
73
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/setting`;
74
- return await a.put(s, t);
75
- },
76
- async authenticate() {
77
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/auth`;
78
- return await a.post(n);
79
- },
80
- async refreshAuth() {
81
- const t = e.currentLocationId, n = `${o.codemaxBackendUrl}/${t}/refresh-auth`;
82
- return await a.post(n);
83
- },
84
- async reupload(t) {
85
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/reupload`;
86
- return await a.post(s, t);
87
- },
88
- async syncInvoice(t) {
89
- const n = e.currentLocationId, s = `${o.codemaxBackendUrl}/${n}/sync-invoice`;
90
- return await a.post(s, { billId: t });
91
- }
92
- };
93
- });
94
- function D() {
95
- return {
96
- setting: {
97
- _id: "",
98
- enable: !1,
99
- credentials: {
100
- loginId: "",
101
- password: "",
102
- branchCode: ""
103
- },
104
- tokens: null,
105
- bindings: [],
106
- histories: []
107
- },
108
- menu: [],
109
- group: [],
110
- variants: [],
111
- categories: []
112
- };
113
- }
114
- const c = p(D());
115
- function F() {
116
- const o = S();
117
- return {
118
- get isEnabled() {
119
- return c.value.setting.enable;
120
- },
121
- get state() {
122
- return c.value;
123
- },
124
- async init() {
125
- var e, t, n, s;
126
- const a = y();
127
- try {
128
- const r = await o.readCachedMenu();
129
- c.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], c.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], c.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [], c.value.categories = (((s = r.modules) == null ? void 0 : s.category) ?? []).map((i) => ({
130
- ...i,
131
- _id: i._id ?? null
132
- })), c.value.setting = await a.readSetting();
133
- } catch (r) {
134
- throw x().open({
135
- title: "Something went wrong",
136
- message: "Cannot fetch Codemax integration info. Please try again.",
137
- type: "error"
138
- }), console.error("Error at fetching Codemax integration info", r), r;
139
- }
140
- },
141
- async save(a) {
142
- await y().updateSetting(a), c.value.setting = a;
143
- }
144
- };
145
- }
146
- function I() {
147
- return {
148
- locationId: ""
149
- };
150
- }
151
- const d = p(I());
152
- function _() {
153
- const o = f(), a = h();
154
- return o.watchLocation(async (e) => {
155
- if (b().enabledXilnexOpeningMigration) {
156
- if (!e) {
157
- d.value = I();
158
- return;
159
- }
160
- d.value.locationId = e.dbName;
161
- const n = await a.readLastClosing(e.dbName);
162
- n ? d.value.closingDocumentId = n._id : d.value.closingDocumentId = "";
163
- }
164
- }), {
165
- get isEnabled() {
166
- const e = b();
167
- return m(() => e.enabledXilnexOpeningMigration).value;
168
- },
169
- get state() {
170
- return d.value;
171
- },
172
- async fetchClosingDocumentId() {
173
- const e = f(), t = await a.readLastClosing(e.currentLocationDBName);
174
- t ? d.value.closingDocumentId = t._id : d.value.closingDocumentId = "";
175
- }
176
- };
177
- }
178
- function w() {
179
- return {
180
- locationId: ""
181
- };
182
- }
183
- const g = p(w());
184
- function N() {
185
- const o = f(), a = h();
186
- return o.watchLocation(async (e) => {
187
- if (b()) {
188
- if (!e) {
189
- g.value = w();
190
- return;
191
- }
192
- g.value.locationId = e.dbName;
193
- const n = await a.readLastClosing(e.dbName);
194
- n ? g.value.closingDocumentId = n._id : g.value.closingDocumentId = "";
195
- }
196
- }), {
197
- get isEnabled() {
198
- const e = b();
199
- return m(() => e.enabledSynergyOpeningMigration).value;
200
- },
201
- get state() {
202
- return g.value;
203
- },
204
- async fetchClosingDocumentId() {
205
- const e = f(), t = await a.readLastClosing(e.currentLocationDBName);
206
- t ? g.value.closingDocumentId = t._id : g.value.closingDocumentId = "";
207
- }
208
- };
209
- }
210
- function O() {
211
- const o = C(), a = A(), e = F(), t = _(), n = N(), s = m(() => o.isEnabled), r = m(() => a.isEnabled), i = m(() => e.isEnabled), v = m(() => t.isEnabled), E = m(() => n.isEnabled);
212
- return {
213
- get enabledIntegrations() {
214
- return [
215
- s.value,
216
- r.value,
217
- i.value,
218
- v.value,
219
- E.value
220
- ].filter((u) => u).length;
221
- },
222
- get isNetSuiteEnabled() {
223
- return s.value;
224
- },
225
- get isCodemaxEnabled() {
226
- return i.value;
227
- },
228
- async fetchFoodMarketHubSetting() {
229
- try {
230
- await a.init();
231
- } catch (u) {
232
- console.error("Error fetching FoodMarketHub setting:", u);
233
- }
234
- },
235
- async fetchNetSuiteSetting() {
236
- try {
237
- await o.readSetting();
238
- } catch (u) {
239
- console.error("Error fetching NetSuite setting:", u);
240
- }
241
- },
242
- async fetchCodemaxSetting() {
243
- try {
244
- await e.init();
245
- } catch (u) {
246
- console.error("Error fetching Codemax setting:", u);
247
- }
248
- }
249
- };
250
- }
251
- export {
252
- F as a,
253
- _ as b,
254
- N as c,
255
- O as d,
256
- A as u
257
- };
@@ -1,12 +0,0 @@
1
- import type { FdoDinero } from '@feedmepos/core/entity';
2
- /**
3
- * Per-item effective total cost for printing: the persisted `totalCost`, or
4
- * the same auto-calculated cost (supplier override / SKU default cost) that
5
- * the order-details dialog shows. Returns undefined when no cost is known,
6
- * so callers can keep rendering "N/A".
7
- *
8
- * Stateless: computes from the PO document's embedded data only (item sku
9
- * default cost, order supplier supply items) via the pure
10
- * FfCalculator.calculateDefaultCost — no form controller, no stores.
11
- */
12
- export declare function createPoItemCostResolver(po: FdoPurchaseOrder): (item: FdoPurchaseOrderItem) => FdoDinero | undefined;