@feedmepos/mf-inventory-portal 1.7.2-dev.3 → 1.7.2-dev.5

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 (94) hide show
  1. package/dist/{App-ByQsWsux.js → App-sgOs35aA.js} +4 -4
  2. package/dist/{ApprovalView-B8IHv-MP.js → ApprovalView-CPwDNlgh.js} +8 -8
  3. package/dist/{BindingsDialog-BWFYy018.js → BindingsDialog-DpArZE1W.js} +2 -2
  4. package/dist/{BindingsPicker-BTrQKndU.js → BindingsPicker-nL4r_o4G.js} +2 -2
  5. package/dist/{BindingsTable-CUswvy2T.js → BindingsTable-6nGQghKG.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-r8C2SPMH.js → BulkReceiveRequestView-CI_cdOab.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DZHlmTL9.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-ByvPyfqs.js} +1 -1
  8. package/dist/{ClosingDraftView-CIfZLApY.js → ClosingDraftView-BxBBJN2U.js} +19 -19
  9. package/dist/{ClosingHistoryView-CaD1xhmM.js → ClosingHistoryView-BFKeLC1c.js} +5 -5
  10. package/dist/{ClosingTemplateView-C0OvsmJ4.js → ClosingTemplateView-CDOgVXV6.js} +16 -16
  11. package/dist/{DefaultView-l0-z0i7P.js → DefaultView-NwCKxFeV.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-BhqqbNbz.js → DeliveryOrderPrintPreview-tYTyfuJ3.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DAp4el8X.js → EmailDialog.vue_vue_type_script_setup_true_lang-OBFDl_6u.js} +23 -23
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D3eXBcWj.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-M89ua0y9.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9GpwdRQ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKRLykeg.js} +2 -2
  16. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BOedO11b.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DZtBc9rV.js} +2 -2
  17. package/dist/{FmMultiselectDialog-D9oGXLFE.js → FmMultiselectDialog-BrXP0QyX.js} +1 -1
  18. package/dist/{FmMultiselectDialog-CXtK2ZsB.js → FmMultiselectDialog-DXzQevSA.js} +2 -2
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CzZ70aMc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DrSTg7py.js} +5 -5
  20. package/dist/{ImportView-ANrHmifJ.js → ImportView-DtniVSEg.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CXM8rPZC.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-d63QOGCF.js} +1 -1
  22. package/dist/{IngredientGroupView-DCi5Qd1w.js → IngredientGroupView-tt6DHwY7.js} +5 -5
  23. package/dist/{IngredientsView-DRPxANKi.js → IngredientsView-CsTkraJt.js} +15 -15
  24. package/dist/{IntegrationExplorerView-DBoqKSj4.js → IntegrationExplorerView-Cv0tvGcz.js} +4 -4
  25. package/dist/{IntegrationView-agoanWWf.js → IntegrationView-PYcCY7pD.js} +2709 -2467
  26. package/dist/{InventoryBindingForm-w1kjkywV.js → InventoryBindingForm-DTiTveNk.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8pIbAJN.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ch1f11d3.js} +5 -5
  28. package/dist/{InventoryBindingSummary-DOc7osOY.js → InventoryBindingSummary-BpH9ALn_.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdI0HiI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-oRfjOztM.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DB7XfTRW.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CuIo7PEh.js} +1 -1
  31. package/dist/{ProductionView-xNl142Fq.js → ProductionView-eAxWfdGl.js} +7 -7
  32. package/dist/{PublishView-BkYY1dbq.js → PublishView-DHqZ_Khw.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-Cy5LC5G8.js → PurchaseOrderPrintPreview-Hju7svbs.js} +2 -2
  34. package/dist/{ReceiveRequestView-C9Ge3dBk.js → ReceiveRequestView-Qo1Ju84Z.js} +13 -13
  35. package/dist/{RecipeView-DHkXKjMW.js → RecipeView-BMgKWZr9.js} +17 -17
  36. package/dist/{SettingsView-Eedo-gm4.js → SettingsView-BUfOMyYk.js} +4 -4
  37. package/dist/{StockView-CTloP4Oy.js → StockView-t0O8PRUV.js} +21 -21
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DQ_ZgiFI.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DteSCJSr.js} +1 -1
  39. package/dist/{SupplierView-DEfd3W5T.js → SupplierView-DynMI3e_.js} +12 -12
  40. package/dist/{SurchargeView-fvvvzM2f.js → SurchargeView-CA4Xquxf.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfLOGQWO.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-1gIrn5CO.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CqJIt_pF.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Rd5i3o6l.js} +1 -1
  43. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8mbR7VQG.js +4682 -0
  44. package/dist/{TransferTemplateView-BfSI7X8j.js → TransferTemplateView-AcUDiVtZ.js} +20 -20
  45. package/dist/{UnitCostHistoryView-BFce-XiD.js → UnitCostHistoryView-HKG9kBJj.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DBbzawh6.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-GOpoebUk.js} +4 -4
  47. package/dist/{UnitView-eDezcmmU.js → UnitView-DvBFzxzu.js} +7 -7
  48. package/dist/{WarehouseView-WqYXomci.js → WarehouseView-DdvHLm_U.js} +5 -5
  49. package/dist/{WastageTemplateView-dHB1_9wS.js → WastageTemplateView-BHRtowdx.js} +14 -14
  50. package/dist/api/codemax.d.ts +2 -0
  51. package/dist/{app-BkI7JOut.js → app-CmltXEIy.js} +259 -251
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-Wt20QIwL.js → closing-template-CuSjZM_v.js} +1 -1
  54. package/dist/{date2-CrQebr0O.js → date2-CSIqacwy.js} +1 -1
  55. package/dist/{dayjs.min-Dm5Jl29E.js → dayjs.min-L-DOn9FB.js} +1 -1
  56. package/dist/{decimal-oFnzK0l5.js → decimal-DQr1CGve.js} +2 -2
  57. package/dist/{defineDeepModel-DhQwyn5A.js → defineDeepModel-Di-rNBqK.js} +1 -1
  58. package/dist/{duplicate-template-BGxc36Vo.js → duplicate-template-C1jIZ7Dp.js} +1 -1
  59. package/dist/{feature-OSSn5heM.js → feature-D0QofU0G.js} +2 -2
  60. package/dist/{format-time-from-id-BPGeqy_q.js → format-time-from-id-CxTQUcxA.js} +1 -1
  61. package/dist/{format-unit-display-B4Z1I9Zr.js → format-unit-display-BY5Bzvxl.js} +12 -12
  62. package/dist/{import-export.helper-B1aP4IVt.js → import-export.helper-CraoKtWt.js} +6 -6
  63. package/dist/{index-t3KRi2bz.js → index-BItVFhm3.js} +1 -1
  64. package/dist/{index-CwCsZdsF.js → index-Cc28qYrs.js} +1 -1
  65. package/dist/index-CfMYAIng.js +294 -0
  66. package/dist/{inventory-core-dart.default-DpFGa4FK.js → inventory-core-dart.default-DAIR38_q.js} +1 -1
  67. package/dist/{jszip.min-SYQ9tNfS.js → jszip.min-DRsG5r8H.js} +2 -2
  68. package/dist/{lz-string-DOfeReOs.js → lz-string-DL6qcS0P.js} +1 -1
  69. package/dist/{netsuite-DkR3T1Jo.js → netsuite-DkCOdQdu.js} +2 -2
  70. package/dist/{number-M0fTNQZX.js → number-CW5l8gfM.js} +3 -3
  71. package/dist/{predefined-templates-BT-JaWkO.js → predefined-templates-CAwt-Dte.js} +1 -1
  72. package/dist/{purchase-order-template-CsuMKskZ.js → purchase-order-template-wpQSFrFy.js} +1 -1
  73. package/dist/{recalculationUtils-Z_4CmpRM.js → recalculationUtils-eI_1G-1t.js} +1 -1
  74. package/dist/{rules-eDovZZt4.js → rules-C4l55Hep.js} +2 -2
  75. package/dist/{stock-DN2CnjyS.js → stock-BvzJ_Xgq.js} +1 -1
  76. package/dist/{stock-Cr6BUVXY.js → stock-C2_dljZq.js} +3 -3
  77. package/dist/{supplier-pEZ0UFf8.js → supplier-CvVnnw5v.js} +2 -2
  78. package/dist/{surcharge-BBlPpII9.js → surcharge-C8TThA-8.js} +1 -1
  79. package/dist/tsconfig.app.tsbuildinfo +1 -1
  80. package/dist/{uom-rules-DS7RjEO9.js → uom-rules-D5ZoSlXt.js} +1 -1
  81. package/dist/{use-ingredient-select-dialog-B2UpzYAg.js → use-ingredient-select-dialog-DP8hEfVW.js} +2 -2
  82. package/dist/{use-inventory-binding-dialog-Dj4vt0Iw.js → use-inventory-binding-dialog-C-juC_Hb.js} +2 -2
  83. package/dist/{use-template-enabled-locations-vtVTL9Wg.js → use-template-enabled-locations-FElDcCCM.js} +2 -2
  84. package/dist/{use-transfer-locations-jovUkrWP.js → use-transfer-locations-y4CSNcrf.js} +2 -2
  85. package/dist/{useHrmPermission-Bqa_CJkq.js → useHrmPermission-DGXWYR3s.js} +1 -1
  86. package/dist/{useNavigationMenu-DJrl-u99.js → useNavigationMenu-MIZDirGc.js} +2 -2
  87. package/dist/{useSseClient-C4prtQ7f.js → useSseClient-CQmabS1w.js} +1 -1
  88. package/dist/views/receive-request/helper/resolve-po-item-cost.d.ts +12 -0
  89. package/dist/views/receive-request/helper/resolve-po-item-cost.spec.d.ts +1 -0
  90. package/dist/{vue-i18n-Ynah-A_3.js → vue-i18n-DmL1-LYL.js} +158 -158
  91. package/dist/{xlsx.util-dU4t7hoK.js → xlsx.util-DxdEGhYc.js} +2 -2
  92. package/package.json +3 -3
  93. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Ei4Dj1lb.js +0 -4660
  94. package/dist/index-BOX713UW.js +0 -278
