@feedmepos/mf-inventory-portal 1.7.15-dev.3 → 1.7.16-dev.0
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-B1h66sv9.js → App-DFSszWS2.js} +7 -7
- package/dist/{ApprovalView-DKlVcGah.js → ApprovalView-sHjUr1tA.js} +9 -9
- package/dist/{BindingsDialog-CxHlh0kQ.js → BindingsDialog-B-64TNTI.js} +2 -2
- package/dist/{BindingsPicker-BiF5OZEi.js → BindingsPicker-Czn-jEHe.js} +2 -2
- package/dist/{BindingsTable-CygkFbyE.js → BindingsTable-CmB0b3ov.js} +4 -4
- package/dist/{BulkReceiveRequestView-Cf4IHMVn.js → BulkReceiveRequestView-BjGCwQiH.js} +19 -19
- package/dist/{ClosingDraftView-DFnGCAHQ.js → ClosingDraftView-DJLqwVmZ.js} +19 -19
- package/dist/{ClosingHistoryView-c51cSbco.js → ClosingHistoryView-Dj170bDN.js} +5 -5
- package/dist/{ClosingTemplateView-tKdJEP6p.js → ClosingTemplateView-DsfJz31T.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Br8lpoIh.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CitZIaJ7.js} +1 -1
- package/dist/{DefaultView-2PPCmcbd.js → DefaultView-CsI2C4Hr.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BKSQLP79.js → DeliveryOrderPrintPreview-8EupGZmv.js} +12 -12
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DNbWlGwL.js → EmailDialog.vue_vue_type_script_setup_true_lang-DX_o7mMG.js} +23 -23
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D-EePpPI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Vn94NCmp.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUrLcbIR.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-nq-MgcVV.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DAFZz6rG.js +243 -0
- package/dist/{FmMultiselectDialog-4K4U13Fa.js → FmMultiselectDialog-B5gQRKE6.js} +1 -1
- package/dist/{FmMultiselectDialog-CMUU4YMv.js → FmMultiselectDialog-CZr-dX4K.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CWPYtvi-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BtZOjqlQ.js} +66 -63
- package/dist/{ImportView-3BL5dbPC.js → ImportView-Htolj46U.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Gt9-RVuI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CTlKy5y-.js} +1 -1
- package/dist/{IngredientGroupView-CrQr-Wcc.js → IngredientGroupView-zZgJ3F9O.js} +5 -5
- package/dist/{IngredientsView-Co_ULkb6.js → IngredientsView-BhIIUpq5.js} +15 -15
- package/dist/{IntegrationExplorerView-Byz0ZiN7.js → IntegrationExplorerView-a7EEa4a4.js} +4 -4
- package/dist/{IntegrationView-BZvXCtuu.js → IntegrationView-Dbr7gTAK.js} +14 -14
- package/dist/{InventoryBindingForm-D7at6ntj.js → InventoryBindingForm-DSAHtnBI.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BfN7YCnp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQToFOhK.js} +5 -5
- package/dist/{InventoryBindingSummary-DIWHwJwb.js → InventoryBindingSummary-D_jEP9vJ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLIYFBaL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BNsoxRX6.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIjAFa7R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdqeMPWW.js} +1 -1
- package/dist/ProductionRunDetailView-DnIVaUbO.js +2284 -0
- package/dist/ProductionRunPreparePrintView-B7KsNPgV.js +34 -0
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DkvVIKgN.js +7543 -0
- package/dist/ProductionRunView-9tC9ljDT.js +911 -0
- package/dist/{PublishView-qzVWXhU2.js → PublishView-tOyFyzkR.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Dv107ZcE.js → PurchaseOrderPrintPreview-CKyZ5jco.js} +7 -7
- package/dist/{ReceiveRequestView-BoDIlSIR.js → ReceiveRequestView-Brjz7YtB.js} +14 -14
- package/dist/{RecipeView-CZExmd9h.js → RecipeView-DntISZwO.js} +17 -17
- package/dist/{SettingsView-JvHtBOeh.js → SettingsView-_uzG3DYW.js} +4 -4
- package/dist/{StockView-DtAlqzrF.js → StockView-D0ns42PP.js} +363 -363
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DWxA3wuR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-KlyTPTxq.js} +1 -1
- package/dist/{SupplierView-DIxYLwEk.js → SupplierView-Cg0BEv_J.js} +12 -12
- package/dist/{SurchargeView-BeMy7-Lu.js → SurchargeView-CtNt10E_.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrOVu6wg.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dm31p8O3.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Chhxtkov.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C4zoOWNW.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-2LCcSzCa.js → TransferDetails.vue_vue_type_script_setup_true_lang-nWON2kfX.js} +120 -120
- package/dist/{TransferTemplateView-DK_UHrGt.js → TransferTemplateView-DA-0VP3h.js} +20 -20
- package/dist/{UnitCostHistoryView-CbX9hG9F.js → UnitCostHistoryView-BIcZSZeY.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CDQ7c1Gl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2dmslg4.js} +4 -4
- package/dist/{UnitView-Cc_PTKs_.js → UnitView-B7hMqpmo.js} +7 -7
- package/dist/{WarehouseView-a-D3zs6h.js → WarehouseView-DQZhCobt.js} +334 -334
- package/dist/{WastageTemplateView-CFRi5Pvf.js → WastageTemplateView-Bg4oY2Vw.js} +14 -14
- package/dist/api/netsuite.d.ts +14 -8
- package/dist/api/production-run-error.d.ts +36 -0
- package/dist/api/production-run-error.spec.d.ts +1 -0
- package/dist/api/production-run.d.ts +80 -0
- package/dist/api/production-run.spec.d.ts +1 -0
- package/dist/{app-D8j93Oqu.js → app-CNKD3vjZ.js} +20007 -15586
- package/dist/app.d.ts +2998 -2
- package/dist/app.js +1 -1
- package/dist/{closing-template-C1b4O-N3.js → closing-template-BeegNS6p.js} +1 -1
- package/dist/components/FmUnitInput.spec.d.ts +1 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/composable/useNavigationMenu.production.spec.d.ts +1 -0
- package/dist/{date2-uOSplHdf.js → date2-B00CYgio.js} +1 -1
- package/dist/{dayjs.min-jzzpE5jZ.js → dayjs.min-DPQzGVmJ.js} +1 -1
- package/dist/{decimal-8I4iIvBr.js → decimal-mk8IRyTq.js} +2 -2
- package/dist/{defineDeepModel-DBat73w6.js → defineDeepModel-DPmaWR48.js} +5 -5
- package/dist/{duplicate-template-hyvvKKZn.js → duplicate-template-CMddJ7le.js} +1 -1
- package/dist/{feature-BtW2IuYH.js → feature-fzePklTK.js} +28 -28
- package/dist/{format-time-from-id-TNzYsGd2.js → format-time-from-id-CX7mBtQD.js} +1 -1
- package/dist/{format-unit-display-Bv9J30wI.js → format-unit-display-C-WI6eC7.js} +12 -12
- package/dist/{import-export.helper-xpElLH-b.js → import-export.helper-BXXH9AYn.js} +6 -6
- package/dist/{index-CCpcCOf2.js → index-BGVJky7a.js} +1 -1
- package/dist/{index-BH22SMzP.js → index-D1nPGK7U.js} +3 -3
- package/dist/{index-CTQTVKeu.js → index-DJQBhZfo.js} +1 -1
- package/dist/{inventory-core-dart.default-BfVqWKxc.js → inventory-core-dart.default-CSFkzl91.js} +2928 -6981
- package/dist/{lz-string-BXcuXXWX.js → lz-string-CzFlgjO3.js} +1 -1
- package/dist/{netsuite-Bawdsy6u.js → netsuite-yzjEuV4c.js} +5 -3
- package/dist/{number-q25U2atb.js → number-LQ8tdP_1.js} +6 -6
- package/dist/{predefined-templates-DFETDxr0.js → predefined-templates-Db7qjPHc.js} +1 -1
- package/dist/production-run-prepare-sheet-BVAUvVqt.js +17411 -0
- package/dist/{purchase-order-template-BTSTgbF-.js → purchase-order-template-bBTN12Ij.js} +1 -1
- package/dist/{recalculationUtils-B-9ZEV5d.js → recalculationUtils-DN6oOoMX.js} +1 -1
- package/dist/router/name.d.ts +3 -1
- package/dist/router/shared.production.spec.d.ts +1 -0
- package/dist/{rules-_M2oshOW.js → rules-BdR1TB3v.js} +2 -2
- package/dist/{stock-CUsHHW7_.js → stock-AwNCy6xY.js} +1 -1
- package/dist/{stock-BdtZ5yDl.js → stock-BgGttjDF.js} +3 -3
- package/dist/stores/feature.d.ts +1 -1
- package/dist/stores/integration/codemax.d.ts +1 -1
- package/dist/stores/inventory.d.ts +10 -8
- package/dist/stores/stock.d.ts +10 -8
- package/dist/style.css +1 -1
- package/dist/{supplier-By-0Dy62.js → supplier-BNoSljLB.js} +2 -2
- package/dist/{surcharge-60G2Qke7.js → surcharge-pUc66ZZJ.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DeGuMW0s.js → uom-rules-BP8Vk8Rl.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BVOtYoKp.js → use-ingredient-select-dialog-DTOzSrjt.js} +2 -2
- package/dist/{use-inventory-binding-dialog-CHm1Ezmr.js → use-inventory-binding-dialog-lHpBzqDy.js} +2 -2
- package/dist/{use-template-enabled-locations-C9vWaXj1.js → use-template-enabled-locations-DmCbj6aZ.js} +2 -2
- package/dist/{use-transfer-locations-VSzkSxBy.js → use-transfer-locations-BeARyv2s.js} +2 -2
- package/dist/{useHrmPermission-B48iHLre.js → useHrmPermission-DScCpS0P.js} +1 -1
- package/dist/{useNavigationMenu-DwRXSSh_.js → useNavigationMenu-B5pf21hS.js} +17 -17
- package/dist/{useSseClient-QeF0izVY.js → useSseClient-BPR5sQ_S.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +20 -16
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -32
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +20 -16
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +60 -48
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -8
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
- package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
- package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
- package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
- package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
- package/dist/views/production-run/ProductionRunView.vue.d.ts +2 -0
- package/dist/views/production-run/features/detail/ProductionRunActivityTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunActivityTab.vue.d.ts +15 -0
- package/dist/views/production-run/features/detail/ProductionRunHeader.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunHeader.vue.d.ts +67 -0
- package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.vue.d.ts +52 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +80 -0
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +1066 -0
- package/dist/views/production-run/features/detail/ProductionRunResultTable.spec.d.ts +1 -0
- package/dist/views/{production/ProductionBindingsCell.vue.d.ts → production-run/features/detail/ProductionRunResultTable.vue.d.ts} +10 -14
- package/dist/views/production-run/features/detail/ProductionRunTabs.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunTabs.vue.d.ts +47 -0
- package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.spec.d.ts +1 -0
- package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.vue.d.ts +15 -0
- package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +2098 -0
- package/dist/views/production-run/features/detail/use-production-run-detail.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +1020 -0
- package/dist/views/production-run/features/lifecycle/CancelRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +1020 -0
- package/dist/views/production-run/features/lifecycle/CloseRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +3573 -0
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +1026 -0
- package/dist/views/production-run/features/list/ProductionRunActionMenu.vue.d.ts +56 -0
- package/dist/views/production-run/features/list/ProductionRunActionMenuItem.spec.d.ts +1 -0
- package/dist/views/{production/ProductionCompletionDialog.vue.d.ts → production-run/features/list/ProductionRunActionMenuItem.vue.d.ts} +8 -21
- package/dist/views/production-run/features/list/ProductionRunActionsCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunActionsCell.vue.d.ts +20 -0
- package/dist/views/production-run/features/list/ProductionRunItemsCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunItemsCell.vue.d.ts +40 -0
- package/dist/views/production-run/features/list/ProductionRunNameCell.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunNameCell.vue.d.ts +43 -0
- package/dist/views/production-run/features/list/ProductionRunSortHeader.spec.d.ts +1 -0
- package/dist/views/production-run/features/list/ProductionRunSortHeader.vue.d.ts +25 -0
- package/dist/views/production-run/features/list/use-production-run-table.d.ts +18 -0
- package/dist/views/production-run/features/list/use-production-run-table.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchCard.vue.d.ts +70 -0
- package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
- package/dist/views/production-run/features/output/ProductionRunOutputTab.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunOutputTab.vue.d.ts +26 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
- package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.vue.d.ts +23 -0
- package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.vue.d.ts +33 -0
- package/dist/views/production-run/features/output/RecordOutputDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/output/RecordOutputDialog.vue.d.ts +20 -0
- package/dist/views/production-run/features/output/RecordOutputDialogProps.d.ts +28 -0
- package/dist/views/production-run/features/output/use-production-run-record-output.d.ts +245 -0
- package/dist/views/production-run/features/output/use-production-run-record-output.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunContributorBranch.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunContributorBranch.vue.d.ts +25 -0
- package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.vue.d.ts +21 -0
- package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.vue.d.ts +61 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +1022 -0
- package/dist/views/production-run/features/planning/ProductionRunFormDialogProps.d.ts +25 -0
- package/dist/views/production-run/features/planning/ProductionRunIngredientTree.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunIngredientTree.vue.d.ts +65 -0
- package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.vue.d.ts +15 -0
- package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.vue.d.ts +30 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanCard.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanCard.vue.d.ts +67 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanner.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +85 -0
- package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.vue.d.ts +78 -0
- package/dist/views/production-run/features/planning/production-run-frozen-ingredients.d.ts +49 -0
- package/dist/views/production-run/features/planning/production-run-frozen-ingredients.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +1525 -0
- package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts +1 -0
- package/dist/views/production-run/features/planning/use-production-run-form.d.ts +275 -0
- package/dist/views/production-run/features/planning/use-production-run-form.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.vue.d.ts +32 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialog.vue.d.ts +18 -0
- package/dist/views/production-run/features/prepare/PrepareRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/features/prepare/PrepareSheetDialog.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/PrepareSheetDialog.vue.d.ts +26 -0
- package/dist/views/production-run/features/prepare/ProductionRunPrepareSheet.vue.d.ts +16 -0
- package/dist/views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts +1 -0
- package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +18 -0
- package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +6 -0
- package/dist/views/production-run/shared/helpers/production-run-navigation.spec.d.ts +1 -0
- package/dist/views/production-run/shared/helpers/production-run-precision.helper.d.ts +31 -0
- package/dist/views/production-run/shared/helpers/production-run-quantity.helper.d.ts +57 -0
- package/dist/views/production-run/shared/helpers/production-run-quantity.helper.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-display.d.ts +187 -0
- package/dist/views/production-run/shared/model/production-run-display.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-item-ingredients.d.ts +22 -0
- package/dist/views/production-run/shared/model/production-run-list.d.ts +46 -0
- package/dist/views/production-run/shared/model/production-run-list.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-request-confirmation.d.ts +20 -0
- package/dist/views/production-run/shared/model/production-run-text-limit.d.ts +22 -0
- package/dist/views/production-run/shared/model/production-run-text-limit.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/production-run-unit-snapshot.d.ts +39 -0
- package/dist/views/production-run/shared/model/use-production-run-actions.d.ts +39 -0
- package/dist/views/production-run/shared/model/use-production-run-actions.spec.d.ts +1 -0
- package/dist/views/production-run/shared/model/use-production-run-ingredients.d.ts +658 -0
- package/dist/views/production-run/shared/model/use-production-run-ingredients.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunBanner.vue.d.ts +39 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/shared/ui/ProductionRunBindingsList.vue.d.ts +51 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.vue.d.ts +23 -0
- package/dist/views/production-run/shared/ui/ProductionRunCompactDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/shared/ui/ProductionRunCostingUnavailable.vue.d.ts +2 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialog.vue.d.ts +24 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialogProps.d.ts +15 -0
- package/dist/views/production-run/shared/ui/ProductionRunDialogSurface.vue.d.ts +33 -0
- package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.vue.d.ts +67 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +70 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +71 -0
- package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
- package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.vue.d.ts +46 -0
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +31 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionControls.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.vue.d.ts +37 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheet.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheet.vue.d.ts +77 -0
- package/dist/views/production-run/shared/ui/ProductionRunSideSheetSurface.vue.d.ts +52 -0
- package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.vue.d.ts +21 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.vue.d.ts +23 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +62 -0
- package/dist/views/production-run/shared/ui/ProductionRunUnitInput.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/ProductionRunUnitInput.vue.d.ts +34 -0
- package/dist/views/production-run/shared/ui/production-run-info.types.d.ts +11 -0
- package/dist/views/production-run/shared/ui/use-production-run-disclosure.d.ts +15 -0
- package/dist/views/production-run/shared/ui/use-production-run-disclosure.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.d.ts +17 -0
- package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.spec.d.ts +1 -0
- package/dist/views/production-run/shared/ui/use-production-run-scroll-hint.d.ts +9 -0
- package/dist/views/production-run/test-support/production-run.fixture.d.ts +88 -0
- package/dist/views/production-run/test-support/production-run.fixture.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/ProductionRunLoadBannerContract.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/production-run-deduction-parity.spec.d.ts +1 -0
- package/dist/views/production-run/tests/contracts/production-run-typography-contract.spec.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +12 -8
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-DLckaDV3.js → vue-i18n-DLJI5tIS.js} +395 -395
- package/dist/{xlsx.util-BjqUaVU_.js → xlsx.util-CZOxuAL-.js} +2 -2
- package/package.json +5 -4
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D6ehNvzX.js +0 -130
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpACpi1j.js +0 -120
- package/dist/ProductionView-Cg8tXEj7.js +0 -1441
- package/dist/api/production.d.ts +0 -30
- package/dist/views/production/ProductionDetailSheet.vue.d.ts +0 -42
- package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +0 -282
- package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +0 -282
- /package/dist/views/{production/ProductionView.vue.d.ts → production-run/ProductionRunPreparePrintView.vue.d.ts} +0 -0
package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import { ProductionRunOperations } from '@feedmepos/inventory-core-dart/production-run';
|
|
3
|
+
import type { WithRev } from '@/api/type';
|
|
4
|
+
import { type ProductionRunFailure } from '@/api/production-run-error';
|
|
5
|
+
import { type ProductionRunCommitRow } from './production-run-frozen-ingredients';
|
|
6
|
+
import { productionRunDisplayName } from '../../shared/model/production-run-list';
|
|
7
|
+
import { type ProductionRunQuantityModel, type ProductionRunUnitSnapshot } from '../../shared/model/production-run-unit-snapshot';
|
|
8
|
+
export type { ProductionRunCommitContributor, ProductionRunCommitRow } from './production-run-frozen-ingredients';
|
|
9
|
+
export interface ProductionRunPlannerItem {
|
|
10
|
+
/** The controller key, which is the sku id. */
|
|
11
|
+
key: string;
|
|
12
|
+
skuId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
code: string;
|
|
15
|
+
/** Base unit abbreviation — what on-hand and the ingredient tree are stated in. */
|
|
16
|
+
baseUnit: string;
|
|
17
|
+
/** The unit the quantity is currently entered in. */
|
|
18
|
+
enteredUnit: string;
|
|
19
|
+
onHand: number | null;
|
|
20
|
+
/** The requested quantity converted to the sku's base unit. */
|
|
21
|
+
baseQuantity: number;
|
|
22
|
+
sku: FdoInventorySku;
|
|
23
|
+
model: ProductionRunQuantityModel;
|
|
24
|
+
bindingCount: number;
|
|
25
|
+
bindingLines: {
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
amount: number;
|
|
29
|
+
unit: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|
|
32
|
+
export interface ProductionRunHistoricalItem {
|
|
33
|
+
key: string;
|
|
34
|
+
skuId: string;
|
|
35
|
+
name: string;
|
|
36
|
+
code: string;
|
|
37
|
+
enteredUnit: string;
|
|
38
|
+
onHand: null;
|
|
39
|
+
/** Null when the stored snapshot no longer belongs to the live base-unit family. */
|
|
40
|
+
baseUnit: string | null;
|
|
41
|
+
baseQuantity: number | null;
|
|
42
|
+
model: ProductionRunQuantityModel;
|
|
43
|
+
bindingCount: 0;
|
|
44
|
+
bindingLines: [];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Outputs that will draw no ingredients: a valid positive authored quantity,
|
|
48
|
+
* and nothing bound.
|
|
49
|
+
*
|
|
50
|
+
* Both halves are load-bearing. Deriving this from "contributes to no commit
|
|
51
|
+
* row" instead — which is what the planner and the Prepare dialog each did
|
|
52
|
+
* independently — conflates it with a quantity of zero, since a zero-quantity
|
|
53
|
+
* item produces no rows either. That made "No quantities set" unreachable
|
|
54
|
+
* through the planner: any selected item, unquantified, was reported as
|
|
55
|
+
* committing nothing.
|
|
56
|
+
*
|
|
57
|
+
* This classification deliberately reads the raw authored amount rather than
|
|
58
|
+
* `baseQuantity`. Base conversion is zero when a unit snapshot is missing or
|
|
59
|
+
* stale, but that is a separate validation failure: it must not hide the fact
|
|
60
|
+
* that a positively quantified output has no ingredient bindings. Submission
|
|
61
|
+
* remains gated on a valid matching snapshot below.
|
|
62
|
+
*/
|
|
63
|
+
export declare function unboundOutputNames(items: ProductionRunPlannerItem[]): string[];
|
|
64
|
+
export interface ProductionRunShortage {
|
|
65
|
+
name: string;
|
|
66
|
+
/** How far below zero the projected balance lands. */
|
|
67
|
+
over: number;
|
|
68
|
+
unit: string;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* One sku the seeded document listed more than once, and the single line those
|
|
72
|
+
* lines were combined into.
|
|
73
|
+
*
|
|
74
|
+
* A fact about the seed, frozen at `seedFrom`: it says what the DOCUMENT held,
|
|
75
|
+
* so later edits to the combined line must not rewrite it. Quantities are
|
|
76
|
+
* resolved to plain numbers here, each beside the unit it was stored in — the
|
|
77
|
+
* point of showing them is that they read back the way the run was written.
|
|
78
|
+
*/
|
|
79
|
+
export interface ProductionRunDuplicateMerge {
|
|
80
|
+
skuId: string;
|
|
81
|
+
name: string;
|
|
82
|
+
/** The stored lines, in document order, each in the unit it was saved with. */
|
|
83
|
+
sources: {
|
|
84
|
+
amount: number;
|
|
85
|
+
unit: string;
|
|
86
|
+
}[];
|
|
87
|
+
/** What they add up to, or null when the sources name different base-unit families. */
|
|
88
|
+
amount: number | null;
|
|
89
|
+
unit: string | null;
|
|
90
|
+
}
|
|
91
|
+
export interface ProductionRunSaveAndRequestResult {
|
|
92
|
+
run: WithRev<FdoProductionRun>;
|
|
93
|
+
/** False when the draft was saved but `request` failed — the save persists. */
|
|
94
|
+
requested: boolean;
|
|
95
|
+
failure: ProductionRunFailure | null;
|
|
96
|
+
}
|
|
97
|
+
export declare function useProductionRunForm(): {
|
|
98
|
+
loading: Ref<boolean, boolean>;
|
|
99
|
+
refreshingStock: Ref<boolean, boolean>;
|
|
100
|
+
loadFailure: Ref<{
|
|
101
|
+
kind: import("@/api/production-run-error").ProductionRunFailureKind;
|
|
102
|
+
message: string;
|
|
103
|
+
retrySameKey: boolean;
|
|
104
|
+
mustReload: boolean;
|
|
105
|
+
shortages: {
|
|
106
|
+
skuId: string;
|
|
107
|
+
baseUnit: {
|
|
108
|
+
name: string;
|
|
109
|
+
id: string;
|
|
110
|
+
abbrev: string;
|
|
111
|
+
conversion: {
|
|
112
|
+
amount: number;
|
|
113
|
+
precision: number;
|
|
114
|
+
};
|
|
115
|
+
baseUnitId: string;
|
|
116
|
+
};
|
|
117
|
+
projectedBalance: {
|
|
118
|
+
amount: number;
|
|
119
|
+
precision: number;
|
|
120
|
+
};
|
|
121
|
+
}[];
|
|
122
|
+
} | null, ProductionRunFailure | {
|
|
123
|
+
kind: import("@/api/production-run-error").ProductionRunFailureKind;
|
|
124
|
+
message: string;
|
|
125
|
+
retrySameKey: boolean;
|
|
126
|
+
mustReload: boolean;
|
|
127
|
+
shortages: {
|
|
128
|
+
skuId: string;
|
|
129
|
+
baseUnit: {
|
|
130
|
+
name: string;
|
|
131
|
+
id: string;
|
|
132
|
+
abbrev: string;
|
|
133
|
+
conversion: {
|
|
134
|
+
amount: number;
|
|
135
|
+
precision: number;
|
|
136
|
+
};
|
|
137
|
+
baseUnitId: string;
|
|
138
|
+
};
|
|
139
|
+
projectedBalance: {
|
|
140
|
+
amount: number;
|
|
141
|
+
precision: number;
|
|
142
|
+
};
|
|
143
|
+
}[];
|
|
144
|
+
} | null>;
|
|
145
|
+
submitting: Ref<boolean, boolean>;
|
|
146
|
+
dirty: Ref<boolean, boolean>;
|
|
147
|
+
runName: Ref<string, string>;
|
|
148
|
+
instructions: Ref<string, string>;
|
|
149
|
+
createOperationKey: Ref<string | null, string | null>;
|
|
150
|
+
items: import("vue").ComputedRef<ProductionRunPlannerItem[]>;
|
|
151
|
+
commits: import("vue").ComputedRef<ProductionRunCommitRow[]>;
|
|
152
|
+
requestedIngredientRows: (run: FdoProductionRun) => ProductionRunCommitRow[];
|
|
153
|
+
proposedIngredientRows: (run: FdoProductionRun, committed: Parameters<typeof ProductionRunOperations.proposeMovement>[0]['committed']) => ProductionRunCommitRow[];
|
|
154
|
+
shortages: import("vue").ComputedRef<ProductionRunShortage[]>;
|
|
155
|
+
candidates: import("vue").ComputedRef<{
|
|
156
|
+
sku: {
|
|
157
|
+
trackingMeasurement?: string | null | undefined;
|
|
158
|
+
isInactive?: boolean | null | undefined;
|
|
159
|
+
convert?: {
|
|
160
|
+
measurement?: string | null | undefined;
|
|
161
|
+
inventoryBindings?: {
|
|
162
|
+
measurement?: {
|
|
163
|
+
name: string;
|
|
164
|
+
id: string;
|
|
165
|
+
abbrev: string;
|
|
166
|
+
conversion: {
|
|
167
|
+
amount: number;
|
|
168
|
+
precision: number;
|
|
169
|
+
};
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
rules?: Record<string, any> | null | undefined;
|
|
172
|
+
alternatives?: {
|
|
173
|
+
default?: boolean | null | undefined;
|
|
174
|
+
trackingMeasurement?: string | null | undefined;
|
|
175
|
+
priority?: number | null | undefined;
|
|
176
|
+
_id: string;
|
|
177
|
+
}[] | null | undefined;
|
|
178
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
179
|
+
amount: {
|
|
180
|
+
amount: number;
|
|
181
|
+
precision: number;
|
|
182
|
+
};
|
|
183
|
+
id: string;
|
|
184
|
+
}[] | null | undefined;
|
|
185
|
+
} | null | undefined;
|
|
186
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
187
|
+
defaultCost?: {
|
|
188
|
+
measurement?: {
|
|
189
|
+
name: string;
|
|
190
|
+
id: string;
|
|
191
|
+
abbrev: string;
|
|
192
|
+
conversion: {
|
|
193
|
+
amount: number;
|
|
194
|
+
precision: number;
|
|
195
|
+
};
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
costPerUnit: {
|
|
198
|
+
currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
|
|
199
|
+
amount: number;
|
|
200
|
+
precision: number;
|
|
201
|
+
};
|
|
202
|
+
} | null | undefined;
|
|
203
|
+
operationalGroup?: string | null | undefined;
|
|
204
|
+
thresholds?: {
|
|
205
|
+
low: number;
|
|
206
|
+
mid: number;
|
|
207
|
+
} | null | undefined;
|
|
208
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
209
|
+
unit: {
|
|
210
|
+
_id: string;
|
|
211
|
+
name: string;
|
|
212
|
+
abbrev: string;
|
|
213
|
+
precision: number;
|
|
214
|
+
measurements: {
|
|
215
|
+
name: string;
|
|
216
|
+
id: string;
|
|
217
|
+
abbrev: string;
|
|
218
|
+
conversion: {
|
|
219
|
+
amount: number;
|
|
220
|
+
precision: number;
|
|
221
|
+
};
|
|
222
|
+
}[];
|
|
223
|
+
};
|
|
224
|
+
code: string;
|
|
225
|
+
_id: string;
|
|
226
|
+
name: string;
|
|
227
|
+
};
|
|
228
|
+
hasBindings: boolean;
|
|
229
|
+
onHand: number;
|
|
230
|
+
}[]>;
|
|
231
|
+
projectionFailed: Ref<boolean, boolean>;
|
|
232
|
+
duplicateMerges: Ref<{
|
|
233
|
+
skuId: string;
|
|
234
|
+
name: string;
|
|
235
|
+
sources: {
|
|
236
|
+
amount: number;
|
|
237
|
+
unit: string;
|
|
238
|
+
}[];
|
|
239
|
+
amount: number | null;
|
|
240
|
+
unit: string | null;
|
|
241
|
+
}[], ProductionRunDuplicateMerge[] | {
|
|
242
|
+
skuId: string;
|
|
243
|
+
name: string;
|
|
244
|
+
sources: {
|
|
245
|
+
amount: number;
|
|
246
|
+
unit: string;
|
|
247
|
+
}[];
|
|
248
|
+
amount: number | null;
|
|
249
|
+
unit: string | null;
|
|
250
|
+
}[]>;
|
|
251
|
+
canSubmit: import("vue").ComputedRef<boolean>;
|
|
252
|
+
canRequest: import("vue").ComputedRef<boolean>;
|
|
253
|
+
load: (options?: {
|
|
254
|
+
livePlan?: boolean;
|
|
255
|
+
}) => Promise<boolean>;
|
|
256
|
+
loadCatalogue: () => Promise<boolean>;
|
|
257
|
+
historicalItems: (run: FdoProductionRun) => ProductionRunHistoricalItem[];
|
|
258
|
+
refreshStock: () => Promise<boolean>;
|
|
259
|
+
retryProjection: () => void;
|
|
260
|
+
reset: () => void;
|
|
261
|
+
discard: () => void;
|
|
262
|
+
seedFrom: (run: FdoProductionRun) => void;
|
|
263
|
+
addItems: (skuIds: string[]) => void;
|
|
264
|
+
removeItem: (key: string) => void;
|
|
265
|
+
clearAll: () => void;
|
|
266
|
+
duplicateItems: (source: FdoProductionRun, skuIds: string[], mode: 'add' | 'replace', measurementOverrides?: Record<string, ProductionRunUnitSnapshot>) => void;
|
|
267
|
+
updateItemModel: (key: string, model: ProductionRunQuantityModel) => void;
|
|
268
|
+
updateRunName: (value: string) => void;
|
|
269
|
+
updateInstructions: (value: string) => void;
|
|
270
|
+
createDraft: () => Promise<WithRev<FdoProductionRun>>;
|
|
271
|
+
updateDraft: (id: string) => Promise<WithRev<FdoProductionRun>>;
|
|
272
|
+
createAndRequest: () => Promise<ProductionRunSaveAndRequestResult>;
|
|
273
|
+
updateAndRequest: (id: string) => Promise<ProductionRunSaveAndRequestResult>;
|
|
274
|
+
displayName: typeof productionRunDisplayName;
|
|
275
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ProductionRunCommitRow } from '../planning/use-production-run-form';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
shortageCount: number;
|
|
4
|
+
shortages?: ProductionRunCommitRow[] | undefined;
|
|
5
|
+
shortagesAcknowledged: boolean;
|
|
6
|
+
submitting: boolean;
|
|
7
|
+
canConfirm: boolean;
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
cancel: () => void;
|
|
10
|
+
confirm: () => void;
|
|
11
|
+
"update:shortagesAcknowledged": (value: boolean) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
shortageCount: number;
|
|
14
|
+
shortages?: ProductionRunCommitRow[] | undefined;
|
|
15
|
+
shortagesAcknowledged: boolean;
|
|
16
|
+
submitting: boolean;
|
|
17
|
+
canConfirm: boolean;
|
|
18
|
+
}>>> & Readonly<{
|
|
19
|
+
onCancel?: (() => any) | undefined;
|
|
20
|
+
onConfirm?: (() => any) | undefined;
|
|
21
|
+
"onUpdate:shortagesAcknowledged"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PrepareRunDialogProps } from './PrepareRunDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PrepareRunDialogProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
+
"update:show": (value: boolean) => void;
|
|
4
|
+
issued: (result: import("@/api/production-run").ProductionRunDocument) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<PrepareRunDialogProps>>> & Readonly<{
|
|
6
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
7
|
+
onIssued?: ((result: import("@/api/production-run").ProductionRunDocument) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { PrepareProductionRunResult } from '@/api/production-run';
|
|
2
|
+
import type { ProductionRunCommitRow } from '../planning/use-production-run-form';
|
|
3
|
+
import type { ProductionRunQuantityModel } from '../../shared/model/production-run-unit-snapshot';
|
|
4
|
+
export interface PrepareRunDialogProps {
|
|
5
|
+
show: boolean;
|
|
6
|
+
run: FdoProductionRun;
|
|
7
|
+
locationName: string | null;
|
|
8
|
+
/** Page-level utility may jump straight to the same frozen print review. */
|
|
9
|
+
initialView?: 'review' | 'print';
|
|
10
|
+
}
|
|
11
|
+
/** Frozen review state shared by confirmation, print and the eventual write. */
|
|
12
|
+
export interface PrepareRunReview {
|
|
13
|
+
items: {
|
|
14
|
+
skuId: string;
|
|
15
|
+
name: string;
|
|
16
|
+
code: string;
|
|
17
|
+
unit: string;
|
|
18
|
+
precision: number | null;
|
|
19
|
+
model: ProductionRunQuantityModel;
|
|
20
|
+
}[];
|
|
21
|
+
ingredients: (ProductionRunCommitRow & {
|
|
22
|
+
precision: number | null;
|
|
23
|
+
})[];
|
|
24
|
+
}
|
|
25
|
+
export interface PrepareRunDialogEvents {
|
|
26
|
+
(event: 'update:show', value: boolean): void;
|
|
27
|
+
/** Stock moved. Carries the warnings the caller must keep on screen. */
|
|
28
|
+
(event: 'issued', result: PrepareProductionRunResult): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { PrepareRunReview } from './PrepareRunDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
show: boolean;
|
|
4
|
+
run: FdoProductionRun;
|
|
5
|
+
locationName: string | null;
|
|
6
|
+
review: PrepareRunReview;
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:show": (value: boolean) => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
show: boolean;
|
|
11
|
+
run: FdoProductionRun;
|
|
12
|
+
locationName: string | null;
|
|
13
|
+
review: PrepareRunReview;
|
|
14
|
+
}>>> & Readonly<{
|
|
15
|
+
"onUpdate:show"?: ((value: boolean) => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ProductionRunPrepareSheetDocument } from './production-run-prepare-sheet';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
document: ProductionRunPrepareSheetDocument;
|
|
4
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
document: ProductionRunPrepareSheetDocument;
|
|
6
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
package/dist/views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PrepareRunReview } from './PrepareRunDialogProps';
|
|
2
|
+
export interface ProductionRunPrepareSheetDocument {
|
|
3
|
+
title: string;
|
|
4
|
+
runNo: FdoProductionRun['runNo'];
|
|
5
|
+
instructions: string | null;
|
|
6
|
+
locationName: string | null;
|
|
7
|
+
updatedAt: string;
|
|
8
|
+
review: PrepareRunReview;
|
|
9
|
+
}
|
|
10
|
+
/** Remove only malformed or expired hand-offs owned by this feature. */
|
|
11
|
+
export declare function purgePrepareSheets(storage?: Storage, now?: number): void;
|
|
12
|
+
/** Remove exactly one hand-off; never scan or mutate unrelated browser storage. */
|
|
13
|
+
export declare function removePrepareSheet(id: string, storage?: Storage): void;
|
|
14
|
+
/** Store one print hand-off without putting its operational contents in the URL. */
|
|
15
|
+
export declare function storePrepareSheet(document: ProductionRunPrepareSheetDocument, storage?: Storage, now?: number): string;
|
|
16
|
+
/** Consume the hand-off once. Malformed, missing and expired entries all fail closed. */
|
|
17
|
+
export declare function readPrepareSheet(id: string, storage?: Storage, now?: number): ProductionRunPrepareSheetDocument;
|
|
18
|
+
export declare function openPrepareSheet(document: ProductionRunPrepareSheetDocument): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { RouteLocationRaw } from 'vue-router';
|
|
2
|
+
export declare function productionRunListRoute(search?: string): RouteLocationRaw;
|
|
3
|
+
export declare function productionRunExitRoute(featureEnabled: boolean, search?: string): RouteLocationRaw;
|
|
4
|
+
export declare function productionRunDetailRoute(id: string, search?: string): RouteLocationRaw;
|
|
5
|
+
/** Keep the live shell context and replace only this feature's hand-off key. */
|
|
6
|
+
export declare function productionRunPrepareSheetUrl(id: string, currentHref?: string): URL;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How many decimal places a sku's quantities are meaningful to, in its BASE
|
|
3
|
+
* unit.
|
|
4
|
+
*
|
|
5
|
+
* The figure belongs to the unit — `FdoInventoryUnit.precision`, the same field
|
|
6
|
+
* the unit editor writes and every quantity input already validates against, so
|
|
7
|
+
* a display that rounds harder than the form allows is a display that hides a
|
|
8
|
+
* quantity someone was permitted to enter. Reached through
|
|
9
|
+
* `getAllowedPrecision` rather than off the field directly, because that helper
|
|
10
|
+
* is the portal's one statement of what "allowed precision" means and it is
|
|
11
|
+
* where the measurement-relative rule lives should a caller ever need it.
|
|
12
|
+
*
|
|
13
|
+
* **No measurement argument on purpose.** Everything the ingredient tree renders
|
|
14
|
+
* has already been converted to base units by the projection, so the base
|
|
15
|
+
* unit's own precision is the right increment. Passing a measurement here would
|
|
16
|
+
* answer a different question — how finely a quantity may be TYPED in grams —
|
|
17
|
+
* and silently widen every figure on the screen.
|
|
18
|
+
*
|
|
19
|
+
* Resolution is by sku rather than by unit abbrev: two units can print the same
|
|
20
|
+
* short string, and the projection rows carry ids, not units.
|
|
21
|
+
*
|
|
22
|
+
* Null when the sku is not in the catalogue — an unresolved unit, not a unit
|
|
23
|
+
* with no decimals. Callers hand that straight to `formatQuantity`, which falls
|
|
24
|
+
* back to what this module rendered at before precision was unit-derived.
|
|
25
|
+
*/
|
|
26
|
+
export declare function quantityPrecisionOf(sku: FdoInventorySku): number;
|
|
27
|
+
/**
|
|
28
|
+
* The same rule, reached by id, for the surfaces that hold projection rows
|
|
29
|
+
* rather than skus. {@link quantityPrecisionOf} is the rule; this is the lookup.
|
|
30
|
+
*/
|
|
31
|
+
export declare function useQuantityPrecision(): (skuId: string) => number | null;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
2
|
+
/**
|
|
3
|
+
* What the run was issued against, per production item, summed across every
|
|
4
|
+
* issuance. This — not `requestedAmount` — is the denominator of every figure
|
|
5
|
+
* after issuance: a run that committed more than it requested is not at 120%
|
|
6
|
+
* of anything.
|
|
7
|
+
*/
|
|
8
|
+
export declare function committedBySku(run: FdoProductionRun): Record<string, number>;
|
|
9
|
+
/** Exact base-unit commitments for callers that must retain decimal precision. */
|
|
10
|
+
export declare function committedBaseDecimalsBySku(run: FdoProductionRun): Record<string, FdoDecimal>;
|
|
11
|
+
/** What the run has produced, per production item, summed across every batch. */
|
|
12
|
+
export declare function producedBySku(run: FdoProductionRun): Record<string, number>;
|
|
13
|
+
/** Total committed across production items. Zero on a run that has not issued. */
|
|
14
|
+
export declare function committedTotal(run: FdoProductionRun): number;
|
|
15
|
+
/** Total produced across production items. */
|
|
16
|
+
export declare function producedTotal(run: FdoProductionRun): number;
|
|
17
|
+
/**
|
|
18
|
+
* Committed minus produced per production item, floored at 0 — what the run
|
|
19
|
+
* still owes.
|
|
20
|
+
*
|
|
21
|
+
* Keyed on the COMMITTED items: a sku produced but never committed to (a
|
|
22
|
+
* byproduct, once those land) owes nothing and would otherwise appear as a
|
|
23
|
+
* negative remainder. Overproduction clamps to 0 for the same reason — it
|
|
24
|
+
* leaves nothing unaccounted.
|
|
25
|
+
*/
|
|
26
|
+
export declare function remainingBySku(run: FdoProductionRun): Record<string, number>;
|
|
27
|
+
/**
|
|
28
|
+
* Output attainment at 100%: every committed item produced in full.
|
|
29
|
+
*
|
|
30
|
+
* Asked of core rather than derived from the totals above, because the totals
|
|
31
|
+
* are cross-sku SUMS and this is a per-sku question. A two-output run that made
|
|
32
|
+
* 15 of one and 5 of another against 10 each sums to 20 of 20 and is not at
|
|
33
|
+
* target; core compares item by item.
|
|
34
|
+
*
|
|
35
|
+
* It is **attainment, not yield** — the denominator is what the run committed
|
|
36
|
+
* to make, not the ingredient quantity issued. And it decides nothing: the run
|
|
37
|
+
* stays open until someone closes it. Callers use it to offer closure, to show
|
|
38
|
+
* the persistent target-reached state, and to derive a closed run's outcome.
|
|
39
|
+
*/
|
|
40
|
+
export declare function isAtTarget(run: FdoProductionRun): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* One stored amount in base units, kept as a decimal.
|
|
43
|
+
*
|
|
44
|
+
* Prefer {@link baseAmount} for anything that renders. This exists for the one
|
|
45
|
+
* case that must NOT flatten: handing a converted figure back to a core
|
|
46
|
+
* controller, where going through `number` would re-derive the precision the
|
|
47
|
+
* decimal already carries.
|
|
48
|
+
*/
|
|
49
|
+
export declare function baseDecimal(amount: FdoDecimal, measurement: FdoProductionUnitSnapshot): FdoDecimal;
|
|
50
|
+
/** One production amount in base units. Its durable snapshot is always explicit. */
|
|
51
|
+
export declare function baseAmount(amount: FdoDecimal, measurement: FdoProductionUnitSnapshot): number;
|
|
52
|
+
/**
|
|
53
|
+
* Legacy inventory adjustments predate Production's required snapshot and may
|
|
54
|
+
* still encode base as null. Keep that compatibility at the adjustment read
|
|
55
|
+
* edge; durable Production quantities must use {@link baseAmount} instead.
|
|
56
|
+
*/
|
|
57
|
+
export declare function adjustmentBaseAmount(amount: FdoDecimal, measurement?: FdoUnitMeasurement | null): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|