@feedmepos/mf-inventory-portal 1.7.5-dev.1 → 1.7.5-dev.2

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 (112) hide show
  1. package/dist/{App-Cajcbi7C.js → App-D4pfsscT.js} +4 -4
  2. package/dist/{ApprovalView-pn-qHYIX.js → ApprovalView-CYnp3Gv5.js} +25 -24
  3. package/dist/{BindingsDialog-zcBevwFb.js → BindingsDialog-Dm0kKlg-.js} +2 -2
  4. package/dist/{BindingsPicker-DRWl6zQ4.js → BindingsPicker-CdGHTlqD.js} +2 -2
  5. package/dist/{BindingsTable-8m6QfTWo.js → BindingsTable-DEZHwIgw.js} +3 -3
  6. package/dist/BulkReceiveRequestView-ClvGD9vp.js +2584 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CJlb8KSr.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DVFOpysl.js} +1 -1
  8. package/dist/{ClosingDraftView-DSB7J84e.js → ClosingDraftView-CXTf30OO.js} +21 -21
  9. package/dist/{ClosingHistoryView-BmVm5PZ0.js → ClosingHistoryView-3yfjab3s.js} +5 -5
  10. package/dist/{ClosingTemplateView-D8epJry0.js → ClosingTemplateView-DhDRDJfg.js} +18 -18
  11. package/dist/CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-C0DjydRr.js +145 -0
  12. package/dist/{DefaultView-5NqNxkyj.js → DefaultView-BQyve9e7.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-hUWHCkIg.js → DeliveryOrderPrintPreview-Cx85J915.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D2Am8ZDJ.js → EmailDialog.vue_vue_type_script_setup_true_lang-BjSzg-to.js} +3612 -3575
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DB2tvpP6.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DOY0FHF8.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-KCBmg5AJ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DRLRTNJn.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B_0D62ne.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnQPXIkP.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DU7IzWG_.js → FmMultiselectDialog-DK737zIz.js} +1 -1
  19. package/dist/{FmMultiselectDialog-Ds_f8gua.js → FmMultiselectDialog-IIFXWxUT.js} +2 -2
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DSDqCW3P.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bonb9Hnk.js} +5 -5
  21. package/dist/{ImportView-0gnR-m1B.js → ImportView-D4xpncdw.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BXsS60iO.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CYjvjRhH.js} +1 -1
  23. package/dist/{IngredientGroupView-D3M3aA_H.js → IngredientGroupView-Bh7ShplN.js} +7 -7
  24. package/dist/{IngredientsView-BoJUcVQE.js → IngredientsView-B03s_wbT.js} +17 -17
  25. package/dist/{IntegrationExplorerView-CANrFCne.js → IntegrationExplorerView-DgsllLAF.js} +4 -4
  26. package/dist/{IntegrationView-CNA-8zrj.js → IntegrationView-9BCyzPdb.js} +14 -14
  27. package/dist/{InventoryBindingForm-DT-YXt4c.js → InventoryBindingForm-C8LY1sc4.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CxNSflJ8.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang--mFdjT9b.js} +5 -5
  29. package/dist/{InventoryBindingSummary-BCnTxQhc.js → InventoryBindingSummary-BEvw0lWr.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DyRx5MmF.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CxgaZqAW.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CJf9wT6o.js → PremiumBadge.vue_vue_type_script_setup_true_lang--sxV3FYV.js} +1 -1
  32. package/dist/{ProductionView-09wAcGA-.js → ProductionView-B86EyiCZ.js} +7 -7
  33. package/dist/{PublishView-glA2ipo1.js → PublishView-DlETEaGs.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-DpLO-1KW.js → PurchaseOrderPrintPreview-Be0U7Ler.js} +2 -2
  35. package/dist/{ReceiveRequestView-CzAVket3.js → ReceiveRequestView-DucbkxwJ.js} +80 -79
  36. package/dist/{RecipeView-LT5XJ6kA.js → RecipeView-BIlGYL8-.js} +19 -19
  37. package/dist/{SettingsView-BZfh4JMs.js → SettingsView-CUAHre50.js} +4 -4
  38. package/dist/{StockView-DFY1LgMH.js → StockView-kf_zhpO5.js} +22 -22
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CK6SIQza.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bpr7q8r9.js} +1 -1
  40. package/dist/{SupplierView-CL2IuwVZ.js → SupplierView-caFI7Yd6.js} +14 -14
  41. package/dist/{SurchargeView-BhfGyNu5.js → SurchargeView-DyO0ZOGa.js} +8 -8
  42. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang--QyVwKtB.js +263 -0
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bw8cubwk.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-2JCHCRHp.js} +1 -1
  44. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dhll972g.js +4717 -0
  45. package/dist/{TransferTemplateView-DLOjb7km.js → TransferTemplateView-DUlH8K4Y.js} +21 -21
  46. package/dist/{UnitCostHistoryView-BtPucyKW.js → UnitCostHistoryView-OXv6kJgE.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DJ6kRWhP.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-1ekj_uc6.js} +4 -4
  48. package/dist/{UnitView-BvfkCvbb.js → UnitView-iwIzfipw.js} +9 -9
  49. package/dist/{WarehouseView-DqQY_NXe.js → WarehouseView-C9rSeAaV.js} +7 -7
  50. package/dist/{WastageTemplateView--Wrq7ge5.js → WastageTemplateView-OvD51JSq.js} +16 -16
  51. package/dist/api/purchase-order.d.ts +46 -0
  52. package/dist/{app-D_hKuHEq.js → app-D-nwdsYm.js} +19305 -19130
  53. package/dist/app.d.ts +64 -36
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-mf0Hz0sS.js → closing-template-jWeRa4dz.js} +1 -1
  56. package/dist/component-BmLAdDiY.js +79 -0
  57. package/dist/components/job-progress/BulkJobProgressPanel.vue.d.ts +2 -0
  58. package/dist/components/row-action.enum.d.ts +1 -0
  59. package/dist/{date2-C3dcj9fz.js → date2-B_xDuM7M.js} +1 -1
  60. package/dist/{dayjs.min-BI88EzTz.js → dayjs.min-B-AZ8_mI.js} +5 -5
  61. package/dist/{decimal-BxOL6Gld.js → decimal-0ev5Hr6J.js} +2 -2
  62. package/dist/{defineDeepModel-Cvl7eN3k.js → defineDeepModel-DvI75jvB.js} +1 -1
  63. package/dist/{duplicate-template-DgS5Tm9P.js → duplicate-template-CVOoyyS0.js} +1 -1
  64. package/dist/{feature-Dd8HiMBk.js → feature-Cb-HS1Qb.js} +2 -2
  65. package/dist/{format-time-from-id-Cp2E5196.js → format-time-from-id-BCqZq29n.js} +1 -1
  66. package/dist/{format-unit-display-MACP_q07.js → format-unit-display-kSYRHsdn.js} +16 -16
  67. package/dist/{import-export.helper-DWMCTOY0.js → import-export.helper-B3bnD5gf.js} +6 -6
  68. package/dist/{index-D3jWqvZX.js → index-BmjXNcEU.js} +1 -1
  69. package/dist/{index-B2RsNEfe.js → index-CDiyP2Ua.js} +3 -3
  70. package/dist/{index-DFK8bQ6j.js → index-G6SYSs1V.js} +1 -1
  71. package/dist/{inventory-core-dart.default-D942GWzb.js → inventory-core-dart.default-B0kHPJ3I.js} +1 -1
  72. package/dist/{lz-string-CBjMP9eH.js → lz-string-CUfkGubt.js} +1 -1
  73. package/dist/{netsuite-D2953JgL.js → netsuite-CYNhS6XV.js} +2 -2
  74. package/dist/{number-DPVL24ED.js → number-BZuHTNem.js} +3 -3
  75. package/dist/{predefined-templates-C-1kU49_.js → predefined-templates-D--Y4747.js} +1 -1
  76. package/dist/{purchase-order-template-Dr2otb_Q.js → purchase-order-template-DGzn629O.js} +1 -1
  77. package/dist/{recalculationUtils-DOLRXWIr.js → recalculationUtils-B2mxdDHX.js} +1 -1
  78. package/dist/{row-action.enum-DQ9bJ_uv.js → row-action.enum-ncgDYAjP.js} +7 -1
  79. package/dist/{rules-CgbPIL_A.js → rules-C9dDCNg3.js} +2 -2
  80. package/dist/{stock-Bqj8CPcA.js → stock-Bys68KZZ.js} +3 -3
  81. package/dist/{stock-No7BQLB4.js → stock-DL4oech9.js} +1 -1
  82. package/dist/stores/bulk-job.d.ts +192 -0
  83. package/dist/stores/bulk-job.spec.d.ts +1 -0
  84. package/dist/{supplier-DNlISdQo.js → supplier-DPVpEG2w.js} +2 -2
  85. package/dist/{surcharge-BGZGoC81.js → surcharge-SHYN1X8A.js} +1 -1
  86. package/dist/tsconfig.app.tsbuildinfo +1 -1
  87. package/dist/{uom-rules-B6ZB1FSB.js → uom-rules-nPqfI8Yz.js} +1 -1
  88. package/dist/{use-ingredient-select-dialog-CU5OTWPl.js → use-ingredient-select-dialog-BMvWiKB6.js} +2 -2
  89. package/dist/{use-inventory-binding-dialog-DhxC5qLq.js → use-inventory-binding-dialog-CNOe57bY.js} +2 -2
  90. package/dist/{use-template-enabled-locations-Bv5HpHAV.js → use-template-enabled-locations-B7JBvvZ4.js} +2 -2
  91. package/dist/{use-transfer-locations-CRR5I64l.js → use-transfer-locations-BCu9xHNr.js} +2 -2
  92. package/dist/{useHrmPermission-bZrxydnr.js → useHrmPermission-WM9TCd_D.js} +1 -1
  93. package/dist/{useNavigationMenu-CazRNUsz.js → useNavigationMenu-6DdsN1jP.js} +2 -2
  94. package/dist/{useSseClient-l9O1iPny.js → useSseClient-B9Z0kGeF.js} +1 -1
  95. package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +11 -0
  96. package/dist/views/receive-request/composables/fn.spec.d.ts +1 -0
  97. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1 -0
  98. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +13 -1
  99. package/dist/views/receive-request/helper/extra-items.d.ts +12 -2
  100. package/dist/views/receive-request/helper/format-unit-display.d.ts +1 -1
  101. package/dist/views/receive-request-bulk/components/PdfPreviewDialog.vue.d.ts +23 -0
  102. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +6 -18
  103. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.spec.d.ts +1 -0
  104. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +3 -4
  105. package/dist/{vue-i18n-eAaLOca6.js → vue-i18n-DWcHQ0rm.js} +51 -51
  106. package/dist/{xlsx.util-Dp7SqdrI.js → xlsx.util-DC2xGyFF.js} +2 -2
  107. package/package.json +4 -5
  108. package/dist/BulkReceiveRequestView-MxPx0Gio.js +0 -2208
  109. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-Du8ygQNn.js +0 -209
  110. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dy79I2YB.js +0 -4712
  111. package/dist/component-kqxARxvM.js +0 -91
  112. package/dist/jszip.min-Pl_JnG-H.js +0 -2322
