@feedmepos/mf-inventory-portal 1.2.37-dev.4 → 1.2.37-dev.6
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.
- package/dist/{App-DpQ0nMII.js → App-DyOQ_Xw7.js} +3 -3
- package/dist/{ApprovalView-D37t0G1B.js → ApprovalView-DFHDYNum.js} +5 -5
- package/dist/{BindingsDialog-tKfuU_CO.js → BindingsDialog-B96VG07s.js} +8 -8
- package/dist/{BindingsPicker-BcPOqe1R.js → BindingsPicker-CoVDTRO0.js} +2 -2
- package/dist/{BindingsTable-B9aDQSwx.js → BindingsTable-CuWHxqPQ.js} +3 -3
- package/dist/{ClosingDraftView-DAIsp48E.js → ClosingDraftView-BINAvQcF.js} +8 -8
- package/dist/{ClosingHistoryView-xcJvEGkH.js → ClosingHistoryView-CfLTNGoT.js} +22 -22
- package/dist/{ClosingTemplateView-BWyO8-fa.js → ClosingTemplateView-BcXdjqXm.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-i4ZP1Uev.js → DeliveryOrderPrintPreview-Nna0OSHA.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7EtmVVtG.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DIQOehlo.js} +60 -61
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DwLW46wj.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CPeUdEDm.js} +2 -2
- package/dist/{FmMultiselectDialog-Dav3quoM.js → FmMultiselectDialog-B5KK1OWo.js} +1 -1
- package/dist/{FmMultiselectDialog-Dzhhz6BS.js → FmMultiselectDialog-HYBXnDCU.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Ce8K2vo_.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BWC0hDbD.js} +3 -3
- package/dist/{ImportView-BO_r5cmE.js → ImportView-C9k44bAB.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BL17ggbA.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cv4IIkAi.js} +1 -1
- package/dist/{IngredientGroupView-DyV46oh5.js → IngredientGroupView-CAEAOvqh.js} +5 -5
- package/dist/{IngredientsView-0ivgW0_d.js → IngredientsView-Bkri4LBD.js} +14 -14
- package/dist/{IntegrationView-D1k-lSw2.js → IntegrationView-kYveJ3xG.js} +120 -116
- package/dist/{InventoryBindingForm-CQq5vztT.js → InventoryBindingForm-CPDdwuSS.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DrPqK1VW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-IsUi_VNj.js} +14 -14
- package/dist/{InventoryBindingSummary-5CtS4sgt.js → InventoryBindingSummary-1q4t4xZu.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CuEkOQ_S.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BCBhdfk-.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CiGMZOM_.js → PremiumBadge.vue_vue_type_script_setup_true_lang-xAhtpaev.js} +2 -2
- package/dist/{PublishView-CJZ7cXpo.js → PublishView-BofNsPUM.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BcWQb4Qk.js → PurchaseOrderPrintPreview-GwHl_m2O.js} +9 -9
- package/dist/ReceiveRequestView-DfzANuLj.js +2863 -0
- package/dist/{RecipeView-C6dAi4tO.js → RecipeView-bTDYHYsW.js} +8 -8
- package/dist/{StockView-Gx124T4a.js → StockView-BcmJWszh.js} +15 -15
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DAKSb4Q5.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CMSN_f71.js} +1 -1
- package/dist/{SupplierView-2oFk_CLN.js → SupplierView-DmDPwcVZ.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-C27Nqh0l.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CKcmdIYZ.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Djy3MSDW.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CtXx2kvG.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CzOKciLT.js → TransferDetails.vue_vue_type_script_setup_true_lang-JFJLlP7n.js} +374 -374
- package/dist/{TransferTemplateView-hcUwo-Dh.js → TransferTemplateView-p3IubYSO.js} +354 -354
- package/dist/{UnitView-CVd-dLgI.js → UnitView-WtDMm46P.js} +6 -6
- package/dist/{WarehouseView-DzSv4m7G.js → WarehouseView-gt891WkQ.js} +5 -5
- package/dist/{WastageTemplateView-Beb4m5aF.js → WastageTemplateView-DDP_q1kT.js} +14 -14
- package/dist/api/netsuite.d.ts +4 -1
- package/dist/{app-DYO0WhWM.js → app-DtJUp8mQ.js} +341 -328
- package/dist/app.js +1 -1
- package/dist/{closing-template-CdwCRhKH.js → closing-template-DeUVPGPl.js} +1 -1
- package/dist/{date2-Do_H-83J.js → date2-iHubu_Hg.js} +1 -1
- package/dist/{dayjs.min-J0oSBVyV.js → dayjs.min-C81IRMa0.js} +12 -12
- package/dist/{decimal-f9nkZCF0.js → decimal-DsF5fiGB.js} +2 -2
- package/dist/{defineDeepModel-D26PVX51.js → defineDeepModel-cHTtk4kj.js} +1 -1
- package/dist/{duplicate-template-dfowzLrD.js → duplicate-template-BMkJlSqi.js} +1 -1
- package/dist/feature-Dx_hCq6v.js +25312 -0
- package/dist/{format-time-from-id-CXHM8bil.js → format-time-from-id-gYFZ4gB4.js} +1 -1
- package/dist/{format-unit-display-9VFHWAz9.js → format-unit-display-CrSG6jqO.js} +245 -246
- package/dist/helper/reactivity.d.ts +11 -0
- package/dist/helper/reactivity.spec.d.ts +1 -0
- package/dist/{import-export.helper-9VqAwZj0.js → import-export.helper-BBZAXSKi.js} +5 -5
- package/dist/{index-ByfQr35n.js → index-B4IDpHl_.js} +3 -3
- package/dist/{index-Cxns3Dzm.js → index-D13-YBWx.js} +1 -1
- package/dist/{index-uirD8REA.js → index-DjhdVR8R.js} +9 -9
- package/dist/{lodash-DbA8v2QC.js → lodash-fqg0EBFT.js} +1 -1
- package/dist/{netsuite-BHPfqxVS.js → netsuite-Ce50v6Hm.js} +3 -3
- package/dist/{purchase-order-template-kOMWDZ_w.js → purchase-order-template-BxglsHjM.js} +1 -1
- package/dist/{rules-CDK5K4Qr.js → rules-BO1fKtW6.js} +3 -3
- package/dist/{stock-CTjSWXvt.js → stock-DWYWu2eO.js} +3 -3
- package/dist/{stock-SgV4JkTI.js → stock-DyZlhWdA.js} +1 -1
- package/dist/{supplier-DFvfMdUi.js → supplier-BtC6VaAp.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-C5oz99AS.js → use-ingredient-select-dialog-BvSDIPIV.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Uwv_Ts6m.js → use-inventory-binding-dialog-SizooUK2.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DBI5JuVN.js → use-template-enabled-locations-2-D6QsVX09.js} +2 -2
- package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +518 -2225
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +1430 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +13974 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
- package/dist/{vue-i18n-BP740hSA.js → vue-i18n-DVkVzKDL.js} +337 -337
- package/dist/{xlsx-9rU93xfV.js → xlsx-B8-jQ9MR.js} +1 -1
- package/dist/{xlsx.util-CiUDPP4X.js → xlsx.util-BZCQyeND.js} +1 -1
- package/package.json +3 -3
- package/dist/ReceiveRequestView-gA_NPoL7.js +0 -2821
- package/dist/feature-C8pqDJZ_.js +0 -20162
- package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +0 -4
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { defineComponent as Y, mergeModels as Qe, useModel as ke, onMounted as de, ref as L, computed as O, resolveComponent as k, openBlock as I, createElementBlock as E, createElementVNode as r, toDisplayString as R, unref as V, createVNode as y, createBlock as H, withCtx as N, Fragment as Q, renderList as W, normalizeClass as q, normalizeStyle as Pe, createSlots as se, createCommentVNode as j, withModifiers as Je, reactive as Fe, watch as Ce, isRef as ie, Teleport as fe, h as F, createTextVNode as K, watchEffect as Ke } from "vue";
|
|
2
2
|
import { E as qe } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import {
|
|
3
|
+
import { x as Ge, y as Ze, c as ae, u as ne, z as We, a as ce, N as ge, A as Ae, B as Z, s as te, C as Be, D as Ve, v as me } from "./app-DtJUp8mQ.js";
|
|
4
4
|
import { useDialogChild as $e, useDialog as be, useProxiedModel as re, useSnackbar as $, useBreakpoints as _e, components as J } from "@feedmepos/ui-library";
|
|
5
5
|
import { F as Ee, _ as et } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
6
6
|
import { useI18n as ee, useCoreStore as le } from "@feedmepos/mf-common";
|
|
7
|
-
import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { u as nt, a as ot, b as st, c as at } from "./index-
|
|
9
|
-
import { u as oe, a as pe } from "./netsuite-
|
|
10
|
-
import { b as lt, a as it } from "./FmMultiselectDialog-
|
|
11
|
-
import { R as rt, a as ut } from "./rules-
|
|
7
|
+
import { _ as tt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CPeUdEDm.js";
|
|
8
|
+
import { u as nt, a as ot, b as st, c as at } from "./index-DjhdVR8R.js";
|
|
9
|
+
import { u as oe, a as pe } from "./netsuite-Ce50v6Hm.js";
|
|
10
|
+
import { b as lt, a as it } from "./FmMultiselectDialog-HYBXnDCU.js";
|
|
11
|
+
import { R as rt, a as ut } from "./rules-BO1fKtW6.js";
|
|
12
12
|
import { N as Ne, H as Le, b as De } from "./app-uBuHtW8m.js";
|
|
13
|
-
import { u as dt } from "./supplier-
|
|
14
|
-
import { u as ve } from "./vue-i18n-
|
|
15
|
-
import { _ as ct, a as mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { a as he, f as Te } from "./date2-
|
|
17
|
-
import { u as Re } from "./feature-
|
|
13
|
+
import { u as dt } from "./supplier-BtC6VaAp.js";
|
|
14
|
+
import { u as ve } from "./vue-i18n-DVkVzKDL.js";
|
|
15
|
+
import { _ as ct, a as mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-BWC0hDbD.js";
|
|
16
|
+
import { a as he, f as Te } from "./date2-iHubu_Hg.js";
|
|
17
|
+
import { u as Re } from "./feature-Dx_hCq6v.js";
|
|
18
18
|
import { F as Me } from "./FmDroppableField-J0xUsOTV.js";
|
|
19
|
-
import { r as Oe, u as ze } from "./xlsx-
|
|
19
|
+
import { r as Oe, u as ze } from "./xlsx-B8-jQ9MR.js";
|
|
20
20
|
const ft = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
21
21
|
var je = { exports: {} };
|
|
22
22
|
(function(_, h) {
|
|
@@ -130,19 +130,19 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
130
130
|
function n(u, b) {
|
|
131
131
|
if (!d.value)
|
|
132
132
|
return !0;
|
|
133
|
-
const [B, ...
|
|
133
|
+
const [B, ...T] = u;
|
|
134
134
|
if (typeof B != "number")
|
|
135
135
|
return !1;
|
|
136
136
|
const M = b[B];
|
|
137
137
|
return Ie(
|
|
138
138
|
d.value,
|
|
139
139
|
M.sublabel ? [M.label, M.sublabel] : [M.label]
|
|
140
|
-
) ? !0 :
|
|
140
|
+
) ? !0 : T.length === 0 ? i(M) : G(M) ? n(T, M.children) : !1;
|
|
141
141
|
}
|
|
142
|
-
function f(u, b, B = 0,
|
|
142
|
+
function f(u, b, B = 0, T = !1) {
|
|
143
143
|
if (G(u) && u.children.length) {
|
|
144
|
-
const { children: M, ...X } = u,
|
|
145
|
-
(z, U) => f(z, [...b, U], B + 1,
|
|
144
|
+
const { children: M, ...X } = u, D = M.flatMap(
|
|
145
|
+
(z, U) => f(z, [...b, U], B + 1, T || u.disabled)
|
|
146
146
|
);
|
|
147
147
|
return [
|
|
148
148
|
{
|
|
@@ -150,9 +150,9 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
150
150
|
keys: b,
|
|
151
151
|
indent: B,
|
|
152
152
|
collapsible: !0,
|
|
153
|
-
disabled:
|
|
153
|
+
disabled: T || u.disabled
|
|
154
154
|
},
|
|
155
|
-
...
|
|
155
|
+
...D
|
|
156
156
|
];
|
|
157
157
|
}
|
|
158
158
|
return [
|
|
@@ -161,7 +161,7 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
161
161
|
keys: b,
|
|
162
162
|
indent: B,
|
|
163
163
|
collapsible: !1,
|
|
164
|
-
disabled:
|
|
164
|
+
disabled: T || u.disabled
|
|
165
165
|
}
|
|
166
166
|
];
|
|
167
167
|
}
|
|
@@ -179,11 +179,11 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
179
179
|
return u.active ?? !1;
|
|
180
180
|
}
|
|
181
181
|
function a(u, b) {
|
|
182
|
-
const [B, ...
|
|
182
|
+
const [B, ...T] = u;
|
|
183
183
|
if (typeof B != "number")
|
|
184
184
|
return !1;
|
|
185
185
|
const M = b[B];
|
|
186
|
-
return
|
|
186
|
+
return T.length === 0 ? m(M ?? []) : G(M) ? a(T, M.children ?? []) : !1;
|
|
187
187
|
}
|
|
188
188
|
function g(u) {
|
|
189
189
|
if (G(u)) {
|
|
@@ -196,11 +196,11 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
196
196
|
return !1;
|
|
197
197
|
}
|
|
198
198
|
function x(u, b) {
|
|
199
|
-
const [B, ...
|
|
199
|
+
const [B, ...T] = u;
|
|
200
200
|
if (typeof B != "number")
|
|
201
201
|
return !1;
|
|
202
202
|
const M = b[B];
|
|
203
|
-
return
|
|
203
|
+
return T.length === 0 ? g(M ?? []) : G(M) ? x(T, (M == null ? void 0 : M.children) ?? []) : !1;
|
|
204
204
|
}
|
|
205
205
|
function S(u, b) {
|
|
206
206
|
if (u.disabled)
|
|
@@ -210,7 +210,7 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
210
210
|
const B = s(u) ? u.children : u.children.filter(i);
|
|
211
211
|
return {
|
|
212
212
|
...u,
|
|
213
|
-
children: u.children.map((
|
|
213
|
+
children: u.children.map((T) => B.find((X) => Ze(X.value, T.value)) ? S(T, b) : T)
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
return {
|
|
@@ -224,9 +224,9 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
226
|
function C(u, b, B) {
|
|
227
|
-
const [
|
|
228
|
-
return typeof
|
|
229
|
-
(X,
|
|
227
|
+
const [T, ...M] = u;
|
|
228
|
+
return typeof T != "number" ? b : M.length === 0 ? b.map((X, D) => T !== D ? X : S(X, B)) : b.map(
|
|
229
|
+
(X, D) => T === D && G(X) ? {
|
|
230
230
|
...X,
|
|
231
231
|
children: C(M, X.children, B)
|
|
232
232
|
} : X
|
|
@@ -252,7 +252,7 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
252
252
|
h.value = C(u, b, B), o.emitData(h.value);
|
|
253
253
|
}
|
|
254
254
|
return (u, b) => {
|
|
255
|
-
const B = k("FmSearch"),
|
|
255
|
+
const B = k("FmSearch"), T = k("FmCheckbox"), M = k("FmButton"), X = k("FmListItem"), D = k("FmList");
|
|
256
256
|
return I(), E("div", gt, [
|
|
257
257
|
r("div", yt, [
|
|
258
258
|
r("div", At, R(V(t)("inventory.formField.itemsSelected", { count: p.value })), 1),
|
|
@@ -264,7 +264,7 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
264
264
|
}, null, 8, ["modelValue", "placeholder"])
|
|
265
265
|
])
|
|
266
266
|
]),
|
|
267
|
-
A.value.length ? (I(), H(
|
|
267
|
+
A.value.length ? (I(), H(D, {
|
|
268
268
|
key: 0,
|
|
269
269
|
class: "flex-1 overflow-y-auto"
|
|
270
270
|
}, {
|
|
@@ -311,7 +311,7 @@ const gt = { class: "flex flex-col gap-12 h-[350px]" }, yt = { class: "flex item
|
|
|
311
311
|
z.selectable !== !1 ? {
|
|
312
312
|
name: "prepend",
|
|
313
313
|
fn: N(() => [
|
|
314
|
-
y(
|
|
314
|
+
y(T, {
|
|
315
315
|
disabled: z.disabled,
|
|
316
316
|
"model-value": a(z.keys, h.value),
|
|
317
317
|
value: z.keys,
|
|
@@ -628,7 +628,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
628
628
|
let l = (w == null ? void 0 : w.code) ?? "-", u;
|
|
629
629
|
if (v.combinationKey) {
|
|
630
630
|
const B = (((b = w == null ? void 0 : w.variant) == null ? void 0 : b.variantCombinations) || []).find(
|
|
631
|
-
(
|
|
631
|
+
(T) => T.combinationKey === v.combinationKey
|
|
632
632
|
);
|
|
633
633
|
u = (B == null ? void 0 : B.name) ?? (B == null ? void 0 : B.codeName) ?? "", l = (B == null ? void 0 : B.code) ?? l;
|
|
634
634
|
}
|
|
@@ -717,16 +717,16 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
717
717
|
if (G(p))
|
|
718
718
|
return p.children.filter((b) => b.active).map((b) => {
|
|
719
719
|
var M, X;
|
|
720
|
-
const { productId: B, combinationKey:
|
|
721
|
-
return
|
|
720
|
+
const { productId: B, combinationKey: T } = b.value;
|
|
721
|
+
return T ? {
|
|
722
722
|
productId: B,
|
|
723
|
-
combinationKey:
|
|
723
|
+
combinationKey: T,
|
|
724
724
|
code: ((M = v.find(
|
|
725
|
-
({ productId:
|
|
725
|
+
({ productId: D, combinationKey: z }) => B === D && T === z
|
|
726
726
|
)) == null ? void 0 : M.code) ?? ""
|
|
727
727
|
} : {
|
|
728
728
|
productId: B,
|
|
729
|
-
code: ((X = v.find(({ productId:
|
|
729
|
+
code: ((X = v.find(({ productId: D, combinationKey: z }) => B === D && !z)) == null ? void 0 : X.code) ?? ""
|
|
730
730
|
};
|
|
731
731
|
});
|
|
732
732
|
if (!p.active)
|
|
@@ -2569,17 +2569,17 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
function w() {
|
|
2572
|
-
const p = o.currentLocationSubsidiary(), l = o.getAvailableItems(p.id), u = d.skus.filter((
|
|
2573
|
-
(
|
|
2574
|
-
label:
|
|
2575
|
-
sublabel:
|
|
2576
|
-
value:
|
|
2577
|
-
disabled: !u.includes(
|
|
2572
|
+
const p = o.currentLocationSubsidiary(), l = o.getAvailableItems(p.id), u = d.skus.filter((T) => l.includes(T._id)).map((T) => T._id), b = d.skus.map(
|
|
2573
|
+
(T) => ({
|
|
2574
|
+
label: T.name,
|
|
2575
|
+
sublabel: T.code,
|
|
2576
|
+
value: T,
|
|
2577
|
+
disabled: !u.includes(T._id)
|
|
2578
2578
|
})
|
|
2579
|
-
), B = b.filter((
|
|
2579
|
+
), B = b.filter((T) => {
|
|
2580
2580
|
var M;
|
|
2581
|
-
return (M = n.value) == null ? void 0 : M.find((X) => X.sku._id ===
|
|
2582
|
-
}).map((
|
|
2581
|
+
return (M = n.value) == null ? void 0 : M.find((X) => X.sku._id === T.value._id);
|
|
2582
|
+
}).map((T) => T.value);
|
|
2583
2583
|
h.open({
|
|
2584
2584
|
title: i("inventory.transfer.form.items.selectItem"),
|
|
2585
2585
|
closeButton: !0,
|
|
@@ -2598,24 +2598,24 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2598
2598
|
close: !0,
|
|
2599
2599
|
variant: "tertiary"
|
|
2600
2600
|
}
|
|
2601
|
-
}).onPrimary((
|
|
2602
|
-
const M = n.value, X =
|
|
2603
|
-
const z = M.find((ue) => ue.sku._id ===
|
|
2601
|
+
}).onPrimary((T) => {
|
|
2602
|
+
const M = n.value, X = T.map((D) => {
|
|
2603
|
+
const z = M.find((ue) => ue.sku._id === D._id);
|
|
2604
2604
|
return z || {
|
|
2605
|
-
sku:
|
|
2606
|
-
code:
|
|
2607
|
-
name:
|
|
2605
|
+
sku: D,
|
|
2606
|
+
code: D.code,
|
|
2607
|
+
name: D.name,
|
|
2608
2608
|
quantity: {
|
|
2609
2609
|
amount: 1,
|
|
2610
2610
|
precision: 0
|
|
2611
2611
|
}
|
|
2612
2612
|
};
|
|
2613
2613
|
});
|
|
2614
|
-
X.sort((
|
|
2614
|
+
X.sort((D, z) => D.sku.code.localeCompare(z.sku.code)), n.value = X;
|
|
2615
2615
|
});
|
|
2616
2616
|
}
|
|
2617
2617
|
return (p, l) => {
|
|
2618
|
-
const u = k("FmButtonGroup"), b = k("FmLabel"), B = k("FmField"),
|
|
2618
|
+
const u = k("FmButtonGroup"), b = k("FmLabel"), B = k("FmField"), T = k("FmSimpleDatePicker"), M = k("FmTimePicker"), X = k("FmSelect"), D = k("FmIcon"), z = k("FmButton");
|
|
2619
2619
|
return I(), E("div", $n, [
|
|
2620
2620
|
y(u, {
|
|
2621
2621
|
modelValue: A.value,
|
|
@@ -2662,7 +2662,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2662
2662
|
])),
|
|
2663
2663
|
_: 1
|
|
2664
2664
|
}),
|
|
2665
|
-
y(
|
|
2665
|
+
y(T, {
|
|
2666
2666
|
modelValue: C.value,
|
|
2667
2667
|
"onUpdate:modelValue": l[1] || (l[1] = (U) => C.value = U)
|
|
2668
2668
|
}, null, 8, ["modelValue"]),
|
|
@@ -2693,7 +2693,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2693
2693
|
items: S.value
|
|
2694
2694
|
}, null, 8, ["modelValue", "items"])),
|
|
2695
2695
|
g.value ? (I(), E("div", no, [
|
|
2696
|
-
y(
|
|
2696
|
+
y(D, {
|
|
2697
2697
|
name: "cloud",
|
|
2698
2698
|
color: "neutral-gray-400",
|
|
2699
2699
|
size: "md",
|
|
@@ -2815,7 +2815,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2815
2815
|
t.value = !0;
|
|
2816
2816
|
try {
|
|
2817
2817
|
const l = Array.from(n.value);
|
|
2818
|
-
await o.manualSyncMultipleTransferInOrders({ netsuiteIds: l, version: p }), await new Promise((u) => setTimeout(u, 5e3)), d.open({
|
|
2818
|
+
await o.manualSyncMultipleTransferInOrders({ netsuiteIds: l, version: p }), await new Promise((u) => setTimeout(u, 5e3)), i.value = i.value.filter((u) => !n.value.has(u.id)), n.value = /* @__PURE__ */ new Set(), d.open({
|
|
2819
2819
|
message: "Sync transfer orders request sent successfully",
|
|
2820
2820
|
type: "success"
|
|
2821
2821
|
});
|
|
@@ -2830,7 +2830,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2830
2830
|
}
|
|
2831
2831
|
return (p, l) => {
|
|
2832
2832
|
var X;
|
|
2833
|
-
const u = k("FmButton"), b = k("FmCheckbox"), B = k("FmRadio"),
|
|
2833
|
+
const u = k("FmButton"), b = k("FmCheckbox"), B = k("FmRadio"), T = k("FmRadioGroup"), M = k("FmDialog");
|
|
2834
2834
|
return I(), E("div", fo, [
|
|
2835
2835
|
r("span", null, "Current date and time: " + R((/* @__PURE__ */ new Date()).toLocaleString()), 1),
|
|
2836
2836
|
y(u, {
|
|
@@ -2849,22 +2849,24 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2849
2849
|
value: "all",
|
|
2850
2850
|
modelValue: a.value,
|
|
2851
2851
|
indeterminate: g.value,
|
|
2852
|
+
disabled: t.value,
|
|
2852
2853
|
"onUpdate:modelValue": x
|
|
2853
|
-
}, null, 8, ["modelValue", "indeterminate"])) : j("", !0),
|
|
2854
|
+
}, null, 8, ["modelValue", "indeterminate", "disabled"])) : j("", !0),
|
|
2854
2855
|
r("ul", go, [
|
|
2855
|
-
(I(!0), E(Q, null, W(i.value, (
|
|
2856
|
+
(I(!0), E(Q, null, W(i.value, (D) => {
|
|
2856
2857
|
var z;
|
|
2857
2858
|
return I(), E("li", {
|
|
2858
|
-
key:
|
|
2859
|
+
key: D.id,
|
|
2859
2860
|
class: "flex items-center"
|
|
2860
2861
|
}, [
|
|
2861
2862
|
(z = V(h).sessionUser.value) != null && z.role.isAdmin ? (I(), H(b, {
|
|
2862
2863
|
key: 0,
|
|
2863
|
-
label: `${
|
|
2864
|
-
value:
|
|
2865
|
-
modelValue: C(
|
|
2866
|
-
|
|
2867
|
-
|
|
2864
|
+
label: `${D.id} (${D.tranid})`,
|
|
2865
|
+
value: D.id,
|
|
2866
|
+
modelValue: C(D.id),
|
|
2867
|
+
disabled: t.value,
|
|
2868
|
+
"onUpdate:modelValue": (U) => S(D.id, U)
|
|
2869
|
+
}, null, 8, ["label", "value", "modelValue", "disabled", "onUpdate:modelValue"])) : (I(), E("span", yo, R(D.id) + " (" + R(D.tranid) + ")", 1))
|
|
2868
2870
|
]);
|
|
2869
2871
|
}), 128))
|
|
2870
2872
|
])
|
|
@@ -2887,7 +2889,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2887
2889
|
])) : j("", !0),
|
|
2888
2890
|
y(M, {
|
|
2889
2891
|
modelValue: f.value,
|
|
2890
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
2892
|
+
"onUpdate:modelValue": l[2] || (l[2] = (D) => f.value = D),
|
|
2891
2893
|
overlay: !0
|
|
2892
2894
|
}, {
|
|
2893
2895
|
"dialog-header": N(() => l[4] || (l[4] = [
|
|
@@ -2898,7 +2900,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2898
2900
|
y(u, {
|
|
2899
2901
|
label: "Not now",
|
|
2900
2902
|
variant: "secondary",
|
|
2901
|
-
onClick: l[1] || (l[1] = (
|
|
2903
|
+
onClick: l[1] || (l[1] = (D) => f.value = !1)
|
|
2902
2904
|
}),
|
|
2903
2905
|
y(u, {
|
|
2904
2906
|
label: "Confirm",
|
|
@@ -2909,17 +2911,17 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2909
2911
|
]),
|
|
2910
2912
|
default: N(() => [
|
|
2911
2913
|
r("div", bo, [
|
|
2912
|
-
r("p", null, " Choose which
|
|
2913
|
-
y(
|
|
2914
|
+
r("p", null, " Choose which order version to use for syncing " + R(n.value.size) + " selected transfer orders: ", 1),
|
|
2915
|
+
y(T, {
|
|
2914
2916
|
modelValue: A.value,
|
|
2915
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2917
|
+
"onUpdate:modelValue": l[0] || (l[0] = (D) => A.value = D)
|
|
2916
2918
|
}, {
|
|
2917
2919
|
default: N(() => [
|
|
2918
|
-
(I(), E(Q, null, W(m, (
|
|
2919
|
-
key:
|
|
2920
|
-
value:
|
|
2921
|
-
label:
|
|
2922
|
-
sublabel:
|
|
2920
|
+
(I(), E(Q, null, W(m, (D) => y(B, {
|
|
2921
|
+
key: D.value,
|
|
2922
|
+
value: D.value,
|
|
2923
|
+
label: D.label,
|
|
2924
|
+
sublabel: D.subLabel
|
|
2923
2925
|
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
2924
2926
|
]),
|
|
2925
2927
|
_: 1
|
|
@@ -2949,7 +2951,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2949
2951
|
}
|
|
2950
2952
|
], a = O(() => i.value.length > 0 && n.value.size === i.value.length), g = O(() => n.value.size > 0 && n.value.size < i.value.length);
|
|
2951
2953
|
function x(p) {
|
|
2952
|
-
p ? n.value = new Set(i.value) : n.value = /* @__PURE__ */ new Set();
|
|
2954
|
+
p ? n.value = new Set(i.value.map((l) => l.id)) : n.value = /* @__PURE__ */ new Set();
|
|
2953
2955
|
}
|
|
2954
2956
|
function S(p, l) {
|
|
2955
2957
|
l ? n.value.add(p) : n.value.delete(p), n.value = new Set(n.value);
|
|
@@ -2994,7 +2996,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
2994
2996
|
t.value = !0;
|
|
2995
2997
|
try {
|
|
2996
2998
|
const l = Array.from(n.value);
|
|
2997
|
-
await o.manualSyncMultiplePurchaseOrders({ netsuiteIds: l, version: p }), await new Promise((u) => setTimeout(u, 5e3)), d.open({
|
|
2999
|
+
await o.manualSyncMultiplePurchaseOrders({ netsuiteIds: l, version: p }), await new Promise((u) => setTimeout(u, 5e3)), i.value = i.value.filter((u) => !n.value.has(u.id)), n.value = /* @__PURE__ */ new Set(), d.open({
|
|
2998
3000
|
message: "Sync purchase orders request sent successfully",
|
|
2999
3001
|
type: "success"
|
|
3000
3002
|
});
|
|
@@ -3009,7 +3011,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
3009
3011
|
}
|
|
3010
3012
|
return (p, l) => {
|
|
3011
3013
|
var X;
|
|
3012
|
-
const u = k("FmButton"), b = k("FmCheckbox"), B = k("FmRadio"),
|
|
3014
|
+
const u = k("FmButton"), b = k("FmCheckbox"), B = k("FmRadio"), T = k("FmRadioGroup"), M = k("FmDialog");
|
|
3013
3015
|
return I(), E("div", Io, [
|
|
3014
3016
|
r("span", null, "Current date and time: " + R((/* @__PURE__ */ new Date()).toLocaleString()), 1),
|
|
3015
3017
|
y(u, {
|
|
@@ -3028,22 +3030,24 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
3028
3030
|
value: "all",
|
|
3029
3031
|
modelValue: a.value,
|
|
3030
3032
|
indeterminate: g.value,
|
|
3033
|
+
disabled: t.value,
|
|
3031
3034
|
"onUpdate:modelValue": x
|
|
3032
|
-
}, null, 8, ["modelValue", "indeterminate"])) : j("", !0),
|
|
3035
|
+
}, null, 8, ["modelValue", "indeterminate", "disabled"])) : j("", !0),
|
|
3033
3036
|
r("ul", ko, [
|
|
3034
|
-
(I(!0), E(Q, null, W(i.value, (
|
|
3037
|
+
(I(!0), E(Q, null, W(i.value, (D) => {
|
|
3035
3038
|
var z;
|
|
3036
3039
|
return I(), E("li", {
|
|
3037
|
-
key:
|
|
3040
|
+
key: D.id,
|
|
3038
3041
|
class: "flex items-center"
|
|
3039
3042
|
}, [
|
|
3040
3043
|
(z = V(h).sessionUser.value) != null && z.role.isAdmin ? (I(), H(b, {
|
|
3041
3044
|
key: 0,
|
|
3042
|
-
label:
|
|
3043
|
-
value:
|
|
3044
|
-
modelValue: C(
|
|
3045
|
-
|
|
3046
|
-
|
|
3045
|
+
label: `${D.id} (${D.tranid})`,
|
|
3046
|
+
value: D.id,
|
|
3047
|
+
modelValue: C(D.id),
|
|
3048
|
+
disabled: t.value,
|
|
3049
|
+
"onUpdate:modelValue": (U) => S(D.id, U)
|
|
3050
|
+
}, null, 8, ["label", "value", "modelValue", "disabled", "onUpdate:modelValue"])) : (I(), E("span", Fo, R(D.id) + " (" + R(D.tranid) + ")", 1))
|
|
3047
3051
|
]);
|
|
3048
3052
|
}), 128))
|
|
3049
3053
|
])
|
|
@@ -3066,7 +3070,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
3066
3070
|
])) : j("", !0),
|
|
3067
3071
|
y(M, {
|
|
3068
3072
|
modelValue: f.value,
|
|
3069
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
3073
|
+
"onUpdate:modelValue": l[2] || (l[2] = (D) => f.value = D),
|
|
3070
3074
|
overlay: !0
|
|
3071
3075
|
}, {
|
|
3072
3076
|
"dialog-header": N(() => l[4] || (l[4] = [
|
|
@@ -3077,7 +3081,7 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
3077
3081
|
y(u, {
|
|
3078
3082
|
label: "Not now",
|
|
3079
3083
|
variant: "secondary",
|
|
3080
|
-
onClick: l[1] || (l[1] = (
|
|
3084
|
+
onClick: l[1] || (l[1] = (D) => f.value = !1)
|
|
3081
3085
|
}),
|
|
3082
3086
|
y(u, {
|
|
3083
3087
|
label: "Confirm",
|
|
@@ -3088,17 +3092,17 @@ const Ot = { class: "flex flex-col rounded border border-fm-color-neutral-gray-1
|
|
|
3088
3092
|
]),
|
|
3089
3093
|
default: N(() => [
|
|
3090
3094
|
r("div", Bo, [
|
|
3091
|
-
r("p", null, " Choose which
|
|
3092
|
-
y(
|
|
3095
|
+
r("p", null, " Choose which order version to use for syncing " + R(n.value.size) + " selected purchase orders: ", 1),
|
|
3096
|
+
y(T, {
|
|
3093
3097
|
modelValue: A.value,
|
|
3094
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3098
|
+
"onUpdate:modelValue": l[0] || (l[0] = (D) => A.value = D)
|
|
3095
3099
|
}, {
|
|
3096
3100
|
default: N(() => [
|
|
3097
|
-
(I(), E(Q, null, W(m, (
|
|
3098
|
-
key:
|
|
3099
|
-
value:
|
|
3100
|
-
label:
|
|
3101
|
-
sublabel:
|
|
3101
|
+
(I(), E(Q, null, W(m, (D) => y(B, {
|
|
3102
|
+
key: D.value,
|
|
3103
|
+
value: D.value,
|
|
3104
|
+
label: D.label,
|
|
3105
|
+
sublabel: D.subLabel
|
|
3102
3106
|
}, null, 8, ["value", "label", "sublabel"])), 64))
|
|
3103
3107
|
]),
|
|
3104
3108
|
_: 1
|
|
@@ -3474,17 +3478,17 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3474
3478
|
id: "unit",
|
|
3475
3479
|
header: () => "Unit",
|
|
3476
3480
|
cell(b) {
|
|
3477
|
-
const B = b.row.original,
|
|
3481
|
+
const B = b.row.original, T = !B.skuAdjustment.amounts[0].measurement;
|
|
3478
3482
|
let M = B.skuAdjustment.sku.unit.name;
|
|
3479
|
-
if (!
|
|
3483
|
+
if (!T) {
|
|
3480
3484
|
const X = B.skuAdjustment.sku.unit.measurements.find(
|
|
3481
|
-
(
|
|
3485
|
+
(D) => D.id === B.skuAdjustment.amounts[0].measurement.id
|
|
3482
3486
|
);
|
|
3483
3487
|
M = X ? X.name : "Error: Measurement not found";
|
|
3484
3488
|
}
|
|
3485
3489
|
return F("div", { class: "flex flex-col" }, [
|
|
3486
3490
|
F("span", { class: "font-medium" }, M),
|
|
3487
|
-
|
|
3491
|
+
T ? null : F("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, [
|
|
3488
3492
|
`Base unit: ${B.skuAdjustment.sku.unit.name}`
|
|
3489
3493
|
])
|
|
3490
3494
|
]);
|
|
@@ -3494,7 +3498,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3494
3498
|
id: "totalCost",
|
|
3495
3499
|
header: () => "Total Cost",
|
|
3496
3500
|
cell(b) {
|
|
3497
|
-
const B = b.row.original, { currency:
|
|
3501
|
+
const B = b.row.original, { currency: T, ...M } = B.skuAdjustment.amounts[0].cost ?? {
|
|
3498
3502
|
amount: 0,
|
|
3499
3503
|
precision: 0,
|
|
3500
3504
|
currency: ""
|
|
@@ -3538,12 +3542,12 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3538
3542
|
try {
|
|
3539
3543
|
let b = {};
|
|
3540
3544
|
f.value === "netsuite" && (b = await o.getItemAverageCosts());
|
|
3541
|
-
const { errors: B, rows:
|
|
3545
|
+
const { errors: B, rows: T } = await Yo(
|
|
3542
3546
|
b,
|
|
3543
3547
|
d.skus,
|
|
3544
3548
|
m.value
|
|
3545
3549
|
);
|
|
3546
|
-
x.value = B, S.value = Object.values(
|
|
3550
|
+
x.value = B, S.value = Object.values(T);
|
|
3547
3551
|
} catch {
|
|
3548
3552
|
s.open({
|
|
3549
3553
|
message: "Error verifying file",
|
|
@@ -3596,10 +3600,10 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3596
3600
|
return isNaN(b.getTime()) ? null : he(b);
|
|
3597
3601
|
});
|
|
3598
3602
|
return (b, B) => {
|
|
3599
|
-
const
|
|
3603
|
+
const T = k("FmLabel"), M = k("FmField"), X = k("FmSimpleDatePicker"), D = k("FmButton"), z = k("FmIcon"), U = k("FmRadio"), ue = k("FmRadioGroup"), xe = k("FmTable");
|
|
3600
3604
|
return I(), E("div", Jo, [
|
|
3601
3605
|
r("div", Ko, [
|
|
3602
|
-
y(
|
|
3606
|
+
y(T, { label: "Latest closing" })
|
|
3603
3607
|
]),
|
|
3604
3608
|
y(M, {
|
|
3605
3609
|
"prepend-icon": "lock_outline",
|
|
@@ -3613,7 +3617,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3613
3617
|
V(h).state.closingDocumentId ? (I(), E("div", cs, [
|
|
3614
3618
|
B[6] || (B[6] = r("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Not able to import opening balance as closing document already exists. ", -1)),
|
|
3615
3619
|
V(i)._currentLocation ? (I(), E(Q, { key: 0 }, [
|
|
3616
|
-
y(
|
|
3620
|
+
y(T, { label: "Location ID" }),
|
|
3617
3621
|
y(M, {
|
|
3618
3622
|
"prepend-icon": "lock_outline",
|
|
3619
3623
|
disabled: ""
|
|
@@ -3645,7 +3649,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3645
3649
|
_: 1
|
|
3646
3650
|
}, 8, ["modelValue"]),
|
|
3647
3651
|
r("div", Go, [
|
|
3648
|
-
y(
|
|
3652
|
+
y(T, { label: "Stock take file" })
|
|
3649
3653
|
]),
|
|
3650
3654
|
y(Me, {
|
|
3651
3655
|
onFileUpload: B[1] || (B[1] = (P) => {
|
|
@@ -3660,7 +3664,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3660
3664
|
r("div", Wo, [
|
|
3661
3665
|
r("div", $o, [
|
|
3662
3666
|
r("div", es, R(m.value.name), 1),
|
|
3663
|
-
y(
|
|
3667
|
+
y(D, {
|
|
3664
3668
|
label: V(A)("inventory.ingredient.import.replaceFile"),
|
|
3665
3669
|
variant: "secondary",
|
|
3666
3670
|
"prepend-icon": "autorenew",
|
|
@@ -3715,7 +3719,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3715
3719
|
_: 1
|
|
3716
3720
|
}, 8, ["modelValue"]),
|
|
3717
3721
|
r("div", us, [
|
|
3718
|
-
y(
|
|
3722
|
+
y(D, {
|
|
3719
3723
|
class: "ml-auto mt-4",
|
|
3720
3724
|
variant: "secondary",
|
|
3721
3725
|
"prepend-icon": "troubleshoot",
|
|
@@ -3744,7 +3748,7 @@ const Jo = { class: "flex flex-col gap-4" }, Ko = { class: "flex flex-col" }, qo
|
|
|
3744
3748
|
}, null, 8, ["row-data"])
|
|
3745
3749
|
], 64)) : j("", !0),
|
|
3746
3750
|
r("div", ds, [
|
|
3747
|
-
S.value.length > 0 && !V(h).state.closingDocumentId ? (I(), H(
|
|
3751
|
+
S.value.length > 0 && !V(h).state.closingDocumentId ? (I(), H(D, {
|
|
3748
3752
|
key: 0,
|
|
3749
3753
|
class: "ml-auto mt-4",
|
|
3750
3754
|
"prepend-icon": "file_upload",
|
|
@@ -4049,10 +4053,10 @@ const Fs = { class: "flex flex-col gap-4" }, Cs = { class: "flex flex-col" }, Bs
|
|
|
4049
4053
|
const u = l.row.original, b = !u.skuAdjustment.amounts[0].measurement;
|
|
4050
4054
|
let B = u.skuAdjustment.sku.unit.name;
|
|
4051
4055
|
if (!b) {
|
|
4052
|
-
const
|
|
4056
|
+
const T = u.skuAdjustment.sku.unit.measurements.find(
|
|
4053
4057
|
(M) => M.id === u.skuAdjustment.amounts[0].measurement.id
|
|
4054
4058
|
);
|
|
4055
|
-
B =
|
|
4059
|
+
B = T ? T.name : "Error: Measurement not found";
|
|
4056
4060
|
}
|
|
4057
4061
|
return F("div", { class: "flex flex-col" }, [
|
|
4058
4062
|
F("span", { class: "font-medium" }, B),
|
|
@@ -4167,7 +4171,7 @@ const Fs = { class: "flex flex-col gap-4" }, Cs = { class: "flex flex-col" }, Bs
|
|
|
4167
4171
|
return isNaN(l.getTime()) ? null : he(l);
|
|
4168
4172
|
});
|
|
4169
4173
|
return (l, u) => {
|
|
4170
|
-
const b = k("FmLabel"), B = k("FmField"),
|
|
4174
|
+
const b = k("FmLabel"), B = k("FmField"), T = k("FmSimpleDatePicker"), M = k("FmButton"), X = k("FmRadio"), D = k("FmRadioGroup"), z = k("FmTable");
|
|
4171
4175
|
return I(), E("div", Fs, [
|
|
4172
4176
|
r("div", Cs, [
|
|
4173
4177
|
y(b, { label: "Latest closing" })
|
|
@@ -4184,7 +4188,7 @@ const Fs = { class: "flex flex-col gap-4" }, Cs = { class: "flex flex-col" }, Bs
|
|
|
4184
4188
|
V(h).state.closingDocumentId ? (I(), E("div", zs, u[6] || (u[6] = [
|
|
4185
4189
|
r("span", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Not able to import opening balance as closing document already exists. ", -1)
|
|
4186
4190
|
]))) : (I(), E("div", Bs, [
|
|
4187
|
-
y(
|
|
4191
|
+
y(T, {
|
|
4188
4192
|
modelValue: w.value,
|
|
4189
4193
|
"onUpdate:modelValue": u[0] || (u[0] = (U) => w.value = U),
|
|
4190
4194
|
label: "Last closing time"
|
|
@@ -4232,7 +4236,7 @@ const Fs = { class: "flex flex-col gap-4" }, Cs = { class: "flex flex-col" }, Bs
|
|
|
4232
4236
|
key: "0"
|
|
4233
4237
|
} : void 0
|
|
4234
4238
|
]), 1024),
|
|
4235
|
-
y(
|
|
4239
|
+
y(D, {
|
|
4236
4240
|
modelValue: i.value,
|
|
4237
4241
|
"onUpdate:modelValue": u[2] || (u[2] = (U) => i.value = U),
|
|
4238
4242
|
label: "Retrieve cost from",
|