@feedmepos/mf-inventory-portal 1.2.50 → 1.2.51-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 (96) hide show
  1. package/dist/{App-DssF0b6P.js → App-bY_YcLwH.js} +75 -70
  2. package/dist/{ApprovalView-DTCayLqE.js → ApprovalView-vzIiBqt2.js} +34 -34
  3. package/dist/{BindingsDialog-C2-THIG0.js → BindingsDialog-DCh2ORem.js} +2 -2
  4. package/dist/{BindingsPicker-Q9W92GzO.js → BindingsPicker-DcNG03p-.js} +2 -2
  5. package/dist/{BindingsTable-BQo8HpbF.js → BindingsTable-B_Yaq-z3.js} +4 -4
  6. package/dist/{ClosingDraftView-B0spMbZd.js → ClosingDraftView-C0T8cWEB.js} +19 -18
  7. package/dist/{ClosingHistoryView-DDVibMzL.js → ClosingHistoryView-DkKAjh7T.js} +27 -27
  8. package/dist/{ClosingTemplateView-BSiNTpkH.js → ClosingTemplateView-DpH1EyW5.js} +18 -17
  9. package/dist/{DeliveryOrderPrintPreview-P9JASYcM.js → DeliveryOrderPrintPreview-B2ecLaLu.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +188 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CaQq9jpc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js} +12 -12
  12. package/dist/FmMultiselectDialog-BviFuAM5.js +618 -0
  13. package/dist/{FmMultiselectDialog-DKEGwdyz.js → FmMultiselectDialog-DGUwruxs.js} +1 -1
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-H5xYFc6B.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js} +3 -3
  15. package/dist/{ImportView-CKg0Z3Bz.js → ImportView-Bk4Z7nGh.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-y1qeqeUV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js} +1 -1
  17. package/dist/{IngredientGroupView-DntDNlVX.js → IngredientGroupView-8GHMMOux.js} +108 -107
  18. package/dist/{IngredientsView-B93tavZW.js → IngredientsView-DbmODx-v.js} +126 -125
  19. package/dist/{IntegrationView-CqEe7SWR.js → IntegrationView-DC0O_Lk4.js} +80 -80
  20. package/dist/{InventoryBindingForm-9E3VsD4v.js → InventoryBindingForm-ln0q25n_.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dgy_eFxJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js} +21 -21
  22. package/dist/{InventoryBindingSummary-DTcoWk_n.js → InventoryBindingSummary-BlNXhS4v.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CIDw4WOz.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dao7XifY.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js} +2 -2
  25. package/dist/{PublishView-GDJsOfeY.js → PublishView-5GkTzxbi.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-DFeZT5Zi.js → PurchaseOrderPrintPreview-Dj5lJ5Ou.js} +1 -1
  27. package/dist/ReceiveRequestView-BAYczSpW.js +2913 -0
  28. package/dist/{RecipeView-DyJs2lsk.js → RecipeView-OLPRwnVx.js} +83 -82
  29. package/dist/{StockView-Cvwfcsf7.js → StockView-TcA5zJqr.js} +113 -112
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CMFiW6FL.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js} +1 -1
  31. package/dist/{SupplierView-C6rIxQOg.js → SupplierView-77qI9YCg.js} +28 -27
  32. package/dist/SurchargeView-CxW2ZZ8a.js +460 -0
  33. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-6C5vAumx.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js} +2 -2
  34. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
  35. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bc0MVyK_.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js} +13 -13
  36. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BSNIRZx3.js → TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js} +129 -129
  37. package/dist/{TransferTemplateView-BVRXLZGK.js → TransferTemplateView-CI0U36Tr.js} +82 -81
  38. package/dist/{UnitView-B9n1vDtN.js → UnitView-fNFFUNlb.js} +20 -19
  39. package/dist/{WarehouseView-oyEVpI9M.js → WarehouseView-BAXgnZnO.js} +21 -20
  40. package/dist/{WastageTemplateView-DCdR4fhu.js → WastageTemplateView-C5qCXWqZ.js} +165 -164
  41. package/dist/api/netsuite.d.ts +8 -0
  42. package/dist/api/surcharge.d.ts +31 -0
  43. package/dist/{app-_hCz0958.js → app-CddcvygU.js} +4513 -4410
  44. package/dist/app-DiX-EfV6.js +8167 -0
  45. package/dist/app.d.ts +52 -0
  46. package/dist/app.js +1 -1
  47. package/dist/{closing-template-y0kvKjaN.js → closing-template-DxdLqlb1.js} +1 -1
  48. package/dist/component-DpCUABT3.js +82 -0
  49. package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
  50. package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
  51. package/dist/{date2-Ct3mwV73.js → date2-CVZy20Q_.js} +1 -1
  52. package/dist/{dayjs.min-iDh15Qvq.js → dayjs.min-NrRtjg32.js} +26 -26
  53. package/dist/{decimal-DliTT0vp.js → decimal-Du3Grkk9.js} +2 -2
  54. package/dist/{defineDeepModel-DmVg-VGa.js → defineDeepModel-DgRoiQBp.js} +1 -1
  55. package/dist/{duplicate-template-BO8LvPWq.js → duplicate-template-DvnZ4BW6.js} +1 -1
  56. package/dist/{feature-Dk3_0hiC.js → feature-CTA18HlL.js} +8947 -6212
  57. package/dist/{format-time-from-id-DOmxxVYQ.js → format-time-from-id-6kt1RMWs.js} +1 -1
  58. package/dist/{format-unit-display-BuliV6Fn.js → format-unit-display-mVJ-nuJe.js} +11 -11
  59. package/dist/{import-export.helper-DpWf4zh7.js → import-export.helper-DWwlJy7N.js} +5 -5
  60. package/dist/{index-CY6-px7W.js → index-BEcj1jGd.js} +3 -3
  61. package/dist/{index-C6nEuFpg.js → index-BfcdagSF.js} +1 -1
  62. package/dist/{index-BZ9fyZbO.js → index-By-jyWOP.js} +1 -1
  63. package/dist/{lodash-DDMf37Aw.js → lodash-D0COOw3m.js} +1 -1
  64. package/dist/netsuite-3LgQ5ztL.js +5402 -0
  65. package/dist/{purchase-order-template-C9GqlQL3.js → purchase-order-template-CJCmABzP.js} +1 -1
  66. package/dist/router/name.d.ts +1 -0
  67. package/dist/{rules-9-OxHCjJ.js → rules-hQBVd1Mn.js} +9 -9
  68. package/dist/{stock-CjJKvKsB.js → stock-4xGaezEy.js} +3 -3
  69. package/dist/{stock-D7gYQHth.js → stock-B6QW-S14.js} +1 -1
  70. package/dist/stores/feature.d.ts +4 -0
  71. package/dist/stores/integration/netsuite.d.ts +5 -0
  72. package/dist/stores/surcharge.d.ts +18 -0
  73. package/dist/style.css +1 -1
  74. package/dist/{supplier-z1X1B4yZ.js → supplier-C-dmFnqw.js} +2 -2
  75. package/dist/surcharge-Db4IiSEQ.js +71 -0
  76. package/dist/tsconfig.app.tsbuildinfo +1 -1
  77. package/dist/{use-ingredient-select-dialog-B4u8ttOK.js → use-ingredient-select-dialog-DgYSZDN8.js} +2 -2
  78. package/dist/{use-inventory-binding-dialog-CaFu9DlH.js → use-inventory-binding-dialog-CnYcA_Fo.js} +2 -2
  79. package/dist/{use-template-enabled-locations-2-KQU0hLX3.js → use-template-enabled-locations-2-B_aZrMUU.js} +2 -2
  80. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
  81. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
  82. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  83. package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
  84. package/dist/{vue-i18n-UG5lCeUG.js → vue-i18n-BCEDBY4T.js} +563 -563
  85. package/dist/{xlsx-INrtkMe5.js → xlsx-CJsXiiEq.js} +398 -398
  86. package/dist/{xlsx.util-OqI8IJfw.js → xlsx.util-CSudzOii.js} +1 -1
  87. package/package.json +5 -5
  88. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DkvLYf5A.js +0 -231
  89. package/dist/FmMultiselectDialog-BgLyRNeD.js +0 -598
  90. package/dist/ReceiveRequestView-BvYpGKEB.js +0 -2913
  91. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
  92. package/dist/app-uBuHtW8m.js +0 -8127
  93. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +0 -2
  94. package/dist/netsuite-CVg13Lx5.js +0 -5131
  95. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +0 -9
  96. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +0 -22
