@feedmepos/mf-inventory-portal 1.7.15-dev.3 → 1.7.16-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/dist/{App-B1h66sv9.js → App-DFSszWS2.js} +7 -7
  2. package/dist/{ApprovalView-DKlVcGah.js → ApprovalView-sHjUr1tA.js} +9 -9
  3. package/dist/{BindingsDialog-CxHlh0kQ.js → BindingsDialog-B-64TNTI.js} +2 -2
  4. package/dist/{BindingsPicker-BiF5OZEi.js → BindingsPicker-Czn-jEHe.js} +2 -2
  5. package/dist/{BindingsTable-CygkFbyE.js → BindingsTable-CmB0b3ov.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-Cf4IHMVn.js → BulkReceiveRequestView-BjGCwQiH.js} +19 -19
  7. package/dist/{ClosingDraftView-DFnGCAHQ.js → ClosingDraftView-DJLqwVmZ.js} +19 -19
  8. package/dist/{ClosingHistoryView-c51cSbco.js → ClosingHistoryView-Dj170bDN.js} +5 -5
  9. package/dist/{ClosingTemplateView-tKdJEP6p.js → ClosingTemplateView-DsfJz31T.js} +16 -16
  10. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-Br8lpoIh.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CitZIaJ7.js} +1 -1
  11. package/dist/{DefaultView-2PPCmcbd.js → DefaultView-CsI2C4Hr.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-BKSQLP79.js → DeliveryOrderPrintPreview-8EupGZmv.js} +12 -12
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DNbWlGwL.js → EmailDialog.vue_vue_type_script_setup_true_lang-DX_o7mMG.js} +23 -23
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D-EePpPI.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Vn94NCmp.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUrLcbIR.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-nq-MgcVV.js} +2 -2
  16. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DAFZz6rG.js +243 -0
  17. package/dist/{FmMultiselectDialog-4K4U13Fa.js → FmMultiselectDialog-B5gQRKE6.js} +1 -1
  18. package/dist/{FmMultiselectDialog-CMUU4YMv.js → FmMultiselectDialog-CZr-dX4K.js} +2 -2
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CWPYtvi-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BtZOjqlQ.js} +66 -63
  20. package/dist/{ImportView-3BL5dbPC.js → ImportView-Htolj46U.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Gt9-RVuI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CTlKy5y-.js} +1 -1
  22. package/dist/{IngredientGroupView-CrQr-Wcc.js → IngredientGroupView-zZgJ3F9O.js} +5 -5
  23. package/dist/{IngredientsView-Co_ULkb6.js → IngredientsView-BhIIUpq5.js} +15 -15
  24. package/dist/{IntegrationExplorerView-Byz0ZiN7.js → IntegrationExplorerView-a7EEa4a4.js} +4 -4
  25. package/dist/{IntegrationView-BZvXCtuu.js → IntegrationView-Dbr7gTAK.js} +14 -14
  26. package/dist/{InventoryBindingForm-D7at6ntj.js → InventoryBindingForm-DSAHtnBI.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BfN7YCnp.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQToFOhK.js} +5 -5
  28. package/dist/{InventoryBindingSummary-DIWHwJwb.js → InventoryBindingSummary-D_jEP9vJ.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DLIYFBaL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BNsoxRX6.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIjAFa7R.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BdqeMPWW.js} +1 -1
  31. package/dist/ProductionRunDetailView-DnIVaUbO.js +2284 -0
  32. package/dist/ProductionRunPreparePrintView-B7KsNPgV.js +34 -0
  33. package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DkvVIKgN.js +7543 -0
  34. package/dist/ProductionRunView-9tC9ljDT.js +911 -0
  35. package/dist/{PublishView-qzVWXhU2.js → PublishView-tOyFyzkR.js} +3 -3
  36. package/dist/{PurchaseOrderPrintPreview-Dv107ZcE.js → PurchaseOrderPrintPreview-CKyZ5jco.js} +7 -7
  37. package/dist/{ReceiveRequestView-BoDIlSIR.js → ReceiveRequestView-Brjz7YtB.js} +14 -14
  38. package/dist/{RecipeView-CZExmd9h.js → RecipeView-DntISZwO.js} +17 -17
  39. package/dist/{SettingsView-JvHtBOeh.js → SettingsView-_uzG3DYW.js} +4 -4
  40. package/dist/{StockView-DtAlqzrF.js → StockView-D0ns42PP.js} +363 -363
  41. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DWxA3wuR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-KlyTPTxq.js} +1 -1
  42. package/dist/{SupplierView-DIxYLwEk.js → SupplierView-Cg0BEv_J.js} +12 -12
  43. package/dist/{SurchargeView-BeMy7-Lu.js → SurchargeView-CtNt10E_.js} +6 -6
  44. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DrOVu6wg.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dm31p8O3.js} +2 -2
  45. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Chhxtkov.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C4zoOWNW.js} +1 -1
  46. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-2LCcSzCa.js → TransferDetails.vue_vue_type_script_setup_true_lang-nWON2kfX.js} +120 -120
  47. package/dist/{TransferTemplateView-DK_UHrGt.js → TransferTemplateView-DA-0VP3h.js} +20 -20
  48. package/dist/{UnitCostHistoryView-CbX9hG9F.js → UnitCostHistoryView-BIcZSZeY.js} +4 -4
  49. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CDQ7c1Gl.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2dmslg4.js} +4 -4
  50. package/dist/{UnitView-Cc_PTKs_.js → UnitView-B7hMqpmo.js} +7 -7
  51. package/dist/{WarehouseView-a-D3zs6h.js → WarehouseView-DQZhCobt.js} +334 -334
  52. package/dist/{WastageTemplateView-CFRi5Pvf.js → WastageTemplateView-Bg4oY2Vw.js} +14 -14
  53. package/dist/api/netsuite.d.ts +14 -8
  54. package/dist/api/production-run-error.d.ts +36 -0
  55. package/dist/api/production-run-error.spec.d.ts +1 -0
  56. package/dist/api/production-run.d.ts +80 -0
  57. package/dist/api/production-run.spec.d.ts +1 -0
  58. package/dist/{app-D8j93Oqu.js → app-CNKD3vjZ.js} +20007 -15586
  59. package/dist/app.d.ts +2998 -2
  60. package/dist/app.js +1 -1
  61. package/dist/{closing-template-C1b4O-N3.js → closing-template-BeegNS6p.js} +1 -1
  62. package/dist/components/FmUnitInput.spec.d.ts +1 -0
  63. package/dist/components/FmUnitInputProps.d.ts +2 -0
  64. package/dist/composable/useNavigationMenu.production.spec.d.ts +1 -0
  65. package/dist/{date2-uOSplHdf.js → date2-B00CYgio.js} +1 -1
  66. package/dist/{dayjs.min-jzzpE5jZ.js → dayjs.min-DPQzGVmJ.js} +1 -1
  67. package/dist/{decimal-8I4iIvBr.js → decimal-mk8IRyTq.js} +2 -2
  68. package/dist/{defineDeepModel-DBat73w6.js → defineDeepModel-DPmaWR48.js} +5 -5
  69. package/dist/{duplicate-template-hyvvKKZn.js → duplicate-template-CMddJ7le.js} +1 -1
  70. package/dist/{feature-BtW2IuYH.js → feature-fzePklTK.js} +28 -28
  71. package/dist/{format-time-from-id-TNzYsGd2.js → format-time-from-id-CX7mBtQD.js} +1 -1
  72. package/dist/{format-unit-display-Bv9J30wI.js → format-unit-display-C-WI6eC7.js} +12 -12
  73. package/dist/{import-export.helper-xpElLH-b.js → import-export.helper-BXXH9AYn.js} +6 -6
  74. package/dist/{index-CCpcCOf2.js → index-BGVJky7a.js} +1 -1
  75. package/dist/{index-BH22SMzP.js → index-D1nPGK7U.js} +3 -3
  76. package/dist/{index-CTQTVKeu.js → index-DJQBhZfo.js} +1 -1
  77. package/dist/{inventory-core-dart.default-BfVqWKxc.js → inventory-core-dart.default-CSFkzl91.js} +2928 -6981
  78. package/dist/{lz-string-BXcuXXWX.js → lz-string-CzFlgjO3.js} +1 -1
  79. package/dist/{netsuite-Bawdsy6u.js → netsuite-yzjEuV4c.js} +5 -3
  80. package/dist/{number-q25U2atb.js → number-LQ8tdP_1.js} +6 -6
  81. package/dist/{predefined-templates-DFETDxr0.js → predefined-templates-Db7qjPHc.js} +1 -1
  82. package/dist/production-run-prepare-sheet-BVAUvVqt.js +17411 -0
  83. package/dist/{purchase-order-template-BTSTgbF-.js → purchase-order-template-bBTN12Ij.js} +1 -1
  84. package/dist/{recalculationUtils-B-9ZEV5d.js → recalculationUtils-DN6oOoMX.js} +1 -1
  85. package/dist/router/name.d.ts +3 -1
  86. package/dist/router/shared.production.spec.d.ts +1 -0
  87. package/dist/{rules-_M2oshOW.js → rules-BdR1TB3v.js} +2 -2
  88. package/dist/{stock-CUsHHW7_.js → stock-AwNCy6xY.js} +1 -1
  89. package/dist/{stock-BdtZ5yDl.js → stock-BgGttjDF.js} +3 -3
  90. package/dist/stores/feature.d.ts +1 -1
  91. package/dist/stores/integration/codemax.d.ts +1 -1
  92. package/dist/stores/inventory.d.ts +10 -8
  93. package/dist/stores/stock.d.ts +10 -8
  94. package/dist/style.css +1 -1
  95. package/dist/{supplier-By-0Dy62.js → supplier-BNoSljLB.js} +2 -2
  96. package/dist/{surcharge-60G2Qke7.js → surcharge-pUc66ZZJ.js} +1 -1
  97. package/dist/tsconfig.app.tsbuildinfo +1 -1
  98. package/dist/{uom-rules-DeGuMW0s.js → uom-rules-BP8Vk8Rl.js} +1 -1
  99. package/dist/{use-ingredient-select-dialog-BVOtYoKp.js → use-ingredient-select-dialog-DTOzSrjt.js} +2 -2
  100. package/dist/{use-inventory-binding-dialog-CHm1Ezmr.js → use-inventory-binding-dialog-lHpBzqDy.js} +2 -2
  101. package/dist/{use-template-enabled-locations-C9vWaXj1.js → use-template-enabled-locations-DmCbj6aZ.js} +2 -2
  102. package/dist/{use-transfer-locations-VSzkSxBy.js → use-transfer-locations-BeARyv2s.js} +2 -2
  103. package/dist/{useHrmPermission-B48iHLre.js → useHrmPermission-DScCpS0P.js} +1 -1
  104. package/dist/{useNavigationMenu-DwRXSSh_.js → useNavigationMenu-B5pf21hS.js} +17 -17
  105. package/dist/{useSseClient-QeF0izVY.js → useSseClient-BPR5sQ_S.js} +1 -1
  106. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +20 -16
  107. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -32
  108. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +20 -16
  109. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +60 -48
  110. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -8
  111. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  112. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
  113. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
  114. package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
  115. package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
  116. package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +1 -0
  117. package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
  118. package/dist/views/production-run/ProductionRunView.vue.d.ts +2 -0
  119. package/dist/views/production-run/features/detail/ProductionRunActivityTab.spec.d.ts +1 -0
  120. package/dist/views/production-run/features/detail/ProductionRunActivityTab.vue.d.ts +15 -0
  121. package/dist/views/production-run/features/detail/ProductionRunHeader.spec.d.ts +1 -0
  122. package/dist/views/production-run/features/detail/ProductionRunHeader.vue.d.ts +67 -0
  123. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.spec.d.ts +1 -0
  124. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.vue.d.ts +52 -0
  125. package/dist/views/production-run/features/detail/ProductionRunItemsTable.spec.d.ts +1 -0
  126. package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +80 -0
  127. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.spec.d.ts +1 -0
  128. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +1066 -0
  129. package/dist/views/production-run/features/detail/ProductionRunResultTable.spec.d.ts +1 -0
  130. package/dist/views/{production/ProductionBindingsCell.vue.d.ts → production-run/features/detail/ProductionRunResultTable.vue.d.ts} +10 -14
  131. package/dist/views/production-run/features/detail/ProductionRunTabs.spec.d.ts +1 -0
  132. package/dist/views/production-run/features/detail/ProductionRunTabs.vue.d.ts +47 -0
  133. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.spec.d.ts +1 -0
  134. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.vue.d.ts +15 -0
  135. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +2098 -0
  136. package/dist/views/production-run/features/detail/use-production-run-detail.spec.d.ts +1 -0
  137. package/dist/views/production-run/features/lifecycle/CancelRunDialog.spec.d.ts +1 -0
  138. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +1020 -0
  139. package/dist/views/production-run/features/lifecycle/CancelRunDialogProps.d.ts +9 -0
  140. package/dist/views/production-run/features/lifecycle/CloseRunDialog.spec.d.ts +1 -0
  141. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +1020 -0
  142. package/dist/views/production-run/features/lifecycle/CloseRunDialogProps.d.ts +9 -0
  143. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.spec.d.ts +1 -0
  144. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +3573 -0
  145. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.spec.d.ts +1 -0
  146. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +1026 -0
  147. package/dist/views/production-run/features/list/ProductionRunActionMenu.vue.d.ts +56 -0
  148. package/dist/views/production-run/features/list/ProductionRunActionMenuItem.spec.d.ts +1 -0
  149. package/dist/views/{production/ProductionCompletionDialog.vue.d.ts → production-run/features/list/ProductionRunActionMenuItem.vue.d.ts} +8 -21
  150. package/dist/views/production-run/features/list/ProductionRunActionsCell.spec.d.ts +1 -0
  151. package/dist/views/production-run/features/list/ProductionRunActionsCell.vue.d.ts +20 -0
  152. package/dist/views/production-run/features/list/ProductionRunItemsCell.spec.d.ts +1 -0
  153. package/dist/views/production-run/features/list/ProductionRunItemsCell.vue.d.ts +40 -0
  154. package/dist/views/production-run/features/list/ProductionRunNameCell.spec.d.ts +1 -0
  155. package/dist/views/production-run/features/list/ProductionRunNameCell.vue.d.ts +43 -0
  156. package/dist/views/production-run/features/list/ProductionRunSortHeader.spec.d.ts +1 -0
  157. package/dist/views/production-run/features/list/ProductionRunSortHeader.vue.d.ts +25 -0
  158. package/dist/views/production-run/features/list/use-production-run-table.d.ts +18 -0
  159. package/dist/views/production-run/features/list/use-production-run-table.spec.d.ts +1 -0
  160. package/dist/views/production-run/features/output/ProductionRunBatchCard.spec.d.ts +1 -0
  161. package/dist/views/production-run/features/output/ProductionRunBatchCard.vue.d.ts +70 -0
  162. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
  163. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
  164. package/dist/views/production-run/features/output/ProductionRunOutputTab.spec.d.ts +1 -0
  165. package/dist/views/production-run/features/output/ProductionRunOutputTab.vue.d.ts +26 -0
  166. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
  167. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
  168. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
  169. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
  170. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.spec.d.ts +1 -0
  171. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.vue.d.ts +23 -0
  172. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.spec.d.ts +1 -0
  173. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.vue.d.ts +33 -0
  174. package/dist/views/production-run/features/output/RecordOutputDialog.spec.d.ts +1 -0
  175. package/dist/views/production-run/features/output/RecordOutputDialog.vue.d.ts +20 -0
  176. package/dist/views/production-run/features/output/RecordOutputDialogProps.d.ts +28 -0
  177. package/dist/views/production-run/features/output/use-production-run-record-output.d.ts +245 -0
  178. package/dist/views/production-run/features/output/use-production-run-record-output.spec.d.ts +1 -0
  179. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.spec.d.ts +1 -0
  180. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.vue.d.ts +25 -0
  181. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.spec.d.ts +1 -0
  182. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.vue.d.ts +21 -0
  183. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.spec.d.ts +1 -0
  184. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.vue.d.ts +61 -0
  185. package/dist/views/production-run/features/planning/ProductionRunFormDialog.spec.d.ts +1 -0
  186. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +1022 -0
  187. package/dist/views/production-run/features/planning/ProductionRunFormDialogProps.d.ts +25 -0
  188. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.spec.d.ts +1 -0
  189. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.vue.d.ts +65 -0
  190. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.spec.d.ts +1 -0
  191. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.vue.d.ts +15 -0
  192. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.spec.d.ts +1 -0
  193. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.vue.d.ts +30 -0
  194. package/dist/views/production-run/features/planning/ProductionRunPlanCard.spec.d.ts +1 -0
  195. package/dist/views/production-run/features/planning/ProductionRunPlanCard.vue.d.ts +67 -0
  196. package/dist/views/production-run/features/planning/ProductionRunPlanner.spec.d.ts +1 -0
  197. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +85 -0
  198. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.spec.d.ts +1 -0
  199. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.vue.d.ts +78 -0
  200. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.d.ts +49 -0
  201. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.spec.d.ts +1 -0
  202. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +1525 -0
  203. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts +1 -0
  204. package/dist/views/production-run/features/planning/use-production-run-form.d.ts +275 -0
  205. package/dist/views/production-run/features/planning/use-production-run-form.spec.d.ts +1 -0
  206. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.spec.d.ts +1 -0
  207. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.vue.d.ts +32 -0
  208. package/dist/views/production-run/features/prepare/PrepareRunDialog.spec.d.ts +1 -0
  209. package/dist/views/production-run/features/prepare/PrepareRunDialog.vue.d.ts +18 -0
  210. package/dist/views/production-run/features/prepare/PrepareRunDialogProps.d.ts +29 -0
  211. package/dist/views/production-run/features/prepare/PrepareSheetDialog.spec.d.ts +1 -0
  212. package/dist/views/production-run/features/prepare/PrepareSheetDialog.vue.d.ts +26 -0
  213. package/dist/views/production-run/features/prepare/ProductionRunPrepareSheet.vue.d.ts +16 -0
  214. package/dist/views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts +1 -0
  215. package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +18 -0
  216. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +6 -0
  217. package/dist/views/production-run/shared/helpers/production-run-navigation.spec.d.ts +1 -0
  218. package/dist/views/production-run/shared/helpers/production-run-precision.helper.d.ts +31 -0
  219. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.d.ts +57 -0
  220. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.spec.d.ts +1 -0
  221. package/dist/views/production-run/shared/model/production-run-display.d.ts +187 -0
  222. package/dist/views/production-run/shared/model/production-run-display.spec.d.ts +1 -0
  223. package/dist/views/production-run/shared/model/production-run-item-ingredients.d.ts +22 -0
  224. package/dist/views/production-run/shared/model/production-run-list.d.ts +46 -0
  225. package/dist/views/production-run/shared/model/production-run-list.spec.d.ts +1 -0
  226. package/dist/views/production-run/shared/model/production-run-request-confirmation.d.ts +20 -0
  227. package/dist/views/production-run/shared/model/production-run-text-limit.d.ts +22 -0
  228. package/dist/views/production-run/shared/model/production-run-text-limit.spec.d.ts +1 -0
  229. package/dist/views/production-run/shared/model/production-run-unit-snapshot.d.ts +39 -0
  230. package/dist/views/production-run/shared/model/use-production-run-actions.d.ts +39 -0
  231. package/dist/views/production-run/shared/model/use-production-run-actions.spec.d.ts +1 -0
  232. package/dist/views/production-run/shared/model/use-production-run-ingredients.d.ts +658 -0
  233. package/dist/views/production-run/shared/model/use-production-run-ingredients.spec.d.ts +1 -0
  234. package/dist/views/production-run/shared/ui/ProductionRunBanner.vue.d.ts +39 -0
  235. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
  236. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
  237. package/dist/views/production-run/shared/ui/ProductionRunBindingsList.vue.d.ts +51 -0
  238. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.spec.d.ts +1 -0
  239. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.vue.d.ts +23 -0
  240. package/dist/views/production-run/shared/ui/ProductionRunCompactDisclosure.vue.d.ts +25 -0
  241. package/dist/views/production-run/shared/ui/ProductionRunCostingUnavailable.vue.d.ts +2 -0
  242. package/dist/views/production-run/shared/ui/ProductionRunDialog.spec.d.ts +1 -0
  243. package/dist/views/production-run/shared/ui/ProductionRunDialog.vue.d.ts +24 -0
  244. package/dist/views/production-run/shared/ui/ProductionRunDialogProps.d.ts +15 -0
  245. package/dist/views/production-run/shared/ui/ProductionRunDialogSurface.vue.d.ts +33 -0
  246. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.spec.d.ts +1 -0
  247. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.vue.d.ts +67 -0
  248. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.spec.d.ts +1 -0
  249. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +70 -0
  250. package/dist/views/production-run/shared/ui/ProductionRunInfoText.spec.d.ts +1 -0
  251. package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +71 -0
  252. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
  253. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
  254. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.spec.d.ts +1 -0
  255. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.vue.d.ts +46 -0
  256. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.spec.d.ts +1 -0
  257. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +31 -0
  258. package/dist/views/production-run/shared/ui/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
  259. package/dist/views/production-run/shared/ui/ProductionRunSelectionControls.spec.d.ts +1 -0
  260. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.spec.d.ts +1 -0
  261. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.vue.d.ts +37 -0
  262. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.spec.d.ts +1 -0
  263. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.vue.d.ts +77 -0
  264. package/dist/views/production-run/shared/ui/ProductionRunSideSheetSurface.vue.d.ts +52 -0
  265. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.spec.d.ts +1 -0
  266. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.vue.d.ts +21 -0
  267. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.spec.d.ts +1 -0
  268. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.vue.d.ts +23 -0
  269. package/dist/views/production-run/shared/ui/ProductionRunTextarea.spec.d.ts +1 -0
  270. package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +62 -0
  271. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.spec.d.ts +1 -0
  272. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.vue.d.ts +34 -0
  273. package/dist/views/production-run/shared/ui/production-run-info.types.d.ts +11 -0
  274. package/dist/views/production-run/shared/ui/use-production-run-disclosure.d.ts +15 -0
  275. package/dist/views/production-run/shared/ui/use-production-run-disclosure.spec.d.ts +1 -0
  276. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.d.ts +17 -0
  277. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.spec.d.ts +1 -0
  278. package/dist/views/production-run/shared/ui/use-production-run-scroll-hint.d.ts +9 -0
  279. package/dist/views/production-run/test-support/production-run.fixture.d.ts +88 -0
  280. package/dist/views/production-run/test-support/production-run.fixture.spec.d.ts +1 -0
  281. package/dist/views/production-run/tests/contracts/ProductionRunLoadBannerContract.spec.d.ts +1 -0
  282. package/dist/views/production-run/tests/contracts/production-run-deduction-parity.spec.d.ts +1 -0
  283. package/dist/views/production-run/tests/contracts/production-run-typography-contract.spec.d.ts +1 -0
  284. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
  285. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
  286. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +12 -8
  287. package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +2 -0
  288. package/dist/{vue-i18n-DLckaDV3.js → vue-i18n-DLJI5tIS.js} +395 -395
  289. package/dist/{xlsx.util-BjqUaVU_.js → xlsx.util-CZOxuAL-.js} +2 -2
  290. package/package.json +5 -4
  291. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D6ehNvzX.js +0 -130
  292. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpACpi1j.js +0 -120
  293. package/dist/ProductionView-Cg8tXEj7.js +0 -1441
  294. package/dist/api/production.d.ts +0 -30
  295. package/dist/views/production/ProductionDetailSheet.vue.d.ts +0 -42
  296. package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +0 -282
  297. package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +0 -282
  298. /package/dist/views/{production/ProductionView.vue.d.ts → production-run/ProductionRunPreparePrintView.vue.d.ts} +0 -0
