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