@feedmepos/mf-inventory-portal 1.8.2 → 1.9.0-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 (119) hide show
  1. package/dist/{App-inZSGILI.js → App-OAKZ4Qdf.js} +9 -9
  2. package/dist/{ApprovalView-STzBhbF7.js → ApprovalView-DN0rWMUh.js} +9 -9
  3. package/dist/{BindingsDialog-DNGhoaax.js → BindingsDialog-BWpIeq6j.js} +2 -2
  4. package/dist/{BindingsPicker-B2JyJsYZ.js → BindingsPicker-DRROpR8i.js} +3 -3
  5. package/dist/{BindingsTable-DC5b1Psj.js → BindingsTable-BFEoUCIT.js} +10 -10
  6. package/dist/{BulkReceiveRequestPage-DOCAhkVS.js → BulkReceiveRequestPage-wnXszulg.js} +217 -217
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BdtFSZnX.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js} +1 -1
  8. package/dist/{ClosingDraftView-Cm_slHt4.js → ClosingDraftView-BRNRWXnj.js} +19 -19
  9. package/dist/{ClosingHistoryView-1EWta4_9.js → ClosingHistoryView-DWPINMVP.js} +7 -7
  10. package/dist/{ClosingTemplateView-B0ccD7-j.js → ClosingTemplateView-gqjNm3Wi.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CNVhKNUd.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js} +1 -1
  12. package/dist/{DefaultView-DWeyIHi_.js → DefaultView-CTQ0-HzQ.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-DNIvtuZt.js → DeliveryOrderPrintPreview-gReWM4vq.js} +9 -9
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CAEf3irc.js → EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js} +11723 -11601
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C-hjrYMV.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-ByVkWoR_.js → FeatureCapabilityGate-Ce4_ozRL.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-B1_zFifk.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BgWSlJwh.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-y_iF_8AX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D53aH0aj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js} +2 -2
  21. package/dist/{FmMultiselectDialog-CHS9T1rW.js → FmMultiselectDialog-B4Diosc4.js} +2 -2
  22. package/dist/{FmMultiselectDialog-C4Gj_aUx.js → FmMultiselectDialog-CJLfLql2.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CD-IC4OA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js} +5 -5
  24. package/dist/{ImportView-79uwjQ_T.js → ImportView-DnYVbQ6I.js} +7 -7
  25. package/dist/{IngredientsView-BEJii1uc.js → IngredientsView-COUJUWAb.js} +68 -68
  26. package/dist/{IntegrationExplorerView-D36uuSha.js → IntegrationExplorerView-CgE2WN-x.js} +6 -6
  27. package/dist/{IntegrationPlatformView-Cjy6bRju.js → IntegrationPlatformView-BtTv4P3n.js} +2 -2
  28. package/dist/{IntegrationView-CxxkO5kF.js → IntegrationView-D_YkXYOW.js} +15 -15
  29. package/dist/{InventoryBindingForm-BUOyy4PC.js → InventoryBindingForm-B4HvjUs9.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D54A7vK_.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js} +4 -4
  31. package/dist/{InventoryBindingSummary-B60fYDV4.js → InventoryBindingSummary-CCFW8rw_.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFCPnsum.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-DoJlY1Ea.js → ProductionRunDetailPage-ChNKrpyj.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-Cb7_AAJt.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js} +8 -8
  35. package/dist/{ProductionRunPage-D3imvpXH.js → ProductionRunPage-FIUKUyDB.js} +4 -4
  36. package/dist/{PublishView-D5K3D8An.js → PublishView-JDX28AHk.js} +3 -3
  37. package/dist/{PurchaseOrderPrintPreview-C2iDY7vR.js → PurchaseOrderPrintPreview-C8-zlH52.js} +13 -13
  38. package/dist/ReceiveRequestView-DIuftfMU.js +729 -0
  39. package/dist/{RecipeView-tmBGDvX5.js → RecipeView-BKYAdx6j.js} +16 -16
  40. package/dist/{SettingsView-BxHLMLKl.js → SettingsView-CZR-ELPO.js} +7 -7
  41. package/dist/{StockView-CArMPI1D.js → StockView-C-9o5zUV.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B9sfEoNM.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js} +1 -1
  43. package/dist/{SupplierView-Blr_X4i4.js → SupplierView-CHX-eb1W.js} +13 -13
  44. package/dist/{SurchargeView-q1yhY1oY.js → SurchargeView-D1y5BUvB.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BTo5_xn3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CRlUiePl.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js} +1 -1
  47. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +4961 -0
  48. package/dist/{TransferTemplateView-mYeXG-bN.js → TransferTemplateView-Bq7Euggq.js} +19 -19
  49. package/dist/{UnitCostHistoryView-BdokT9j3.js → UnitCostHistoryView-CLpnjeEP.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dk_V6cfz.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js} +4 -4
  51. package/dist/{UnitView-Dn7y7c8y.js → UnitView-RxPdbO_C.js} +7 -7
  52. package/dist/{WarehouseView-DkD0AMFa.js → WarehouseView-Ba_77-lL.js} +8 -8
  53. package/dist/{WastageTemplateView-CgLTuqSn.js → WastageTemplateView-DRB3J1CD.js} +15 -15
  54. package/dist/{app-DEDl7U52.js → app-B2FciWDu.js} +1191 -1208
  55. package/dist/app.js +1 -1
  56. package/dist/{bulk-edit-simulation.helper-4SDsJjn-.js → bulk-edit-simulation.helper-gZPNWgS7.js} +2 -2
  57. package/dist/{closing-template-Bjup5FCS.js → closing-template-L7d2nmhr.js} +1 -1
  58. package/dist/{date2-Dk20uwtf.js → date2--N7dpGRR.js} +1 -1
  59. package/dist/{dayjs.min-oX50J0DH.js → dayjs.min-CFhuhXoi.js} +1 -1
  60. package/dist/{decimal-v-odzABK.js → decimal-gywux_Ld.js} +2 -2
  61. package/dist/defineDeepModel-B2EkoePs.js +19 -0
  62. package/dist/{duplicate-template-BM_cVVXW.js → duplicate-template-t-iu60N3.js} +1 -1
  63. package/dist/{feature-CueVnu9M.js → feature-CvQ6eKvB.js} +51 -46
  64. package/dist/{format-time-from-id-CqV2fWas.js → format-time-from-id-BVk3iOfV.js} +1 -1
  65. package/dist/{format-unit-display-BRjd-dPg.js → format-unit-display-CLmFpKSI.js} +13 -12
  66. package/dist/{id-to-date-BhL3iWOY.js → id-to-date-DKmIZp6I.js} +1 -1
  67. package/dist/{import-export.helper-B45dByWv.js → import-export.helper-qShUWqck.js} +5 -5
  68. package/dist/{index-BeRwX80L.js → index-CJ1pZPwZ.js} +3 -3
  69. package/dist/{index-BMrFNZzX.js → index-CoGFfqOs.js} +1 -1
  70. package/dist/{index-DU7zB5F4.js → index-CrUvC9l4.js} +1 -1
  71. package/dist/{lz-string-8ndgpMge.js → lz-string-mHxrGSbY.js} +1 -1
  72. package/dist/{netsuite-C9IQHbuv.js → netsuite-BDcapEOO.js} +2 -2
  73. package/dist/{netsuite-explorer-Dyvhkn4W.js → netsuite-explorer-FeiogpVF.js} +1 -1
  74. package/dist/{predefined-templates-BpA67UsF.js → predefined-templates-CVAkYLi5.js} +1 -1
  75. package/dist/{purchase-order-template-Cz_vJs6G.js → purchase-order-template-CrRp6r28.js} +1 -1
  76. package/dist/{recalculationUtils-BlBf-Zzl.js → recalculationUtils-BuhlMBRB.js} +1 -1
  77. package/dist/{row-action.enum-B4hLVB0n.js → row-action.enum-b--87Y19.js} +1 -1
  78. package/dist/{rules-D1yABcU-.js → rules-CFEKk1zY.js} +3 -3
  79. package/dist/{stock-BYQeM6PC.js → stock-B4FZa2Ci.js} +1 -1
  80. package/dist/{stock-BZYEx2W6.js → stock-Bet2VY1l.js} +2 -2
  81. package/dist/stores/feature.d.ts +4 -2
  82. package/dist/{supplier-Bf-GKwqQ.js → supplier-DX_LR2LR.js} +2 -2
  83. package/dist/{surcharge-CgOySVXw.js → surcharge-gnQZF_xQ.js} +1 -1
  84. package/dist/tsconfig.app.tsbuildinfo +1 -1
  85. package/dist/{uom-rules-MY96On4N.js → uom-rules-B4qbIOqA.js} +1 -1
  86. package/dist/{use-ingredient-select-dialog-C-6U8HZg.js → use-ingredient-select-dialog-BE5IHSwH.js} +2 -2
  87. package/dist/{use-inventory-binding-dialog-n47g88p1.js → use-inventory-binding-dialog-B0xEQiLV.js} +2 -2
  88. package/dist/{use-template-enabled-locations-BH4BNVrW.js → use-template-enabled-locations-BvAG1cJF.js} +2 -2
  89. package/dist/{use-transfer-locations-BmSGdFzy.js → use-transfer-locations-pyDvqZxC.js} +3 -2
  90. package/dist/{useHrmPermission-CUvMFQJw.js → useHrmPermission-kFc2vRek.js} +4 -4
  91. package/dist/{useNavigationMenu-n5qDCC-B.js → useNavigationMenu-C9-LqWKt.js} +31 -31
  92. package/dist/{useSseClient-C7m0H8uC.js → useSseClient-CoafBOe-.js} +1 -1
  93. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
  94. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
  95. package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
  96. package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
  97. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
  98. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
  99. package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
  100. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
  101. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
  102. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
  103. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
  104. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
  106. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
  107. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
  108. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
  109. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
  110. package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
  111. package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
  112. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
  113. package/dist/{vue-CZOq57to.js → vue-BMDdrHy_.js} +49 -53
  114. package/dist/{vue-i18n-CaPghuy6.js → vue-i18n-Bkodg08l.js} +225 -225
  115. package/dist/{xlsx.util-BZ5NcssA.js → xlsx.util-DOCqFSat.js} +2 -2
  116. package/package.json +4 -4
  117. package/dist/ReceiveRequestView-DFIvBDab.js +0 -346
  118. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D8F68NOi.js +0 -4953
  119. package/dist/defineDeepModel-IyD7GQIK.js +0 -19
