@feedmepos/mf-inventory-portal 1.8.1 → 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.
- package/dist/{App-BPhAFsnf.js → App-OAKZ4Qdf.js} +9 -9
- package/dist/{ApprovalView-DuJIX7ux.js → ApprovalView-DN0rWMUh.js} +9 -9
- package/dist/{BindingsDialog-BiNopu6T.js → BindingsDialog-BWpIeq6j.js} +2 -2
- package/dist/{BindingsPicker-C2GUK3np.js → BindingsPicker-DRROpR8i.js} +3 -3
- package/dist/{BindingsTable-DlPl5o1h.js → BindingsTable-BFEoUCIT.js} +10 -10
- package/dist/{BulkReceiveRequestPage-YtqUSPUN.js → BulkReceiveRequestPage-wnXszulg.js} +217 -217
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CAKGP0N3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js} +1 -1
- package/dist/{ClosingDraftView-C0XEpqat.js → ClosingDraftView-BRNRWXnj.js} +19 -19
- package/dist/{ClosingHistoryView-C2Bl2vnF.js → ClosingHistoryView-DWPINMVP.js} +7 -7
- package/dist/{ClosingTemplateView-DAXyH1l9.js → ClosingTemplateView-gqjNm3Wi.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-sP8-Pw8r.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-cxhbnvht.js} +1 -1
- package/dist/{DefaultView-QUjOTT9z.js → DefaultView-CTQ0-HzQ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CNO7dng4.js → DeliveryOrderPrintPreview-gReWM4vq.js} +9 -9
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-MiLvwxSQ.js → EmailDialog.vue_vue_type_script_setup_true_lang-IYcE8OSG.js} +11723 -11601
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bo7xjTer.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js} +1 -1
- package/dist/{FeatureCapabilityGate-CQrRBMcC.js → FeatureCapabilityGate-Ce4_ozRL.js} +2 -2
- package/dist/{FeaturePageGate.vue_vue_type_script_setup_true_lang-CIKrUrln.js → FeaturePageGate.vue_vue_type_script_setup_true_lang-DViz4hgB.js} +1 -1
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DfCQ8SNd.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BTeJz4Mm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C-6cGWEV.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DiwH0vnm.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js} +2 -2
- package/dist/{FmMultiselectDialog-Dne8GSe8.js → FmMultiselectDialog-B4Diosc4.js} +2 -2
- package/dist/{FmMultiselectDialog-BZvKKnBB.js → FmMultiselectDialog-CJLfLql2.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D1-MLyJi.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DuNzft4K.js} +5 -5
- package/dist/{ImportView-Dr-2cv9N.js → ImportView-DnYVbQ6I.js} +7 -7
- package/dist/{IngredientsView-BnaNrWb7.js → IngredientsView-COUJUWAb.js} +68 -68
- package/dist/{IntegrationExplorerView-Bjflxeha.js → IntegrationExplorerView-CgE2WN-x.js} +6 -6
- package/dist/{IntegrationPlatformView-fO7R9fGT.js → IntegrationPlatformView-BtTv4P3n.js} +2 -2
- package/dist/{IntegrationView-CxpmB0o2.js → IntegrationView-D_YkXYOW.js} +3049 -3032
- package/dist/{InventoryBindingForm-DbgvnZ9I.js → InventoryBindingForm-B4HvjUs9.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-3stkPlAW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js} +4 -4
- package/dist/{InventoryBindingSummary-BrIFW5dO.js → InventoryBindingSummary-CCFW8rw_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BAVjiZbm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-PJMjcN03.js} +2 -2
- package/dist/{ProductionRunDetailPage-DhImFq9B.js → ProductionRunDetailPage-ChNKrpyj.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CCUBGX4K.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-536rtKru.js} +8 -8
- package/dist/{ProductionRunPage-D9SaErg3.js → ProductionRunPage-FIUKUyDB.js} +4 -4
- package/dist/{PublishView-CmqorDCm.js → PublishView-JDX28AHk.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CvplcGNv.js → PurchaseOrderPrintPreview-C8-zlH52.js} +13 -13
- package/dist/ReceiveRequestView-DIuftfMU.js +729 -0
- package/dist/{RecipeView-CgJcpA_f.js → RecipeView-BKYAdx6j.js} +16 -16
- package/dist/{SettingsView-I1XEa1NJ.js → SettingsView-CZR-ELPO.js} +7 -7
- package/dist/{StockView-C2tK0oPv.js → StockView-C-9o5zUV.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DSz37GY_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js} +1 -1
- package/dist/{SupplierView-C69gOB_i.js → SupplierView-CHX-eb1W.js} +13 -13
- package/dist/{SurchargeView-DfDtR1jP.js → SurchargeView-D1y5BUvB.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CWD44FiP.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DU2wYI2T.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-5RLeEfkg.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DKTWIz-E.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eSgt3P6r.js +4961 -0
- package/dist/{TransferTemplateView-Dc892CSr.js → TransferTemplateView-Bq7Euggq.js} +19 -19
- package/dist/{UnitCostHistoryView-DkuDLBSq.js → UnitCostHistoryView-CLpnjeEP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-3Iyv5v10.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CiWUAHMw.js} +4 -4
- package/dist/{UnitView-CakqjGDe.js → UnitView-RxPdbO_C.js} +7 -7
- package/dist/{WarehouseView-AUPuNwRA.js → WarehouseView-Ba_77-lL.js} +8 -8
- package/dist/{WastageTemplateView-1kxcX31h.js → WastageTemplateView-DRB3J1CD.js} +15 -15
- package/dist/{app-tiHt7P8o.js → app-B2FciWDu.js} +1191 -1208
- package/dist/app.js +1 -1
- package/dist/{bulk-edit-simulation.helper-D490leZh.js → bulk-edit-simulation.helper-gZPNWgS7.js} +2 -2
- package/dist/{closing-template-CAahWrPo.js → closing-template-L7d2nmhr.js} +1 -1
- package/dist/{date2-CKKZ3b1E.js → date2--N7dpGRR.js} +1 -1
- package/dist/{dayjs.min-CXmScEL-.js → dayjs.min-CFhuhXoi.js} +1 -1
- package/dist/{decimal-CE8yRxZg.js → decimal-gywux_Ld.js} +2 -2
- package/dist/defineDeepModel-B2EkoePs.js +19 -0
- package/dist/{duplicate-template-DGrH04lc.js → duplicate-template-t-iu60N3.js} +1 -1
- package/dist/{feature-BuUIX2LY.js → feature-CvQ6eKvB.js} +51 -46
- package/dist/{format-time-from-id-BQOfGm26.js → format-time-from-id-BVk3iOfV.js} +1 -1
- package/dist/{format-unit-display-BuBfy3bb.js → format-unit-display-CLmFpKSI.js} +13 -12
- package/dist/{id-to-date-B_aPAdeF.js → id-to-date-DKmIZp6I.js} +1 -1
- package/dist/{import-export.helper-DPqodvrw.js → import-export.helper-qShUWqck.js} +5 -5
- package/dist/{index-EgLlcZ4g.js → index-CJ1pZPwZ.js} +3 -3
- package/dist/{index-yTHfPUVq.js → index-CoGFfqOs.js} +1 -1
- package/dist/{index-CBkSXbQw.js → index-CrUvC9l4.js} +1 -1
- package/dist/{lz-string-Dgq0u7oK.js → lz-string-mHxrGSbY.js} +1 -1
- package/dist/{netsuite-BgB1tjJx.js → netsuite-BDcapEOO.js} +2 -2
- package/dist/{netsuite-explorer-BMtIwGyi.js → netsuite-explorer-FeiogpVF.js} +1 -1
- package/dist/{predefined-templates-BiuP4m7R.js → predefined-templates-CVAkYLi5.js} +1 -1
- package/dist/{purchase-order-template-D5Z0bPLL.js → purchase-order-template-CrRp6r28.js} +1 -1
- package/dist/{recalculationUtils-BitV6W_8.js → recalculationUtils-BuhlMBRB.js} +1 -1
- package/dist/{row-action.enum-CTNl1V0l.js → row-action.enum-b--87Y19.js} +1 -1
- package/dist/{rules-BpG29H9Z.js → rules-CFEKk1zY.js} +3 -3
- package/dist/{stock-DNV9xfbE.js → stock-B4FZa2Ci.js} +1 -1
- package/dist/{stock-DTzUuxKl.js → stock-Bet2VY1l.js} +2 -2
- package/dist/stores/feature.d.ts +4 -2
- package/dist/{supplier-8uMx5fFa.js → supplier-DX_LR2LR.js} +2 -2
- package/dist/{surcharge-D0c44dor.js → surcharge-gnQZF_xQ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BErW6UQ4.js → uom-rules-B4qbIOqA.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CZTe4ayv.js → use-ingredient-select-dialog-BE5IHSwH.js} +2 -2
- package/dist/{use-inventory-binding-dialog-D_N7K7pw.js → use-inventory-binding-dialog-B0xEQiLV.js} +2 -2
- package/dist/{use-template-enabled-locations-C1xNZr4V.js → use-template-enabled-locations-BvAG1cJF.js} +2 -2
- package/dist/{use-transfer-locations-BlSNA3qv.js → use-transfer-locations-pyDvqZxC.js} +3 -2
- package/dist/{useHrmPermission-Bd1_Ia_U.js → useHrmPermission-kFc2vRek.js} +4 -4
- package/dist/{useNavigationMenu-DXrUeRX9.js → useNavigationMenu-C9-LqWKt.js} +31 -31
- package/dist/{useSseClient-Di0ywAz-.js → useSseClient-CoafBOe-.js} +1 -1
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialog.vue.d.ts +18 -0
- package/dist/views/receive-request/components/create-order-dialog/CreateOrderDialogProps.d.ts +14 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateList.vue.d.ts +43 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.spec.d.ts +1 -0
- package/dist/views/receive-request/components/create-order-dialog/TemplateSidebar.vue.d.ts +36 -0
- package/dist/views/receive-request/components/create-order-dialog/sections.d.ts +3 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.d.ts +62 -0
- package/dist/views/receive-request/components/create-order-dialog/useCreateOrderDialog.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialog.vue.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +5 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.block.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +4 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +3 -1
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2 -0
- package/dist/views/receive-request/helper/create-order-selection.d.ts +43 -0
- package/dist/views/receive-request/helper/create-order-selection.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +41 -0
- package/dist/{vue-C029rfpt.js → vue-BMDdrHy_.js} +49 -53
- package/dist/{vue-i18n-Bg7KOfUG.js → vue-i18n-Bkodg08l.js} +290 -290
- package/dist/{xlsx.util-BQrh6imS.js → xlsx.util-DOCqFSat.js} +2 -2
- package/package.json +3 -2
- package/dist/ReceiveRequestView-DAN7eOH5.js +0 -346
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Dzlex2fK.js +0 -4953
- package/dist/defineDeepModel-BRZrUePH.js +0 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as i, createElementBlock as m, openBlock as t, createVNode as u, createTextVNode as f, defineComponent as _, computed as c, createBlock as n, createCommentVNode as a } from "vue";
|
|
2
|
-
import { i as d } from "./vue-
|
|
2
|
+
import { i as d } from "./vue-BMDdrHy_.js";
|
|
3
3
|
import { _ as g } from "./PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js";
|
|
4
4
|
import { _ as y } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const b = {}, x = { class: "inline-flex items-center gap-1 rounded-full border border-fm-color-state-warning-base bg-fm-color-state-warning-subtle px-2 py-0.5 text-xs font-medium text-fm-color-state-warning-base" };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as K, computed as c, ref as $, resolveComponent as v, createElementBlock as a, openBlock as n, normalizeClass as s, unref as t, createElementVNode as y, createCommentVNode as k, createVNode as u, renderSlot as b, withModifiers as B, toDisplayString as N } from "vue";
|
|
2
|
-
import { g as z, c as I } from "./vue-
|
|
3
|
-
import { R as P } from "./app-
|
|
2
|
+
import { g as z, c as I } from "./vue-BMDdrHy_.js";
|
|
3
|
+
import { R as P } from "./app-B2FciWDu.js";
|
|
4
4
|
import { _ as S } from "./PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js";
|
|
5
5
|
import { _ as U } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const j = ["aria-hidden", "inert"], D = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as P, computed as v, resolveComponent as _, createElementBlock as a, openBlock as t, normalizeClass as u, createElementVNode as l, createCommentVNode as p, createVNode as f, toDisplayString as m, renderSlot as h, ref as $, watch as V, createBlock as F, unref as n, withCtx as g, Fragment as C, createTextVNode as B } from "vue";
|
|
2
2
|
import { _ as j, F as z } from "./PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js";
|
|
3
|
-
import { b as A } from "./vue-
|
|
3
|
+
import { b as A } from "./vue-BMDdrHy_.js";
|
|
4
4
|
const E = { class: "grid grow grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-x-12 gap-y-12 px-16 py-12 xs:grid-cols-[auto_minmax(0,1fr)]" }, G = { class: "flex h-[18px] shrink-0 items-center" }, K = { class: "grow min-w-0" }, S = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary mt-4"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as g, ref as _, watch as d, computed as v, resolveComponent as l, createBlock as h, openBlock as y, withCtx as R, createElementVNode as i, createVNode as w, toDisplayString as x } from "vue";
|
|
2
|
-
import { c } from "./date2
|
|
2
|
+
import { c } from "./date2--N7dpGRR.js";
|
|
3
3
|
function F() {
|
|
4
4
|
const t = /* @__PURE__ */ new Date();
|
|
5
5
|
return t.setDate(t.getDate() - 15), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, mergeModels as I, useModel as z, computed as b, ref as _, resolveComponent as n, createElementBlock as h, openBlock as o, normalizeStyle as B, createElementVNode as f, createVNode as N, withCtx as E, createBlock as s, createCommentVNode as F, Fragment as S, renderList as R, unref as r } from "vue";
|
|
2
|
-
import { z as u } from "./app-
|
|
3
|
-
import { F as T } from "./FmMultiselectDialog-
|
|
2
|
+
import { z as u } from "./app-B2FciWDu.js";
|
|
3
|
+
import { F as T } from "./FmMultiselectDialog-CJLfLql2.js";
|
|
4
4
|
const q = { class: "overflow-y-auto h-full pb-8" }, L = /* @__PURE__ */ g({
|
|
5
5
|
__name: "FmFilterableMenuOptions",
|
|
6
6
|
props: /* @__PURE__ */ I({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as V, mergeModels as F, computed as M, useModel as f, resolveComponent as g, createElementBlock as s, openBlock as l, unref as n, renderSlot as R, createElementVNode as p, normalizeClass as b, createCommentVNode as r, createBlock as a, withCtx as C, createVNode as U, Fragment as A, renderList as L } from "vue";
|
|
2
2
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
3
|
-
import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as D } from "./ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BtEblqcM.js";
|
|
4
|
+
import { _ as I } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B6f-p8K7.js";
|
|
5
5
|
import { useBreakpoints as N } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as Q } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
7
7
|
import { D as k } from "./app-C39bYJmq.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as b, createElementBlock as c, openBlock as m, createElementVNode as p, toDisplayString as a, unref as _, Fragment as B, renderList as P, h as A } from "vue";
|
|
2
|
-
import { a as d, h as C } from "./rules-
|
|
2
|
+
import { a as d, h as C } from "./rules-CFEKk1zY.js";
|
|
3
3
|
import { useI18n as h } from "@feedmepos/mf-common";
|
|
4
4
|
import { defineStore as k } from "pinia";
|
|
5
5
|
import { useDialog as w } from "@feedmepos/ui-library";
|
|
6
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
6
|
+
import { a as g } from "./FmMultiselectDialog-CJLfLql2.js";
|
|
7
7
|
const D = { class: "flex flex-col" }, I = { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, M = { class: "flex-1 py-8 px-16" }, $ = {
|
|
8
8
|
class: "flex-0 py-8 px-16",
|
|
9
9
|
style: { "flex-basis": "120px" }
|
|
@@ -3,8 +3,8 @@ var Pe = (F, i, l) => i in F ? He(F, i, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var ve = (F, i, l) => Pe(F, typeof i != "symbol" ? i + "" : i, l);
|
|
4
4
|
import { defineComponent as ye, computed as x, ref as $, watch as ge, createElementBlock as f, openBlock as d, normalizeStyle as z, Fragment as V, renderList as O, createCommentVNode as D, renderSlot as ke, useSlots as Oe, onMounted as Ue, onUnmounted as Ee, reactive as ee, resolveComponent as T, createElementVNode as B, createVNode as k, createTextVNode as Ke, toDisplayString as P, unref as L, createSlots as je, withCtx as w, createBlock as I, resolveDynamicComponent as pe, normalizeClass as fe, withModifiers as Ne, Transition as ze } from "vue";
|
|
5
5
|
import { useDialogChild as Ge } from "@feedmepos/ui-library";
|
|
6
|
-
import { z as he } from "./app-
|
|
7
|
-
import { d as Je } from "./index-
|
|
6
|
+
import { z as he } from "./app-B2FciWDu.js";
|
|
7
|
+
import { d as Je } from "./index-CoGFfqOs.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import { useI18n as Re } from "@feedmepos/mf-common";
|
|
10
10
|
import { P as We, J as be, D as Qe } from "./app-C39bYJmq.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as re, mergeModels as H, useModel as me, computed as v, ref as R, watch as Q, onBeforeUnmount as ce, inject as de, resolveComponent as M, createElementBlock as y, openBlock as d, createElementVNode as u, createVNode as x, createCommentVNode as A, withCtx as _, renderSlot as G, withDirectives as pe, normalizeClass as q, toDisplayString as h, vModelText as fe, createBlock as C, Fragment as ve, renderList as be, createSlots as ye, createTextVNode as he } from "vue";
|
|
2
|
-
import { l as Me } from "./netsuite-
|
|
3
|
-
import { s as B } from "./app-
|
|
4
|
-
import { I as U, g as O, a as b, c as xe, h as Z, q as ge, b as _e, u as Fe, t as Ae } from "./rules-
|
|
2
|
+
import { l as Me } from "./netsuite-BDcapEOO.js";
|
|
3
|
+
import { s as B } from "./app-B2FciWDu.js";
|
|
4
|
+
import { I as U, g as O, a as b, c as xe, h as Z, q as ge, b as _e, u as Fe, t as Ae } from "./rules-CFEKk1zY.js";
|
|
5
5
|
import "@feedmepos/ui-library";
|
|
6
|
-
import { P as Be } from "./feature-
|
|
7
|
-
import { u as Ue, a as Ie } from "./uom-rules-
|
|
6
|
+
import { P as Be } from "./feature-CvQ6eKvB.js";
|
|
7
|
+
import { u as Ue, a as Ie } from "./uom-rules-B4qbIOqA.js";
|
|
8
8
|
function J() {
|
|
9
9
|
return {
|
|
10
10
|
amount: B.reset()
|
|
@@ -2,15 +2,15 @@ import { defineComponent as Oe, ref as z, computed as Z, watch as Ve, resolveCom
|
|
|
2
2
|
import { u as Ke, _ as Ne } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
3
3
|
import { useCoreStore as $e, useI18n as ze } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Je, useSnackbar as Pe, useDialog as Xe, useBreakpoints as Qe } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Ye } from "./feature-
|
|
6
|
-
import { a as ce, s as Ze, _ as et } from "./app-
|
|
7
|
-
import "./dayjs.min-
|
|
5
|
+
import { u as Ye } from "./feature-CvQ6eKvB.js";
|
|
6
|
+
import { a as ce, s as Ze, _ as et } from "./app-B2FciWDu.js";
|
|
7
|
+
import "./dayjs.min-CFhuhXoi.js";
|
|
8
8
|
import "./app-C39bYJmq.js";
|
|
9
9
|
import "./FmAdminBadge-DlplQOHb.js";
|
|
10
|
-
import { s as We, a as tt, d as nt, t as Ue, r as rt } from "./xlsx.util-
|
|
11
|
-
import { s as ot, c as st, g as it, b as at, d as Fe } from "./import-export.helper-
|
|
12
|
-
import { s as lt, a as fe } from "./rules-
|
|
13
|
-
import { n as ke } from "./bulk-edit-simulation.helper-
|
|
10
|
+
import { s as We, a as tt, d as nt, t as Ue, r as rt } from "./xlsx.util-DOCqFSat.js";
|
|
11
|
+
import { s as ot, c as st, g as it, b as at, d as Fe } from "./import-export.helper-qShUWqck.js";
|
|
12
|
+
import { s as lt, a as fe } from "./rules-CFEKk1zY.js";
|
|
13
|
+
import { n as ke } from "./bulk-edit-simulation.helper-gZPNWgS7.js";
|
|
14
14
|
import { F as ut } from "./FmDroppableField-J0tG_U3w.js";
|
|
15
15
|
function* mt(u) {
|
|
16
16
|
for (; ; )
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { ref as P, defineComponent as xe, computed as g, resolveComponent as C, createElementBlock as V, openBlock as p, Fragment as ee, createCommentVNode as L, createVNode as r, unref as o, withModifiers as Rt, withCtx as x, createElementVNode as n, renderList as de, createBlock as Y, toDisplayString as $, normalizeClass as ie, h as Z, mergeModels as st, onMounted as Dt, watch as _t, useModel as Ot, createTextVNode as xt, isRef as rt, createSlots as kt, normalizeStyle as Bt, Teleport as it, normalizeProps as Nt, guardReactiveProps as zt } from "vue";
|
|
2
|
-
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as ct, i as mt, j as pt, k as vt, u as
|
|
2
|
+
import { a as Fe, c as wt, S as Lt, g as dt, e as ut, f as jt, h as ct, i as mt, j as pt, k as vt, u as qt, l as Wt } from "./app-B2FciWDu.js";
|
|
3
3
|
import { p as Ht } from "./production-run-list-DR1WsaBR.js";
|
|
4
4
|
import { useDialog as Ke, useSnackbar as Ae, components as ze, useProxiedModel as ft, useDialogChild as Yt, useBreakpoints as Kt } from "@feedmepos/ui-library";
|
|
5
5
|
import { i as Gt, _ as Jt, m as Qt } from "./menu-usage-module-Bq_KLsO4.js";
|
|
6
6
|
import { F as j } from "./form-mode.enum-BKiNVH6A.js";
|
|
7
7
|
import { useI18n as pe, useCoreStore as Ge } from "@feedmepos/mf-common";
|
|
8
8
|
import { defineStore as Xt, storeToRefs as Zt } from "pinia";
|
|
9
|
-
import { D as yt, R as Pe } from "./row-action.enum-
|
|
9
|
+
import { D as yt, R as Pe } from "./row-action.enum-b--87Y19.js";
|
|
10
10
|
import { c as en } from "./component-BmLAdDiY.js";
|
|
11
|
-
import { u as Ee, _ as tn } from "./netsuite-
|
|
11
|
+
import { u as Ee, _ as tn } from "./netsuite-BDcapEOO.js";
|
|
12
12
|
import { F as Oe } from "./FmAdminBadge-DlplQOHb.js";
|
|
13
13
|
import { u as nn, _ as on } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
14
|
-
import { A as De, t as ln, a as an, R as Le, U as sn, M as rn, g as dn } from "./rules-
|
|
15
|
-
import { g as un, _ as je, S as
|
|
16
|
-
import { _ as mn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as
|
|
18
|
-
import { u as Tt } from "./feature-
|
|
19
|
-
import { _ as ke } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { d as Re, g as vn, e as fn, a as yn } from "./import-export.helper-
|
|
14
|
+
import { A as De, t as ln, a as an, R as Le, U as sn, M as rn, g as dn } from "./rules-CFEKk1zY.js";
|
|
15
|
+
import { g as un, _ as je, S as qe, a as cn } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Db4DrwQJ.js";
|
|
16
|
+
import { _ as mn } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CjVc2mCE.js";
|
|
17
|
+
import { _ as We, u as pn } from "./FmMultiselectDialog-B4Diosc4.js";
|
|
18
|
+
import { u as Tt } from "./feature-CvQ6eKvB.js";
|
|
19
|
+
import { _ as ke } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CGkF-JhJ.js";
|
|
20
|
+
import { d as Re, g as vn, e as fn, a as yn } from "./import-export.helper-qShUWqck.js";
|
|
21
21
|
import { _ as gn } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
22
22
|
import { _ as Ce } from "./FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js";
|
|
23
|
-
import { F as bn, a as He } from "./FmMultiselectDialog-
|
|
24
|
-
import { u as Vt } from "./purchase-order-template-
|
|
25
|
-
import { u as It, a as St } from "./closing-template-
|
|
23
|
+
import { F as bn, a as He } from "./FmMultiselectDialog-CJLfLql2.js";
|
|
24
|
+
import { u as Vt } from "./purchase-order-template-CrRp6r28.js";
|
|
25
|
+
import { u as It, a as St } from "./closing-template-L7d2nmhr.js";
|
|
26
26
|
import { _ as hn } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js";
|
|
27
27
|
import { F as gt } from "./index-eGvSlWMU.js";
|
|
28
|
-
import { r as _n } from "./xlsx.util-
|
|
28
|
+
import { r as _n } from "./xlsx.util-DOCqFSat.js";
|
|
29
29
|
import { F as xn } from "./FmDroppableField-J0tG_U3w.js";
|
|
30
|
-
import { _ as kn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
30
|
+
import { _ as kn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js";
|
|
31
31
|
import { P as wn, J as Tn } from "./app-C39bYJmq.js";
|
|
32
32
|
const Ye = Xt("ingredientForm", function() {
|
|
33
33
|
const h = Ke(), k = Ae(), d = Fe(), _ = P(!1), { t: S } = pe(), A = P();
|
|
@@ -136,8 +136,8 @@ const Ye = Xt("ingredientForm", function() {
|
|
|
136
136
|
itemName: {},
|
|
137
137
|
itemCode: {}
|
|
138
138
|
},
|
|
139
|
-
setup(
|
|
140
|
-
const h =
|
|
139
|
+
setup(q) {
|
|
140
|
+
const h = q, { t: k } = pe(), d = Ge(), _ = Ee(), S = P(!1), A = g(() => {
|
|
141
141
|
var s;
|
|
142
142
|
return ((s = d.sessionUser.value) == null ? void 0 : s.role.isAdmin) ?? !1;
|
|
143
143
|
}), U = g(() => _.getSkuSubsidiaries(h.skuId)), l = g(() => {
|
|
@@ -291,11 +291,11 @@ const Ye = Xt("ingredientForm", function() {
|
|
|
291
291
|
});
|
|
292
292
|
function zn() {
|
|
293
293
|
var l;
|
|
294
|
-
const { updateIngredient:
|
|
294
|
+
const { updateIngredient: q, deleteIngredient: h } = Ye(), k = Fe(), d = Ee(), { t: _ } = pe(), S = Ge();
|
|
295
295
|
async function A(i, u) {
|
|
296
296
|
const a = wt(u);
|
|
297
297
|
if (i === Pe.Edit) {
|
|
298
|
-
await
|
|
298
|
+
await q(a);
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
if (i === Pe.Delete) {
|
|
@@ -426,14 +426,14 @@ function zn() {
|
|
|
426
426
|
}
|
|
427
427
|
] };
|
|
428
428
|
}
|
|
429
|
-
function bt(
|
|
429
|
+
function bt(q) {
|
|
430
430
|
var h;
|
|
431
|
-
if (
|
|
432
|
-
const k = (h =
|
|
431
|
+
if (q.trackingMeasurement) {
|
|
432
|
+
const k = (h = q.unit.measurements) == null ? void 0 : h.find((d) => d.id === q.trackingMeasurement);
|
|
433
433
|
if (k)
|
|
434
434
|
return `${k.name} (${k.abbrev})`;
|
|
435
435
|
}
|
|
436
|
-
return `${
|
|
436
|
+
return `${q.unit.name} (${q.unit.abbrev})`;
|
|
437
437
|
}
|
|
438
438
|
const Ln = /* @__PURE__ */ xe({
|
|
439
439
|
__name: "ConvertForm",
|
|
@@ -444,8 +444,8 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
444
444
|
readonly: { type: Boolean }
|
|
445
445
|
},
|
|
446
446
|
emits: ["update:modelValue"],
|
|
447
|
-
setup(
|
|
448
|
-
const k =
|
|
447
|
+
setup(q, { emit: h }) {
|
|
448
|
+
const k = q, d = g(() => {
|
|
449
449
|
var c;
|
|
450
450
|
return (c = k.rootValue) == null ? void 0 : c.unit;
|
|
451
451
|
}), _ = g(() => {
|
|
@@ -519,7 +519,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
519
519
|
});
|
|
520
520
|
};
|
|
521
521
|
}
|
|
522
|
-
}), jn = { class: "flex gap-8" },
|
|
522
|
+
}), jn = { class: "flex gap-8" }, qn = { class: "flex-1" }, Wn = { class: "flex-1" }, Hn = { class: "flex flex-col gap-5" }, Yn = { class: "flex flex-col gap-32" }, Kn = { class: "flex items-center gap-8" }, Gn = { class: "flex items-center gap-8" }, Jn = { class: "flex items-center gap-8" }, Qn = { class: "text-fm-color-typo-secondary" }, Xn = { class: "text-fm-color-typo-secondary whitespace-nowrap" }, Zn = {
|
|
523
523
|
key: 1,
|
|
524
524
|
class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
525
525
|
}, eo = { class: "flex flex-col" }, to = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, no = {
|
|
@@ -540,7 +540,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
540
540
|
}, Oo = { class: "flex flex-wrap gap-8" }, Bo = {
|
|
541
541
|
key: 5,
|
|
542
542
|
class: "flex flex-col gap-12"
|
|
543
|
-
}, No = { class: "flex flex-col" }, zo = { class: "flex items-center justify-between" }, Lo = { class: "flex items-center gap-8" }, jo = { class: "fm-typo-en-title-sm-600" },
|
|
543
|
+
}, No = { class: "flex flex-col" }, zo = { class: "flex items-center justify-between" }, Lo = { class: "flex items-center gap-8" }, jo = { class: "fm-typo-en-title-sm-600" }, qo = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Wo = {
|
|
544
544
|
key: 0,
|
|
545
545
|
class: "flex flex-col gap-8"
|
|
546
546
|
}, Ho = { class: "flex flex-wrap gap-8" }, Yo = /* @__PURE__ */ xe({
|
|
@@ -557,11 +557,11 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
557
557
|
searchModifiers: {}
|
|
558
558
|
}),
|
|
559
559
|
emits: /* @__PURE__ */ st(["update:modelValue", "click:submit", "update:purchaseOrderTemplateIds", "update:wastageTemplateIds", "update:closingTemplateIds"], ["update:search"]),
|
|
560
|
-
setup(
|
|
560
|
+
setup(q, { expose: h, emit: k }) {
|
|
561
561
|
var Xe;
|
|
562
562
|
const { t: d } = pe(), _ = Ke();
|
|
563
563
|
Ae();
|
|
564
|
-
const S = Vt(), A = It(), U = St(), l =
|
|
564
|
+
const S = Vt(), A = It(), U = St(), l = q, i = k, u = Fe(), a = Ge(), c = Tt(), s = Ee(), f = g(() => s.isEnabled);
|
|
565
565
|
P(void 0);
|
|
566
566
|
const w = P([]), F = P([]), m = P([]), O = P(!1);
|
|
567
567
|
function R(e) {
|
|
@@ -572,7 +572,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
572
572
|
b.unit || (b.unit = t, i("update:modelValue", b));
|
|
573
573
|
}
|
|
574
574
|
Dt(() => {
|
|
575
|
-
R(u.units), l.mode === j.CREATE && (c.
|
|
575
|
+
R(u.units), l.mode === j.CREATE && (c.warehouseRequestRequiresTemplate && ne(), c.enableWastageTemplate && ue(), c.enableClosingTemplate && oe());
|
|
576
576
|
}), _t([() => u.units], ([e]) => {
|
|
577
577
|
R(e);
|
|
578
578
|
});
|
|
@@ -706,7 +706,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
706
706
|
displayAsSection: !1
|
|
707
707
|
}))
|
|
708
708
|
])
|
|
709
|
-
), y = Ot(
|
|
709
|
+
), y = Ot(q, "search"), M = g(
|
|
710
710
|
() => new bn(we.value, ["label", "value"], {
|
|
711
711
|
caseSensitive: !1,
|
|
712
712
|
sort: !0
|
|
@@ -775,19 +775,19 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
775
775
|
} : {};
|
|
776
776
|
t.customAttributes = e, i("update:modelValue", t);
|
|
777
777
|
}
|
|
778
|
-
}),
|
|
778
|
+
}), W = P();
|
|
779
779
|
h({
|
|
780
780
|
validateInputs: () => {
|
|
781
781
|
var e, t;
|
|
782
|
-
(t = (e =
|
|
782
|
+
(t = (e = W.value) == null ? void 0 : e.validateInputs) == null || t.call(e);
|
|
783
783
|
},
|
|
784
784
|
resetInputsValidation: () => {
|
|
785
785
|
var e, t;
|
|
786
|
-
(t = (e =
|
|
786
|
+
(t = (e = W.value) == null ? void 0 : e.resetInputsValidation) == null || t.call(e);
|
|
787
787
|
},
|
|
788
788
|
resetInputs: () => {
|
|
789
789
|
var e, t;
|
|
790
|
-
(t = (e =
|
|
790
|
+
(t = (e = W.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
|
|
791
791
|
}
|
|
792
792
|
});
|
|
793
793
|
const D = P(!1), K = g(
|
|
@@ -855,7 +855,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
855
855
|
} : {};
|
|
856
856
|
b.thresholds = t, i("update:modelValue", b);
|
|
857
857
|
}
|
|
858
|
-
}), Te = g(() => c.
|
|
858
|
+
}), Te = g(() => c.warehouseRequestRequiresTemplate && l.mode === j.CREATE && w.value.length > 0 ? w.value.map((e) => ({
|
|
859
859
|
label: e.name || "Template",
|
|
860
860
|
value: e._id || "template_" + e.name
|
|
861
861
|
})) : []), Ve = g(() => Te.value.filter(
|
|
@@ -947,7 +947,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
947
947
|
return p(), Y(Ut, {
|
|
948
948
|
disabled: e.disabled,
|
|
949
949
|
ref_key: "formRef",
|
|
950
|
-
ref:
|
|
950
|
+
ref: W,
|
|
951
951
|
class: "flex flex-col gap-32",
|
|
952
952
|
onValidationSuccess: ve
|
|
953
953
|
}, {
|
|
@@ -955,7 +955,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
955
955
|
var nt, ot, lt, at;
|
|
956
956
|
return [
|
|
957
957
|
n("div", jn, [
|
|
958
|
-
n("div",
|
|
958
|
+
n("div", qn, [
|
|
959
959
|
r(Ce, {
|
|
960
960
|
"tooltip-message": "This field is managed by NetSuite",
|
|
961
961
|
"tooltip-z-index": 50,
|
|
@@ -977,7 +977,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
977
977
|
_: 1
|
|
978
978
|
}, 8, ["label", "model-value", "locked", "disabled"])
|
|
979
979
|
]),
|
|
980
|
-
n("div",
|
|
980
|
+
n("div", Wn, [
|
|
981
981
|
r(Ce, {
|
|
982
982
|
"tooltip-message": "This field is managed by NetSuite",
|
|
983
983
|
"tooltip-z-index": 50,
|
|
@@ -1192,17 +1192,17 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1192
1192
|
"label-placement": "right"
|
|
1193
1193
|
}, null, 8, ["label", "modelValue"])
|
|
1194
1194
|
]),
|
|
1195
|
-
D.value && K.value.length ? (p(), Y(
|
|
1195
|
+
D.value && K.value.length ? (p(), Y(We, {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
name: o(d)("inventory.ingredient.bindedItems.ingredient"),
|
|
1198
1198
|
bindings: K.value
|
|
1199
1199
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1200
|
-
D.value && z.value.length ? (p(), Y(
|
|
1200
|
+
D.value && z.value.length ? (p(), Y(We, {
|
|
1201
1201
|
key: 1,
|
|
1202
1202
|
name: o(d)("inventory.ingredient.bindedItems.recipe"),
|
|
1203
1203
|
bindings: z.value
|
|
1204
1204
|
}, null, 8, ["name", "bindings"])) : L("", !0),
|
|
1205
|
-
D.value && ge.value.length ? (p(), Y(
|
|
1205
|
+
D.value && ge.value.length ? (p(), Y(We, {
|
|
1206
1206
|
key: 2,
|
|
1207
1207
|
name: o(d)("inventory.ingredient.bindedItems.menu"),
|
|
1208
1208
|
bindings: ge.value
|
|
@@ -1229,7 +1229,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1229
1229
|
n("div", mo, [
|
|
1230
1230
|
r(je, {
|
|
1231
1231
|
days: he.value,
|
|
1232
|
-
level: o(
|
|
1232
|
+
level: o(qe).low
|
|
1233
1233
|
}, null, 8, ["days", "level"])
|
|
1234
1234
|
]),
|
|
1235
1235
|
n("div", po, [
|
|
@@ -1262,7 +1262,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1262
1262
|
n("div", yo, [
|
|
1263
1263
|
r(je, {
|
|
1264
1264
|
days: me.value,
|
|
1265
|
-
level: o(
|
|
1265
|
+
level: o(qe).mid
|
|
1266
1266
|
}, null, 8, ["days", "level"])
|
|
1267
1267
|
]),
|
|
1268
1268
|
n("div", go, [
|
|
@@ -1295,7 +1295,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1295
1295
|
n("div", _o, [
|
|
1296
1296
|
r(je, {
|
|
1297
1297
|
days: me.value + 1,
|
|
1298
|
-
level: o(
|
|
1298
|
+
level: o(qe).high
|
|
1299
1299
|
}, null, 8, ["days", "level"])
|
|
1300
1300
|
]),
|
|
1301
1301
|
n("div", xo, [
|
|
@@ -1305,7 +1305,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1305
1305
|
])
|
|
1306
1306
|
])
|
|
1307
1307
|
]),
|
|
1308
|
-
o(c).
|
|
1308
|
+
o(c).warehouseRequestRequiresTemplate && e.mode === o(j).CREATE ? (p(), V("div", wo, [
|
|
1309
1309
|
n("div", To, [
|
|
1310
1310
|
n("div", Vo, [
|
|
1311
1311
|
n("div", Io, [
|
|
@@ -1388,9 +1388,9 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1388
1388
|
onClick: At
|
|
1389
1389
|
})
|
|
1390
1390
|
]),
|
|
1391
|
-
n("div",
|
|
1391
|
+
n("div", qo, $(o(d)("inventory.ingredient.closingTemplates.description")), 1)
|
|
1392
1392
|
]),
|
|
1393
|
-
Qe.value.length > 0 ? (p(), V("div",
|
|
1393
|
+
Qe.value.length > 0 ? (p(), V("div", Wo, [
|
|
1394
1394
|
n("div", Ho, [
|
|
1395
1395
|
(p(!0), V(ee, null, de(Qe.value, (T) => (p(), Y(Ne, {
|
|
1396
1396
|
key: T.value,
|
|
@@ -1425,8 +1425,8 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1425
1425
|
mode: { default: j.READ }
|
|
1426
1426
|
},
|
|
1427
1427
|
emits: ["update:show"],
|
|
1428
|
-
setup(
|
|
1429
|
-
const h =
|
|
1428
|
+
setup(q) {
|
|
1429
|
+
const h = q, k = Fe(), d = Tt(), _ = Ee(), S = Vt(), A = It(), U = St(), l = Ae(), { t: i } = pe(), u = ft(h, "show"), a = ft(h, "sku"), c = P([]), s = P([]), f = P([]), w = g(
|
|
1430
1430
|
() => {
|
|
1431
1431
|
var y;
|
|
1432
1432
|
return _.isEnabled && _.netSuiteItemBySkuId.has((y = h.sku) == null ? void 0 : y._id);
|
|
@@ -1502,7 +1502,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1502
1502
|
if (!J.purchaseOrder.items.find(
|
|
1503
1503
|
(Q) => Q.sku._id === y._id
|
|
1504
1504
|
)) {
|
|
1505
|
-
const Q = { amount: 1, precision: dn(y.unit) },
|
|
1505
|
+
const Q = { amount: 1, precision: dn(y.unit) }, W = {
|
|
1506
1506
|
sku: y,
|
|
1507
1507
|
name: y.name,
|
|
1508
1508
|
code: y.code,
|
|
@@ -1514,7 +1514,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1514
1514
|
...J,
|
|
1515
1515
|
purchaseOrder: {
|
|
1516
1516
|
...J.purchaseOrder,
|
|
1517
|
-
items: [...J.purchaseOrder.items,
|
|
1517
|
+
items: [...J.purchaseOrder.items, W]
|
|
1518
1518
|
}
|
|
1519
1519
|
};
|
|
1520
1520
|
(((E = D.purchaseOrder.supplier) == null ? void 0 : E.internal) === vt.enum.warehouse || ((v = D.purchaseOrder.supplier) == null ? void 0 : v.internal) === vt.enum.restaurant) && (D.purchaseOrder.items = D.purchaseOrder.items.map(
|
|
@@ -1680,7 +1680,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1680
1680
|
name: {},
|
|
1681
1681
|
errors: {}
|
|
1682
1682
|
},
|
|
1683
|
-
setup(
|
|
1683
|
+
setup(q) {
|
|
1684
1684
|
return (h, k) => {
|
|
1685
1685
|
const d = C("FmIcon"), _ = C("FmTooltip");
|
|
1686
1686
|
return p(), V("div", Xo, [
|
|
@@ -1737,7 +1737,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1737
1737
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
1738
1738
|
}, cl = { class: "fm-typo-en-body-lg-600" }, ml = /* @__PURE__ */ xe({
|
|
1739
1739
|
__name: "ImportIngredients",
|
|
1740
|
-
setup(
|
|
1740
|
+
setup(q) {
|
|
1741
1741
|
const h = P(null), k = Yt(), d = Ae(), _ = P(!1), S = P(new Array()), A = P([]), U = P([]), l = g(
|
|
1742
1742
|
() => !!S.value.length || A.value.some((c) => c.errors.length) || U.value.some((c) => c.errors.length)
|
|
1743
1743
|
), i = g(
|
|
@@ -1882,7 +1882,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1882
1882
|
class: "flex items-center gap-1"
|
|
1883
1883
|
}, vl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fl = { class: "flex flex-col py-8" }, yl = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, gl = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Jl = /* @__PURE__ */ xe({
|
|
1884
1884
|
__name: "IngredientsView",
|
|
1885
|
-
setup(
|
|
1885
|
+
setup(q) {
|
|
1886
1886
|
const h = Fe(), k = Ee(), d = g(() => [
|
|
1887
1887
|
{
|
|
1888
1888
|
type: "string",
|
|
@@ -1926,7 +1926,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
1926
1926
|
},
|
|
1927
1927
|
E
|
|
1928
1928
|
));
|
|
1929
|
-
}), U =
|
|
1929
|
+
}), U = qt(), l = Ke(), i = pn(), u = Ae(), { t: a } = pe(), { createIngredient: c, updateIngredient: s } = Ye(), { ingredientDialogProps: f, ingredientViewLoading: w } = Zt(Ye()), { columnDefs: F } = zn();
|
|
1930
1930
|
function m(E) {
|
|
1931
1931
|
switch (E) {
|
|
1932
1932
|
case "add":
|
|
@@ -2034,8 +2034,8 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
2034
2034
|
R.value = !0;
|
|
2035
2035
|
try {
|
|
2036
2036
|
const v = [
|
|
2037
|
-
...E.importCreateResult.map(({ sku:
|
|
2038
|
-
...E.importUpdateResult.map(({ sku:
|
|
2037
|
+
...E.importCreateResult.map(({ sku: W }) => ({ type: "create", sku: W })),
|
|
2038
|
+
...E.importUpdateResult.map(({ sku: W }) => ({ type: "update", sku: W }))
|
|
2039
2039
|
], N = 100;
|
|
2040
2040
|
let J = 0;
|
|
2041
2041
|
const ce = () => {
|
|
@@ -2046,19 +2046,19 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
2046
2046
|
])
|
|
2047
2047
|
});
|
|
2048
2048
|
}, Q = new Array();
|
|
2049
|
-
for (const
|
|
2049
|
+
for (const W of v.chunk(100)) {
|
|
2050
2050
|
ce();
|
|
2051
2051
|
try {
|
|
2052
2052
|
const D = await h.importSkus({
|
|
2053
|
-
create:
|
|
2054
|
-
update:
|
|
2053
|
+
create: W.filter((K) => K.type === "create").map((K) => K.sku),
|
|
2054
|
+
update: W.filter((K) => K.type === "update").map((K) => K.sku)
|
|
2055
2055
|
});
|
|
2056
2056
|
Q.push(...D.errors);
|
|
2057
2057
|
} catch (D) {
|
|
2058
2058
|
Q.push(
|
|
2059
|
-
...
|
|
2059
|
+
...W.map((K) => {
|
|
2060
2060
|
const z = {
|
|
2061
|
-
module:
|
|
2061
|
+
module: Wt.enum.sku,
|
|
2062
2062
|
_id: K.sku._id,
|
|
2063
2063
|
name: K.sku.name,
|
|
2064
2064
|
message: (D == null ? void 0 : D.stack) ?? D
|
|
@@ -2080,12 +2080,12 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
2080
2080
|
"div",
|
|
2081
2081
|
{ class: "flex flex-col gap-8" },
|
|
2082
2082
|
Q.map(
|
|
2083
|
-
(
|
|
2084
|
-
Z("div", { class: "fm-typo-en-body-lg-600" }, `(${
|
|
2083
|
+
(W) => Z("div", { class: "flex flex-col" }, [
|
|
2084
|
+
Z("div", { class: "fm-typo-en-body-lg-600" }, `(${W.data.code}) ${W.data.name}`),
|
|
2085
2085
|
Z(
|
|
2086
2086
|
"div",
|
|
2087
2087
|
{ class: "fm-typo-en-body-lg-400" },
|
|
2088
|
-
`${
|
|
2088
|
+
`${W.error.map((D) => (D == null ? void 0 : D.message) ?? "Unknown error").join(", ")}`
|
|
2089
2089
|
)
|
|
2090
2090
|
])
|
|
2091
2091
|
)
|
|
@@ -2102,7 +2102,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
2104
|
return (E, v) => {
|
|
2105
|
-
const N = C("FmButton"), J = C("FmMenuItem"), ce = C("FmMenu"), Q = C("FmSwitch"),
|
|
2105
|
+
const N = C("FmButton"), J = C("FmMenuItem"), ce = C("FmMenu"), Q = C("FmSwitch"), W = C("FmTable"), D = C("FmCollapsibleTabs"), K = C("FmBottomSheet");
|
|
2106
2106
|
return p(), Y(on, {
|
|
2107
2107
|
title: o(a)("inventory.ingredient.title"),
|
|
2108
2108
|
actions: we.value,
|
|
@@ -2166,7 +2166,7 @@ const Ln = /* @__PURE__ */ xe({
|
|
|
2166
2166
|
]),
|
|
2167
2167
|
_: 1
|
|
2168
2168
|
}, 8, ["search", "filter-attributes", "filter"]),
|
|
2169
|
-
(p(), Y(
|
|
2169
|
+
(p(), Y(W, {
|
|
2170
2170
|
key: JSON.stringify(_.value),
|
|
2171
2171
|
style: Bt(o(te).tableHeight),
|
|
2172
2172
|
"column-defs": o(F),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as ne, ref as g, computed as V, watch as Fe, onMounted as _e, resolveComponent as se, createElementBlock as a, openBlock as t, createElementVNode as e, createBlock as Q, createCommentVNode as r, normalizeClass as M, createTextVNode as re, toDisplayString as o, createVNode as S, Fragment as P, renderList as X, unref as m, withCtx as te, withModifiers as de, withDirectives as Re, withKeys as $e, vModelText as Oe, h as q, watchEffect as Ve } from "vue";
|
|
2
|
-
import { d as Ue, N as be, C as xe, u as Ce } from "./app-
|
|
2
|
+
import { d as Ue, N as be, C as xe, u as Ce } from "./app-B2FciWDu.js";
|
|
3
3
|
import { components as oe, useBreakpoints as Ae } from "@feedmepos/ui-library";
|
|
4
4
|
import { _ as Be } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DpwneGOV.js";
|
|
5
|
-
import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { u as Se, a as Ie, S as ge } from "./netsuite-
|
|
5
|
+
import { _ as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BALpSufj.js";
|
|
6
|
+
import { u as Se, a as Ie, S as ge } from "./netsuite-BDcapEOO.js";
|
|
7
7
|
import { P as he, J as ke, D as Te } from "./app-C39bYJmq.js";
|
|
8
|
-
import { useNetSuiteExplorerApi as pe } from "./netsuite-explorer-
|
|
8
|
+
import { useNetSuiteExplorerApi as pe } from "./netsuite-explorer-FeiogpVF.js";
|
|
9
9
|
import { _ as ye } from "./JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js";
|
|
10
10
|
import { useCoreStore as Pe } from "@feedmepos/mf-common";
|
|
11
|
-
import { c as ue } from "./date2
|
|
11
|
+
import { c as ue } from "./date2--N7dpGRR.js";
|
|
12
12
|
const Me = Ue((K, j) => {
|
|
13
13
|
const n = Pe();
|
|
14
14
|
function B() {
|
|
@@ -2946,7 +2946,7 @@ const li = { class: "flex flex-col gap-4" }, ri = {
|
|
|
2946
2946
|
else if (L.value === "transferOrder")
|
|
2947
2947
|
await n.executeListByDateRange("transferOrder", d), l.value = n.records.value;
|
|
2948
2948
|
else {
|
|
2949
|
-
const { useNetSuiteExplorerApi: T } = await import("./netsuite-explorer-
|
|
2949
|
+
const { useNetSuiteExplorerApi: T } = await import("./netsuite-explorer-FeiogpVF.js"), A = T(), [C, $] = await Promise.all([
|
|
2950
2950
|
A.browseOrdersByDateRange(
|
|
2951
2951
|
"purchaseOrder",
|
|
2952
2952
|
d,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as Ce, useSlots as wo, ref as se, computed as T, createElementBlock as _, openBlock as h, normalizeStyle as Te, normalizeClass as ee, Fragment as ue, createCommentVNode as te, createElementVNode as m, unref as D, renderSlot as Ge, toDisplayString as I, createTextVNode as Ee, mergeProps as $n, createVNode as we, renderList as De, createBlock as Re, withCtx as tt, watch as Ie, onBeforeUnmount as Vt, withDirectives as mn, vModelText as Ja, withModifiers as ao, withKeys as Jo, vModelCheckbox as Xs, vModelSelect as zr, onMounted as rt, getCurrentScope as Qa, inject as un, effectScope as ei, provide as en, onUnmounted as js, createPropsRestProxy as Zs, toRef as ze, useAttrs as Ks, getCurrentInstance as cn, reactive as Js, onScopeDispose as Kn, nextTick as ct, onBeforeMount as Qs, shallowRef as Et, isMemoSame as el, resolveDynamicComponent as tl, isRef as vr, toRefs as nl, customRef as ol, toValue as Pe, resolveComponent as ti, h as Le, markRaw as Jn, readonly as rl } from "vue";
|
|
2
|
-
import { I as Dt, d as al, u as il } from "./app-
|
|
2
|
+
import { I as Dt, d as al, u as il } from "./app-B2FciWDu.js";
|
|
3
3
|
import { useRouter as ni, useRoute as sl } from "vue-router";
|
|
4
4
|
import { useSnackbar as ll } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as oi, g as ri, a as ai, b as ii } from "./index-eGvSlWMU.js";
|
|
6
6
|
import { E as dt, b as si, j as li, T as ui, P as ci, S as ko, F as di, V as ul, a as gr, g as cl, R as dl, D as bt, c as io, G as hr, W as yr, l as fl, h as pl, d as ml, C as vl } from "./index-C25C1Dg7.js";
|
|
7
7
|
import { useCoreStore as gl } from "@feedmepos/mf-common";
|
|
8
|
-
import { useNetSuiteExplorerApi as hl } from "./netsuite-explorer-
|
|
8
|
+
import { useNetSuiteExplorerApi as hl } from "./netsuite-explorer-FeiogpVF.js";
|
|
9
9
|
var yl = {
|
|
10
10
|
name: "warning",
|
|
11
11
|
category: "information",
|