@feedmepos/mf-inventory-portal 1.8.0-dev.1 → 1.8.0-dev.10
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-BjFIh5km.js +1466 -0
- package/dist/{ApprovalView-C8_ax05b.js → ApprovalView-CauRuf64.js} +26 -25
- package/dist/{BindingsDialog-t0ZY9eh5.js → BindingsDialog-U-tzIfGX.js} +2 -2
- package/dist/{BindingsPicker-C0Qblmml.js → BindingsPicker-CV_oghtz.js} +2 -2
- package/dist/{BindingsTable-CsqUBbRA.js → BindingsTable-TKSQxAxV.js} +4 -4
- package/dist/{BulkReceiveRequestView-DAG-TMox.js → BulkReceiveRequestView-Cyeq26qc.js} +21 -21
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BpJhboKU.js +151 -0
- package/dist/{ClosingDraftView-CdKp4Ny6.js → ClosingDraftView-UqeHsxyJ.js} +748 -746
- package/dist/ClosingHistoryView-Cr6cQq6j.js +769 -0
- package/dist/{ClosingTemplateView-C326DL4q.js → ClosingTemplateView-DZ0Mdc87.js} +303 -291
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CXjubRbj.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-C-OsCTxZ.js} +1 -1
- package/dist/{DefaultView-CsIMmQAY.js → DefaultView-DQKHG5Jl.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-eTrMvJzA.js → DeliveryOrderPrintPreview-Z_kBbMMO.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B7nBbxMo.js → EmailDialog.vue_vue_type_script_setup_true_lang-Ce6Ly9pT.js} +6228 -6216
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-BUYI8koH.js +47 -0
- package/dist/FeatureCapabilityGate-DOn2IVJb.js +74 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CI2KTzDs.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BJuo4lEh.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Db_FiSRe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZxz5hbo.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CiBhz5sq.js +120 -0
- package/dist/FmMultiselectDialog-Bx9cLdYs.js +123 -0
- package/dist/{FmMultiselectDialog-CYUxtxnS.js → FmMultiselectDialog-DvaWLGY5.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DOkV11NN.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D6f1M96D.js} +72 -73
- package/dist/ImportView-1-cjN7ay.js +1290 -0
- package/dist/{IngredientsView-CZ6E7cXf.js → IngredientsView-JfKlUU2E.js} +656 -649
- package/dist/{IntegrationExplorerView-B15ND4Fg.js → IntegrationExplorerView-uElgWH8i.js} +602 -614
- package/dist/IntegrationPlatformView-g2dU5SG6.js +13061 -0
- package/dist/{IntegrationView-hkNhsqx2.js → IntegrationView-B9g888K4.js} +2956 -2922
- package/dist/{InventoryBindingForm-SfuUF0_O.js → InventoryBindingForm-DfGOKZWg.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CNjTdNL7.js +472 -0
- package/dist/{InventoryBindingSummary-DUcukkyJ.js → InventoryBindingSummary-CSii8B2X.js} +1 -1
- package/dist/JsonViewer.vue_vue_type_script_setup_true_lang-C_hg75l0.js +25 -0
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D_Xk4SOH.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-DJvfMOND.js +274 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-Bdjm0Y4w.js +79 -0
- package/dist/{ProductionRunDetailView-BwgRX-14.js → ProductionRunDetailView-HgH2Wp99.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BbNXNhpr.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-C88pjV2s.js} +9 -9
- package/dist/{ProductionRunView-CZU7LY9-.js → ProductionRunView-BkvQHeCP.js} +16 -15
- package/dist/{PublishView-DS2FZ66p.js → PublishView-CIei_T5e.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-CZa0MVAs.js → PurchaseOrderPrintPreview-Wmv7676h.js} +2 -2
- package/dist/{ReceiveRequestView-Bk5b3nVB.js → ReceiveRequestView-MqOIpIDB.js} +15 -15
- package/dist/RecipeView-WzXJX4JU.js +3440 -0
- package/dist/SettingsView-1YlgjyzB.js +1032 -0
- package/dist/StockView-C-dIRXPv.js +2651 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DdZg9T4n.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CewKTZzy.js} +1 -1
- package/dist/{SupplierView-D8q6siZW.js → SupplierView-53rHhQ63.js} +577 -571
- package/dist/{SurchargeView-Db_5YFoR.js → SurchargeView-DuJb5EUn.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-WOVs4Fr1.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-C_YmC-ZX.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-gJQQKKAC.js +71 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BtoP4XgE.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CyQujMzv.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Bljc4Vuy.js → TransferDetails.vue_vue_type_script_setup_true_lang-CMwqjlb0.js} +1722 -1672
- package/dist/TransferTemplateView-B6OGfKQr.js +2343 -0
- package/dist/{UnitCostHistoryView-BqDiQ4IE.js → UnitCostHistoryView-BVlq4BNG.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjSmg5LX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CULJEeCU.js} +4 -4
- package/dist/{UnitView-CM695-VI.js → UnitView-AuIJokVF.js} +84 -84
- package/dist/{WarehouseView-BdidU4p6.js → WarehouseView-Cjv8S1ov.js} +194 -189
- package/dist/{WastageTemplateView-DdhwdXT6.js → WastageTemplateView-mxSTzVSZ.js} +19 -18
- package/dist/api/feature-flags.d.ts +12 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/inventory.d.ts +9 -9
- package/dist/api/license.d.ts +8 -0
- package/dist/{app-Cb5s4jMu.js → app-OztWApio.js} +6085 -6053
- package/dist/app.d.ts +36 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-DnqnpXxn.js → closing-template-DIxXDgZQ.js} +1 -1
- package/dist/components/ChangeLocationComponent.vue.d.ts +21 -14
- package/dist/components/DeprecateSoonWarningDialog.vue.d.ts +22 -0
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +29 -0
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +29 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -1
- package/dist/components/MultiLocationSelector.vue.d.ts +6 -6
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/components/{PremiumBadge.vue.d.ts → PlanTierBadge.vue.d.ts} +5 -13
- package/dist/components/PlanUpgradeDialog.vue.d.ts +30 -0
- package/dist/composable/useNavigationMenu.d.ts +2 -1
- package/dist/{date2-BPhD_1Of.js → date2-BTzYzk-x.js} +1 -1
- package/dist/{dayjs.min-Zbd6-uVD.js → dayjs.min-BIg6CfC4.js} +1 -1
- package/dist/{decimal-Df6a50Ld.js → decimal-B34w3X7O.js} +2 -2
- package/dist/{defineDeepModel-Brbsikbi.js → defineDeepModel-CrZAv12u.js} +1 -1
- package/dist/{duplicate-template-B9kuShaF.js → duplicate-template-BKVPhi40.js} +1 -1
- package/dist/{inventory-core-dart.default-DDRxXXnt.js → feature-BUVZ_ab3.js} +766 -398
- package/dist/feature-flags/core.d.ts +28 -0
- package/dist/feature-flags/core.spec.d.ts +1 -0
- package/dist/feature-flags/navigation-capabilities.d.ts +23 -0
- package/dist/feature-flags/navigation-capabilities.spec.d.ts +1 -0
- package/dist/feature-flags/plan-tier.d.ts +6 -0
- package/dist/feature-flags/plan-tier.spec.d.ts +1 -0
- package/dist/feature-flags/portal-feature-catalog.d.ts +19 -0
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +16 -0
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DmUjUcVj.js → format-time-from-id-DGLxhRFH.js} +1 -1
- package/dist/{format-unit-display-CsQA0SQd.js → format-unit-display-BhudItCc.js} +118 -119
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/id-to-date-BfwadWDS.js +67 -0
- package/dist/{import-export.helper-DCQ6oX9s.js → import-export.helper-BdQ_d-fT.js} +16 -17
- package/dist/{index-UmM6gHJ1.js → index-BTNI4XZ2.js} +1 -1
- package/dist/{index-C-mazZwS.js → index-B_hoeQNL.js} +3 -3
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/{index-BXaIMGnI.js → index-CCvxPS3E.js} +1 -1
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{lz-string-Bibw5D_6.js → lz-string-CVEGZpSC.js} +1 -1
- package/dist/{netsuite-Bev0OtQT.js → netsuite-DEhdSyBn.js} +9 -3
- package/dist/{predefined-templates-BHvUnTk_.js → predefined-templates-BTdQl7jj.js} +1 -1
- package/dist/{purchase-order-template-DgOKEzhS.js → purchase-order-template-DfMmpsrJ.js} +1 -1
- package/dist/{recalculationUtils-Dv__DzZh.js → recalculationUtils-Ds9Jcg0l.js} +1 -1
- package/dist/router/name.d.ts +2 -2
- package/dist/{row-action.enum-ncgDYAjP.js → row-action.enum-B2Y5YFbc.js} +2 -2
- package/dist/rules-D01xYhgI.js +238 -0
- package/dist/{stock-CxCRZo_D.js → stock-D3kBNq3e.js} +1 -1
- package/dist/stock-DyTC4Teu.js +74 -0
- package/dist/stores/feature.d.ts +20 -2
- package/dist/stores/integration/netsuite.d.ts +2 -2
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/location.d.ts +42 -42
- package/dist/stores/supplier.d.ts +49 -49
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-CkZdeMcl.js → supplier-DaidezrO.js} +2 -2
- package/dist/{surcharge-FRSFqjGl.js → surcharge-C-PFvvlU.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Cm1styDr.js → uom-rules-Un5bhcrm.js} +1 -1
- package/dist/{use-ingredient-select-dialog-ntAqHX04.js → use-ingredient-select-dialog-DV_hkAt9.js} +2 -2
- package/dist/use-inventory-binding-dialog-CTceyFrg.js +113 -0
- package/dist/{use-template-enabled-locations-CIZqw-Z8.js → use-template-enabled-locations-DGqw8tvz.js} +2 -2
- package/dist/{use-transfer-locations-CM5vNttA.js → use-transfer-locations-DgtKajec.js} +2 -2
- package/dist/{useHrmPermission-CslLuBoP.js → useHrmPermission-BMpZlah6.js} +1 -1
- package/dist/useNavigationMenu-D0NtXAnB.js +346 -0
- package/dist/{useSseClient-CCV4mPzD.js → useSseClient-CHZZxy7Z.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/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-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/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts +1 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
- package/dist/{components/PreviewBadge.vue.d.ts → views/integration/IntegrationPlatformView.vue.d.ts} +11 -13
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +38 -0
- package/dist/views/integration/components/Synergy/importFn.spec.d.ts +1 -0
- package/dist/views/integration/components/Xilnex/importFn.spec.d.ts +1 -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/integration/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -5
- package/dist/views/receive-request/composables/netsuite-order-label.d.ts +11 -0
- package/dist/views/receive-request/composables/netsuite-order-label.spec.d.ts +1 -0
- 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-table.d.ts +35 -35
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +34 -34
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +6 -6
- package/dist/views/recipe/components/recipe-bulk-editor/components/ModificationCard.spec.d.ts +1 -0
- package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
- package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/{ingredient-group/IngredientGroupView.vue.d.ts → settings/FeatureFlagView.vue.d.ts} +0 -1
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → settings/PlanLicenseDisplay.vue.d.ts} +2 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- 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/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- 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/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/{vue-i18n-C5j4EQhi.js → vue-i18n-mXrQUZTi.js} +519 -519
- package/dist/{xlsx.util-B50OvX4z.js → xlsx.util-CKx0NYTq.js} +2 -2
- package/package.json +71 -66
- package/dist/App-BXgpGzGR.js +0 -1476
- package/dist/ClosingHistoryView-Blyq9-BS.js +0 -761
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-zcEv1Swg.js +0 -243
- package/dist/FmMultiselectDialog-BAw-gp5K.js +0 -77
- package/dist/ImportView-BmotFC-3.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVCCpvS4.js +0 -51
- package/dist/IngredientGroupView-qrR9ksEn.js +0 -985
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-Zq81p_MF.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmfROiLM.js +0 -72
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-3e3kDsbN.js +0 -93
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-DX2MJqL4.js +0 -29
- package/dist/RecipeView-DvI6X-uN.js +0 -3625
- package/dist/SettingsView-sThYErMz.js +0 -698
- package/dist/StockView-Z9wGihT7.js +0 -2612
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TransferTemplateView-DtsJzmUr.js +0 -2327
- package/dist/feature-Ckn5ra3z.js +0 -1136
- package/dist/number-y_W4pn_d.js +0 -138
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-CZTBvenw.js +0 -98
- package/dist/stock-XINW8JOM.js +0 -75
- package/dist/use-inventory-binding-dialog-DVIJO8Cl.js +0 -152
- package/dist/useNavigationMenu-CSinmNCY.js +0 -172
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
- package/dist/views/integration/composables/use-integration-sync-log.d.ts +0 -45
- /package/dist/components/{FmFeatureFlagDialog.vue.d.ts → DeprecateSoonPill.vue.d.ts} +0 -0
package/dist/helper/rules.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare function Between(lowerInclusive: Date, upperExclusive: Date): {
|
|
|
12
12
|
export declare function Between(lowerInclusive: number, upperExclusive: number): {
|
|
13
13
|
(val: string): ValidationResult;
|
|
14
14
|
};
|
|
15
|
-
export declare function IsNumeric(): (maybeNumber: string) => true | "Must be a number";
|
|
15
|
+
export declare function IsNumeric(): (maybeNumber: string) => true | "Number has too many digits" | "Must be a number";
|
|
16
16
|
export declare function MaximumPrecision(precision: number): {
|
|
17
17
|
(val: string): ValidationResult;
|
|
18
18
|
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { d as p, u as F } from "./app-OztWApio.js";
|
|
2
|
+
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
3
|
+
import { ref as v } from "vue";
|
|
4
|
+
const l = p((e, r) => {
|
|
5
|
+
const t = F(), u = y();
|
|
6
|
+
return {
|
|
7
|
+
async getInventoryForecast() {
|
|
8
|
+
var a;
|
|
9
|
+
const n = ((a = u.currentBusiness.value) == null ? void 0 : a._id) ?? "", s = t.currentLocationId ?? "", c = `${e.dataBackendUrl}/${n}/${s}/inventory-forecast`;
|
|
10
|
+
try {
|
|
11
|
+
return await r.get(c);
|
|
12
|
+
} catch {
|
|
13
|
+
return { skus: [] };
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
async getPurchaseOrderForecast(n, s) {
|
|
17
|
+
var d;
|
|
18
|
+
const c = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", a = t.currentLocationId ?? "", i = `${e.dataBackendUrl}/${c}/${a}/purchase-order-forecast?days=${n}${s ? `&template_id=${s}` : ""}`;
|
|
19
|
+
try {
|
|
20
|
+
return await r.get(i);
|
|
21
|
+
} catch {
|
|
22
|
+
return { skus: [] };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
function f() {
|
|
28
|
+
return {
|
|
29
|
+
inventoryForecast: { skus: [] },
|
|
30
|
+
purchaseOrderForecast: { skus: [] }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const o = v(f());
|
|
34
|
+
function g() {
|
|
35
|
+
return {
|
|
36
|
+
// state
|
|
37
|
+
get inventoryForecast() {
|
|
38
|
+
return o.value.inventoryForecast;
|
|
39
|
+
},
|
|
40
|
+
set inventoryForecast(e) {
|
|
41
|
+
o.value.inventoryForecast = e;
|
|
42
|
+
},
|
|
43
|
+
get purchaseOrderForecast() {
|
|
44
|
+
return o.value.purchaseOrderForecast;
|
|
45
|
+
},
|
|
46
|
+
set purchaseOrderForecast(e) {
|
|
47
|
+
o.value.purchaseOrderForecast = e;
|
|
48
|
+
},
|
|
49
|
+
// actions
|
|
50
|
+
async readStockEstimateBalance() {
|
|
51
|
+
const e = l();
|
|
52
|
+
this.inventoryForecast = await e.getInventoryForecast();
|
|
53
|
+
},
|
|
54
|
+
async readPurchaseOrder(e, r) {
|
|
55
|
+
const t = l();
|
|
56
|
+
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e, r);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function m(e) {
|
|
61
|
+
let r = e.substring(e.indexOf("_") + 1);
|
|
62
|
+
return r.includes("_") && (r = r.substring(0, r.lastIndexOf("_"))), Number.isNaN(Date.parse(r)) ? null : new Date(r).toISOString();
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
m as i,
|
|
66
|
+
g as u
|
|
67
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { a as w, t as H,
|
|
2
|
-
import { u as
|
|
1
|
+
import { a as w, t as H, i as T, I as P } from "./rules-D01xYhgI.js";
|
|
2
|
+
import { u as j } from "./feature-BUVZ_ab3.js";
|
|
3
3
|
import { useCoreStore as y } from "@feedmepos/mf-common";
|
|
4
|
-
import { a as g, g as k, m as
|
|
5
|
-
import { b as N, d as $, s as
|
|
6
|
-
import { f as
|
|
7
|
-
import { I as O } from "./rules-CZTBvenw.js";
|
|
4
|
+
import { a as g, g as k, m as I, e as S } from "./app-OztWApio.js";
|
|
5
|
+
import { b as N, d as $, s as _ } from "./xlsx.util-CKx0NYTq.js";
|
|
6
|
+
import { f as O } from "./date2-BTzYzk-x.js";
|
|
8
7
|
function U() {
|
|
9
8
|
return {
|
|
10
9
|
low: 6,
|
|
@@ -72,7 +71,7 @@ function E() {
|
|
|
72
71
|
id: "measurementName",
|
|
73
72
|
name: "Measurement Symbol"
|
|
74
73
|
}
|
|
75
|
-
], t =
|
|
74
|
+
], t = j(), i = y(), r = k(i.currentCountry.value);
|
|
76
75
|
return t.enableTotalCost && e.push(
|
|
77
76
|
{
|
|
78
77
|
id: "valuationMethod",
|
|
@@ -96,7 +95,7 @@ function E() {
|
|
|
96
95
|
name: "Custom Attributes"
|
|
97
96
|
}), e;
|
|
98
97
|
}
|
|
99
|
-
function
|
|
98
|
+
function Q(e) {
|
|
100
99
|
const t = g(), i = (e ?? t.skus).map(V), n = y().currentBusiness.value, u = E(), a = [
|
|
101
100
|
["Business name:", n == null ? void 0 : n.name],
|
|
102
101
|
["Business ID:", n == null ? void 0 : n._id],
|
|
@@ -104,10 +103,10 @@ function X(e) {
|
|
|
104
103
|
[],
|
|
105
104
|
u.map((s) => s.name),
|
|
106
105
|
...i.map((s) => u.map((d) => s[d.id]))
|
|
107
|
-
], c = u.map((s) => `system:${s.id}`), l = N(a, c), o = `${n == null ? void 0 : n.name} ingredients (${
|
|
106
|
+
], c = u.map((s) => `system:${s.id}`), l = N(a, c), o = `${n == null ? void 0 : n.name} ingredients (${O(/* @__PURE__ */ new Date())}).xlsx`;
|
|
108
107
|
return $(l, o), o;
|
|
109
108
|
}
|
|
110
|
-
function
|
|
109
|
+
function X() {
|
|
111
110
|
const t = y().currentBusiness.value, i = E(), r = [
|
|
112
111
|
["Business name:", t == null ? void 0 : t.name],
|
|
113
112
|
["Business ID:", t == null ? void 0 : t._id],
|
|
@@ -126,7 +125,7 @@ function L(e) {
|
|
|
126
125
|
u,
|
|
127
126
|
a,
|
|
128
127
|
...c
|
|
129
|
-
] =
|
|
128
|
+
] = _(e);
|
|
130
129
|
if (!t || !t.length || t.some((p) => p.length && !p.startsWith("system:")))
|
|
131
130
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
132
131
|
const l = t.map((p) => p.split(":")[1]), s = ["code", "name", "unit", "baseUnit", "measurementName"].filter((p) => !l.includes(p));
|
|
@@ -168,7 +167,7 @@ function R(e, t, i, { ignoreErrors: r = !1 } = {}) {
|
|
|
168
167
|
e.valuationMethod && !s && a.push(
|
|
169
168
|
`Expected valuation method to be one of ${S.options.join()} but got ${e.valuationMethod} instead.`
|
|
170
169
|
);
|
|
171
|
-
const p = y().currentCountry.value, h = (m) => `${m}`.length &&
|
|
170
|
+
const p = y().currentCountry.value, h = (m) => `${m}`.length && P()(m) === !0, f = h(`${e.pricePerUnit}`) === !0 ? {
|
|
172
171
|
costPerUnit: {
|
|
173
172
|
...H(Number(e.pricePerUnit) || 0, T(Number(e.pricePerUnit) || 0)),
|
|
174
173
|
currency: ((M = k(p)) == null ? void 0 : M.currency) ?? "MYR"
|
|
@@ -194,9 +193,9 @@ function R(e, t, i, { ignoreErrors: r = !1 } = {}) {
|
|
|
194
193
|
excelRowNumber: t + 6
|
|
195
194
|
};
|
|
196
195
|
}
|
|
197
|
-
function
|
|
196
|
+
function Z(e) {
|
|
198
197
|
try {
|
|
199
|
-
const t = L(e).filter((o) => o.data.code), r = g().skus, n =
|
|
198
|
+
const t = L(e).filter((o) => o.data.code), r = g().skus, n = I(r, "code"), u = t.filter((o) => !n[o.data.code]), a = t.filter((o) => n[o.data.code]), c = u.map(
|
|
200
199
|
(o) => R(o.data, o.index, t)
|
|
201
200
|
), l = a.map((o) => {
|
|
202
201
|
const s = R(o.data, o.index, t), d = n[o.data.code];
|
|
@@ -234,10 +233,10 @@ function ee(e) {
|
|
|
234
233
|
}
|
|
235
234
|
}
|
|
236
235
|
export {
|
|
237
|
-
|
|
236
|
+
X as a,
|
|
238
237
|
E as b,
|
|
239
238
|
U as d,
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
Q as e,
|
|
240
|
+
Z as g,
|
|
242
241
|
A as s
|
|
243
242
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as v, computed as f } from "vue";
|
|
2
|
-
import { u as w } from "./netsuite-
|
|
3
|
-
import { A as L, a as p, u as y, d as k, G as h } from "./app-
|
|
2
|
+
import { u as w } from "./netsuite-DEhdSyBn.js";
|
|
3
|
+
import { A as L, a as p, u as y, d as k, G as h } from "./app-OztWApio.js";
|
|
4
4
|
import { useSnackbar as B } from "@feedmepos/ui-library";
|
|
5
5
|
import { useCoreStore as E } from "@feedmepos/mf-common";
|
|
6
|
-
import { u as S } from "./feature-
|
|
6
|
+
import { u as S } from "./feature-BUVZ_ab3.js";
|
|
7
7
|
function C() {
|
|
8
8
|
return {
|
|
9
9
|
setting: {
|