@feedmepos/mf-inventory-portal 1.8.3 → 1.9.0-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 (120) hide show
  1. package/dist/{App-dPmHx6yu.js → App-0333Hh25.js} +10 -10
  2. package/dist/{ApprovalView-DgtYa5fe.js → ApprovalView-CZLYqnnT.js} +9 -9
  3. package/dist/{BindingsDialog-BDxnEduy.js → BindingsDialog-CA02lqel.js} +2 -2
  4. package/dist/{BindingsPicker-CU4L71lq.js → BindingsPicker-CwDLZ-ki.js} +3 -3
  5. package/dist/{BindingsTable-CIgv0rsF.js → BindingsTable-BX87v_kq.js} +10 -10
  6. package/dist/{BulkReceiveRequestPage-6dF9r-mz.js → BulkReceiveRequestPage-Vh0Rfa8e.js} +217 -217
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DdhFwF_6.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-0fI4-Pao.js} +1 -1
  8. package/dist/{ClosingDraftView-B7SnGjGQ.js → ClosingDraftView-CxNgkVY_.js} +19 -19
  9. package/dist/{ClosingHistoryView-CvnkFqgN.js → ClosingHistoryView-CUCepuA7.js} +7 -7
  10. package/dist/{ClosingTemplateView-Ci4q3Eok.js → ClosingTemplateView-BHe5gCFH.js} +18 -18
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-D4cDxN4Q.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-B6Ge_6VY.js} +1 -1
  12. package/dist/{DefaultView-M_bM_S8P.js → DefaultView-V-9a_YfK.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-C8Wwriji.js → DeliveryOrderPrintPreview-BiwT9953.js} +9 -9
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-icB0dmIu.js → EmailDialog.vue_vue_type_script_setup_true_lang-I_6Wu-P-.js} +11723 -11601
  15. package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BlBO823W.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BV5mX5w5.js} +1 -1
  16. package/dist/{FeatureCapabilityGate-DLf5LdXz.js → FeatureCapabilityGate-B4VGdv_F.js} +2 -2
  17. package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-BmkxjjKw.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-CvFbN-7h.js} +1 -1
  18. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BbKcW3S_.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Qd3R-TWu.js} +1 -1
  19. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BCAV7Im3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8QTtw9i.js} +2 -2
  20. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-_vGS-Cr4.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Cz5saN2u.js} +2 -2
  21. package/dist/{FmMultiselectDialog-DeDs-TIr.js → FmMultiselectDialog-BK0r-tyZ.js} +2 -2
  22. package/dist/{FmMultiselectDialog-CsN4Ii6h.js → FmMultiselectDialog-CFx8Qcyc.js} +2 -2
  23. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-f1NlYq6J.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Cuyu_K9x.js} +5 -5
  24. package/dist/{ImportView-CX4_wi57.js → ImportView-Ci9vufCx.js} +7 -7
  25. package/dist/{IngredientsView-DoNd32Ib.js → IngredientsView-4s7vcW9U.js} +68 -68
  26. package/dist/{IntegrationExplorerView-BTdmAin2.js → IntegrationExplorerView-CtGuW0uI.js} +6 -6
  27. package/dist/{IntegrationPlatformView-DKXQMng3.js → IntegrationPlatformView-SpCAu3Fu.js} +2 -2
  28. package/dist/{IntegrationView-ORNTg24P.js → IntegrationView-DjQ4wbXh.js} +15 -15
  29. package/dist/{InventoryBindingForm-x2LSXl9d.js → InventoryBindingForm-Bb5k9tav.js} +1 -1
  30. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-ChS4qHky.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CISHYfRi.js} +4 -4
  31. package/dist/{InventoryBindingSummary-fmTmxL2I.js → InventoryBindingSummary-CkN9QdNL.js} +1 -1
  32. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DWtQm-Wt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C9hasqsO.js} +2 -2
  33. package/dist/{ProductionRunDetailPage-CZUf9YLY.js → ProductionRunDetailPage-BTNY3v9C.js} +4 -4
  34. package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-B8gRymyO.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CTOibYjJ.js} +8 -8
  35. package/dist/{ProductionRunPage-Bp0Wnkg0.js → ProductionRunPage-GrWt4iw2.js} +4 -4
  36. package/dist/{PublishView-CuXkWOeY.js → PublishView-1sBMVk4p.js} +5 -5
  37. package/dist/{PurchaseOrderPrintPreview-UasE6Fqr.js → PurchaseOrderPrintPreview-DYwbSUVy.js} +13 -13
  38. package/dist/ReceiveRequestView-DuU5hqQU.js +729 -0
  39. package/dist/{RecipeView-BNpt7mbz.js → RecipeView-CGkE2cX2.js} +16 -16
  40. package/dist/{SettingsView-CWCHOfEp.js → SettingsView-j5UKU2Z5.js} +7 -7
  41. package/dist/{StockView-BYhMoXqP.js → StockView-CMYUShkK.js} +21 -21
  42. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DK360rT4.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CcomAJoj.js} +1 -1
  43. package/dist/{SupplierView-pKEJiboE.js → SupplierView-whYEtaTf.js} +13 -13
  44. package/dist/{SurchargeView-muI0OHV3.js → SurchargeView-BqT_PfTk.js} +7 -7
  45. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bp6i0ciG.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpiuOVuT.js} +2 -2
  46. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DM5BKMB_.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5GOz40T.js} +1 -1
  47. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ajtRmauo.js +4961 -0
  48. package/dist/{TransferTemplateView-DZuCe50F.js → TransferTemplateView-ZJYWzTCZ.js} +19 -19
  49. package/dist/{UnitCostHistoryView-BuZUjek3.js → UnitCostHistoryView-DWcB9nbL.js} +4 -4
  50. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BFznmzuq.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-60B3tkI-.js} +4 -4
  51. package/dist/{UnitView-C1tgtn8C.js → UnitView-BWX8BecE.js} +7 -7
  52. package/dist/{WarehouseView-B2K-eE4X.js → WarehouseView-CfWLJlP2.js} +8 -8
  53. package/dist/{WastageTemplateView-BwrSszU4.js → WastageTemplateView-Gb64MBgD.js} +15 -15
  54. package/dist/{app-B9scy5at.js → app-Coquqqkh.js} +1191 -1208
  55. package/dist/app.js +1 -1
  56. package/dist/{bulk-edit-simulation.helper-WjS-_pe-.js → bulk-edit-simulation.helper-DUAiYzrr.js} +2 -2
  57. package/dist/{closing-template-BTzPwPC9.js → closing-template-BK-yS2H4.js} +1 -1
  58. package/dist/{date2-D7Le3_bn.js → date2-79rkBzVf.js} +1 -1
  59. package/dist/{dayjs.min-D6kI4XKV.js → dayjs.min-CciBGvaL.js} +1 -1
  60. package/dist/{decimal-BgcHXtEW.js → decimal--BREmfoS.js} +2 -2
  61. package/dist/defineDeepModel-BRSFHwsW.js +19 -0
  62. package/dist/{duplicate-template-BwbInaPK.js → duplicate-template-CcEqsP8Q.js} +1 -1
  63. package/dist/{feature-Bq8EXhKG.js → feature-DdZZAV6X.js} +51 -46
  64. package/dist/{format-time-from-id-Cvflm51N.js → format-time-from-id-C7YvcXDM.js} +1 -1
  65. package/dist/{format-unit-display-Bg7Ff76p.js → format-unit-display-Dfiq_rw7.js} +13 -12
  66. package/dist/{id-to-date-DAY1m6PQ.js → id-to-date-6hzUYycs.js} +1 -1
  67. package/dist/{import-export.helper-0PY9JJKl.js → import-export.helper-D5QuDEDV.js} +5 -5
  68. package/dist/{index-BYyRelZz.js → index-CD9IHjp3.js} +1 -1
  69. package/dist/{index-7umhUG8Q.js → index-CPFsBIFO.js} +3 -3
  70. package/dist/{index-BK3t_4us.js → index-Crdk73ES.js} +1 -1
  71. package/dist/{lz-string-CK3kC4Eb.js → lz-string-CCRQaGZF.js} +1 -1
  72. package/dist/{netsuite-Cqoa7t4H.js → netsuite-C_VLrQoH.js} +2 -2
  73. package/dist/{netsuite-explorer-D96IbnhU.js → netsuite-explorer-BCuM8JZ1.js} +1 -1
  74. package/dist/{predefined-templates-B9c2s33F.js → predefined-templates-BV4NkB9O.js} +1 -1
  75. package/dist/{publish-versions-JlA3KSXU.js → publish-versions-BinCKAtn.js} +1 -1
  76. package/dist/{purchase-order-template-BFrjEkhb.js → purchase-order-template-BZUOWGmV.js} +1 -1
  77. package/dist/{recalculationUtils-anW9vYxT.js → recalculationUtils-ISOYv_rW.js} +1 -1
  78. package/dist/{row-action.enum-BDYmiPNT.js → row-action.enum-BQCb8S3i.js} +1 -1
  79. package/dist/{rules-BRjC9u5h.js → rules-CW08Pe1t.js} +3 -3
  80. package/dist/{stock-DusWqnp5.js → stock-Bh5IJNfM.js} +1 -1
  81. package/dist/{stock-RwhIoJMM.js → stock-Cv_zWpOe.js} +2 -2
  82. package/dist/stores/feature.d.ts +4 -2
  83. package/dist/{supplier-0dQn8fQ8.js → supplier-D3h2DfJz.js} +2 -2
  84. package/dist/{surcharge-i2ndhTQn.js → surcharge-9e8wa-vK.js} +1 -1
  85. package/dist/tsconfig.app.tsbuildinfo +1 -1
  86. package/dist/{uom-rules-CJfwzrbF.js → uom-rules-BRmDOW0t.js} +1 -1
  87. package/dist/{use-ingredient-select-dialog-CnUVZRMN.js → use-ingredient-select-dialog-D8ibotty.js} +2 -2
  88. package/dist/{use-inventory-binding-dialog-3c697f9B.js → use-inventory-binding-dialog-D2xL-vbo.js} +2 -2
  89. package/dist/{use-template-enabled-locations-DsR1qSPK.js → use-template-enabled-locations-Bb7vUiAf.js} +2 -2
  90. package/dist/{use-transfer-locations-Cqd4RYpk.js → use-transfer-locations-B2yday-I.js} +3 -2
  91. package/dist/{useHrmPermission-COaQXmjc.js → useHrmPermission-CPEJKpoy.js} +4 -4
  92. package/dist/{useNavigationMenu-CfNedojJ.js → useNavigationMenu-SHKOcKP-.js} +60 -60
  93. package/dist/{useSseClient-7I7QwRxw.js → useSseClient-ED9mFSXt.js} +1 -1
  94. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
  95. package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
  96. package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
  97. package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
  98. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
  99. package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
  100. package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
  101. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
  102. package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
  103. package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
  104. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
  105. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
  106. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
  107. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
  108. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
  109. package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
  110. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
  111. package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
  112. package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
  113. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
  114. package/dist/{vue-BUGlBKP5.js → vue-Tmyz7_6a.js} +49 -53
  115. package/dist/{vue-i18n-DMio3L-b.js → vue-i18n-BY0GeUdz.js} +492 -492
  116. package/dist/{xlsx.util-BUw39hzN.js → xlsx.util-DQnB9ape.js} +2 -2
  117. package/package.json +5 -5
  118. package/dist/ReceiveRequestView-QoBax953.js +0 -346
  119. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CNSfZLiT.js +0 -4953
  120. package/dist/defineDeepModel-1Dyqqhij.js +0 -19
