@feedmepos/mf-inventory-portal 0.0.20-dev.1 → 0.0.21-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 (58) hide show
  1. package/dist/{ApprovalView-CF-RhtHH.js → ApprovalView-DW0_5glj.js} +5 -5
  2. package/dist/{BindingsDialog-0_fCmf7t.js → BindingsDialog-Czx4IaxD.js} +1 -1
  3. package/dist/{BindingsPicker-CT-56t-W.js → BindingsPicker-C25wyJ5c.js} +1 -1
  4. package/dist/BindingsTable-DypE3NR_.js +145 -0
  5. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-6yg6_JPe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CHNBnuDM.js} +1 -1
  6. package/dist/IngredientsView-B-Hwi7zE.js +1751 -0
  7. package/dist/{IntegrationView-D7hqf0P5.js → IntegrationView-BrsjpHwN.js} +2 -2
  8. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-HcOKpAlW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DZOs6wE2.js} +1 -1
  9. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BTOE1vFl.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Y3A-wRZm.js} +1 -1
  10. package/dist/{PurchaseOrderPrintPreview-C92PdleC.js → PurchaseOrderPrintPreview-BYxCDtxN.js} +1 -1
  11. package/dist/{ReceiveRequestView-BaxEQWOD.js → ReceiveRequestView-Da81c19A.js} +7 -7
  12. package/dist/{RecipeView-CDgZpLPk.js → RecipeView-21VHawYH.js} +4 -4
  13. package/dist/{StockView-B77CrARl.js → StockView-BRxg62Jk.js} +499 -487
  14. package/dist/{SupplierView-DQ3hB7q2.js → SupplierView-BR7mmuKe.js} +4 -4
  15. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lsyakQIl.js → TransferDetails.vue_vue_type_script_setup_true_lang-BixtDHmX.js} +88 -87
  16. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-DN7NCT72.js → TransferDialog.vue_vue_type_script_setup_true_lang-q75hFaSf.js} +473 -475
  17. package/dist/TransferTemplateView-BXNj1QDe.js +1381 -0
  18. package/dist/{UnitView-DlmlVNOx.js → UnitView-bO2BhUFj.js} +5 -5
  19. package/dist/{WarehouseView-DXWls5vv.js → WarehouseView-CmB2drN4.js} +3 -3
  20. package/dist/api/inventory.d.ts +104 -5
  21. package/dist/api/stock.d.ts +8 -0
  22. package/dist/{app-P7rGzGsF.js → app-CmxCdDLB.js} +5169 -5113
  23. package/dist/app.d.ts +6 -0
  24. package/dist/app.js +3 -3
  25. package/dist/components/FmUnitInputProps.d.ts +1 -0
  26. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  27. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  28. package/dist/{decimal-4ONRlhOO.js → decimal-jg7WewgV.js} +1 -1
  29. package/dist/{id-to-date-D8Ey2CVj.js → id-to-date-5ySGvt_H.js} +1 -1
  30. package/dist/{layout-D-zXtsSp.js → layout-DTjCHRyt.js} +6 -6
  31. package/dist/purchase-order-transaction-type-B9KguKXt.js +723 -0
  32. package/dist/stores/inventory.d.ts +4 -4
  33. package/dist/stores/location.d.ts +308 -1612
  34. package/dist/style.css +1 -1
  35. package/dist/{supplier-DsUIjl-L.js → supplier-D1iKgl2Z.js} +1 -1
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  38. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  39. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +5 -5
  40. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  41. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  42. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +12 -12
  43. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +12 -12
  44. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
  45. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
  46. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +2 -2
  47. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +1 -1
  48. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +109 -0
  49. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +2 -2
  50. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1461 -249
  51. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +926 -118
  52. package/dist/{xlsx-zfERRe6K.js → xlsx-DE-wX-rr.js} +1 -1
  53. package/dist/{xlsx.util-DnbiJzsk.js → xlsx.util-ktlEcFIy.js} +2 -2
  54. package/package.json +3 -3
  55. package/dist/BindingsTable-DEftAnTN.js +0 -120
  56. package/dist/IngredientsView-Au6oRwF2.js +0 -1663
  57. package/dist/TransferTemplateView-Dt04xMCK.js +0 -1290
  58. package/dist/format-unit-display-DJpElzu_.js +0 -707
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, mergeModels as xe, computed as _, useModel as we, resolveComponent as P, openBlock as U, createElementBlock as B, createElementVNode as u, createVNode as m, withCtx as N, toDisplayString as T, unref as l, Fragment as ke, renderList as Ce, ref as L, createBlock as q, createCommentVNode as X, isRef as me, watch as Ie, onMounted as Me, normalizeStyle as $e, Teleport as Ae } from "vue";
2
- import { u as be } from "./supplier-DsUIjl-L.js";
2
+ import { u as be } from "./supplier-D1iKgl2Z.js";
3
3
  import { D as ve, R as O, F as A } from "./row-action.enum-PMKMRrZR.js";