@@ -1,209 +0,0 @@
1
- import { defineComponent as I, ref as B, resolveComponent as $, createBlock as O, openBlock as m, withCtx as p, createElementVNode as _, createVNode as w, h as N, createElementBlock as b, toDisplayString as f } from "vue";
2
- import { F as T } from "./FmAdminBadge-DlplQOHb.js";
3
- import { m as U, u as L } from "./app-D_hKuHEq.js";
4
- import { useCoreStore as A } from "@feedmepos/mf-common";
5
- import { useDialog as C, components as V } from "@feedmepos/ui-library";
6
- import { u as F, a as P } from "./closing-template-mf0Hz0sS.js";
7
- const j = U((s, t) => {
8
- const c = L(), i = A();
9
- return {
10
- async readRequests(a, e, r) {
11
- const n = a ?? c.currentLocationDBName, d = `${s.inventoryBackendUrl}/${n}/purchase-request`;
12
- return e && r ? await t.get(`${d}?startDate=${e}&endDate=${r}`) : await t.get(d);
13
- },
14
- async readRequestById(a, e) {
15
- const r = e ?? c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${r}/purchase-request/${a}`;
16
- return await t.get(n);
17
- },
18
- async readRequestByIds(a, e) {
19
- const r = e ?? c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${r}/purchase-request/find`;
20
- return await t.post(n, { requestIds: a });
21
- },
22
- async getPurchaseOrders({
23
- start: a,
24
- end: e,
25
- dbName: r
26
- }) {
27
- const n = r ?? c.currentLocationDBName, d = `${s.inventoryBackendUrl}/${n}/purchase-order`;
28
- return await t.get(`${d}?start=${a}&end=${e}`);
29
- },
30
- async getLatestPurchaseOrderRequest(a) {
31
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/purchase-request/find-by-purchase-order-id`;
32
- return await t.get(`${r}/${a}`);
33
- },
34
- async getPurchaseOrderById(a, e, r) {
35
- const n = e ?? c.currentLocationDBName, d = `${s.inventoryBackendUrl}/${n}/purchase-order`;
36
- return await t.get(`${d}/${a}`, r);
37
- },
38
- /** One request fetches a page of PO summaries across many locations
39
- * (business-scoped). Standard cursor pagination: pass the returned cursor
40
- * back until hasNext is false — the server owns the multi-db crawl and
41
- * returns early when its per-request doc/time budget is reached. */
42
- async getBulkPaginatedPurchaseOrders({
43
- locations: a,
44
- start: e,
45
- end: r,
46
- pageSize: n = 100,
47
- status: d,
48
- supplierId: y,
49
- cursor: v,
50
- retryFailed: g
51
- }, o) {
52
- var l;
53
- const u = ((l = i.currentBusiness.value) == null ? void 0 : l._id) ?? "", h = `${s.inventoryBackendUrl}/business_${u}/purchase-order/browse-paginated`;
54
- return await t.post(
55
- h,
56
- {
57
- locations: a,
58
- start: e,
59
- end: r,
60
- pageSize: n,
61
- status: d,
62
- supplierId: y,
63
- cursor: v,
64
- retryFailed: g
65
- },
66
- o
67
- );
68
- },
69
- /**
70
- * @deprecated Use `processPurchaseOrderV2` instead.
71
- */
72
- async processPurchaseOrder(a, e) {
73
- const r = c.currentLocationDBName, n = e || r, d = `${s.inventoryBackendUrl}/${n}/purchase-order/run-operation`;
74
- return await t.put(d, a);
75
- },
76
- async createPurchaseOrder(a) {
77
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/purchase-order`;
78
- return await t.post(r, a);
79
- },
80
- async updatePurchaseOrder(a) {
81
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/purchase-order`;
82
- return await t.put(r, a);
83
- },
84
- async importFromXilnex(a) {
85
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/purchase-order/import-from-xilnex`;
86
- return await t.post(r, a);
87
- },
88
- async processPurchaseOrderV2(a, e) {
89
- const r = c.currentLocationDBName, n = e || r, d = `${s.inventoryBackendUrl}/${n}/v2/purchase-order/run-operation`;
90
- return await t.put(d, a);
91
- },
92
- async getWorkflowConfig() {
93
- var n;
94
- const e = `business_${(n = i.currentBusiness.value) == null ? void 0 : n._id}`, r = `${s.inventoryBackendUrl}/${e}/v2/purchase-order/workflow-config`;
95
- return await t.get(r);
96
- },
97
- async updateDeliveryOrder(a) {
98
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/delivery-order`;
99
- return await t.put(r, a);
100
- },
101
- async createDeliveryOrder(a) {
102
- const e = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${e}/delivery-order`;
103
- return await t.post(r, a);
104
- },
105
- async getDeliveryOrderTrails(a, e) {
106
- const r = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${r}/delivery-order/audit-trails`;
107
- return await t.post(n, { purchaseOrderId: a, deliveryOrderId: e });
108
- }
109
- };
110
- }), q = { key: 0 }, S = { key: 1 }, K = { key: 2 }, W = /* @__PURE__ */ I({
111
- __name: "SystemTrailDialog",
112
- props: {
113
- purchaseOrderId: {},
114
- deliveryOrderId: {},
115
- adjustmentId: {},
116
- closingId: {}
117
- },
118
- setup(s) {
119
- const t = s, c = j(), i = F(), a = P(), e = B(!1), r = C(), n = B([]), d = B("");
120
- async function y() {
121
- t.adjustmentId ? await i.getAuditTrails(t.adjustmentId).then((o) => {
122
- n.value = o;
123
- }) : t.closingId ? await a.getAuditTrails(t.closingId).then((o) => {
124
- n.value = o;
125
- }) : t.purchaseOrderId && t.deliveryOrderId && await c.getDeliveryOrderTrails(t.purchaseOrderId, t.deliveryOrderId).then((o) => {
126
- n.value = o;
127
- });
128
- }
129
- function v(o) {
130
- r.open({
131
- title: "Metadata",
132
- contentComponent: N(
133
- "pre",
134
- { class: "bg-gray-100 p-4 rounded whitespace-pre-wrap" },
135
- JSON.stringify(o, null, 2)
136
- )
137
- });
138
- }
139
- const g = [
140
- {
141
- accessorKey: "createdAt",
142
- header: () => "Created At"
143
- },
144
- {
145
- accessorKey: "createdBy",
146
- header: () => "Created By",
147
- cell: (o) => o.getValue().name
148
- },
149
- {
150
- accessorKey: "message",
151
- header: () => "Message"
152
- },
153
- {
154
- accessorKey: "metadata",
155
- header: () => "Metadata",
156
- cell: (o) => N(V.FmButton, {
157
- label: "View",
158
- onClick: () => v(o.getValue())
159
- }),
160
- meta: {
161
- cellSpanClass: ""
162
- }
163
- }
164
- ];
165
- return (o, u) => {
166
- const h = $("FmButton"), l = $("FmTable"), k = $("FmDialog");
167
- return m(), O(k, {
168
- modelValue: e.value,
169
- "onUpdate:modelValue": u[0] || (u[0] = (D) => e.value = D),
170
- overlay: !0,
171
- dismissAway: "",
172
- "max-width": "800px"
173
- }, {
174
- "dialog-button": p(() => [
175
- w(T, null, {
176
- default: p(() => [
177
- w(h, {
178
- variant: "plain",
179
- label: "Trails",
180
- size: "md",
181
- "prepend-icon": "overview",
182
- onClick: y
183
- })
184
- ]),
185
- _: 1
186
- })
187
- ]),
188
- "dialog-header": p(() => [
189
- o.adjustmentId ? (m(), b("div", q, 'Adjustment Template "' + f(o.adjustmentId) + '" Trails', 1)) : o.closingId ? (m(), b("div", S, 'Closing Template "' + f(o.closingId) + '" Trails', 1)) : (m(), b("div", K, 'Delivery Order "' + f(o.deliveryOrderId) + '" Trails', 1))
190
- ]),
191
- default: p(() => [
192
- _("div", null, [
193
- w(l, {
194
- "row-data": n.value,
195
- "column-defs": g,
196
- "search-value": d.value,
197
- "shrink-at": !1
198
- }, null, 8, ["row-data", "search-value"])
199
- ])
200
- ]),
201
- _: 1
202
- }, 8, ["modelValue"]);
203
- };
204
- }
205
- });
206
- export {
207
- W as _,
208
- j as u
209
- };