@@ -1,5 +1,5 @@
1
- import "./app-B9scy5at.js";
2
- import "./dayjs.min-D6kI4XKV.js";
1
+ import "./app-Coquqqkh.js";
2
+ import "./dayjs.min-CciBGvaL.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.3",
3
+ "version": "1.9.0-dev.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -55,14 +55,14 @@
55
55
  "vue-i18n": "10.0.5",
56
56
  "vue-router": "4.4.0",
57
57
  "xlsx": "0.18.5",
58
+ "@feedmepos/inventory-core-2": "2.0.0",
59
+ "@feedmepos/inventory-core": "1.0.3-dev.0",
58
60
  "@feedmepos/codemax-core": "1.0.0",
59
61
  "@feedmepos/integration-portal": "0.0.1",
60
- "@feedmepos/inventory-core": "1.0.3-dev.0",
61
- "@feedmepos/inventory-core-2": "2.0.0",
62
62
  "@feedmepos/inventory-core-dart": "1.0.0",
63
63
  "@feedmepos/inventory-core-js": "1.0.1",
64
- "@feedmepos/zod-inventory": "2.0.0",
65
- "@feedmepos/netsuite-core": "1.0.0"
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-B9scy5at.js";
3
- import { i as ae } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BbKcW3S_.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-CNSfZLiT.js";
5
- import { a as ne, d as Fe } from "./rules-BRjC9u5h.js";
6
- import { i as Me } from "./id-to-date-DAY1m6PQ.js";
7
- import { d as se } from "./dayjs.min-D6kI4XKV.js";
8
- import { e as Ve } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-BFznmzuq.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-icB0dmIu.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-Bq8EXhKG.js";
16
- import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-_vGS-Cr4.js";
17
- import { useI18n as Xe } from "@feedmepos/mf-common";
18
- import { _ as Ge } from "./CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-D4cDxN4Q.js";
19
- import { P as We, J as Ze } from "./app-C39bYJmq.js";
20
- import { u as Be } from "./netsuite-Cqoa7t4H.js";
21
- import { f as et } from "./predefined-templates-B9c2s33F.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
- };