@feedmepos/mf-inventory-portal 1.7.13-dev.3 → 1.7.13-dev.6
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-OcI38sEw.js → App-JqoqVVdP.js} +471 -460
- package/dist/{ApprovalView-qTRrEvTp.js → ApprovalView-JiWbXkVU.js} +9 -9
- package/dist/{BindingsDialog-G8tFbm7v.js → BindingsDialog-BK4xofWu.js} +2 -2
- package/dist/{BindingsPicker-DB3mjjVh.js → BindingsPicker-CLMsAseG.js} +2 -2
- package/dist/{BindingsTable-DLf8XLyn.js → BindingsTable-DKrBQTxN.js} +4 -4
- package/dist/{BulkReceiveRequestView-2AWitWXo.js → BulkReceiveRequestView-bttHw2ub.js} +19 -19
- package/dist/{ClosingDraftView-c25_GCaw.js → ClosingDraftView-Bhdwo-n8.js} +19 -19
- package/dist/ClosingHistoryView-DrQPWnr6.js +761 -0
- package/dist/{ClosingTemplateView-BzaVZ1Mf.js → ClosingTemplateView-UkwXCrz_.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Dlh4ThV0.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DNtMdFVF.js} +1 -1
- package/dist/{DefaultView-e9RSHejw.js → DefaultView-sGrYeUGh.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BSbiO2Vd.js → DeliveryOrderPrintPreview-CVnqC9Jy.js} +10 -10
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-D_8msVau.js → EmailDialog.vue_vue_type_script_setup_true_lang-CYtHQ2Ru.js} +2250 -2250
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DUjcebMR.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BA6stZHF.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtfiRgsD.js} +2 -2
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yBIbCJYy.js +243 -0
- package/dist/{FmMultiselectDialog-DEg8KNwS.js → FmMultiselectDialog-A9VIMLGn.js} +1 -1
- package/dist/{FmMultiselectDialog-DsA4X91e.js → FmMultiselectDialog-DL00XnUc.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CPlywwpg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RJKOB-cm.js} +66 -63
- package/dist/{ImportView-D9QCHpOd.js → ImportView-DPrLnJO8.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C7iOvnZV.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-IAQyFPmi.js} +1 -1
- package/dist/{IngredientGroupView-BRH304Pf.js → IngredientGroupView-DyhC6lJ8.js} +5 -5
- package/dist/{IngredientsView-BUGYJ6cN.js → IngredientsView-P4AqPikD.js} +15 -15
- package/dist/{IntegrationExplorerView-Z3_x4C5I.js → IntegrationExplorerView-CujhjHHV.js} +4 -4
- package/dist/{IntegrationView-ClWTgLai.js → IntegrationView-CFqsZyzI.js} +3077 -2998
- package/dist/{InventoryBindingForm-B7tGISLQ.js → InventoryBindingForm-B0NJ8H51.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DOWePtXq.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-bbIpFo_4.js} +5 -5
- package/dist/{InventoryBindingSummary-j3YGRPOt.js → InventoryBindingSummary-CBgO_tCz.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CPpO-iyC.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DuuXzyKH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BP8f4hlw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C418f34P.js} +1 -1
- package/dist/ProductionRunDetailView-tSByC3nQ.js +5165 -0
- package/dist/ProductionRunPreparePrintView-zPAATL-n.js +31 -0
- package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DgtZJgrs.js +3506 -0
- package/dist/ProductionRunView-BsP02jgC.js +815 -0
- package/dist/{PublishView-CL747KZU.js → PublishView-Cf0Tn7xt.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C5AB03ht.js → PurchaseOrderPrintPreview-BTlSyQqZ.js} +6 -6
- package/dist/{ReceiveRequestView-BDy40tBg.js → ReceiveRequestView-9LFOl2hJ.js} +14 -14
- package/dist/{RecipeView-BbBZGBPb.js → RecipeView-C4KxMCpQ.js} +17 -17
- package/dist/{SettingsView-rcalnrlB.js → SettingsView-ShrefnTM.js} +4 -4
- package/dist/{StockView-BSLGMo1e.js → StockView-BVd6f7Fr.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeEq2HQe.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-rB7p9o.js} +1 -1
- package/dist/{SupplierView-DOq8oosU.js → SupplierView-DZSY6_eU.js} +12 -12
- package/dist/{SurchargeView-BK9Yakao.js → SurchargeView-UUYoT8MK.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQRfvdyo.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BLMxzi1C.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CjfzWy2p.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-z3qIVKP7.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-6qKRU6v7.js → TransferDetails.vue_vue_type_script_setup_true_lang-DEO8CP-X.js} +20 -20
- package/dist/{TransferTemplateView-BmWxWDe8.js → TransferTemplateView-C21o2V_1.js} +20 -20
- package/dist/{UnitCostHistoryView-BCvCf-2e.js → UnitCostHistoryView-DPEGVLBP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DJu3u-cT.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BuGmmHBk.js} +4 -4
- package/dist/{UnitView-CW8GRw2n.js → UnitView-Bx03E4uc.js} +7 -7
- package/dist/{WarehouseView-ZWuCwzuM.js → WarehouseView-BehHQ9Ao.js} +6 -6
- package/dist/{WastageTemplateView-DkwVp2Bc.js → WastageTemplateView-gmr7doXL.js} +14 -14
- package/dist/api/netsuite.d.ts +13 -0
- 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 +58 -0
- package/dist/api/stock.d.ts +0 -6
- package/dist/{app-BJsy0dhl.js → app-BT7hD4az.js} +16523 -12629
- package/dist/app.d.ts +3047 -71
- package/dist/app.js +1 -1
- package/dist/{closing-template-DdxIx-dq.js → closing-template-BNfr1RIX.js} +1 -1
- package/dist/components/FmInventoryBanner.vue.d.ts +39 -0
- package/dist/components/FmUnitInput.spec.d.ts +1 -0
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/composable/useModalA11y.d.ts +9 -0
- package/dist/composable/useModalA11y.spec.d.ts +1 -0
- package/dist/cypress/component/ChangelogPanel.cy.d.ts +1 -0
- package/dist/cypress/support/component.d.ts +1 -2
- package/dist/{date2-BySoG7zL.js → date2-CAh7rsAp.js} +1 -1
- package/dist/{dayjs.min-CEK_HLa5.js → dayjs.min-BJk-edO7.js} +7 -7
- package/dist/{decimal-CxH3h_oz.js → decimal-DYlKNkVX.js} +2 -2
- package/dist/{defineDeepModel-BiNh3hbS.js → defineDeepModel-BPHl7mTD.js} +1 -1
- package/dist/{duplicate-template-BqTirEVQ.js → duplicate-template-BWUUIdzG.js} +1 -1
- package/dist/{feature-CtiarMKO.js → feature-CSvVyBN2.js} +2 -2
- package/dist/{format-time-from-id-BZlQSqcg.js → format-time-from-id-Dh3lxXpc.js} +1 -1
- package/dist/{format-unit-display-Ckyw7NDq.js → format-unit-display-B1ft2wxm.js} +12 -12
- package/dist/{import-export.helper-93ZgMgfA.js → import-export.helper-txDvkMf0.js} +6 -6
- package/dist/{index-6U0mJTRK.js → index-AmTodx3_.js} +1 -1
- package/dist/{index-OMz6kBpd.js → index-B4wQijn6.js} +1 -1
- package/dist/{index-BDmWjw_1.js → index-TIX5DyQk.js} +3 -3
- package/dist/inventory-core-dart.default-BpMxAF-0.js +31060 -0
- package/dist/{lz-string-BgsMxnd4.js → lz-string-CFDYH-K6.js} +1 -1
- package/dist/{netsuite-DFRzj2t1.js → netsuite-CdW9v92G.js} +477 -462
- package/dist/{number-D-_PL2pH.js → number-DRRlTYv7.js} +6 -6
- package/dist/{predefined-templates-Ccsy5pq1.js → predefined-templates-C68U85pc.js} +1 -1
- package/dist/production-run-display-DmyfdjHR.js +239 -0
- package/dist/production-run-prepare-sheet-BvxMd19E.js +189 -0
- package/dist/{purchase-order-template-DhWqGEYn.js → purchase-order-template-BvED3CpO.js} +1 -1
- package/dist/{recalculationUtils-DBZx8AEF.js → recalculationUtils-9rFepwwr.js} +1 -1
- package/dist/router/name.d.ts +2 -0
- package/dist/{rules-14YnQFVP.js → rules-C8RmopTe.js} +2 -2
- package/dist/{stock-CqPXExNE.js → stock-BKkluaaM.js} +26 -36
- package/dist/{stock-NwBpU2GU.js → stock-CiCsT5JK.js} +3 -3
- package/dist/stores/integration/codemax.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +54 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BGh3ELiI.js → supplier--zZMQHPc.js} +2 -2
- package/dist/{surcharge-B2A5F8CG.js → surcharge-BLF3XV0G.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-B9vLSzRQ.js → uom-rules-CjCCXiGL.js} +1 -1
- package/dist/{use-ingredient-select-dialog-vwF7iReq.js → use-ingredient-select-dialog-DnUiY-Ic.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DBp_gbnj.js → use-inventory-binding-dialog-BAU-P8kV.js} +2 -2
- package/dist/{use-template-enabled-locations-DSvlNPYu.js → use-template-enabled-locations-DZMzYCi-.js} +2 -2
- package/dist/{use-transfer-locations-OMxT9ofA.js → use-transfer-locations-DomGLsT2.js} +2 -2
- package/dist/{useHrmPermission-BbjcDYMn.js → useHrmPermission-CrhsV_5z.js} +1 -1
- package/dist/{useNavigationMenu-CJw7QuVt.js → useNavigationMenu-1h-G_-el.js} +2 -2
- package/dist/{useSseClient-CT69SXDP.js → useSseClient-o_3wiqhX.js} +1 -1
- package/dist/views/changelog/components/ChangelogFloatingButton.spec.d.ts +1 -0
- package/dist/views/changelog/composables/fab-position.d.ts +21 -0
- package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +1 -1
- 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/integration/components/netsuite/business/vendor-publish.d.ts +7 -0
- package/dist/views/integration/components/netsuite/business/vendor-publish.spec.d.ts +1 -0
- 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/ProductionRunPreparePrintView.vue.d.ts +2 -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/components/CancelRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CancelRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CancelRunDialogProps.d.ts +9 -0
- package/dist/views/production-run/components/CloseRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/CloseRunDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/CloseRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunConfirmationDialog.vue.d.ts +29 -0
- package/dist/views/production-run/components/PrepareRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareRunDialog.vue.d.ts +18 -0
- package/dist/views/production-run/components/PrepareRunDialogProps.d.ts +29 -0
- package/dist/views/production-run/components/PrepareSheetDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/PrepareSheetDialog.vue.d.ts +26 -0
- package/dist/views/{stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts → production-run/components/ProductionRunActionMenuItem.vue.d.ts} +7 -10
- package/dist/views/production-run/components/ProductionRunActionsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActionsCell.vue.d.ts +20 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunActivityTab.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunBanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBanner.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchCard.vue.d.ts +69 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunBindingsList.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunCompactDisclosure.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunContributorBranch.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunCostRail.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunCostRail.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDialog.vue.d.ts +24 -0
- package/dist/views/production-run/components/ProductionRunDialogProps.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunDialogSurface.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDiscardDialog.vue.d.ts +21 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunDuplicateDialog.vue.d.ts +51 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunFormDialog.vue.d.ts +918 -0
- package/dist/views/production-run/components/ProductionRunFormDialogProps.d.ts +22 -0
- package/dist/views/production-run/components/ProductionRunHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHeader.vue.d.ts +65 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunHelpPopover.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientTree.vue.d.ts +42 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunIngredientsTab.vue.d.ts +63 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunInstructionsCard.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemPickerDialog.vue.d.ts +30 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsCell.vue.d.ts +33 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunItemsTable.vue.d.ts +73 -0
- package/dist/views/production-run/components/ProductionRunLoadBannerContract.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOutputTab.vue.d.ts +26 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunOverviewTab.vue.d.ts +999 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanCard.vue.d.ts +50 -0
- package/dist/views/production-run/components/ProductionRunPlanner.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunPlanner.vue.d.ts +61 -0
- package/dist/views/production-run/components/ProductionRunPrepareSheet.vue.d.ts +16 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunProjectionFeedback.vue.d.ts +41 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunRequestedOverview.vue.d.ts +48 -0
- package/dist/views/production-run/components/ProductionRunResultTable.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunResultTable.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunScrollHint.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
- package/dist/views/production-run/components/ProductionRunSelectionControls.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSelectionRadio.vue.d.ts +37 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSideSheet.vue.d.ts +77 -0
- package/dist/views/production-run/components/ProductionRunSideSheetSurface.vue.d.ts +52 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunSortHeader.vue.d.ts +25 -0
- package/dist/views/production-run/components/ProductionRunStatusBadge.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTabs.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTabs.vue.d.ts +47 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTerminalNotice.vue.d.ts +15 -0
- package/dist/views/production-run/components/ProductionRunTextarea.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunTextarea.vue.d.ts +53 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunUnitInput.vue.d.ts +34 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.spec.d.ts +1 -0
- package/dist/views/production-run/components/ProductionRunWastageDisclosure.vue.d.ts +23 -0
- package/dist/views/production-run/components/RecordOutputDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/RecordOutputDialog.vue.d.ts +20 -0
- package/dist/views/production-run/components/RecordOutputDialogProps.d.ts +28 -0
- package/dist/views/production-run/components/TargetReachedDialog.spec.d.ts +1 -0
- package/dist/views/production-run/components/TargetReachedDialog.vue.d.ts +927 -0
- package/dist/views/production-run/components/production-run-deduction-parity.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-prepare-sheet.d.ts +17 -0
- package/dist/views/production-run/components/production-run-typography-contract.spec.d.ts +1 -0
- package/dist/views/production-run/components/production-run-unit-snapshot.d.ts +39 -0
- package/dist/views/production-run/composables/production-run-display.d.ts +272 -0
- package/dist/views/production-run/composables/production-run-display.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-list.d.ts +46 -0
- package/dist/views/production-run/composables/production-run-list.spec.d.ts +1 -0
- package/dist/views/production-run/composables/production-run-request-confirmation.d.ts +20 -0
- package/dist/views/production-run/composables/use-production-run-actions.d.ts +37 -0
- package/dist/views/production-run/composables/use-production-run-actions.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-cost.d.ts +672 -0
- package/dist/views/production-run/composables/use-production-run-cost.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-detail.d.ts +1894 -0
- package/dist/views/production-run/composables/use-production-run-detail.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.d.ts +15 -0
- package/dist/views/production-run/composables/use-production-run-disclosure.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-duplicate-sources.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-economics.d.ts +92 -0
- package/dist/views/production-run/composables/use-production-run-economics.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-form.d.ts +277 -0
- package/dist/views/production-run/composables/use-production-run-form.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-record-output.d.ts +261 -0
- package/dist/views/production-run/composables/use-production-run-record-output.spec.d.ts +1 -0
- package/dist/views/production-run/composables/use-production-run-scroll-hint.d.ts +9 -0
- package/dist/views/production-run/composables/use-production-run-table.d.ts +19 -0
- package/dist/views/production-run/composables/use-production-run-table.spec.d.ts +1 -0
- package/dist/views/production-run/helpers/production-run-precision.helper.d.ts +31 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.d.ts +55 -0
- package/dist/views/production-run/helpers/production-run-quantity.helper.spec.d.ts +1 -0
- package/dist/views/production-run/production-run.fixture.d.ts +70 -0
- package/dist/views/production-run/production-run.fixture.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/RecalculationDialog.vue.d.ts +2 -17
- package/dist/{vue-i18n--DyBLMYh.js → vue-i18n-hE8n67Ig.js} +358 -358
- package/dist/{xlsx.util-BthUZo9U.js → xlsx.util-Jv7EpwFc.js} +2 -2
- package/package.json +5 -5
- package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DpqPCG-m.js +0 -126
- package/dist/ClosingHistoryView-Cy2yMiEc.js +0 -1112
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-C28nZw_t.js +0 -120
- package/dist/ProductionView-DGB2sdwD.js +0 -1441
- package/dist/inventory-core-dart.default-BmR8gM8k.js +0 -25155
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
|
@@ -0,0 +1,1894 @@
|
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import type { WithRev } from '@/api/type';
|
|
3
|
+
import { type ProductionOutputBatch } from './production-run-display';
|
|
4
|
+
import { type ProductionRunLifecycleAction } from './use-production-run-actions';
|
|
5
|
+
/**
|
|
6
|
+
* The run page's data and its reveal rules.
|
|
7
|
+
*
|
|
8
|
+
* Two things this file exists to keep out of `.vue` templates:
|
|
9
|
+
*
|
|
10
|
+
* **Cold entry.** A run `_id` is only meaningful inside the CouchDB database of
|
|
11
|
+
* the location that owns it, and the portal can land on `/production-item/:id`
|
|
12
|
+
* before a location is chosen — a deep link, a refresh, a tab restored a day
|
|
13
|
+
* later. So nothing fetches on mount: `watchLocation` is the only trigger, and
|
|
14
|
+
* while `_currentLocation` is null the page renders a skeleton rather than
|
|
15
|
+
* reading `currentLocationDBName`, which THROWS once locations are loaded and
|
|
16
|
+
* none is selected.
|
|
17
|
+
*
|
|
18
|
+
* **Reveal by status.** Sections and tabs key on DATA — `issuances.length`,
|
|
19
|
+
* `batches.length` — because that is what makes them meaningful. Actions key on
|
|
20
|
+
* `productionRunActionsFor`, which reads core's legality table. Neither keys on
|
|
21
|
+
* a `status === 'X'` comparison in a template, so a new status or a changed
|
|
22
|
+
* edge cannot leave the page offering something the server will refuse.
|
|
23
|
+
*/
|
|
24
|
+
export type ProductionRunDetailPhase =
|
|
25
|
+
/** No location chosen yet — nothing has been asked for. */
|
|
26
|
+
'waitingForLocation' | 'loading' | 'ready'
|
|
27
|
+
/** A 404: the run is real, but not in THIS location's database. */
|
|
28
|
+
| 'notInLocation' | 'error';
|
|
29
|
+
export type ProductionRunDetailTab = 'overview' | 'output' | 'ingredients' | 'activity';
|
|
30
|
+
/**
|
|
31
|
+
* What the page has to say about recalculation after a stock-moving write.
|
|
32
|
+
*
|
|
33
|
+
* Three states rather than a boolean, because the boolean answered a question
|
|
34
|
+
* that stopped being the interesting one (FM-132). It meant "the cached balance
|
|
35
|
+
* was not advanced" — but a backdated movement DOES advance the balance and now
|
|
36
|
+
* schedules its own repair, so the old banner's copy was false in both clauses
|
|
37
|
+
* for a backdated movement. What a user can act on is whether anything is
|
|
38
|
+
* coming.
|
|
39
|
+
*
|
|
40
|
+
* - `dispatched` — a recalculation is scheduled. Informational; figures lag.
|
|
41
|
+
* - `failed` — nothing is coming. Somebody has to act.
|
|
42
|
+
* - `unknown` — the backend said a recalculation is needed but not whether
|
|
43
|
+
* one was scheduled. Only reachable against a backend older
|
|
44
|
+
* than FM-132, since the dispatch field is optional on the
|
|
45
|
+
* wire.
|
|
46
|
+
* - `unavailable` — the location has no closing or snapshot to anchor a replay
|
|
47
|
+
* on, so historical figures after the movement could not be
|
|
48
|
+
* rebuilt and nothing automatic will rebuild them. The
|
|
49
|
+
* on-hand quantity still includes it, though valuation
|
|
50
|
+
* may not. A known unresolved gap,
|
|
51
|
+
* which is why it warns rather than informs.
|
|
52
|
+
*/
|
|
53
|
+
export type StockRecalculationState = 'failed' | 'unknown' | 'dispatched' | 'unavailable';
|
|
54
|
+
type RecalculationDispatch = 'dispatched' | 'failed' | 'unavailable' | 'not-required';
|
|
55
|
+
/** Read a write's answer as a banner state, or `null` for nothing to say. */
|
|
56
|
+
export declare function recalculationStateOf(result: {
|
|
57
|
+
stockRecalculationRequired: boolean;
|
|
58
|
+
stockRecalculationDispatch?: RecalculationDispatch;
|
|
59
|
+
}): StockRecalculationState | null;
|
|
60
|
+
export declare function useProductionRunDetail(runId: MaybeRefOrGetter<string>): {
|
|
61
|
+
run: import("vue").Ref<{
|
|
62
|
+
_rev: string;
|
|
63
|
+
cancelledAt?: string | null | undefined;
|
|
64
|
+
cancelReason?: string | null | undefined;
|
|
65
|
+
closedAt?: string | null | undefined;
|
|
66
|
+
pendingIssuance?: {
|
|
67
|
+
remark?: string | null | undefined;
|
|
68
|
+
adjustmentId: string;
|
|
69
|
+
items: {
|
|
70
|
+
measurement: {
|
|
71
|
+
name: string;
|
|
72
|
+
id: string;
|
|
73
|
+
abbrev: string;
|
|
74
|
+
conversion: {
|
|
75
|
+
amount: number;
|
|
76
|
+
precision: number;
|
|
77
|
+
};
|
|
78
|
+
baseUnitId: string;
|
|
79
|
+
};
|
|
80
|
+
sku: {
|
|
81
|
+
trackingMeasurement?: string | null | undefined;
|
|
82
|
+
isInactive?: boolean | null | undefined;
|
|
83
|
+
convert?: {
|
|
84
|
+
measurement?: string | null | undefined;
|
|
85
|
+
inventoryBindings?: {
|
|
86
|
+
measurement?: {
|
|
87
|
+
name: string;
|
|
88
|
+
id: string;
|
|
89
|
+
abbrev: string;
|
|
90
|
+
conversion: {
|
|
91
|
+
amount: number;
|
|
92
|
+
precision: number;
|
|
93
|
+
};
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
rules?: Record<string, any> | null | undefined;
|
|
96
|
+
alternatives?: {
|
|
97
|
+
default?: boolean | null | undefined;
|
|
98
|
+
trackingMeasurement?: string | null | undefined;
|
|
99
|
+
priority?: number | null | undefined;
|
|
100
|
+
_id: string;
|
|
101
|
+
}[] | null | undefined;
|
|
102
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
103
|
+
amount: {
|
|
104
|
+
amount: number;
|
|
105
|
+
precision: number;
|
|
106
|
+
};
|
|
107
|
+
id: string;
|
|
108
|
+
}[] | null | undefined;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
111
|
+
defaultCost?: {
|
|
112
|
+
measurement?: {
|
|
113
|
+
name: string;
|
|
114
|
+
id: string;
|
|
115
|
+
abbrev: string;
|
|
116
|
+
conversion: {
|
|
117
|
+
amount: number;
|
|
118
|
+
precision: number;
|
|
119
|
+
};
|
|
120
|
+
} | null | undefined;
|
|
121
|
+
costPerUnit: {
|
|
122
|
+
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";
|
|
123
|
+
amount: number;
|
|
124
|
+
precision: number;
|
|
125
|
+
};
|
|
126
|
+
} | null | undefined;
|
|
127
|
+
operationalGroup?: string | null | undefined;
|
|
128
|
+
thresholds?: {
|
|
129
|
+
low: number;
|
|
130
|
+
mid: number;
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
133
|
+
unit: {
|
|
134
|
+
_id: string;
|
|
135
|
+
name: string;
|
|
136
|
+
abbrev: string;
|
|
137
|
+
precision: number;
|
|
138
|
+
measurements: {
|
|
139
|
+
name: string;
|
|
140
|
+
id: string;
|
|
141
|
+
abbrev: string;
|
|
142
|
+
conversion: {
|
|
143
|
+
amount: number;
|
|
144
|
+
precision: number;
|
|
145
|
+
};
|
|
146
|
+
}[];
|
|
147
|
+
};
|
|
148
|
+
code: string;
|
|
149
|
+
_id: string;
|
|
150
|
+
name: string;
|
|
151
|
+
};
|
|
152
|
+
skuId: string;
|
|
153
|
+
committedAmount: {
|
|
154
|
+
amount: number;
|
|
155
|
+
precision: number;
|
|
156
|
+
};
|
|
157
|
+
}[];
|
|
158
|
+
skippedSkuIds: string[];
|
|
159
|
+
acknowledgedShortages: {
|
|
160
|
+
skuId: string;
|
|
161
|
+
baseUnit: {
|
|
162
|
+
name: string;
|
|
163
|
+
id: string;
|
|
164
|
+
abbrev: string;
|
|
165
|
+
conversion: {
|
|
166
|
+
amount: number;
|
|
167
|
+
precision: number;
|
|
168
|
+
};
|
|
169
|
+
baseUnitId: string;
|
|
170
|
+
};
|
|
171
|
+
projectedBalance: {
|
|
172
|
+
amount: number;
|
|
173
|
+
precision: number;
|
|
174
|
+
};
|
|
175
|
+
}[];
|
|
176
|
+
claimedAt: string;
|
|
177
|
+
claimedBy: {
|
|
178
|
+
name: string;
|
|
179
|
+
id: string;
|
|
180
|
+
};
|
|
181
|
+
movement: {
|
|
182
|
+
sku: {
|
|
183
|
+
trackingMeasurement?: string | null | undefined;
|
|
184
|
+
isInactive?: boolean | null | undefined;
|
|
185
|
+
convert?: {
|
|
186
|
+
measurement?: string | null | undefined;
|
|
187
|
+
inventoryBindings?: {
|
|
188
|
+
measurement?: {
|
|
189
|
+
name: string;
|
|
190
|
+
id: string;
|
|
191
|
+
abbrev: string;
|
|
192
|
+
conversion: {
|
|
193
|
+
amount: number;
|
|
194
|
+
precision: number;
|
|
195
|
+
};
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
rules?: Record<string, any> | null | undefined;
|
|
198
|
+
alternatives?: {
|
|
199
|
+
default?: boolean | null | undefined;
|
|
200
|
+
trackingMeasurement?: string | null | undefined;
|
|
201
|
+
priority?: number | null | undefined;
|
|
202
|
+
_id: string;
|
|
203
|
+
}[] | null | undefined;
|
|
204
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
205
|
+
amount: {
|
|
206
|
+
amount: number;
|
|
207
|
+
precision: number;
|
|
208
|
+
};
|
|
209
|
+
id: string;
|
|
210
|
+
}[] | null | undefined;
|
|
211
|
+
} | null | undefined;
|
|
212
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
213
|
+
defaultCost?: {
|
|
214
|
+
measurement?: {
|
|
215
|
+
name: string;
|
|
216
|
+
id: string;
|
|
217
|
+
abbrev: string;
|
|
218
|
+
conversion: {
|
|
219
|
+
amount: number;
|
|
220
|
+
precision: number;
|
|
221
|
+
};
|
|
222
|
+
} | null | undefined;
|
|
223
|
+
costPerUnit: {
|
|
224
|
+
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";
|
|
225
|
+
amount: number;
|
|
226
|
+
precision: number;
|
|
227
|
+
};
|
|
228
|
+
} | null | undefined;
|
|
229
|
+
operationalGroup?: string | null | undefined;
|
|
230
|
+
thresholds?: {
|
|
231
|
+
low: number;
|
|
232
|
+
mid: number;
|
|
233
|
+
} | null | undefined;
|
|
234
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
235
|
+
unit: {
|
|
236
|
+
_id: string;
|
|
237
|
+
name: string;
|
|
238
|
+
abbrev: string;
|
|
239
|
+
precision: number;
|
|
240
|
+
measurements: {
|
|
241
|
+
name: string;
|
|
242
|
+
id: string;
|
|
243
|
+
abbrev: string;
|
|
244
|
+
conversion: {
|
|
245
|
+
amount: number;
|
|
246
|
+
precision: number;
|
|
247
|
+
};
|
|
248
|
+
}[];
|
|
249
|
+
};
|
|
250
|
+
code: string;
|
|
251
|
+
_id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
};
|
|
254
|
+
amounts: {
|
|
255
|
+
measurement: {
|
|
256
|
+
name: string;
|
|
257
|
+
id: string;
|
|
258
|
+
abbrev: string;
|
|
259
|
+
conversion: {
|
|
260
|
+
amount: number;
|
|
261
|
+
precision: number;
|
|
262
|
+
};
|
|
263
|
+
baseUnitId: string;
|
|
264
|
+
};
|
|
265
|
+
amount: {
|
|
266
|
+
amount: number;
|
|
267
|
+
precision: number;
|
|
268
|
+
};
|
|
269
|
+
outputSkuId: string;
|
|
270
|
+
}[];
|
|
271
|
+
}[];
|
|
272
|
+
} | null | undefined;
|
|
273
|
+
status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
|
|
274
|
+
_id: string;
|
|
275
|
+
createdAt: string;
|
|
276
|
+
items: {
|
|
277
|
+
measurement: {
|
|
278
|
+
name: string;
|
|
279
|
+
id: string;
|
|
280
|
+
abbrev: string;
|
|
281
|
+
conversion: {
|
|
282
|
+
amount: number;
|
|
283
|
+
precision: number;
|
|
284
|
+
};
|
|
285
|
+
baseUnitId: string;
|
|
286
|
+
};
|
|
287
|
+
skuId: string;
|
|
288
|
+
requestedAmount: {
|
|
289
|
+
amount: number;
|
|
290
|
+
precision: number;
|
|
291
|
+
};
|
|
292
|
+
}[];
|
|
293
|
+
createdBy: {
|
|
294
|
+
name: string;
|
|
295
|
+
id: string;
|
|
296
|
+
};
|
|
297
|
+
activityLogs: {
|
|
298
|
+
remark?: string | null | undefined;
|
|
299
|
+
action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
|
|
300
|
+
performedAt: string;
|
|
301
|
+
performedBy: {
|
|
302
|
+
name: string;
|
|
303
|
+
id: string;
|
|
304
|
+
};
|
|
305
|
+
}[];
|
|
306
|
+
requestedIngredientPlan: {
|
|
307
|
+
ingredients: {
|
|
308
|
+
amounts: {
|
|
309
|
+
measurement: {
|
|
310
|
+
name: string;
|
|
311
|
+
id: string;
|
|
312
|
+
abbrev: string;
|
|
313
|
+
conversion: {
|
|
314
|
+
amount: number;
|
|
315
|
+
precision: number;
|
|
316
|
+
};
|
|
317
|
+
baseUnitId: string;
|
|
318
|
+
};
|
|
319
|
+
amount: {
|
|
320
|
+
amount: number;
|
|
321
|
+
precision: number;
|
|
322
|
+
};
|
|
323
|
+
outputSkuId: string;
|
|
324
|
+
}[];
|
|
325
|
+
ingredient: {
|
|
326
|
+
code: string;
|
|
327
|
+
skuId: string;
|
|
328
|
+
name: string;
|
|
329
|
+
baseUnit: {
|
|
330
|
+
name: string;
|
|
331
|
+
id: string;
|
|
332
|
+
abbrev: string;
|
|
333
|
+
conversion: {
|
|
334
|
+
amount: number;
|
|
335
|
+
precision: number;
|
|
336
|
+
};
|
|
337
|
+
baseUnitId: string;
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
}[];
|
|
341
|
+
skippedSkuIds: string[];
|
|
342
|
+
} | null;
|
|
343
|
+
runNo: number;
|
|
344
|
+
runName: string | null;
|
|
345
|
+
instructions: string | null;
|
|
346
|
+
issuances: {
|
|
347
|
+
remark?: string | null | undefined;
|
|
348
|
+
adjustmentId: string;
|
|
349
|
+
items: {
|
|
350
|
+
measurement: {
|
|
351
|
+
name: string;
|
|
352
|
+
id: string;
|
|
353
|
+
abbrev: string;
|
|
354
|
+
conversion: {
|
|
355
|
+
amount: number;
|
|
356
|
+
precision: number;
|
|
357
|
+
};
|
|
358
|
+
baseUnitId: string;
|
|
359
|
+
};
|
|
360
|
+
sku: {
|
|
361
|
+
trackingMeasurement?: string | null | undefined;
|
|
362
|
+
isInactive?: boolean | null | undefined;
|
|
363
|
+
convert?: {
|
|
364
|
+
measurement?: string | null | undefined;
|
|
365
|
+
inventoryBindings?: {
|
|
366
|
+
measurement?: {
|
|
367
|
+
name: string;
|
|
368
|
+
id: string;
|
|
369
|
+
abbrev: string;
|
|
370
|
+
conversion: {
|
|
371
|
+
amount: number;
|
|
372
|
+
precision: number;
|
|
373
|
+
};
|
|
374
|
+
} | null | undefined;
|
|
375
|
+
rules?: Record<string, any> | null | undefined;
|
|
376
|
+
alternatives?: {
|
|
377
|
+
default?: boolean | null | undefined;
|
|
378
|
+
trackingMeasurement?: string | null | undefined;
|
|
379
|
+
priority?: number | null | undefined;
|
|
380
|
+
_id: string;
|
|
381
|
+
}[] | null | undefined;
|
|
382
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
383
|
+
amount: {
|
|
384
|
+
amount: number;
|
|
385
|
+
precision: number;
|
|
386
|
+
};
|
|
387
|
+
id: string;
|
|
388
|
+
}[] | null | undefined;
|
|
389
|
+
} | null | undefined;
|
|
390
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
391
|
+
defaultCost?: {
|
|
392
|
+
measurement?: {
|
|
393
|
+
name: string;
|
|
394
|
+
id: string;
|
|
395
|
+
abbrev: string;
|
|
396
|
+
conversion: {
|
|
397
|
+
amount: number;
|
|
398
|
+
precision: number;
|
|
399
|
+
};
|
|
400
|
+
} | null | undefined;
|
|
401
|
+
costPerUnit: {
|
|
402
|
+
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";
|
|
403
|
+
amount: number;
|
|
404
|
+
precision: number;
|
|
405
|
+
};
|
|
406
|
+
} | null | undefined;
|
|
407
|
+
operationalGroup?: string | null | undefined;
|
|
408
|
+
thresholds?: {
|
|
409
|
+
low: number;
|
|
410
|
+
mid: number;
|
|
411
|
+
} | null | undefined;
|
|
412
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
413
|
+
unit: {
|
|
414
|
+
_id: string;
|
|
415
|
+
name: string;
|
|
416
|
+
abbrev: string;
|
|
417
|
+
precision: number;
|
|
418
|
+
measurements: {
|
|
419
|
+
name: string;
|
|
420
|
+
id: string;
|
|
421
|
+
abbrev: string;
|
|
422
|
+
conversion: {
|
|
423
|
+
amount: number;
|
|
424
|
+
precision: number;
|
|
425
|
+
};
|
|
426
|
+
}[];
|
|
427
|
+
};
|
|
428
|
+
code: string;
|
|
429
|
+
_id: string;
|
|
430
|
+
name: string;
|
|
431
|
+
};
|
|
432
|
+
skuId: string;
|
|
433
|
+
committedAmount: {
|
|
434
|
+
amount: number;
|
|
435
|
+
precision: number;
|
|
436
|
+
};
|
|
437
|
+
}[];
|
|
438
|
+
skippedSkuIds: string[];
|
|
439
|
+
issuedAt: string;
|
|
440
|
+
issuedBy: {
|
|
441
|
+
name: string;
|
|
442
|
+
id: string;
|
|
443
|
+
};
|
|
444
|
+
acknowledgedShortages: {
|
|
445
|
+
skuId: string;
|
|
446
|
+
baseUnit: {
|
|
447
|
+
name: string;
|
|
448
|
+
id: string;
|
|
449
|
+
abbrev: string;
|
|
450
|
+
conversion: {
|
|
451
|
+
amount: number;
|
|
452
|
+
precision: number;
|
|
453
|
+
};
|
|
454
|
+
baseUnitId: string;
|
|
455
|
+
};
|
|
456
|
+
projectedBalance: {
|
|
457
|
+
amount: number;
|
|
458
|
+
precision: number;
|
|
459
|
+
};
|
|
460
|
+
}[];
|
|
461
|
+
}[];
|
|
462
|
+
batches: {
|
|
463
|
+
adjustmentId: string;
|
|
464
|
+
id: string;
|
|
465
|
+
remark: string | null;
|
|
466
|
+
items: {
|
|
467
|
+
measurement: {
|
|
468
|
+
name: string;
|
|
469
|
+
id: string;
|
|
470
|
+
abbrev: string;
|
|
471
|
+
conversion: {
|
|
472
|
+
amount: number;
|
|
473
|
+
precision: number;
|
|
474
|
+
};
|
|
475
|
+
baseUnitId: string;
|
|
476
|
+
};
|
|
477
|
+
skuId: string;
|
|
478
|
+
producedAmount: {
|
|
479
|
+
amount: number;
|
|
480
|
+
precision: number;
|
|
481
|
+
};
|
|
482
|
+
}[];
|
|
483
|
+
operationKey: string;
|
|
484
|
+
producedAt: string;
|
|
485
|
+
recordedAt: string;
|
|
486
|
+
recordedBy: {
|
|
487
|
+
name: string;
|
|
488
|
+
id: string;
|
|
489
|
+
};
|
|
490
|
+
wastages: {
|
|
491
|
+
measurement: {
|
|
492
|
+
name: string;
|
|
493
|
+
id: string;
|
|
494
|
+
abbrev: string;
|
|
495
|
+
conversion: {
|
|
496
|
+
amount: number;
|
|
497
|
+
precision: number;
|
|
498
|
+
};
|
|
499
|
+
baseUnitId: string;
|
|
500
|
+
};
|
|
501
|
+
skuId: string;
|
|
502
|
+
amount: {
|
|
503
|
+
amount: number;
|
|
504
|
+
precision: number;
|
|
505
|
+
};
|
|
506
|
+
reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
|
|
507
|
+
remark: string | null;
|
|
508
|
+
itemSkuId: string;
|
|
509
|
+
}[];
|
|
510
|
+
}[];
|
|
511
|
+
} | null, WithRev<{
|
|
512
|
+
_rev?: string | null | undefined;
|
|
513
|
+
cancelledAt?: string | null | undefined;
|
|
514
|
+
cancelReason?: string | null | undefined;
|
|
515
|
+
closedAt?: string | null | undefined;
|
|
516
|
+
pendingIssuance?: {
|
|
517
|
+
remark?: string | null | undefined;
|
|
518
|
+
adjustmentId: string;
|
|
519
|
+
items: {
|
|
520
|
+
measurement: {
|
|
521
|
+
name: string;
|
|
522
|
+
id: string;
|
|
523
|
+
abbrev: string;
|
|
524
|
+
conversion: {
|
|
525
|
+
amount: number;
|
|
526
|
+
precision: number;
|
|
527
|
+
};
|
|
528
|
+
baseUnitId: string;
|
|
529
|
+
};
|
|
530
|
+
sku: {
|
|
531
|
+
trackingMeasurement?: string | null | undefined;
|
|
532
|
+
isInactive?: boolean | null | undefined;
|
|
533
|
+
convert?: {
|
|
534
|
+
measurement?: string | null | undefined;
|
|
535
|
+
inventoryBindings?: {
|
|
536
|
+
measurement?: {
|
|
537
|
+
name: string;
|
|
538
|
+
id: string;
|
|
539
|
+
abbrev: string;
|
|
540
|
+
conversion: {
|
|
541
|
+
amount: number;
|
|
542
|
+
precision: number;
|
|
543
|
+
};
|
|
544
|
+
} | null | undefined;
|
|
545
|
+
rules?: Record<string, any> | null | undefined;
|
|
546
|
+
alternatives?: {
|
|
547
|
+
default?: boolean | null | undefined;
|
|
548
|
+
trackingMeasurement?: string | null | undefined;
|
|
549
|
+
priority?: number | null | undefined;
|
|
550
|
+
_id: string;
|
|
551
|
+
}[] | null | undefined;
|
|
552
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
553
|
+
amount: {
|
|
554
|
+
amount: number;
|
|
555
|
+
precision: number;
|
|
556
|
+
};
|
|
557
|
+
id: string;
|
|
558
|
+
}[] | null | undefined;
|
|
559
|
+
} | null | undefined;
|
|
560
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
561
|
+
defaultCost?: {
|
|
562
|
+
measurement?: {
|
|
563
|
+
name: string;
|
|
564
|
+
id: string;
|
|
565
|
+
abbrev: string;
|
|
566
|
+
conversion: {
|
|
567
|
+
amount: number;
|
|
568
|
+
precision: number;
|
|
569
|
+
};
|
|
570
|
+
} | null | undefined;
|
|
571
|
+
costPerUnit: {
|
|
572
|
+
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";
|
|
573
|
+
amount: number;
|
|
574
|
+
precision: number;
|
|
575
|
+
};
|
|
576
|
+
} | null | undefined;
|
|
577
|
+
operationalGroup?: string | null | undefined;
|
|
578
|
+
thresholds?: {
|
|
579
|
+
low: number;
|
|
580
|
+
mid: number;
|
|
581
|
+
} | null | undefined;
|
|
582
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
583
|
+
unit: {
|
|
584
|
+
_id: string;
|
|
585
|
+
name: string;
|
|
586
|
+
abbrev: string;
|
|
587
|
+
precision: number;
|
|
588
|
+
measurements: {
|
|
589
|
+
name: string;
|
|
590
|
+
id: string;
|
|
591
|
+
abbrev: string;
|
|
592
|
+
conversion: {
|
|
593
|
+
amount: number;
|
|
594
|
+
precision: number;
|
|
595
|
+
};
|
|
596
|
+
}[];
|
|
597
|
+
};
|
|
598
|
+
code: string;
|
|
599
|
+
_id: string;
|
|
600
|
+
name: string;
|
|
601
|
+
};
|
|
602
|
+
skuId: string;
|
|
603
|
+
committedAmount: {
|
|
604
|
+
amount: number;
|
|
605
|
+
precision: number;
|
|
606
|
+
};
|
|
607
|
+
}[];
|
|
608
|
+
skippedSkuIds: string[];
|
|
609
|
+
acknowledgedShortages: {
|
|
610
|
+
skuId: string;
|
|
611
|
+
baseUnit: {
|
|
612
|
+
name: string;
|
|
613
|
+
id: string;
|
|
614
|
+
abbrev: string;
|
|
615
|
+
conversion: {
|
|
616
|
+
amount: number;
|
|
617
|
+
precision: number;
|
|
618
|
+
};
|
|
619
|
+
baseUnitId: string;
|
|
620
|
+
};
|
|
621
|
+
projectedBalance: {
|
|
622
|
+
amount: number;
|
|
623
|
+
precision: number;
|
|
624
|
+
};
|
|
625
|
+
}[];
|
|
626
|
+
claimedAt: string;
|
|
627
|
+
claimedBy: {
|
|
628
|
+
name: string;
|
|
629
|
+
id: string;
|
|
630
|
+
};
|
|
631
|
+
movement: {
|
|
632
|
+
sku: {
|
|
633
|
+
trackingMeasurement?: string | null | undefined;
|
|
634
|
+
isInactive?: boolean | null | undefined;
|
|
635
|
+
convert?: {
|
|
636
|
+
measurement?: string | null | undefined;
|
|
637
|
+
inventoryBindings?: {
|
|
638
|
+
measurement?: {
|
|
639
|
+
name: string;
|
|
640
|
+
id: string;
|
|
641
|
+
abbrev: string;
|
|
642
|
+
conversion: {
|
|
643
|
+
amount: number;
|
|
644
|
+
precision: number;
|
|
645
|
+
};
|
|
646
|
+
} | null | undefined;
|
|
647
|
+
rules?: Record<string, any> | null | undefined;
|
|
648
|
+
alternatives?: {
|
|
649
|
+
default?: boolean | null | undefined;
|
|
650
|
+
trackingMeasurement?: string | null | undefined;
|
|
651
|
+
priority?: number | null | undefined;
|
|
652
|
+
_id: string;
|
|
653
|
+
}[] | null | undefined;
|
|
654
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
655
|
+
amount: {
|
|
656
|
+
amount: number;
|
|
657
|
+
precision: number;
|
|
658
|
+
};
|
|
659
|
+
id: string;
|
|
660
|
+
}[] | null | undefined;
|
|
661
|
+
} | null | undefined;
|
|
662
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
663
|
+
defaultCost?: {
|
|
664
|
+
measurement?: {
|
|
665
|
+
name: string;
|
|
666
|
+
id: string;
|
|
667
|
+
abbrev: string;
|
|
668
|
+
conversion: {
|
|
669
|
+
amount: number;
|
|
670
|
+
precision: number;
|
|
671
|
+
};
|
|
672
|
+
} | null | undefined;
|
|
673
|
+
costPerUnit: {
|
|
674
|
+
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";
|
|
675
|
+
amount: number;
|
|
676
|
+
precision: number;
|
|
677
|
+
};
|
|
678
|
+
} | null | undefined;
|
|
679
|
+
operationalGroup?: string | null | undefined;
|
|
680
|
+
thresholds?: {
|
|
681
|
+
low: number;
|
|
682
|
+
mid: number;
|
|
683
|
+
} | null | undefined;
|
|
684
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
685
|
+
unit: {
|
|
686
|
+
_id: string;
|
|
687
|
+
name: string;
|
|
688
|
+
abbrev: string;
|
|
689
|
+
precision: number;
|
|
690
|
+
measurements: {
|
|
691
|
+
name: string;
|
|
692
|
+
id: string;
|
|
693
|
+
abbrev: string;
|
|
694
|
+
conversion: {
|
|
695
|
+
amount: number;
|
|
696
|
+
precision: number;
|
|
697
|
+
};
|
|
698
|
+
}[];
|
|
699
|
+
};
|
|
700
|
+
code: string;
|
|
701
|
+
_id: string;
|
|
702
|
+
name: string;
|
|
703
|
+
};
|
|
704
|
+
amounts: {
|
|
705
|
+
measurement: {
|
|
706
|
+
name: string;
|
|
707
|
+
id: string;
|
|
708
|
+
abbrev: string;
|
|
709
|
+
conversion: {
|
|
710
|
+
amount: number;
|
|
711
|
+
precision: number;
|
|
712
|
+
};
|
|
713
|
+
baseUnitId: string;
|
|
714
|
+
};
|
|
715
|
+
amount: {
|
|
716
|
+
amount: number;
|
|
717
|
+
precision: number;
|
|
718
|
+
};
|
|
719
|
+
outputSkuId: string;
|
|
720
|
+
}[];
|
|
721
|
+
}[];
|
|
722
|
+
} | null | undefined;
|
|
723
|
+
status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
|
|
724
|
+
_id: string;
|
|
725
|
+
createdAt: string;
|
|
726
|
+
items: {
|
|
727
|
+
measurement: {
|
|
728
|
+
name: string;
|
|
729
|
+
id: string;
|
|
730
|
+
abbrev: string;
|
|
731
|
+
conversion: {
|
|
732
|
+
amount: number;
|
|
733
|
+
precision: number;
|
|
734
|
+
};
|
|
735
|
+
baseUnitId: string;
|
|
736
|
+
};
|
|
737
|
+
skuId: string;
|
|
738
|
+
requestedAmount: {
|
|
739
|
+
amount: number;
|
|
740
|
+
precision: number;
|
|
741
|
+
};
|
|
742
|
+
}[];
|
|
743
|
+
createdBy: {
|
|
744
|
+
name: string;
|
|
745
|
+
id: string;
|
|
746
|
+
};
|
|
747
|
+
activityLogs: {
|
|
748
|
+
remark?: string | null | undefined;
|
|
749
|
+
action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
|
|
750
|
+
performedAt: string;
|
|
751
|
+
performedBy: {
|
|
752
|
+
name: string;
|
|
753
|
+
id: string;
|
|
754
|
+
};
|
|
755
|
+
}[];
|
|
756
|
+
requestedIngredientPlan: {
|
|
757
|
+
ingredients: {
|
|
758
|
+
amounts: {
|
|
759
|
+
measurement: {
|
|
760
|
+
name: string;
|
|
761
|
+
id: string;
|
|
762
|
+
abbrev: string;
|
|
763
|
+
conversion: {
|
|
764
|
+
amount: number;
|
|
765
|
+
precision: number;
|
|
766
|
+
};
|
|
767
|
+
baseUnitId: string;
|
|
768
|
+
};
|
|
769
|
+
amount: {
|
|
770
|
+
amount: number;
|
|
771
|
+
precision: number;
|
|
772
|
+
};
|
|
773
|
+
outputSkuId: string;
|
|
774
|
+
}[];
|
|
775
|
+
ingredient: {
|
|
776
|
+
code: string;
|
|
777
|
+
skuId: string;
|
|
778
|
+
name: string;
|
|
779
|
+
baseUnit: {
|
|
780
|
+
name: string;
|
|
781
|
+
id: string;
|
|
782
|
+
abbrev: string;
|
|
783
|
+
conversion: {
|
|
784
|
+
amount: number;
|
|
785
|
+
precision: number;
|
|
786
|
+
};
|
|
787
|
+
baseUnitId: string;
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
}[];
|
|
791
|
+
skippedSkuIds: string[];
|
|
792
|
+
} | null;
|
|
793
|
+
runNo: number;
|
|
794
|
+
runName: string | null;
|
|
795
|
+
instructions: string | null;
|
|
796
|
+
issuances: {
|
|
797
|
+
remark?: string | null | undefined;
|
|
798
|
+
adjustmentId: string;
|
|
799
|
+
items: {
|
|
800
|
+
measurement: {
|
|
801
|
+
name: string;
|
|
802
|
+
id: string;
|
|
803
|
+
abbrev: string;
|
|
804
|
+
conversion: {
|
|
805
|
+
amount: number;
|
|
806
|
+
precision: number;
|
|
807
|
+
};
|
|
808
|
+
baseUnitId: string;
|
|
809
|
+
};
|
|
810
|
+
sku: {
|
|
811
|
+
trackingMeasurement?: string | null | undefined;
|
|
812
|
+
isInactive?: boolean | null | undefined;
|
|
813
|
+
convert?: {
|
|
814
|
+
measurement?: string | null | undefined;
|
|
815
|
+
inventoryBindings?: {
|
|
816
|
+
measurement?: {
|
|
817
|
+
name: string;
|
|
818
|
+
id: string;
|
|
819
|
+
abbrev: string;
|
|
820
|
+
conversion: {
|
|
821
|
+
amount: number;
|
|
822
|
+
precision: number;
|
|
823
|
+
};
|
|
824
|
+
} | null | undefined;
|
|
825
|
+
rules?: Record<string, any> | null | undefined;
|
|
826
|
+
alternatives?: {
|
|
827
|
+
default?: boolean | null | undefined;
|
|
828
|
+
trackingMeasurement?: string | null | undefined;
|
|
829
|
+
priority?: number | null | undefined;
|
|
830
|
+
_id: string;
|
|
831
|
+
}[] | null | undefined;
|
|
832
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
833
|
+
amount: {
|
|
834
|
+
amount: number;
|
|
835
|
+
precision: number;
|
|
836
|
+
};
|
|
837
|
+
id: string;
|
|
838
|
+
}[] | null | undefined;
|
|
839
|
+
} | null | undefined;
|
|
840
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
841
|
+
defaultCost?: {
|
|
842
|
+
measurement?: {
|
|
843
|
+
name: string;
|
|
844
|
+
id: string;
|
|
845
|
+
abbrev: string;
|
|
846
|
+
conversion: {
|
|
847
|
+
amount: number;
|
|
848
|
+
precision: number;
|
|
849
|
+
};
|
|
850
|
+
} | null | undefined;
|
|
851
|
+
costPerUnit: {
|
|
852
|
+
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";
|
|
853
|
+
amount: number;
|
|
854
|
+
precision: number;
|
|
855
|
+
};
|
|
856
|
+
} | null | undefined;
|
|
857
|
+
operationalGroup?: string | null | undefined;
|
|
858
|
+
thresholds?: {
|
|
859
|
+
low: number;
|
|
860
|
+
mid: number;
|
|
861
|
+
} | null | undefined;
|
|
862
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
863
|
+
unit: {
|
|
864
|
+
_id: string;
|
|
865
|
+
name: string;
|
|
866
|
+
abbrev: string;
|
|
867
|
+
precision: number;
|
|
868
|
+
measurements: {
|
|
869
|
+
name: string;
|
|
870
|
+
id: string;
|
|
871
|
+
abbrev: string;
|
|
872
|
+
conversion: {
|
|
873
|
+
amount: number;
|
|
874
|
+
precision: number;
|
|
875
|
+
};
|
|
876
|
+
}[];
|
|
877
|
+
};
|
|
878
|
+
code: string;
|
|
879
|
+
_id: string;
|
|
880
|
+
name: string;
|
|
881
|
+
};
|
|
882
|
+
skuId: string;
|
|
883
|
+
committedAmount: {
|
|
884
|
+
amount: number;
|
|
885
|
+
precision: number;
|
|
886
|
+
};
|
|
887
|
+
}[];
|
|
888
|
+
skippedSkuIds: string[];
|
|
889
|
+
issuedAt: string;
|
|
890
|
+
issuedBy: {
|
|
891
|
+
name: string;
|
|
892
|
+
id: string;
|
|
893
|
+
};
|
|
894
|
+
acknowledgedShortages: {
|
|
895
|
+
skuId: string;
|
|
896
|
+
baseUnit: {
|
|
897
|
+
name: string;
|
|
898
|
+
id: string;
|
|
899
|
+
abbrev: string;
|
|
900
|
+
conversion: {
|
|
901
|
+
amount: number;
|
|
902
|
+
precision: number;
|
|
903
|
+
};
|
|
904
|
+
baseUnitId: string;
|
|
905
|
+
};
|
|
906
|
+
projectedBalance: {
|
|
907
|
+
amount: number;
|
|
908
|
+
precision: number;
|
|
909
|
+
};
|
|
910
|
+
}[];
|
|
911
|
+
}[];
|
|
912
|
+
batches: {
|
|
913
|
+
adjustmentId: string;
|
|
914
|
+
id: string;
|
|
915
|
+
remark: string | null;
|
|
916
|
+
items: {
|
|
917
|
+
measurement: {
|
|
918
|
+
name: string;
|
|
919
|
+
id: string;
|
|
920
|
+
abbrev: string;
|
|
921
|
+
conversion: {
|
|
922
|
+
amount: number;
|
|
923
|
+
precision: number;
|
|
924
|
+
};
|
|
925
|
+
baseUnitId: string;
|
|
926
|
+
};
|
|
927
|
+
skuId: string;
|
|
928
|
+
producedAmount: {
|
|
929
|
+
amount: number;
|
|
930
|
+
precision: number;
|
|
931
|
+
};
|
|
932
|
+
}[];
|
|
933
|
+
operationKey: string;
|
|
934
|
+
producedAt: string;
|
|
935
|
+
recordedAt: string;
|
|
936
|
+
recordedBy: {
|
|
937
|
+
name: string;
|
|
938
|
+
id: string;
|
|
939
|
+
};
|
|
940
|
+
wastages: {
|
|
941
|
+
measurement: {
|
|
942
|
+
name: string;
|
|
943
|
+
id: string;
|
|
944
|
+
abbrev: string;
|
|
945
|
+
conversion: {
|
|
946
|
+
amount: number;
|
|
947
|
+
precision: number;
|
|
948
|
+
};
|
|
949
|
+
baseUnitId: string;
|
|
950
|
+
};
|
|
951
|
+
skuId: string;
|
|
952
|
+
amount: {
|
|
953
|
+
amount: number;
|
|
954
|
+
precision: number;
|
|
955
|
+
};
|
|
956
|
+
reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
|
|
957
|
+
remark: string | null;
|
|
958
|
+
itemSkuId: string;
|
|
959
|
+
}[];
|
|
960
|
+
}[];
|
|
961
|
+
}> | {
|
|
962
|
+
_rev: string;
|
|
963
|
+
cancelledAt?: string | null | undefined;
|
|
964
|
+
cancelReason?: string | null | undefined;
|
|
965
|
+
closedAt?: string | null | undefined;
|
|
966
|
+
pendingIssuance?: {
|
|
967
|
+
remark?: string | null | undefined;
|
|
968
|
+
adjustmentId: string;
|
|
969
|
+
items: {
|
|
970
|
+
measurement: {
|
|
971
|
+
name: string;
|
|
972
|
+
id: string;
|
|
973
|
+
abbrev: string;
|
|
974
|
+
conversion: {
|
|
975
|
+
amount: number;
|
|
976
|
+
precision: number;
|
|
977
|
+
};
|
|
978
|
+
baseUnitId: string;
|
|
979
|
+
};
|
|
980
|
+
sku: {
|
|
981
|
+
trackingMeasurement?: string | null | undefined;
|
|
982
|
+
isInactive?: boolean | null | undefined;
|
|
983
|
+
convert?: {
|
|
984
|
+
measurement?: string | null | undefined;
|
|
985
|
+
inventoryBindings?: {
|
|
986
|
+
measurement?: {
|
|
987
|
+
name: string;
|
|
988
|
+
id: string;
|
|
989
|
+
abbrev: string;
|
|
990
|
+
conversion: {
|
|
991
|
+
amount: number;
|
|
992
|
+
precision: number;
|
|
993
|
+
};
|
|
994
|
+
} | null | undefined;
|
|
995
|
+
rules?: Record<string, any> | null | undefined;
|
|
996
|
+
alternatives?: {
|
|
997
|
+
default?: boolean | null | undefined;
|
|
998
|
+
trackingMeasurement?: string | null | undefined;
|
|
999
|
+
priority?: number | null | undefined;
|
|
1000
|
+
_id: string;
|
|
1001
|
+
}[] | null | undefined;
|
|
1002
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1003
|
+
amount: {
|
|
1004
|
+
amount: number;
|
|
1005
|
+
precision: number;
|
|
1006
|
+
};
|
|
1007
|
+
id: string;
|
|
1008
|
+
}[] | null | undefined;
|
|
1009
|
+
} | null | undefined;
|
|
1010
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1011
|
+
defaultCost?: {
|
|
1012
|
+
measurement?: {
|
|
1013
|
+
name: string;
|
|
1014
|
+
id: string;
|
|
1015
|
+
abbrev: string;
|
|
1016
|
+
conversion: {
|
|
1017
|
+
amount: number;
|
|
1018
|
+
precision: number;
|
|
1019
|
+
};
|
|
1020
|
+
} | null | undefined;
|
|
1021
|
+
costPerUnit: {
|
|
1022
|
+
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";
|
|
1023
|
+
amount: number;
|
|
1024
|
+
precision: number;
|
|
1025
|
+
};
|
|
1026
|
+
} | null | undefined;
|
|
1027
|
+
operationalGroup?: string | null | undefined;
|
|
1028
|
+
thresholds?: {
|
|
1029
|
+
low: number;
|
|
1030
|
+
mid: number;
|
|
1031
|
+
} | null | undefined;
|
|
1032
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1033
|
+
unit: {
|
|
1034
|
+
_id: string;
|
|
1035
|
+
name: string;
|
|
1036
|
+
abbrev: string;
|
|
1037
|
+
precision: number;
|
|
1038
|
+
measurements: {
|
|
1039
|
+
name: string;
|
|
1040
|
+
id: string;
|
|
1041
|
+
abbrev: string;
|
|
1042
|
+
conversion: {
|
|
1043
|
+
amount: number;
|
|
1044
|
+
precision: number;
|
|
1045
|
+
};
|
|
1046
|
+
}[];
|
|
1047
|
+
};
|
|
1048
|
+
code: string;
|
|
1049
|
+
_id: string;
|
|
1050
|
+
name: string;
|
|
1051
|
+
};
|
|
1052
|
+
skuId: string;
|
|
1053
|
+
committedAmount: {
|
|
1054
|
+
amount: number;
|
|
1055
|
+
precision: number;
|
|
1056
|
+
};
|
|
1057
|
+
}[];
|
|
1058
|
+
skippedSkuIds: string[];
|
|
1059
|
+
acknowledgedShortages: {
|
|
1060
|
+
skuId: string;
|
|
1061
|
+
baseUnit: {
|
|
1062
|
+
name: string;
|
|
1063
|
+
id: string;
|
|
1064
|
+
abbrev: string;
|
|
1065
|
+
conversion: {
|
|
1066
|
+
amount: number;
|
|
1067
|
+
precision: number;
|
|
1068
|
+
};
|
|
1069
|
+
baseUnitId: string;
|
|
1070
|
+
};
|
|
1071
|
+
projectedBalance: {
|
|
1072
|
+
amount: number;
|
|
1073
|
+
precision: number;
|
|
1074
|
+
};
|
|
1075
|
+
}[];
|
|
1076
|
+
claimedAt: string;
|
|
1077
|
+
claimedBy: {
|
|
1078
|
+
name: string;
|
|
1079
|
+
id: string;
|
|
1080
|
+
};
|
|
1081
|
+
movement: {
|
|
1082
|
+
sku: {
|
|
1083
|
+
trackingMeasurement?: string | null | undefined;
|
|
1084
|
+
isInactive?: boolean | null | undefined;
|
|
1085
|
+
convert?: {
|
|
1086
|
+
measurement?: string | null | undefined;
|
|
1087
|
+
inventoryBindings?: {
|
|
1088
|
+
measurement?: {
|
|
1089
|
+
name: string;
|
|
1090
|
+
id: string;
|
|
1091
|
+
abbrev: string;
|
|
1092
|
+
conversion: {
|
|
1093
|
+
amount: number;
|
|
1094
|
+
precision: number;
|
|
1095
|
+
};
|
|
1096
|
+
} | null | undefined;
|
|
1097
|
+
rules?: Record<string, any> | null | undefined;
|
|
1098
|
+
alternatives?: {
|
|
1099
|
+
default?: boolean | null | undefined;
|
|
1100
|
+
trackingMeasurement?: string | null | undefined;
|
|
1101
|
+
priority?: number | null | undefined;
|
|
1102
|
+
_id: string;
|
|
1103
|
+
}[] | null | undefined;
|
|
1104
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1105
|
+
amount: {
|
|
1106
|
+
amount: number;
|
|
1107
|
+
precision: number;
|
|
1108
|
+
};
|
|
1109
|
+
id: string;
|
|
1110
|
+
}[] | null | undefined;
|
|
1111
|
+
} | null | undefined;
|
|
1112
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1113
|
+
defaultCost?: {
|
|
1114
|
+
measurement?: {
|
|
1115
|
+
name: string;
|
|
1116
|
+
id: string;
|
|
1117
|
+
abbrev: string;
|
|
1118
|
+
conversion: {
|
|
1119
|
+
amount: number;
|
|
1120
|
+
precision: number;
|
|
1121
|
+
};
|
|
1122
|
+
} | null | undefined;
|
|
1123
|
+
costPerUnit: {
|
|
1124
|
+
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";
|
|
1125
|
+
amount: number;
|
|
1126
|
+
precision: number;
|
|
1127
|
+
};
|
|
1128
|
+
} | null | undefined;
|
|
1129
|
+
operationalGroup?: string | null | undefined;
|
|
1130
|
+
thresholds?: {
|
|
1131
|
+
low: number;
|
|
1132
|
+
mid: number;
|
|
1133
|
+
} | null | undefined;
|
|
1134
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1135
|
+
unit: {
|
|
1136
|
+
_id: string;
|
|
1137
|
+
name: string;
|
|
1138
|
+
abbrev: string;
|
|
1139
|
+
precision: number;
|
|
1140
|
+
measurements: {
|
|
1141
|
+
name: string;
|
|
1142
|
+
id: string;
|
|
1143
|
+
abbrev: string;
|
|
1144
|
+
conversion: {
|
|
1145
|
+
amount: number;
|
|
1146
|
+
precision: number;
|
|
1147
|
+
};
|
|
1148
|
+
}[];
|
|
1149
|
+
};
|
|
1150
|
+
code: string;
|
|
1151
|
+
_id: string;
|
|
1152
|
+
name: string;
|
|
1153
|
+
};
|
|
1154
|
+
amounts: {
|
|
1155
|
+
measurement: {
|
|
1156
|
+
name: string;
|
|
1157
|
+
id: string;
|
|
1158
|
+
abbrev: string;
|
|
1159
|
+
conversion: {
|
|
1160
|
+
amount: number;
|
|
1161
|
+
precision: number;
|
|
1162
|
+
};
|
|
1163
|
+
baseUnitId: string;
|
|
1164
|
+
};
|
|
1165
|
+
amount: {
|
|
1166
|
+
amount: number;
|
|
1167
|
+
precision: number;
|
|
1168
|
+
};
|
|
1169
|
+
outputSkuId: string;
|
|
1170
|
+
}[];
|
|
1171
|
+
}[];
|
|
1172
|
+
} | null | undefined;
|
|
1173
|
+
status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
|
|
1174
|
+
_id: string;
|
|
1175
|
+
createdAt: string;
|
|
1176
|
+
items: {
|
|
1177
|
+
measurement: {
|
|
1178
|
+
name: string;
|
|
1179
|
+
id: string;
|
|
1180
|
+
abbrev: string;
|
|
1181
|
+
conversion: {
|
|
1182
|
+
amount: number;
|
|
1183
|
+
precision: number;
|
|
1184
|
+
};
|
|
1185
|
+
baseUnitId: string;
|
|
1186
|
+
};
|
|
1187
|
+
skuId: string;
|
|
1188
|
+
requestedAmount: {
|
|
1189
|
+
amount: number;
|
|
1190
|
+
precision: number;
|
|
1191
|
+
};
|
|
1192
|
+
}[];
|
|
1193
|
+
createdBy: {
|
|
1194
|
+
name: string;
|
|
1195
|
+
id: string;
|
|
1196
|
+
};
|
|
1197
|
+
activityLogs: {
|
|
1198
|
+
remark?: string | null | undefined;
|
|
1199
|
+
action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
|
|
1200
|
+
performedAt: string;
|
|
1201
|
+
performedBy: {
|
|
1202
|
+
name: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
};
|
|
1205
|
+
}[];
|
|
1206
|
+
requestedIngredientPlan: {
|
|
1207
|
+
ingredients: {
|
|
1208
|
+
amounts: {
|
|
1209
|
+
measurement: {
|
|
1210
|
+
name: string;
|
|
1211
|
+
id: string;
|
|
1212
|
+
abbrev: string;
|
|
1213
|
+
conversion: {
|
|
1214
|
+
amount: number;
|
|
1215
|
+
precision: number;
|
|
1216
|
+
};
|
|
1217
|
+
baseUnitId: string;
|
|
1218
|
+
};
|
|
1219
|
+
amount: {
|
|
1220
|
+
amount: number;
|
|
1221
|
+
precision: number;
|
|
1222
|
+
};
|
|
1223
|
+
outputSkuId: string;
|
|
1224
|
+
}[];
|
|
1225
|
+
ingredient: {
|
|
1226
|
+
code: string;
|
|
1227
|
+
skuId: string;
|
|
1228
|
+
name: string;
|
|
1229
|
+
baseUnit: {
|
|
1230
|
+
name: string;
|
|
1231
|
+
id: string;
|
|
1232
|
+
abbrev: string;
|
|
1233
|
+
conversion: {
|
|
1234
|
+
amount: number;
|
|
1235
|
+
precision: number;
|
|
1236
|
+
};
|
|
1237
|
+
baseUnitId: string;
|
|
1238
|
+
};
|
|
1239
|
+
};
|
|
1240
|
+
}[];
|
|
1241
|
+
skippedSkuIds: string[];
|
|
1242
|
+
} | null;
|
|
1243
|
+
runNo: number;
|
|
1244
|
+
runName: string | null;
|
|
1245
|
+
instructions: string | null;
|
|
1246
|
+
issuances: {
|
|
1247
|
+
remark?: string | null | undefined;
|
|
1248
|
+
adjustmentId: string;
|
|
1249
|
+
items: {
|
|
1250
|
+
measurement: {
|
|
1251
|
+
name: string;
|
|
1252
|
+
id: string;
|
|
1253
|
+
abbrev: string;
|
|
1254
|
+
conversion: {
|
|
1255
|
+
amount: number;
|
|
1256
|
+
precision: number;
|
|
1257
|
+
};
|
|
1258
|
+
baseUnitId: string;
|
|
1259
|
+
};
|
|
1260
|
+
sku: {
|
|
1261
|
+
trackingMeasurement?: string | null | undefined;
|
|
1262
|
+
isInactive?: boolean | null | undefined;
|
|
1263
|
+
convert?: {
|
|
1264
|
+
measurement?: string | null | undefined;
|
|
1265
|
+
inventoryBindings?: {
|
|
1266
|
+
measurement?: {
|
|
1267
|
+
name: string;
|
|
1268
|
+
id: string;
|
|
1269
|
+
abbrev: string;
|
|
1270
|
+
conversion: {
|
|
1271
|
+
amount: number;
|
|
1272
|
+
precision: number;
|
|
1273
|
+
};
|
|
1274
|
+
} | null | undefined;
|
|
1275
|
+
rules?: Record<string, any> | null | undefined;
|
|
1276
|
+
alternatives?: {
|
|
1277
|
+
default?: boolean | null | undefined;
|
|
1278
|
+
trackingMeasurement?: string | null | undefined;
|
|
1279
|
+
priority?: number | null | undefined;
|
|
1280
|
+
_id: string;
|
|
1281
|
+
}[] | null | undefined;
|
|
1282
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1283
|
+
amount: {
|
|
1284
|
+
amount: number;
|
|
1285
|
+
precision: number;
|
|
1286
|
+
};
|
|
1287
|
+
id: string;
|
|
1288
|
+
}[] | null | undefined;
|
|
1289
|
+
} | null | undefined;
|
|
1290
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1291
|
+
defaultCost?: {
|
|
1292
|
+
measurement?: {
|
|
1293
|
+
name: string;
|
|
1294
|
+
id: string;
|
|
1295
|
+
abbrev: string;
|
|
1296
|
+
conversion: {
|
|
1297
|
+
amount: number;
|
|
1298
|
+
precision: number;
|
|
1299
|
+
};
|
|
1300
|
+
} | null | undefined;
|
|
1301
|
+
costPerUnit: {
|
|
1302
|
+
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";
|
|
1303
|
+
amount: number;
|
|
1304
|
+
precision: number;
|
|
1305
|
+
};
|
|
1306
|
+
} | null | undefined;
|
|
1307
|
+
operationalGroup?: string | null | undefined;
|
|
1308
|
+
thresholds?: {
|
|
1309
|
+
low: number;
|
|
1310
|
+
mid: number;
|
|
1311
|
+
} | null | undefined;
|
|
1312
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1313
|
+
unit: {
|
|
1314
|
+
_id: string;
|
|
1315
|
+
name: string;
|
|
1316
|
+
abbrev: string;
|
|
1317
|
+
precision: number;
|
|
1318
|
+
measurements: {
|
|
1319
|
+
name: string;
|
|
1320
|
+
id: string;
|
|
1321
|
+
abbrev: string;
|
|
1322
|
+
conversion: {
|
|
1323
|
+
amount: number;
|
|
1324
|
+
precision: number;
|
|
1325
|
+
};
|
|
1326
|
+
}[];
|
|
1327
|
+
};
|
|
1328
|
+
code: string;
|
|
1329
|
+
_id: string;
|
|
1330
|
+
name: string;
|
|
1331
|
+
};
|
|
1332
|
+
skuId: string;
|
|
1333
|
+
committedAmount: {
|
|
1334
|
+
amount: number;
|
|
1335
|
+
precision: number;
|
|
1336
|
+
};
|
|
1337
|
+
}[];
|
|
1338
|
+
skippedSkuIds: string[];
|
|
1339
|
+
issuedAt: string;
|
|
1340
|
+
issuedBy: {
|
|
1341
|
+
name: string;
|
|
1342
|
+
id: string;
|
|
1343
|
+
};
|
|
1344
|
+
acknowledgedShortages: {
|
|
1345
|
+
skuId: string;
|
|
1346
|
+
baseUnit: {
|
|
1347
|
+
name: string;
|
|
1348
|
+
id: string;
|
|
1349
|
+
abbrev: string;
|
|
1350
|
+
conversion: {
|
|
1351
|
+
amount: number;
|
|
1352
|
+
precision: number;
|
|
1353
|
+
};
|
|
1354
|
+
baseUnitId: string;
|
|
1355
|
+
};
|
|
1356
|
+
projectedBalance: {
|
|
1357
|
+
amount: number;
|
|
1358
|
+
precision: number;
|
|
1359
|
+
};
|
|
1360
|
+
}[];
|
|
1361
|
+
}[];
|
|
1362
|
+
batches: {
|
|
1363
|
+
adjustmentId: string;
|
|
1364
|
+
id: string;
|
|
1365
|
+
remark: string | null;
|
|
1366
|
+
items: {
|
|
1367
|
+
measurement: {
|
|
1368
|
+
name: string;
|
|
1369
|
+
id: string;
|
|
1370
|
+
abbrev: string;
|
|
1371
|
+
conversion: {
|
|
1372
|
+
amount: number;
|
|
1373
|
+
precision: number;
|
|
1374
|
+
};
|
|
1375
|
+
baseUnitId: string;
|
|
1376
|
+
};
|
|
1377
|
+
skuId: string;
|
|
1378
|
+
producedAmount: {
|
|
1379
|
+
amount: number;
|
|
1380
|
+
precision: number;
|
|
1381
|
+
};
|
|
1382
|
+
}[];
|
|
1383
|
+
operationKey: string;
|
|
1384
|
+
producedAt: string;
|
|
1385
|
+
recordedAt: string;
|
|
1386
|
+
recordedBy: {
|
|
1387
|
+
name: string;
|
|
1388
|
+
id: string;
|
|
1389
|
+
};
|
|
1390
|
+
wastages: {
|
|
1391
|
+
measurement: {
|
|
1392
|
+
name: string;
|
|
1393
|
+
id: string;
|
|
1394
|
+
abbrev: string;
|
|
1395
|
+
conversion: {
|
|
1396
|
+
amount: number;
|
|
1397
|
+
precision: number;
|
|
1398
|
+
};
|
|
1399
|
+
baseUnitId: string;
|
|
1400
|
+
};
|
|
1401
|
+
skuId: string;
|
|
1402
|
+
amount: {
|
|
1403
|
+
amount: number;
|
|
1404
|
+
precision: number;
|
|
1405
|
+
};
|
|
1406
|
+
reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
|
|
1407
|
+
remark: string | null;
|
|
1408
|
+
itemSkuId: string;
|
|
1409
|
+
}[];
|
|
1410
|
+
}[];
|
|
1411
|
+
} | null>;
|
|
1412
|
+
phase: import("vue").Ref<ProductionRunDetailPhase, ProductionRunDetailPhase>;
|
|
1413
|
+
errorMessage: import("vue").Ref<string | null, string | null>;
|
|
1414
|
+
activeTab: import("vue").Ref<ProductionRunDetailTab, ProductionRunDetailTab>;
|
|
1415
|
+
tabs: import("vue").ComputedRef<ProductionRunDetailTab[]>;
|
|
1416
|
+
locationName: import("vue").ComputedRef<string>;
|
|
1417
|
+
stockRecalculation: import("vue").Ref<StockRecalculationState | null, StockRecalculationState | null>;
|
|
1418
|
+
stockRecalculationRequired: import("vue").ComputedRef<boolean>;
|
|
1419
|
+
/** The one way to take a stock-moving write's answer onto the page. */
|
|
1420
|
+
adoptWriteResult: (result: WithRev<{
|
|
1421
|
+
_rev?: string | null | undefined;
|
|
1422
|
+
cancelledAt?: string | null | undefined;
|
|
1423
|
+
cancelReason?: string | null | undefined;
|
|
1424
|
+
closedAt?: string | null | undefined;
|
|
1425
|
+
pendingIssuance?: {
|
|
1426
|
+
remark?: string | null | undefined;
|
|
1427
|
+
adjustmentId: string;
|
|
1428
|
+
items: {
|
|
1429
|
+
measurement: {
|
|
1430
|
+
name: string;
|
|
1431
|
+
id: string;
|
|
1432
|
+
abbrev: string;
|
|
1433
|
+
conversion: {
|
|
1434
|
+
amount: number;
|
|
1435
|
+
precision: number;
|
|
1436
|
+
};
|
|
1437
|
+
baseUnitId: string;
|
|
1438
|
+
};
|
|
1439
|
+
sku: {
|
|
1440
|
+
trackingMeasurement?: string | null | undefined;
|
|
1441
|
+
isInactive?: boolean | null | undefined;
|
|
1442
|
+
convert?: {
|
|
1443
|
+
measurement?: string | null | undefined;
|
|
1444
|
+
inventoryBindings?: {
|
|
1445
|
+
measurement?: {
|
|
1446
|
+
name: string;
|
|
1447
|
+
id: string;
|
|
1448
|
+
abbrev: string;
|
|
1449
|
+
conversion: {
|
|
1450
|
+
amount: number;
|
|
1451
|
+
precision: number;
|
|
1452
|
+
};
|
|
1453
|
+
} | null | undefined;
|
|
1454
|
+
rules?: Record<string, any> | null | undefined;
|
|
1455
|
+
alternatives?: {
|
|
1456
|
+
default?: boolean | null | undefined;
|
|
1457
|
+
trackingMeasurement?: string | null | undefined;
|
|
1458
|
+
priority?: number | null | undefined;
|
|
1459
|
+
_id: string;
|
|
1460
|
+
}[] | null | undefined;
|
|
1461
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1462
|
+
amount: {
|
|
1463
|
+
amount: number;
|
|
1464
|
+
precision: number;
|
|
1465
|
+
};
|
|
1466
|
+
id: string;
|
|
1467
|
+
}[] | null | undefined;
|
|
1468
|
+
} | null | undefined;
|
|
1469
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1470
|
+
defaultCost?: {
|
|
1471
|
+
measurement?: {
|
|
1472
|
+
name: string;
|
|
1473
|
+
id: string;
|
|
1474
|
+
abbrev: string;
|
|
1475
|
+
conversion: {
|
|
1476
|
+
amount: number;
|
|
1477
|
+
precision: number;
|
|
1478
|
+
};
|
|
1479
|
+
} | null | undefined;
|
|
1480
|
+
costPerUnit: {
|
|
1481
|
+
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";
|
|
1482
|
+
amount: number;
|
|
1483
|
+
precision: number;
|
|
1484
|
+
};
|
|
1485
|
+
} | null | undefined;
|
|
1486
|
+
operationalGroup?: string | null | undefined;
|
|
1487
|
+
thresholds?: {
|
|
1488
|
+
low: number;
|
|
1489
|
+
mid: number;
|
|
1490
|
+
} | null | undefined;
|
|
1491
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1492
|
+
unit: {
|
|
1493
|
+
_id: string;
|
|
1494
|
+
name: string;
|
|
1495
|
+
abbrev: string;
|
|
1496
|
+
precision: number;
|
|
1497
|
+
measurements: {
|
|
1498
|
+
name: string;
|
|
1499
|
+
id: string;
|
|
1500
|
+
abbrev: string;
|
|
1501
|
+
conversion: {
|
|
1502
|
+
amount: number;
|
|
1503
|
+
precision: number;
|
|
1504
|
+
};
|
|
1505
|
+
}[];
|
|
1506
|
+
};
|
|
1507
|
+
code: string;
|
|
1508
|
+
_id: string;
|
|
1509
|
+
name: string;
|
|
1510
|
+
};
|
|
1511
|
+
skuId: string;
|
|
1512
|
+
committedAmount: {
|
|
1513
|
+
amount: number;
|
|
1514
|
+
precision: number;
|
|
1515
|
+
};
|
|
1516
|
+
}[];
|
|
1517
|
+
skippedSkuIds: string[];
|
|
1518
|
+
acknowledgedShortages: {
|
|
1519
|
+
skuId: string;
|
|
1520
|
+
baseUnit: {
|
|
1521
|
+
name: string;
|
|
1522
|
+
id: string;
|
|
1523
|
+
abbrev: string;
|
|
1524
|
+
conversion: {
|
|
1525
|
+
amount: number;
|
|
1526
|
+
precision: number;
|
|
1527
|
+
};
|
|
1528
|
+
baseUnitId: string;
|
|
1529
|
+
};
|
|
1530
|
+
projectedBalance: {
|
|
1531
|
+
amount: number;
|
|
1532
|
+
precision: number;
|
|
1533
|
+
};
|
|
1534
|
+
}[];
|
|
1535
|
+
claimedAt: string;
|
|
1536
|
+
claimedBy: {
|
|
1537
|
+
name: string;
|
|
1538
|
+
id: string;
|
|
1539
|
+
};
|
|
1540
|
+
movement: {
|
|
1541
|
+
sku: {
|
|
1542
|
+
trackingMeasurement?: string | null | undefined;
|
|
1543
|
+
isInactive?: boolean | null | undefined;
|
|
1544
|
+
convert?: {
|
|
1545
|
+
measurement?: string | null | undefined;
|
|
1546
|
+
inventoryBindings?: {
|
|
1547
|
+
measurement?: {
|
|
1548
|
+
name: string;
|
|
1549
|
+
id: string;
|
|
1550
|
+
abbrev: string;
|
|
1551
|
+
conversion: {
|
|
1552
|
+
amount: number;
|
|
1553
|
+
precision: number;
|
|
1554
|
+
};
|
|
1555
|
+
} | null | undefined;
|
|
1556
|
+
rules?: Record<string, any> | null | undefined;
|
|
1557
|
+
alternatives?: {
|
|
1558
|
+
default?: boolean | null | undefined;
|
|
1559
|
+
trackingMeasurement?: string | null | undefined;
|
|
1560
|
+
priority?: number | null | undefined;
|
|
1561
|
+
_id: string;
|
|
1562
|
+
}[] | null | undefined;
|
|
1563
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1564
|
+
amount: {
|
|
1565
|
+
amount: number;
|
|
1566
|
+
precision: number;
|
|
1567
|
+
};
|
|
1568
|
+
id: string;
|
|
1569
|
+
}[] | null | undefined;
|
|
1570
|
+
} | null | undefined;
|
|
1571
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1572
|
+
defaultCost?: {
|
|
1573
|
+
measurement?: {
|
|
1574
|
+
name: string;
|
|
1575
|
+
id: string;
|
|
1576
|
+
abbrev: string;
|
|
1577
|
+
conversion: {
|
|
1578
|
+
amount: number;
|
|
1579
|
+
precision: number;
|
|
1580
|
+
};
|
|
1581
|
+
} | null | undefined;
|
|
1582
|
+
costPerUnit: {
|
|
1583
|
+
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";
|
|
1584
|
+
amount: number;
|
|
1585
|
+
precision: number;
|
|
1586
|
+
};
|
|
1587
|
+
} | null | undefined;
|
|
1588
|
+
operationalGroup?: string | null | undefined;
|
|
1589
|
+
thresholds?: {
|
|
1590
|
+
low: number;
|
|
1591
|
+
mid: number;
|
|
1592
|
+
} | null | undefined;
|
|
1593
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1594
|
+
unit: {
|
|
1595
|
+
_id: string;
|
|
1596
|
+
name: string;
|
|
1597
|
+
abbrev: string;
|
|
1598
|
+
precision: number;
|
|
1599
|
+
measurements: {
|
|
1600
|
+
name: string;
|
|
1601
|
+
id: string;
|
|
1602
|
+
abbrev: string;
|
|
1603
|
+
conversion: {
|
|
1604
|
+
amount: number;
|
|
1605
|
+
precision: number;
|
|
1606
|
+
};
|
|
1607
|
+
}[];
|
|
1608
|
+
};
|
|
1609
|
+
code: string;
|
|
1610
|
+
_id: string;
|
|
1611
|
+
name: string;
|
|
1612
|
+
};
|
|
1613
|
+
amounts: {
|
|
1614
|
+
measurement: {
|
|
1615
|
+
name: string;
|
|
1616
|
+
id: string;
|
|
1617
|
+
abbrev: string;
|
|
1618
|
+
conversion: {
|
|
1619
|
+
amount: number;
|
|
1620
|
+
precision: number;
|
|
1621
|
+
};
|
|
1622
|
+
baseUnitId: string;
|
|
1623
|
+
};
|
|
1624
|
+
amount: {
|
|
1625
|
+
amount: number;
|
|
1626
|
+
precision: number;
|
|
1627
|
+
};
|
|
1628
|
+
outputSkuId: string;
|
|
1629
|
+
}[];
|
|
1630
|
+
}[];
|
|
1631
|
+
} | null | undefined;
|
|
1632
|
+
status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
|
|
1633
|
+
_id: string;
|
|
1634
|
+
createdAt: string;
|
|
1635
|
+
items: {
|
|
1636
|
+
measurement: {
|
|
1637
|
+
name: string;
|
|
1638
|
+
id: string;
|
|
1639
|
+
abbrev: string;
|
|
1640
|
+
conversion: {
|
|
1641
|
+
amount: number;
|
|
1642
|
+
precision: number;
|
|
1643
|
+
};
|
|
1644
|
+
baseUnitId: string;
|
|
1645
|
+
};
|
|
1646
|
+
skuId: string;
|
|
1647
|
+
requestedAmount: {
|
|
1648
|
+
amount: number;
|
|
1649
|
+
precision: number;
|
|
1650
|
+
};
|
|
1651
|
+
}[];
|
|
1652
|
+
createdBy: {
|
|
1653
|
+
name: string;
|
|
1654
|
+
id: string;
|
|
1655
|
+
};
|
|
1656
|
+
activityLogs: {
|
|
1657
|
+
remark?: string | null | undefined;
|
|
1658
|
+
action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
|
|
1659
|
+
performedAt: string;
|
|
1660
|
+
performedBy: {
|
|
1661
|
+
name: string;
|
|
1662
|
+
id: string;
|
|
1663
|
+
};
|
|
1664
|
+
}[];
|
|
1665
|
+
requestedIngredientPlan: {
|
|
1666
|
+
ingredients: {
|
|
1667
|
+
amounts: {
|
|
1668
|
+
measurement: {
|
|
1669
|
+
name: string;
|
|
1670
|
+
id: string;
|
|
1671
|
+
abbrev: string;
|
|
1672
|
+
conversion: {
|
|
1673
|
+
amount: number;
|
|
1674
|
+
precision: number;
|
|
1675
|
+
};
|
|
1676
|
+
baseUnitId: string;
|
|
1677
|
+
};
|
|
1678
|
+
amount: {
|
|
1679
|
+
amount: number;
|
|
1680
|
+
precision: number;
|
|
1681
|
+
};
|
|
1682
|
+
outputSkuId: string;
|
|
1683
|
+
}[];
|
|
1684
|
+
ingredient: {
|
|
1685
|
+
code: string;
|
|
1686
|
+
skuId: string;
|
|
1687
|
+
name: string;
|
|
1688
|
+
baseUnit: {
|
|
1689
|
+
name: string;
|
|
1690
|
+
id: string;
|
|
1691
|
+
abbrev: string;
|
|
1692
|
+
conversion: {
|
|
1693
|
+
amount: number;
|
|
1694
|
+
precision: number;
|
|
1695
|
+
};
|
|
1696
|
+
baseUnitId: string;
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
}[];
|
|
1700
|
+
skippedSkuIds: string[];
|
|
1701
|
+
} | null;
|
|
1702
|
+
runNo: number;
|
|
1703
|
+
runName: string | null;
|
|
1704
|
+
instructions: string | null;
|
|
1705
|
+
issuances: {
|
|
1706
|
+
remark?: string | null | undefined;
|
|
1707
|
+
adjustmentId: string;
|
|
1708
|
+
items: {
|
|
1709
|
+
measurement: {
|
|
1710
|
+
name: string;
|
|
1711
|
+
id: string;
|
|
1712
|
+
abbrev: string;
|
|
1713
|
+
conversion: {
|
|
1714
|
+
amount: number;
|
|
1715
|
+
precision: number;
|
|
1716
|
+
};
|
|
1717
|
+
baseUnitId: string;
|
|
1718
|
+
};
|
|
1719
|
+
sku: {
|
|
1720
|
+
trackingMeasurement?: string | null | undefined;
|
|
1721
|
+
isInactive?: boolean | null | undefined;
|
|
1722
|
+
convert?: {
|
|
1723
|
+
measurement?: string | null | undefined;
|
|
1724
|
+
inventoryBindings?: {
|
|
1725
|
+
measurement?: {
|
|
1726
|
+
name: string;
|
|
1727
|
+
id: string;
|
|
1728
|
+
abbrev: string;
|
|
1729
|
+
conversion: {
|
|
1730
|
+
amount: number;
|
|
1731
|
+
precision: number;
|
|
1732
|
+
};
|
|
1733
|
+
} | null | undefined;
|
|
1734
|
+
rules?: Record<string, any> | null | undefined;
|
|
1735
|
+
alternatives?: {
|
|
1736
|
+
default?: boolean | null | undefined;
|
|
1737
|
+
trackingMeasurement?: string | null | undefined;
|
|
1738
|
+
priority?: number | null | undefined;
|
|
1739
|
+
_id: string;
|
|
1740
|
+
}[] | null | undefined;
|
|
1741
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1742
|
+
amount: {
|
|
1743
|
+
amount: number;
|
|
1744
|
+
precision: number;
|
|
1745
|
+
};
|
|
1746
|
+
id: string;
|
|
1747
|
+
}[] | null | undefined;
|
|
1748
|
+
} | null | undefined;
|
|
1749
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
1750
|
+
defaultCost?: {
|
|
1751
|
+
measurement?: {
|
|
1752
|
+
name: string;
|
|
1753
|
+
id: string;
|
|
1754
|
+
abbrev: string;
|
|
1755
|
+
conversion: {
|
|
1756
|
+
amount: number;
|
|
1757
|
+
precision: number;
|
|
1758
|
+
};
|
|
1759
|
+
} | null | undefined;
|
|
1760
|
+
costPerUnit: {
|
|
1761
|
+
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";
|
|
1762
|
+
amount: number;
|
|
1763
|
+
precision: number;
|
|
1764
|
+
};
|
|
1765
|
+
} | null | undefined;
|
|
1766
|
+
operationalGroup?: string | null | undefined;
|
|
1767
|
+
thresholds?: {
|
|
1768
|
+
low: number;
|
|
1769
|
+
mid: number;
|
|
1770
|
+
} | null | undefined;
|
|
1771
|
+
customAttributes?: Record<string, any> | null | undefined;
|
|
1772
|
+
unit: {
|
|
1773
|
+
_id: string;
|
|
1774
|
+
name: string;
|
|
1775
|
+
abbrev: string;
|
|
1776
|
+
precision: number;
|
|
1777
|
+
measurements: {
|
|
1778
|
+
name: string;
|
|
1779
|
+
id: string;
|
|
1780
|
+
abbrev: string;
|
|
1781
|
+
conversion: {
|
|
1782
|
+
amount: number;
|
|
1783
|
+
precision: number;
|
|
1784
|
+
};
|
|
1785
|
+
}[];
|
|
1786
|
+
};
|
|
1787
|
+
code: string;
|
|
1788
|
+
_id: string;
|
|
1789
|
+
name: string;
|
|
1790
|
+
};
|
|
1791
|
+
skuId: string;
|
|
1792
|
+
committedAmount: {
|
|
1793
|
+
amount: number;
|
|
1794
|
+
precision: number;
|
|
1795
|
+
};
|
|
1796
|
+
}[];
|
|
1797
|
+
skippedSkuIds: string[];
|
|
1798
|
+
issuedAt: string;
|
|
1799
|
+
issuedBy: {
|
|
1800
|
+
name: string;
|
|
1801
|
+
id: string;
|
|
1802
|
+
};
|
|
1803
|
+
acknowledgedShortages: {
|
|
1804
|
+
skuId: string;
|
|
1805
|
+
baseUnit: {
|
|
1806
|
+
name: string;
|
|
1807
|
+
id: string;
|
|
1808
|
+
abbrev: string;
|
|
1809
|
+
conversion: {
|
|
1810
|
+
amount: number;
|
|
1811
|
+
precision: number;
|
|
1812
|
+
};
|
|
1813
|
+
baseUnitId: string;
|
|
1814
|
+
};
|
|
1815
|
+
projectedBalance: {
|
|
1816
|
+
amount: number;
|
|
1817
|
+
precision: number;
|
|
1818
|
+
};
|
|
1819
|
+
}[];
|
|
1820
|
+
}[];
|
|
1821
|
+
batches: {
|
|
1822
|
+
adjustmentId: string;
|
|
1823
|
+
id: string;
|
|
1824
|
+
remark: string | null;
|
|
1825
|
+
items: {
|
|
1826
|
+
measurement: {
|
|
1827
|
+
name: string;
|
|
1828
|
+
id: string;
|
|
1829
|
+
abbrev: string;
|
|
1830
|
+
conversion: {
|
|
1831
|
+
amount: number;
|
|
1832
|
+
precision: number;
|
|
1833
|
+
};
|
|
1834
|
+
baseUnitId: string;
|
|
1835
|
+
};
|
|
1836
|
+
skuId: string;
|
|
1837
|
+
producedAmount: {
|
|
1838
|
+
amount: number;
|
|
1839
|
+
precision: number;
|
|
1840
|
+
};
|
|
1841
|
+
}[];
|
|
1842
|
+
operationKey: string;
|
|
1843
|
+
producedAt: string;
|
|
1844
|
+
recordedAt: string;
|
|
1845
|
+
recordedBy: {
|
|
1846
|
+
name: string;
|
|
1847
|
+
id: string;
|
|
1848
|
+
};
|
|
1849
|
+
wastages: {
|
|
1850
|
+
measurement: {
|
|
1851
|
+
name: string;
|
|
1852
|
+
id: string;
|
|
1853
|
+
abbrev: string;
|
|
1854
|
+
conversion: {
|
|
1855
|
+
amount: number;
|
|
1856
|
+
precision: number;
|
|
1857
|
+
};
|
|
1858
|
+
baseUnitId: string;
|
|
1859
|
+
};
|
|
1860
|
+
skuId: string;
|
|
1861
|
+
amount: {
|
|
1862
|
+
amount: number;
|
|
1863
|
+
precision: number;
|
|
1864
|
+
};
|
|
1865
|
+
reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
|
|
1866
|
+
remark: string | null;
|
|
1867
|
+
itemSkuId: string;
|
|
1868
|
+
}[];
|
|
1869
|
+
}[];
|
|
1870
|
+
}> | {
|
|
1871
|
+
run: WithRev<FdoProductionRun>;
|
|
1872
|
+
stockRecalculationRequired: boolean;
|
|
1873
|
+
stockRecalculationDispatch?: RecalculationDispatch | undefined;
|
|
1874
|
+
}) => void;
|
|
1875
|
+
hasIssuance: import("vue").ComputedRef<boolean>;
|
|
1876
|
+
batches: import("vue").ComputedRef<ProductionOutputBatch[]>;
|
|
1877
|
+
committed: import("vue").ComputedRef<number | null>;
|
|
1878
|
+
produced: import("vue").ComputedRef<number | null>;
|
|
1879
|
+
remaining: import("vue").ComputedRef<number | null>;
|
|
1880
|
+
attainmentPercent: import("vue").ComputedRef<number | null>;
|
|
1881
|
+
atTarget: import("vue").ComputedRef<boolean>;
|
|
1882
|
+
targetReachedOpen: import("vue").ComputedRef<boolean>;
|
|
1883
|
+
outcome: import("vue").ComputedRef<"target-reached" | "below-target" | null>;
|
|
1884
|
+
summable: import("vue").ComputedRef<boolean>;
|
|
1885
|
+
legalActions: import("vue").ComputedRef<import("./use-production-run-actions").ProductionRunAction[]>;
|
|
1886
|
+
/** Legality asked as a question, so callers never re-derive the table. */
|
|
1887
|
+
can: (action: ProductionRunLifecycleAction) => boolean;
|
|
1888
|
+
primaryAction: import("vue").ComputedRef<ProductionRunLifecycleAction | null>;
|
|
1889
|
+
secondaryActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
|
|
1890
|
+
dangerActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
|
|
1891
|
+
load: () => Promise<void>;
|
|
1892
|
+
reload: () => Promise<void>;
|
|
1893
|
+
};
|
|
1894
|
+
export {};
|