4
- import { c as Ue, _ as De, F as J, u as Fe } from "./layout-D-zXtsSp.js";
5
- import { c as Z, u as ge, a2 as Re, d as fe, g as Pe, y as Ne, C as W, h as Ee, R as F, b as Ve, j as _e } from "./app-P7rGzGsF.js";
4
+ import { c as Ue, _ as De, F as J, u as Fe } from "./layout-DTjCHRyt.js";
5
+ import { c as Z, u as ge, a2 as Re, d as fe, g as Pe, y as Ne, C as W, h as Ee, R as F, b as Ve, j as _e } from "./app-CmxCdDLB.js";
6
6
  import { useI18n as z, useCoreStore as Te } from "@feedmepos/mf-common";
7
7
  import { useDialog as he, useSnackbar as Se, useProxiedModel as ye, useBreakpoints as Be } from "@feedmepos/ui-library";
8
- import { _ as Le, a as qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-6yg6_JPe.js";
8
+ import { _ as Le, a as qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CHNBnuDM.js";
9
9
  import { _ as ze } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
10
10
  function Ye(R, C) {
11
11
  const { t: h } = z();
@@ -1,9 +1,9 @@
1
- import { b as le, f as ae, P as Z, e as xe, g as De } from "./format-unit-display-DJpElzu_.js";
2
- import { computed as re, h as be, defineComponent as Se, ref as ee, resolveComponent as K, openBlock as d, createBlock as P, unref as s, isRef as Ce, withCtx as te, createElementVNode as e, createVNode as I, createElementBlock as h, Fragment as X, toDisplayString as l, normalizeClass as se, createCommentVNode as f, renderList as oe } from "vue";
3
- import { c as ge } from "./layout-D-zXtsSp.js";
4
- import { D as g, R as p } from "./row-action.enum-PMKMRrZR.js";
5
- import { B as Re, l as ie, a as ce, a7 as ue, ag as b, c as Ae, j as Ee, ad as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-P7rGzGsF.js";
6
- import { F as Ie } from "./decimal-4ONRlhOO.js";
1
+ import { b as le, f as ae, P as Z, e as xe, g as De } from "./purchase-order-transaction-type-B9KguKXt.js";
2
+ import { computed as re, h as be, defineComponent as Se, ref as ee, resolveComponent as K, openBlock as d, createBlock as P, unref as s, isRef as Ce, withCtx as te, createElementVNode as e, createVNode as I, createElementBlock as b, Fragment as X, toDisplayString as l, normalizeClass as se, createCommentVNode as p, renderList as oe } from "vue";
3
+ import { c as ge } from "./layout-DTjCHRyt.js";
4
+ import { D as y, R as f } from "./row-action.enum-PMKMRrZR.js";
5
+ import { B as Re, l as ie, a as ce, a6 as ue, ah as g, c as Ae, j as Ee, ae as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-CmxCdDLB.js";
6
+ import { F as Ie } from "./decimal-jg7WewgV.js";
7
7
  import { components as _e, useDialog as Ue, useSnackbar as Me, useProxiedModel as $e } from "@feedmepos/ui-library";
8
8
  import { useI18n as Oe } from "@feedmepos/mf-common";
9
9
  import { E as Ke } from "./empty-placeholder-wf6-BWE8.js";
@@ -77,42 +77,42 @@ const z = {
77
77
  submitRequest: {
78
78
  translationKey: "inventory.transfer.receiveRequest.actions.submitRequest",
79
79
  color: "text-fm-color-typo-primary",
80
- value: b.enum.submitRequest
80
+ value: g.enum.submitRequest
81
81
  },
82
82
  confirmDraft: {
83
83
  translationKey: "inventory.transfer.receiveRequest.actions.confirmDraft",
84
84
  color: "text-fm-color-typo-primary",
85
- value: b.enum.confirmDraft
85
+ value: g.enum.confirmDraft
86
86
  },
87
87
  cancelDraft: {
88
88
  translationKey: "inventory.transfer.receiveRequest.actions.cancelDraft",
89
89
  color: "text-fm-color-typo-error",
90
- value: b.enum.cancelDraft
90
+ value: g.enum.cancelDraft
91
91
  },
92
92
  approveRequest: {
93
93
  translationKey: "inventory.transfer.receiveRequest.actions.approveRequest",
94
94
  color: "text-fm-color-typo-primary",
95
- value: b.enum.approveRequest
95
+ value: g.enum.approveRequest
96
96
  },
97
97
  rejectRequest: {
98
98
  translationKey: "inventory.transfer.receiveRequest.actions.rejectRequest",
99
99
  color: "text-fm-color-typo-error",
100
- value: b.enum.rejectRequest
100
+ value: g.enum.rejectRequest
101
101
  },
102
102
  processRequest: {
103
103
  translationKey: "inventory.transfer.receiveRequest.actions.processRequest",
104
104
  color: "text-fm-color-typo-primary",
105
- value: b.enum.processRequest
105
+ value: g.enum.processRequest
106
106
  },
107
107
  receiveStock: {
108
108
  translationKey: "inventory.transfer.receiveRequest.actions.receiveStock",
109
109
  color: "text-fm-color-typo-primary",
110
- value: b.enum.receiveStock
110
+ value: g.enum.receiveStock
111
111
  },
112
112
  completeReceive: {
113
113
  translationKey: "inventory.transfer.receiveRequest.actions.completeReceive",
114
114
  color: "text-fm-color-typo-primary",
115
- value: b.enum.completeReceive
115
+ value: g.enum.completeReceive
116
116
  }
117
117
  };
118
118
  function us(m, k) {
@@ -121,57 +121,58 @@ function us(m, k) {
121
121
  switch (c.status) {
122
122
  case "DRAFT":
123
123
  return [
124
- c.supplier.internal === "restaurant" || c.supplier.internal === "warehouse" ? z[b.enum.submitRequest] : z[b.enum.confirmDraft],
125
- z[b.enum.cancelDraft],
126
- g[p.Update],
127
- g[p.Details],
128
- g[p.Print]
124
+ c.supplier.internal === "restaurant" || c.supplier.internal === "warehouse" ? z[g.enum.submitRequest] : z[g.enum.confirmDraft],
125
+ z[g.enum.cancelDraft],
126
+ y[f.Update],
127
+ y[f.Details],
128
+ y[f.Print]
129
129
  ];
130
130
  case "RECEIVING":
131
131
  return [
132
- z[b.enum.completeReceive],
133
- g[p.Update],
134
- g[p.Details],
135
- g[p.Print]
132
+ z[g.enum.completeReceive],
133
+ y[f.Update],
134
+ y[f.Details],
135
+ y[f.Print]
136
136
  ];
137
137
  case "REQUESTING":
138
138
  return m === "receive/request" ? [
139
- g[p.Update],
140
- g[p.Details],
141
- g[p.Print]
139
+ y[f.Update],
140
+ y[f.Details],
141
+ y[f.Print]
142
142
  ] : [
143
- z[b.enum.approveRequest],
144
- z[b.enum.rejectRequest],
145
- g[p.Details],
146
- g[p.Print]
143
+ z[g.enum.approveRequest],
144
+ z[g.enum.rejectRequest],
145
+ y[f.Details],
146
+ y[f.Print]
147
147
  ];
148
148
  case "PROCESSING":
149
- return [g[p.Details], g[p.Print]];
149
+ return [y[f.Details], y[f.Print]];
150
150
  case "COMPLETE":
151
- case "CANCEL":
152
- default:
153
151
  return [
154
- g[p.Update],
155
- g[p.Details],
156
- g[p.Print]
152
+ y[f.Update],
153
+ y[f.Details],
154
+ y[f.Print]
157
155
  ];
156
+ case "CANCEL":
157
+ default:
158
+ return [y[f.Details], y[f.Print]];
158
159
  }
159
160
  }
160
161
  function D(c) {
161
- return Object.values(b.enum).includes(c);
162
+ return Object.values(g.enum).includes(c);
162
163
  }
163
164
  async function A(c, o, a) {
164
165
  var V, B;
165
166
  const v = Ae(o);
166
- if (c === p.Print) {
167
+ if (c === f.Print) {
167
168
  Ve(v, _.currentLocation);
168
169
  return;
169
170
  }
170
- if (c === p.Details) {
171
+ if (c === f.Details) {
171
172
  k.promptShowTransferDetails(v, a);
172
173
  return;
173
174
  }
174
- if (c === p.Update) {
175
+ if (c === f.Update) {
175
176
  (V = k.promptUpdateTransferDialog) == null || V.call(k, v);
176
177
  return;
177
178
  }
@@ -374,8 +375,8 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
374
375
  setup(m, { emit: k }) {
375
376
  const _ = m, r = k, T = Ue(), D = Me(), A = Fe(), { t: i } = Oe(), U = re(
376
377
  () => {
377
- var t, n, S, y;
378
- return ((n = (t = _.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : n.internal) === "restaurant" || ((y = (S = _.purchaseOrder) == null ? void 0 : S.supplier) == null ? void 0 : y.internal) === "warehouse" ? Z.TRANSFER : Z.PURCHASE;
378
+ var t, n, S, h;
379
+ return ((n = (t = _.purchaseOrder) == null ? void 0 : t.supplier) == null ? void 0 : n.internal) === "restaurant" || ((h = (S = _.purchaseOrder) == null ? void 0 : S.supplier) == null ? void 0 : h.internal) === "warehouse" ? Z.TRANSFER : Z.PURCHASE;
379
380
  }
380
381
  ), L = [
381
382
  {
@@ -396,24 +397,24 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
396
397
  doc: t,
397
398
  options: (
398
399
  // auto receive for supplier to warehouse
399
- (n === b.enum.confirmDraft || // auto receive for warehouse to warehouse
400
- n === b.enum.completeReceive) && A.autoReceiveWarehouse ? {
400
+ (n === g.enum.confirmDraft || // auto receive for warehouse to warehouse
401
+ n === g.enum.completeReceive) && A.autoReceiveWarehouse ? {
401
402
  autoReceive: !0
402
403
  } : void 0
403
404
  )
404
405
  },
405
406
  _.transferToDbName
406
- ), await new Promise((y) => setTimeout(y, 1e3)), D.open({
407
+ ), await new Promise((h) => setTimeout(h, 1e3)), D.open({
407
408
  title: "Success",
408
409
  message: S,
409
410
  type: "success"
410
411
  }), r("update:show", !1), r("submitted");
411
- } catch (y) {
412
+ } catch (h) {
412
413
  D.open({
413
414
  title: "Something went wrong",
414
415
  message: "Please try again.",
415
416
  type: "error"
416
- }), console.error("Error when submitting PO operation", n, t, y);
417
+ }), console.error("Error when submitting PO operation", n, t, h);
417
418
  } finally {
418
419
  a.value = "", o.value = !1, v.value = !0;
419
420
  }
@@ -428,11 +429,11 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
428
429
  });
429
430
  return;
430
431
  }
431
- const { successMessage: S, ...y } = n;
432
+ const { successMessage: S, ...h } = n;
432
433
  T.open({
433
- title: y.title,
434
- message: y.message,
435
- primaryActions: y.primaryActions
434
+ title: h.title,
435
+ message: h.message,
436
+ primaryActions: h.primaryActions
436
437
  }).onPrimary(() => {
437
438
  _.purchaseOrder && qe(_.purchaseOrder, t, S);
438
439
  });
@@ -448,7 +449,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
448
449
  return O[N.sku._id] = [...H, N], O;
449
450
  },
450
451
  {}
451
- ), y = Object.entries(S).reduce(
452
+ ), h = Object.entries(S).reduce(
452
453
  (O, [N, H]) => {
453
454
  const E = H.reduce((F, j) => {
454
455
  const $ = Pe(
@@ -462,12 +463,12 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
462
463
  {}
463
464
  ), ne = ((G = _.purchaseOrder) == null ? void 0 : G.items) ?? [];
464
465
  for (const O of ne)
465
- y[w = O.sku._id] ?? (y[w] = ie(0));
466
- return y;
466
+ h[w = O.sku._id] ?? (h[w] = ie(0));
467
+ return h;
467
468
  });
468
469
  return (t, n) => {
469
470
  var N, H;
470
- const S = K("FmButtonGroup"), y = K("FmChip"), ne = K("FmMenuDivider"), Q = K("FmCard"), G = K("FmSpacer"), w = K("FmButton"), O = K("FmSideSheet");
471
+ const S = K("FmButtonGroup"), h = K("FmChip"), ne = K("FmMenuDivider"), Q = K("FmCard"), G = K("FmSpacer"), w = K("FmButton"), O = K("FmSideSheet");
471
472
  return d(), P(O, {
472
473
  header: s(i)("inventory.transfer.receiveRequest.details.title") + ((N = t.purchaseOrder) != null && N.seqNumber ? ` #${(H = t.purchaseOrder) == null ? void 0 : H.seqNumber}` : ""),
473
474
  modelValue: s(B),
@@ -487,7 +488,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
487
488
  "onUpdate:modelValue": n[0] || (n[0] = (u) => c.value = u)
488
489
  }, null, 8, ["modelValue"])
489
490
  ]),
490
- c.value.value === "overview" ? (d(), h(X, { key: 0 }, [
491
+ c.value.value === "overview" ? (d(), b(X, { key: 0 }, [
491
492
  I(Q, {
492
493
  variant: "outlined",
493
494
  class: "flex flex-col gap-8 px-12 py-16"
@@ -498,7 +499,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
498
499
  e("div", Ge, [
499
500
  e("div", He, l(s(i)("inventory.transfer.receiveRequest.details.requestSummary")), 1),
500
501
  e("div", null, [
501
- I(y, {
502
+ I(h, {
502
503
  label: s(i)(`inventory.transfer.status.${(u = t.purchaseOrder) == null ? void 0 : u.status}`),
503
504
  class: se(`fm-status-badge fm-status-badge-${(x = (R = t.purchaseOrder) == null ? void 0 : R.status) == null ? void 0 : x.toLocaleLowerCase("en-us")}`),
504
505
  compact: ""
@@ -513,32 +514,32 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
513
514
  ]),
514
515
  e("div", We, l(s(ae)(((W = t.purchaseOrder) == null ? void 0 : W._id) ?? "")), 1)
515
516
  ]),
516
- (C = t.purchaseOrder) != null && C.effectiveAt ? (d(), h("div", Xe, [
517
+ (C = t.purchaseOrder) != null && C.effectiveAt ? (d(), b("div", Xe, [
517
518
  e("div", Ze, l(s(i)("inventory.transfer.receiveRequest.details.backdatedTo")), 1),
518
519
  e("div", et, l(s(ue)(new Date((de = t.purchaseOrder) == null ? void 0 : de.effectiveAt))), 1)
519
- ])) : f("", !0),
520
+ ])) : p("", !0),
520
521
  e("div", tt, [
521
522
  e("div", st, l(s(i)("inventory.transfer.receiveRequest.details.type.title")), 1),
522
523
  e("div", rt, l(s(i)(
523
524
  `inventory.transfer.receiveRequest.details.type.${U.value.toLocaleLowerCase("en-US")}`
524
525
  )), 1)
525
526
  ]),
526
- (fe = (me = t.purchaseOrder) == null ? void 0 : me.supplier) != null && fe.name ? (d(), h("div", at, [
527
+ (fe = (me = t.purchaseOrder) == null ? void 0 : me.supplier) != null && fe.name ? (d(), b("div", at, [
527
528
  e("div", nt, l(s(i)("inventory.transfer.receiveRequest.details.from")), 1),
528
529
  e("div", ot, l((ve = (pe = t.purchaseOrder) == null ? void 0 : pe.supplier) == null ? void 0 : ve.name), 1)
529
- ])) : f("", !0),
530
- t.transferTo ? (d(), h("div", lt, [
530
+ ])) : p("", !0),
531
+ t.transferTo ? (d(), b("div", lt, [
531
532
  e("div", it, l(s(i)("inventory.transfer.receiveRequest.details.to")), 1),
532
533
  e("div", ct, l(t.transferTo), 1)
533
- ])) : f("", !0),
534
- (ye = t.purchaseOrder) != null && ye.ref ? (d(), h("div", ut, [
534
+ ])) : p("", !0),
535
+ (ye = t.purchaseOrder) != null && ye.ref ? (d(), b("div", ut, [
535
536
  e("div", dt, l(s(i)("inventory.transfer.receiveRequest.details.reference")), 1),
536
537
  e("div", mt, l(t.purchaseOrder.ref), 1)
537
- ])) : f("", !0),
538
- (he = t.purchaseOrder) != null && he.remark ? (d(), h("div", ft, [
538
+ ])) : p("", !0),
539
+ (he = t.purchaseOrder) != null && he.remark ? (d(), b("div", ft, [
539
540
  e("div", pt, l(s(i)("inventory.transfer.receiveRequest.details.remark")), 1),
540
541
  e("div", vt, l(t.purchaseOrder.remark), 1)
541
- ])) : f("", !0)
542
+ ])) : p("", !0)
542
543
  ])
543
544
  ];
544
545
  }),
@@ -547,7 +548,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
547
548
  e("div", yt, [
548
549
  e("div", ht, [
549
550
  e("div", bt, l(ke.value ? s(i)("inventory.transfer.receiveRequest.details.receivedItems") : s(i)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
550
- (d(!0), h(X, null, oe(((E = t.purchaseOrder) == null ? void 0 : E.items) ?? [], (u) => (d(), h("div", {
551
+ (d(!0), b(X, null, oe(((E = t.purchaseOrder) == null ? void 0 : E.items) ?? [], (u) => (d(), b("div", {
551
552
  key: u.code,
552
553
  class: "flex flex-col"
553
554
  }, [
@@ -557,14 +558,14 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
557
558
  ]),
558
559
  e("div", Ot, [
559
560
  e("div", qt, l(u.code), 1),
560
- u.totalCost && s(A).enableTotalCost ? (d(), h("div", kt, " (" + l(s(Te)(u.totalCost)) + ") ", 1)) : f("", !0)
561
+ u.totalCost && s(A).enableTotalCost ? (d(), b("div", kt, " (" + l(s(Te)(u.totalCost)) + ") ", 1)) : p("", !0)
561
562
  ])
562
563
  ]))), 128))
563
564
  ])
564
565
  ])
565
- ], 64)) : f("", !0),
566
- c.value.value === "deliveryHistory" ? (d(), h("div", wt, [
567
- ((j = (F = t.purchaseOrder) == null ? void 0 : F.deliveryOrder) == null ? void 0 : j.length) === 0 ? (d(), h("div", xt, [
566
+ ], 64)) : p("", !0),
567
+ c.value.value === "deliveryHistory" ? (d(), b("div", wt, [
568
+ ((j = (F = t.purchaseOrder) == null ? void 0 : F.deliveryOrder) == null ? void 0 : j.length) === 0 ? (d(), b("div", xt, [
568
569
  I(G),
569
570
  e("div", null, [
570
571
  e("img", {
@@ -576,9 +577,9 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
576
577
  e("div", Ct, l(s(i)("inventory.transfer.receiveRequest.details.trackDeliveryMessage")), 1),
577
578
  I(G),
578
579
  I(G)
579
- ])) : f("", !0),
580
- ($ = t.purchaseOrder) != null && $.deliveryOrder && ((Y = t.purchaseOrder) == null ? void 0 : Y.deliveryOrder.length) > 0 ? (d(), h("div", At, [
581
- (d(!0), h(X, null, oe((J = t.purchaseOrder) == null ? void 0 : J.deliveryOrder, (u, R) => (d(), h(X, { key: R }, [
580
+ ])) : p("", !0),
581
+ ($ = t.purchaseOrder) != null && $.deliveryOrder && ((Y = t.purchaseOrder) == null ? void 0 : Y.deliveryOrder.length) > 0 ? (d(), b("div", At, [
582
+ (d(!0), b(X, null, oe((J = t.purchaseOrder) == null ? void 0 : J.deliveryOrder, (u, R) => (d(), b(X, { key: R }, [
582
583
  e("div", Et, [
583
584
  e("div", Pt, [
584
585
  e("div", Tt, [
@@ -637,7 +638,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
637
638
  ]),
638
639
  e("div", Ht, [
639
640
  e("div", zt, l(s(i)("inventory.transfer.receiveRequest.details.receivedItems")), 1),
640
- (d(!0), h(X, null, oe(u.received, (x) => (d(), h("div", {
641
+ (d(!0), b(X, null, oe(u.received, (x) => (d(), b("div", {
641
642
  class: "fm-typo-en-body-lg-600",
642
643
  key: x.sku._id
643
644
  }, l(x.sku.name) + " " + l(s(le)(x.amount, x.sku.unit, x.measurement)), 1))), 128))
@@ -647,7 +648,7 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
647
648
  e("div", Jt, l(u.deliveryOrderNumber.trim().length ? u.deliveryOrderNumber : "-"), 1)
648
649
  ]),
649
650
  e("div", Wt, [
650
- u.remark ? (d(), h("div", Xt, l(s(i)("inventory.transfer.receiveRequest.details.deliveryRemark")), 1)) : f("", !0),
651
+ u.remark ? (d(), b("div", Xt, l(s(i)("inventory.transfer.receiveRequest.details.deliveryRemark")), 1)) : p("", !0),
651
652
  e("div", Zt, l(u.remark), 1)
652
653
  ])
653
654
  ])
@@ -657,8 +658,8 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
657
658
  ])
658
659
  ])
659
660
  ], 64))), 128))
660
- ])) : f("", !0)
661
- ])) : f("", !0)
661
+ ])) : p("", !0)
662
+ ])) : p("", !0)
662
663
  ])
663
664
  ];
664
665
  }),
@@ -672,14 +673,14 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
672
673
  onClick: n[1] || (n[1] = (C) => M("confirmDraft")),
673
674
  loading: a.value === "confirmDraft",
674
675
  disabled: a.value !== "confirmDraft" && o.value
675
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
676
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
676
677
  ((F = t.purchaseOrder) == null ? void 0 : F.status) === s(q).enum.DRAFT && U.value === s(Z).TRANSFER ? (d(), P(w, {
677
678
  key: 1,
678
679
  label: s(i)("inventory.transfer.receiveRequest.actions.submitRequest"),
679
680
  onClick: n[2] || (n[2] = (C) => M("submitRequest")),
680
681
  loading: a.value === "submitRequest",
681
682
  disabled: a.value !== "submitRequest" && o.value
682
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
683
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
683
684
  ((j = t.purchaseOrder) == null ? void 0 : j.status) === s(q).enum.DRAFT ? (d(), P(w, {
684
685
  key: 2,
685
686
  label: s(i)("inventory.transfer.receiveRequest.actions.cancelDraft"),
@@ -687,28 +688,28 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
687
688
  loading: a.value === "cancelDraft",
688
689
  disabled: a.value !== "cancelDraft" && o.value,
689
690
  variant: "destructive"
690
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
691
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
691
692
  (($ = t.purchaseOrder) == null ? void 0 : $.status) === s(q).enum.RECEIVING ? (d(), P(w, {
692
693
  key: 3,
693
694
  label: s(i)("inventory.transfer.receiveRequest.actions.completeReceive"),
694
695
  onClick: n[4] || (n[4] = (C) => M("completeReceive")),
695
696
  loading: a.value === "completeReceive",
696
697
  disabled: a.value !== "completeReceive" && o.value
697
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
698
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
698
699
  t.canResubmit ? (d(), P(w, {
699
700
  key: 4,
700
701
  label: s(i)("inventory.transfer.receiveRequest.actions.resubmitRequest"),
701
702
  onClick: n[5] || (n[5] = (C) => M("submitRequest")),
702
703
  loading: a.value === "submitRequest",
703
704
  disabled: a.value !== "submitRequest" && o.value
704
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
705
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
705
706
  (((Y = t.purchaseOrder) == null ? void 0 : Y.status) === s(q).enum.REQUESTING || ((J = t.purchaseOrder) == null ? void 0 : J.status) === s(q).enum.PROCESSING) && t.canApprove ? (d(), P(w, {
706
707
  key: 5,
707
708
  label: s(i)("inventory.transfer.approval.actions.approveRequest"),
708
709
  onClick: n[6] || (n[6] = (C) => M("approveRequest")),
709
710
  loading: a.value === "approveRequest",
710
711
  disabled: a.value !== "approveRequest" && o.value
711
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
712
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
712
713
  ((u = t.purchaseOrder) == null ? void 0 : u.status) === s(q).enum.REQUESTING && t.canApprove ? (d(), P(w, {
713
714
  key: 6,
714
715
  label: s(i)("inventory.transfer.approval.actions.rejectRequest"),
@@ -716,13 +717,13 @@ const Be = { class: "flex flex-col gap-16 w-full h-full" }, Ge = { class: "flex
716
717
  loading: a.value === "rejectRequest",
717
718
  disabled: a.value !== "rejectRequest" && o.value,
718
719
  variant: "destructive"
719
- }, null, 8, ["label", "loading", "disabled"])) : f("", !0),
720
+ }, null, 8, ["label", "loading", "disabled"])) : p("", !0),
720
721
  ((R = t.purchaseOrder) == null ? void 0 : R.status) !== s(q).enum.COMPLETE && ((x = t.purchaseOrder) == null ? void 0 : x.status) !== s(q).enum.CANCEL && (((W = t.purchaseOrder) == null ? void 0 : W.status) !== s(q).enum.REQUESTING || t.canApprove) ? (d(), P(w, {
721
722
  key: 7,
722
723
  label: s(i)("common.close"),
723
724
  variant: "tertiary",
724
725
  onClick: n[8] || (n[8] = (C) => r("update:show", !1))
725
- }, null, 8, ["label"])) : f("", !0)
726
+ }, null, 8, ["label"])) : p("", !0)
726
727
  ])
727
728
  ];
728
729
  }),