@feedmepos/mf-inventory-portal 1.2.7-dev.8 → 1.2.7

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 (89) hide show
  1. package/dist/{App-DIqdK9d8.js → App-BtLCesbn.js} +1 -1
  2. package/dist/{ApprovalView-BKK_eDzO.js → ApprovalView-Ba4XBhGf.js} +68 -69
  3. package/dist/{BindingsDialog-BRzOVR30.js → BindingsDialog-BbBUniCu.js} +2 -2
  4. package/dist/{BindingsPicker-BtCdvAgU.js → BindingsPicker-C3q3ROku.js} +1 -1
  5. package/dist/{BindingsTable-DnS3ypzP.js → BindingsTable-BTxWMif_.js} +1 -1
  6. package/dist/{ClosingDraftView-BZLUoCOk.js → ClosingDraftView-DGITBnaY.js} +203 -203
  7. package/dist/ClosingTemplateView-eRvwxXBq.js +1908 -0
  8. package/dist/{DeliveryOrderPrintPreview-ClbyQK9l.js → DeliveryOrderPrintPreview-CUaHpblV.js} +8 -8
  9. package/dist/{FmAdminBadge-DcDyRj6K.js → FmAdminBadge-BdwGZY-f.js} +6 -6
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-lDkElrkF.js +227 -0
  11. package/dist/{FmMultiselectDialog-CYPN-2of.js → FmMultiselectDialog-BETfHs3j.js} +1 -1
  12. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C4QKxv_V.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BNdbeRQp.js} +23 -23
  13. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bollyyl1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-VYMMcwLl.js} +1 -1
  14. package/dist/{IngredientGroupView-baNWf_60.js → IngredientGroupView-C4d9b3Td.js} +12 -12
  15. package/dist/IngredientsView-BvqWuIVT.js +1876 -0
  16. package/dist/{IntegrationView-CiwxB7rj.js → IntegrationView-CWFzRDWO.js} +1552 -1430
  17. package/dist/{InventoryBindingForm-BCY8vtGx.js → InventoryBindingForm-Cx0Prlq8.js} +1 -1
  18. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-hjbfvhVh.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-cpR3Sf2Y.js} +41 -41
  19. package/dist/{InventoryBindingSummary-CCPxd5ir.js → InventoryBindingSummary-l8XvpxVU.js} +1 -1
  20. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CmqDgde9.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjRvIX-v.js} +1 -1
  21. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DnpRhNG0.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gjuZveKy.js} +11 -11
  22. package/dist/{PublishView-CDrYaJX9.js → PublishView-D2iUnDan.js} +14 -14
  23. package/dist/{PurchaseOrderPrintPreview-QeqPa532.js → PurchaseOrderPrintPreview-DdLvM-wt.js} +11 -11
  24. package/dist/{ReceiveRequestView-C8NJ7ILf.js → ReceiveRequestView-DpF5ZzvH.js} +145 -148
  25. package/dist/{RecipeView-Bmvl_poR.js → RecipeView-Dvtm8o1Y.js} +49 -49
  26. package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +59 -0
  27. package/dist/StockView-CRDu_GQ_.js +2086 -0
  28. package/dist/{SupplierView-Dq3vMn5q.js → SupplierView-7GtIJ3Fz.js} +1015 -1133
  29. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DbmLtbZt.js +2494 -0
  30. package/dist/{TransferTemplateView-NTw0N3zX.js → TransferTemplateView-Cmvg-yvW.js} +130 -131
  31. package/dist/{UnitView-BFeT0jpH.js → UnitView-DjVm1iVX.js} +59 -59
  32. package/dist/WarehouseView-CBso3SXT.js +1034 -0
  33. package/dist/api/inventory.d.ts +0 -8
  34. package/dist/api/netsuite.d.ts +0 -3
  35. package/dist/api/purchase-order-template.d.ts +0 -1
  36. package/dist/api/purchase-order.d.ts +0 -2
  37. package/dist/api/warehouse.d.ts +1 -3
  38. package/dist/{app-D5vamHiS.js → app-Z-ylwRmy.js} +17113 -17876
  39. package/dist/app.d.ts +9 -96
  40. package/dist/app.js +3 -3
  41. package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
  42. package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -9
  43. package/dist/{decimal-BVxO-7VE.js → decimal-D1pJ2776.js} +1 -1
  44. package/dist/{format-unit-display-CvUKKMA2.js → format-unit-display-9BMm-8A4.js} +404 -372
  45. package/dist/{index-_TXzIRmu.js → index-BOl10vcm.js} +1 -1
  46. package/dist/{index-BmPwzWR6.js → index-rEIM0AVC.js} +1 -1
  47. package/dist/{stock-4-rgOZcm.js → stock-B8ewk80v.js} +1 -1
  48. package/dist/stores/feature.d.ts +0 -10
  49. package/dist/stores/integration/netsuite.d.ts +0 -19
  50. package/dist/stores/inventory.d.ts +0 -1
  51. package/dist/stores/location.d.ts +1 -57
  52. package/dist/stores/supplier.d.ts +0 -96
  53. package/dist/stores/warehouse.d.ts +0 -4
  54. package/dist/{supplier-BOW9xXhe.js → supplier-DLSXYY1o.js} +1 -1
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/{use-ingredient-select-dialog-DbJhveFq.js → use-ingredient-select-dialog-CTjwdY3T.js} +5 -5
  57. package/dist/{use-inventory-binding-dialog-BNY9P_Pg.js → use-inventory-binding-dialog-zXJB7MQY.js} +8 -8
  58. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -24
  59. package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +0 -6
  60. package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -2
  61. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +0 -1
  62. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -60
  63. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -10
  64. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -94
  65. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1 -72
  66. package/dist/views/supplier/components/SupplierForm.vue.d.ts +0 -8
  67. package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +0 -3
  68. package/dist/views/supplier/composables/use-supplier-table.d.ts +0 -4
  69. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -8
  70. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -16
  71. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -48
  72. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -48
  73. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +0 -8
  74. package/package.json +2 -2
  75. package/dist/ClosingTemplateView-BwDaPcHe.js +0 -1862
  76. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Da5zZ3ZF.js +0 -230
  77. package/dist/IngredientsView-B00A9orQ.js +0 -2306
  78. package/dist/StockView-H8EcBWrt.js +0 -2104
  79. package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D-H0oT-V.js +0 -158
  80. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-r7U0Wgsm.js +0 -3058
  81. package/dist/WarehouseView-50a9WiLB.js +0 -1066
  82. package/dist/api/shipment.d.ts +0 -11
  83. package/dist/closing-template-C8n1siov.js +0 -53
  84. package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +0 -2
  85. package/dist/purchase-order-template-CekjfB92.js +0 -41
  86. package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +0 -16
  87. package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +0 -4
  88. package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +0 -16
  89. package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +0 -4