@@ -1,5 +1,5 @@
1
- import "./app-DEDl7U52.js";
2
- import "./dayjs.min-oX50J0DH.js";
1
+ import "./app-B2FciWDu.js";
2
+ import "./dayjs.min-CFhuhXoi.js";
3
3
  var Fn = {};
4
4
  /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
5
5
  var cn = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-inventory-portal",
3
- "version": "1.8.2",
3
+ "version": "1.9.0-dev.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -59,10 +59,10 @@
59
59
  "@feedmepos/integration-portal": "0.0.1",
60
60
  "@feedmepos/inventory-core": "1.0.3-dev.0",
61
61
  "@feedmepos/inventory-core-2": "2.0.0",
62
- "@feedmepos/inventory-core-js": "1.0.1",
63
62
  "@feedmepos/inventory-core-dart": "1.0.0",
64
- "@feedmepos/zod-inventory": "2.0.0",
65
- "@feedmepos/netsuite-core": "1.0.0"
63
+ "@feedmepos/inventory-core-js": "1.0.1",
64
+ "@feedmepos/netsuite-core": "1.0.0",
65
+ "@feedmepos/zod-inventory": "2.0.0"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@playwright/test": "1.61.1",
@@ -1,346 +0,0 @@
1
- import { defineComponent as Se, computed as d, ref as O, watch as ee, resolveComponent as De, createBlock as E, openBlock as y, unref as r, withCtx as q, createElementVNode as f, normalizeClass as xe, createVNode as u, normalizeStyle as Re, createElementBlock as Oe, createCommentVNode as te, toDisplayString as Ee, Teleport as Pe, normalizeProps as re, mergeProps as N, guardReactiveProps as Te, isRef as ke } from "vue";
2
- import { D as P, u as Ce } from "./app-DEDl7U52.js";
3
- import { i as ae } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BgWSlJwh.js";
4
- import { u as we, P as U, a as qe, _ as Ne, g as Ue } from "./TransferDetails.vue_vue_type_script_setup_true_lang-D8F68NOi.js";
5
- import { a as ne, d as Fe } from "./rules-D1yABcU-.js";
6
- import { i as Me } from "./id-to-date-BhL3iWOY.js";
7
- import { d as se } from "./dayjs.min-oX50J0DH.js";
8
- import { e as Ve } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dk_V6cfz.js";
9
- import { u as $e } from "./useTabStorage-BkIVScW_.js";
10
- import { u as Ae, _ as Ye } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
11
- import { useSnackbar as He, useBreakpoints as ze } from "@feedmepos/ui-library";
12
- import { _ as Ie, a as je, b as Ke } from "./EmailDialog.vue_vue_type_script_setup_true_lang-CAEf3irc.js";
13
- import { _ as Le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
14
- import { F as T } from "./index-eGvSlWMU.js";
15
- import { u as Qe } from "./feature-CueVnu9M.js";
16
- import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D53aH0aj.js";
17
- import { useI18n as Xe } from "@feedmepos/mf-common";
18
- import { _ as Ge } from "./CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CNVhKNUd.js";
19
- import { P as We, J as Ze } from "./app-C39bYJmq.js";
20
- import { u as Be } from "./netsuite-C9IQHbuv.js";
21
- import { f as et } from "./predefined-templates-BpA67UsF.js";
22
- const tt = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, at = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, nt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, st = {
23
- key: 0,
24
- class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
25
- }, ot = { class: "pt-8" }, oe = "ReceiveRequestViewSearchCriteria", Ct = /* @__PURE__ */ Se({
26
- __name: "ReceiveRequestView",
27
- setup(lt) {
28
- const { t: m } = Xe(), F = He();
29
- et().fetchTemplates(), P.object({
30
- name: P.string().optional().nullable(),
31
- startDate: P.string().optional().nullable(),
32
- endDate: P.string().optional().nullable()
33
- });
34
- const M = d(
35
- () => !A._currentLocation || t.loading.value
36
- ), V = $e(), v = Qe(), le = Be();
37
- function ie() {
38
- const s = {
39
- name: "",
40
- ...ae()
41
- }, a = V.getItem(oe);
42
- if (!a)
43
- return s;
44
- try {
45
- return JSON.parse(a);
46
- } catch {
47
- return s;
48
- }
49
- }
50
- function $() {
51
- V.setItem(oe, JSON.stringify(c.value));
52
- }
53
- const c = O(ie()), t = we(
54
- U.RECEIVE_REQUEST,
55
- c.value
56
- ), {
57
- columnDefs: ue,
58
- showCustomPrintDialog: k,
59
- customPrintHtml: ce,
60
- customPrintTemplateName: me,
61
- customPrintIsDefault: pe
62
- } = qe(
63
- U.RECEIVE_REQUEST,
64
- t,
65
- t.shipments
66
- ), A = Ce();
67
- async function de() {
68
- const s = `inventory-record_${se(c.value.startDate).format("DD-MM-YYYY_HH-mm")}-${se(c.value.endDate).format("DD-MM-YYYY_HH-mm")}.xlsx`, a = t.purchaseOrders.value.flatMap(
69
- (n) => n.items.map((o) => {
70
- var p;
71
- const l = new Date(Me(n._id) ?? ""), i = n.effectiveAt ? new Date(n.effectiveAt) : void 0, _ = ne(
72
- Ue(o.sku, n.deliveryOrder || [])
73
- ), h = ne(o.quantity), S = ((p = o == null ? void 0 : o.measurement) == null ? void 0 : p.abbrev) || o.sku.unit.abbrev;
74
- return {
75
- "SKU code": o.code,
76
- "SKU name": o.name,
77
- "PO #": n.seqNumber,
78
- "Effective at": i,
79
- Date: l,
80
- Status: n.status,
81
- Reference: n.ref ?? "",
82
- "Received quantity": _,
83
- "Ordered quantity": h,
84
- Unit: S,
85
- "Total cost": o.totalCost ? Fe(o.totalCost) : null
86
- };
87
- })
88
- ), e = [
89
- "SKU code",
90
- "SKU name",
91
- "PO #",
92
- "Date",
93
- "Status",
94
- "Reference",
95
- "Received quantity",
96
- "Ordered quantity",
97
- "Unit"
98
- ];
99
- v.enableBackdatePo && e.insert("Effective at", 4), v.enableTotalCost && e.push("Total cost"), await Ve(
100
- [
101
- {
102
- name: "purchases",
103
- data: a,
104
- columns: e
105
- }
106
- ],
107
- s
108
- ), F.open({
109
- title: m("inventory.transfer.receiveRequest.export.success"),
110
- message: m("inventory.transfer.receiveRequest.export.message", [s]),
111
- type: "success"
112
- });
113
- }
114
- const C = O(ae()), b = O("");
115
- ee([() => C.value], ([s]) => {
116
- !s.startDate || !s.endDate || (c.value.startDate = s.startDate, c.value.endDate = s.endDate, t.updateDateRange(
117
- c.value.startDate,
118
- c.value.endDate
119
- ), $());
120
- }), ee([() => b.value], () => {
121
- $();
122
- });
123
- function fe(s) {
124
- if (s === "create") {
125
- if (M.value) {
126
- F.open({
127
- title: "Loading data...",
128
- message: "Please wait.",
129
- type: "info"
130
- });
131
- return;
132
- }
133
- return t.promptCreateTransferDialog();
134
- }
135
- if (s === "upload" && v.enableXilnexTransferNote)
136
- return t.promptUploadTransferDialog();
137
- if (s === "refresh")
138
- return t.fetchData();
139
- if (s === "export")
140
- return de();
141
- }
142
- const { breakpoints: Y } = ze(), w = d(() => Y.value.xs || Y.value.sm), ve = d(() => w.value ? 10 : 20), ye = Ae(), be = d(() => [
143
- {
144
- label: m("inventory.transfer.receiveRequest.actions.create"),
145
- value: "create",
146
- isPrimary: !0,
147
- prependIcon: "add"
148
- },
149
- ...v.enableXilnexTransferNote ? [
150
- {
151
- label: m("inventory.common.upload"),
152
- value: "upload"
153
- }
154
- ] : [],
155
- {
156
- label: m("inventory.common.refresh"),
157
- value: "refresh"
158
- },
159
- {
160
- label: m("inventory.common.export"),
161
- value: "export"
162
- }
163
- ]), ge = d(() => {
164
- const s = [
165
- {
166
- type: "string",
167
- key: "status",
168
- entity: "purchaseOrder",
169
- values: Array.from(
170
- new Set(t.purchaseOrders.value.map((e) => e.status))
171
- )
172
- },
173
- {
174
- type: "string",
175
- key: "transferFrom",
176
- entity: "purchaseOrder",
177
- values: Array.from(
178
- new Set(t.purchaseOrders.value.map((e) => e.supplier.name).filter((e) => !!e))
179
- )
180
- }
181
- ], a = [
182
- {
183
- type: "string",
184
- key: "netsuiteTransactionNumber",
185
- entity: "purchaseOrder",
186
- values: t.purchaseOrders.value.map((e) => {
187
- var n, o;
188
- return (o = (n = e.netSuite) == null ? void 0 : n.additionalInfo) == null ? void 0 : o.transactionnumber;
189
- }).filter((e) => e != null)
190
- },
191
- {
192
- type: "string",
193
- key: "netsuiteOrderNo",
194
- entity: "purchaseOrder",
195
- values: t.purchaseOrders.value.map((e) => {
196
- var n;
197
- return (n = e.netSuite) == null ? void 0 : n.refNo;
198
- }).filter((e) => e != null)
199
- },
200
- {
201
- type: "string",
202
- key: "netsuiteOrderId",
203
- entity: "purchaseOrder",
204
- values: t.purchaseOrders.value.map((e) => {
205
- var n;
206
- return (n = e.netSuite) == null ? void 0 : n.id;
207
- }).filter((e) => e != null)
208
- }
209
- ];
210
- return [...s, ...le.isEnabled ? a : []];
211
- }), g = O(null), _e = d(() => {
212
- if (!g.value)
213
- return t.purchaseOrders.value;
214
- const s = We.build(g.value);
215
- return t.purchaseOrders.value.filter((a) => {
216
- var e, n, o, l;
217
- return Ze(
218
- {
219
- netsuiteTransactionNumber: (n = (e = a.netSuite) == null ? void 0 : e.additionalInfo) == null ? void 0 : n.transactionnumber,
220
- netsuiteOrderNo: (o = a.netSuite) == null ? void 0 : o.refNo,
221
- netsuiteOrderId: (l = a.netSuite) == null ? void 0 : l.id,
222
- status: a.status,
223
- transferFrom: a.supplier.name
224
- },
225
- s
226
- );
227
- });
228
- });
229
- return (s, a) => {
230
- const e = De("FmTable");
231
- return y(), E(Ye, {
232
- title: r(m)("inventory.transfer.receiveRequest.title2"),
233
- actions: be.value,
234
- "onClick:action": fe
235
- }, {
236
- default: q(() => {
237
- var n, o;
238
- return [
239
- f("div", {
240
- class: xe([
241
- "flex flex-col gap-8 max-h-full",
242
- {
243
- "p-0": w.value,
244
- "px-24 ": !w.value
245
- }
246
- ])
247
- }, [
248
- u(Je, {
249
- "date-range-query": "",
250
- "date-range": C.value,
251
- "onUpdate:dateRange": a[0] || (a[0] = (l) => C.value = l),
252
- searchable: "",
253
- "change-location": "",
254
- search: b.value,
255
- "onUpdate:search": a[1] || (a[1] = (l) => b.value = l),
256
- filterable: "",
257
- "filter-attributes": ge.value,
258
- filter: g.value,
259
- "onUpdate:filter": a[2] || (a[2] = (l) => g.value = l)
260
- }, null, 8, ["date-range", "search", "filter-attributes", "filter"]),
261
- (y(), E(e, {
262
- style: Re(r(ye).tableHeight),
263
- "column-defs": r(ue),
264
- "row-data": _e.value,
265
- "search-value": b.value,
266
- loading: M.value,
267
- onRowClick: a[3] || (a[3] = (l) => r(t).promptShowTransferDetails(l.original)),
268
- key: (n = r(A)._currentLocation) == null ? void 0 : n.dbName,
269
- "page-size": ve.value
270
- }, {
271
- "list-row": q((l) => [
272
- u(Le, {
273
- row: l,
274
- onRowClick: r(t).promptShowTransferDetails
275
- }, {
276
- default: q((i) => {
277
- var _, h, S, p, H, z, I, j, D, K, L, Q, J, x, X, G, W, Z, R, B;
278
- return [
279
- f("div", tt, [
280
- f("div", rt, [
281
- u(r(T), {
282
- render: (S = (h = (_ = i._id) == null ? void 0 : _.column) == null ? void 0 : h.columnDef) == null ? void 0 : S.cell,
283
- props: (H = (p = i._id) == null ? void 0 : p.getContext) == null ? void 0 : H.call(p)
284
- }, null, 8, ["render", "props"])
285
- ]),
286
- f("div", at, [
287
- u(r(T), {
288
- render: (j = (I = (z = i.supplier_name) == null ? void 0 : z.column) == null ? void 0 : I.columnDef) == null ? void 0 : j.cell,
289
- props: (K = (D = i.supplier_name) == null ? void 0 : D.getContext) == null ? void 0 : K.call(D)
290
- }, null, 8, ["render", "props"])
291
- ]),
292
- f("div", nt, Ee(l.original.items.map((he) => `${he.name}`).join(", ")), 1),
293
- l.original.ref ? (y(), Oe("div", st, [
294
- u(r(T), {
295
- render: (J = (Q = (L = i.ref) == null ? void 0 : L.column) == null ? void 0 : Q.columnDef) == null ? void 0 : J.cell,
296
- props: (X = (x = i.ref) == null ? void 0 : x.getContext) == null ? void 0 : X.call(x)
297
- }, null, 8, ["render", "props"])
298
- ])) : te("", !0),
299
- f("div", ot, [
300
- u(r(T), {
301
- render: (Z = (W = (G = i.status) == null ? void 0 : G.column) == null ? void 0 : W.columnDef) == null ? void 0 : Z.cell,
302
- props: (B = (R = i.status) == null ? void 0 : R.getContext) == null ? void 0 : B.call(R)
303
- }, null, 8, ["render", "props"])
304
- ])
305
- ])
306
- ];
307
- }),
308
- _: 2
309
- }, 1032, ["row", "onRowClick"])
310
- ]),
311
- _: 1
312
- }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
313
- ], 2),
314
- (y(), E(Pe, { to: "body" }, [
315
- r(v).enablePurchaseOrderEmail ? (y(), E(Ie, re(N({ key: 0 }, r(t).emailDialogProps.value)), null, 16)) : te("", !0),
316
- u(je, N(r(t).transferDialogProps.value, {
317
- onSubmitted: r(t).fetchData
318
- }), null, 16, ["onSubmitted"]),
319
- u(Ne, N({
320
- scope: r(U).RECEIVE_REQUEST
321
- }, {
322
- ...r(t).transferDetailsProps.value,
323
- receivedMap: ((o = r(t).transferDetailsProps.value) == null ? void 0 : o.receivedMap) ?? {},
324
- shipments: r(t).shipments.value ?? []
325
- }, {
326
- onSubmitted: r(t).fetchData
327
- }), null, 16, ["scope", "onSubmitted"]),
328
- u(Ke, re(Te(r(t).xilnexImportDialogProps.value)), null, 16),
329
- u(Ge, {
330
- modelValue: r(k),
331
- "onUpdate:modelValue": a[4] || (a[4] = (l) => ke(k) ? k.value = l : null),
332
- html: r(ce),
333
- "template-name": r(me),
334
- "is-default": r(pe)
335
- }, null, 8, ["modelValue", "html", "template-name", "is-default"])
336
- ]))
337
- ];
338
- }),
339
- _: 1
340
- }, 8, ["title", "actions"]);
341
- };
342
- }
343
- });
344
- export {
345
- Ct as default
346
- };