@@ -1,278 +0,0 @@
1
- import { ref as v, computed as m } from "vue";
2
- import { u as C } from "./netsuite-DkR3T1Jo.js";
3
- import { A as E, a as I, u as f, m as L, G as h } from "./app-BkI7JOut.js";
4
- import { useSnackbar as p } from "@feedmepos/ui-library";
5
- import { u as b } from "./feature-OSSn5heM.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 = v(k());
32
- function B() {
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 t, e, n, a;
46
- const r = E(), o = I();
47
- try {
48
- const s = await o.readCachedMenu();
49
- l.value.menu = ((t = s.modules) == null ? void 0 : t.item) ?? [], l.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], l.value.variants = ((n = s.modules) == null ? void 0 : n.variant) ?? [];
50
- const i = (((a = s.modules) == null ? void 0 : a.category) ?? []).map((y) => ({
51
- ...y,
52
- _id: y._id === void 0 ? null : y._id
53
- }));
54
- l.value.categories = i, l.value.setting = await r.readSetting();
55
- } catch (s) {
56
- p().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", s);
61
- }
62
- }
63
- };
64
- }
65
- const S = L((r, o) => {
66
- const t = f();
67
- return {
68
- async readSetting() {
69
- const e = t.currentLocationId, n = `${r.codemaxBackendUrl}/${e}/setting`;
70
- return await o.get(n);
71
- },
72
- async updateSetting(e) {
73
- const n = t.currentLocationId, a = `${r.codemaxBackendUrl}/${n}/setting`;
74
- return await o.put(a, e);
75
- },
76
- async authenticate() {
77
- const e = t.currentLocationId, n = `${r.codemaxBackendUrl}/${e}/auth`;
78
- return await o.post(n);
79
- },
80
- async refreshAuth() {
81
- const e = t.currentLocationId, n = `${r.codemaxBackendUrl}/${e}/refresh-auth`;
82
- return await o.post(n);
83
- },
84
- async reupload(e) {
85
- const n = t.currentLocationId, a = `${r.codemaxBackendUrl}/${n}/reupload`;
86
- return await o.post(a, e);
87
- },
88
- async syncInvoice(e) {
89
- const n = t.currentLocationId, a = `${r.codemaxBackendUrl}/${n}/sync-invoice`;
90
- return await o.post(a, { billId: e });
91
- },
92
- async readBills(e) {
93
- const n = t.currentLocationId, a = `${r.codemaxBackendUrl}/${n}/bills?start=${e.start}&end=${e.end}`;
94
- return await o.get(a);
95
- },
96
- async readLatestSyncStatus(e, n) {
97
- const a = t.currentLocationId, s = `${r.codemaxBackendUrl}/${a}/sync-log/latest`;
98
- return await o.post(s, {
99
- billIds: e,
100
- includePayload: (n == null ? void 0 : n.includePayload) === !0
101
- });
102
- },
103
- async readSyncLog(e) {
104
- const n = t.currentLocationId, a = new URLSearchParams();
105
- e.billId && a.set("billId", e.billId), e.billSeq && a.set("billSeq", e.billSeq), e.includePayload && a.set("includePayload", "true"), e.limit != null && a.set("limit", String(e.limit)), e.offset != null && a.set("offset", String(e.offset));
106
- const s = a.toString(), i = `${r.codemaxBackendUrl}/${n}/sync-log${s ? `?${s}` : ""}`;
107
- return await o.get(i);
108
- },
109
- async reuploadBills(e) {
110
- const n = t.currentLocationId, a = `${r.codemaxBackendUrl}/${n}/reupload-bills`;
111
- return await o.post(a, { billIds: e });
112
- }
113
- };
114
- });
115
- function A() {
116
- return {
117
- setting: {
118
- _id: "",
119
- enable: !1,
120
- credentials: {
121
- loginId: "",
122
- password: "",
123
- branchCode: ""
124
- },
125
- tokens: null,
126
- bindings: []
127
- },
128
- menu: [],
129
- group: [],
130
- variants: [],
131
- categories: []
132
- };
133
- }
134
- const c = v(A());
135
- function D() {
136
- const r = I();
137
- return {
138
- get isEnabled() {
139
- return c.value.setting.enable;
140
- },
141
- get state() {
142
- return c.value;
143
- },
144
- async init() {
145
- var t, e, n, a;
146
- const o = S();
147
- try {
148
- const s = await r.readCachedMenu();
149
- c.value.menu = ((t = s.modules) == null ? void 0 : t.item) ?? [], c.value.group = ((e = s.modules) == null ? void 0 : e.group) ?? [], c.value.variants = ((n = s.modules) == null ? void 0 : n.variant) ?? [], c.value.categories = (((a = s.modules) == null ? void 0 : a.category) ?? []).map((i) => ({
150
- ...i,
151
- _id: i._id ?? null
152
- })), c.value.setting = await o.readSetting();
153
- } catch (s) {
154
- throw p().open({
155
- title: "Something went wrong",
156
- message: "Cannot fetch Codemax integration info. Please try again.",
157
- type: "error"
158
- }), console.error("Error at fetching Codemax integration info", s), s;
159
- }
160
- },
161
- async save(o) {
162
- await S().updateSetting(o), c.value.setting = o;
163
- }
164
- };
165
- }
166
- function x() {
167
- return {
168
- locationId: ""
169
- };
170
- }
171
- const d = v(x());
172
- function F() {
173
- const r = f(), o = h();
174
- return r.watchLocation(async (t) => {
175
- if (b().enabledXilnexOpeningMigration) {
176
- if (!t) {
177
- d.value = x();
178
- return;
179
- }
180
- d.value.locationId = t.dbName;
181
- const n = await o.readLastClosing(t.dbName);
182
- n ? d.value.closingDocumentId = n._id : d.value.closingDocumentId = "";
183
- }
184
- }), {
185
- get isEnabled() {
186
- const t = b();
187
- return m(() => t.enabledXilnexOpeningMigration).value;
188
- },
189
- get state() {
190
- return d.value;
191
- },
192
- async fetchClosingDocumentId() {
193
- const t = f(), e = await o.readLastClosing(t.currentLocationDBName);
194
- e ? d.value.closingDocumentId = e._id : d.value.closingDocumentId = "";
195
- }
196
- };
197
- }
198
- function w() {
199
- return {
200
- locationId: ""
201
- };
202
- }
203
- const g = v(w());
204
- function U() {
205
- const r = f(), o = h();
206
- return r.watchLocation(async (t) => {
207
- if (b()) {
208
- if (!t) {
209
- g.value = w();
210
- return;
211
- }
212
- g.value.locationId = t.dbName;
213
- const n = await o.readLastClosing(t.dbName);
214
- n ? g.value.closingDocumentId = n._id : g.value.closingDocumentId = "";
215
- }
216
- }), {
217
- get isEnabled() {
218
- const t = b();
219
- return m(() => t.enabledSynergyOpeningMigration).value;
220
- },
221
- get state() {
222
- return g.value;
223
- },
224
- async fetchClosingDocumentId() {
225
- const t = f(), e = await o.readLastClosing(t.currentLocationDBName);
226
- e ? g.value.closingDocumentId = e._id : g.value.closingDocumentId = "";
227
- }
228
- };
229
- }
230
- function R() {
231
- const r = C(), o = B(), t = D(), e = F(), n = U(), a = m(() => r.isEnabled), s = m(() => o.isEnabled), i = m(() => t.isEnabled), y = m(() => e.isEnabled), $ = m(() => n.isEnabled);
232
- return {
233
- get enabledIntegrations() {
234
- return [
235
- a.value,
236
- s.value,
237
- i.value,
238
- y.value,
239
- $.value
240
- ].filter((u) => u).length;
241
- },
242
- get isNetSuiteEnabled() {
243
- return a.value;
244
- },
245
- get isCodemaxEnabled() {
246
- return i.value;
247
- },
248
- async fetchFoodMarketHubSetting() {
249
- try {
250
- await o.init();
251
- } catch (u) {
252
- console.error("Error fetching FoodMarketHub setting:", u);
253
- }
254
- },
255
- async fetchNetSuiteSetting() {
256
- try {
257
- await r.readSetting();
258
- } catch (u) {
259
- console.error("Error fetching NetSuite setting:", u);
260
- }
261
- },
262
- async fetchCodemaxSetting() {
263
- try {
264
- await t.init();
265
- } catch (u) {
266
- console.error("Error fetching Codemax setting:", u);
267
- }
268
- }
269
- };
270
- }
271
- export {
272
- S as a,
273
- D as b,
274
- F as c,
275
- U as d,
276
- R as e,
277
- B as u
278
- };