@feedmepos/mf-inventory-portal 0.0.22-dev.4 → 0.0.22-dev.41

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 (106) hide show
  1. package/dist/{ApprovalView-xF73Z1jN.js → ApprovalView-DKqwRFlF.js} +25 -26
  2. package/dist/{BindingsDialog-CCSAxGT4.js → BindingsDialog-CtMSqEuE.js} +9 -9
  3. package/dist/{BindingsPicker-ErFH0uEQ.js → BindingsPicker-DCLNF1PL.js} +22 -22
  4. package/dist/{BindingsTable-D8ffJgIJ.js → BindingsTable-6ndQuHeA.js} +1 -1
  5. package/dist/ClosingTemplateView-BPrDQ_8-.js +1688 -0
  6. package/dist/FmDroppableField-DQFPEiJn.js +152 -0
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js +266 -0
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js +359 -0
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js +51 -0
  10. package/dist/IngredientsView-B1jGkWYN.js +1611 -0
  11. package/dist/{IntegrationView-54yz2EqS.js → IntegrationView-Bu0waSjB.js} +71 -71
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js} +1 -1
  13. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js +116 -0
  14. package/dist/{PurchaseOrderPrintPreview-pcpWSfl4.js → PurchaseOrderPrintPreview-DTQViYuX.js} +7 -7
  15. package/dist/ReceiveRequestView-CNRixgQu.js +4069 -0
  16. package/dist/RecipeView-HStPC5pE.js +591 -0
  17. package/dist/Standalone.vue.d.ts +2 -0
  18. package/dist/StockView-JO3NtkX9.js +7762 -0
  19. package/dist/{SupplierView-TYCkPXan.js → SupplierView-gtaS4K3U.js} +111 -111
  20. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js +1146 -0
  21. package/dist/TransferTemplateView-C0pjLfbz.js +2054 -0
  22. package/dist/{UnitView-B9yE4-rc.js → UnitView-dbInWUk4.js} +18 -18
  23. package/dist/{WarehouseView-DUtVLTjb.js → WarehouseView-BlTBvLF0.js} +176 -177
  24. package/dist/api/bill.d.ts +84 -238
  25. package/dist/api/closing-template.d.ts +6 -4
  26. package/dist/api/inventory.d.ts +72 -85
  27. package/dist/api/netsuite.d.ts +47 -0
  28. package/dist/api/purchase-order-template.d.ts +4 -6
  29. package/dist/{app-w8TOQVZc.js → app-TB3IWuaU.js} +24520 -23671
  30. package/dist/app.d.ts +7 -0
  31. package/dist/app.js +3 -3
  32. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  33. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  34. package/dist/components/FmUnitInputRules.d.ts +2 -0
  35. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  36. package/dist/{decimal-C4q7UMfr.js → decimal-BRAYgPnN.js} +1 -1
  37. package/dist/defineDeepModel-DrEk5Fhq.js +13 -0
  38. package/dist/format-time-from-id-kpVYfVQb.js +15 -0
  39. package/dist/helper/rules.d.ts +7 -0
  40. package/dist/helper/rules.spec.d.ts +1 -0
  41. package/dist/helper/xlsx.util.d.ts +7 -0
  42. package/dist/purchase-order-transaction-type-ZMNa__2l.js +348 -0
  43. package/dist/stores/api.d.ts +1 -0
  44. package/dist/stores/feature.d.ts +0 -1
  45. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  46. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  47. package/dist/stores/inventory.d.ts +85 -0
  48. package/dist/stores/location.d.ts +508 -503
  49. package/dist/stores/netsuite.d.ts +69 -0
  50. package/dist/stores/route.d.ts +0 -5
  51. package/dist/stores/supplier.d.ts +120 -3
  52. package/dist/style.css +1 -1
  53. package/dist/supplier-CJcqHpaM.js +70 -0
  54. package/dist/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/use-template-enabled-locations-2-DyD24laW.js +85 -0
  56. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  57. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  58. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1093 -1026
  59. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1098 -1037
  60. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  61. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  62. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  63. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +45 -0
  64. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1944 -82
  65. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  66. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2351 -284
  67. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2300 -233
  68. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  69. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  70. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  71. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  72. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  73. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  74. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  75. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  76. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  77. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  78. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  79. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1263 -1466
  80. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1688 -897
  81. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  82. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -0
  83. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  84. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  85. package/dist/{xlsx-BggStaH1.js → xlsx-Dd5ckm6-.js} +1525 -1525
  86. package/dist/xlsx.util-qlqvEcJz.js +78 -0
  87. package/package.json +7 -5
  88. package/dist/ClosingTemplateView-DdZlX1ug.js +0 -1030
  89. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js +0 -372
  90. package/dist/IngredientsView-DnwwQJTN.js +0 -1758
  91. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js +0 -88
  92. package/dist/ReceiveRequestView-D5HXMY4Z.js +0 -215
  93. package/dist/RecipeView-BHkTgm5H.js +0 -581
  94. package/dist/StockView-iczCFYxn.js +0 -1892
  95. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js +0 -740
  96. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js +0 -1409
  97. package/dist/TransferTemplateView-Bbvpuys7.js +0 -1230
  98. package/dist/defineDeepModel-BOApqV24.js +0 -13
  99. package/dist/format-time-from-id-Cafjo8fn.js +0 -15
  100. package/dist/id-to-date-CtSHSVJF.js +0 -30
  101. package/dist/layout/layout-routes.d.ts +0 -6
  102. package/dist/purchase-order-transaction-type-CIC5h-6x.js +0 -712
  103. package/dist/supplier-CM-vZ4bQ.js +0 -69
  104. package/dist/use-template-enabled-locations-Bm00vEzC.js +0 -57
  105. package/dist/xlsx.util-CqlYZLKW.js +0 -109
  106. /package/dist/{layout/InventoryLayout.vue.d.ts → views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts} +0 -0
