@feedmepos/mf-inventory-portal 1.8.0-dev.2 → 1.8.0-dev.20
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-5GYyCfFq.js +1445 -0
- package/dist/{ApprovalView-RaXuWWSu.js → ApprovalView-DY1ayl1W.js} +26 -25
- package/dist/{BindingsDialog-DomvXijP.js → BindingsDialog-Dm7uKMfV.js} +2 -2
- package/dist/{BindingsPicker-DGnzxEs7.js → BindingsPicker-DhnMlj4x.js} +2 -2
- package/dist/{BindingsTable-DfG9kWrv.js → BindingsTable-Cxibcjka.js} +10 -10
- package/dist/BulkReceiveRequestPage-w4AA6BxB.js +2839 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CVekIoiN.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B3ESPbQp.js} +1 -1
- package/dist/{ClosingDraftView-C3n66bbh.js → ClosingDraftView-DMaONEZ7.js} +748 -746
- package/dist/ClosingHistoryView-BBYruOux.js +769 -0
- package/dist/{ClosingTemplateView-DwGloYxn.js → ClosingTemplateView-DcwgokRl.js} +22 -21
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-9eY_r8LF.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-a72IldDO.js} +1 -1
- package/dist/{DefaultView-JC_e4xgC.js → DefaultView-BVr_7JDn.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BBCvI67S.js → DeliveryOrderPrintPreview-BXZFD3D5.js} +15 -15
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-H4FWc9ga.js → EmailDialog.vue_vue_type_script_setup_true_lang-Dne_9P3j.js} +10077 -9950
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CYkPbFSA.js +48 -0
- package/dist/FeatureCapabilityGate-DK_rTVyJ.js +82 -0
- package/dist/FeaturePageGate.vue_vue_type_script_setup_true_lang-DIhV51l7.js +189 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Q8Mptiv3.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B80EHMBT.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CE1_yyHe.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C94IFGoH.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CGJi3f86.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-COZPDuAM.js} +2 -2
- package/dist/{FmMultiselectDialog-DCaRlBIy.js → FmMultiselectDialog-C1P22sj2.js} +2 -2
- package/dist/FmMultiselectDialog-Kb3IftHf.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-ClaLVtpK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BqB71yfu.js} +105 -99
- package/dist/ImportView-EJ4u8NHM.js +1540 -0
- package/dist/{IngredientsView-DPj9lBTK.js → IngredientsView-Bxsgm4E7.js} +691 -689
- package/dist/{IntegrationExplorerView-CO2wpUR_.js → IntegrationExplorerView-owEaOVeG.js} +1537 -1620
- package/dist/IntegrationPlatformView-BuptPyjg.js +13385 -0
- package/dist/{IntegrationView-DIeZoey0.js → IntegrationView-DAcdY_d_.js} +2604 -2565
- package/dist/{InventoryBindingForm-Cj4_Chue.js → InventoryBindingForm-BvjY4zrn.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhbF-jgN.js +472 -0
- package/dist/{InventoryBindingSummary-yzGzd7jJ.js → InventoryBindingSummary-DPqm94GX.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-DDsigNJ4.js +79 -0
- package/dist/PlanTierBadge.vue_vue_type_script_setup_true_lang-CM3gtYZo.js +19 -0
- package/dist/PlanUpgradeDialog.vue_vue_type_script_setup_true_lang-0F-yOcPC.js +79 -0
- package/dist/PremiumUpgradePage.vue_vue_type_script_setup_true_lang-DGAxPOEh.js +58 -0
- package/dist/ProductionRunDetailPage-BaPCJUqT.js +2317 -0
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BYyiiAWb.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-CNRX3MYt.js} +3053 -3163
- package/dist/ProductionRunPage-B6Jsv9Hh.js +954 -0
- package/dist/{PublishView-CPK9NeVF.js → PublishView-DonUv6nP.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-DosqWQeN.js → PurchaseOrderPrintPreview-CK3Cqdwp.js} +17 -17
- package/dist/{ReceiveRequestView-BxSkpK2t.js → ReceiveRequestView-CMAnKxzm.js} +17 -16
- package/dist/RecipeView-Bx13Bckq.js +3272 -0
- package/dist/SettingsView-D1MiAkD8.js +1005 -0
- package/dist/StockView-CsxTjVEd.js +3003 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-GdGJCuc0.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BT73j9SA.js} +1 -1
- package/dist/{SupplierView-BKxKoi_0.js → SupplierView-CFACoZya.js} +304 -301
- package/dist/{SurchargeView-Db4cwhZv.js → SurchargeView-CShhZa3x.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CpkF77Ow.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-B2OdmdI_.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-x3N2Oypo.js +332 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BISmGBJE.js +4953 -0
- package/dist/TransferTemplateView-kx2IPqEv.js +2347 -0
- package/dist/{UnitCostHistoryView-CqcyjCCd.js → UnitCostHistoryView-DgPWsXaB.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DO80_8SZ.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BtfJJgIP.js} +4 -4
- package/dist/{UnitView-BqdK1AM_.js → UnitView-aupXLRMk.js} +111 -106
- package/dist/{WarehouseView-COJM9IXM.js → WarehouseView-MTvbY4n4.js} +12 -11
- package/dist/{WastageTemplateView-DW3viTHN.js → WastageTemplateView-Bs9HL-LK.js} +19 -18
- package/dist/api/bill.d.ts +4 -2
- package/dist/api/bill.spec.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/feature-flags.d.ts +4 -0
- package/dist/api/integration-sync-log.d.ts +0 -13
- package/dist/api/license.d.ts +0 -2
- package/dist/api/netsuite-explorer.d.ts +1 -0
- package/dist/api/stock.d.ts +1 -1
- package/dist/{app-yvK__CBL.js → app-D38sV2ls.js} +10177 -10126
- package/dist/app.d.ts +151 -164
- package/dist/app.js +1 -1
- package/dist/bulk-edit-simulation.helper-DgniL8FN.js +178 -0
- package/dist/{closing-template-DezidSM0.js → closing-template-D_NAj_mU.js} +4 -4
- package/dist/components/FeatureCapabilityBadge.vue.d.ts +4 -0
- package/dist/components/FeatureCapabilityGate.spec.d.ts +1 -0
- package/dist/components/FeatureCapabilityGate.vue.d.ts +5 -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/FmUnitInputRules.d.ts +1 -1
- package/dist/components/HrmPermissionGuard.vue.d.ts +1 -1
- package/dist/components/NumberPrecisionInput.spec.d.ts +1 -0
- package/dist/{views/ingredient-group/IngredientGroupView.vue.d.ts → components/PremiumUpgradePage.vue.d.ts} +0 -1
- 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-2XjepIqc.js → date2-CvgxwuM1.js} +1 -1
- package/dist/{dayjs.min-CNp5DLBB.js → dayjs.min-BOKV8T5Q.js} +1 -1
- package/dist/{decimal-Z7oJdGk8.js → decimal-5xyg1WLu.js} +2 -2
- package/dist/{defineDeepModel-CMxJn_H2.js → defineDeepModel-BwB9XcMu.js} +5 -5
- package/dist/{duplicate-template-BetV5oy_.js → duplicate-template-DvIgjm4K.js} +1 -1
- package/dist/{feature-CkWaZ-5K.js → feature-CsPbMoeJ.js} +2088 -2853
- package/dist/feature-flags/core.d.ts +3 -2
- package/dist/feature-flags/portal-feature-catalog.d.ts +1 -6
- package/dist/feature-flags/portal-feature-catalog.spec.d.ts +1 -0
- package/dist/feature-flags/vue.d.ts +24 -1
- package/dist/feature-flags/vue.spec.d.ts +1 -0
- package/dist/{format-time-from-id-DatSI9uD.js → format-time-from-id-DD6Ik9EK.js} +1 -1
- package/dist/{format-unit-display-DM5We5cx.js → format-unit-display-DG564AN3.js} +209 -208
- package/dist/helper/country.spec.d.ts +1 -0
- package/dist/helper/menu-usage-module.d.ts +2 -1
- package/dist/helper/number.d.ts +5 -1
- package/dist/helper/rules.d.ts +1 -1
- package/dist/{id-to-date-Dxw2jKhy.js → id-to-date-DoN7OM21.js} +1 -1
- package/dist/{import-export.helper-BOmADwUw.js → import-export.helper-CevBRFTZ.js} +17 -17
- package/dist/{index-7fz5sGDO.js → index-BIh1oTQH.js} +3 -3
- package/dist/{index-CIH9NCvs.js → index-BP3Avix6.js} +1 -1
- package/dist/{JsonViewer.vue_vue_type_script_setup_true_lang-ig2zSXAB.js → index-C25C1Dg7.js} +1074 -1066
- package/dist/index-eGvSlWMU.js +1892 -0
- package/dist/{index-ClYgfwW7.js → index-mzXhLwrZ.js} +2234 -2163
- package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
- package/dist/{lz-string-CCsc2X7t.js → lz-string-DMjWYCk6.js} +1 -1
- package/dist/menu-usage-module-Bq_KLsO4.js +74 -0
- package/dist/{netsuite-COumFXC2.js → netsuite-ZtoZBFBX.js} +254 -263
- package/dist/netsuite-explorer-h_vID_ao.js +79 -0
- package/dist/{predefined-templates-Bw9A9LNA.js → predefined-templates-CdurFRJ4.js} +1 -1
- package/dist/production-run-list-DR1WsaBR.js +61 -0
- package/dist/{purchase-order-template-BaZjdGq8.js → purchase-order-template-BVdCftEo.js} +1 -1
- package/dist/{recalculationUtils-t32wAurN.js → recalculationUtils-DBG8HGiJ.js} +1 -1
- package/dist/router/name.d.ts +2 -2
- package/dist/{row-action.enum-BDeudY4d.js → row-action.enum-CGyAg4dC.js} +1 -1
- package/dist/rules-DbFiOzUd.js +243 -0
- package/dist/{stock-B59sfN28.js → stock-BATH4SoA.js} +1 -1
- package/dist/stock-DXxsDPEO.js +78 -0
- package/dist/stores/feature.d.ts +40 -10
- package/dist/stores/feature.load-state.spec.d.ts +1 -0
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/inventory.no-location.spec.d.ts +1 -0
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/stores/warehouse.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DnbLJ_cS.js → supplier-CKXQmBZn.js} +2 -2
- package/dist/{surcharge-C1uE3uQa.js → surcharge-qupRJjjO.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DjfyrFHJ.js → uom-rules-ALtgjANX.js} +1 -1
- package/dist/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-C1sJpjfV.js} +2 -2
- package/dist/use-inventory-binding-dialog-tl7-epun.js +113 -0
- package/dist/{use-template-enabled-locations-C-Hqqgzt.js → use-template-enabled-locations-DWk2ndDC.js} +2 -2
- package/dist/{use-transfer-locations-CqsXvOI2.js → use-transfer-locations-CsdYY996.js} +14 -14
- package/dist/{useHrmPermission-BzwD3Ctc.js → useHrmPermission-BtuqUrwj.js} +1 -1
- package/dist/{useNavigationMenu-PrZg9HS7.js → useNavigationMenu-DKxKXykI.js} +111 -117
- package/dist/{useSseClient-FCyLWq8k.js → useSseClient-CRfpltKK.js} +1 -1
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +2 -2
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1 -1
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/import/helper/submit-rows.d.ts +1 -1
- 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 +3 -1
- package/dist/views/{ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts → integration/IntegrationPlatformView.vue.d.ts} +11 -24
- 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/helper/opening-balance.d.ts +22 -0
- package/dist/views/integration/helper/opening-balance.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailPage.spec.d.ts +1 -0
- package/dist/views/{integration/components/IntegrationSyncLogTab.vue.d.ts → production-run/ProductionRunDetailPage.vue.d.ts} +2 -2
- package/dist/views/production-run/ProductionRunPage.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +2 -2
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +4 -4
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +19 -9
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +14 -14
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +4 -4
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +1 -1
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +6 -6
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -1
- package/dist/views/production-run/shared/model/production-run-list.d.ts +1 -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/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 +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +9 -9
- 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 +7 -7
- package/dist/views/receive-request/import/export.spec.d.ts +1 -0
- 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 +20 -20
- 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 +2 -2
- 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 +32 -2
- package/dist/views/recipe/helper/import-recipe.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.spec.d.ts +1 -0
- package/dist/views/settings/PlanLicenseDisplay.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.spec.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +19 -865
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.spec.d.ts +1 -0
- package/dist/views/stock/components/dialog/BillInventoryInfoDialog.vue.d.ts +36 -0
- package/dist/views/stock/components/dialog/ConvertSkuDialog.spec.d.ts +1 -0
- package/dist/views/stock/composables/use-last-closing-summary.d.ts +4 -0
- package/dist/views/stock/composables/use-last-closing-summary.spec.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts +1 -0
- package/dist/views/transfer-template/helpers/template-item.error.helper.spec.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.spec.d.ts +1 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -2
- package/dist/vue-CVco8McV.js +290 -0
- package/dist/{vue-i18n-C34f-Tph.js → vue-i18n-C443zpcA.js} +450 -450
- package/dist/{xlsx.util-X4amwe_k.js → xlsx.util-5_47Kslf.js} +2 -2
- package/package.json +71 -66
- package/dist/App-DVHgBTHP.js +0 -1499
- package/dist/BulkReceiveRequestView-DxHWrfbi.js +0 -2656
- package/dist/ClosingHistoryView-kdpYGy1Y.js +0 -761
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-5Cc08Svt.js +0 -58
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-C1C8aDA6.js +0 -61
- package/dist/FmMultiselectDialog-yVPY5aBV.js +0 -77
- package/dist/ImportView-DQrVMzxN.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-7lT5UZc8.js +0 -51
- package/dist/IngredientGroupView-BMUnEaY7.js +0 -1000
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CaBOK7NC.js +0 -563
- package/dist/NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DzzTPdyF.js +0 -72
- package/dist/ProductionRunDetailView-Cw-ecaey.js +0 -2312
- package/dist/ProductionRunView-C11eseXQ.js +0 -930
- package/dist/RecipeView-oHDWsT0P.js +0 -3624
- package/dist/SettingsView-QlUNwFhM.js +0 -983
- package/dist/StockView-a8LbVZ_7.js +0 -2614
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js +0 -84
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CCCj4WVF.js +0 -299
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CFNPXqt5.js +0 -4796
- package/dist/TransferTemplateView-CzwxOBMQ.js +0 -2326
- package/dist/menu-usage-module-BdjYEk3s.js +0 -57
- package/dist/number-gSLvxNqA.js +0 -138
- package/dist/portal-feature-catalog-yGIESKTc.js +0 -246
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/rules-C1btu0Md.js +0 -98
- package/dist/stock-BF86TMW0.js +0 -75
- package/dist/use-inventory-binding-dialog-Cc1tjTfV.js +0 -152
- 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/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/{use-ingredient-select-dialog-7A7fWyEH.js → use-ingredient-select-dialog-C1sJpjfV.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-D38sV2ls.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-C1P22sj2.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { a as y } from "./FmMultiselectDialog-C1P22sj2.js";
|
|
2
|
+
import { a as S } from "./app-D38sV2ls.js";
|
|
3
|
+
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
|
+
function w() {
|
|
5
|
+
const c = S(), g = E();
|
|
6
|
+
async function _(s, p, d, f = []) {
|
|
7
|
+
var n, a;
|
|
8
|
+
const b = s.filter((i) => i.type === "SKU"), l = s.filter((i) => i.type !== "SKU"), r = /* @__PURE__ */ new Set();
|
|
9
|
+
if (d)
|
|
10
|
+
for (const i of c.skus)
|
|
11
|
+
!f.some((o) => o === i._id) && i._id !== d && !((a = (n = i.convert) == null ? void 0 : n.inventoryBindings) != null && a.some((o) => o.id === d)) || r.add(i._id);
|
|
12
|
+
const m = c.skus.map((i) => ({
|
|
13
|
+
label: i.name,
|
|
14
|
+
sublabel: `${i.code}${r.has(i._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
|
|
15
|
+
value: i,
|
|
16
|
+
disabled: r.has(i._id)
|
|
17
|
+
})), u = m.filter(
|
|
18
|
+
(i) => b.find((t) => t.id === i.value._id) && !r.has(i.value._id)
|
|
19
|
+
).map((i) => i.value);
|
|
20
|
+
g.open({
|
|
21
|
+
title: "Select ingredients",
|
|
22
|
+
contentComponent: y,
|
|
23
|
+
contentComponentProps: {
|
|
24
|
+
items: m,
|
|
25
|
+
modelValue: u,
|
|
26
|
+
virtualScroll: !0
|
|
27
|
+
},
|
|
28
|
+
primaryActions: {
|
|
29
|
+
text: "Confirm",
|
|
30
|
+
close: !0
|
|
31
|
+
},
|
|
32
|
+
secondaryActions: {
|
|
33
|
+
text: "Close",
|
|
34
|
+
close: !0,
|
|
35
|
+
variant: "tertiary"
|
|
36
|
+
}
|
|
37
|
+
}).onPrimary((i) => {
|
|
38
|
+
const t = [
|
|
39
|
+
...l,
|
|
40
|
+
...s.filter((o) => i.find((e) => e._id === o.id)),
|
|
41
|
+
...i.filter((o) => !s.find((e) => e.id === o._id)).map((o) => ({
|
|
42
|
+
type: "SKU",
|
|
43
|
+
id: o._id,
|
|
44
|
+
amount: {
|
|
45
|
+
amount: 1,
|
|
46
|
+
precision: 0
|
|
47
|
+
}
|
|
48
|
+
}))
|
|
49
|
+
];
|
|
50
|
+
p(t);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async function v(s, p, d = []) {
|
|
54
|
+
var u;
|
|
55
|
+
const f = s.filter((n) => n.type === "RECIPE"), b = s.filter((n) => n.type !== "RECIPE"), l = /* @__PURE__ */ new Set();
|
|
56
|
+
if (d.length)
|
|
57
|
+
for (const n of c.recipes) {
|
|
58
|
+
const a = ((u = c.recipeBindingFlattenCache[n._id]) == null ? void 0 : u.inventoryBindings) ?? [], i = a.some(
|
|
59
|
+
(e) => e.bindingPaths.some((C) => d.some((h) => h === C.id))
|
|
60
|
+
), t = a.some(
|
|
61
|
+
(e) => "success" in e && d.includes(e.ingredient._id)
|
|
62
|
+
);
|
|
63
|
+
(d.some((e) => e === n._id) || i || t) && l.add(n._id);
|
|
64
|
+
}
|
|
65
|
+
const r = c.recipes.filter((n) => !d.includes(n._id)).map((n) => ({
|
|
66
|
+
label: n.name,
|
|
67
|
+
sublabel: l.has(n._id) ? "(Cannot bind, will cause recursive binding)" : `${n.contains.length} inventory bindings`,
|
|
68
|
+
value: n,
|
|
69
|
+
disabled: l.has(n._id)
|
|
70
|
+
})), m = r.filter(
|
|
71
|
+
(n) => f.find((a) => a.id === n.value._id) && !l.has(n.value._id)
|
|
72
|
+
).map((n) => n.value);
|
|
73
|
+
g.open({
|
|
74
|
+
title: "Select recipes",
|
|
75
|
+
contentComponent: y,
|
|
76
|
+
contentComponentProps: {
|
|
77
|
+
items: r,
|
|
78
|
+
modelValue: m,
|
|
79
|
+
virtualScroll: !0
|
|
80
|
+
},
|
|
81
|
+
primaryActions: {
|
|
82
|
+
text: "Confirm",
|
|
83
|
+
close: !0
|
|
84
|
+
},
|
|
85
|
+
secondaryActions: {
|
|
86
|
+
text: "Close",
|
|
87
|
+
close: !0,
|
|
88
|
+
variant: "tertiary"
|
|
89
|
+
}
|
|
90
|
+
}).onPrimary((n) => {
|
|
91
|
+
const a = [
|
|
92
|
+
...s.filter((i) => n.find((t) => t._id === i.id)),
|
|
93
|
+
...n.filter((i) => !s.find((t) => t.id === i._id)).map((i) => ({
|
|
94
|
+
type: "RECIPE",
|
|
95
|
+
id: i._id,
|
|
96
|
+
amount: {
|
|
97
|
+
amount: 1,
|
|
98
|
+
precision: 0
|
|
99
|
+
}
|
|
100
|
+
})),
|
|
101
|
+
...b
|
|
102
|
+
];
|
|
103
|
+
p(a);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
return {
|
|
107
|
+
promptIngredientsBinding: _,
|
|
108
|
+
promptRecipesBinding: v
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
w as u
|
|
113
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-C1P22sj2.js";
|
|
2
|
+
import { u as S } from "./app-D38sV2ls.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l,
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, a1 as w, a4 as R } from "./app-D38sV2ls.js";
|
|
2
|
+
import { u as E } from "./supplier-CKXQmBZn.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -26,13 +26,13 @@ function _(n) {
|
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
28
|
function F(n, c, y = !1, f = !1) {
|
|
29
|
-
const
|
|
29
|
+
const a = E(), t = g();
|
|
30
30
|
t.watchLocation(async () => {
|
|
31
|
-
var
|
|
32
|
-
await
|
|
31
|
+
var p;
|
|
32
|
+
await a.readSuppliers();
|
|
33
33
|
const s = n();
|
|
34
|
-
if ((
|
|
35
|
-
const e = f ?
|
|
34
|
+
if ((p = s.supplier) != null && p._id || s.template) return;
|
|
35
|
+
const e = f ? a.suppliers[0] : a.businessSuppliers[0], r = (y ? t.locations.filter((i) => i.doc._id !== t.currentLocation.doc._id) : t.locations)[0];
|
|
36
36
|
c({
|
|
37
37
|
...s,
|
|
38
38
|
supplier: e ? d(e) : r ? _(r) : s.supplier
|
|
@@ -50,22 +50,22 @@ function F(n, c, y = !1, f = !1) {
|
|
|
50
50
|
set(s) {
|
|
51
51
|
const e = n() ?? {};
|
|
52
52
|
if (L.value === l.enum.purchase) {
|
|
53
|
-
const m = (f ?
|
|
53
|
+
const m = (f ? a.suppliers : a.businessSuppliers).find((N) => N._id === s);
|
|
54
54
|
c({
|
|
55
55
|
...e,
|
|
56
56
|
supplier: m ? d(m) : e.supplier
|
|
57
57
|
});
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const p = (y ? t.allLocations.filter(
|
|
61
61
|
(i) => i.doc._id !== t.currentLocation.doc._id
|
|
62
62
|
) : t.allLocations).find((i) => i.doc._id === s);
|
|
63
63
|
c({
|
|
64
64
|
...e,
|
|
65
|
-
supplier:
|
|
65
|
+
supplier: p ? _(p) : e.supplier
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
}), v = u(() =>
|
|
68
|
+
}), v = u(() => a.locationSuppliers.map(d)), T = u(() => a.businessSuppliers.map(d)), S = u(() => {
|
|
69
69
|
const s = [...v.value], e = [...T.value];
|
|
70
70
|
return f ? [...e, ...s] : e;
|
|
71
71
|
}), b = u(() => {
|
|
@@ -92,10 +92,10 @@ function F(n, c, y = !1, f = !1) {
|
|
|
92
92
|
value: e._id
|
|
93
93
|
}));
|
|
94
94
|
}), P = u(() => {
|
|
95
|
-
var r,
|
|
96
|
-
const s = (
|
|
95
|
+
var r, p;
|
|
96
|
+
const s = (p = (r = n()) == null ? void 0 : r.supplier) == null ? void 0 : p._id;
|
|
97
97
|
if (L.value === l.enum.purchase) {
|
|
98
|
-
const i =
|
|
98
|
+
const i = a.suppliers.find((m) => m._id === s);
|
|
99
99
|
return i ? d(i) : null;
|
|
100
100
|
}
|
|
101
101
|
const o = t.allLocations.find((i) => i.doc._id);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { R as e,
|
|
3
|
-
import { useCoreStore as b, useI18n as
|
|
4
|
-
import { u as
|
|
5
|
-
import { e as
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
1
|
+
import { computed as R, h as P } from "vue";
|
|
2
|
+
import { R as e, ae as O, af as A, ad as U } from "./app-D38sV2ls.js";
|
|
3
|
+
import { useCoreStore as b, useI18n as L } from "@feedmepos/mf-common";
|
|
4
|
+
import { u as y, I as E, e as v } from "./feature-CsPbMoeJ.js";
|
|
5
|
+
import { e as G, g, d as M, f as F, i as H } from "./vue-CVco8McV.js";
|
|
6
|
+
import { _ as K } from "./FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-CYkPbFSA.js";
|
|
7
|
+
const h = [
|
|
8
8
|
{
|
|
9
9
|
route: e.STOCK,
|
|
10
10
|
module: "Stock",
|
|
@@ -20,10 +20,10 @@ const S = [
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
route: e.UNIT_COST_HISTORY,
|
|
23
|
-
module: "
|
|
23
|
+
module: "Costing",
|
|
24
24
|
tier: "premium",
|
|
25
25
|
description: "Review unit-cost history and costing changes.",
|
|
26
|
-
featureKey: "
|
|
26
|
+
featureKey: "unit-cost"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
route: e.WASTAGE_TEMPLATE,
|
|
@@ -58,13 +58,6 @@ const S = [
|
|
|
58
58
|
tier: "standard",
|
|
59
59
|
description: "Manage ingredients and SKUs."
|
|
60
60
|
},
|
|
61
|
-
{
|
|
62
|
-
route: e.INGREDIENT_GROUP,
|
|
63
|
-
module: "Catalogue",
|
|
64
|
-
tier: "standard",
|
|
65
|
-
description: "Organize ingredients into reusable groups.",
|
|
66
|
-
featureKey: "ingredient-group"
|
|
67
|
-
},
|
|
68
61
|
{
|
|
69
62
|
route: e.RECIPE,
|
|
70
63
|
module: "Catalogue",
|
|
@@ -147,84 +140,90 @@ const S = [
|
|
|
147
140
|
tier: "standard",
|
|
148
141
|
description: "Inspect and manage integration records and synchronization."
|
|
149
142
|
}
|
|
150
|
-
],
|
|
151
|
-
|
|
152
|
-
var
|
|
143
|
+
], k = Object.fromEntries(
|
|
144
|
+
h.map((o) => {
|
|
145
|
+
var u;
|
|
146
|
+
const s = g(o.featureKey ?? "");
|
|
153
147
|
return [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
key:
|
|
157
|
-
minimumTier:
|
|
158
|
-
release:
|
|
148
|
+
o.route,
|
|
149
|
+
M({
|
|
150
|
+
key: o.route,
|
|
151
|
+
minimumTier: o.tier,
|
|
152
|
+
release: o.release ?? ((u = s == null ? void 0 : s.definition) == null ? void 0 : u.release),
|
|
153
|
+
flagKeys: s == null ? void 0 : s.flagKeys
|
|
159
154
|
})
|
|
160
155
|
];
|
|
161
156
|
})
|
|
162
157
|
);
|
|
163
|
-
function
|
|
164
|
-
return
|
|
158
|
+
function B(o) {
|
|
159
|
+
return h.find((s) => s.route === o) ?? null;
|
|
165
160
|
}
|
|
166
|
-
function
|
|
167
|
-
return
|
|
161
|
+
function D(o) {
|
|
162
|
+
return o ? k[o] ?? null : null;
|
|
168
163
|
}
|
|
169
|
-
function
|
|
170
|
-
const u =
|
|
171
|
-
return u ?
|
|
164
|
+
function x(o, s) {
|
|
165
|
+
const u = D(o);
|
|
166
|
+
return u ? G(u, s) : { enabled: !0, disabled: !1, stage: "ga", eligible: !0 };
|
|
172
167
|
}
|
|
173
|
-
const
|
|
174
|
-
(
|
|
168
|
+
const V = A.reduce(
|
|
169
|
+
(o, s) => {
|
|
175
170
|
var u;
|
|
176
|
-
return
|
|
171
|
+
return s.name && (o[s.name] = (u = s.meta) == null ? void 0 : u.validationManifest), o;
|
|
177
172
|
},
|
|
178
173
|
{}
|
|
179
174
|
);
|
|
180
|
-
function
|
|
181
|
-
const
|
|
175
|
+
function z() {
|
|
176
|
+
const o = b(), s = y(), { t: u } = L(), a = (t) => O(t, u), _ = R(
|
|
182
177
|
() => {
|
|
183
|
-
var
|
|
184
|
-
return ((
|
|
178
|
+
var t;
|
|
179
|
+
return ((t = o.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
|
|
185
180
|
}
|
|
186
|
-
),
|
|
187
|
-
const r =
|
|
188
|
-
return
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
return
|
|
192
|
-
}), I = (
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
181
|
+
), f = (t = []) => t.length === 0 ? !0 : U(t, _.value).granted, n = (t) => {
|
|
182
|
+
const r = V[t];
|
|
183
|
+
return f(r == null ? void 0 : r.requiredCaslPermissions);
|
|
184
|
+
}, c = (t) => {
|
|
185
|
+
var r;
|
|
186
|
+
return ((r = s.flags.find((d) => d.name === t)) == null ? void 0 : r.beta) !== !1 && !s.isFlagOn(t);
|
|
187
|
+
}, m = (t) => t.filter((r) => !r.hide).map((r) => r.children ? { ...r, children: m(r.children) } : r).filter((r) => !r.children || r.children.length > 0), I = (t) => t.map((r) => {
|
|
188
|
+
const { hide: d, children: i, ...l } = r, T = { ...l };
|
|
189
|
+
return i && (T.children = I(i)), T;
|
|
190
|
+
}), p = (t) => t.map((r) => {
|
|
191
|
+
const d = r.value, i = B(d), l = g((i == null ? void 0 : i.featureKey) ?? ""), T = l == null ? void 0 : l.category, C = i && (i.tier === "premium" || T === "beta" || l != null && l.deprecateSoon) ? () => P(K, {
|
|
192
|
+
tier: i.tier,
|
|
193
|
+
category: T,
|
|
194
|
+
deprecateSoon: l == null ? void 0 : l.deprecateSoon,
|
|
195
|
+
featureKey: i.featureKey
|
|
197
196
|
}) : void 0;
|
|
198
197
|
return {
|
|
199
198
|
...r,
|
|
200
|
-
badge:
|
|
201
|
-
children: r.children ?
|
|
199
|
+
badge: C,
|
|
200
|
+
children: r.children ? p(r.children) : void 0
|
|
202
201
|
};
|
|
203
|
-
}),
|
|
202
|
+
}), S = R(() => {
|
|
204
203
|
var d;
|
|
205
|
-
const
|
|
204
|
+
const t = [
|
|
206
205
|
{
|
|
207
|
-
label:
|
|
206
|
+
label: a(e.STOCK),
|
|
208
207
|
children: [
|
|
209
208
|
{
|
|
210
209
|
label: u("inventory.stock.stock_balance.title"),
|
|
211
210
|
value: e.STOCK,
|
|
212
|
-
hide: !
|
|
211
|
+
hide: !n(e.STOCK)
|
|
213
212
|
},
|
|
214
213
|
{
|
|
215
|
-
label:
|
|
214
|
+
label: a(e.PRODUCTION_RUN),
|
|
216
215
|
value: e.PRODUCTION_RUN,
|
|
217
|
-
hide: !
|
|
216
|
+
hide: !n(e.PRODUCTION_RUN) || F("production-runs").disabled
|
|
218
217
|
},
|
|
219
218
|
{
|
|
220
|
-
label:
|
|
221
|
-
value: e.
|
|
222
|
-
hide: !
|
|
219
|
+
label: a(e.WASTAGE_TEMPLATE),
|
|
220
|
+
value: e.WASTAGE_TEMPLATE,
|
|
221
|
+
hide: !n(e.WASTAGE_TEMPLATE) || c(E.inventory_pos_adjust_v2_wastage)
|
|
223
222
|
},
|
|
224
223
|
{
|
|
225
|
-
label:
|
|
226
|
-
value: e.
|
|
227
|
-
hide: !
|
|
224
|
+
label: a(e.UNIT_COST_HISTORY),
|
|
225
|
+
value: e.UNIT_COST_HISTORY,
|
|
226
|
+
hide: !n(e.UNIT_COST_HISTORY) || s.isModuleBeta(v.Costing) && !s.isModuleEnabled(v.Costing)
|
|
228
227
|
}
|
|
229
228
|
]
|
|
230
229
|
},
|
|
@@ -232,121 +231,116 @@ function Q() {
|
|
|
232
231
|
label: u("inventory.closing.title"),
|
|
233
232
|
children: [
|
|
234
233
|
{
|
|
235
|
-
label:
|
|
234
|
+
label: a(e.CLOSING_HISTORY),
|
|
236
235
|
value: e.CLOSING_HISTORY,
|
|
237
|
-
hide: !
|
|
236
|
+
hide: !n(e.CLOSING_HISTORY)
|
|
238
237
|
},
|
|
239
238
|
{
|
|
240
|
-
label:
|
|
239
|
+
label: a(e.CLOSING_TEMPLATE),
|
|
241
240
|
value: e.CLOSING_TEMPLATE,
|
|
242
|
-
hide: !
|
|
241
|
+
hide: !n(e.CLOSING_TEMPLATE) || c(E.inventory_pos_closing_v2)
|
|
243
242
|
},
|
|
244
243
|
{
|
|
245
|
-
label:
|
|
244
|
+
label: a(e.CLOSING_DRAFT),
|
|
246
245
|
value: e.CLOSING_DRAFT,
|
|
247
|
-
hide: !
|
|
246
|
+
hide: !n(e.CLOSING_DRAFT) || c(E.inventory_pos_closing_v2)
|
|
248
247
|
}
|
|
249
248
|
]
|
|
250
249
|
},
|
|
251
250
|
{
|
|
252
|
-
label:
|
|
251
|
+
label: a(e.INGREDIENTS),
|
|
253
252
|
value: e.INGREDIENTS,
|
|
254
|
-
hide: !
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
label: t(e.INGREDIENT_GROUP),
|
|
258
|
-
value: e.INGREDIENT_GROUP,
|
|
259
|
-
hide: !a(e.INGREDIENT_GROUP) || !n.enableIngredientGroup
|
|
253
|
+
hide: !n(e.INGREDIENTS)
|
|
260
254
|
},
|
|
261
255
|
{
|
|
262
|
-
label:
|
|
256
|
+
label: a(e.RECIPE),
|
|
263
257
|
value: e.RECIPE,
|
|
264
|
-
hide: !
|
|
258
|
+
hide: !n(e.RECIPE)
|
|
265
259
|
},
|
|
266
260
|
{
|
|
267
|
-
label:
|
|
261
|
+
label: a(e.UNIT),
|
|
268
262
|
value: e.UNIT,
|
|
269
|
-
hide: !
|
|
263
|
+
hide: !n(e.UNIT)
|
|
270
264
|
},
|
|
271
265
|
{
|
|
272
266
|
label: u("inventory.transfer.title"),
|
|
273
267
|
children: [
|
|
274
268
|
{
|
|
275
|
-
label:
|
|
269
|
+
label: a(e.RECEIVE_REQUEST),
|
|
276
270
|
value: e.RECEIVE_REQUEST,
|
|
277
|
-
hide: !
|
|
271
|
+
hide: !n(e.RECEIVE_REQUEST)
|
|
278
272
|
},
|
|
279
273
|
{
|
|
280
|
-
label:
|
|
274
|
+
label: a(e.RECEIVE_REQUEST_BULK),
|
|
281
275
|
value: e.RECEIVE_REQUEST_BULK,
|
|
282
|
-
hide: !
|
|
276
|
+
hide: !n(e.RECEIVE_REQUEST_BULK) || c(E.inventory_receive_request_beta)
|
|
283
277
|
},
|
|
284
278
|
{
|
|
285
|
-
label:
|
|
279
|
+
label: a(e.APPROVAL),
|
|
286
280
|
value: e.APPROVAL,
|
|
287
|
-
hide: !
|
|
281
|
+
hide: !n(e.APPROVAL)
|
|
288
282
|
},
|
|
289
283
|
{
|
|
290
|
-
label:
|
|
284
|
+
label: a(e.SURCHARGE),
|
|
291
285
|
value: e.SURCHARGE,
|
|
292
|
-
hide: !
|
|
286
|
+
hide: !n(e.SURCHARGE) || c(E.inventory_portal_surcharge)
|
|
293
287
|
},
|
|
294
288
|
{
|
|
295
|
-
label:
|
|
289
|
+
label: a(e.TRANSFER_TEMPLATE),
|
|
296
290
|
value: e.TRANSFER_TEMPLATE,
|
|
297
|
-
hide: !
|
|
291
|
+
hide: !n(e.TRANSFER_TEMPLATE) || c(E.inventory_portal_must_use_transfer_template) && !H("purchase-order-template")
|
|
298
292
|
}
|
|
299
293
|
]
|
|
300
294
|
},
|
|
301
295
|
{
|
|
302
|
-
label:
|
|
296
|
+
label: a(e.SUPPLIER),
|
|
303
297
|
value: e.SUPPLIER,
|
|
304
|
-
hide: !
|
|
298
|
+
hide: !n(e.SUPPLIER)
|
|
305
299
|
},
|
|
306
300
|
{
|
|
307
|
-
label:
|
|
301
|
+
label: a(e.WAREHOUSE),
|
|
308
302
|
value: e.WAREHOUSE,
|
|
309
|
-
hide: !
|
|
303
|
+
hide: !n(e.WAREHOUSE)
|
|
310
304
|
},
|
|
311
305
|
{
|
|
312
|
-
label:
|
|
306
|
+
label: a(e.PUBLISH),
|
|
313
307
|
value: e.PUBLISH,
|
|
314
|
-
hide: !
|
|
308
|
+
hide: !n(e.PUBLISH)
|
|
315
309
|
},
|
|
316
310
|
{
|
|
317
|
-
label:
|
|
311
|
+
label: a(e.IMPORT),
|
|
318
312
|
value: e.IMPORT,
|
|
319
|
-
hide: !
|
|
313
|
+
hide: !n(e.IMPORT) || c(E.inventory_bulk_import)
|
|
320
314
|
},
|
|
321
315
|
{
|
|
322
|
-
label:
|
|
316
|
+
label: a(e.INTEGRATION),
|
|
323
317
|
value: e.INTEGRATION,
|
|
324
|
-
hide: !
|
|
318
|
+
hide: !n(e.INTEGRATION)
|
|
325
319
|
},
|
|
326
320
|
{
|
|
327
|
-
label:
|
|
321
|
+
label: a(e.SETTINGS),
|
|
328
322
|
value: e.SETTINGS,
|
|
329
|
-
hide: !
|
|
323
|
+
hide: !n(e.SETTINGS)
|
|
330
324
|
}
|
|
331
|
-
], r = I(
|
|
332
|
-
return ((d =
|
|
333
|
-
(
|
|
325
|
+
], r = p(I(m(t)));
|
|
326
|
+
return ((d = o.currentBusiness.value) == null ? void 0 : d.menuVersion) === "v3" ? r.filter(
|
|
327
|
+
(i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
|
|
334
328
|
) : r;
|
|
335
|
-
}), N =
|
|
336
|
-
function
|
|
337
|
-
for (const
|
|
338
|
-
if (
|
|
339
|
-
const l = i
|
|
329
|
+
}), N = R(() => {
|
|
330
|
+
function t(d) {
|
|
331
|
+
for (const i of d)
|
|
332
|
+
if (i.children && i.children.length > 0) {
|
|
333
|
+
const l = t(i.children);
|
|
340
334
|
if (l) return l;
|
|
341
|
-
} else if (
|
|
342
|
-
return
|
|
335
|
+
} else if (i.value)
|
|
336
|
+
return i.value;
|
|
343
337
|
}
|
|
344
|
-
return
|
|
338
|
+
return t(S.value) ?? null;
|
|
345
339
|
});
|
|
346
|
-
return { menuItems:
|
|
340
|
+
return { menuItems: S, firstAccessibleRouteName: N };
|
|
347
341
|
}
|
|
348
342
|
export {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
343
|
+
x as e,
|
|
344
|
+
h as n,
|
|
345
|
+
z as u
|
|
352
346
|
};
|
|
@@ -14,13 +14,13 @@ export declare function useSnapshotDiff(): {
|
|
|
14
14
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
15
15
|
result: import("vue").Ref<{
|
|
16
16
|
diff: {
|
|
17
|
-
type: "
|
|
17
|
+
type: "del" | "add" | "same" | "skip";
|
|
18
18
|
text: string;
|
|
19
19
|
}[] | null;
|
|
20
20
|
conflict: boolean;
|
|
21
21
|
} | null, SnapshotResult | {
|
|
22
22
|
diff: {
|
|
23
|
-
type: "
|
|
23
|
+
type: "del" | "add" | "same" | "skip";
|
|
24
24
|
text: string;
|
|
25
25
|
}[] | null;
|
|
26
26
|
conflict: boolean;
|
|
@@ -362,7 +362,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
|
|
|
362
362
|
onLocationChanged: () => Promise<void>;
|
|
363
363
|
loadDraft: (draftId: string) => Promise<void>;
|
|
364
364
|
updateDraftRef: (draft: FdoClosingDraft) => Promise<void>;
|
|
365
|
-
}, "loading" | "
|
|
365
|
+
}, "loading" | "drafts" | "columnDefs" | "dateRange" | "tableKey">>, Pick<{
|
|
366
366
|
columnDefs: ColumnDef<DraftWithDisplay>[];
|
|
367
367
|
drafts: import("vue").Ref<{
|
|
368
368
|
_rev: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function draftStatusToClassName(status: F_CLOSING_DRAFT_STATUS): "fm-status-badge-
|
|
1
|
+
export declare function draftStatusToClassName(status: F_CLOSING_DRAFT_STATUS): "fm-status-badge-processing" | "fm-status-badge-draft" | "fm-status-badge-cancel" | "fm-status-badge-complete";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The bulk API must receive the entity alone: rows submitted whole persisted
|
|
5
5
|
* `errors: []` into the inventory doc's skus/recipes/units, which then
|
|
6
6
|
* surfaced in the changelog as a phantom "Errors" field on every later edit.
|
|
7
|
-
* One boundary, one strip: valid rows only, `errors` removed.
|
|
7
|
+
* One boundary, one strip: valid rows only, `errors`, `warnings` and `changes` removed.
|
|
8
8
|
*
|
|
9
9
|
* Untyped by necessity: the rows come off `importSummary` (a `ref<any>`), so a
|
|
10
10
|
* generic would only infer its own constraint and then fail against the typed
|
|
@@ -7,7 +7,6 @@ export interface InventoryBindingFormProps {
|
|
|
7
7
|
iframeMode?: boolean;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readonly?: boolean;
|
|
10
|
-
enableIngredientGroup?: boolean;
|
|
11
10
|
/** recipe amounts may be keyed in with decimals — off keeps them whole numbers */
|
|
12
11
|
allowRecipeDecimal?: boolean;
|
|
13
12
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function useInventoryBindingDialog(): {
|
|
2
2
|
promptIngredientsBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (bindings: FdoInventoryBinding[]) => void, excludeBindingId?: string, excludeIds?: string[]) => Promise<void>;
|
|
3
3
|
promptRecipesBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (mv: FdoInventoryBinding[]) => void, excludeIds?: string[]) => Promise<void>;
|
|
4
|
-
promptIngredientGroupsBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (mv: FdoInventoryBinding[]) => void, excludeIds?: string[]) => Promise<void>;
|
|
5
4
|
};
|
package/dist/views/ingredients/components/inventory-binding/recipe-amount-validation.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export interface InventoryBindingFormProps {
|
|
|
18
18
|
readonly?: boolean;
|
|
19
19
|
recipeBindingConfig?: InventoryRecipeBindingFormConfig;
|
|
20
20
|
skuBindingConfig?: InventorySkuBindingFormConfig;
|
|
21
|
-
enableIngredientGroup?: boolean;
|
|
22
21
|
/** recipe amounts may be keyed in with decimals — off keeps them whole numbers */
|
|
23
22
|
allowRecipeDecimal?: boolean;
|
|
24
23
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function useInventoryBindingDialogV2(): {
|
|
2
2
|
promptIngredientsBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (bindings: FdoInventoryBinding[]) => void, excludeBindingId?: string, excludeIds?: string[]) => Promise<void>;
|
|
3
3
|
promptRecipesBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (mv: FdoInventoryBinding[]) => void, excludeIds?: string[]) => Promise<void>;
|
|
4
|
-
promptIngredientGroupsBinding: (currentBindings: FdoInventoryBinding[], onUpdateInventoryBindings: (mv: FdoInventoryBinding[]) => void, excludeIds?: string[]) => Promise<void>;
|
|
5
4
|
};
|