@feedmepos/mf-inventory-portal 1.8.0-dev.15 → 1.8.0-dev.17
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-BYwjYoox.js → App-CRmKXhRV.js} +515 -536
- package/dist/{ApprovalView-CvfLuQiG.js → ApprovalView-tDkNN-Cd.js} +9 -9
- package/dist/{BindingsDialog-CS0IlwGC.js → BindingsDialog-DrB0U9F6.js} +2 -2
- package/dist/{BindingsPicker-CqY5tyvT.js → BindingsPicker-tjjgijNe.js} +8 -8
- package/dist/{BindingsTable-BA1CMNtR.js → BindingsTable-D7EGgWxE.js} +4 -4
- package/dist/BulkReceiveRequestPage-B7GEE9qI.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B6s_QcuY.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B4j6Acmo.js} +1 -1
- package/dist/{ClosingDraftView-Bk8TmRfV.js → ClosingDraftView-DH0eBMZ8.js} +19 -19
- package/dist/{ClosingHistoryView-XMROUlaz.js → ClosingHistoryView-FmdYCiLI.js} +7 -7
- package/dist/{ClosingTemplateView-CxQp2kaI.js → ClosingTemplateView-BGmFG2-y.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-KgvAbmkj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DHboInU_.js} +1 -1
- package/dist/{DefaultView-DNKPKrrr.js → DefaultView-CsNlHUlf.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CfCMlcEC.js → DeliveryOrderPrintPreview-CMe2DpP1.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BLfRq8o3.js → EmailDialog.vue_vue_type_script_setup_true_lang-Yen9u78U.js} +7770 -7660
- package/dist/{FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Bmei7M_d.js → FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BJy8_H2s.js} +11 -10
- package/dist/FeatureCapabilityGate-DN8b1697.js +77 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DmNFZYam.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-AKDqv1C8.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-2zOATqzb.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DQIfW9h3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CVBUkN02.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DrTNzJSz.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BuE-1qd6.js} +2 -2
- package/dist/{FmMultiselectDialog-DD6AbolT.js → FmMultiselectDialog-C3B8pd2Z.js} +2 -2
- package/dist/{FmMultiselectDialog-CchCZDYp.js → FmMultiselectDialog-LI5ekHzQ.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-MqvhtQcN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DQZ7aJGJ.js} +113 -106
- package/dist/{ImportView-f35OUKFU.js → ImportView-DYoeJLdr.js} +6 -6
- package/dist/{IngredientsView-CLC1di0L.js → IngredientsView-u3KHfALO.js} +15 -15
- package/dist/{IntegrationExplorerView-BWzUCAD0.js → IntegrationExplorerView-Bl0Z8sxM.js} +1414 -1485
- package/dist/{IntegrationPlatformView-C78gW5nI.js → IntegrationPlatformView-CybBB3RA.js} +4899 -4794
- package/dist/{IntegrationView-CnUWuRtH.js → IntegrationView-Dxy7QhCp.js} +14 -14
- package/dist/{InventoryBindingForm-ZGjVpCAI.js → InventoryBindingForm-DyUvyOsa.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQDso4fW.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dmch1sfA.js} +4 -4
- package/dist/{InventoryBindingSummary-B68FLrzC.js → InventoryBindingSummary-DwY3vUf_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DlCmFAUg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B2UtnJtf.js} +2 -2
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
- package/dist/{PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-E6WVZA-D.js → PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js} +1 -1
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-Cdi4hv3E.js +2316 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang--NWDSxIT.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-D5jlF5x4.js} +2390 -2442
- package/dist/ProductionRunPage-RcbHy0Mj.js +953 -0
- package/dist/{PublishView-BvuP_W4l.js → PublishView-CyJ_rE-5.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CTFNQWED.js → PurchaseOrderPrintPreview-ZlbV3YfE.js} +2 -2
- package/dist/{ReceiveRequestView-Ca9jGuKW.js → ReceiveRequestView-BKz8N6yK.js} +13 -13
- package/dist/{RecipeView-Vm2c1vGo.js → RecipeView-D3IEyQoK.js} +15 -15
- package/dist/{SettingsView-49IPE742.js → SettingsView-A0eozTq3.js} +10 -9
- package/dist/{StockView-CylYMrFJ.js → StockView-DrxkHTH4.js} +25 -25
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DYoom8UC.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CD11VzXa.js} +1 -1
- package/dist/{SupplierView-CCB8gkT1.js → SupplierView-Cg60vwsj.js} +15 -14
- package/dist/{SurchargeView-MXCxLWTu.js → SurchargeView-Dxvg-RnC.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-D9LGk7R7.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DDLGEaa2.js} +2 -2
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DfYoaT5a.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D3wClK8t.js +4932 -0
- package/dist/{TransferTemplateView-DZEYUHOu.js → TransferTemplateView-DfCJzLHt.js} +945 -941
- package/dist/{UnitCostHistoryView-TnQwZk3R.js → UnitCostHistoryView-BkNnwNUc.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-C6o4xrjZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-Clufqvr_.js} +4 -4
- package/dist/{UnitView-CFqdNGjT.js → UnitView-D_agG3Kd.js} +7 -7
- package/dist/{WarehouseView-rH3loGl_.js → WarehouseView-DE_CaJCb.js} +8 -8
- package/dist/{WastageTemplateView-Cnsi_EJ1.js → WastageTemplateView-r3b6angy.js} +15 -15
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/{app-O0ln50NT.js → app-CLTXsVH_.js} +27110 -25845
- package/dist/app.d.ts +54 -6
- package/dist/app.js +1 -1
- package/dist/{closing-template-BcXKc7kW.js → closing-template-yP6QT_6M.js} +4 -4
- package/dist/components/FeatureCapabilityGate.vue.d.ts +2 -0
- package/dist/components/FeatureGateLayout.vue.d.ts +11 -0
- package/dist/components/FeaturePageGate.spec.d.ts +1 -0
- package/dist/components/FeaturePageGate.vue.d.ts +34 -0
- package/dist/components/FmAdminCollapsiblePanel.vue.d.ts +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +1 -1
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +2 -2
- package/dist/components/FmUnitInputProps.d.ts +1 -0
- package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/PremiumUpgradePage.vue.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.d.ts +2 -0
- package/dist/components/TemplatePublishDialog.spec.d.ts +1 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/{date2-BVVlNlAO.js → date2-9jq_OKuv.js} +1 -1
- package/dist/{dayjs.min-86T3g7jl.js → dayjs.min-CAxu5-hQ.js} +1 -1
- package/dist/{decimal-BceSQ9qu.js → decimal-BhGvDuWQ.js} +2 -2
- package/dist/{defineDeepModel-CYCLZ-jP.js → defineDeepModel-Czbczabc.js} +1 -1
- package/dist/{duplicate-template-BOQW9uDO.js → duplicate-template-X72Zob-u.js} +1 -1
- package/dist/{feature-SfaxOOo8.js → feature-CC2pF6VK.js} +412 -346
- package/dist/feature-flags/vue.d.ts +22 -1
- package/dist/{format-time-from-id-DcZjh4zF.js → format-time-from-id-DhZOfLN4.js} +1 -1
- package/dist/{format-unit-display-B_Leyj1M.js → format-unit-display-BalKqHYj.js} +115 -113
- package/dist/{id-to-date-CxJMEppi.js → id-to-date-Cb9v4BtX.js} +1 -1
- package/dist/{import-export.helper-CTzQihBw.js → import-export.helper-9D5DLoaq.js} +5 -5
- package/dist/{index-D5JOuvFG.js → index-B0T8iGU6.js} +1 -1
- package/dist/{index-DiN65wc9.js → index-CnjRz458.js} +3 -3
- package/dist/{index-WnJgGINW.js → index-DqV626Os.js} +1768 -1741
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-COM8L2Yg.js → lz-string-CK_kK0b8.js} +1 -1
- package/dist/{netsuite-B4PKJ2O4.js → netsuite-Czq6x14E.js} +2 -2
- package/dist/netsuite-explorer-BugWV6N7.js +79 -0
- package/dist/{predefined-templates-jno0IPO6.js → predefined-templates-D5qjNE4o.js} +1 -1
- package/dist/{purchase-order-template-CBgiJ239.js → purchase-order-template-Bc0QP-bq.js} +1 -1
- package/dist/{recalculationUtils-C-dyQAGg.js → recalculationUtils-CJknKvb-.js} +1 -1
- package/dist/{row-action.enum-D2CmAs2h.js → row-action.enum-Cz1k6Kht.js} +1 -1
- package/dist/{rules-CByHkO8L.js → rules-BQscySfb.js} +45 -40
- package/dist/{stock-DbyYZzKm.js → stock--68mu-M1.js} +1 -1
- package/dist/{stock-DrSVVTuZ.js → stock-DCz3ZTmd.js} +2 -2
- package/dist/stores/feature.d.ts +21 -1
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +48 -48
- package/dist/stores/warehouse.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/{supplier-DcqbvDxz.js → supplier-U06ZrnoC.js} +2 -2
- package/dist/{surcharge-BqcD_sf2.js → surcharge-B5DGPlf5.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-2cAqJPJa.js → uom-rules-DfBYytl6.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DwQn7p6y.js → use-ingredient-select-dialog-BRTxaEaQ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Id5sz9Xu.js → use-inventory-binding-dialog-DQDv8yOS.js} +2 -2
- package/dist/{use-template-enabled-locations-8RnaHV8u.js → use-template-enabled-locations-DzQVNhev.js} +2 -2
- package/dist/{use-transfer-locations-JvPP8F4f.js → use-transfer-locations-CGvKssyQ.js} +2 -2
- package/dist/{useHrmPermission-OGla5jyF.js → useHrmPermission-BkOtYcLu.js} +1 -1
- package/dist/{useNavigationMenu-BVJlsjVn.js → useNavigationMenu-korDNdFf.js} +39 -39
- package/dist/{useSseClient-BaM0oGDR.js → useSseClient-BjoRcYKu.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +36 -36
- package/dist/views/adjustment-template/wastage-template/table.d.ts +36 -36
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +6 -6
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +12 -12
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +6 -6
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +18 -18
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +45 -45
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -36
- package/dist/views/integration/IntegrationPlatformView.vue.d.ts +2 -0
- package/dist/views/integration/components/netsuite/business/AddLocationDialog.vue.d.ts +36 -36
- package/dist/views/integration/components/netsuite/business/AddVendorDialog.vue.d.ts +24 -24
- package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailPage.vue.d.ts +15 -0
- package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +11 -1
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +1 -1
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +2 -2
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +3 -3
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +5 -5
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +39 -39
- package/dist/views/receive-request/composables/use-receive-request-form.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +35 -35
- package/dist/views/receive-request-bulk/BulkReceiveRequestPage.vue.d.ts +2 -0
- package/dist/views/receive-request-bulk/components/CreateTransferWizard.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +40 -40
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.readiness.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +4 -4
- package/dist/views/supplier/composables/use-supplier-table.d.ts +2 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -8
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +4 -4
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +24 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -48
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -48
- package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +4 -4
- package/dist/{PlanTierBadge.vue_vue_type_script_setup_true_lang-DwUCuX11.js → vue-hPU91AHR.js} +84 -68
- package/dist/{vue-i18n-Cf9XKwOr.js → vue-i18n-VFYpKHHB.js} +127 -127
- package/dist/{xlsx.util-EZTW-mf4.js → xlsx.util-VlHt05TU.js} +2 -2
- package/package.json +6 -6
- package/dist/BulkReceiveRequestView-CFaMPFfO.js +0 -2657
- package/dist/FeatureCapabilityGate-CFUPteG8.js +0 -74
- package/dist/ProductionRunDetailView-DPcovCY1.js +0 -2312
- package/dist/ProductionRunView-DJXZ_hmi.js +0 -931
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Cp2CDerI.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BIc4mZJI.js +0 -4847
|
@@ -30,8 +30,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
|
|
|
30
30
|
}>>> & Readonly<{
|
|
31
31
|
"onClick:action"?: ((actionName: string) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
|
-
actions: InventoryPageHeadAction[];
|
|
34
33
|
title: string;
|
|
34
|
+
actions: InventoryPageHeadAction[];
|
|
35
35
|
breadcrumbs: Breadcrumbs[];
|
|
36
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
|
|
37
37
|
headerInfo?(_: {}): any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { y as s_, a2 as vi, D as i,
|
|
1
|
+
import { y as s_, a2 as vi, D as i, ag as u_, ah as o_, ai as a_, aj as c_, ak as Ti, al as d_, C as at, am as bi, a1 as Ys, an as ru, ao as nc, ap as Oe, aq as Le, N as De, s as oe, ar as Er, B as Bt, as as Js, _ as Ye, e as zn, at as ic, au as l_, av as f_, aw as m_, a4 as su, aa as p_, d as g_, j as h_, t as Wa, a as __, u as Ei } from "./app-CLTXsVH_.js";
|
|
2
2
|
import { useCoreStore as Cn } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as I_ } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineComponent as y_, ref as Zs, computed as An, resolveComponent as Kn, createBlock as zs, openBlock as _t, withCtx as ut, createElementVNode as ge, createElementBlock as Qt, createVNode as At, createTextVNode as ot, toDisplayString as Ue, Fragment as vr, createCommentVNode as Dn, renderList as v_, unref as qa, h as E_ } from "vue";
|
|
5
|
-
import { u as b_ } from "./feature-
|
|
5
|
+
import { u as b_ } from "./feature-CC2pF6VK.js";
|
|
6
6
|
var br = { exports: {} };
|
|
7
7
|
/**
|
|
8
8
|
* @license
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { d as i } from "./app-CLTXsVH_.js";
|
|
2
|
+
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
|
3
|
+
const B = i((n, s) => {
|
|
4
|
+
const u = $();
|
|
5
|
+
function o() {
|
|
6
|
+
var e;
|
|
7
|
+
return ((e = u.currentBusiness.value) == null ? void 0 : e._id) ?? "";
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
// ============================ Orders ============================
|
|
11
|
+
/**
|
|
12
|
+
* Look up a single NetSuite order by its internal ID.
|
|
13
|
+
*/
|
|
14
|
+
async readOrderById(e, r) {
|
|
15
|
+
const t = o(), a = `${n.netSuiteBackendUrl}/${t}/v2/explorer/order/${e}/${r}`;
|
|
16
|
+
return await s.get(a);
|
|
17
|
+
},
|
|
18
|
+
async readOrderTypeById(e) {
|
|
19
|
+
const r = o(), t = `${n.netSuiteBackendUrl}/${r}/v2/explorer/order/type/${encodeURIComponent(e)}`;
|
|
20
|
+
return (await s.get(t)).recordType;
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* List NetSuite records by date range, cross-referenced with FM POs.
|
|
24
|
+
* Returns records with purchaseOrderSeqNo (null = unsynced, number = synced).
|
|
25
|
+
*/
|
|
26
|
+
async browseOrdersByDateRange(e, r, t, a) {
|
|
27
|
+
const d = o(), c = `${n.netSuiteBackendUrl}/${d}/v2/explorer/order/${e}/${r}`;
|
|
28
|
+
return await s.post(c, {
|
|
29
|
+
startDate: t,
|
|
30
|
+
endDate: a
|
|
31
|
+
});
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* Query NetSuite records by IDs or date range using unified endpoint.
|
|
35
|
+
* Supports lookup by recordIds, transactionIds, or date range.
|
|
36
|
+
* Returns standardized NSOrderExplorerResultDto[] format with sync status.
|
|
37
|
+
*/
|
|
38
|
+
async browseOrdersByFilter(e, r, t) {
|
|
39
|
+
const a = o(), d = `${n.netSuiteBackendUrl}/${a}/v2/explorer/order/query/${e}/${r}`;
|
|
40
|
+
return await s.post(d, t);
|
|
41
|
+
},
|
|
42
|
+
// ============================ Items ============================
|
|
43
|
+
/**
|
|
44
|
+
* List NetSuite items from the `item` table.
|
|
45
|
+
* Pass an optional filter object to narrow results (e.g. { itemtype: 'InvtPart' }).
|
|
46
|
+
*/
|
|
47
|
+
async browseItemsByFilter(e) {
|
|
48
|
+
const r = o(), t = `${n.netSuiteBackendUrl}/${r}/v2/explorer/item/query`;
|
|
49
|
+
return await s.post(t, e ? { where: e } : {});
|
|
50
|
+
},
|
|
51
|
+
/**
|
|
52
|
+
* Look up a single NetSuite item by its internal ID.
|
|
53
|
+
*/
|
|
54
|
+
async readItemById(e, r) {
|
|
55
|
+
const t = o(), a = `${n.netSuiteBackendUrl}/${t}/v2/explorer/item/${e}/${r}`;
|
|
56
|
+
return await s.get(a);
|
|
57
|
+
},
|
|
58
|
+
// ============================ Vendors ============================
|
|
59
|
+
/**
|
|
60
|
+
* List NetSuite vendors from the `vendor` table.
|
|
61
|
+
* Pass an optional raw SuiteQL WHERE clause to narrow results.
|
|
62
|
+
*/
|
|
63
|
+
async browseVendorsByFilter(e) {
|
|
64
|
+
const r = o(), t = `${n.netSuiteBackendUrl}/${r}/v2/explorer/vendor/query`;
|
|
65
|
+
return await s.post(t, e ? { where: e } : {});
|
|
66
|
+
},
|
|
67
|
+
async readVendorById(e) {
|
|
68
|
+
const r = o(), t = `${n.netSuiteBackendUrl}/${r}/v2/explorer/vendor/${e}`;
|
|
69
|
+
return await s.get(t);
|
|
70
|
+
},
|
|
71
|
+
async triggerWebHook(e) {
|
|
72
|
+
const r = o(), t = `${n.netSuiteBackendUrl}/${r}/v2/explorer/trigger-webhook`;
|
|
73
|
+
await s.post(t, e);
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
export {
|
|
78
|
+
B as useNetSuiteExplorerApi
|
|
79
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as qn, j as Wn, y as zn } from "./app-
|
|
1
|
+
import { d as qn, j as Wn, y as zn } from "./app-CLTXsVH_.js";
|
|
2
2
|
import { defineStore as Vn } from "pinia";
|
|
3
3
|
import { ref as mt, computed as Kn } from "vue";
|
|
4
4
|
import { useCoreStore as Yn } from "@feedmepos/mf-common";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as r } from "vue";
|
|
2
|
-
import { _ as o } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as o } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BJy8_H2s.js";
|
|
3
3
|
var e = /* @__PURE__ */ ((t) => (t.Add = "Add", t.Create = "Create", t.Print = "Print", t.PrintCustom = "PrintCustom", t.PrintPdf = "PrintPdf", t.Export = "Export", t.Update = "Update", t.Details = "Details", t.Edit = "Edit", t.Delete = "Delete", t.Publish = "Publish", t.Duplicate = "Duplicate", t.Email = "Email", t))(e || {});
|
|
4
4
|
const i = {
|
|
5
5
|
Add: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as u } from "./app-
|
|
2
|
-
import { c as l, d as h } from "./date2-
|
|
3
|
-
import { F as $ } from "./decimal-
|
|
1
|
+
import { s as u } from "./app-CLTXsVH_.js";
|
|
2
|
+
import { c as l, d as h } from "./date2-9jq_OKuv.js";
|
|
3
|
+
import { F as $ } from "./decimal-BhGvDuWQ.js";
|
|
4
4
|
function F(t, n) {
|
|
5
5
|
return u.convertPrecision({
|
|
6
6
|
value: t,
|
|
@@ -20,9 +20,13 @@ function S(t, n) {
|
|
|
20
20
|
return u.multiply([t, n]);
|
|
21
21
|
}
|
|
22
22
|
function R(t, n) {
|
|
23
|
+
const r = +c(t), o = +c(n);
|
|
24
|
+
return r / o;
|
|
25
|
+
}
|
|
26
|
+
function q(t, n) {
|
|
23
27
|
return u.divideSignificant([t, n]);
|
|
24
28
|
}
|
|
25
|
-
function
|
|
29
|
+
function A(t) {
|
|
26
30
|
const n = t == null ? "" : String(t).trim();
|
|
27
31
|
if (n === "" || n === "undefined") return "is empty";
|
|
28
32
|
const r = Number(n);
|
|
@@ -40,7 +44,7 @@ function P(t) {
|
|
|
40
44
|
};
|
|
41
45
|
return o(n.replace(/\.(?=e|$)/i, ".0")) !== o(String(r)) ? "has too many digits" : null;
|
|
42
46
|
}
|
|
43
|
-
function
|
|
47
|
+
function B(t, n) {
|
|
44
48
|
return t.precision >= n ? t : u.convertPrecision({ value: t, precision: n });
|
|
45
49
|
}
|
|
46
50
|
function g(t) {
|
|
@@ -51,31 +55,31 @@ function g(t) {
|
|
|
51
55
|
function c(t, n = !0) {
|
|
52
56
|
return n ? Number(t.amount / Math.pow(10, t.precision)).toFixed(t.precision) : Number(t.amount / Math.pow(10, t.precision)).toString();
|
|
53
57
|
}
|
|
54
|
-
function
|
|
55
|
-
n = n ??
|
|
58
|
+
function V(t, n) {
|
|
59
|
+
n = n ?? P(t);
|
|
56
60
|
const r = n, o = t.toFixed(r), e = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
57
61
|
return e.endsWith(".") ? e.slice(0, e.length - 1) : e;
|
|
58
62
|
}
|
|
59
|
-
function
|
|
63
|
+
function C(t, n = !1, r = 2) {
|
|
60
64
|
const o = Number(t.amount / Math.pow(10, t.precision)), e = o.toFixed(
|
|
61
65
|
Number.isInteger(o) ? 2 : Math.min(4, Math.max(2, r))
|
|
62
66
|
);
|
|
63
67
|
return n ? `${e} ${t.currency}` : t.currency === "MYR" ? `RM ${e}` : `${t.currency} ${e}`;
|
|
64
68
|
}
|
|
65
|
-
function
|
|
69
|
+
function Y(t) {
|
|
66
70
|
return {
|
|
67
71
|
...t,
|
|
68
72
|
amount: Math.abs(t.amount)
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
|
-
function
|
|
75
|
+
function P(t) {
|
|
72
76
|
if (!isFinite(t)) return 0;
|
|
73
77
|
let n = 1, r = 0;
|
|
74
78
|
for (; Math.round(t * n) / n !== t; )
|
|
75
79
|
n *= 10, r++;
|
|
76
80
|
return r;
|
|
77
81
|
}
|
|
78
|
-
function
|
|
82
|
+
function k(t, n = 0, r = !1) {
|
|
79
83
|
let o = 0;
|
|
80
84
|
return Number.isNaN(Number(t)) || (r || Number(t) >= 0) && (o = Number(t)), {
|
|
81
85
|
amount: Number((o * 10 ** n).toFixed(0)),
|
|
@@ -92,8 +96,8 @@ function j(t, n) {
|
|
|
92
96
|
const r = y(n.conversion.amount);
|
|
93
97
|
return t.precision - n.conversion.precision + r;
|
|
94
98
|
}
|
|
95
|
-
const
|
|
96
|
-
function
|
|
99
|
+
const U = (t) => `${t}`.length && s()(t) === !0;
|
|
100
|
+
function Z(t, n = {}) {
|
|
97
101
|
if (t == null)
|
|
98
102
|
throw new Error("Value cannot be null or undefined");
|
|
99
103
|
const { minPrecision: r = 2, maxPrecision: o = 2, locale: e = "en-US" } = n;
|
|
@@ -123,7 +127,7 @@ function U(t, n = {}) {
|
|
|
123
127
|
maximumFractionDigits: o
|
|
124
128
|
});
|
|
125
129
|
}
|
|
126
|
-
function
|
|
130
|
+
function H() {
|
|
127
131
|
return function(n) {
|
|
128
132
|
return !!n || "Required";
|
|
129
133
|
};
|
|
@@ -131,7 +135,7 @@ function Z() {
|
|
|
131
135
|
function m(t) {
|
|
132
136
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "amount") && Object.prototype.hasOwnProperty.call(t, "precision");
|
|
133
137
|
}
|
|
134
|
-
function
|
|
138
|
+
function I(t, n) {
|
|
135
139
|
const r = typeof t == "object" ? +c(t) : t;
|
|
136
140
|
function o(e) {
|
|
137
141
|
return Object.prototype.hasOwnProperty.call(e, "length");
|
|
@@ -140,7 +144,7 @@ function H(t, n) {
|
|
|
140
144
|
return m(i) && (i = +c(i)), Number.isFinite(+i) && (i = +i), o(i) ? i.length >= r ? !0 : typeof n == "function" ? n(i.length) : n ?? `Must be at least ${r}` : typeof i == "number" ? i >= r ? !0 : typeof n == "function" ? n(i) : n ?? `Must be at least ${r}` : `Cannot validate at least ${r}`;
|
|
141
145
|
};
|
|
142
146
|
}
|
|
143
|
-
function
|
|
147
|
+
function W(t) {
|
|
144
148
|
const n = typeof t == "object" ? +c(t) : t;
|
|
145
149
|
function r(o) {
|
|
146
150
|
return Object.prototype.hasOwnProperty.call(o, "length");
|
|
@@ -149,7 +153,7 @@ function I(t) {
|
|
|
149
153
|
return m(e) && (e = +c(e)), r(e) ? e.length > n ? !0 : typeof i == "function" ? i(e.length) : i ?? `Must be more than ${n}` : typeof e == "number" ? e > n ? !0 : typeof i == "function" ? i(e) : i ?? `Must be more than ${n}` : `Cannot validate more than ${n}`;
|
|
150
154
|
};
|
|
151
155
|
}
|
|
152
|
-
function
|
|
156
|
+
function z(t, n) {
|
|
153
157
|
return t instanceof Date && n instanceof Date ? function(o) {
|
|
154
158
|
const e = new Date(o);
|
|
155
159
|
return isNaN(e.getTime()) ? "Invalid date" : e.getTime() < t.getTime() ? `Date must be at least ${l(t)} ${h(t)}` : e.getTime() >= n.getTime() ? `Date must be less than ${l(n)} ${h(n)}` : !0;
|
|
@@ -163,11 +167,11 @@ function W(t, n) {
|
|
|
163
167
|
function s() {
|
|
164
168
|
return function(t) {
|
|
165
169
|
if (t = String(t), t.trim().length === 0) return !0;
|
|
166
|
-
const n =
|
|
170
|
+
const n = A(t);
|
|
167
171
|
return n !== null ? n === "has too many digits" ? "Number has too many digits" : "Must be a number" : !0;
|
|
168
172
|
};
|
|
169
173
|
}
|
|
170
|
-
function
|
|
174
|
+
function G(t, n) {
|
|
171
175
|
return typeof t == "number" ? function(o) {
|
|
172
176
|
const e = s()(o);
|
|
173
177
|
return typeof e == "string" ? e : u.fromNumber(+o).precision > t ? `Precision cannot be more than ${t} decimal point.` : !0;
|
|
@@ -179,7 +183,7 @@ function z(t, n) {
|
|
|
179
183
|
return u.fromNumber(+o).precision > i ? `Precision cannot be more than ${i} decimal point.` : !0;
|
|
180
184
|
};
|
|
181
185
|
}
|
|
182
|
-
function
|
|
186
|
+
function J(t, n) {
|
|
183
187
|
return function(o) {
|
|
184
188
|
const e = s()(o);
|
|
185
189
|
if (typeof e == "string")
|
|
@@ -188,14 +192,14 @@ function G(t, n) {
|
|
|
188
192
|
return i.precision > t ? typeof n == "function" ? n(i.precision) : n ?? `Precision cannot be more than ${t}` : !0;
|
|
189
193
|
};
|
|
190
194
|
}
|
|
191
|
-
function
|
|
195
|
+
function K(t, n, r) {
|
|
192
196
|
return function(e) {
|
|
193
197
|
if (e === n) return !0;
|
|
194
198
|
const i = t.find((a) => a.value === e);
|
|
195
199
|
return i ? r ? r(i) : `Already used in ${i.label}` : !0;
|
|
196
200
|
};
|
|
197
201
|
}
|
|
198
|
-
function
|
|
202
|
+
function Q(t) {
|
|
199
203
|
let n = typeof t == "number" ? u.fromNumber(t) : t;
|
|
200
204
|
n = g(n);
|
|
201
205
|
const r = c(n);
|
|
@@ -208,31 +212,32 @@ function K(t) {
|
|
|
208
212
|
};
|
|
209
213
|
}
|
|
210
214
|
export {
|
|
211
|
-
|
|
212
|
-
|
|
215
|
+
I as A,
|
|
216
|
+
z as B,
|
|
213
217
|
s as I,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
218
|
+
G as M,
|
|
219
|
+
H as R,
|
|
220
|
+
K as U,
|
|
217
221
|
c as a,
|
|
218
222
|
g as b,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
+
Q as c,
|
|
224
|
+
C as d,
|
|
225
|
+
J as e,
|
|
226
|
+
W as f,
|
|
223
227
|
j as g,
|
|
224
228
|
S as h,
|
|
225
|
-
|
|
226
|
-
|
|
229
|
+
P as i,
|
|
230
|
+
Y as j,
|
|
227
231
|
L as k,
|
|
228
232
|
O as l,
|
|
229
233
|
F as m,
|
|
230
|
-
|
|
231
|
-
|
|
234
|
+
V as n,
|
|
235
|
+
Z as o,
|
|
232
236
|
T as p,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
237
|
+
q,
|
|
238
|
+
R as r,
|
|
239
|
+
U as s,
|
|
240
|
+
k as t,
|
|
241
|
+
B as u,
|
|
242
|
+
A as v
|
|
238
243
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as i } from "./stock-
|
|
2
|
-
import { a as s, s as p, Z as B } from "./app-
|
|
1
|
+
import { u as i } from "./stock--68mu-M1.js";
|
|
2
|
+
import { a as s, s as p, Z as B } from "./app-CLTXsVH_.js";
|
|
3
3
|
import { computed as k, ref as d } from "vue";
|
|
4
4
|
function v() {
|
|
5
5
|
return {
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -58,6 +58,9 @@ export interface FeatureState {
|
|
|
58
58
|
*/
|
|
59
59
|
report_portal_po_forecast_days_default: number;
|
|
60
60
|
}
|
|
61
|
+
export type FeatureLoadStatus = 'idle' | 'loading' | 'ready' | 'error';
|
|
62
|
+
export type LocationFeatureWait = 'ready' | 'error' | 'superseded';
|
|
63
|
+
export declare const FEATURE_LOAD_TIMEOUT_MS = 30000;
|
|
61
64
|
export declare const useFeatureStore: () => {
|
|
62
65
|
readonly businessDbName: string;
|
|
63
66
|
readonly isWarehouse: boolean;
|
|
@@ -69,6 +72,12 @@ export declare const useFeatureStore: () => {
|
|
|
69
72
|
/** @deprecated TODO: remove */
|
|
70
73
|
readonly manualReceive: boolean;
|
|
71
74
|
readonly isLoaded: boolean;
|
|
75
|
+
readonly loadState: {
|
|
76
|
+
dbName: string | null;
|
|
77
|
+
status: FeatureLoadStatus;
|
|
78
|
+
};
|
|
79
|
+
/** Reloads the current location's flags; a no-op before `init` has run. */
|
|
80
|
+
retryLoad(): Promise<void>;
|
|
72
81
|
readonly flags: {
|
|
73
82
|
name: string;
|
|
74
83
|
enabled: boolean;
|
|
@@ -114,5 +123,16 @@ export declare const useFeatureStore: () => {
|
|
|
114
123
|
readonly poForecastDaysConstraint: string | null;
|
|
115
124
|
readonly poForecastDaysDefault: number;
|
|
116
125
|
init(): Promise<void>;
|
|
117
|
-
|
|
126
|
+
/**
|
|
127
|
+
* Waits, bounded by FEATURE_LOAD_TIMEOUT_MS, for the flags of `dbName` to be
|
|
128
|
+
* confirmed. `ready` includes a confirmed outlet refreshing in the background.
|
|
129
|
+
* `error` means the flags are unknown (failed or stalled), never "off".
|
|
130
|
+
* `superseded` means the outlet changed or `signal` aborted, so the caller's
|
|
131
|
+
* work is stale and must stop. With `retryOnError`, an outlet already in error
|
|
132
|
+
* reloads first, so a caller's own refresh doubles as the flag retry.
|
|
133
|
+
*/
|
|
134
|
+
awaitLocationFeatures(dbName: string | null | undefined, options?: {
|
|
135
|
+
signal?: AbortSignal;
|
|
136
|
+
retryOnError?: boolean;
|
|
137
|
+
}): Promise<LocationFeatureWait>;
|
|
118
138
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -262,9 +262,9 @@ export declare function useNetSuiteStore(): {
|
|
|
262
262
|
deletedAt?: string | null | undefined;
|
|
263
263
|
supplierCache?: {
|
|
264
264
|
_rev?: string | null | undefined;
|
|
265
|
-
email?: string | null | undefined;
|
|
266
265
|
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
267
266
|
contactName?: string | null | undefined;
|
|
267
|
+
email?: string | null | undefined;
|
|
268
268
|
phoneNumber?: string | null | undefined;
|
|
269
269
|
supplyItems?: {
|
|
270
270
|
skuId: string;
|
|
@@ -291,6 +291,7 @@ export declare function useNetSuiteStore(): {
|
|
|
291
291
|
} | null | undefined;
|
|
292
292
|
_id: string;
|
|
293
293
|
name: string;
|
|
294
|
+
registrationNumber: string;
|
|
294
295
|
address: {
|
|
295
296
|
line2?: string | null | undefined;
|
|
296
297
|
line1: string;
|
|
@@ -299,7 +300,6 @@ export declare function useNetSuiteStore(): {
|
|
|
299
300
|
postcode: string;
|
|
300
301
|
country: string;
|
|
301
302
|
};
|
|
302
|
-
registrationNumber: string;
|
|
303
303
|
} | null | undefined;
|
|
304
304
|
custentity_financeapproval?: boolean | null | undefined;
|
|
305
305
|
businessId: string;
|