@@ -1,230 +0,0 @@
1
- import { k as C, t as A, aC as M, u as E, aG as B, aR as D, m as H, aS as U } from "./app-D5vamHiS.js";
2
- import { u as z } from "./supplier-BOW9xXhe.js";
3
- import { P as T } from "./format-unit-display-CvUKKMA2.js";
4
- import { computed as f, defineComponent as j, mergeModels as q, useModel as x, ref as W, resolveComponent as w, openBlock as k, createElementBlock as O, normalizeStyle as $, createElementVNode as I, createVNode as J, withCtx as K, createBlock as V, createCommentVNode as N, Fragment as Q, renderList as X, unref as g } from "vue";
5
- function Y(e, a, r) {
6
- var o;
7
- if (!!a.measurement === !!r && ((o = a.measurement) == null ? void 0 : o.id) === r)
8
- return a;
9
- if (!r)
10
- return {
11
- costPerUnit: a.costPerUnit
12
- };
13
- const n = e.measurements.find((p) => p.id === r);
14
- return n ? {
15
- costPerUnit: a.costPerUnit,
16
- measurement: n
17
- } : {
18
- costPerUnit: a.costPerUnit
19
- };
20
- }
21
- function oe(e, a, r, u) {
22
- var P, _, s;
23
- const l = (s = (_ = (P = u == null ? void 0 : u.supplier) == null ? void 0 : P.supplyItems) == null ? void 0 : _.find(
24
- (t) => t.skuId === e._id
25
- )) == null ? void 0 : s.defaultCost;
26
- if (u != null && u.manualTotalCost)
27
- return {
28
- cost: u.manualTotalCost,
29
- skuDefaultCost: e.defaultCost ?? void 0,
30
- supplierOverrideCost: l ?? void 0
31
- };
32
- const n = e.defaultCost ? Y(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +C(p) / +C(o == null ? void 0 : o.measurement.conversion) : +C(p) : void 0, b = v ? r ? v * +C(r.conversion) : v : void 0, h = b ? +C(a) * b : void 0;
33
- return {
34
- cost: h ? {
35
- ...A(h ?? 0, 2),
36
- currency: M()
37
- } : {
38
- amount: 0,
39
- precision: 0,
40
- currency: M()
41
- },
42
- skuDefaultCost: e.defaultCost ?? void 0,
43
- supplierOverrideCost: l ?? void 0
44
- };
45
- }
46
- function L(e) {
47
- const a = D.safeParse(e);
48
- if (a.success) return a.data;
49
- throw new Error("Invalid supplier data");
50
- }
51
- function F(e) {
52
- return {
53
- _id: e.doc._id,
54
- internal: e.type,
55
- contactName: e.doc.profile.name,
56
- name: e.doc.profile.name ?? "",
57
- email: e.doc.profile.email,
58
- phoneNumber: e.doc.profile.phoneNo,
59
- registrationNumber: e.doc.profile.regNo,
60
- address: e.doc.profile.address ?? {
61
- line1: "",
62
- state: "",
63
- city: "",
64
- postcode: "",
65
- country: ""
66
- },
67
- preparationTime: e.preparationTime
68
- };
69
- }
70
- function ne(e, a, r = !1, u = !1) {
71
- const l = z(), n = E();
72
- n.watchLocation(async () => {
73
- var y;
74
- await l.readSuppliers();
75
- const s = e();
76
- if ((y = s.supplier) != null && y._id) return;
77
- const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (r ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
78
- a({
79
- ...s,
80
- supplier: t ? L(t) : i ? F(i) : s.supplier
81
- });
82
- });
83
- const o = f(
84
- () => {
85
- var s, t;
86
- return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? T.TRANSFER : T.PURCHASE;
87
- }
88
- ), p = f({
89
- get() {
90
- var s, t;
91
- return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
92
- },
93
- set(s) {
94
- const t = e() ?? {};
95
- if (o.value === T.PURCHASE) {
96
- const S = (u ? l.suppliers : l.businessSuppliers).find((R) => R._id === s);
97
- a({
98
- ...t,
99
- supplier: S ? L(S) : t.supplier
100
- });
101
- return;
102
- }
103
- const y = (r ? n.allLocations.filter(
104
- (d) => d.doc._id !== n.currentLocation.doc._id
105
- ) : n.allLocations).find((d) => d.doc._id === s);
106
- a({
107
- ...t,
108
- supplier: y ? F(y) : t.supplier
109
- });
110
- }
111
- }), v = f(() => l.locationSuppliers.map(L)), b = f(() => l.businessSuppliers.map(L)), h = f(() => {
112
- const s = [...v.value], t = [...b.value];
113
- return u ? [...t, ...s] : t;
114
- }), c = f(() => {
115
- var m;
116
- const s = ((m = n._currentLocation) == null ? void 0 : m.type) === B.warehouse;
117
- return (r ? n.allLocations.filter(
118
- (i) => i.doc._id !== n.currentLocation.doc._id
119
- ) : n.allLocations).filter((i) => s || i.acceptRequest).map(F);
120
- }), P = f(() => {
121
- if (o.value === T.PURCHASE) {
122
- const t = v.value.map((i) => ({
123
- label: i.name,
124
- value: i._id
125
- })), m = b.value.map((i) => ({
126
- label: i.name,
127
- sublabel: "Business supplier",
128
- value: i._id
129
- }));
130
- return u ? [...t, ...m] : m;
131
- }
132
- return c.value.map((t) => ({
133
- label: t.name,
134
- sublabel: t.internal ? `${t.internal}` : void 0,
135
- value: t._id
136
- }));
137
- }), _ = f(() => {
138
- var i, y;
139
- const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
140
- if (o.value === T.PURCHASE) {
141
- const d = l.suppliers.find((S) => S._id === s);
142
- return d ? L(d) : null;
143
- }
144
- const m = n.allLocations.find((d) => d.doc._id);
145
- return m ? F(m) : null;
146
- });
147
- return {
148
- transferLocationModel: p,
149
- transferLocationOptions: P,
150
- locationOptionsTypePurchase: h,
151
- locationOptionsTypePurchaseLocationLevel: v,
152
- locationOptionsTypeTransfer: c,
153
- selectedLocation: _
154
- };
155
- }
156
- const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ j({
157
- __name: "FmFilterableMenuOptions",
158
- props: /* @__PURE__ */ q({
159
- modelValue: {},
160
- maxHeight: {},
161
- width: {},
162
- handleItemChange: { type: Function },
163
- items: {},
164
- options: {}
165
- }, {
166
- search: {},
167
- searchModifiers: {}
168
- }),
169
- emits: ["update:search"],
170
- setup(e) {
171
- const a = e, r = x(e, "search"), u = f(
172
- () => new H(a.items, ["label", "sublabel"], {
173
- caseSensitive: !1,
174
- sort: !0
175
- })
176
- ), l = f(() => u.value.search(r.value)), n = W();
177
- return console.log({ stickyRef: n }), (o, p) => {
178
- const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
179
- return k(), O("div", {
180
- class: "relative",
181
- style: $({ width: o.width })
182
- }, [
183
- I("div", {
184
- class: "sticky top-0 bg-white mb-8",
185
- ref_key: "stickyRef",
186
- ref: n
187
- }, [
188
- J(b, {
189
- modelValue: r.value,
190
- "onUpdate:modelValue": p[1] || (p[1] = (c) => r.value = c),
191
- placeholder: "Filter options"
192
- }, {
193
- append: K(() => [
194
- r.value ? (k(), V(v, {
195
- key: 0,
196
- variant: "tertiary",
197
- "prepend-icon": "close",
198
- onClick: p[0] || (p[0] = (c) => r.value = "")
199
- })) : N("", !0)
200
- ]),
201
- _: 1
202
- }, 8, ["modelValue"])
203
- ], 512),
204
- I("div", Z, [
205
- (k(!0), O(Q, null, X(l.value, (c, P) => (k(), V(h, {
206
- key: P,
207
- label: c.label,
208
- sublabel: c.sublabel,
209
- "model-value": g(U)(o.modelValue, c.value),
210
- onClick: () => o.handleItemChange(g(U)(o.modelValue, c.value), c),
211
- onVnodeMounted: (_) => {
212
- var s, t;
213
- return g(U)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
214
- }
215
- }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
216
- l.value.length ? N("", !0) : (k(), V(h, {
217
- key: 0,
218
- disabled: "",
219
- label: "No options available"
220
- }))
221
- ])
222
- ], 4);
223
- };
224
- }
225
- });
226
- export {
227
- ae as _,
228
- oe as c,
229
- ne as u
230
- };