@@ -1,4 +1,4 @@
1
- import { r as m, u, a as d } from "./xlsx-INrtkMe5.js";
1
+ import { r as m, u, a as d } from "./xlsx-CJsXiiEq.js";
2
2
  function* x(o) {
3
3
  const [e, n] = o.split(":"), t = /\d+/, l = t.exec(e), c = t.exec(n);
4
4
  if (!l || !c)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.2.50",
3
+ "version": "1.2.51-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@feedmepos/core": "2.14.40",
18
- "@feedmepos/custom-attributes": "0.0.1-rc.3",
18
+ "@feedmepos/custom-attributes": "0.0.1-rc.5",
19
19
  "@feedmepos/feature-flag": "^0.0.15",
20
20
  "@feedmepos/menu": "1.5.22",
21
21
  "@feedmepos/mf-common": "^1.28.2",
@@ -43,12 +43,12 @@
43
43
  "vue-i18n": "^10.0.5",
44
44
  "vue-router": "^4.4.0",
45
45
  "xlsx": "^0.18.5",
46
- "@feedmepos/inventory-core": "^1.0.1-dev.2",
46
+ "@feedmepos/inventory-core-2": "^2.0.0",
47
47
  "@feedmepos/inventory-core-dart": "^1.0.0",
48
48
  "@feedmepos/inventory-core-js": "^1.0.1",
49
- "@feedmepos/netsuite-core": "^1.0.0",
49
+ "@feedmepos/inventory-core": "^1.0.1-dev.2",
50
50
  "@feedmepos/zod-inventory": "^2.0.0",
51
- "@feedmepos/inventory-core-2": "^2.0.0"
51
+ "@feedmepos/netsuite-core": "^1.0.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@rushstack/eslint-patch": "^1.10.3",
@@ -1,231 +0,0 @@
1
- import { J as O, u as D, t as C, T as A, V as E, y as V } from "./app-_hCz0958.js";
2
- import { a as L, t as R } from "./rules-9-OxHCjJ.js";
3
- import { u as z } from "./supplier-z1X1B4yZ.js";
4
- import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as w, openBlock as P, createElementBlock as U, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as J, createBlock as g, createCommentVNode as N, Fragment as Y, renderList as K, unref as M } from "vue";
5
- import { F as Q } from "./FmMultiselectDialog-BgLyRNeD.js";
6
- function X(e, r, a) {
7
- var o;
8
- if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
9
- return r;
10
- if (!a)
11
- return {
12
- costPerUnit: r.costPerUnit
13
- };
14
- const n = e.measurements.find((p) => p.id === a);
15
- return n ? {
16
- costPerUnit: r.costPerUnit,
17
- measurement: n
18
- } : {
19
- costPerUnit: r.costPerUnit
20
- };
21
- }
22
- function ne(e, r, a, u) {
23
- var T, _, s;
24
- const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
25
- (t) => t.skuId === e._id
26
- )) == null ? void 0 : s.defaultCost;
27
- if (u != null && u.manualTotalCost)
28
- return {
29
- cost: u.manualTotalCost,
30
- skuDefaultCost: e.defaultCost ?? void 0,
31
- supplierOverrideCost: l ?? void 0
32
- };
33
- const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +L(p) / +L(o == null ? void 0 : o.measurement.conversion) : +L(p) : void 0, b = v ? a ? v * +L(a.conversion) : v : void 0, h = b ? +L(r) * b : void 0;
34
- return {
35
- cost: h ? {
36
- ...R(h ?? 0, 2),
37
- currency: O()
38
- } : {
39
- amount: 0,
40
- precision: 0,
41
- currency: O()
42
- },
43
- skuDefaultCost: e.defaultCost ?? void 0,
44
- supplierOverrideCost: l ?? void 0
45
- };
46
- }
47
- function k(e) {
48
- const r = E.safeParse(e);
49
- if (r.success) return r.data;
50
- throw new Error("Invalid supplier data");
51
- }
52
- function S(e) {
53
- return {
54
- _id: e.doc._id,
55
- internal: e.type,
56
- contactName: e.doc.profile.name,
57
- name: e.doc.profile.name ?? "",
58
- email: e.doc.profile.email,
59
- phoneNumber: e.doc.profile.phoneNo,
60
- registrationNumber: e.doc.profile.regNo,
61
- address: e.doc.profile.address ?? {
62
- line1: "",
63
- state: "",
64
- city: "",
65
- postcode: "",
66
- country: ""
67
- },
68
- preparationTime: e.preparationTime
69
- };
70
- }
71
- function re(e, r, a = !1, u = !1) {
72
- const l = z(), n = D();
73
- n.watchLocation(async () => {
74
- var y;
75
- await l.readSuppliers();
76
- const s = e();
77
- if ((y = s.supplier) != null && y._id) return;
78
- const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
79
- r({
80
- ...s,
81
- supplier: t ? k(t) : i ? S(i) : s.supplier
82
- });
83
- });
84
- const o = f(
85
- () => {
86
- var s, t;
87
- return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.enum.transfer : C.enum.purchase;
88
- }
89
- ), p = f({
90
- get() {
91
- var s, t;
92
- return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
93
- },
94
- set(s) {
95
- const t = e() ?? {};
96
- if (o.value === C.enum.purchase) {
97
- const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
98
- r({
99
- ...t,
100
- supplier: F ? k(F) : t.supplier
101
- });
102
- return;
103
- }
104
- const y = (a ? n.allLocations.filter(
105
- (d) => d.doc._id !== n.currentLocation.doc._id
106
- ) : n.allLocations).find((d) => d.doc._id === s);
107
- r({
108
- ...t,
109
- supplier: y ? S(y) : t.supplier
110
- });
111
- }
112
- }), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
113
- const s = [...v.value], t = [...b.value];
114
- return u ? [...t, ...s] : t;
115
- }), c = f(() => {
116
- var m;
117
- const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
118
- return (a ? n.allLocations.filter(
119
- (i) => i.doc._id !== n.currentLocation.doc._id
120
- ) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
121
- }), T = f(() => {
122
- if (o.value === C.enum.purchase) {
123
- const t = v.value.map((i) => ({
124
- label: i.name,
125
- value: i._id
126
- })), m = b.value.map((i) => ({
127
- label: i.name,
128
- sublabel: "Business supplier",
129
- value: i._id
130
- }));
131
- return u ? [...t, ...m] : m;
132
- }
133
- return c.value.map((t) => ({
134
- label: t.name,
135
- sublabel: t.internal ? `${t.internal}` : void 0,
136
- value: t._id
137
- }));
138
- }), _ = f(() => {
139
- var i, y;
140
- const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
141
- if (o.value === C.enum.purchase) {
142
- const d = l.suppliers.find((F) => F._id === s);
143
- return d ? k(d) : null;
144
- }
145
- const m = n.allLocations.find((d) => d.doc._id);
146
- return m ? S(m) : null;
147
- });
148
- return {
149
- transferLocationModel: p,
150
- transferLocationOptions: T,
151
- locationOptionsTypePurchase: h,
152
- locationOptionsTypePurchaseLocationLevel: v,
153
- locationOptionsTypeTransfer: c,
154
- selectedLocation: _
155
- };
156
- }
157
- const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
158
- __name: "FmFilterableMenuOptions",
159
- props: /* @__PURE__ */ j({
160
- modelValue: {},
161
- maxHeight: {},
162
- width: {},
163
- handleItemChange: { type: Function },
164
- items: {},
165
- options: {}
166
- }, {
167
- search: {},
168
- searchModifiers: {}
169
- }),
170
- emits: ["update:search"],
171
- setup(e) {
172
- const r = e, a = q(e, "search"), u = f(
173
- () => new Q(r.items, ["label", "sublabel"], {
174
- caseSensitive: !1,
175
- sort: !0
176
- })
177
- ), l = f(() => u.value.search(a.value)), n = x();
178
- return console.log({ stickyRef: n }), (o, p) => {
179
- const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
180
- return P(), U("div", {
181
- class: "relative",
182
- style: W({ width: o.width })
183
- }, [
184
- I("div", {
185
- class: "sticky top-0 bg-white mb-8",
186
- ref_key: "stickyRef",
187
- ref: n
188
- }, [
189
- $(b, {
190
- modelValue: a.value,
191
- "onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
192
- placeholder: "Filter options"
193
- }, {
194
- append: J(() => [
195
- a.value ? (P(), g(v, {
196
- key: 0,
197
- variant: "tertiary",
198
- "prepend-icon": "close",
199
- onClick: p[0] || (p[0] = (c) => a.value = "")
200
- })) : N("", !0)
201
- ]),
202
- _: 1
203
- }, 8, ["modelValue"])
204
- ], 512),
205
- I("div", Z, [
206
- (P(!0), U(Y, null, K(l.value, (c, T) => (P(), g(h, {
207
- key: T,
208
- label: c.label,
209
- sublabel: c.sublabel,
210
- "model-value": M(V)(o.modelValue, c.value),
211
- onClick: () => o.handleItemChange(M(V)(o.modelValue, c.value), c),
212
- onVnodeMounted: (_) => {
213
- var s, t;
214
- return M(V)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
215
- }
216
- }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
217
- l.value.length ? N("", !0) : (P(), g(h, {
218
- key: 0,
219
- disabled: "",
220
- label: "No options available"
221
- }))
222
- ])
223
- ], 4);
224
- };
225
- }
226
- });
227
- export {
228
- ae as _,
229
- ne as c,
230
- re as u
231
- };