@@ -0,0 +1,2098 @@
1
+ import { type MaybeRefOrGetter } from 'vue';
2
+ import type { WithRev } from '@/api/type';
3
+ import { type ProductionOutputBatch } from '../../shared/model/production-run-display';
4
+ import { type ProductionRunLifecycleAction } from '../../shared/model/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-run/: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>, newWorkEnabled?: MaybeRefOrGetter<boolean>): {
61
+ run: import("vue").Ref<{
62
+ _rev: string;
63
+ closedAt?: string | null | undefined;
64
+ cancelledAt?: string | null | undefined;
65
+ cancelReason?: string | null | undefined;
66
+ status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
67
+ _id: string;
68
+ createdAt: string;
69
+ createdBy: {
70
+ name: string;
71
+ id: string;
72
+ };
73
+ activityLogs: {
74
+ remark?: string | null | undefined;
75
+ action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
76
+ performedAt: string;
77
+ performedBy: {
78
+ name: string;
79
+ id: string;
80
+ };
81
+ }[];
82
+ runNo: number;
83
+ runName: string | null;
84
+ instructions: string | null;
85
+ plan: {
86
+ items: {
87
+ measurement: {
88
+ name: string;
89
+ id: string;
90
+ abbrev: string;
91
+ conversion: {
92
+ amount: number;
93
+ precision: number;
94
+ };
95
+ baseUnitId: string;
96
+ };
97
+ skuId: string;
98
+ requestedAmount: {
99
+ amount: number;
100
+ precision: number;
101
+ };
102
+ }[];
103
+ requirements: {
104
+ ingredients: {
105
+ amounts: {
106
+ measurement: {
107
+ name: string;
108
+ id: string;
109
+ abbrev: string;
110
+ conversion: {
111
+ amount: number;
112
+ precision: number;
113
+ };
114
+ baseUnitId: string;
115
+ };
116
+ amount: {
117
+ amount: number;
118
+ precision: number;
119
+ };
120
+ outputSkuId: string;
121
+ rateBasis: {
122
+ outputMeasurement: {
123
+ name: string;
124
+ id: string;
125
+ abbrev: string;
126
+ conversion: {
127
+ amount: number;
128
+ precision: number;
129
+ };
130
+ baseUnitId: string;
131
+ };
132
+ };
133
+ }[];
134
+ ingredient: {
135
+ code: string;
136
+ skuId: string;
137
+ name: string;
138
+ baseUnit: {
139
+ name: string;
140
+ id: string;
141
+ abbrev: string;
142
+ conversion: {
143
+ amount: number;
144
+ precision: number;
145
+ };
146
+ baseUnitId: string;
147
+ };
148
+ basePrecision: number;
149
+ };
150
+ }[];
151
+ skippedSkuIds: string[];
152
+ } | null;
153
+ };
154
+ preparation: {
155
+ pendingIssuance?: {
156
+ remark?: string | null | undefined;
157
+ adjustmentId: string;
158
+ items: {
159
+ measurement: {
160
+ name: string;
161
+ id: string;
162
+ abbrev: string;
163
+ conversion: {
164
+ amount: number;
165
+ precision: number;
166
+ };
167
+ baseUnitId: string;
168
+ };
169
+ sku: {
170
+ trackingMeasurement?: string | null | undefined;
171
+ isInactive?: boolean | null | undefined;
172
+ convert?: {
173
+ measurement?: string | null | undefined;
174
+ inventoryBindings?: {
175
+ measurement?: {
176
+ name: string;
177
+ id: string;
178
+ abbrev: string;
179
+ conversion: {
180
+ amount: number;
181
+ precision: number;
182
+ };
183
+ } | null | undefined;
184
+ rules?: Record<string, any> | null | undefined;
185
+ alternatives?: {
186
+ default?: boolean | null | undefined;
187
+ trackingMeasurement?: string | null | undefined;
188
+ priority?: number | null | undefined;
189
+ _id: string;
190
+ }[] | null | undefined;
191
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
192
+ amount: {
193
+ amount: number;
194
+ precision: number;
195
+ };
196
+ id: string;
197
+ }[] | null | undefined;
198
+ } | null | undefined;
199
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
200
+ defaultCost?: {
201
+ measurement?: {
202
+ name: string;
203
+ id: string;
204
+ abbrev: string;
205
+ conversion: {
206
+ amount: number;
207
+ precision: number;
208
+ };
209
+ } | null | undefined;
210
+ costPerUnit: {
211
+ 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";
212
+ amount: number;
213
+ precision: number;
214
+ };
215
+ } | null | undefined;
216
+ operationalGroup?: string | null | undefined;
217
+ thresholds?: {
218
+ low: number;
219
+ mid: number;
220
+ } | null | undefined;
221
+ customAttributes?: Record<string, any> | null | undefined;
222
+ unit: {
223
+ _id: string;
224
+ name: string;
225
+ abbrev: string;
226
+ precision: number;
227
+ measurements: {
228
+ name: string;
229
+ id: string;
230
+ abbrev: string;
231
+ conversion: {
232
+ amount: number;
233
+ precision: number;
234
+ };
235
+ }[];
236
+ };
237
+ code: string;
238
+ _id: string;
239
+ name: string;
240
+ };
241
+ committedAmount: {
242
+ amount: number;
243
+ precision: number;
244
+ };
245
+ }[];
246
+ skippedSkuIds: string[];
247
+ acknowledgedShortages: {
248
+ skuId: string;
249
+ baseUnit: {
250
+ name: string;
251
+ id: string;
252
+ abbrev: string;
253
+ conversion: {
254
+ amount: number;
255
+ precision: number;
256
+ };
257
+ baseUnitId: string;
258
+ };
259
+ projectedBalance: {
260
+ amount: number;
261
+ precision: number;
262
+ };
263
+ }[];
264
+ movement: {
265
+ sku: {
266
+ trackingMeasurement?: string | null | undefined;
267
+ isInactive?: boolean | null | undefined;
268
+ convert?: {
269
+ measurement?: string | null | undefined;
270
+ inventoryBindings?: {
271
+ measurement?: {
272
+ name: string;
273
+ id: string;
274
+ abbrev: string;
275
+ conversion: {
276
+ amount: number;
277
+ precision: number;
278
+ };
279
+ } | null | undefined;
280
+ rules?: Record<string, any> | null | undefined;
281
+ alternatives?: {
282
+ default?: boolean | null | undefined;
283
+ trackingMeasurement?: string | null | undefined;
284
+ priority?: number | null | undefined;
285
+ _id: string;
286
+ }[] | null | undefined;
287
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
288
+ amount: {
289
+ amount: number;
290
+ precision: number;
291
+ };
292
+ id: string;
293
+ }[] | null | undefined;
294
+ } | null | undefined;
295
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
296
+ defaultCost?: {
297
+ measurement?: {
298
+ name: string;
299
+ id: string;
300
+ abbrev: string;
301
+ conversion: {
302
+ amount: number;
303
+ precision: number;
304
+ };
305
+ } | null | undefined;
306
+ costPerUnit: {
307
+ 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";
308
+ amount: number;
309
+ precision: number;
310
+ };
311
+ } | null | undefined;
312
+ operationalGroup?: string | null | undefined;
313
+ thresholds?: {
314
+ low: number;
315
+ mid: number;
316
+ } | null | undefined;
317
+ customAttributes?: Record<string, any> | null | undefined;
318
+ unit: {
319
+ _id: string;
320
+ name: string;
321
+ abbrev: string;
322
+ precision: number;
323
+ measurements: {
324
+ name: string;
325
+ id: string;
326
+ abbrev: string;
327
+ conversion: {
328
+ amount: number;
329
+ precision: number;
330
+ };
331
+ }[];
332
+ };
333
+ code: string;
334
+ _id: string;
335
+ name: string;
336
+ };
337
+ amounts: {
338
+ measurement: {
339
+ name: string;
340
+ id: string;
341
+ abbrev: string;
342
+ conversion: {
343
+ amount: number;
344
+ precision: number;
345
+ };
346
+ baseUnitId: string;
347
+ };
348
+ amount: {
349
+ amount: number;
350
+ precision: number;
351
+ };
352
+ outputSkuId: string;
353
+ }[];
354
+ }[];
355
+ claimedAt: string;
356
+ claimedBy: {
357
+ name: string;
358
+ id: string;
359
+ };
360
+ } | null | undefined;
361
+ issuances: {
362
+ remark?: string | null | undefined;
363
+ adjustmentId: string;
364
+ items: {
365
+ measurement: {
366
+ name: string;
367
+ id: string;
368
+ abbrev: string;
369
+ conversion: {
370
+ amount: number;
371
+ precision: number;
372
+ };
373
+ baseUnitId: string;
374
+ };
375
+ sku: {
376
+ trackingMeasurement?: string | null | undefined;
377
+ isInactive?: boolean | null | undefined;
378
+ convert?: {
379
+ measurement?: string | null | undefined;
380
+ inventoryBindings?: {
381
+ measurement?: {
382
+ name: string;
383
+ id: string;
384
+ abbrev: string;
385
+ conversion: {
386
+ amount: number;
387
+ precision: number;
388
+ };
389
+ } | null | undefined;
390
+ rules?: Record<string, any> | null | undefined;
391
+ alternatives?: {
392
+ default?: boolean | null | undefined;
393
+ trackingMeasurement?: string | null | undefined;
394
+ priority?: number | null | undefined;
395
+ _id: string;
396
+ }[] | null | undefined;
397
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
398
+ amount: {
399
+ amount: number;
400
+ precision: number;
401
+ };
402
+ id: string;
403
+ }[] | null | undefined;
404
+ } | null | undefined;
405
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
406
+ defaultCost?: {
407
+ measurement?: {
408
+ name: string;
409
+ id: string;
410
+ abbrev: string;
411
+ conversion: {
412
+ amount: number;
413
+ precision: number;
414
+ };
415
+ } | null | undefined;
416
+ costPerUnit: {
417
+ 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";
418
+ amount: number;
419
+ precision: number;
420
+ };
421
+ } | null | undefined;
422
+ operationalGroup?: string | null | undefined;
423
+ thresholds?: {
424
+ low: number;
425
+ mid: number;
426
+ } | null | undefined;
427
+ customAttributes?: Record<string, any> | null | undefined;
428
+ unit: {
429
+ _id: string;
430
+ name: string;
431
+ abbrev: string;
432
+ precision: number;
433
+ measurements: {
434
+ name: string;
435
+ id: string;
436
+ abbrev: string;
437
+ conversion: {
438
+ amount: number;
439
+ precision: number;
440
+ };
441
+ }[];
442
+ };
443
+ code: string;
444
+ _id: string;
445
+ name: string;
446
+ };
447
+ committedAmount: {
448
+ amount: number;
449
+ precision: number;
450
+ };
451
+ }[];
452
+ skippedSkuIds: string[];
453
+ issuedAt: string;
454
+ issuedBy: {
455
+ name: string;
456
+ id: string;
457
+ };
458
+ acknowledgedShortages: {
459
+ skuId: string;
460
+ baseUnit: {
461
+ name: string;
462
+ id: string;
463
+ abbrev: string;
464
+ conversion: {
465
+ amount: number;
466
+ precision: number;
467
+ };
468
+ baseUnitId: string;
469
+ };
470
+ projectedBalance: {
471
+ amount: number;
472
+ precision: number;
473
+ };
474
+ }[];
475
+ movement: {
476
+ amounts: {
477
+ measurement: {
478
+ name: string;
479
+ id: string;
480
+ abbrev: string;
481
+ conversion: {
482
+ amount: number;
483
+ precision: number;
484
+ };
485
+ baseUnitId: string;
486
+ };
487
+ amount: {
488
+ amount: number;
489
+ precision: number;
490
+ };
491
+ outputSkuId: string;
492
+ }[];
493
+ ingredient: {
494
+ code: string;
495
+ skuId: string;
496
+ name: string;
497
+ baseUnit: {
498
+ name: string;
499
+ id: string;
500
+ abbrev: string;
501
+ conversion: {
502
+ amount: number;
503
+ precision: number;
504
+ };
505
+ baseUnitId: string;
506
+ };
507
+ basePrecision: number;
508
+ };
509
+ }[];
510
+ }[];
511
+ };
512
+ batches: {
513
+ adjustmentId: string;
514
+ id: string;
515
+ remark: string | null;
516
+ items: {
517
+ measurement: {
518
+ name: string;
519
+ id: string;
520
+ abbrev: string;
521
+ conversion: {
522
+ amount: number;
523
+ precision: number;
524
+ };
525
+ baseUnitId: string;
526
+ };
527
+ skuId: string;
528
+ producedAmount: {
529
+ amount: number;
530
+ precision: number;
531
+ };
532
+ }[];
533
+ operationKey: string;
534
+ stockApplicationStatus: "PENDING" | "APPLIED";
535
+ producedAt: string;
536
+ recordedAt: string;
537
+ recordedBy: {
538
+ name: string;
539
+ id: string;
540
+ };
541
+ wastages: {
542
+ measurement: {
543
+ name: string;
544
+ id: string;
545
+ abbrev: string;
546
+ conversion: {
547
+ amount: number;
548
+ precision: number;
549
+ };
550
+ baseUnitId: string;
551
+ };
552
+ skuId: string;
553
+ amount: {
554
+ amount: number;
555
+ precision: number;
556
+ };
557
+ reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
558
+ remark: string | null;
559
+ itemSkuId: string;
560
+ }[];
561
+ }[];
562
+ } | null, WithRev<{
563
+ _rev?: string | null | undefined;
564
+ closedAt?: string | null | undefined;
565
+ cancelledAt?: string | null | undefined;
566
+ cancelReason?: string | null | undefined;
567
+ status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
568
+ _id: string;
569
+ createdAt: string;
570
+ createdBy: {
571
+ name: string;
572
+ id: string;
573
+ };
574
+ activityLogs: {
575
+ remark?: string | null | undefined;
576
+ action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
577
+ performedAt: string;
578
+ performedBy: {
579
+ name: string;
580
+ id: string;
581
+ };
582
+ }[];
583
+ runNo: number;
584
+ runName: string | null;
585
+ instructions: string | null;
586
+ plan: {
587
+ items: {
588
+ measurement: {
589
+ name: string;
590
+ id: string;
591
+ abbrev: string;
592
+ conversion: {
593
+ amount: number;
594
+ precision: number;
595
+ };
596
+ baseUnitId: string;
597
+ };
598
+ skuId: string;
599
+ requestedAmount: {
600
+ amount: number;
601
+ precision: number;
602
+ };
603
+ }[];
604
+ requirements: {
605
+ ingredients: {
606
+ amounts: {
607
+ measurement: {
608
+ name: string;
609
+ id: string;
610
+ abbrev: string;
611
+ conversion: {
612
+ amount: number;
613
+ precision: number;
614
+ };
615
+ baseUnitId: string;
616
+ };
617
+ amount: {
618
+ amount: number;
619
+ precision: number;
620
+ };
621
+ outputSkuId: string;
622
+ rateBasis: {
623
+ outputMeasurement: {
624
+ name: string;
625
+ id: string;
626
+ abbrev: string;
627
+ conversion: {
628
+ amount: number;
629
+ precision: number;
630
+ };
631
+ baseUnitId: string;
632
+ };
633
+ };
634
+ }[];
635
+ ingredient: {
636
+ code: string;
637
+ skuId: string;
638
+ name: string;
639
+ baseUnit: {
640
+ name: string;
641
+ id: string;
642
+ abbrev: string;
643
+ conversion: {
644
+ amount: number;
645
+ precision: number;
646
+ };
647
+ baseUnitId: string;
648
+ };
649
+ basePrecision: number;
650
+ };
651
+ }[];
652
+ skippedSkuIds: string[];
653
+ } | null;
654
+ };
655
+ preparation: {
656
+ pendingIssuance?: {
657
+ remark?: string | null | undefined;
658
+ adjustmentId: string;
659
+ items: {
660
+ measurement: {
661
+ name: string;
662
+ id: string;
663
+ abbrev: string;
664
+ conversion: {
665
+ amount: number;
666
+ precision: number;
667
+ };
668
+ baseUnitId: string;
669
+ };
670
+ sku: {
671
+ trackingMeasurement?: string | null | undefined;
672
+ isInactive?: boolean | null | undefined;
673
+ convert?: {
674
+ measurement?: string | null | undefined;
675
+ inventoryBindings?: {
676
+ measurement?: {
677
+ name: string;
678
+ id: string;
679
+ abbrev: string;
680
+ conversion: {
681
+ amount: number;
682
+ precision: number;
683
+ };
684
+ } | null | undefined;
685
+ rules?: Record<string, any> | null | undefined;
686
+ alternatives?: {
687
+ default?: boolean | null | undefined;
688
+ trackingMeasurement?: string | null | undefined;
689
+ priority?: number | null | undefined;
690
+ _id: string;
691
+ }[] | null | undefined;
692
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
693
+ amount: {
694
+ amount: number;
695
+ precision: number;
696
+ };
697
+ id: string;
698
+ }[] | null | undefined;
699
+ } | null | undefined;
700
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
701
+ defaultCost?: {
702
+ measurement?: {
703
+ name: string;
704
+ id: string;
705
+ abbrev: string;
706
+ conversion: {
707
+ amount: number;
708
+ precision: number;
709
+ };
710
+ } | null | undefined;
711
+ costPerUnit: {
712
+ 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";
713
+ amount: number;
714
+ precision: number;
715
+ };
716
+ } | null | undefined;
717
+ operationalGroup?: string | null | undefined;
718
+ thresholds?: {
719
+ low: number;
720
+ mid: number;
721
+ } | null | undefined;
722
+ customAttributes?: Record<string, any> | null | undefined;
723
+ unit: {
724
+ _id: string;
725
+ name: string;
726
+ abbrev: string;
727
+ precision: number;
728
+ measurements: {
729
+ name: string;
730
+ id: string;
731
+ abbrev: string;
732
+ conversion: {
733
+ amount: number;
734
+ precision: number;
735
+ };
736
+ }[];
737
+ };
738
+ code: string;
739
+ _id: string;
740
+ name: string;
741
+ };
742
+ committedAmount: {
743
+ amount: number;
744
+ precision: number;
745
+ };
746
+ }[];
747
+ skippedSkuIds: string[];
748
+ acknowledgedShortages: {
749
+ skuId: string;
750
+ baseUnit: {
751
+ name: string;
752
+ id: string;
753
+ abbrev: string;
754
+ conversion: {
755
+ amount: number;
756
+ precision: number;
757
+ };
758
+ baseUnitId: string;
759
+ };
760
+ projectedBalance: {
761
+ amount: number;
762
+ precision: number;
763
+ };
764
+ }[];
765
+ movement: {
766
+ sku: {
767
+ trackingMeasurement?: string | null | undefined;
768
+ isInactive?: boolean | null | undefined;
769
+ convert?: {
770
+ measurement?: string | null | undefined;
771
+ inventoryBindings?: {
772
+ measurement?: {
773
+ name: string;
774
+ id: string;
775
+ abbrev: string;
776
+ conversion: {
777
+ amount: number;
778
+ precision: number;
779
+ };
780
+ } | null | undefined;
781
+ rules?: Record<string, any> | null | undefined;
782
+ alternatives?: {
783
+ default?: boolean | null | undefined;
784
+ trackingMeasurement?: string | null | undefined;
785
+ priority?: number | null | undefined;
786
+ _id: string;
787
+ }[] | null | undefined;
788
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
789
+ amount: {
790
+ amount: number;
791
+ precision: number;
792
+ };
793
+ id: string;
794
+ }[] | null | undefined;
795
+ } | null | undefined;
796
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
797
+ defaultCost?: {
798
+ measurement?: {
799
+ name: string;
800
+ id: string;
801
+ abbrev: string;
802
+ conversion: {
803
+ amount: number;
804
+ precision: number;
805
+ };
806
+ } | null | undefined;
807
+ costPerUnit: {
808
+ 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";
809
+ amount: number;
810
+ precision: number;
811
+ };
812
+ } | null | undefined;
813
+ operationalGroup?: string | null | undefined;
814
+ thresholds?: {
815
+ low: number;
816
+ mid: number;
817
+ } | null | undefined;
818
+ customAttributes?: Record<string, any> | null | undefined;
819
+ unit: {
820
+ _id: string;
821
+ name: string;
822
+ abbrev: string;
823
+ precision: number;
824
+ measurements: {
825
+ name: string;
826
+ id: string;
827
+ abbrev: string;
828
+ conversion: {
829
+ amount: number;
830
+ precision: number;
831
+ };
832
+ }[];
833
+ };
834
+ code: string;
835
+ _id: string;
836
+ name: string;
837
+ };
838
+ amounts: {
839
+ measurement: {
840
+ name: string;
841
+ id: string;
842
+ abbrev: string;
843
+ conversion: {
844
+ amount: number;
845
+ precision: number;
846
+ };
847
+ baseUnitId: string;
848
+ };
849
+ amount: {
850
+ amount: number;
851
+ precision: number;
852
+ };
853
+ outputSkuId: string;
854
+ }[];
855
+ }[];
856
+ claimedAt: string;
857
+ claimedBy: {
858
+ name: string;
859
+ id: string;
860
+ };
861
+ } | null | undefined;
862
+ issuances: {
863
+ remark?: string | null | undefined;
864
+ adjustmentId: string;
865
+ items: {
866
+ measurement: {
867
+ name: string;
868
+ id: string;
869
+ abbrev: string;
870
+ conversion: {
871
+ amount: number;
872
+ precision: number;
873
+ };
874
+ baseUnitId: string;
875
+ };
876
+ sku: {
877
+ trackingMeasurement?: string | null | undefined;
878
+ isInactive?: boolean | null | undefined;
879
+ convert?: {
880
+ measurement?: string | null | undefined;
881
+ inventoryBindings?: {
882
+ measurement?: {
883
+ name: string;
884
+ id: string;
885
+ abbrev: string;
886
+ conversion: {
887
+ amount: number;
888
+ precision: number;
889
+ };
890
+ } | null | undefined;
891
+ rules?: Record<string, any> | null | undefined;
892
+ alternatives?: {
893
+ default?: boolean | null | undefined;
894
+ trackingMeasurement?: string | null | undefined;
895
+ priority?: number | null | undefined;
896
+ _id: string;
897
+ }[] | null | undefined;
898
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
899
+ amount: {
900
+ amount: number;
901
+ precision: number;
902
+ };
903
+ id: string;
904
+ }[] | null | undefined;
905
+ } | null | undefined;
906
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
907
+ defaultCost?: {
908
+ measurement?: {
909
+ name: string;
910
+ id: string;
911
+ abbrev: string;
912
+ conversion: {
913
+ amount: number;
914
+ precision: number;
915
+ };
916
+ } | null | undefined;
917
+ costPerUnit: {
918
+ 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";
919
+ amount: number;
920
+ precision: number;
921
+ };
922
+ } | null | undefined;
923
+ operationalGroup?: string | null | undefined;
924
+ thresholds?: {
925
+ low: number;
926
+ mid: number;
927
+ } | null | undefined;
928
+ customAttributes?: Record<string, any> | null | undefined;
929
+ unit: {
930
+ _id: string;
931
+ name: string;
932
+ abbrev: string;
933
+ precision: number;
934
+ measurements: {
935
+ name: string;
936
+ id: string;
937
+ abbrev: string;
938
+ conversion: {
939
+ amount: number;
940
+ precision: number;
941
+ };
942
+ }[];
943
+ };
944
+ code: string;
945
+ _id: string;
946
+ name: string;
947
+ };
948
+ committedAmount: {
949
+ amount: number;
950
+ precision: number;
951
+ };
952
+ }[];
953
+ skippedSkuIds: string[];
954
+ issuedAt: string;
955
+ issuedBy: {
956
+ name: string;
957
+ id: string;
958
+ };
959
+ acknowledgedShortages: {
960
+ skuId: string;
961
+ baseUnit: {
962
+ name: string;
963
+ id: string;
964
+ abbrev: string;
965
+ conversion: {
966
+ amount: number;
967
+ precision: number;
968
+ };
969
+ baseUnitId: string;
970
+ };
971
+ projectedBalance: {
972
+ amount: number;
973
+ precision: number;
974
+ };
975
+ }[];
976
+ movement: {
977
+ amounts: {
978
+ measurement: {
979
+ name: string;
980
+ id: string;
981
+ abbrev: string;
982
+ conversion: {
983
+ amount: number;
984
+ precision: number;
985
+ };
986
+ baseUnitId: string;
987
+ };
988
+ amount: {
989
+ amount: number;
990
+ precision: number;
991
+ };
992
+ outputSkuId: string;
993
+ }[];
994
+ ingredient: {
995
+ code: string;
996
+ skuId: string;
997
+ name: string;
998
+ baseUnit: {
999
+ name: string;
1000
+ id: string;
1001
+ abbrev: string;
1002
+ conversion: {
1003
+ amount: number;
1004
+ precision: number;
1005
+ };
1006
+ baseUnitId: string;
1007
+ };
1008
+ basePrecision: number;
1009
+ };
1010
+ }[];
1011
+ }[];
1012
+ };
1013
+ batches: {
1014
+ adjustmentId: string;
1015
+ id: string;
1016
+ remark: string | null;
1017
+ items: {
1018
+ measurement: {
1019
+ name: string;
1020
+ id: string;
1021
+ abbrev: string;
1022
+ conversion: {
1023
+ amount: number;
1024
+ precision: number;
1025
+ };
1026
+ baseUnitId: string;
1027
+ };
1028
+ skuId: string;
1029
+ producedAmount: {
1030
+ amount: number;
1031
+ precision: number;
1032
+ };
1033
+ }[];
1034
+ operationKey: string;
1035
+ stockApplicationStatus: "PENDING" | "APPLIED";
1036
+ producedAt: string;
1037
+ recordedAt: string;
1038
+ recordedBy: {
1039
+ name: string;
1040
+ id: string;
1041
+ };
1042
+ wastages: {
1043
+ measurement: {
1044
+ name: string;
1045
+ id: string;
1046
+ abbrev: string;
1047
+ conversion: {
1048
+ amount: number;
1049
+ precision: number;
1050
+ };
1051
+ baseUnitId: string;
1052
+ };
1053
+ skuId: string;
1054
+ amount: {
1055
+ amount: number;
1056
+ precision: number;
1057
+ };
1058
+ reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1059
+ remark: string | null;
1060
+ itemSkuId: string;
1061
+ }[];
1062
+ }[];
1063
+ }> | {
1064
+ _rev: string;
1065
+ closedAt?: string | null | undefined;
1066
+ cancelledAt?: string | null | undefined;
1067
+ cancelReason?: string | null | undefined;
1068
+ status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1069
+ _id: string;
1070
+ createdAt: string;
1071
+ createdBy: {
1072
+ name: string;
1073
+ id: string;
1074
+ };
1075
+ activityLogs: {
1076
+ remark?: string | null | undefined;
1077
+ action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1078
+ performedAt: string;
1079
+ performedBy: {
1080
+ name: string;
1081
+ id: string;
1082
+ };
1083
+ }[];
1084
+ runNo: number;
1085
+ runName: string | null;
1086
+ instructions: string | null;
1087
+ plan: {
1088
+ items: {
1089
+ measurement: {
1090
+ name: string;
1091
+ id: string;
1092
+ abbrev: string;
1093
+ conversion: {
1094
+ amount: number;
1095
+ precision: number;
1096
+ };
1097
+ baseUnitId: string;
1098
+ };
1099
+ skuId: string;
1100
+ requestedAmount: {
1101
+ amount: number;
1102
+ precision: number;
1103
+ };
1104
+ }[];
1105
+ requirements: {
1106
+ ingredients: {
1107
+ amounts: {
1108
+ measurement: {
1109
+ name: string;
1110
+ id: string;
1111
+ abbrev: string;
1112
+ conversion: {
1113
+ amount: number;
1114
+ precision: number;
1115
+ };
1116
+ baseUnitId: string;
1117
+ };
1118
+ amount: {
1119
+ amount: number;
1120
+ precision: number;
1121
+ };
1122
+ outputSkuId: string;
1123
+ rateBasis: {
1124
+ outputMeasurement: {
1125
+ name: string;
1126
+ id: string;
1127
+ abbrev: string;
1128
+ conversion: {
1129
+ amount: number;
1130
+ precision: number;
1131
+ };
1132
+ baseUnitId: string;
1133
+ };
1134
+ };
1135
+ }[];
1136
+ ingredient: {
1137
+ code: string;
1138
+ skuId: string;
1139
+ name: string;
1140
+ baseUnit: {
1141
+ name: string;
1142
+ id: string;
1143
+ abbrev: string;
1144
+ conversion: {
1145
+ amount: number;
1146
+ precision: number;
1147
+ };
1148
+ baseUnitId: string;
1149
+ };
1150
+ basePrecision: number;
1151
+ };
1152
+ }[];
1153
+ skippedSkuIds: string[];
1154
+ } | null;
1155
+ };
1156
+ preparation: {
1157
+ pendingIssuance?: {
1158
+ remark?: string | null | undefined;
1159
+ adjustmentId: string;
1160
+ items: {
1161
+ measurement: {
1162
+ name: string;
1163
+ id: string;
1164
+ abbrev: string;
1165
+ conversion: {
1166
+ amount: number;
1167
+ precision: number;
1168
+ };
1169
+ baseUnitId: string;
1170
+ };
1171
+ sku: {
1172
+ trackingMeasurement?: string | null | undefined;
1173
+ isInactive?: boolean | null | undefined;
1174
+ convert?: {
1175
+ measurement?: string | null | undefined;
1176
+ inventoryBindings?: {
1177
+ measurement?: {
1178
+ name: string;
1179
+ id: string;
1180
+ abbrev: string;
1181
+ conversion: {
1182
+ amount: number;
1183
+ precision: number;
1184
+ };
1185
+ } | null | undefined;
1186
+ rules?: Record<string, any> | null | undefined;
1187
+ alternatives?: {
1188
+ default?: boolean | null | undefined;
1189
+ trackingMeasurement?: string | null | undefined;
1190
+ priority?: number | null | undefined;
1191
+ _id: string;
1192
+ }[] | null | undefined;
1193
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1194
+ amount: {
1195
+ amount: number;
1196
+ precision: number;
1197
+ };
1198
+ id: string;
1199
+ }[] | null | undefined;
1200
+ } | null | undefined;
1201
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1202
+ defaultCost?: {
1203
+ measurement?: {
1204
+ name: string;
1205
+ id: string;
1206
+ abbrev: string;
1207
+ conversion: {
1208
+ amount: number;
1209
+ precision: number;
1210
+ };
1211
+ } | null | undefined;
1212
+ costPerUnit: {
1213
+ 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";
1214
+ amount: number;
1215
+ precision: number;
1216
+ };
1217
+ } | null | undefined;
1218
+ operationalGroup?: string | null | undefined;
1219
+ thresholds?: {
1220
+ low: number;
1221
+ mid: number;
1222
+ } | null | undefined;
1223
+ customAttributes?: Record<string, any> | null | undefined;
1224
+ unit: {
1225
+ _id: string;
1226
+ name: string;
1227
+ abbrev: string;
1228
+ precision: number;
1229
+ measurements: {
1230
+ name: string;
1231
+ id: string;
1232
+ abbrev: string;
1233
+ conversion: {
1234
+ amount: number;
1235
+ precision: number;
1236
+ };
1237
+ }[];
1238
+ };
1239
+ code: string;
1240
+ _id: string;
1241
+ name: string;
1242
+ };
1243
+ committedAmount: {
1244
+ amount: number;
1245
+ precision: number;
1246
+ };
1247
+ }[];
1248
+ skippedSkuIds: string[];
1249
+ acknowledgedShortages: {
1250
+ skuId: string;
1251
+ baseUnit: {
1252
+ name: string;
1253
+ id: string;
1254
+ abbrev: string;
1255
+ conversion: {
1256
+ amount: number;
1257
+ precision: number;
1258
+ };
1259
+ baseUnitId: string;
1260
+ };
1261
+ projectedBalance: {
1262
+ amount: number;
1263
+ precision: number;
1264
+ };
1265
+ }[];
1266
+ movement: {
1267
+ sku: {
1268
+ trackingMeasurement?: string | null | undefined;
1269
+ isInactive?: boolean | null | undefined;
1270
+ convert?: {
1271
+ measurement?: string | null | undefined;
1272
+ inventoryBindings?: {
1273
+ measurement?: {
1274
+ name: string;
1275
+ id: string;
1276
+ abbrev: string;
1277
+ conversion: {
1278
+ amount: number;
1279
+ precision: number;
1280
+ };
1281
+ } | null | undefined;
1282
+ rules?: Record<string, any> | null | undefined;
1283
+ alternatives?: {
1284
+ default?: boolean | null | undefined;
1285
+ trackingMeasurement?: string | null | undefined;
1286
+ priority?: number | null | undefined;
1287
+ _id: string;
1288
+ }[] | null | undefined;
1289
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1290
+ amount: {
1291
+ amount: number;
1292
+ precision: number;
1293
+ };
1294
+ id: string;
1295
+ }[] | null | undefined;
1296
+ } | null | undefined;
1297
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1298
+ defaultCost?: {
1299
+ measurement?: {
1300
+ name: string;
1301
+ id: string;
1302
+ abbrev: string;
1303
+ conversion: {
1304
+ amount: number;
1305
+ precision: number;
1306
+ };
1307
+ } | null | undefined;
1308
+ costPerUnit: {
1309
+ 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";
1310
+ amount: number;
1311
+ precision: number;
1312
+ };
1313
+ } | null | undefined;
1314
+ operationalGroup?: string | null | undefined;
1315
+ thresholds?: {
1316
+ low: number;
1317
+ mid: number;
1318
+ } | null | undefined;
1319
+ customAttributes?: Record<string, any> | null | undefined;
1320
+ unit: {
1321
+ _id: string;
1322
+ name: string;
1323
+ abbrev: string;
1324
+ precision: number;
1325
+ measurements: {
1326
+ name: string;
1327
+ id: string;
1328
+ abbrev: string;
1329
+ conversion: {
1330
+ amount: number;
1331
+ precision: number;
1332
+ };
1333
+ }[];
1334
+ };
1335
+ code: string;
1336
+ _id: string;
1337
+ name: string;
1338
+ };
1339
+ amounts: {
1340
+ measurement: {
1341
+ name: string;
1342
+ id: string;
1343
+ abbrev: string;
1344
+ conversion: {
1345
+ amount: number;
1346
+ precision: number;
1347
+ };
1348
+ baseUnitId: string;
1349
+ };
1350
+ amount: {
1351
+ amount: number;
1352
+ precision: number;
1353
+ };
1354
+ outputSkuId: string;
1355
+ }[];
1356
+ }[];
1357
+ claimedAt: string;
1358
+ claimedBy: {
1359
+ name: string;
1360
+ id: string;
1361
+ };
1362
+ } | null | undefined;
1363
+ issuances: {
1364
+ remark?: string | null | undefined;
1365
+ adjustmentId: string;
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
+ sku: {
1378
+ trackingMeasurement?: string | null | undefined;
1379
+ isInactive?: boolean | null | undefined;
1380
+ convert?: {
1381
+ measurement?: string | null | undefined;
1382
+ inventoryBindings?: {
1383
+ measurement?: {
1384
+ name: string;
1385
+ id: string;
1386
+ abbrev: string;
1387
+ conversion: {
1388
+ amount: number;
1389
+ precision: number;
1390
+ };
1391
+ } | null | undefined;
1392
+ rules?: Record<string, any> | null | undefined;
1393
+ alternatives?: {
1394
+ default?: boolean | null | undefined;
1395
+ trackingMeasurement?: string | null | undefined;
1396
+ priority?: number | null | undefined;
1397
+ _id: string;
1398
+ }[] | null | undefined;
1399
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1400
+ amount: {
1401
+ amount: number;
1402
+ precision: number;
1403
+ };
1404
+ id: string;
1405
+ }[] | null | undefined;
1406
+ } | null | undefined;
1407
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1408
+ defaultCost?: {
1409
+ measurement?: {
1410
+ name: string;
1411
+ id: string;
1412
+ abbrev: string;
1413
+ conversion: {
1414
+ amount: number;
1415
+ precision: number;
1416
+ };
1417
+ } | null | undefined;
1418
+ costPerUnit: {
1419
+ 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";
1420
+ amount: number;
1421
+ precision: number;
1422
+ };
1423
+ } | null | undefined;
1424
+ operationalGroup?: string | null | undefined;
1425
+ thresholds?: {
1426
+ low: number;
1427
+ mid: number;
1428
+ } | null | undefined;
1429
+ customAttributes?: Record<string, any> | null | undefined;
1430
+ unit: {
1431
+ _id: string;
1432
+ name: string;
1433
+ abbrev: string;
1434
+ precision: number;
1435
+ measurements: {
1436
+ name: string;
1437
+ id: string;
1438
+ abbrev: string;
1439
+ conversion: {
1440
+ amount: number;
1441
+ precision: number;
1442
+ };
1443
+ }[];
1444
+ };
1445
+ code: string;
1446
+ _id: string;
1447
+ name: string;
1448
+ };
1449
+ committedAmount: {
1450
+ amount: number;
1451
+ precision: number;
1452
+ };
1453
+ }[];
1454
+ skippedSkuIds: string[];
1455
+ issuedAt: string;
1456
+ issuedBy: {
1457
+ name: string;
1458
+ id: string;
1459
+ };
1460
+ acknowledgedShortages: {
1461
+ skuId: string;
1462
+ baseUnit: {
1463
+ name: string;
1464
+ id: string;
1465
+ abbrev: string;
1466
+ conversion: {
1467
+ amount: number;
1468
+ precision: number;
1469
+ };
1470
+ baseUnitId: string;
1471
+ };
1472
+ projectedBalance: {
1473
+ amount: number;
1474
+ precision: number;
1475
+ };
1476
+ }[];
1477
+ movement: {
1478
+ amounts: {
1479
+ measurement: {
1480
+ name: string;
1481
+ id: string;
1482
+ abbrev: string;
1483
+ conversion: {
1484
+ amount: number;
1485
+ precision: number;
1486
+ };
1487
+ baseUnitId: string;
1488
+ };
1489
+ amount: {
1490
+ amount: number;
1491
+ precision: number;
1492
+ };
1493
+ outputSkuId: string;
1494
+ }[];
1495
+ ingredient: {
1496
+ code: string;
1497
+ skuId: string;
1498
+ name: string;
1499
+ baseUnit: {
1500
+ name: string;
1501
+ id: string;
1502
+ abbrev: string;
1503
+ conversion: {
1504
+ amount: number;
1505
+ precision: number;
1506
+ };
1507
+ baseUnitId: string;
1508
+ };
1509
+ basePrecision: number;
1510
+ };
1511
+ }[];
1512
+ }[];
1513
+ };
1514
+ batches: {
1515
+ adjustmentId: string;
1516
+ id: string;
1517
+ remark: string | null;
1518
+ items: {
1519
+ measurement: {
1520
+ name: string;
1521
+ id: string;
1522
+ abbrev: string;
1523
+ conversion: {
1524
+ amount: number;
1525
+ precision: number;
1526
+ };
1527
+ baseUnitId: string;
1528
+ };
1529
+ skuId: string;
1530
+ producedAmount: {
1531
+ amount: number;
1532
+ precision: number;
1533
+ };
1534
+ }[];
1535
+ operationKey: string;
1536
+ stockApplicationStatus: "PENDING" | "APPLIED";
1537
+ producedAt: string;
1538
+ recordedAt: string;
1539
+ recordedBy: {
1540
+ name: string;
1541
+ id: string;
1542
+ };
1543
+ wastages: {
1544
+ measurement: {
1545
+ name: string;
1546
+ id: string;
1547
+ abbrev: string;
1548
+ conversion: {
1549
+ amount: number;
1550
+ precision: number;
1551
+ };
1552
+ baseUnitId: string;
1553
+ };
1554
+ skuId: string;
1555
+ amount: {
1556
+ amount: number;
1557
+ precision: number;
1558
+ };
1559
+ reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1560
+ remark: string | null;
1561
+ itemSkuId: string;
1562
+ }[];
1563
+ }[];
1564
+ } | null>;
1565
+ phase: import("vue").Ref<ProductionRunDetailPhase, ProductionRunDetailPhase>;
1566
+ errorMessage: import("vue").Ref<string | null, string | null>;
1567
+ activeTab: import("vue").Ref<ProductionRunDetailTab, ProductionRunDetailTab>;
1568
+ tabs: import("vue").ComputedRef<ProductionRunDetailTab[]>;
1569
+ locationName: import("vue").ComputedRef<string>;
1570
+ stockRecalculation: import("vue").Ref<StockRecalculationState | null, StockRecalculationState | null>;
1571
+ stockRecalculationRequired: import("vue").ComputedRef<boolean>;
1572
+ /** The one way to take a stock-moving write's answer onto the page. */
1573
+ adoptWriteResult: (result: WithRev<{
1574
+ _rev?: string | null | undefined;
1575
+ closedAt?: string | null | undefined;
1576
+ cancelledAt?: string | null | undefined;
1577
+ cancelReason?: string | null | undefined;
1578
+ status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1579
+ _id: string;
1580
+ createdAt: string;
1581
+ createdBy: {
1582
+ name: string;
1583
+ id: string;
1584
+ };
1585
+ activityLogs: {
1586
+ remark?: string | null | undefined;
1587
+ action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1588
+ performedAt: string;
1589
+ performedBy: {
1590
+ name: string;
1591
+ id: string;
1592
+ };
1593
+ }[];
1594
+ runNo: number;
1595
+ runName: string | null;
1596
+ instructions: string | null;
1597
+ plan: {
1598
+ items: {
1599
+ measurement: {
1600
+ name: string;
1601
+ id: string;
1602
+ abbrev: string;
1603
+ conversion: {
1604
+ amount: number;
1605
+ precision: number;
1606
+ };
1607
+ baseUnitId: string;
1608
+ };
1609
+ skuId: string;
1610
+ requestedAmount: {
1611
+ amount: number;
1612
+ precision: number;
1613
+ };
1614
+ }[];
1615
+ requirements: {
1616
+ ingredients: {
1617
+ amounts: {
1618
+ measurement: {
1619
+ name: string;
1620
+ id: string;
1621
+ abbrev: string;
1622
+ conversion: {
1623
+ amount: number;
1624
+ precision: number;
1625
+ };
1626
+ baseUnitId: string;
1627
+ };
1628
+ amount: {
1629
+ amount: number;
1630
+ precision: number;
1631
+ };
1632
+ outputSkuId: string;
1633
+ rateBasis: {
1634
+ outputMeasurement: {
1635
+ name: string;
1636
+ id: string;
1637
+ abbrev: string;
1638
+ conversion: {
1639
+ amount: number;
1640
+ precision: number;
1641
+ };
1642
+ baseUnitId: string;
1643
+ };
1644
+ };
1645
+ }[];
1646
+ ingredient: {
1647
+ code: string;
1648
+ skuId: string;
1649
+ name: string;
1650
+ baseUnit: {
1651
+ name: string;
1652
+ id: string;
1653
+ abbrev: string;
1654
+ conversion: {
1655
+ amount: number;
1656
+ precision: number;
1657
+ };
1658
+ baseUnitId: string;
1659
+ };
1660
+ basePrecision: number;
1661
+ };
1662
+ }[];
1663
+ skippedSkuIds: string[];
1664
+ } | null;
1665
+ };
1666
+ preparation: {
1667
+ pendingIssuance?: {
1668
+ remark?: string | null | undefined;
1669
+ adjustmentId: string;
1670
+ items: {
1671
+ measurement: {
1672
+ name: string;
1673
+ id: string;
1674
+ abbrev: string;
1675
+ conversion: {
1676
+ amount: number;
1677
+ precision: number;
1678
+ };
1679
+ baseUnitId: string;
1680
+ };
1681
+ sku: {
1682
+ trackingMeasurement?: string | null | undefined;
1683
+ isInactive?: boolean | null | undefined;
1684
+ convert?: {
1685
+ measurement?: string | null | undefined;
1686
+ inventoryBindings?: {
1687
+ measurement?: {
1688
+ name: string;
1689
+ id: string;
1690
+ abbrev: string;
1691
+ conversion: {
1692
+ amount: number;
1693
+ precision: number;
1694
+ };
1695
+ } | null | undefined;
1696
+ rules?: Record<string, any> | null | undefined;
1697
+ alternatives?: {
1698
+ default?: boolean | null | undefined;
1699
+ trackingMeasurement?: string | null | undefined;
1700
+ priority?: number | null | undefined;
1701
+ _id: string;
1702
+ }[] | null | undefined;
1703
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1704
+ amount: {
1705
+ amount: number;
1706
+ precision: number;
1707
+ };
1708
+ id: string;
1709
+ }[] | null | undefined;
1710
+ } | null | undefined;
1711
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1712
+ defaultCost?: {
1713
+ measurement?: {
1714
+ name: string;
1715
+ id: string;
1716
+ abbrev: string;
1717
+ conversion: {
1718
+ amount: number;
1719
+ precision: number;
1720
+ };
1721
+ } | null | undefined;
1722
+ costPerUnit: {
1723
+ 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";
1724
+ amount: number;
1725
+ precision: number;
1726
+ };
1727
+ } | null | undefined;
1728
+ operationalGroup?: string | null | undefined;
1729
+ thresholds?: {
1730
+ low: number;
1731
+ mid: number;
1732
+ } | null | undefined;
1733
+ customAttributes?: Record<string, any> | null | undefined;
1734
+ unit: {
1735
+ _id: string;
1736
+ name: string;
1737
+ abbrev: string;
1738
+ precision: number;
1739
+ measurements: {
1740
+ name: string;
1741
+ id: string;
1742
+ abbrev: string;
1743
+ conversion: {
1744
+ amount: number;
1745
+ precision: number;
1746
+ };
1747
+ }[];
1748
+ };
1749
+ code: string;
1750
+ _id: string;
1751
+ name: string;
1752
+ };
1753
+ committedAmount: {
1754
+ amount: number;
1755
+ precision: number;
1756
+ };
1757
+ }[];
1758
+ skippedSkuIds: string[];
1759
+ acknowledgedShortages: {
1760
+ skuId: string;
1761
+ baseUnit: {
1762
+ name: string;
1763
+ id: string;
1764
+ abbrev: string;
1765
+ conversion: {
1766
+ amount: number;
1767
+ precision: number;
1768
+ };
1769
+ baseUnitId: string;
1770
+ };
1771
+ projectedBalance: {
1772
+ amount: number;
1773
+ precision: number;
1774
+ };
1775
+ }[];
1776
+ movement: {
1777
+ sku: {
1778
+ trackingMeasurement?: string | null | undefined;
1779
+ isInactive?: boolean | null | undefined;
1780
+ convert?: {
1781
+ measurement?: string | null | undefined;
1782
+ inventoryBindings?: {
1783
+ measurement?: {
1784
+ name: string;
1785
+ id: string;
1786
+ abbrev: string;
1787
+ conversion: {
1788
+ amount: number;
1789
+ precision: number;
1790
+ };
1791
+ } | null | undefined;
1792
+ rules?: Record<string, any> | null | undefined;
1793
+ alternatives?: {
1794
+ default?: boolean | null | undefined;
1795
+ trackingMeasurement?: string | null | undefined;
1796
+ priority?: number | null | undefined;
1797
+ _id: string;
1798
+ }[] | null | undefined;
1799
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1800
+ amount: {
1801
+ amount: number;
1802
+ precision: number;
1803
+ };
1804
+ id: string;
1805
+ }[] | null | undefined;
1806
+ } | null | undefined;
1807
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1808
+ defaultCost?: {
1809
+ measurement?: {
1810
+ name: string;
1811
+ id: string;
1812
+ abbrev: string;
1813
+ conversion: {
1814
+ amount: number;
1815
+ precision: number;
1816
+ };
1817
+ } | null | undefined;
1818
+ costPerUnit: {
1819
+ 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";
1820
+ amount: number;
1821
+ precision: number;
1822
+ };
1823
+ } | null | undefined;
1824
+ operationalGroup?: string | null | undefined;
1825
+ thresholds?: {
1826
+ low: number;
1827
+ mid: number;
1828
+ } | null | undefined;
1829
+ customAttributes?: Record<string, any> | null | undefined;
1830
+ unit: {
1831
+ _id: string;
1832
+ name: string;
1833
+ abbrev: string;
1834
+ precision: number;
1835
+ measurements: {
1836
+ name: string;
1837
+ id: string;
1838
+ abbrev: string;
1839
+ conversion: {
1840
+ amount: number;
1841
+ precision: number;
1842
+ };
1843
+ }[];
1844
+ };
1845
+ code: string;
1846
+ _id: string;
1847
+ name: string;
1848
+ };
1849
+ amounts: {
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
+ amount: {
1861
+ amount: number;
1862
+ precision: number;
1863
+ };
1864
+ outputSkuId: string;
1865
+ }[];
1866
+ }[];
1867
+ claimedAt: string;
1868
+ claimedBy: {
1869
+ name: string;
1870
+ id: string;
1871
+ };
1872
+ } | null | undefined;
1873
+ issuances: {
1874
+ remark?: string | null | undefined;
1875
+ adjustmentId: string;
1876
+ items: {
1877
+ measurement: {
1878
+ name: string;
1879
+ id: string;
1880
+ abbrev: string;
1881
+ conversion: {
1882
+ amount: number;
1883
+ precision: number;
1884
+ };
1885
+ baseUnitId: string;
1886
+ };
1887
+ sku: {
1888
+ trackingMeasurement?: string | null | undefined;
1889
+ isInactive?: boolean | null | undefined;
1890
+ convert?: {
1891
+ measurement?: string | null | undefined;
1892
+ inventoryBindings?: {
1893
+ measurement?: {
1894
+ name: string;
1895
+ id: string;
1896
+ abbrev: string;
1897
+ conversion: {
1898
+ amount: number;
1899
+ precision: number;
1900
+ };
1901
+ } | null | undefined;
1902
+ rules?: Record<string, any> | null | undefined;
1903
+ alternatives?: {
1904
+ default?: boolean | null | undefined;
1905
+ trackingMeasurement?: string | null | undefined;
1906
+ priority?: number | null | undefined;
1907
+ _id: string;
1908
+ }[] | null | undefined;
1909
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
1910
+ amount: {
1911
+ amount: number;
1912
+ precision: number;
1913
+ };
1914
+ id: string;
1915
+ }[] | null | undefined;
1916
+ } | null | undefined;
1917
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1918
+ defaultCost?: {
1919
+ measurement?: {
1920
+ name: string;
1921
+ id: string;
1922
+ abbrev: string;
1923
+ conversion: {
1924
+ amount: number;
1925
+ precision: number;
1926
+ };
1927
+ } | null | undefined;
1928
+ costPerUnit: {
1929
+ 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";
1930
+ amount: number;
1931
+ precision: number;
1932
+ };
1933
+ } | null | undefined;
1934
+ operationalGroup?: string | null | undefined;
1935
+ thresholds?: {
1936
+ low: number;
1937
+ mid: number;
1938
+ } | null | undefined;
1939
+ customAttributes?: Record<string, any> | null | undefined;
1940
+ unit: {
1941
+ _id: string;
1942
+ name: string;
1943
+ abbrev: string;
1944
+ precision: number;
1945
+ measurements: {
1946
+ name: string;
1947
+ id: string;
1948
+ abbrev: string;
1949
+ conversion: {
1950
+ amount: number;
1951
+ precision: number;
1952
+ };
1953
+ }[];
1954
+ };
1955
+ code: string;
1956
+ _id: string;
1957
+ name: string;
1958
+ };
1959
+ committedAmount: {
1960
+ amount: number;
1961
+ precision: number;
1962
+ };
1963
+ }[];
1964
+ skippedSkuIds: string[];
1965
+ issuedAt: string;
1966
+ issuedBy: {
1967
+ name: string;
1968
+ id: string;
1969
+ };
1970
+ acknowledgedShortages: {
1971
+ skuId: string;
1972
+ baseUnit: {
1973
+ name: string;
1974
+ id: string;
1975
+ abbrev: string;
1976
+ conversion: {
1977
+ amount: number;
1978
+ precision: number;
1979
+ };
1980
+ baseUnitId: string;
1981
+ };
1982
+ projectedBalance: {
1983
+ amount: number;
1984
+ precision: number;
1985
+ };
1986
+ }[];
1987
+ movement: {
1988
+ amounts: {
1989
+ measurement: {
1990
+ name: string;
1991
+ id: string;
1992
+ abbrev: string;
1993
+ conversion: {
1994
+ amount: number;
1995
+ precision: number;
1996
+ };
1997
+ baseUnitId: string;
1998
+ };
1999
+ amount: {
2000
+ amount: number;
2001
+ precision: number;
2002
+ };
2003
+ outputSkuId: string;
2004
+ }[];
2005
+ ingredient: {
2006
+ code: string;
2007
+ skuId: string;
2008
+ name: string;
2009
+ baseUnit: {
2010
+ name: string;
2011
+ id: string;
2012
+ abbrev: string;
2013
+ conversion: {
2014
+ amount: number;
2015
+ precision: number;
2016
+ };
2017
+ baseUnitId: string;
2018
+ };
2019
+ basePrecision: number;
2020
+ };
2021
+ }[];
2022
+ }[];
2023
+ };
2024
+ batches: {
2025
+ adjustmentId: string;
2026
+ id: string;
2027
+ remark: string | null;
2028
+ items: {
2029
+ measurement: {
2030
+ name: string;
2031
+ id: string;
2032
+ abbrev: string;
2033
+ conversion: {
2034
+ amount: number;
2035
+ precision: number;
2036
+ };
2037
+ baseUnitId: string;
2038
+ };
2039
+ skuId: string;
2040
+ producedAmount: {
2041
+ amount: number;
2042
+ precision: number;
2043
+ };
2044
+ }[];
2045
+ operationKey: string;
2046
+ stockApplicationStatus: "PENDING" | "APPLIED";
2047
+ producedAt: string;
2048
+ recordedAt: string;
2049
+ recordedBy: {
2050
+ name: string;
2051
+ id: string;
2052
+ };
2053
+ wastages: {
2054
+ measurement: {
2055
+ name: string;
2056
+ id: string;
2057
+ abbrev: string;
2058
+ conversion: {
2059
+ amount: number;
2060
+ precision: number;
2061
+ };
2062
+ baseUnitId: string;
2063
+ };
2064
+ skuId: string;
2065
+ amount: {
2066
+ amount: number;
2067
+ precision: number;
2068
+ };
2069
+ reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
2070
+ remark: string | null;
2071
+ itemSkuId: string;
2072
+ }[];
2073
+ }[];
2074
+ }> | {
2075
+ run: WithRev<FdoProductionRun>;
2076
+ stockRecalculationRequired: boolean;
2077
+ stockRecalculationDispatch?: RecalculationDispatch | undefined;
2078
+ }) => void;
2079
+ hasIssuance: import("vue").ComputedRef<boolean>;
2080
+ batches: import("vue").ComputedRef<ProductionOutputBatch[]>;
2081
+ committed: import("vue").ComputedRef<number | null>;
2082
+ produced: import("vue").ComputedRef<number | null>;
2083
+ remaining: import("vue").ComputedRef<number | null>;
2084
+ attainmentPercent: import("vue").ComputedRef<number | null>;
2085
+ atTarget: import("vue").ComputedRef<boolean>;
2086
+ targetReachedOpen: import("vue").ComputedRef<boolean>;
2087
+ outcome: import("vue").ComputedRef<"target-reached" | "below-target" | null>;
2088
+ summable: import("vue").ComputedRef<boolean>;
2089
+ legalActions: import("vue").ComputedRef<import("../../shared/model/use-production-run-actions").ProductionRunAction[]>;
2090
+ /** Legality asked as a question, so callers never re-derive the table. */
2091
+ can: (action: ProductionRunLifecycleAction) => boolean;
2092
+ primaryAction: import("vue").ComputedRef<ProductionRunLifecycleAction | null>;
2093
+ secondaryActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
2094
+ dangerActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
2095
+ load: () => Promise<void>;
2096
+ reload: () => Promise<void>;
2097
+ };
2098
+ export {};