@@ -1,88 +0,0 @@
1
- import { n as m, j as F } from "./app-w8TOQVZc.js";
2
- import { useCoreStore as v } from "@feedmepos/mf-common";
3
- import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
4
- const l = m((e, t) => {
5
- const a = F(), o = v();
6
- return {
7
- async getInventoryForecast() {
8
- var n;
9
- const r = ((n = o.currentBusiness.value) == null ? void 0 : n._id) ?? "", c = a.currentLocationId ?? "", i = `${e.dataBackendUrl}/${r}/${c}/inventory-forecast`;
10
- try {
11
- return await t.get(i);
12
- } catch {
13
- return { skus: [] };
14
- }
15
- },
16
- async getPurchaseOrderForecast(r) {
17
- var u;
18
- const c = ((u = o.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = a.currentLocationId ?? "", n = `${e.dataBackendUrl}/${c}/${i}/purchase-order-forecast?days=${r}`;
19
- try {
20
- return await t.get(n);
21
- } catch {
22
- return { skus: [] };
23
- }
24
- }
25
- };
26
- });
27
- function S() {
28
- return {
29
- inventoryForecast: { skus: [] },
30
- purchaseOrderForecast: { skus: [] }
31
- };
32
- }
33
- const s = h(S());
34
- function P() {
35
- return {
36
- // state
37
- get inventoryForecast() {
38
- return s.value.inventoryForecast;
39
- },
40
- set inventoryForecast(e) {
41
- s.value.inventoryForecast = e;
42
- },
43
- get purchaseOrderForecast() {
44
- return s.value.purchaseOrderForecast;
45
- },
46
- set purchaseOrderForecast(e) {
47
- s.value.purchaseOrderForecast = e;
48
- },
49
- // actions
50
- async readStockEstimateBalance() {
51
- const e = l();
52
- this.inventoryForecast = await e.getInventoryForecast();
53
- },
54
- async readPurchaseOrder(e) {
55
- const t = l();
56
- this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
57
- }
58
- };
59
- }
60
- const I = { class: "flex items-center gap-8" }, O = "Experience enhanced inventory features with premium plan.", E = /* @__PURE__ */ y({
61
- __name: "PremiumBadge",
62
- props: {
63
- zIndex: {}
64
- },
65
- setup(e) {
66
- return (t, a) => {
67
- const o = d("FmPill"), r = d("FmTooltip");
68
- return _(), f("div", I, [
69
- k(t.$slots, "default"),
70
- p(r, {
71
- variant: "plain",
72
- placement: "top",
73
- content: O,
74
- "z-index": t.zIndex
75
- }, {
76
- default: g(() => [
77
- p(o, { variant: "premium" })
78
- ]),
79
- _: 1
80
- }, 8, ["z-index"])
81
- ]);
82
- };
83
- }
84
- });
85
- export {
86
- E as _,
87
- P as u
88
- };
@@ -1,215 +0,0 @@
1
- import { defineComponent as ce, ref as C, watch as Q, computed as k, resolveComponent as le, openBlock as b, createBlock as q, unref as e, withCtx as w, createElementVNode as u, normalizeClass as ue, createVNode as c, normalizeStyle as me, toDisplayString as de, createElementBlock as pe, createCommentVNode as fe, Teleport as ve, mergeProps as G } from "vue";
2
- import { Z as h, j as _e, o as Z, a as W, G as ye, $ as ge, b as De } from "./app-w8TOQVZc.js";
3
- import { i as X, u as be, _ as he, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js";
4
- import { u as xe } from "./purchase-order-transaction-type-CIC5h-6x.js";
5
- import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js";
6
- import { i as qe, e as we } from "./id-to-date-CtSHSVJF.js";
7
- import { useSnackbar as Te, useBreakpoints as Fe } from "@feedmepos/ui-library";
8
- import { _ as Me } from "./TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js";
9
- import { _ as Oe, F as S } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
10
- import { useI18n as $e } from "@feedmepos/mf-common";
11
- const Ee = { class: "flex flex-col py-8" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ue = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Ne = {
12
- key: 0,
13
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
14
- }, je = { class: "pt-8" }, B = "ReceiveRequestViewSearchCriteria", Xe = /* @__PURE__ */ ce({
15
- __name: "ReceiveRequestView",
16
- setup(Ae) {
17
- const { t: m } = $e(), I = Te();
18
- h.object({
19
- name: h.string().optional().nullable(),
20
- startDate: h.string().optional().nullable(),
21
- endDate: h.string().optional().nullable()
22
- });
23
- const T = ge(), F = De();
24
- function ee() {
25
- const o = {
26
- name: "",
27
- ...X()
28
- }, r = T.getItem(B);
29
- if (!r)
30
- return o;
31
- try {
32
- return JSON.parse(r);
33
- } catch {
34
- return o;
35
- }
36
- }
37
- function M() {
38
- T.setItem(B, JSON.stringify(i.value));
39
- }
40
- const i = C(ee()), a = xe("receive/request", i.value), { columnDefs: te } = Re("receive/request", a), O = _e();
41
- async function ae() {
42
- const o = `inventory-record_${Z(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${Z(i.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = a.purchaseOrders.value.flatMap(
43
- (n) => n.items.map((t) => {
44
- const s = new Date(qe(n._id) ?? ""), p = n.effectiveAt ? new Date(n.effectiveAt) : void 0, f = W(
45
- ke(t.sku, n.deliveryOrder || [])
46
- ), v = W(t.quantity);
47
- return {
48
- "SKU code": t.code,
49
- "SKU name": t.name,
50
- "PO #": n.seqNumber,
51
- "Effective at": p,
52
- Date: s,
53
- Status: n.status,
54
- Reference: n.ref ?? "",
55
- "Received quantity": f,
56
- "Ordered quantity": v,
57
- Unit: t.sku.unit.abbrev,
58
- "Total cost": t.totalCost ? ye(t.totalCost) : null
59
- };
60
- })
61
- ), l = [
62
- "SKU code",
63
- "SKU name",
64
- "PO #",
65
- "Date",
66
- "Status",
67
- "Reference",
68
- "Received quantity",
69
- "Ordered quantity",
70
- "Unit"
71
- ];
72
- F.enableBackdatePo && l.insert("Effective at", 4), F.enableTotalCost && l.push("Total cost"), await we(
73
- [
74
- {
75
- name: "purchases",
76
- data: r,
77
- columns: l
78
- }
79
- ],
80
- o
81
- ), I.open({
82
- title: m("inventory.transfer.receiveRequest.export.success"),
83
- message: m("inventory.transfer.receiveRequest.export.message", [o]),
84
- type: "success"
85
- });
86
- }
87
- const x = C(X()), d = C("");
88
- Q([() => x.value], ([o]) => {
89
- !o.startDate || !o.endDate || (i.value.startDate = o.startDate, i.value.endDate = o.endDate, a.updateDateRange(
90
- i.value.startDate,
91
- i.value.endDate
92
- ), M());
93
- }), Q([() => d.value], () => {
94
- M();
95
- });
96
- function oe(o) {
97
- o === "create" && a.promptCreateTransferDialog();
98
- }
99
- const { breakpoints: $ } = Fe(), R = k(() => $.value.xs || $.value.sm), re = k(() => R.value ? 10 : 20), ne = be(), se = k(() => [
100
- {
101
- icon: "refresh",
102
- onClick: a.fetchData
103
- },
104
- {
105
- icon: "ios_share",
106
- onClick: ae
107
- }
108
- ]);
109
- return (o, r) => {
110
- const l = le("FmTable");
111
- return b(), q(he, {
112
- title: e(m)("inventory.transfer.receiveRequest.title2"),
113
- actions: [
114
- {
115
- label: e(m)("inventory.transfer.receiveRequest.actions.create"),
116
- value: "create",
117
- isPrimary: !0,
118
- prependIcon: "add"
119
- }
120
- ],
121
- "onClick:action": oe
122
- }, {
123
- default: w(() => {
124
- var n;
125
- return [
126
- u("div", {
127
- class: ue([
128
- "flex flex-col gap-8 max-h-full",
129
- {
130
- "p-0": R.value,
131
- "px-24 ": !R.value
132
- }
133
- ])
134
- }, [
135
- c(Se, {
136
- "date-range-query": "",
137
- "date-range": x.value,
138
- "onUpdate:dateRange": r[0] || (r[0] = (t) => x.value = t),
139
- searchable: "",
140
- "change-location": "",
141
- search: d.value,
142
- "onUpdate:search": r[1] || (r[1] = (t) => d.value = t),
143
- actions: se.value
144
- }, null, 8, ["date-range", "search", "actions"]),
145
- (b(), q(l, {
146
- style: me(e(ne).tableHeight),
147
- "column-defs": e(te),
148
- "row-data": e(a).purchaseOrders.value,
149
- "search-value": d.value,
150
- loading: !e(O)._currentLocation || e(a).loading.value,
151
- onRowClick: r[2] || (r[2] = (t) => e(a).promptShowTransferDetails(t.original)),
152
- key: (n = e(O)._currentLocation) == null ? void 0 : n.dbName,
153
- "page-size": re.value
154
- }, {
155
- "list-row": w((t) => [
156
- c(Oe, {
157
- row: t,
158
- onRowClick: e(a).promptShowTransferDetails
159
- }, {
160
- default: w((s) => {
161
- var p, f, v, _, E, P, U, Y, y, N, j, A, H, g, V, z, K, L, D, J;
162
- return [
163
- u("div", Ee, [
164
- u("div", Pe, [
165
- c(e(S), {
166
- render: (v = (f = (p = s._id) == null ? void 0 : p.column) == null ? void 0 : f.columnDef) == null ? void 0 : v.cell,
167
- props: (E = (_ = s._id) == null ? void 0 : _.getContext) == null ? void 0 : E.call(_)
168
- }, null, 8, ["render", "props"])
169
- ]),
170
- u("div", Ue, [
171
- c(e(S), {
172
- render: (Y = (U = (P = s.supplier_name) == null ? void 0 : P.column) == null ? void 0 : U.columnDef) == null ? void 0 : Y.cell,
173
- props: (N = (y = s.supplier_name) == null ? void 0 : y.getContext) == null ? void 0 : N.call(y)
174
- }, null, 8, ["render", "props"])
175
- ]),
176
- u("div", Ye, de(t.original.items.map((ie) => `${ie.name}`).join(", ")), 1),
177
- t.original.ref ? (b(), pe("div", Ne, [
178
- c(e(S), {
179
- render: (H = (A = (j = s.ref) == null ? void 0 : j.column) == null ? void 0 : A.columnDef) == null ? void 0 : H.cell,
180
- props: (V = (g = s.ref) == null ? void 0 : g.getContext) == null ? void 0 : V.call(g)
181
- }, null, 8, ["render", "props"])
182
- ])) : fe("", !0),
183
- u("div", je, [
184
- c(e(S), {
185
- render: (L = (K = (z = s.status) == null ? void 0 : z.column) == null ? void 0 : K.columnDef) == null ? void 0 : L.cell,
186
- props: (J = (D = s.status) == null ? void 0 : D.getContext) == null ? void 0 : J.call(D)
187
- }, null, 8, ["render", "props"])
188
- ])
189
- ])
190
- ];
191
- }),
192
- _: 2
193
- }, 1032, ["row", "onRowClick"])
194
- ]),
195
- _: 1
196
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
197
- ], 2),
198
- (b(), q(ve, { to: "body" }, [
199
- c(Me, G(e(a).transferDialogProps.value, {
200
- onSubmitted: e(a).fetchData
201
- }), null, 16, ["onSubmitted"]),
202
- c(Ce, G(e(a).transferDetailsProps.value, {
203
- onSubmitted: e(a).fetchData
204
- }), null, 16, ["onSubmitted"])
205
- ]))
206
- ];
207
- }),
208
- _: 1
209
- }, 8, ["title", "actions"]);
210
- };
211
- }
212
- });
213
- export {
214
- Xe as default
215
- };