@feedmepos/mf-inventory-portal 1.7.1-dev.0 → 1.7.2-dev.0

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 (136) hide show
  1. package/dist/{App-B_ja37tB.js → App-GsVnjJ5M.js} +5 -5
  2. package/dist/ApprovalView-DSPu2Gk5.js +242 -0
  3. package/dist/{BindingsDialog-0IRWCLTc.js → BindingsDialog-B9_lCD9R.js} +2 -2
  4. package/dist/{BindingsPicker-DCISa6Fx.js → BindingsPicker-ZKl53ZBk.js} +2 -2
  5. package/dist/{BindingsTable-B3CmHp97.js → BindingsTable-CLtS3u8f.js} +3 -3
  6. package/dist/BulkReceiveRequestView-BbHwEPzW.js +2011 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Nd89xp.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-KgqYNGrB.js} +1 -1
  8. package/dist/ClosingDraftView-Ctc6-1-J.js +4496 -0
  9. package/dist/{ClosingHistoryView-KdmhszIO.js → ClosingHistoryView-CX9xtMvI.js} +7 -7
  10. package/dist/{ClosingTemplateView-CQRujMB9.js → ClosingTemplateView-BuoQegZF.js} +17 -17
  11. package/dist/{DefaultView-QAEDG6pS.js → DefaultView-BltV37jK.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-B08SSOCX.js → DeliveryOrderPrintPreview-CxzgxTJk.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DdzV_fzq.js → EmailDialog.vue_vue_type_script_setup_true_lang-5Hhoj-yj.js} +10225 -10398
  14. package/dist/{FmAdminBadge-DH_2w13D.js → FmAdminBadge-DlplQOHb.js} +8 -8
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CmH3uhTZ.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-jTZNZIrW.js} +1 -1
  16. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BYTn-hpQ.js +76 -0
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLYrZfPo.js} +4 -4
  18. package/dist/{FmMultiselectDialog-QEs0yct_.js → FmMultiselectDialog-BxAfKkDh.js} +2 -2
  19. package/dist/{FmMultiselectDialog-DpPyNOpJ.js → FmMultiselectDialog-DF_inpi2.js} +1 -1
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8-IQUtA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BYhQBazV.js} +119 -121
  21. package/dist/{ImportView-8qlgZSTO.js → ImportView-C76r6and.js} +8 -8
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGWRbAF2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-By-9uV57.js} +1 -1
  23. package/dist/{IngredientGroupView-BI9SlKfz.js → IngredientGroupView-vRbMzHBS.js} +6 -6
  24. package/dist/{IngredientsView-1naUkKAi.js → IngredientsView-GMSV1cL0.js} +17 -17
  25. package/dist/{IntegrationExplorerView-C6kyLz3y.js → IntegrationExplorerView-ClhCRTC-.js} +5 -5
  26. package/dist/{IntegrationView-DrmxLdlk.js → IntegrationView-DM-TvYjd.js} +15 -15
  27. package/dist/{InventoryBindingForm-CPNAgZkD.js → InventoryBindingForm-CpY3n5Ug.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-sz_VtHRr.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CEF1D6bJ.js} +5 -5
  29. package/dist/{InventoryBindingSummary-Cu98L10w.js → InventoryBindingSummary-CYOt-E-3.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-g2PDNQx-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-jZHUuEoU.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZEa61go.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bw1xCASs.js} +1 -1
  32. package/dist/{ProductionView-D8dxypqA.js → ProductionView-D6UC_XqI.js} +8 -8
  33. package/dist/{PublishView-C82UwIoz.js → PublishView-CuDaby-H.js} +4 -4
  34. package/dist/{PurchaseOrderPrintPreview-CP40tEma.js → PurchaseOrderPrintPreview-DcSuomzT.js} +2 -2
  35. package/dist/ReceiveRequestView-CMywjm4H.js +345 -0
  36. package/dist/{RecipeView-DB1DJQp7.js → RecipeView-BAcLGUEw.js} +18 -18
  37. package/dist/{SettingsView-DsS62lxW.js → SettingsView-Dy3VaVP2.js} +6 -6
  38. package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js} +1 -1
  39. package/dist/{StockView-gcf7RCZz.js → StockView-BFSFWXEY.js} +23 -23
  40. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-nXqFCKic.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B5qk8k2h.js} +1 -1
  41. package/dist/{SupplierView-BIANlKLE.js → SupplierView-BvZ4bdjb.js} +13 -13
  42. package/dist/{SurchargeView-kRzaixM5.js → SurchargeView-DEx1ncN0.js} +7 -7
  43. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DvjxSkiV.js +178 -0
  44. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BceIOuBq.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-raGPvWWz.js} +2 -2
  45. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dqn_ArEw.js +4660 -0
  46. package/dist/{TransferTemplateView-Bq68Vh7t.js → TransferTemplateView-DqwLSixK.js} +21 -21
  47. package/dist/{UnitCostHistoryView-d0oLssyZ.js → UnitCostHistoryView-BwuW604u.js} +6 -6
  48. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CLOotG6K.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DI4MfA6h.js} +4 -4
  49. package/dist/{UnitView-BHfm2IE4.js → UnitView-DBSX7myc.js} +8 -8
  50. package/dist/{WarehouseView-CorSYwm6.js → WarehouseView-D9BLSUaw.js} +6 -6
  51. package/dist/{WastageTemplateView-CtYZwiRW.js → WastageTemplateView-BV98TGlI.js} +15 -15
  52. package/dist/api/closing-draft.d.ts +5 -1
  53. package/dist/api/purchase-order.d.ts +1 -35
  54. package/dist/{app-37NZKFUI.js → app-D_Ym25tG.js} +5262 -5566
  55. package/dist/app.d.ts +24 -88
  56. package/dist/app.js +1 -1
  57. package/dist/{closing-template-C0dl45x2.js → closing-template-CgZ_4k-K.js} +1 -1
  58. package/dist/components/FmFilterableMenuOptions.vue.d.ts +2 -11
  59. package/dist/{date2-r4KgBCs9.js → date2-BJDb1yuY.js} +1 -1
  60. package/dist/{dayjs.min-BKUldDi9.js → dayjs.min-DaQY5dXC.js} +1 -1
  61. package/dist/{decimal-Cgmw6HIY.js → decimal-D7kHeIBp.js} +2 -2
  62. package/dist/{defineDeepModel-DXLwZWst.js → defineDeepModel-C6b9BBLr.js} +1 -1
  63. package/dist/{duplicate-template-DDA4QWPl.js → duplicate-template-B3efBcsm.js} +1 -1
  64. package/dist/feature-8uw1BmnH.js +1136 -0
  65. package/dist/{format-time-from-id-Dhjn5QgH.js → format-time-from-id-DLNUrReR.js} +1 -1
  66. package/dist/{format-unit-display-g95-VuYJ.js → format-unit-display-dedOq7Rd.js} +12 -12
  67. package/dist/{import-export.helper-DsZFPPqj.js → import-export.helper-CLJoNMDx.js} +6 -6
  68. package/dist/{index-B9WjF3Ox.js → index-BzcCCKB7.js} +1 -1
  69. package/dist/{index-C207KsUh.js → index-D0IvVK8C.js} +3 -3
  70. package/dist/{index-D3Bmmx66.js → index-K8Z-b9IK.js} +1 -1
  71. package/dist/{inventory-core-dart.default-NpD15h63.js → inventory-core-dart.default-DD-U6dYG.js} +5550 -7099
  72. package/dist/{jszip.min-B52cHzHI.js → jszip.min-D6DuQ9eP.js} +2 -2
  73. package/dist/{lz-string-CItFpr5-.js → lz-string-DPtdOdTM.js} +1 -1
  74. package/dist/{netsuite-R_NkLn5t.js → netsuite-6tmjDviW.js} +2 -2
  75. package/dist/{number-BkC_lelq.js → number-CMVOg7m3.js} +3 -3
  76. package/dist/{predefined-templates-CVT54o4V.js → predefined-templates-DfSWTcww.js} +1 -1
  77. package/dist/{purchase-order-template-DvqAncB2.js → purchase-order-template-GCzUtb6y.js} +1 -1
  78. package/dist/{recalculationUtils-Cak1mo4o.js → recalculationUtils-CSBScoyF.js} +1 -1
  79. package/dist/router/name.d.ts +0 -1
  80. package/dist/{rules--cnFg-PI.js → rules-pC-W9ghI.js} +2 -2
  81. package/dist/{stock-BLYAJxMj.js → stock-C0lKfZnz.js} +1 -1
  82. package/dist/{stock-DvquSog3.js → stock-CIpjxe6A.js} +3 -3
  83. package/dist/stores/feature.d.ts +0 -2
  84. package/dist/style.css +1 -1
  85. package/dist/{supplier-C5X8p_vd.js → supplier-eYlqSO4X.js} +2 -2
  86. package/dist/{surcharge-CLkpleoW.js → surcharge-CX5M8xDS.js} +1 -1
  87. package/dist/tsconfig.app.tsbuildinfo +1 -1
  88. package/dist/{uom-rules-CykFo_pB.js → uom-rules-CfUOdeZ4.js} +1 -1
  89. package/dist/{use-ingredient-select-dialog-DlxWMkAI.js → use-ingredient-select-dialog-DYRHuZLi.js} +2 -2
  90. package/dist/{use-inventory-binding-dialog-DnWDyziu.js → use-inventory-binding-dialog-CQahb9Rn.js} +2 -2
  91. package/dist/{use-template-enabled-locations-SRgcWLO4.js → use-template-enabled-locations-BOO-eQch.js} +2 -2
  92. package/dist/{use-transfer-locations-D4f4Ib1r.js → use-transfer-locations-Ffdy6Z9C.js} +2 -2
  93. package/dist/{useHrmPermission-lAc6ZHVZ.js → useHrmPermission-CXSUDdlQ.js} +1 -1
  94. package/dist/{useNavigationMenu-CeN7TEwe.js → useNavigationMenu-DfW5RBKu.js} +49 -59
  95. package/dist/{useSseClient-C6ndlLpA.js → useSseClient-Bl-WWwFk.js} +1 -1
  96. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -2
  97. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +4 -4
  98. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +2 -2
  99. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +2 -2
  100. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +6 -6
  101. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +1 -1
  102. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +12 -12
  103. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +0 -1
  104. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +0 -1
  105. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +2 -102
  106. package/dist/views/receive-request/composables/fn.d.ts +1 -2
  107. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +3 -119
  108. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +14 -643
  109. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +15 -721
  110. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +10 -524
  111. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -102
  112. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -4
  113. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -8
  114. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +0 -12
  115. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -24
  116. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -24
  117. package/dist/{vue-i18n-DDqVG60p.js → vue-i18n-BAu5G_RB.js} +152 -152
  118. package/dist/{xlsx.util-BzQcPwvM.js → xlsx.util-BgM338n0.js} +2 -2
  119. package/package.json +5 -5
  120. package/dist/ApprovalView-_wG6KeZl.js +0 -249
  121. package/dist/BulkReceiveRequestView-Dmqm65c9.js +0 -2025
  122. package/dist/ClosingDraftView-DDWU93p0.js +0 -4398
  123. package/dist/ConnectedBusinessView-Cu2QnRN9.js +0 -533
  124. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dzqh8pM9.js +0 -84
  125. package/dist/ReceiveRequestView-DDo0Pb0J.js +0 -514
  126. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-QMUVuthC.js +0 -211
  127. package/dist/TransferDetailsV3.vue_vue_type_script_setup_true_lang-DYAzxoHE.js +0 -5991
  128. package/dist/api/connected-business-mapping.d.ts +0 -25
  129. package/dist/connected-business-mapping-ywgqqyMr.js +0 -37
  130. package/dist/feature-B4BoCy_k.js +0 -1548
  131. package/dist/views/connected-business/ConnectedBusinessMappingPanel.vue.d.ts +0 -25
  132. package/dist/views/connected-business/ConnectedBusinessView.vue.d.ts +0 -2
  133. package/dist/views/receive-request/components/CreateTransferChoice.vue.d.ts +0 -27
  134. package/dist/views/receive-request/components/transfer-details/TransferDetailsV3.vue.d.ts +0 -18
  135. package/dist/views/receive-request/helper/po-version.d.ts +0 -6
  136. /package/dist/views/{receive-request/composables/fn.spec.d.ts → closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.spec.d.ts} +0 -0
