@feedmepos/mf-inventory-portal 0.0.22-dev.33 → 0.0.22-dev.36

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 (48) hide show
  1. package/dist/{ApprovalView-CKBg-CUO.js → ApprovalView-av_qng0N.js} +9 -10
  2. package/dist/{BindingsDialog-BHQkDST3.js → BindingsDialog-VZ6YelwP.js} +1 -1
  3. package/dist/{BindingsPicker-DtGzKn9l.js → BindingsPicker-BFYv2ftI.js} +1 -1
  4. package/dist/{BindingsTable-CSKzOCxK.js → BindingsTable-DFowW8vT.js} +1 -1
  5. package/dist/{ClosingTemplateView-CcO_vSoD.js → ClosingTemplateView-DNcgyBVw.js} +5 -5
  6. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CAZ4P0Ax.js +266 -0
  7. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CC55eT4X.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DqOb7e4M.js} +1 -1
  8. package/dist/{IngredientsView-DKf2RyTT.js → IngredientsView-afICUj_U.js} +3 -3
  9. package/dist/{IntegrationView-IT9fT1o3.js → IntegrationView-DT5F9V0h.js} +120 -120
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BfQYvMQo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CXw4tAI_.js} +1 -1
  11. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-C6a6F_jD.js +116 -0
  12. package/dist/{PurchaseOrderPrintPreview-CmUwBVJj.js → PurchaseOrderPrintPreview-BMCy5C1z.js} +1 -1
  13. package/dist/ReceiveRequestView-DBU59iYm.js +4050 -0
  14. package/dist/{RecipeView-DoVjHcdn.js → RecipeView-Brnk8Ar7.js} +3 -3
  15. package/dist/{StockView-0e2NTA6y.js → StockView-BtTZNhlp.js} +14 -15
  16. package/dist/{SupplierView-Kp_qdI0x.js → SupplierView-C0GT_JzY.js} +3 -3
  17. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BzJ8TnL_.js +1139 -0
  18. package/dist/TransferTemplateView-SrBMTzU-.js +1237 -0
  19. package/dist/{UnitView-Bn4Di9oJ.js → UnitView-Dw2xLWy4.js} +4 -4
  20. package/dist/{WarehouseView-D_UpeFJI.js → WarehouseView-Cgf1mP8s.js} +2 -2
  21. package/dist/{app-Cp8AtZVK.js → app-Iz-opVBA.js} +270 -261
  22. package/dist/app.js +1 -1
  23. package/dist/{decimal-BdGSddMR.js → decimal-ffsKJesh.js} +1 -1
  24. package/dist/{defineDeepModel-BmWycBqN.js → defineDeepModel-CDrYKSnU.js} +3 -3
  25. package/dist/format-time-from-id-e9QU46u4.js +15 -0
  26. package/dist/purchase-order-transaction-type-DN3Czz6K.js +338 -0
  27. package/dist/stores/netsuite.d.ts +1 -0
  28. package/dist/{supplier-nSbJROl8.js → supplier-DdJIh1nj.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/{use-template-enabled-locations-2-DHQhRyhX.js → use-template-enabled-locations-2-BSLLHtkm.js} +1 -1
  31. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +44 -0
  32. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +42 -34
  33. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +75 -51
  34. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +75 -51
  35. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  36. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  37. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +5 -8
  38. package/dist/{xlsx-CyyozDQ4.js → xlsx-C8qXPxB4.js} +1 -1
  39. package/dist/{xlsx.util-io3Y9wY0.js → xlsx.util-DGLr1W_5.js} +2 -2
  40. package/package.json +3 -3
  41. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-B1Hplfop.js +0 -88
  42. package/dist/ReceiveRequestView-CowLFbXJ.js +0 -215
  43. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-pOCLtZSW.js +0 -858
  44. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-YgNt1e4d.js +0 -1678
  45. package/dist/TransferTemplateView-DnZqm1NS.js +0 -1244
  46. package/dist/format-time-from-id-bNKNgPR2.js +0 -15
  47. package/dist/id-to-date-uL3PyIfz.js +0 -30
  48. package/dist/purchase-order-transaction-type-DQvXZvHo.js +0 -685
@@ -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 { $ as h, j as _e, q as W, a as X, H as ye, a0 as ge, b as De } from "./app-Cp8AtZVK.js";
3
- import { i as Z, u as be, _ as he, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CC55eT4X.js";
4
- import { u as xe } from "./purchase-order-transaction-type-DQvXZvHo.js";
5
- import { u as Re, _ as Ce, g as ke } from "./TransferDetails.vue_vue_type_script_setup_true_lang-pOCLtZSW.js";
6
- import { i as qe, e as we } from "./id-to-date-uL3PyIfz.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-YgNt1e4d.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" }, He = {
12
- key: 0,
13
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
14
- }, Ne = { class: "pt-8" }, B = "ReceiveRequestViewSearchCriteria", Ze = /* @__PURE__ */ ce({
15
- __name: "ReceiveRequestView",
16
- setup(je) {
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
- ...Z()
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_${W(i.value.startDate).format("DD-MM-YYYY_HH-mm")}-${W(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 = X(
45
- ke(t.sku, n.deliveryOrder || [])
46
- ), v = X(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(Z()), 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, H, N, j, A, 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: (H = (y = s.supplier_name) == null ? void 0 : y.getContext) == null ? void 0 : H.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", He, [
178
- c(e(S), {
179
- render: (A = (j = (N = s.ref) == null ? void 0 : N.column) == null ? void 0 : j.columnDef) == null ? void 0 : A.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", Ne, [
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
- Ze as default
215
- };