@@ -1,514 +0,0 @@
1
- import { defineComponent as _e, ref as w, resolveComponent as J, createBlock as S, openBlock as b, withCtx as $, createElementVNode as a, toDisplayString as f, unref as e, createElementBlock as X, createCommentVNode as C, normalizeClass as k, createVNode as i, createTextVNode as V, computed as O, watch as fe, normalizeStyle as Ne, Teleport as Ue, normalizeProps as Q, mergeProps as A, guardReactiveProps as ve, isRef as ze } from "vue";
2
- import { Q as I, u as Me } from "./app-37NZKFUI.js";
3
- import { i as ye } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CmH3uhTZ.js";
4
- import { u as Ve, P as K, a as Ae, _ as Ie, b as Ye, c as je, g as Be } from "./TransferDetailsV3.vue_vue_type_script_setup_true_lang-DYAzxoHE.js";
5
- import { a as be, d as He } from "./number-BkC_lelq.js";
6
- import { i as Le } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-BZEa61go.js";
7
- import { d as ge } from "./dayjs.min-BKUldDi9.js";
8
- import { e as Qe } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-CLOotG6K.js";
9
- import { u as Ke } from "./useTabStorage-BkIVScW_.js";
10
- import { u as Je, _ as Xe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js";
11
- import { useSnackbar as Ge, useBreakpoints as We } from "@feedmepos/ui-library";
12
- import { _ as Ze, a as et, b as tt } from "./EmailDialog.vue_vue_type_script_setup_true_lang-DdzV_fzq.js";
13
- import { useI18n as xe } from "@feedmepos/mf-common";
14
- import { _ as ot, F as Y } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
15
- import { u as at } from "./feature-B4BoCy_k.js";
16
- import { _ as rt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js";
17
- import { P as st, J as nt } from "./app-C39bYJmq.js";
18
- import { u as lt } from "./netsuite-R_NkLn5t.js";
19
- import { f as it } from "./predefined-templates-CVT54o4V.js";
20
- import "./inventory-core-dart.default-NpD15h63.js";
21
- const ut = { class: "flex flex-col gap-4" }, ct = { class: "fm-typo-en-title-md-600 text-fm-color-typo-primary" }, mt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, dt = { class: "flex flex-col gap-24 py-4" }, pt = { class: "flex flex-col gap-8" }, ft = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, vt = { class: "flex w-fit gap-4 p-4 bg-fm-color-neutral-gray-100 rounded-full" }, yt = { class: "flex flex-col gap-8" }, bt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, gt = { class: "flex flex-col gap-8" }, ht = ["disabled"], _t = { class: "flex flex-1 flex-col gap-4 min-w-0" }, xt = {
22
- key: 0,
23
- class: "flex items-center gap-4 fm-typo-en-body-sm-400 text-fm-color-typo-disabled"
24
- }, St = { class: "flex items-center justify-center w-40 h-40 rounded-md shrink-0 bg-fm-color-system-info-100" }, Dt = { class: "flex flex-1 flex-col gap-4 min-w-0" }, kt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Tt = { class: "flex items-center gap-4 fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, p = "inventory.transfer.receiveRequest.createDialog", wt = /* @__PURE__ */ _e({
25
- __name: "CreateTransferChoice",
26
- props: {
27
- show: { type: Boolean },
28
- supportsConnectedBusiness: { type: Boolean },
29
- outletToOutletOnly: { type: Boolean },
30
- onSelectTemplate: { type: Function },
31
- onStartBlank: { type: Function }
32
- },
33
- emits: ["update:show"],
34
- setup(Se, { emit: _ }) {
35
- const R = _, { t: d } = xe(), u = w(!1);
36
- return (v, c) => {
37
- const g = J("FmIcon"), j = J("FmDialog");
38
- return b(), S(j, {
39
- "model-value": v.show,
40
- "close-button": "",
41
- "dismiss-away": "",
42
- "max-width": 472,
43
- "onUpdate:modelValue": c[4] || (c[4] = (x) => R("update:show", x))
44
- }, {
45
- "dialog-header": $(() => [
46
- a("div", ut, [
47
- a("div", ct, f(e(d)(`${p}.title`)), 1),
48
- a("div", mt, f(e(d)(`${p}.subtitle`)), 1)
49
- ])
50
- ]),
51
- default: $(() => [
52
- a("div", dt, [
53
- a("div", pt, [
54
- a("div", ft, f(e(d)(`${p}.source`)), 1),
55
- a("div", vt, [
56
- a("button", {
57
- type: "button",
58
- class: k([
59
- "flex items-center gap-4 px-12 py-4 rounded-full fm-typo-en-body-md-600 transition-colors",
60
- u.value ? "text-fm-color-typo-secondary" : "bg-white text-fm-color-typo-primary shadow-sm"
61
- ]),
62
- onClick: c[0] || (c[0] = (x) => u.value = !1)
63
- }, [
64
- i(g, {
65
- name: "storefront",
66
- size: "sm"
67
- }),
68
- V(" " + f(e(d)(`${p}.myLocations`)), 1)
69
- ], 2),
70
- v.supportsConnectedBusiness ? (b(), X("button", {
71
- key: 0,
72
- type: "button",
73
- class: k([
74
- "flex items-center gap-4 px-12 py-4 rounded-full fm-typo-en-body-sm-600 transition-colors",
75
- u.value ? "bg-white text-fm-color-typo-primary shadow-sm" : "text-fm-color-typo-secondary"
76
- ]),
77
- onClick: c[1] || (c[1] = (x) => u.value = !0)
78
- }, [
79
- i(g, {
80
- name: "apartment",
81
- size: "sm"
82
- }),
83
- V(" " + f(e(d)(`${p}.anotherBusiness`)), 1)
84
- ], 2)) : C("", !0)
85
- ])
86
- ]),
87
- a("div", yt, [
88
- a("div", bt, f(e(d)(`${p}.howToStart`)), 1),
89
- a("div", gt, [
90
- a("button", {
91
- type: "button",
92
- disabled: u.value,
93
- class: k([
94
- "flex items-center gap-16 p-16 border rounded-md text-left transition-colors",
95
- u.value ? "bg-fm-color-neutral-gray-100 cursor-not-allowed" : "hover:bg-fm-color-neutral-gray-100 cursor-pointer"
96
- ]),
97
- onClick: c[2] || (c[2] = //@ts-ignore
98
- (...x) => v.onSelectTemplate && v.onSelectTemplate(...x))
99
- }, [
100
- a("span", {
101
- class: k([
102
- "flex items-center justify-center w-40 h-40 rounded-md shrink-0",
103
- u.value ? "bg-fm-color-neutral-gray-200" : "bg-fm-color-primary-oats"
104
- ])
105
- }, [
106
- i(g, {
107
- name: "dashboard",
108
- size: "md",
109
- color: u.value ? "neutral-gray-400" : "primary"
110
- }, null, 8, ["color"])
111
- ], 2),
112
- a("div", _t, [
113
- a("div", {
114
- class: k([
115
- "fm-typo-en-body-lg-600",
116
- u.value ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
117
- ])
118
- }, f(e(d)(`${p}.template`)), 3),
119
- a("div", {
120
- class: k([
121
- "fm-typo-en-body-sm-400",
122
- u.value ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"
123
- ])
124
- }, f(e(d)(`${p}.templateDesc`)), 3),
125
- u.value ? (b(), X("div", xt, [
126
- i(g, {
127
- name: "info",
128
- size: "sm"
129
- }),
130
- V(" " + f(e(d)(`${p}.templateExternalDisabled`)), 1)
131
- ])) : C("", !0)
132
- ]),
133
- u.value ? C("", !0) : (b(), S(g, {
134
- key: 0,
135
- name: "chevron_right",
136
- size: "md",
137
- color: "neutral-gray-400",
138
- class: "shrink-0"
139
- }))
140
- ], 10, ht),
141
- a("button", {
142
- type: "button",
143
- class: "flex items-center gap-16 p-16 border rounded-md text-left cursor-pointer hover:bg-fm-color-neutral-gray-100 transition-colors",
144
- onClick: c[3] || (c[3] = (x) => {
145
- var y;
146
- return (y = v.onStartBlank) == null ? void 0 : y.call(v, u.value);
147
- })
148
- }, [
149
- a("span", St, [
150
- i(g, {
151
- name: "edit",
152
- size: "md",
153
- color: "info"
154
- })
155
- ]),
156
- a("div", Dt, [
157
- a("div", kt, f(e(d)(`${p}.blank`)), 1),
158
- a("div", Ot, f(e(d)(`${p}.blankDesc`)), 1),
159
- a("div", Tt, [
160
- i(g, {
161
- name: "info",
162
- size: "sm"
163
- }),
164
- V(" " + f(v.outletToOutletOnly ? e(d)(`${p}.outletToOutletOnly`) : e(d)(`${p}.locationToLocationOnly`)), 1)
165
- ])
166
- ]),
167
- i(g, {
168
- name: "chevron_right",
169
- size: "md",
170
- color: "neutral-gray-400",
171
- class: "shrink-0"
172
- })
173
- ])
174
- ])
175
- ])
176
- ])
177
- ]),
178
- _: 1
179
- }, 8, ["model-value"]);
180
- };
181
- }
182
- }), $t = { class: "flex flex-col py-8" }, Ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Pt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Et = {
183
- key: 0,
184
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
185
- }, Ft = { class: "pt-8" }, he = "ReceiveRequestViewSearchCriteria", eo = /* @__PURE__ */ _e({
186
- __name: "ReceiveRequestView",
187
- setup(Se) {
188
- const { t: _ } = xe(), R = Ge();
189
- it().fetchTemplates(), I.object({
190
- name: I.string().optional().nullable(),
191
- startDate: I.string().optional().nullable(),
192
- endDate: I.string().optional().nullable()
193
- });
194
- const u = O(
195
- () => !G._currentLocation || t.loading.value
196
- ), v = Ke(), c = at(), g = lt();
197
- function j() {
198
- const n = {
199
- name: "",
200
- ...ye()
201
- }, r = v.getItem(he);
202
- if (!r)
203
- return n;
204
- try {
205
- return JSON.parse(r);
206
- } catch {
207
- return n;
208
- }
209
- }
210
- function x() {
211
- v.setItem(he, JSON.stringify(y.value));
212
- }
213
- const y = w(j()), t = Ve(
214
- K.RECEIVE_REQUEST,
215
- y.value
216
- ), {
217
- columnDefs: De,
218
- showCustomPrintDialog: B,
219
- customPrintHtml: ke,
220
- customPrintTemplateName: Oe,
221
- customPrintIsDefault: Te
222
- } = Ae(
223
- K.RECEIVE_REQUEST,
224
- t,
225
- t.shipments
226
- ), G = Me();
227
- async function we() {
228
- const n = `inventory-record_${ge(y.value.startDate).format("DD-MM-YYYY_HH-mm")}-${ge(y.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, r = t.purchaseOrders.value.flatMap(
229
- (s) => s.items.map((l) => {
230
- var T;
231
- const D = new Date(Le(s._id) ?? ""), F = s.effectiveAt ? new Date(s.effectiveAt) : void 0, q = be(
232
- Be(l.sku, s.deliveryOrder || [])
233
- ), m = be(l.quantity), h = ((T = l == null ? void 0 : l.measurement) == null ? void 0 : T.abbrev) || l.sku.unit.abbrev;
234
- return {
235
- "SKU code": l.code,
236
- "SKU name": l.name,
237
- "PO #": s.seqNumber,
238
- "Effective at": F,
239
- Date: D,
240
- Status: s.status,
241
- Reference: s.ref ?? "",
242
- "Received quantity": q,
243
- "Ordered quantity": m,
244
- Unit: h,
245
- "Total cost": l.totalCost ? He(l.totalCost) : null
246
- };
247
- })
248
- ), o = [
249
- "SKU code",
250
- "SKU name",
251
- "PO #",
252
- "Date",
253
- "Status",
254
- "Reference",
255
- "Received quantity",
256
- "Ordered quantity",
257
- "Unit"
258
- ];
259
- c.enableBackdatePo && o.insert("Effective at", 4), c.enableTotalCost && o.push("Total cost"), await Qe(
260
- [
261
- {
262
- name: "purchases",
263
- data: r,
264
- columns: o
265
- }
266
- ],
267
- n
268
- ), R.open({
269
- title: _("inventory.transfer.receiveRequest.export.success"),
270
- message: _("inventory.transfer.receiveRequest.export.message", [n]),
271
- type: "success"
272
- });
273
- }
274
- const H = w(ye()), P = w("");
275
- fe([() => H.value], ([n]) => {
276
- !n.startDate || !n.endDate || (y.value.startDate = n.startDate, y.value.endDate = n.endDate, t.updateDateRange(
277
- y.value.startDate,
278
- y.value.endDate
279
- ), x());
280
- }), fe([() => P.value], () => {
281
- x();
282
- });
283
- function $e(n) {
284
- if (n === "create") {
285
- if (u.value) {
286
- R.open({
287
- title: "Loading data...",
288
- message: "Please wait.",
289
- type: "info"
290
- });
291
- return;
292
- }
293
- return t.promptCreateTransferDialog();
294
- }
295
- if (n === "upload" && c.enableXilnexTransferNote)
296
- return t.promptUploadTransferDialog();
297
- if (n === "refresh")
298
- return t.fetchData();
299
- if (n === "export")
300
- return we();
301
- }
302
- const { breakpoints: W } = We(), L = O(() => W.value.xs || W.value.sm), Ce = O(() => L.value ? 10 : 20), Re = Je(), Pe = O(() => [
303
- {
304
- label: _("inventory.transfer.receiveRequest.actions.create"),
305
- value: "create",
306
- isPrimary: !0,
307
- prependIcon: "add"
308
- },
309
- ...c.enableXilnexTransferNote ? [
310
- {
311
- label: _("inventory.common.upload"),
312
- value: "upload"
313
- }
314
- ] : [],
315
- {
316
- label: _("inventory.common.refresh"),
317
- value: "refresh"
318
- },
319
- {
320
- label: _("inventory.common.export"),
321
- value: "export"
322
- }
323
- ]), Ee = O(() => {
324
- const n = [
325
- {
326
- type: "string",
327
- key: "status",
328
- entity: "purchaseOrder",
329
- values: Array.from(
330
- new Set(t.purchaseOrders.value.map((o) => o.status))
331
- )
332
- },
333
- {
334
- type: "string",
335
- key: "transferFrom",
336
- entity: "purchaseOrder",
337
- values: Array.from(
338
- new Set(t.purchaseOrders.value.map((o) => o.supplier.name))
339
- )
340
- }
341
- ], r = [
342
- {
343
- type: "string",
344
- key: "netsuiteTransactionNumber",
345
- entity: "purchaseOrder",
346
- values: t.purchaseOrders.value.map((o) => {
347
- var s, l;
348
- return (l = (s = o.netSuite) == null ? void 0 : s.additionalInfo) == null ? void 0 : l.transactionnumber;
349
- }).filter((o) => o != null)
350
- },
351
- {
352
- type: "string",
353
- key: "netsuiteOrderNo",
354
- entity: "purchaseOrder",
355
- values: t.purchaseOrders.value.map((o) => {
356
- var s;
357
- return (s = o.netSuite) == null ? void 0 : s.refNo;
358
- }).filter((o) => o != null)
359
- },
360
- {
361
- type: "string",
362
- key: "netsuiteOrderId",
363
- entity: "purchaseOrder",
364
- values: t.purchaseOrders.value.map((o) => {
365
- var s;
366
- return (s = o.netSuite) == null ? void 0 : s.id;
367
- }).filter((o) => o != null)
368
- }
369
- ];
370
- return [...n, ...g.isEnabled ? r : []];
371
- }), E = w(null), Fe = O(() => {
372
- if (!E.value)
373
- return t.purchaseOrders.value;
374
- const n = st.build(E.value);
375
- return t.purchaseOrders.value.filter((r) => {
376
- var o, s, l, D;
377
- return nt(
378
- {
379
- netsuiteTransactionNumber: (s = (o = r.netSuite) == null ? void 0 : o.additionalInfo) == null ? void 0 : s.transactionnumber,
380
- netsuiteOrderNo: (l = r.netSuite) == null ? void 0 : l.refNo,
381
- netsuiteOrderId: (D = r.netSuite) == null ? void 0 : D.id,
382
- status: r.status,
383
- transferFrom: r.supplier.name
384
- },
385
- n
386
- );
387
- });
388
- });
389
- return (n, r) => {
390
- const o = J("FmTable");
391
- return b(), S(Xe, {
392
- title: e(_)("inventory.transfer.receiveRequest.title2"),
393
- actions: Pe.value,
394
- "onClick:action": $e
395
- }, {
396
- default: $(() => {
397
- var s, l, D, F, q;
398
- return [
399
- a("div", {
400
- class: k([
401
- "flex flex-col gap-8 max-h-full",
402
- {
403
- "p-0": L.value,
404
- "px-24 ": !L.value
405
- }
406
- ])
407
- }, [
408
- i(rt, {
409
- "date-range-query": "",
410
- "date-range": H.value,
411
- "onUpdate:dateRange": r[0] || (r[0] = (m) => H.value = m),
412
- searchable: "",
413
- "change-location": "",
414
- search: P.value,
415
- "onUpdate:search": r[1] || (r[1] = (m) => P.value = m),
416
- filterable: "",
417
- "filter-attributes": Ee.value,
418
- filter: E.value,
419
- "onUpdate:filter": r[2] || (r[2] = (m) => E.value = m)
420
- }, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
421
- (b(), S(o, {
422
- style: Ne(e(Re).tableHeight),
423
- "column-defs": e(De),
424
- "row-data": Fe.value,
425
- "search-value": P.value,
426
- loading: u.value,
427
- onRowClick: r[3] || (r[3] = (m) => e(t).promptShowTransferDetails(m.original)),
428
- key: (s = e(G)._currentLocation) == null ? void 0 : s.dbName,
429
- "page-size": Ce.value
430
- }, {
431
- "list-row": $((m) => [
432
- i(ot, {
433
- row: m,
434
- onRowClick: e(t).promptShowTransferDetails
435
- }, {
436
- default: $((h) => {
437
- var T, Z, ee, N, te, oe, ae, re, U, se, ne, le, ie, z, ue, ce, me, de, M, pe;
438
- return [
439
- a("div", $t, [
440
- a("div", Ct, [
441
- i(e(Y), {
442
- render: (ee = (Z = (T = h._id) == null ? void 0 : T.column) == null ? void 0 : Z.columnDef) == null ? void 0 : ee.cell,
443
- props: (te = (N = h._id) == null ? void 0 : N.getContext) == null ? void 0 : te.call(N)
444
- }, null, 8, ["render", "props"])
445
- ]),
446
- a("div", Rt, [
447
- i(e(Y), {
448
- render: (re = (ae = (oe = h.supplier_name) == null ? void 0 : oe.column) == null ? void 0 : ae.columnDef) == null ? void 0 : re.cell,
449
- props: (se = (U = h.supplier_name) == null ? void 0 : U.getContext) == null ? void 0 : se.call(U)
450
- }, null, 8, ["render", "props"])
451
- ]),
452
- a("div", Pt, f(m.original.items.map((qe) => `${qe.name}`).join(", ")), 1),
453
- m.original.ref ? (b(), X("div", Et, [
454
- i(e(Y), {
455
- render: (ie = (le = (ne = h.ref) == null ? void 0 : ne.column) == null ? void 0 : le.columnDef) == null ? void 0 : ie.cell,
456
- props: (ue = (z = h.ref) == null ? void 0 : z.getContext) == null ? void 0 : ue.call(z)
457
- }, null, 8, ["render", "props"])
458
- ])) : C("", !0),
459
- a("div", Ft, [
460
- i(e(Y), {
461
- render: (de = (me = (ce = h.status) == null ? void 0 : ce.column) == null ? void 0 : me.columnDef) == null ? void 0 : de.cell,
462
- props: (pe = (M = h.status) == null ? void 0 : M.getContext) == null ? void 0 : pe.call(M)
463
- }, null, 8, ["render", "props"])
464
- ])
465
- ])
466
- ];
467
- }),
468
- _: 2
469
- }, 1032, ["row", "onRowClick"])
470
- ]),
471
- _: 1
472
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
473
- ], 2),
474
- (b(), S(Ue, { to: "body" }, [
475
- e(c).enablePurchaseOrderEmail ? (b(), S(Ze, Q(A({ key: 0 }, e(t).emailDialogProps.value)), null, 16)) : C("", !0),
476
- i(wt, Q(ve(e(t).createTransferChoiceProps.value)), null, 16),
477
- i(et, A(e(t).transferDialogProps.value, {
478
- onSubmitted: e(t).fetchData
479
- }), null, 16, ["onSubmitted"]),
480
- ((D = (l = e(t).transferDetailsProps.value) == null ? void 0 : l.purchaseOrder) == null ? void 0 : D.version) === "3" ? (b(), S(Ie, A({ key: 1 }, {
481
- ...e(t).transferDetailsProps.value,
482
- receivedMap: ((F = e(t).transferDetailsProps.value) == null ? void 0 : F.receivedMap) ?? {},
483
- shipments: e(t).shipments.value ?? []
484
- }, {
485
- onSubmitted: e(t).fetchData
486
- }), null, 16, ["onSubmitted"])) : (b(), S(Ye, A({
487
- key: 2,
488
- scope: e(K).RECEIVE_REQUEST
489
- }, {
490
- ...e(t).transferDetailsProps.value,
491
- receivedMap: ((q = e(t).transferDetailsProps.value) == null ? void 0 : q.receivedMap) ?? {},
492
- shipments: e(t).shipments.value ?? []
493
- }, {
494
- onSubmitted: e(t).fetchData
495
- }), null, 16, ["scope", "onSubmitted"])),
496
- i(tt, Q(ve(e(t).xilnexImportDialogProps.value)), null, 16),
497
- i(je, {
498
- modelValue: e(B),
499
- "onUpdate:modelValue": r[4] || (r[4] = (m) => ze(B) ? B.value = m : null),
500
- html: e(ke),
501
- "template-name": e(Oe),
502
- "is-default": e(Te)
503
- }, null, 8, ["modelValue", "html", "template-name", "is-default"])
504
- ]))
505
- ];
506
- }),
507
- _: 1
508
- }, 8, ["title", "actions"]);
509
- };
510
- }
511
- });
512
- export {
513
- eo as default
514
- };