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

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-DFSszWS2.js → App-CDMo2ZuC.js} +7 -7
  2. package/dist/{ApprovalView-sHjUr1tA.js → ApprovalView-CksFPjMG.js} +9 -9
  3. package/dist/{BindingsDialog-B-64TNTI.js → BindingsDialog-DAawZX4x.js} +2 -2
  4. package/dist/{BindingsPicker-Czn-jEHe.js → BindingsPicker-CtXkaJPJ.js} +2 -2
  5. package/dist/{BindingsTable-CmB0b3ov.js → BindingsTable-C6IoZUm-.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-BjGCwQiH.js → BulkReceiveRequestView-bnRPk255.js} +19 -19
  7. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-C9UPQ0zS.js +130 -0
  8. package/dist/{ClosingDraftView-DJLqwVmZ.js → ClosingDraftView-CENxwBWR.js} +19 -19
  9. package/dist/{ClosingHistoryView-Dj170bDN.js → ClosingHistoryView-DbKXEHeX.js} +5 -5
  10. package/dist/{ClosingTemplateView-DsfJz31T.js → ClosingTemplateView-Cvbt6fzS.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CitZIaJ7.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-g6XVWALK.js} +1 -1
  12. package/dist/{DefaultView-CsI2C4Hr.js → DefaultView-BXc9kZ4T.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-8EupGZmv.js → DeliveryOrderPrintPreview-CnvpF0E0.js} +12 -12
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DX_o7mMG.js → EmailDialog.vue_vue_type_script_setup_true_lang-DkhawQNe.js} +7093 -6988
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Vn94NCmp.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B2zi921K.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-nq-MgcVV.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C2XGgyo2.js} +2 -2
  17. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-lxuRet8r.js +120 -0
  18. package/dist/{FmMultiselectDialog-CZr-dX4K.js → FmMultiselectDialog-Cq_sKKG7.js} +2 -2
  19. package/dist/{FmMultiselectDialog-B5gQRKE6.js → FmMultiselectDialog-DehATOte.js} +1 -1
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BtZOjqlQ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DlucWzNP.js} +136 -132
  21. package/dist/{ImportView-Htolj46U.js → ImportView-C5xg4oy1.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CTlKy5y-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-vGJpOsZy.js} +1 -1
  23. package/dist/{IngredientGroupView-zZgJ3F9O.js → IngredientGroupView-pmtSRhNV.js} +5 -5
  24. package/dist/{IngredientsView-BhIIUpq5.js → IngredientsView-C8c-KOaH.js} +15 -15
  25. package/dist/{IntegrationExplorerView-a7EEa4a4.js → IntegrationExplorerView-2kY3NYRv.js} +4 -4
  26. package/dist/{IntegrationView-Dbr7gTAK.js → IntegrationView-DjPn5KTT.js} +14 -14
  27. package/dist/{InventoryBindingForm-DSAHtnBI.js → InventoryBindingForm-B1NfqzF2.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CQToFOhK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-jMOg3yzw.js} +5 -5
  29. package/dist/{InventoryBindingSummary-D_jEP9vJ.js → InventoryBindingSummary-CWcvhTqq.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BNsoxRX6.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Da8hIOqJ.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BdqeMPWW.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CgbV085U.js} +1 -1
  32. package/dist/ProductionView-CYW5SlqH.js +1441 -0
  33. package/dist/{PublishView-tOyFyzkR.js → PublishView-BIKhFG_F.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-CKyZ5jco.js → PurchaseOrderPrintPreview-CdcTwvAv.js} +7 -7
  35. package/dist/{ReceiveRequestView-Brjz7YtB.js → ReceiveRequestView-DGP1-LKO.js} +14 -14
  36. package/dist/{RecipeView-DntISZwO.js → RecipeView-DgoAEpLx.js} +17 -17
  37. package/dist/{SettingsView-_uzG3DYW.js → SettingsView--yhMacS4.js} +4 -4
  38. package/dist/{StockView-D0ns42PP.js → StockView-BJOe3lp_.js} +363 -363
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-KlyTPTxq.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DtFVQGcw.js} +1 -1
  40. package/dist/{SupplierView-Cg0BEv_J.js → SupplierView-4X4XeHpl.js} +14 -13
  41. package/dist/{SurchargeView-CtNt10E_.js → SurchargeView-BFEZSmPr.js} +6 -6
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dm31p8O3.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DJsJDk7-.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C4zoOWNW.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BJhSMbM4.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-nWON2kfX.js → TransferDetails.vue_vue_type_script_setup_true_lang-DxoWXbAk.js} +120 -120
  45. package/dist/{TransferTemplateView-DA-0VP3h.js → TransferTemplateView-B8cYDi8n.js} +919 -915
  46. package/dist/{UnitCostHistoryView-BIcZSZeY.js → UnitCostHistoryView--7qgXaB7.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D2dmslg4.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-B1bASkIu.js} +4 -4
  48. package/dist/{UnitView-B7hMqpmo.js → UnitView-V6NYGeBR.js} +7 -7
  49. package/dist/{WarehouseView-DQZhCobt.js → WarehouseView-CqFHm5Gj.js} +6 -6
  50. package/dist/{WastageTemplateView-Bg4oY2Vw.js → WastageTemplateView-IM1uapEf.js} +14 -14
  51. package/dist/api/netsuite.d.ts +8 -14
  52. package/dist/api/production.d.ts +30 -0
  53. package/dist/{app-CNKD3vjZ.js → app-BYXLBTAp.js} +30633 -33788
  54. package/dist/app.d.ts +54 -3002
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-BeegNS6p.js → closing-template-CESaKvtR.js} +1 -1
  57. package/dist/components/FmUnitInputProps.d.ts +1 -2
  58. package/dist/{date2-B00CYgio.js → date2-Bakt163M.js} +1 -1
  59. package/dist/{dayjs.min-DPQzGVmJ.js → dayjs.min-Ds-7QYZn.js} +1 -1
  60. package/dist/{decimal-mk8IRyTq.js → decimal-CqUQox7v.js} +2 -2
  61. package/dist/{defineDeepModel-DPmaWR48.js → defineDeepModel-DH6TPPcs.js} +5 -5
  62. package/dist/{duplicate-template-CMddJ7le.js → duplicate-template-DKwa3kcE.js} +1 -1
  63. package/dist/{feature-fzePklTK.js → feature-DDZ2q9CF.js} +28 -28
  64. package/dist/{format-time-from-id-CX7mBtQD.js → format-time-from-id-R9Chodov.js} +1 -1
  65. package/dist/{format-unit-display-C-WI6eC7.js → format-unit-display-FBOASGnz.js} +115 -113
  66. package/dist/{import-export.helper-BXXH9AYn.js → import-export.helper-Fu7QFnJS.js} +6 -6
  67. package/dist/{index-D1nPGK7U.js → index-CSOG5osB.js} +3 -3
  68. package/dist/{index-BGVJky7a.js → index-CsU1IUWH.js} +1768 -1741
  69. package/dist/{index-DJQBhZfo.js → index-DHlZPhuP.js} +1 -1
  70. package/dist/{inventory-core-dart.default-CSFkzl91.js → inventory-core-dart.default-BOIZGOJM.js} +6946 -2893
  71. package/dist/{lz-string-CzFlgjO3.js → lz-string-DTZn_aem.js} +1 -1
  72. package/dist/{netsuite-yzjEuV4c.js → netsuite-Dfo9PwZB.js} +3 -5
  73. package/dist/{number-LQ8tdP_1.js → number-3lF6zpQn.js} +7 -6
  74. package/dist/{predefined-templates-Db7qjPHc.js → predefined-templates-KXopFzgA.js} +1 -1
  75. package/dist/{purchase-order-template-bBTN12Ij.js → purchase-order-template-c0YljACm.js} +1 -1
  76. package/dist/{recalculationUtils-DN6oOoMX.js → recalculationUtils-6mITlu-c.js} +1 -1
  77. package/dist/router/name.d.ts +1 -3
  78. package/dist/{rules-BdR1TB3v.js → rules-Bd7-xhpl.js} +2 -2
  79. package/dist/{stock-AwNCy6xY.js → stock-CDb2pTqg.js} +1 -1
  80. package/dist/{stock-BgGttjDF.js → stock-CLjOWX57.js} +3 -3
  81. package/dist/stores/feature.d.ts +1 -1
  82. package/dist/stores/integration/codemax.d.ts +1 -1
  83. package/dist/stores/inventory.d.ts +8 -10
  84. package/dist/stores/stock.d.ts +8 -10
  85. package/dist/style.css +1 -1
  86. package/dist/{supplier-BNoSljLB.js → supplier-CV24jgpS.js} +2 -2
  87. package/dist/{surcharge-pUc66ZZJ.js → surcharge-CSltyzb4.js} +1 -1
  88. package/dist/tsconfig.app.tsbuildinfo +1 -1
  89. package/dist/{uom-rules-BP8Vk8Rl.js → uom-rules-Rl-tWEBP.js} +1 -1
  90. package/dist/{use-ingredient-select-dialog-DTOzSrjt.js → use-ingredient-select-dialog-PUDgBtcH.js} +2 -2
  91. package/dist/{use-inventory-binding-dialog-lHpBzqDy.js → use-inventory-binding-dialog-on6MYG8g.js} +2 -2
  92. package/dist/{use-template-enabled-locations-DmCbj6aZ.js → use-template-enabled-locations-DHDOLlvG.js} +2 -2
  93. package/dist/{use-transfer-locations-BeARyv2s.js → use-transfer-locations-DCdCbsj0.js} +2 -2
  94. package/dist/{useHrmPermission-DScCpS0P.js → useHrmPermission-CkPzKYHS.js} +1 -1
  95. package/dist/{useNavigationMenu-B5pf21hS.js → useNavigationMenu-Ccl7e4Qo.js} +17 -17
  96. package/dist/{useSseClient-BPR5sQ_S.js → useSseClient-Dwtiag10.js} +1 -1
  97. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +16 -20
  98. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +32 -40
  99. package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +16 -20
  100. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +48 -60
  101. package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +8 -10
  102. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  103. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
  104. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
  105. package/dist/views/{production-run/features/detail/ProductionRunResultTable.vue.d.ts → production/ProductionBindingsCell.vue.d.ts} +14 -10
  106. package/dist/views/{production-run/features/list/ProductionRunActionMenuItem.vue.d.ts → production/ProductionCompletionDialog.vue.d.ts} +21 -8
  107. package/dist/views/production/ProductionDetailSheet.vue.d.ts +42 -0
  108. package/dist/views/production/ProductionDuplicateDialog.vue.d.ts +282 -0
  109. package/dist/views/production/ProductionPrepareBuilder.vue.d.ts +282 -0
  110. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
  111. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
  112. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +8 -12
  113. package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +0 -2
  114. package/dist/{vue-i18n-DLJI5tIS.js → vue-i18n-BUqwBCDs.js} +270 -270
  115. package/dist/{xlsx.util-CZOxuAL-.js → xlsx.util-B4YBSPGX.js} +2 -2
  116. package/package.json +6 -7
  117. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DAFZz6rG.js +0 -243
  118. package/dist/ProductionRunDetailView-DnIVaUbO.js +0 -2284
  119. package/dist/ProductionRunPreparePrintView-B7KsNPgV.js +0 -34
  120. package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DkvVIKgN.js +0 -7543
  121. package/dist/ProductionRunView-9tC9ljDT.js +0 -911
  122. package/dist/api/production-run-error.d.ts +0 -36
  123. package/dist/api/production-run.d.ts +0 -80
  124. package/dist/components/FmUnitInput.spec.d.ts +0 -1
  125. package/dist/composable/useNavigationMenu.production.spec.d.ts +0 -1
  126. package/dist/production-run-prepare-sheet-BVAUvVqt.js +0 -17411
  127. package/dist/router/shared.production.spec.d.ts +0 -1
  128. package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +0 -1
  129. package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +0 -15
  130. package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +0 -1
  131. package/dist/views/production-run/ProductionRunView.spec.d.ts +0 -1
  132. package/dist/views/production-run/ProductionRunView.vue.d.ts +0 -2
  133. package/dist/views/production-run/features/detail/ProductionRunActivityTab.spec.d.ts +0 -1
  134. package/dist/views/production-run/features/detail/ProductionRunActivityTab.vue.d.ts +0 -15
  135. package/dist/views/production-run/features/detail/ProductionRunHeader.spec.d.ts +0 -1
  136. package/dist/views/production-run/features/detail/ProductionRunHeader.vue.d.ts +0 -67
  137. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.spec.d.ts +0 -1
  138. package/dist/views/production-run/features/detail/ProductionRunIngredientsTab.vue.d.ts +0 -52
  139. package/dist/views/production-run/features/detail/ProductionRunItemsTable.spec.d.ts +0 -1
  140. package/dist/views/production-run/features/detail/ProductionRunItemsTable.vue.d.ts +0 -80
  141. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.spec.d.ts +0 -1
  142. package/dist/views/production-run/features/detail/ProductionRunOverviewTab.vue.d.ts +0 -1066
  143. package/dist/views/production-run/features/detail/ProductionRunResultTable.spec.d.ts +0 -1
  144. package/dist/views/production-run/features/detail/ProductionRunTabs.spec.d.ts +0 -1
  145. package/dist/views/production-run/features/detail/ProductionRunTabs.vue.d.ts +0 -47
  146. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.spec.d.ts +0 -1
  147. package/dist/views/production-run/features/detail/ProductionRunTerminalNotice.vue.d.ts +0 -15
  148. package/dist/views/production-run/features/detail/use-production-run-detail.d.ts +0 -2098
  149. package/dist/views/production-run/features/detail/use-production-run-detail.spec.d.ts +0 -1
  150. package/dist/views/production-run/features/lifecycle/CancelRunDialog.spec.d.ts +0 -1
  151. package/dist/views/production-run/features/lifecycle/CancelRunDialog.vue.d.ts +0 -1020
  152. package/dist/views/production-run/features/lifecycle/CancelRunDialogProps.d.ts +0 -9
  153. package/dist/views/production-run/features/lifecycle/CloseRunDialog.spec.d.ts +0 -1
  154. package/dist/views/production-run/features/lifecycle/CloseRunDialog.vue.d.ts +0 -1020
  155. package/dist/views/production-run/features/lifecycle/CloseRunDialogProps.d.ts +0 -9
  156. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.spec.d.ts +0 -1
  157. package/dist/views/production-run/features/lifecycle/ProductionRunLifecycleDialogs.vue.d.ts +0 -3573
  158. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.spec.d.ts +0 -1
  159. package/dist/views/production-run/features/lifecycle/TargetReachedDialog.vue.d.ts +0 -1026
  160. package/dist/views/production-run/features/list/ProductionRunActionMenu.vue.d.ts +0 -56
  161. package/dist/views/production-run/features/list/ProductionRunActionMenuItem.spec.d.ts +0 -1
  162. package/dist/views/production-run/features/list/ProductionRunActionsCell.spec.d.ts +0 -1
  163. package/dist/views/production-run/features/list/ProductionRunActionsCell.vue.d.ts +0 -20
  164. package/dist/views/production-run/features/list/ProductionRunItemsCell.spec.d.ts +0 -1
  165. package/dist/views/production-run/features/list/ProductionRunItemsCell.vue.d.ts +0 -40
  166. package/dist/views/production-run/features/list/ProductionRunNameCell.spec.d.ts +0 -1
  167. package/dist/views/production-run/features/list/ProductionRunNameCell.vue.d.ts +0 -43
  168. package/dist/views/production-run/features/list/ProductionRunSortHeader.spec.d.ts +0 -1
  169. package/dist/views/production-run/features/list/ProductionRunSortHeader.vue.d.ts +0 -25
  170. package/dist/views/production-run/features/list/use-production-run-table.d.ts +0 -18
  171. package/dist/views/production-run/features/list/use-production-run-table.spec.d.ts +0 -1
  172. package/dist/views/production-run/features/output/ProductionRunBatchCard.spec.d.ts +0 -1
  173. package/dist/views/production-run/features/output/ProductionRunBatchCard.vue.d.ts +0 -70
  174. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.spec.d.ts +0 -1
  175. package/dist/views/production-run/features/output/ProductionRunBatchWastageDetails.vue.d.ts +0 -33
  176. package/dist/views/production-run/features/output/ProductionRunOutputTab.spec.d.ts +0 -1
  177. package/dist/views/production-run/features/output/ProductionRunOutputTab.vue.d.ts +0 -26
  178. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.spec.d.ts +0 -1
  179. package/dist/views/production-run/features/output/ProductionRunRecordOutputDetails.vue.d.ts +0 -43
  180. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.spec.d.ts +0 -1
  181. package/dist/views/production-run/features/output/ProductionRunRecordOutputWastageStatus.vue.d.ts +0 -31
  182. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.spec.d.ts +0 -1
  183. package/dist/views/production-run/features/output/ProductionRunWastageDisclosure.vue.d.ts +0 -23
  184. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.spec.d.ts +0 -1
  185. package/dist/views/production-run/features/output/ProductionRunWastageRemarkField.vue.d.ts +0 -33
  186. package/dist/views/production-run/features/output/RecordOutputDialog.spec.d.ts +0 -1
  187. package/dist/views/production-run/features/output/RecordOutputDialog.vue.d.ts +0 -20
  188. package/dist/views/production-run/features/output/RecordOutputDialogProps.d.ts +0 -28
  189. package/dist/views/production-run/features/output/use-production-run-record-output.d.ts +0 -245
  190. package/dist/views/production-run/features/output/use-production-run-record-output.spec.d.ts +0 -1
  191. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.spec.d.ts +0 -1
  192. package/dist/views/production-run/features/planning/ProductionRunContributorBranch.vue.d.ts +0 -25
  193. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.spec.d.ts +0 -1
  194. package/dist/views/production-run/features/planning/ProductionRunDiscardDialog.vue.d.ts +0 -21
  195. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.spec.d.ts +0 -1
  196. package/dist/views/production-run/features/planning/ProductionRunDuplicateDialog.vue.d.ts +0 -61
  197. package/dist/views/production-run/features/planning/ProductionRunFormDialog.spec.d.ts +0 -1
  198. package/dist/views/production-run/features/planning/ProductionRunFormDialog.vue.d.ts +0 -1022
  199. package/dist/views/production-run/features/planning/ProductionRunFormDialogProps.d.ts +0 -25
  200. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.spec.d.ts +0 -1
  201. package/dist/views/production-run/features/planning/ProductionRunIngredientTree.vue.d.ts +0 -65
  202. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.spec.d.ts +0 -1
  203. package/dist/views/production-run/features/planning/ProductionRunInstructionsCard.vue.d.ts +0 -15
  204. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.spec.d.ts +0 -1
  205. package/dist/views/production-run/features/planning/ProductionRunItemPickerDialog.vue.d.ts +0 -30
  206. package/dist/views/production-run/features/planning/ProductionRunPlanCard.spec.d.ts +0 -1
  207. package/dist/views/production-run/features/planning/ProductionRunPlanCard.vue.d.ts +0 -67
  208. package/dist/views/production-run/features/planning/ProductionRunPlanner.spec.d.ts +0 -1
  209. package/dist/views/production-run/features/planning/ProductionRunPlanner.vue.d.ts +0 -85
  210. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.spec.d.ts +0 -1
  211. package/dist/views/production-run/features/planning/ProductionRunRequestedOverview.vue.d.ts +0 -78
  212. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.d.ts +0 -49
  213. package/dist/views/production-run/features/planning/production-run-frozen-ingredients.spec.d.ts +0 -1
  214. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.d.ts +0 -1525
  215. package/dist/views/production-run/features/planning/use-production-run-duplicate-sources.spec.d.ts +0 -1
  216. package/dist/views/production-run/features/planning/use-production-run-form.d.ts +0 -275
  217. package/dist/views/production-run/features/planning/use-production-run-form.spec.d.ts +0 -1
  218. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.spec.d.ts +0 -1
  219. package/dist/views/production-run/features/prepare/PrepareRunConfirmationDialog.vue.d.ts +0 -32
  220. package/dist/views/production-run/features/prepare/PrepareRunDialog.spec.d.ts +0 -1
  221. package/dist/views/production-run/features/prepare/PrepareRunDialog.vue.d.ts +0 -18
  222. package/dist/views/production-run/features/prepare/PrepareRunDialogProps.d.ts +0 -29
  223. package/dist/views/production-run/features/prepare/PrepareSheetDialog.spec.d.ts +0 -1
  224. package/dist/views/production-run/features/prepare/PrepareSheetDialog.vue.d.ts +0 -26
  225. package/dist/views/production-run/features/prepare/ProductionRunPrepareSheet.vue.d.ts +0 -16
  226. package/dist/views/production-run/features/prepare/production-run-prepare-sheet-cleanup.spec.d.ts +0 -1
  227. package/dist/views/production-run/features/prepare/production-run-prepare-sheet.d.ts +0 -18
  228. package/dist/views/production-run/shared/helpers/production-run-navigation.d.ts +0 -6
  229. package/dist/views/production-run/shared/helpers/production-run-navigation.spec.d.ts +0 -1
  230. package/dist/views/production-run/shared/helpers/production-run-precision.helper.d.ts +0 -31
  231. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.d.ts +0 -57
  232. package/dist/views/production-run/shared/helpers/production-run-quantity.helper.spec.d.ts +0 -1
  233. package/dist/views/production-run/shared/model/production-run-display.d.ts +0 -187
  234. package/dist/views/production-run/shared/model/production-run-display.spec.d.ts +0 -1
  235. package/dist/views/production-run/shared/model/production-run-item-ingredients.d.ts +0 -22
  236. package/dist/views/production-run/shared/model/production-run-list.d.ts +0 -46
  237. package/dist/views/production-run/shared/model/production-run-list.spec.d.ts +0 -1
  238. package/dist/views/production-run/shared/model/production-run-request-confirmation.d.ts +0 -20
  239. package/dist/views/production-run/shared/model/production-run-text-limit.d.ts +0 -22
  240. package/dist/views/production-run/shared/model/production-run-text-limit.spec.d.ts +0 -1
  241. package/dist/views/production-run/shared/model/production-run-unit-snapshot.d.ts +0 -39
  242. package/dist/views/production-run/shared/model/use-production-run-actions.d.ts +0 -39
  243. package/dist/views/production-run/shared/model/use-production-run-actions.spec.d.ts +0 -1
  244. package/dist/views/production-run/shared/model/use-production-run-ingredients.d.ts +0 -658
  245. package/dist/views/production-run/shared/model/use-production-run-ingredients.spec.d.ts +0 -1
  246. package/dist/views/production-run/shared/ui/ProductionRunBanner.vue.d.ts +0 -39
  247. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.spec.d.ts +0 -1
  248. package/dist/views/production-run/shared/ui/ProductionRunBindingsDisclosure.vue.d.ts +0 -25
  249. package/dist/views/production-run/shared/ui/ProductionRunBindingsList.vue.d.ts +0 -51
  250. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.spec.d.ts +0 -1
  251. package/dist/views/production-run/shared/ui/ProductionRunCompactBanner.vue.d.ts +0 -23
  252. package/dist/views/production-run/shared/ui/ProductionRunCompactDisclosure.vue.d.ts +0 -25
  253. package/dist/views/production-run/shared/ui/ProductionRunCostingUnavailable.vue.d.ts +0 -2
  254. package/dist/views/production-run/shared/ui/ProductionRunDialog.spec.d.ts +0 -1
  255. package/dist/views/production-run/shared/ui/ProductionRunDialog.vue.d.ts +0 -24
  256. package/dist/views/production-run/shared/ui/ProductionRunDialogProps.d.ts +0 -15
  257. package/dist/views/production-run/shared/ui/ProductionRunDialogSurface.vue.d.ts +0 -33
  258. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.spec.d.ts +0 -1
  259. package/dist/views/production-run/shared/ui/ProductionRunHelpPopover.vue.d.ts +0 -67
  260. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.spec.d.ts +0 -1
  261. package/dist/views/production-run/shared/ui/ProductionRunInfoBadge.vue.d.ts +0 -70
  262. package/dist/views/production-run/shared/ui/ProductionRunInfoText.spec.d.ts +0 -1
  263. package/dist/views/production-run/shared/ui/ProductionRunInfoText.vue.d.ts +0 -71
  264. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.spec.d.ts +0 -1
  265. package/dist/views/production-run/shared/ui/ProductionRunNoBindingsHelp.vue.d.ts +0 -15
  266. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.spec.d.ts +0 -1
  267. package/dist/views/production-run/shared/ui/ProductionRunProjectionFeedback.vue.d.ts +0 -46
  268. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.spec.d.ts +0 -1
  269. package/dist/views/production-run/shared/ui/ProductionRunScrollHint.vue.d.ts +0 -31
  270. package/dist/views/production-run/shared/ui/ProductionRunSelectionCheckbox.vue.d.ts +0 -31
  271. package/dist/views/production-run/shared/ui/ProductionRunSelectionControls.spec.d.ts +0 -1
  272. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.spec.d.ts +0 -1
  273. package/dist/views/production-run/shared/ui/ProductionRunSelectionRadio.vue.d.ts +0 -37
  274. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.spec.d.ts +0 -1
  275. package/dist/views/production-run/shared/ui/ProductionRunSideSheet.vue.d.ts +0 -77
  276. package/dist/views/production-run/shared/ui/ProductionRunSideSheetSurface.vue.d.ts +0 -52
  277. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.spec.d.ts +0 -1
  278. package/dist/views/production-run/shared/ui/ProductionRunStatusBadge.vue.d.ts +0 -21
  279. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.spec.d.ts +0 -1
  280. package/dist/views/production-run/shared/ui/ProductionRunTextLimitLabel.vue.d.ts +0 -23
  281. package/dist/views/production-run/shared/ui/ProductionRunTextarea.spec.d.ts +0 -1
  282. package/dist/views/production-run/shared/ui/ProductionRunTextarea.vue.d.ts +0 -62
  283. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.spec.d.ts +0 -1
  284. package/dist/views/production-run/shared/ui/ProductionRunUnitInput.vue.d.ts +0 -34
  285. package/dist/views/production-run/shared/ui/production-run-info.types.d.ts +0 -11
  286. package/dist/views/production-run/shared/ui/use-production-run-disclosure.d.ts +0 -15
  287. package/dist/views/production-run/shared/ui/use-production-run-disclosure.spec.d.ts +0 -1
  288. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.d.ts +0 -17
  289. package/dist/views/production-run/shared/ui/use-production-run-modal-a11y.spec.d.ts +0 -1
  290. package/dist/views/production-run/shared/ui/use-production-run-scroll-hint.d.ts +0 -9
  291. package/dist/views/production-run/test-support/production-run.fixture.d.ts +0 -88
  292. package/dist/views/production-run/test-support/production-run.fixture.spec.d.ts +0 -1
  293. package/dist/views/production-run/tests/contracts/ProductionRunLoadBannerContract.spec.d.ts +0 -1
  294. package/dist/views/production-run/tests/contracts/production-run-deduction-parity.spec.d.ts +0 -1
  295. package/dist/views/production-run/tests/contracts/production-run-typography-contract.spec.d.ts +0 -1
  296. /package/dist/views/{production-run/ProductionRunPreparePrintView.vue.d.ts → production/ProductionView.vue.d.ts} +0 -0
  297. /package/dist/{api/production-run-error.spec.d.ts → views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.spec.d.ts} +0 -0
  298. /package/dist/{api/production-run.spec.d.ts → views/transfer-template/helpers/template-item.error.helper.spec.d.ts} +0 -0
@@ -1,3573 +0,0 @@
1
- import type { WithRev } from '@/api/type';
2
- import type { ProductionRunDuplicateSourceState } from '../planning/use-production-run-duplicate-sources';
3
- import type { ProductionRunLifecycleAction } from '../../shared/model/use-production-run-actions';
4
- import type { RecordOutputIngredientOption } from '../output/RecordOutputDialogProps';
5
- interface ProductionRunLifecycleDialogsProps {
6
- action: ProductionRunLifecycleAction | null;
7
- run: WithRev<FdoProductionRun> | null;
8
- locationName: string | null;
9
- duplicateSources?: WithRev<FdoProductionRun>[];
10
- duplicateSourceState?: ProductionRunDuplicateSourceState;
11
- prepareInitialView?: 'review' | 'print';
12
- atTarget?: boolean;
13
- ingredients?: RecordOutputIngredientOption[];
14
- }
15
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProductionRunLifecycleDialogsProps>, {
16
- duplicateSources: () => never[];
17
- prepareInitialView: string;
18
- atTarget: boolean;
19
- ingredients: () => never[];
20
- }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- "update:action": (value: ProductionRunLifecycleAction | null) => void;
22
- edited: (run: WithRev<{
23
- _rev?: string | null | undefined;
24
- closedAt?: string | null | undefined;
25
- cancelledAt?: string | null | undefined;
26
- cancelReason?: string | null | undefined;
27
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
28
- _id: string;
29
- createdAt: string;
30
- createdBy: {
31
- name: string;
32
- id: string;
33
- };
34
- activityLogs: {
35
- remark?: string | null | undefined;
36
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
37
- performedAt: string;
38
- performedBy: {
39
- name: string;
40
- id: string;
41
- };
42
- }[];
43
- runNo: number;
44
- runName: string | null;
45
- instructions: string | null;
46
- plan: {
47
- items: {
48
- measurement: {
49
- name: string;
50
- id: string;
51
- abbrev: string;
52
- conversion: {
53
- amount: number;
54
- precision: number;
55
- };
56
- baseUnitId: string;
57
- };
58
- skuId: string;
59
- requestedAmount: {
60
- amount: number;
61
- precision: number;
62
- };
63
- }[];
64
- requirements: {
65
- ingredients: {
66
- amounts: {
67
- measurement: {
68
- name: string;
69
- id: string;
70
- abbrev: string;
71
- conversion: {
72
- amount: number;
73
- precision: number;
74
- };
75
- baseUnitId: string;
76
- };
77
- amount: {
78
- amount: number;
79
- precision: number;
80
- };
81
- outputSkuId: string;
82
- rateBasis: {
83
- outputMeasurement: {
84
- name: string;
85
- id: string;
86
- abbrev: string;
87
- conversion: {
88
- amount: number;
89
- precision: number;
90
- };
91
- baseUnitId: string;
92
- };
93
- };
94
- }[];
95
- ingredient: {
96
- code: string;
97
- skuId: string;
98
- name: string;
99
- baseUnit: {
100
- name: string;
101
- id: string;
102
- abbrev: string;
103
- conversion: {
104
- amount: number;
105
- precision: number;
106
- };
107
- baseUnitId: string;
108
- };
109
- basePrecision: number;
110
- };
111
- }[];
112
- skippedSkuIds: string[];
113
- } | null;
114
- };
115
- preparation: {
116
- pendingIssuance?: {
117
- remark?: string | null | undefined;
118
- adjustmentId: string;
119
- items: {
120
- measurement: {
121
- name: string;
122
- id: string;
123
- abbrev: string;
124
- conversion: {
125
- amount: number;
126
- precision: number;
127
- };
128
- baseUnitId: string;
129
- };
130
- sku: {
131
- trackingMeasurement?: string | null | undefined;
132
- isInactive?: boolean | null | undefined;
133
- convert?: {
134
- measurement?: string | null | undefined;
135
- inventoryBindings?: {
136
- measurement?: {
137
- name: string;
138
- id: string;
139
- abbrev: string;
140
- conversion: {
141
- amount: number;
142
- precision: number;
143
- };
144
- } | null | undefined;
145
- rules?: Record<string, any> | null | undefined;
146
- alternatives?: {
147
- default?: boolean | null | undefined;
148
- trackingMeasurement?: string | null | undefined;
149
- priority?: number | null | undefined;
150
- _id: string;
151
- }[] | null | undefined;
152
- type: "RECIPE" | "SKU" | "SKU_GROUP";
153
- amount: {
154
- amount: number;
155
- precision: number;
156
- };
157
- id: string;
158
- }[] | null | undefined;
159
- } | null | undefined;
160
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
161
- defaultCost?: {
162
- measurement?: {
163
- name: string;
164
- id: string;
165
- abbrev: string;
166
- conversion: {
167
- amount: number;
168
- precision: number;
169
- };
170
- } | null | undefined;
171
- costPerUnit: {
172
- 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";
173
- amount: number;
174
- precision: number;
175
- };
176
- } | null | undefined;
177
- operationalGroup?: string | null | undefined;
178
- thresholds?: {
179
- low: number;
180
- mid: number;
181
- } | null | undefined;
182
- customAttributes?: Record<string, any> | null | undefined;
183
- unit: {
184
- _id: string;
185
- name: string;
186
- abbrev: string;
187
- precision: number;
188
- measurements: {
189
- name: string;
190
- id: string;
191
- abbrev: string;
192
- conversion: {
193
- amount: number;
194
- precision: number;
195
- };
196
- }[];
197
- };
198
- code: string;
199
- _id: string;
200
- name: string;
201
- };
202
- committedAmount: {
203
- amount: number;
204
- precision: number;
205
- };
206
- }[];
207
- skippedSkuIds: string[];
208
- acknowledgedShortages: {
209
- skuId: string;
210
- baseUnit: {
211
- name: string;
212
- id: string;
213
- abbrev: string;
214
- conversion: {
215
- amount: number;
216
- precision: number;
217
- };
218
- baseUnitId: string;
219
- };
220
- projectedBalance: {
221
- amount: number;
222
- precision: number;
223
- };
224
- }[];
225
- movement: {
226
- sku: {
227
- trackingMeasurement?: string | null | undefined;
228
- isInactive?: boolean | null | undefined;
229
- convert?: {
230
- measurement?: string | null | undefined;
231
- inventoryBindings?: {
232
- measurement?: {
233
- name: string;
234
- id: string;
235
- abbrev: string;
236
- conversion: {
237
- amount: number;
238
- precision: number;
239
- };
240
- } | null | undefined;
241
- rules?: Record<string, any> | null | undefined;
242
- alternatives?: {
243
- default?: boolean | null | undefined;
244
- trackingMeasurement?: string | null | undefined;
245
- priority?: number | null | undefined;
246
- _id: string;
247
- }[] | null | undefined;
248
- type: "RECIPE" | "SKU" | "SKU_GROUP";
249
- amount: {
250
- amount: number;
251
- precision: number;
252
- };
253
- id: string;
254
- }[] | null | undefined;
255
- } | null | undefined;
256
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
257
- defaultCost?: {
258
- measurement?: {
259
- name: string;
260
- id: string;
261
- abbrev: string;
262
- conversion: {
263
- amount: number;
264
- precision: number;
265
- };
266
- } | null | undefined;
267
- costPerUnit: {
268
- 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";
269
- amount: number;
270
- precision: number;
271
- };
272
- } | null | undefined;
273
- operationalGroup?: string | null | undefined;
274
- thresholds?: {
275
- low: number;
276
- mid: number;
277
- } | null | undefined;
278
- customAttributes?: Record<string, any> | null | undefined;
279
- unit: {
280
- _id: string;
281
- name: string;
282
- abbrev: string;
283
- precision: number;
284
- measurements: {
285
- name: string;
286
- id: string;
287
- abbrev: string;
288
- conversion: {
289
- amount: number;
290
- precision: number;
291
- };
292
- }[];
293
- };
294
- code: string;
295
- _id: string;
296
- name: string;
297
- };
298
- amounts: {
299
- measurement: {
300
- name: string;
301
- id: string;
302
- abbrev: string;
303
- conversion: {
304
- amount: number;
305
- precision: number;
306
- };
307
- baseUnitId: string;
308
- };
309
- amount: {
310
- amount: number;
311
- precision: number;
312
- };
313
- outputSkuId: string;
314
- }[];
315
- }[];
316
- claimedAt: string;
317
- claimedBy: {
318
- name: string;
319
- id: string;
320
- };
321
- } | null | undefined;
322
- issuances: {
323
- remark?: string | null | undefined;
324
- adjustmentId: string;
325
- items: {
326
- measurement: {
327
- name: string;
328
- id: string;
329
- abbrev: string;
330
- conversion: {
331
- amount: number;
332
- precision: number;
333
- };
334
- baseUnitId: string;
335
- };
336
- sku: {
337
- trackingMeasurement?: string | null | undefined;
338
- isInactive?: boolean | null | undefined;
339
- convert?: {
340
- measurement?: string | null | undefined;
341
- inventoryBindings?: {
342
- measurement?: {
343
- name: string;
344
- id: string;
345
- abbrev: string;
346
- conversion: {
347
- amount: number;
348
- precision: number;
349
- };
350
- } | null | undefined;
351
- rules?: Record<string, any> | null | undefined;
352
- alternatives?: {
353
- default?: boolean | null | undefined;
354
- trackingMeasurement?: string | null | undefined;
355
- priority?: number | null | undefined;
356
- _id: string;
357
- }[] | null | undefined;
358
- type: "RECIPE" | "SKU" | "SKU_GROUP";
359
- amount: {
360
- amount: number;
361
- precision: number;
362
- };
363
- id: string;
364
- }[] | null | undefined;
365
- } | null | undefined;
366
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
367
- defaultCost?: {
368
- measurement?: {
369
- name: string;
370
- id: string;
371
- abbrev: string;
372
- conversion: {
373
- amount: number;
374
- precision: number;
375
- };
376
- } | null | undefined;
377
- costPerUnit: {
378
- 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";
379
- amount: number;
380
- precision: number;
381
- };
382
- } | null | undefined;
383
- operationalGroup?: string | null | undefined;
384
- thresholds?: {
385
- low: number;
386
- mid: number;
387
- } | null | undefined;
388
- customAttributes?: Record<string, any> | null | undefined;
389
- unit: {
390
- _id: string;
391
- name: string;
392
- abbrev: string;
393
- precision: number;
394
- measurements: {
395
- name: string;
396
- id: string;
397
- abbrev: string;
398
- conversion: {
399
- amount: number;
400
- precision: number;
401
- };
402
- }[];
403
- };
404
- code: string;
405
- _id: string;
406
- name: string;
407
- };
408
- committedAmount: {
409
- amount: number;
410
- precision: number;
411
- };
412
- }[];
413
- skippedSkuIds: string[];
414
- issuedAt: string;
415
- issuedBy: {
416
- name: string;
417
- id: string;
418
- };
419
- acknowledgedShortages: {
420
- skuId: string;
421
- baseUnit: {
422
- name: string;
423
- id: string;
424
- abbrev: string;
425
- conversion: {
426
- amount: number;
427
- precision: number;
428
- };
429
- baseUnitId: string;
430
- };
431
- projectedBalance: {
432
- amount: number;
433
- precision: number;
434
- };
435
- }[];
436
- movement: {
437
- amounts: {
438
- measurement: {
439
- name: string;
440
- id: string;
441
- abbrev: string;
442
- conversion: {
443
- amount: number;
444
- precision: number;
445
- };
446
- baseUnitId: string;
447
- };
448
- amount: {
449
- amount: number;
450
- precision: number;
451
- };
452
- outputSkuId: string;
453
- }[];
454
- ingredient: {
455
- code: string;
456
- skuId: string;
457
- name: string;
458
- baseUnit: {
459
- name: string;
460
- id: string;
461
- abbrev: string;
462
- conversion: {
463
- amount: number;
464
- precision: number;
465
- };
466
- baseUnitId: string;
467
- };
468
- basePrecision: number;
469
- };
470
- }[];
471
- }[];
472
- };
473
- batches: {
474
- adjustmentId: string;
475
- id: string;
476
- remark: string | null;
477
- items: {
478
- measurement: {
479
- name: string;
480
- id: string;
481
- abbrev: string;
482
- conversion: {
483
- amount: number;
484
- precision: number;
485
- };
486
- baseUnitId: string;
487
- };
488
- skuId: string;
489
- producedAmount: {
490
- amount: number;
491
- precision: number;
492
- };
493
- }[];
494
- operationKey: string;
495
- stockApplicationStatus: "PENDING" | "APPLIED";
496
- producedAt: string;
497
- recordedAt: string;
498
- recordedBy: {
499
- name: string;
500
- id: string;
501
- };
502
- wastages: {
503
- measurement: {
504
- name: string;
505
- id: string;
506
- abbrev: string;
507
- conversion: {
508
- amount: number;
509
- precision: number;
510
- };
511
- baseUnitId: string;
512
- };
513
- skuId: string;
514
- amount: {
515
- amount: number;
516
- precision: number;
517
- };
518
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
519
- remark: string | null;
520
- itemSkuId: string;
521
- }[];
522
- }[];
523
- }>) => void;
524
- issued: (result: import("@/api/production-run").ProductionRunDocument) => void;
525
- recorded: (result: import("@/api/production-run").ProductionRunDocument) => void;
526
- closed: (run: WithRev<{
527
- _rev?: string | null | undefined;
528
- closedAt?: string | null | undefined;
529
- cancelledAt?: string | null | undefined;
530
- cancelReason?: string | null | undefined;
531
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
532
- _id: string;
533
- createdAt: string;
534
- createdBy: {
535
- name: string;
536
- id: string;
537
- };
538
- activityLogs: {
539
- remark?: string | null | undefined;
540
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
541
- performedAt: string;
542
- performedBy: {
543
- name: string;
544
- id: string;
545
- };
546
- }[];
547
- runNo: number;
548
- runName: string | null;
549
- instructions: string | null;
550
- plan: {
551
- items: {
552
- measurement: {
553
- name: string;
554
- id: string;
555
- abbrev: string;
556
- conversion: {
557
- amount: number;
558
- precision: number;
559
- };
560
- baseUnitId: string;
561
- };
562
- skuId: string;
563
- requestedAmount: {
564
- amount: number;
565
- precision: number;
566
- };
567
- }[];
568
- requirements: {
569
- ingredients: {
570
- amounts: {
571
- measurement: {
572
- name: string;
573
- id: string;
574
- abbrev: string;
575
- conversion: {
576
- amount: number;
577
- precision: number;
578
- };
579
- baseUnitId: string;
580
- };
581
- amount: {
582
- amount: number;
583
- precision: number;
584
- };
585
- outputSkuId: string;
586
- rateBasis: {
587
- outputMeasurement: {
588
- name: string;
589
- id: string;
590
- abbrev: string;
591
- conversion: {
592
- amount: number;
593
- precision: number;
594
- };
595
- baseUnitId: string;
596
- };
597
- };
598
- }[];
599
- ingredient: {
600
- code: string;
601
- skuId: string;
602
- name: string;
603
- baseUnit: {
604
- name: string;
605
- id: string;
606
- abbrev: string;
607
- conversion: {
608
- amount: number;
609
- precision: number;
610
- };
611
- baseUnitId: string;
612
- };
613
- basePrecision: number;
614
- };
615
- }[];
616
- skippedSkuIds: string[];
617
- } | null;
618
- };
619
- preparation: {
620
- pendingIssuance?: {
621
- remark?: string | null | undefined;
622
- adjustmentId: string;
623
- items: {
624
- measurement: {
625
- name: string;
626
- id: string;
627
- abbrev: string;
628
- conversion: {
629
- amount: number;
630
- precision: number;
631
- };
632
- baseUnitId: string;
633
- };
634
- sku: {
635
- trackingMeasurement?: string | null | undefined;
636
- isInactive?: boolean | null | undefined;
637
- convert?: {
638
- measurement?: string | null | undefined;
639
- inventoryBindings?: {
640
- measurement?: {
641
- name: string;
642
- id: string;
643
- abbrev: string;
644
- conversion: {
645
- amount: number;
646
- precision: number;
647
- };
648
- } | null | undefined;
649
- rules?: Record<string, any> | null | undefined;
650
- alternatives?: {
651
- default?: boolean | null | undefined;
652
- trackingMeasurement?: string | null | undefined;
653
- priority?: number | null | undefined;
654
- _id: string;
655
- }[] | null | undefined;
656
- type: "RECIPE" | "SKU" | "SKU_GROUP";
657
- amount: {
658
- amount: number;
659
- precision: number;
660
- };
661
- id: string;
662
- }[] | null | undefined;
663
- } | null | undefined;
664
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
665
- defaultCost?: {
666
- measurement?: {
667
- name: string;
668
- id: string;
669
- abbrev: string;
670
- conversion: {
671
- amount: number;
672
- precision: number;
673
- };
674
- } | null | undefined;
675
- costPerUnit: {
676
- 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";
677
- amount: number;
678
- precision: number;
679
- };
680
- } | null | undefined;
681
- operationalGroup?: string | null | undefined;
682
- thresholds?: {
683
- low: number;
684
- mid: number;
685
- } | null | undefined;
686
- customAttributes?: Record<string, any> | null | undefined;
687
- unit: {
688
- _id: string;
689
- name: string;
690
- abbrev: string;
691
- precision: number;
692
- measurements: {
693
- name: string;
694
- id: string;
695
- abbrev: string;
696
- conversion: {
697
- amount: number;
698
- precision: number;
699
- };
700
- }[];
701
- };
702
- code: string;
703
- _id: string;
704
- name: string;
705
- };
706
- committedAmount: {
707
- amount: number;
708
- precision: number;
709
- };
710
- }[];
711
- skippedSkuIds: string[];
712
- acknowledgedShortages: {
713
- skuId: string;
714
- baseUnit: {
715
- name: string;
716
- id: string;
717
- abbrev: string;
718
- conversion: {
719
- amount: number;
720
- precision: number;
721
- };
722
- baseUnitId: string;
723
- };
724
- projectedBalance: {
725
- amount: number;
726
- precision: number;
727
- };
728
- }[];
729
- movement: {
730
- sku: {
731
- trackingMeasurement?: string | null | undefined;
732
- isInactive?: boolean | null | undefined;
733
- convert?: {
734
- measurement?: string | null | undefined;
735
- inventoryBindings?: {
736
- measurement?: {
737
- name: string;
738
- id: string;
739
- abbrev: string;
740
- conversion: {
741
- amount: number;
742
- precision: number;
743
- };
744
- } | null | undefined;
745
- rules?: Record<string, any> | null | undefined;
746
- alternatives?: {
747
- default?: boolean | null | undefined;
748
- trackingMeasurement?: string | null | undefined;
749
- priority?: number | null | undefined;
750
- _id: string;
751
- }[] | null | undefined;
752
- type: "RECIPE" | "SKU" | "SKU_GROUP";
753
- amount: {
754
- amount: number;
755
- precision: number;
756
- };
757
- id: string;
758
- }[] | null | undefined;
759
- } | null | undefined;
760
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
761
- defaultCost?: {
762
- measurement?: {
763
- name: string;
764
- id: string;
765
- abbrev: string;
766
- conversion: {
767
- amount: number;
768
- precision: number;
769
- };
770
- } | null | undefined;
771
- costPerUnit: {
772
- 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";
773
- amount: number;
774
- precision: number;
775
- };
776
- } | null | undefined;
777
- operationalGroup?: string | null | undefined;
778
- thresholds?: {
779
- low: number;
780
- mid: number;
781
- } | null | undefined;
782
- customAttributes?: Record<string, any> | null | undefined;
783
- unit: {
784
- _id: string;
785
- name: string;
786
- abbrev: string;
787
- precision: number;
788
- measurements: {
789
- name: string;
790
- id: string;
791
- abbrev: string;
792
- conversion: {
793
- amount: number;
794
- precision: number;
795
- };
796
- }[];
797
- };
798
- code: string;
799
- _id: string;
800
- name: string;
801
- };
802
- amounts: {
803
- measurement: {
804
- name: string;
805
- id: string;
806
- abbrev: string;
807
- conversion: {
808
- amount: number;
809
- precision: number;
810
- };
811
- baseUnitId: string;
812
- };
813
- amount: {
814
- amount: number;
815
- precision: number;
816
- };
817
- outputSkuId: string;
818
- }[];
819
- }[];
820
- claimedAt: string;
821
- claimedBy: {
822
- name: string;
823
- id: string;
824
- };
825
- } | null | undefined;
826
- issuances: {
827
- remark?: string | null | undefined;
828
- adjustmentId: string;
829
- items: {
830
- measurement: {
831
- name: string;
832
- id: string;
833
- abbrev: string;
834
- conversion: {
835
- amount: number;
836
- precision: number;
837
- };
838
- baseUnitId: string;
839
- };
840
- sku: {
841
- trackingMeasurement?: string | null | undefined;
842
- isInactive?: boolean | null | undefined;
843
- convert?: {
844
- measurement?: string | null | undefined;
845
- inventoryBindings?: {
846
- measurement?: {
847
- name: string;
848
- id: string;
849
- abbrev: string;
850
- conversion: {
851
- amount: number;
852
- precision: number;
853
- };
854
- } | null | undefined;
855
- rules?: Record<string, any> | null | undefined;
856
- alternatives?: {
857
- default?: boolean | null | undefined;
858
- trackingMeasurement?: string | null | undefined;
859
- priority?: number | null | undefined;
860
- _id: string;
861
- }[] | null | undefined;
862
- type: "RECIPE" | "SKU" | "SKU_GROUP";
863
- amount: {
864
- amount: number;
865
- precision: number;
866
- };
867
- id: string;
868
- }[] | null | undefined;
869
- } | null | undefined;
870
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
871
- defaultCost?: {
872
- measurement?: {
873
- name: string;
874
- id: string;
875
- abbrev: string;
876
- conversion: {
877
- amount: number;
878
- precision: number;
879
- };
880
- } | null | undefined;
881
- costPerUnit: {
882
- 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";
883
- amount: number;
884
- precision: number;
885
- };
886
- } | null | undefined;
887
- operationalGroup?: string | null | undefined;
888
- thresholds?: {
889
- low: number;
890
- mid: number;
891
- } | null | undefined;
892
- customAttributes?: Record<string, any> | null | undefined;
893
- unit: {
894
- _id: string;
895
- name: string;
896
- abbrev: string;
897
- precision: number;
898
- measurements: {
899
- name: string;
900
- id: string;
901
- abbrev: string;
902
- conversion: {
903
- amount: number;
904
- precision: number;
905
- };
906
- }[];
907
- };
908
- code: string;
909
- _id: string;
910
- name: string;
911
- };
912
- committedAmount: {
913
- amount: number;
914
- precision: number;
915
- };
916
- }[];
917
- skippedSkuIds: string[];
918
- issuedAt: string;
919
- issuedBy: {
920
- name: string;
921
- id: string;
922
- };
923
- acknowledgedShortages: {
924
- skuId: string;
925
- baseUnit: {
926
- name: string;
927
- id: string;
928
- abbrev: string;
929
- conversion: {
930
- amount: number;
931
- precision: number;
932
- };
933
- baseUnitId: string;
934
- };
935
- projectedBalance: {
936
- amount: number;
937
- precision: number;
938
- };
939
- }[];
940
- movement: {
941
- amounts: {
942
- measurement: {
943
- name: string;
944
- id: string;
945
- abbrev: string;
946
- conversion: {
947
- amount: number;
948
- precision: number;
949
- };
950
- baseUnitId: string;
951
- };
952
- amount: {
953
- amount: number;
954
- precision: number;
955
- };
956
- outputSkuId: string;
957
- }[];
958
- ingredient: {
959
- code: string;
960
- skuId: string;
961
- name: string;
962
- baseUnit: {
963
- name: string;
964
- id: string;
965
- abbrev: string;
966
- conversion: {
967
- amount: number;
968
- precision: number;
969
- };
970
- baseUnitId: string;
971
- };
972
- basePrecision: number;
973
- };
974
- }[];
975
- }[];
976
- };
977
- batches: {
978
- adjustmentId: string;
979
- id: string;
980
- remark: string | null;
981
- items: {
982
- measurement: {
983
- name: string;
984
- id: string;
985
- abbrev: string;
986
- conversion: {
987
- amount: number;
988
- precision: number;
989
- };
990
- baseUnitId: string;
991
- };
992
- skuId: string;
993
- producedAmount: {
994
- amount: number;
995
- precision: number;
996
- };
997
- }[];
998
- operationKey: string;
999
- stockApplicationStatus: "PENDING" | "APPLIED";
1000
- producedAt: string;
1001
- recordedAt: string;
1002
- recordedBy: {
1003
- name: string;
1004
- id: string;
1005
- };
1006
- wastages: {
1007
- measurement: {
1008
- name: string;
1009
- id: string;
1010
- abbrev: string;
1011
- conversion: {
1012
- amount: number;
1013
- precision: number;
1014
- };
1015
- baseUnitId: string;
1016
- };
1017
- skuId: string;
1018
- amount: {
1019
- amount: number;
1020
- precision: number;
1021
- };
1022
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1023
- remark: string | null;
1024
- itemSkuId: string;
1025
- }[];
1026
- }[];
1027
- }>) => void;
1028
- cancelled: (run: WithRev<{
1029
- _rev?: string | null | undefined;
1030
- closedAt?: string | null | undefined;
1031
- cancelledAt?: string | null | undefined;
1032
- cancelReason?: string | null | undefined;
1033
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1034
- _id: string;
1035
- createdAt: string;
1036
- createdBy: {
1037
- name: string;
1038
- id: string;
1039
- };
1040
- activityLogs: {
1041
- remark?: string | null | undefined;
1042
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1043
- performedAt: string;
1044
- performedBy: {
1045
- name: string;
1046
- id: string;
1047
- };
1048
- }[];
1049
- runNo: number;
1050
- runName: string | null;
1051
- instructions: string | null;
1052
- plan: {
1053
- items: {
1054
- measurement: {
1055
- name: string;
1056
- id: string;
1057
- abbrev: string;
1058
- conversion: {
1059
- amount: number;
1060
- precision: number;
1061
- };
1062
- baseUnitId: string;
1063
- };
1064
- skuId: string;
1065
- requestedAmount: {
1066
- amount: number;
1067
- precision: number;
1068
- };
1069
- }[];
1070
- requirements: {
1071
- ingredients: {
1072
- amounts: {
1073
- measurement: {
1074
- name: string;
1075
- id: string;
1076
- abbrev: string;
1077
- conversion: {
1078
- amount: number;
1079
- precision: number;
1080
- };
1081
- baseUnitId: string;
1082
- };
1083
- amount: {
1084
- amount: number;
1085
- precision: number;
1086
- };
1087
- outputSkuId: string;
1088
- rateBasis: {
1089
- outputMeasurement: {
1090
- name: string;
1091
- id: string;
1092
- abbrev: string;
1093
- conversion: {
1094
- amount: number;
1095
- precision: number;
1096
- };
1097
- baseUnitId: string;
1098
- };
1099
- };
1100
- }[];
1101
- ingredient: {
1102
- code: string;
1103
- skuId: string;
1104
- name: string;
1105
- baseUnit: {
1106
- name: string;
1107
- id: string;
1108
- abbrev: string;
1109
- conversion: {
1110
- amount: number;
1111
- precision: number;
1112
- };
1113
- baseUnitId: string;
1114
- };
1115
- basePrecision: number;
1116
- };
1117
- }[];
1118
- skippedSkuIds: string[];
1119
- } | null;
1120
- };
1121
- preparation: {
1122
- pendingIssuance?: {
1123
- remark?: string | null | undefined;
1124
- adjustmentId: string;
1125
- items: {
1126
- measurement: {
1127
- name: string;
1128
- id: string;
1129
- abbrev: string;
1130
- conversion: {
1131
- amount: number;
1132
- precision: number;
1133
- };
1134
- baseUnitId: string;
1135
- };
1136
- sku: {
1137
- trackingMeasurement?: string | null | undefined;
1138
- isInactive?: boolean | null | undefined;
1139
- convert?: {
1140
- measurement?: string | null | undefined;
1141
- inventoryBindings?: {
1142
- measurement?: {
1143
- name: string;
1144
- id: string;
1145
- abbrev: string;
1146
- conversion: {
1147
- amount: number;
1148
- precision: number;
1149
- };
1150
- } | null | undefined;
1151
- rules?: Record<string, any> | null | undefined;
1152
- alternatives?: {
1153
- default?: boolean | null | undefined;
1154
- trackingMeasurement?: string | null | undefined;
1155
- priority?: number | null | undefined;
1156
- _id: string;
1157
- }[] | null | undefined;
1158
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1159
- amount: {
1160
- amount: number;
1161
- precision: number;
1162
- };
1163
- id: string;
1164
- }[] | null | undefined;
1165
- } | null | undefined;
1166
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1167
- defaultCost?: {
1168
- measurement?: {
1169
- name: string;
1170
- id: string;
1171
- abbrev: string;
1172
- conversion: {
1173
- amount: number;
1174
- precision: number;
1175
- };
1176
- } | null | undefined;
1177
- costPerUnit: {
1178
- 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";
1179
- amount: number;
1180
- precision: number;
1181
- };
1182
- } | null | undefined;
1183
- operationalGroup?: string | null | undefined;
1184
- thresholds?: {
1185
- low: number;
1186
- mid: number;
1187
- } | null | undefined;
1188
- customAttributes?: Record<string, any> | null | undefined;
1189
- unit: {
1190
- _id: string;
1191
- name: string;
1192
- abbrev: string;
1193
- precision: number;
1194
- measurements: {
1195
- name: string;
1196
- id: string;
1197
- abbrev: string;
1198
- conversion: {
1199
- amount: number;
1200
- precision: number;
1201
- };
1202
- }[];
1203
- };
1204
- code: string;
1205
- _id: string;
1206
- name: string;
1207
- };
1208
- committedAmount: {
1209
- amount: number;
1210
- precision: number;
1211
- };
1212
- }[];
1213
- skippedSkuIds: string[];
1214
- acknowledgedShortages: {
1215
- skuId: string;
1216
- baseUnit: {
1217
- name: string;
1218
- id: string;
1219
- abbrev: string;
1220
- conversion: {
1221
- amount: number;
1222
- precision: number;
1223
- };
1224
- baseUnitId: string;
1225
- };
1226
- projectedBalance: {
1227
- amount: number;
1228
- precision: number;
1229
- };
1230
- }[];
1231
- movement: {
1232
- sku: {
1233
- trackingMeasurement?: string | null | undefined;
1234
- isInactive?: boolean | null | undefined;
1235
- convert?: {
1236
- measurement?: string | null | undefined;
1237
- inventoryBindings?: {
1238
- measurement?: {
1239
- name: string;
1240
- id: string;
1241
- abbrev: string;
1242
- conversion: {
1243
- amount: number;
1244
- precision: number;
1245
- };
1246
- } | null | undefined;
1247
- rules?: Record<string, any> | null | undefined;
1248
- alternatives?: {
1249
- default?: boolean | null | undefined;
1250
- trackingMeasurement?: string | null | undefined;
1251
- priority?: number | null | undefined;
1252
- _id: string;
1253
- }[] | null | undefined;
1254
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1255
- amount: {
1256
- amount: number;
1257
- precision: number;
1258
- };
1259
- id: string;
1260
- }[] | null | undefined;
1261
- } | null | undefined;
1262
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1263
- defaultCost?: {
1264
- measurement?: {
1265
- name: string;
1266
- id: string;
1267
- abbrev: string;
1268
- conversion: {
1269
- amount: number;
1270
- precision: number;
1271
- };
1272
- } | null | undefined;
1273
- costPerUnit: {
1274
- 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";
1275
- amount: number;
1276
- precision: number;
1277
- };
1278
- } | null | undefined;
1279
- operationalGroup?: string | null | undefined;
1280
- thresholds?: {
1281
- low: number;
1282
- mid: number;
1283
- } | null | undefined;
1284
- customAttributes?: Record<string, any> | null | undefined;
1285
- unit: {
1286
- _id: string;
1287
- name: string;
1288
- abbrev: string;
1289
- precision: number;
1290
- measurements: {
1291
- name: string;
1292
- id: string;
1293
- abbrev: string;
1294
- conversion: {
1295
- amount: number;
1296
- precision: number;
1297
- };
1298
- }[];
1299
- };
1300
- code: string;
1301
- _id: string;
1302
- name: string;
1303
- };
1304
- amounts: {
1305
- measurement: {
1306
- name: string;
1307
- id: string;
1308
- abbrev: string;
1309
- conversion: {
1310
- amount: number;
1311
- precision: number;
1312
- };
1313
- baseUnitId: string;
1314
- };
1315
- amount: {
1316
- amount: number;
1317
- precision: number;
1318
- };
1319
- outputSkuId: string;
1320
- }[];
1321
- }[];
1322
- claimedAt: string;
1323
- claimedBy: {
1324
- name: string;
1325
- id: string;
1326
- };
1327
- } | null | undefined;
1328
- issuances: {
1329
- remark?: string | null | undefined;
1330
- adjustmentId: string;
1331
- items: {
1332
- measurement: {
1333
- name: string;
1334
- id: string;
1335
- abbrev: string;
1336
- conversion: {
1337
- amount: number;
1338
- precision: number;
1339
- };
1340
- baseUnitId: string;
1341
- };
1342
- sku: {
1343
- trackingMeasurement?: string | null | undefined;
1344
- isInactive?: boolean | null | undefined;
1345
- convert?: {
1346
- measurement?: string | null | undefined;
1347
- inventoryBindings?: {
1348
- measurement?: {
1349
- name: string;
1350
- id: string;
1351
- abbrev: string;
1352
- conversion: {
1353
- amount: number;
1354
- precision: number;
1355
- };
1356
- } | null | undefined;
1357
- rules?: Record<string, any> | null | undefined;
1358
- alternatives?: {
1359
- default?: boolean | null | undefined;
1360
- trackingMeasurement?: string | null | undefined;
1361
- priority?: number | null | undefined;
1362
- _id: string;
1363
- }[] | null | undefined;
1364
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1365
- amount: {
1366
- amount: number;
1367
- precision: number;
1368
- };
1369
- id: string;
1370
- }[] | null | undefined;
1371
- } | null | undefined;
1372
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1373
- defaultCost?: {
1374
- measurement?: {
1375
- name: string;
1376
- id: string;
1377
- abbrev: string;
1378
- conversion: {
1379
- amount: number;
1380
- precision: number;
1381
- };
1382
- } | null | undefined;
1383
- costPerUnit: {
1384
- 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";
1385
- amount: number;
1386
- precision: number;
1387
- };
1388
- } | null | undefined;
1389
- operationalGroup?: string | null | undefined;
1390
- thresholds?: {
1391
- low: number;
1392
- mid: number;
1393
- } | null | undefined;
1394
- customAttributes?: Record<string, any> | null | undefined;
1395
- unit: {
1396
- _id: string;
1397
- name: string;
1398
- abbrev: string;
1399
- precision: number;
1400
- measurements: {
1401
- name: string;
1402
- id: string;
1403
- abbrev: string;
1404
- conversion: {
1405
- amount: number;
1406
- precision: number;
1407
- };
1408
- }[];
1409
- };
1410
- code: string;
1411
- _id: string;
1412
- name: string;
1413
- };
1414
- committedAmount: {
1415
- amount: number;
1416
- precision: number;
1417
- };
1418
- }[];
1419
- skippedSkuIds: string[];
1420
- issuedAt: string;
1421
- issuedBy: {
1422
- name: string;
1423
- id: string;
1424
- };
1425
- acknowledgedShortages: {
1426
- skuId: string;
1427
- baseUnit: {
1428
- name: string;
1429
- id: string;
1430
- abbrev: string;
1431
- conversion: {
1432
- amount: number;
1433
- precision: number;
1434
- };
1435
- baseUnitId: string;
1436
- };
1437
- projectedBalance: {
1438
- amount: number;
1439
- precision: number;
1440
- };
1441
- }[];
1442
- movement: {
1443
- amounts: {
1444
- measurement: {
1445
- name: string;
1446
- id: string;
1447
- abbrev: string;
1448
- conversion: {
1449
- amount: number;
1450
- precision: number;
1451
- };
1452
- baseUnitId: string;
1453
- };
1454
- amount: {
1455
- amount: number;
1456
- precision: number;
1457
- };
1458
- outputSkuId: string;
1459
- }[];
1460
- ingredient: {
1461
- code: string;
1462
- skuId: string;
1463
- name: string;
1464
- baseUnit: {
1465
- name: string;
1466
- id: string;
1467
- abbrev: string;
1468
- conversion: {
1469
- amount: number;
1470
- precision: number;
1471
- };
1472
- baseUnitId: string;
1473
- };
1474
- basePrecision: number;
1475
- };
1476
- }[];
1477
- }[];
1478
- };
1479
- batches: {
1480
- adjustmentId: string;
1481
- id: string;
1482
- remark: string | null;
1483
- items: {
1484
- measurement: {
1485
- name: string;
1486
- id: string;
1487
- abbrev: string;
1488
- conversion: {
1489
- amount: number;
1490
- precision: number;
1491
- };
1492
- baseUnitId: string;
1493
- };
1494
- skuId: string;
1495
- producedAmount: {
1496
- amount: number;
1497
- precision: number;
1498
- };
1499
- }[];
1500
- operationKey: string;
1501
- stockApplicationStatus: "PENDING" | "APPLIED";
1502
- producedAt: string;
1503
- recordedAt: string;
1504
- recordedBy: {
1505
- name: string;
1506
- id: string;
1507
- };
1508
- wastages: {
1509
- measurement: {
1510
- name: string;
1511
- id: string;
1512
- abbrev: string;
1513
- conversion: {
1514
- amount: number;
1515
- precision: number;
1516
- };
1517
- baseUnitId: string;
1518
- };
1519
- skuId: string;
1520
- amount: {
1521
- amount: number;
1522
- precision: number;
1523
- };
1524
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1525
- remark: string | null;
1526
- itemSkuId: string;
1527
- }[];
1528
- }[];
1529
- }>) => void;
1530
- reload: () => void;
1531
- "load-more-duplicate-sources": () => void;
1532
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProductionRunLifecycleDialogsProps>, {
1533
- duplicateSources: () => never[];
1534
- prepareInitialView: string;
1535
- atTarget: boolean;
1536
- ingredients: () => never[];
1537
- }>>> & Readonly<{
1538
- onIssued?: ((result: import("@/api/production-run").ProductionRunDocument) => any) | undefined;
1539
- onCancelled?: ((run: WithRev<{
1540
- _rev?: string | null | undefined;
1541
- closedAt?: string | null | undefined;
1542
- cancelledAt?: string | null | undefined;
1543
- cancelReason?: string | null | undefined;
1544
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1545
- _id: string;
1546
- createdAt: string;
1547
- createdBy: {
1548
- name: string;
1549
- id: string;
1550
- };
1551
- activityLogs: {
1552
- remark?: string | null | undefined;
1553
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1554
- performedAt: string;
1555
- performedBy: {
1556
- name: string;
1557
- id: string;
1558
- };
1559
- }[];
1560
- runNo: number;
1561
- runName: string | null;
1562
- instructions: string | null;
1563
- plan: {
1564
- items: {
1565
- measurement: {
1566
- name: string;
1567
- id: string;
1568
- abbrev: string;
1569
- conversion: {
1570
- amount: number;
1571
- precision: number;
1572
- };
1573
- baseUnitId: string;
1574
- };
1575
- skuId: string;
1576
- requestedAmount: {
1577
- amount: number;
1578
- precision: number;
1579
- };
1580
- }[];
1581
- requirements: {
1582
- ingredients: {
1583
- amounts: {
1584
- measurement: {
1585
- name: string;
1586
- id: string;
1587
- abbrev: string;
1588
- conversion: {
1589
- amount: number;
1590
- precision: number;
1591
- };
1592
- baseUnitId: string;
1593
- };
1594
- amount: {
1595
- amount: number;
1596
- precision: number;
1597
- };
1598
- outputSkuId: string;
1599
- rateBasis: {
1600
- outputMeasurement: {
1601
- name: string;
1602
- id: string;
1603
- abbrev: string;
1604
- conversion: {
1605
- amount: number;
1606
- precision: number;
1607
- };
1608
- baseUnitId: string;
1609
- };
1610
- };
1611
- }[];
1612
- ingredient: {
1613
- code: string;
1614
- skuId: string;
1615
- name: string;
1616
- baseUnit: {
1617
- name: string;
1618
- id: string;
1619
- abbrev: string;
1620
- conversion: {
1621
- amount: number;
1622
- precision: number;
1623
- };
1624
- baseUnitId: string;
1625
- };
1626
- basePrecision: number;
1627
- };
1628
- }[];
1629
- skippedSkuIds: string[];
1630
- } | null;
1631
- };
1632
- preparation: {
1633
- pendingIssuance?: {
1634
- remark?: string | null | undefined;
1635
- adjustmentId: string;
1636
- items: {
1637
- measurement: {
1638
- name: string;
1639
- id: string;
1640
- abbrev: string;
1641
- conversion: {
1642
- amount: number;
1643
- precision: number;
1644
- };
1645
- baseUnitId: string;
1646
- };
1647
- sku: {
1648
- trackingMeasurement?: string | null | undefined;
1649
- isInactive?: boolean | null | undefined;
1650
- convert?: {
1651
- measurement?: string | null | undefined;
1652
- inventoryBindings?: {
1653
- measurement?: {
1654
- name: string;
1655
- id: string;
1656
- abbrev: string;
1657
- conversion: {
1658
- amount: number;
1659
- precision: number;
1660
- };
1661
- } | null | undefined;
1662
- rules?: Record<string, any> | null | undefined;
1663
- alternatives?: {
1664
- default?: boolean | null | undefined;
1665
- trackingMeasurement?: string | null | undefined;
1666
- priority?: number | null | undefined;
1667
- _id: string;
1668
- }[] | null | undefined;
1669
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1670
- amount: {
1671
- amount: number;
1672
- precision: number;
1673
- };
1674
- id: string;
1675
- }[] | null | undefined;
1676
- } | null | undefined;
1677
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1678
- defaultCost?: {
1679
- measurement?: {
1680
- name: string;
1681
- id: string;
1682
- abbrev: string;
1683
- conversion: {
1684
- amount: number;
1685
- precision: number;
1686
- };
1687
- } | null | undefined;
1688
- costPerUnit: {
1689
- 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";
1690
- amount: number;
1691
- precision: number;
1692
- };
1693
- } | null | undefined;
1694
- operationalGroup?: string | null | undefined;
1695
- thresholds?: {
1696
- low: number;
1697
- mid: number;
1698
- } | null | undefined;
1699
- customAttributes?: Record<string, any> | null | undefined;
1700
- unit: {
1701
- _id: string;
1702
- name: string;
1703
- abbrev: string;
1704
- precision: number;
1705
- measurements: {
1706
- name: string;
1707
- id: string;
1708
- abbrev: string;
1709
- conversion: {
1710
- amount: number;
1711
- precision: number;
1712
- };
1713
- }[];
1714
- };
1715
- code: string;
1716
- _id: string;
1717
- name: string;
1718
- };
1719
- committedAmount: {
1720
- amount: number;
1721
- precision: number;
1722
- };
1723
- }[];
1724
- skippedSkuIds: string[];
1725
- acknowledgedShortages: {
1726
- skuId: string;
1727
- baseUnit: {
1728
- name: string;
1729
- id: string;
1730
- abbrev: string;
1731
- conversion: {
1732
- amount: number;
1733
- precision: number;
1734
- };
1735
- baseUnitId: string;
1736
- };
1737
- projectedBalance: {
1738
- amount: number;
1739
- precision: number;
1740
- };
1741
- }[];
1742
- movement: {
1743
- sku: {
1744
- trackingMeasurement?: string | null | undefined;
1745
- isInactive?: boolean | null | undefined;
1746
- convert?: {
1747
- measurement?: string | null | undefined;
1748
- inventoryBindings?: {
1749
- measurement?: {
1750
- name: string;
1751
- id: string;
1752
- abbrev: string;
1753
- conversion: {
1754
- amount: number;
1755
- precision: number;
1756
- };
1757
- } | null | undefined;
1758
- rules?: Record<string, any> | null | undefined;
1759
- alternatives?: {
1760
- default?: boolean | null | undefined;
1761
- trackingMeasurement?: string | null | undefined;
1762
- priority?: number | null | undefined;
1763
- _id: string;
1764
- }[] | null | undefined;
1765
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1766
- amount: {
1767
- amount: number;
1768
- precision: number;
1769
- };
1770
- id: string;
1771
- }[] | null | undefined;
1772
- } | null | undefined;
1773
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1774
- defaultCost?: {
1775
- measurement?: {
1776
- name: string;
1777
- id: string;
1778
- abbrev: string;
1779
- conversion: {
1780
- amount: number;
1781
- precision: number;
1782
- };
1783
- } | null | undefined;
1784
- costPerUnit: {
1785
- 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";
1786
- amount: number;
1787
- precision: number;
1788
- };
1789
- } | null | undefined;
1790
- operationalGroup?: string | null | undefined;
1791
- thresholds?: {
1792
- low: number;
1793
- mid: number;
1794
- } | null | undefined;
1795
- customAttributes?: Record<string, any> | null | undefined;
1796
- unit: {
1797
- _id: string;
1798
- name: string;
1799
- abbrev: string;
1800
- precision: number;
1801
- measurements: {
1802
- name: string;
1803
- id: string;
1804
- abbrev: string;
1805
- conversion: {
1806
- amount: number;
1807
- precision: number;
1808
- };
1809
- }[];
1810
- };
1811
- code: string;
1812
- _id: string;
1813
- name: string;
1814
- };
1815
- amounts: {
1816
- measurement: {
1817
- name: string;
1818
- id: string;
1819
- abbrev: string;
1820
- conversion: {
1821
- amount: number;
1822
- precision: number;
1823
- };
1824
- baseUnitId: string;
1825
- };
1826
- amount: {
1827
- amount: number;
1828
- precision: number;
1829
- };
1830
- outputSkuId: string;
1831
- }[];
1832
- }[];
1833
- claimedAt: string;
1834
- claimedBy: {
1835
- name: string;
1836
- id: string;
1837
- };
1838
- } | null | undefined;
1839
- issuances: {
1840
- remark?: string | null | undefined;
1841
- adjustmentId: string;
1842
- items: {
1843
- measurement: {
1844
- name: string;
1845
- id: string;
1846
- abbrev: string;
1847
- conversion: {
1848
- amount: number;
1849
- precision: number;
1850
- };
1851
- baseUnitId: string;
1852
- };
1853
- sku: {
1854
- trackingMeasurement?: string | null | undefined;
1855
- isInactive?: boolean | null | undefined;
1856
- convert?: {
1857
- measurement?: string | null | undefined;
1858
- inventoryBindings?: {
1859
- measurement?: {
1860
- name: string;
1861
- id: string;
1862
- abbrev: string;
1863
- conversion: {
1864
- amount: number;
1865
- precision: number;
1866
- };
1867
- } | null | undefined;
1868
- rules?: Record<string, any> | null | undefined;
1869
- alternatives?: {
1870
- default?: boolean | null | undefined;
1871
- trackingMeasurement?: string | null | undefined;
1872
- priority?: number | null | undefined;
1873
- _id: string;
1874
- }[] | null | undefined;
1875
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1876
- amount: {
1877
- amount: number;
1878
- precision: number;
1879
- };
1880
- id: string;
1881
- }[] | null | undefined;
1882
- } | null | undefined;
1883
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1884
- defaultCost?: {
1885
- measurement?: {
1886
- name: string;
1887
- id: string;
1888
- abbrev: string;
1889
- conversion: {
1890
- amount: number;
1891
- precision: number;
1892
- };
1893
- } | null | undefined;
1894
- costPerUnit: {
1895
- 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";
1896
- amount: number;
1897
- precision: number;
1898
- };
1899
- } | null | undefined;
1900
- operationalGroup?: string | null | undefined;
1901
- thresholds?: {
1902
- low: number;
1903
- mid: number;
1904
- } | null | undefined;
1905
- customAttributes?: Record<string, any> | null | undefined;
1906
- unit: {
1907
- _id: string;
1908
- name: string;
1909
- abbrev: string;
1910
- precision: number;
1911
- measurements: {
1912
- name: string;
1913
- id: string;
1914
- abbrev: string;
1915
- conversion: {
1916
- amount: number;
1917
- precision: number;
1918
- };
1919
- }[];
1920
- };
1921
- code: string;
1922
- _id: string;
1923
- name: string;
1924
- };
1925
- committedAmount: {
1926
- amount: number;
1927
- precision: number;
1928
- };
1929
- }[];
1930
- skippedSkuIds: string[];
1931
- issuedAt: string;
1932
- issuedBy: {
1933
- name: string;
1934
- id: string;
1935
- };
1936
- acknowledgedShortages: {
1937
- skuId: string;
1938
- baseUnit: {
1939
- name: string;
1940
- id: string;
1941
- abbrev: string;
1942
- conversion: {
1943
- amount: number;
1944
- precision: number;
1945
- };
1946
- baseUnitId: string;
1947
- };
1948
- projectedBalance: {
1949
- amount: number;
1950
- precision: number;
1951
- };
1952
- }[];
1953
- movement: {
1954
- amounts: {
1955
- measurement: {
1956
- name: string;
1957
- id: string;
1958
- abbrev: string;
1959
- conversion: {
1960
- amount: number;
1961
- precision: number;
1962
- };
1963
- baseUnitId: string;
1964
- };
1965
- amount: {
1966
- amount: number;
1967
- precision: number;
1968
- };
1969
- outputSkuId: string;
1970
- }[];
1971
- ingredient: {
1972
- code: string;
1973
- skuId: string;
1974
- name: string;
1975
- baseUnit: {
1976
- name: string;
1977
- id: string;
1978
- abbrev: string;
1979
- conversion: {
1980
- amount: number;
1981
- precision: number;
1982
- };
1983
- baseUnitId: string;
1984
- };
1985
- basePrecision: number;
1986
- };
1987
- }[];
1988
- }[];
1989
- };
1990
- batches: {
1991
- adjustmentId: string;
1992
- id: string;
1993
- remark: string | null;
1994
- items: {
1995
- measurement: {
1996
- name: string;
1997
- id: string;
1998
- abbrev: string;
1999
- conversion: {
2000
- amount: number;
2001
- precision: number;
2002
- };
2003
- baseUnitId: string;
2004
- };
2005
- skuId: string;
2006
- producedAmount: {
2007
- amount: number;
2008
- precision: number;
2009
- };
2010
- }[];
2011
- operationKey: string;
2012
- stockApplicationStatus: "PENDING" | "APPLIED";
2013
- producedAt: string;
2014
- recordedAt: string;
2015
- recordedBy: {
2016
- name: string;
2017
- id: string;
2018
- };
2019
- wastages: {
2020
- measurement: {
2021
- name: string;
2022
- id: string;
2023
- abbrev: string;
2024
- conversion: {
2025
- amount: number;
2026
- precision: number;
2027
- };
2028
- baseUnitId: string;
2029
- };
2030
- skuId: string;
2031
- amount: {
2032
- amount: number;
2033
- precision: number;
2034
- };
2035
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
2036
- remark: string | null;
2037
- itemSkuId: string;
2038
- }[];
2039
- }[];
2040
- }>) => any) | undefined;
2041
- onClosed?: ((run: WithRev<{
2042
- _rev?: string | null | undefined;
2043
- closedAt?: string | null | undefined;
2044
- cancelledAt?: string | null | undefined;
2045
- cancelReason?: string | null | undefined;
2046
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
2047
- _id: string;
2048
- createdAt: string;
2049
- createdBy: {
2050
- name: string;
2051
- id: string;
2052
- };
2053
- activityLogs: {
2054
- remark?: string | null | undefined;
2055
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
2056
- performedAt: string;
2057
- performedBy: {
2058
- name: string;
2059
- id: string;
2060
- };
2061
- }[];
2062
- runNo: number;
2063
- runName: string | null;
2064
- instructions: string | null;
2065
- plan: {
2066
- items: {
2067
- measurement: {
2068
- name: string;
2069
- id: string;
2070
- abbrev: string;
2071
- conversion: {
2072
- amount: number;
2073
- precision: number;
2074
- };
2075
- baseUnitId: string;
2076
- };
2077
- skuId: string;
2078
- requestedAmount: {
2079
- amount: number;
2080
- precision: number;
2081
- };
2082
- }[];
2083
- requirements: {
2084
- ingredients: {
2085
- amounts: {
2086
- measurement: {
2087
- name: string;
2088
- id: string;
2089
- abbrev: string;
2090
- conversion: {
2091
- amount: number;
2092
- precision: number;
2093
- };
2094
- baseUnitId: string;
2095
- };
2096
- amount: {
2097
- amount: number;
2098
- precision: number;
2099
- };
2100
- outputSkuId: string;
2101
- rateBasis: {
2102
- outputMeasurement: {
2103
- name: string;
2104
- id: string;
2105
- abbrev: string;
2106
- conversion: {
2107
- amount: number;
2108
- precision: number;
2109
- };
2110
- baseUnitId: string;
2111
- };
2112
- };
2113
- }[];
2114
- ingredient: {
2115
- code: string;
2116
- skuId: string;
2117
- name: string;
2118
- baseUnit: {
2119
- name: string;
2120
- id: string;
2121
- abbrev: string;
2122
- conversion: {
2123
- amount: number;
2124
- precision: number;
2125
- };
2126
- baseUnitId: string;
2127
- };
2128
- basePrecision: number;
2129
- };
2130
- }[];
2131
- skippedSkuIds: string[];
2132
- } | null;
2133
- };
2134
- preparation: {
2135
- pendingIssuance?: {
2136
- remark?: string | null | undefined;
2137
- adjustmentId: string;
2138
- items: {
2139
- measurement: {
2140
- name: string;
2141
- id: string;
2142
- abbrev: string;
2143
- conversion: {
2144
- amount: number;
2145
- precision: number;
2146
- };
2147
- baseUnitId: string;
2148
- };
2149
- sku: {
2150
- trackingMeasurement?: string | null | undefined;
2151
- isInactive?: boolean | null | undefined;
2152
- convert?: {
2153
- measurement?: string | null | undefined;
2154
- inventoryBindings?: {
2155
- measurement?: {
2156
- name: string;
2157
- id: string;
2158
- abbrev: string;
2159
- conversion: {
2160
- amount: number;
2161
- precision: number;
2162
- };
2163
- } | null | undefined;
2164
- rules?: Record<string, any> | null | undefined;
2165
- alternatives?: {
2166
- default?: boolean | null | undefined;
2167
- trackingMeasurement?: string | null | undefined;
2168
- priority?: number | null | undefined;
2169
- _id: string;
2170
- }[] | null | undefined;
2171
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2172
- amount: {
2173
- amount: number;
2174
- precision: number;
2175
- };
2176
- id: string;
2177
- }[] | null | undefined;
2178
- } | null | undefined;
2179
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2180
- defaultCost?: {
2181
- measurement?: {
2182
- name: string;
2183
- id: string;
2184
- abbrev: string;
2185
- conversion: {
2186
- amount: number;
2187
- precision: number;
2188
- };
2189
- } | null | undefined;
2190
- costPerUnit: {
2191
- 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";
2192
- amount: number;
2193
- precision: number;
2194
- };
2195
- } | null | undefined;
2196
- operationalGroup?: string | null | undefined;
2197
- thresholds?: {
2198
- low: number;
2199
- mid: number;
2200
- } | null | undefined;
2201
- customAttributes?: Record<string, any> | null | undefined;
2202
- unit: {
2203
- _id: string;
2204
- name: string;
2205
- abbrev: string;
2206
- precision: number;
2207
- measurements: {
2208
- name: string;
2209
- id: string;
2210
- abbrev: string;
2211
- conversion: {
2212
- amount: number;
2213
- precision: number;
2214
- };
2215
- }[];
2216
- };
2217
- code: string;
2218
- _id: string;
2219
- name: string;
2220
- };
2221
- committedAmount: {
2222
- amount: number;
2223
- precision: number;
2224
- };
2225
- }[];
2226
- skippedSkuIds: string[];
2227
- acknowledgedShortages: {
2228
- skuId: string;
2229
- baseUnit: {
2230
- name: string;
2231
- id: string;
2232
- abbrev: string;
2233
- conversion: {
2234
- amount: number;
2235
- precision: number;
2236
- };
2237
- baseUnitId: string;
2238
- };
2239
- projectedBalance: {
2240
- amount: number;
2241
- precision: number;
2242
- };
2243
- }[];
2244
- movement: {
2245
- sku: {
2246
- trackingMeasurement?: string | null | undefined;
2247
- isInactive?: boolean | null | undefined;
2248
- convert?: {
2249
- measurement?: string | null | undefined;
2250
- inventoryBindings?: {
2251
- measurement?: {
2252
- name: string;
2253
- id: string;
2254
- abbrev: string;
2255
- conversion: {
2256
- amount: number;
2257
- precision: number;
2258
- };
2259
- } | null | undefined;
2260
- rules?: Record<string, any> | null | undefined;
2261
- alternatives?: {
2262
- default?: boolean | null | undefined;
2263
- trackingMeasurement?: string | null | undefined;
2264
- priority?: number | null | undefined;
2265
- _id: string;
2266
- }[] | null | undefined;
2267
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2268
- amount: {
2269
- amount: number;
2270
- precision: number;
2271
- };
2272
- id: string;
2273
- }[] | null | undefined;
2274
- } | null | undefined;
2275
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2276
- defaultCost?: {
2277
- measurement?: {
2278
- name: string;
2279
- id: string;
2280
- abbrev: string;
2281
- conversion: {
2282
- amount: number;
2283
- precision: number;
2284
- };
2285
- } | null | undefined;
2286
- costPerUnit: {
2287
- 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";
2288
- amount: number;
2289
- precision: number;
2290
- };
2291
- } | null | undefined;
2292
- operationalGroup?: string | null | undefined;
2293
- thresholds?: {
2294
- low: number;
2295
- mid: number;
2296
- } | null | undefined;
2297
- customAttributes?: Record<string, any> | null | undefined;
2298
- unit: {
2299
- _id: string;
2300
- name: string;
2301
- abbrev: string;
2302
- precision: number;
2303
- measurements: {
2304
- name: string;
2305
- id: string;
2306
- abbrev: string;
2307
- conversion: {
2308
- amount: number;
2309
- precision: number;
2310
- };
2311
- }[];
2312
- };
2313
- code: string;
2314
- _id: string;
2315
- name: string;
2316
- };
2317
- amounts: {
2318
- measurement: {
2319
- name: string;
2320
- id: string;
2321
- abbrev: string;
2322
- conversion: {
2323
- amount: number;
2324
- precision: number;
2325
- };
2326
- baseUnitId: string;
2327
- };
2328
- amount: {
2329
- amount: number;
2330
- precision: number;
2331
- };
2332
- outputSkuId: string;
2333
- }[];
2334
- }[];
2335
- claimedAt: string;
2336
- claimedBy: {
2337
- name: string;
2338
- id: string;
2339
- };
2340
- } | null | undefined;
2341
- issuances: {
2342
- remark?: string | null | undefined;
2343
- adjustmentId: string;
2344
- items: {
2345
- measurement: {
2346
- name: string;
2347
- id: string;
2348
- abbrev: string;
2349
- conversion: {
2350
- amount: number;
2351
- precision: number;
2352
- };
2353
- baseUnitId: string;
2354
- };
2355
- sku: {
2356
- trackingMeasurement?: string | null | undefined;
2357
- isInactive?: boolean | null | undefined;
2358
- convert?: {
2359
- measurement?: string | null | undefined;
2360
- inventoryBindings?: {
2361
- measurement?: {
2362
- name: string;
2363
- id: string;
2364
- abbrev: string;
2365
- conversion: {
2366
- amount: number;
2367
- precision: number;
2368
- };
2369
- } | null | undefined;
2370
- rules?: Record<string, any> | null | undefined;
2371
- alternatives?: {
2372
- default?: boolean | null | undefined;
2373
- trackingMeasurement?: string | null | undefined;
2374
- priority?: number | null | undefined;
2375
- _id: string;
2376
- }[] | null | undefined;
2377
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2378
- amount: {
2379
- amount: number;
2380
- precision: number;
2381
- };
2382
- id: string;
2383
- }[] | null | undefined;
2384
- } | null | undefined;
2385
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2386
- defaultCost?: {
2387
- measurement?: {
2388
- name: string;
2389
- id: string;
2390
- abbrev: string;
2391
- conversion: {
2392
- amount: number;
2393
- precision: number;
2394
- };
2395
- } | null | undefined;
2396
- costPerUnit: {
2397
- 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";
2398
- amount: number;
2399
- precision: number;
2400
- };
2401
- } | null | undefined;
2402
- operationalGroup?: string | null | undefined;
2403
- thresholds?: {
2404
- low: number;
2405
- mid: number;
2406
- } | null | undefined;
2407
- customAttributes?: Record<string, any> | null | undefined;
2408
- unit: {
2409
- _id: string;
2410
- name: string;
2411
- abbrev: string;
2412
- precision: number;
2413
- measurements: {
2414
- name: string;
2415
- id: string;
2416
- abbrev: string;
2417
- conversion: {
2418
- amount: number;
2419
- precision: number;
2420
- };
2421
- }[];
2422
- };
2423
- code: string;
2424
- _id: string;
2425
- name: string;
2426
- };
2427
- committedAmount: {
2428
- amount: number;
2429
- precision: number;
2430
- };
2431
- }[];
2432
- skippedSkuIds: string[];
2433
- issuedAt: string;
2434
- issuedBy: {
2435
- name: string;
2436
- id: string;
2437
- };
2438
- acknowledgedShortages: {
2439
- skuId: string;
2440
- baseUnit: {
2441
- name: string;
2442
- id: string;
2443
- abbrev: string;
2444
- conversion: {
2445
- amount: number;
2446
- precision: number;
2447
- };
2448
- baseUnitId: string;
2449
- };
2450
- projectedBalance: {
2451
- amount: number;
2452
- precision: number;
2453
- };
2454
- }[];
2455
- movement: {
2456
- amounts: {
2457
- measurement: {
2458
- name: string;
2459
- id: string;
2460
- abbrev: string;
2461
- conversion: {
2462
- amount: number;
2463
- precision: number;
2464
- };
2465
- baseUnitId: string;
2466
- };
2467
- amount: {
2468
- amount: number;
2469
- precision: number;
2470
- };
2471
- outputSkuId: string;
2472
- }[];
2473
- ingredient: {
2474
- code: string;
2475
- skuId: string;
2476
- name: string;
2477
- baseUnit: {
2478
- name: string;
2479
- id: string;
2480
- abbrev: string;
2481
- conversion: {
2482
- amount: number;
2483
- precision: number;
2484
- };
2485
- baseUnitId: string;
2486
- };
2487
- basePrecision: number;
2488
- };
2489
- }[];
2490
- }[];
2491
- };
2492
- batches: {
2493
- adjustmentId: string;
2494
- id: string;
2495
- remark: string | null;
2496
- items: {
2497
- measurement: {
2498
- name: string;
2499
- id: string;
2500
- abbrev: string;
2501
- conversion: {
2502
- amount: number;
2503
- precision: number;
2504
- };
2505
- baseUnitId: string;
2506
- };
2507
- skuId: string;
2508
- producedAmount: {
2509
- amount: number;
2510
- precision: number;
2511
- };
2512
- }[];
2513
- operationKey: string;
2514
- stockApplicationStatus: "PENDING" | "APPLIED";
2515
- producedAt: string;
2516
- recordedAt: string;
2517
- recordedBy: {
2518
- name: string;
2519
- id: string;
2520
- };
2521
- wastages: {
2522
- measurement: {
2523
- name: string;
2524
- id: string;
2525
- abbrev: string;
2526
- conversion: {
2527
- amount: number;
2528
- precision: number;
2529
- };
2530
- baseUnitId: string;
2531
- };
2532
- skuId: string;
2533
- amount: {
2534
- amount: number;
2535
- precision: number;
2536
- };
2537
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
2538
- remark: string | null;
2539
- itemSkuId: string;
2540
- }[];
2541
- }[];
2542
- }>) => any) | undefined;
2543
- onReload?: (() => any) | undefined;
2544
- "onLoad-more-duplicate-sources"?: (() => any) | undefined;
2545
- "onUpdate:action"?: ((value: ProductionRunLifecycleAction | null) => any) | undefined;
2546
- onEdited?: ((run: WithRev<{
2547
- _rev?: string | null | undefined;
2548
- closedAt?: string | null | undefined;
2549
- cancelledAt?: string | null | undefined;
2550
- cancelReason?: string | null | undefined;
2551
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
2552
- _id: string;
2553
- createdAt: string;
2554
- createdBy: {
2555
- name: string;
2556
- id: string;
2557
- };
2558
- activityLogs: {
2559
- remark?: string | null | undefined;
2560
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
2561
- performedAt: string;
2562
- performedBy: {
2563
- name: string;
2564
- id: string;
2565
- };
2566
- }[];
2567
- runNo: number;
2568
- runName: string | null;
2569
- instructions: string | null;
2570
- plan: {
2571
- items: {
2572
- measurement: {
2573
- name: string;
2574
- id: string;
2575
- abbrev: string;
2576
- conversion: {
2577
- amount: number;
2578
- precision: number;
2579
- };
2580
- baseUnitId: string;
2581
- };
2582
- skuId: string;
2583
- requestedAmount: {
2584
- amount: number;
2585
- precision: number;
2586
- };
2587
- }[];
2588
- requirements: {
2589
- ingredients: {
2590
- amounts: {
2591
- measurement: {
2592
- name: string;
2593
- id: string;
2594
- abbrev: string;
2595
- conversion: {
2596
- amount: number;
2597
- precision: number;
2598
- };
2599
- baseUnitId: string;
2600
- };
2601
- amount: {
2602
- amount: number;
2603
- precision: number;
2604
- };
2605
- outputSkuId: string;
2606
- rateBasis: {
2607
- outputMeasurement: {
2608
- name: string;
2609
- id: string;
2610
- abbrev: string;
2611
- conversion: {
2612
- amount: number;
2613
- precision: number;
2614
- };
2615
- baseUnitId: string;
2616
- };
2617
- };
2618
- }[];
2619
- ingredient: {
2620
- code: string;
2621
- skuId: string;
2622
- name: string;
2623
- baseUnit: {
2624
- name: string;
2625
- id: string;
2626
- abbrev: string;
2627
- conversion: {
2628
- amount: number;
2629
- precision: number;
2630
- };
2631
- baseUnitId: string;
2632
- };
2633
- basePrecision: number;
2634
- };
2635
- }[];
2636
- skippedSkuIds: string[];
2637
- } | null;
2638
- };
2639
- preparation: {
2640
- pendingIssuance?: {
2641
- remark?: string | null | undefined;
2642
- adjustmentId: string;
2643
- items: {
2644
- measurement: {
2645
- name: string;
2646
- id: string;
2647
- abbrev: string;
2648
- conversion: {
2649
- amount: number;
2650
- precision: number;
2651
- };
2652
- baseUnitId: string;
2653
- };
2654
- sku: {
2655
- trackingMeasurement?: string | null | undefined;
2656
- isInactive?: boolean | null | undefined;
2657
- convert?: {
2658
- measurement?: string | null | undefined;
2659
- inventoryBindings?: {
2660
- measurement?: {
2661
- name: string;
2662
- id: string;
2663
- abbrev: string;
2664
- conversion: {
2665
- amount: number;
2666
- precision: number;
2667
- };
2668
- } | null | undefined;
2669
- rules?: Record<string, any> | null | undefined;
2670
- alternatives?: {
2671
- default?: boolean | null | undefined;
2672
- trackingMeasurement?: string | null | undefined;
2673
- priority?: number | null | undefined;
2674
- _id: string;
2675
- }[] | null | undefined;
2676
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2677
- amount: {
2678
- amount: number;
2679
- precision: number;
2680
- };
2681
- id: string;
2682
- }[] | null | undefined;
2683
- } | null | undefined;
2684
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2685
- defaultCost?: {
2686
- measurement?: {
2687
- name: string;
2688
- id: string;
2689
- abbrev: string;
2690
- conversion: {
2691
- amount: number;
2692
- precision: number;
2693
- };
2694
- } | null | undefined;
2695
- costPerUnit: {
2696
- 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";
2697
- amount: number;
2698
- precision: number;
2699
- };
2700
- } | null | undefined;
2701
- operationalGroup?: string | null | undefined;
2702
- thresholds?: {
2703
- low: number;
2704
- mid: number;
2705
- } | null | undefined;
2706
- customAttributes?: Record<string, any> | null | undefined;
2707
- unit: {
2708
- _id: string;
2709
- name: string;
2710
- abbrev: string;
2711
- precision: number;
2712
- measurements: {
2713
- name: string;
2714
- id: string;
2715
- abbrev: string;
2716
- conversion: {
2717
- amount: number;
2718
- precision: number;
2719
- };
2720
- }[];
2721
- };
2722
- code: string;
2723
- _id: string;
2724
- name: string;
2725
- };
2726
- committedAmount: {
2727
- amount: number;
2728
- precision: number;
2729
- };
2730
- }[];
2731
- skippedSkuIds: string[];
2732
- acknowledgedShortages: {
2733
- skuId: string;
2734
- baseUnit: {
2735
- name: string;
2736
- id: string;
2737
- abbrev: string;
2738
- conversion: {
2739
- amount: number;
2740
- precision: number;
2741
- };
2742
- baseUnitId: string;
2743
- };
2744
- projectedBalance: {
2745
- amount: number;
2746
- precision: number;
2747
- };
2748
- }[];
2749
- movement: {
2750
- sku: {
2751
- trackingMeasurement?: string | null | undefined;
2752
- isInactive?: boolean | null | undefined;
2753
- convert?: {
2754
- measurement?: string | null | undefined;
2755
- inventoryBindings?: {
2756
- measurement?: {
2757
- name: string;
2758
- id: string;
2759
- abbrev: string;
2760
- conversion: {
2761
- amount: number;
2762
- precision: number;
2763
- };
2764
- } | null | undefined;
2765
- rules?: Record<string, any> | null | undefined;
2766
- alternatives?: {
2767
- default?: boolean | null | undefined;
2768
- trackingMeasurement?: string | null | undefined;
2769
- priority?: number | null | undefined;
2770
- _id: string;
2771
- }[] | null | undefined;
2772
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2773
- amount: {
2774
- amount: number;
2775
- precision: number;
2776
- };
2777
- id: string;
2778
- }[] | null | undefined;
2779
- } | null | undefined;
2780
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2781
- defaultCost?: {
2782
- measurement?: {
2783
- name: string;
2784
- id: string;
2785
- abbrev: string;
2786
- conversion: {
2787
- amount: number;
2788
- precision: number;
2789
- };
2790
- } | null | undefined;
2791
- costPerUnit: {
2792
- 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";
2793
- amount: number;
2794
- precision: number;
2795
- };
2796
- } | null | undefined;
2797
- operationalGroup?: string | null | undefined;
2798
- thresholds?: {
2799
- low: number;
2800
- mid: number;
2801
- } | null | undefined;
2802
- customAttributes?: Record<string, any> | null | undefined;
2803
- unit: {
2804
- _id: string;
2805
- name: string;
2806
- abbrev: string;
2807
- precision: number;
2808
- measurements: {
2809
- name: string;
2810
- id: string;
2811
- abbrev: string;
2812
- conversion: {
2813
- amount: number;
2814
- precision: number;
2815
- };
2816
- }[];
2817
- };
2818
- code: string;
2819
- _id: string;
2820
- name: string;
2821
- };
2822
- amounts: {
2823
- measurement: {
2824
- name: string;
2825
- id: string;
2826
- abbrev: string;
2827
- conversion: {
2828
- amount: number;
2829
- precision: number;
2830
- };
2831
- baseUnitId: string;
2832
- };
2833
- amount: {
2834
- amount: number;
2835
- precision: number;
2836
- };
2837
- outputSkuId: string;
2838
- }[];
2839
- }[];
2840
- claimedAt: string;
2841
- claimedBy: {
2842
- name: string;
2843
- id: string;
2844
- };
2845
- } | null | undefined;
2846
- issuances: {
2847
- remark?: string | null | undefined;
2848
- adjustmentId: string;
2849
- items: {
2850
- measurement: {
2851
- name: string;
2852
- id: string;
2853
- abbrev: string;
2854
- conversion: {
2855
- amount: number;
2856
- precision: number;
2857
- };
2858
- baseUnitId: string;
2859
- };
2860
- sku: {
2861
- trackingMeasurement?: string | null | undefined;
2862
- isInactive?: boolean | null | undefined;
2863
- convert?: {
2864
- measurement?: string | null | undefined;
2865
- inventoryBindings?: {
2866
- measurement?: {
2867
- name: string;
2868
- id: string;
2869
- abbrev: string;
2870
- conversion: {
2871
- amount: number;
2872
- precision: number;
2873
- };
2874
- } | null | undefined;
2875
- rules?: Record<string, any> | null | undefined;
2876
- alternatives?: {
2877
- default?: boolean | null | undefined;
2878
- trackingMeasurement?: string | null | undefined;
2879
- priority?: number | null | undefined;
2880
- _id: string;
2881
- }[] | null | undefined;
2882
- type: "RECIPE" | "SKU" | "SKU_GROUP";
2883
- amount: {
2884
- amount: number;
2885
- precision: number;
2886
- };
2887
- id: string;
2888
- }[] | null | undefined;
2889
- } | null | undefined;
2890
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
2891
- defaultCost?: {
2892
- measurement?: {
2893
- name: string;
2894
- id: string;
2895
- abbrev: string;
2896
- conversion: {
2897
- amount: number;
2898
- precision: number;
2899
- };
2900
- } | null | undefined;
2901
- costPerUnit: {
2902
- 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";
2903
- amount: number;
2904
- precision: number;
2905
- };
2906
- } | null | undefined;
2907
- operationalGroup?: string | null | undefined;
2908
- thresholds?: {
2909
- low: number;
2910
- mid: number;
2911
- } | null | undefined;
2912
- customAttributes?: Record<string, any> | null | undefined;
2913
- unit: {
2914
- _id: string;
2915
- name: string;
2916
- abbrev: string;
2917
- precision: number;
2918
- measurements: {
2919
- name: string;
2920
- id: string;
2921
- abbrev: string;
2922
- conversion: {
2923
- amount: number;
2924
- precision: number;
2925
- };
2926
- }[];
2927
- };
2928
- code: string;
2929
- _id: string;
2930
- name: string;
2931
- };
2932
- committedAmount: {
2933
- amount: number;
2934
- precision: number;
2935
- };
2936
- }[];
2937
- skippedSkuIds: string[];
2938
- issuedAt: string;
2939
- issuedBy: {
2940
- name: string;
2941
- id: string;
2942
- };
2943
- acknowledgedShortages: {
2944
- skuId: string;
2945
- baseUnit: {
2946
- name: string;
2947
- id: string;
2948
- abbrev: string;
2949
- conversion: {
2950
- amount: number;
2951
- precision: number;
2952
- };
2953
- baseUnitId: string;
2954
- };
2955
- projectedBalance: {
2956
- amount: number;
2957
- precision: number;
2958
- };
2959
- }[];
2960
- movement: {
2961
- amounts: {
2962
- measurement: {
2963
- name: string;
2964
- id: string;
2965
- abbrev: string;
2966
- conversion: {
2967
- amount: number;
2968
- precision: number;
2969
- };
2970
- baseUnitId: string;
2971
- };
2972
- amount: {
2973
- amount: number;
2974
- precision: number;
2975
- };
2976
- outputSkuId: string;
2977
- }[];
2978
- ingredient: {
2979
- code: string;
2980
- skuId: string;
2981
- name: string;
2982
- baseUnit: {
2983
- name: string;
2984
- id: string;
2985
- abbrev: string;
2986
- conversion: {
2987
- amount: number;
2988
- precision: number;
2989
- };
2990
- baseUnitId: string;
2991
- };
2992
- basePrecision: number;
2993
- };
2994
- }[];
2995
- }[];
2996
- };
2997
- batches: {
2998
- adjustmentId: string;
2999
- id: string;
3000
- remark: string | null;
3001
- items: {
3002
- measurement: {
3003
- name: string;
3004
- id: string;
3005
- abbrev: string;
3006
- conversion: {
3007
- amount: number;
3008
- precision: number;
3009
- };
3010
- baseUnitId: string;
3011
- };
3012
- skuId: string;
3013
- producedAmount: {
3014
- amount: number;
3015
- precision: number;
3016
- };
3017
- }[];
3018
- operationKey: string;
3019
- stockApplicationStatus: "PENDING" | "APPLIED";
3020
- producedAt: string;
3021
- recordedAt: string;
3022
- recordedBy: {
3023
- name: string;
3024
- id: string;
3025
- };
3026
- wastages: {
3027
- measurement: {
3028
- name: string;
3029
- id: string;
3030
- abbrev: string;
3031
- conversion: {
3032
- amount: number;
3033
- precision: number;
3034
- };
3035
- baseUnitId: string;
3036
- };
3037
- skuId: string;
3038
- amount: {
3039
- amount: number;
3040
- precision: number;
3041
- };
3042
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
3043
- remark: string | null;
3044
- itemSkuId: string;
3045
- }[];
3046
- }[];
3047
- }>) => any) | undefined;
3048
- onRecorded?: ((result: import("@/api/production-run").ProductionRunDocument) => any) | undefined;
3049
- }>, {
3050
- ingredients: RecordOutputIngredientOption[];
3051
- duplicateSources: WithRev<{
3052
- _rev?: string | null | undefined;
3053
- closedAt?: string | null | undefined;
3054
- cancelledAt?: string | null | undefined;
3055
- cancelReason?: string | null | undefined;
3056
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
3057
- _id: string;
3058
- createdAt: string;
3059
- createdBy: {
3060
- name: string;
3061
- id: string;
3062
- };
3063
- activityLogs: {
3064
- remark?: string | null | undefined;
3065
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
3066
- performedAt: string;
3067
- performedBy: {
3068
- name: string;
3069
- id: string;
3070
- };
3071
- }[];
3072
- runNo: number;
3073
- runName: string | null;
3074
- instructions: string | null;
3075
- plan: {
3076
- items: {
3077
- measurement: {
3078
- name: string;
3079
- id: string;
3080
- abbrev: string;
3081
- conversion: {
3082
- amount: number;
3083
- precision: number;
3084
- };
3085
- baseUnitId: string;
3086
- };
3087
- skuId: string;
3088
- requestedAmount: {
3089
- amount: number;
3090
- precision: number;
3091
- };
3092
- }[];
3093
- requirements: {
3094
- ingredients: {
3095
- amounts: {
3096
- measurement: {
3097
- name: string;
3098
- id: string;
3099
- abbrev: string;
3100
- conversion: {
3101
- amount: number;
3102
- precision: number;
3103
- };
3104
- baseUnitId: string;
3105
- };
3106
- amount: {
3107
- amount: number;
3108
- precision: number;
3109
- };
3110
- outputSkuId: string;
3111
- rateBasis: {
3112
- outputMeasurement: {
3113
- name: string;
3114
- id: string;
3115
- abbrev: string;
3116
- conversion: {
3117
- amount: number;
3118
- precision: number;
3119
- };
3120
- baseUnitId: string;
3121
- };
3122
- };
3123
- }[];
3124
- ingredient: {
3125
- code: string;
3126
- skuId: string;
3127
- name: string;
3128
- baseUnit: {
3129
- name: string;
3130
- id: string;
3131
- abbrev: string;
3132
- conversion: {
3133
- amount: number;
3134
- precision: number;
3135
- };
3136
- baseUnitId: string;
3137
- };
3138
- basePrecision: number;
3139
- };
3140
- }[];
3141
- skippedSkuIds: string[];
3142
- } | null;
3143
- };
3144
- preparation: {
3145
- pendingIssuance?: {
3146
- remark?: string | null | undefined;
3147
- adjustmentId: string;
3148
- items: {
3149
- measurement: {
3150
- name: string;
3151
- id: string;
3152
- abbrev: string;
3153
- conversion: {
3154
- amount: number;
3155
- precision: number;
3156
- };
3157
- baseUnitId: string;
3158
- };
3159
- sku: {
3160
- trackingMeasurement?: string | null | undefined;
3161
- isInactive?: boolean | null | undefined;
3162
- convert?: {
3163
- measurement?: string | null | undefined;
3164
- inventoryBindings?: {
3165
- measurement?: {
3166
- name: string;
3167
- id: string;
3168
- abbrev: string;
3169
- conversion: {
3170
- amount: number;
3171
- precision: number;
3172
- };
3173
- } | null | undefined;
3174
- rules?: Record<string, any> | null | undefined;
3175
- alternatives?: {
3176
- default?: boolean | null | undefined;
3177
- trackingMeasurement?: string | null | undefined;
3178
- priority?: number | null | undefined;
3179
- _id: string;
3180
- }[] | null | undefined;
3181
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3182
- amount: {
3183
- amount: number;
3184
- precision: number;
3185
- };
3186
- id: string;
3187
- }[] | null | undefined;
3188
- } | null | undefined;
3189
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3190
- defaultCost?: {
3191
- measurement?: {
3192
- name: string;
3193
- id: string;
3194
- abbrev: string;
3195
- conversion: {
3196
- amount: number;
3197
- precision: number;
3198
- };
3199
- } | null | undefined;
3200
- costPerUnit: {
3201
- 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";
3202
- amount: number;
3203
- precision: number;
3204
- };
3205
- } | null | undefined;
3206
- operationalGroup?: string | null | undefined;
3207
- thresholds?: {
3208
- low: number;
3209
- mid: number;
3210
- } | null | undefined;
3211
- customAttributes?: Record<string, any> | null | undefined;
3212
- unit: {
3213
- _id: string;
3214
- name: string;
3215
- abbrev: string;
3216
- precision: number;
3217
- measurements: {
3218
- name: string;
3219
- id: string;
3220
- abbrev: string;
3221
- conversion: {
3222
- amount: number;
3223
- precision: number;
3224
- };
3225
- }[];
3226
- };
3227
- code: string;
3228
- _id: string;
3229
- name: string;
3230
- };
3231
- committedAmount: {
3232
- amount: number;
3233
- precision: number;
3234
- };
3235
- }[];
3236
- skippedSkuIds: string[];
3237
- acknowledgedShortages: {
3238
- skuId: string;
3239
- baseUnit: {
3240
- name: string;
3241
- id: string;
3242
- abbrev: string;
3243
- conversion: {
3244
- amount: number;
3245
- precision: number;
3246
- };
3247
- baseUnitId: string;
3248
- };
3249
- projectedBalance: {
3250
- amount: number;
3251
- precision: number;
3252
- };
3253
- }[];
3254
- movement: {
3255
- sku: {
3256
- trackingMeasurement?: string | null | undefined;
3257
- isInactive?: boolean | null | undefined;
3258
- convert?: {
3259
- measurement?: string | null | undefined;
3260
- inventoryBindings?: {
3261
- measurement?: {
3262
- name: string;
3263
- id: string;
3264
- abbrev: string;
3265
- conversion: {
3266
- amount: number;
3267
- precision: number;
3268
- };
3269
- } | null | undefined;
3270
- rules?: Record<string, any> | null | undefined;
3271
- alternatives?: {
3272
- default?: boolean | null | undefined;
3273
- trackingMeasurement?: string | null | undefined;
3274
- priority?: number | null | undefined;
3275
- _id: string;
3276
- }[] | null | undefined;
3277
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3278
- amount: {
3279
- amount: number;
3280
- precision: number;
3281
- };
3282
- id: string;
3283
- }[] | null | undefined;
3284
- } | null | undefined;
3285
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3286
- defaultCost?: {
3287
- measurement?: {
3288
- name: string;
3289
- id: string;
3290
- abbrev: string;
3291
- conversion: {
3292
- amount: number;
3293
- precision: number;
3294
- };
3295
- } | null | undefined;
3296
- costPerUnit: {
3297
- 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";
3298
- amount: number;
3299
- precision: number;
3300
- };
3301
- } | null | undefined;
3302
- operationalGroup?: string | null | undefined;
3303
- thresholds?: {
3304
- low: number;
3305
- mid: number;
3306
- } | null | undefined;
3307
- customAttributes?: Record<string, any> | null | undefined;
3308
- unit: {
3309
- _id: string;
3310
- name: string;
3311
- abbrev: string;
3312
- precision: number;
3313
- measurements: {
3314
- name: string;
3315
- id: string;
3316
- abbrev: string;
3317
- conversion: {
3318
- amount: number;
3319
- precision: number;
3320
- };
3321
- }[];
3322
- };
3323
- code: string;
3324
- _id: string;
3325
- name: string;
3326
- };
3327
- amounts: {
3328
- measurement: {
3329
- name: string;
3330
- id: string;
3331
- abbrev: string;
3332
- conversion: {
3333
- amount: number;
3334
- precision: number;
3335
- };
3336
- baseUnitId: string;
3337
- };
3338
- amount: {
3339
- amount: number;
3340
- precision: number;
3341
- };
3342
- outputSkuId: string;
3343
- }[];
3344
- }[];
3345
- claimedAt: string;
3346
- claimedBy: {
3347
- name: string;
3348
- id: string;
3349
- };
3350
- } | null | undefined;
3351
- issuances: {
3352
- remark?: string | null | undefined;
3353
- adjustmentId: string;
3354
- items: {
3355
- measurement: {
3356
- name: string;
3357
- id: string;
3358
- abbrev: string;
3359
- conversion: {
3360
- amount: number;
3361
- precision: number;
3362
- };
3363
- baseUnitId: string;
3364
- };
3365
- sku: {
3366
- trackingMeasurement?: string | null | undefined;
3367
- isInactive?: boolean | null | undefined;
3368
- convert?: {
3369
- measurement?: string | null | undefined;
3370
- inventoryBindings?: {
3371
- measurement?: {
3372
- name: string;
3373
- id: string;
3374
- abbrev: string;
3375
- conversion: {
3376
- amount: number;
3377
- precision: number;
3378
- };
3379
- } | null | undefined;
3380
- rules?: Record<string, any> | null | undefined;
3381
- alternatives?: {
3382
- default?: boolean | null | undefined;
3383
- trackingMeasurement?: string | null | undefined;
3384
- priority?: number | null | undefined;
3385
- _id: string;
3386
- }[] | null | undefined;
3387
- type: "RECIPE" | "SKU" | "SKU_GROUP";
3388
- amount: {
3389
- amount: number;
3390
- precision: number;
3391
- };
3392
- id: string;
3393
- }[] | null | undefined;
3394
- } | null | undefined;
3395
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
3396
- defaultCost?: {
3397
- measurement?: {
3398
- name: string;
3399
- id: string;
3400
- abbrev: string;
3401
- conversion: {
3402
- amount: number;
3403
- precision: number;
3404
- };
3405
- } | null | undefined;
3406
- costPerUnit: {
3407
- 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";
3408
- amount: number;
3409
- precision: number;
3410
- };
3411
- } | null | undefined;
3412
- operationalGroup?: string | null | undefined;
3413
- thresholds?: {
3414
- low: number;
3415
- mid: number;
3416
- } | null | undefined;
3417
- customAttributes?: Record<string, any> | null | undefined;
3418
- unit: {
3419
- _id: string;
3420
- name: string;
3421
- abbrev: string;
3422
- precision: number;
3423
- measurements: {
3424
- name: string;
3425
- id: string;
3426
- abbrev: string;
3427
- conversion: {
3428
- amount: number;
3429
- precision: number;
3430
- };
3431
- }[];
3432
- };
3433
- code: string;
3434
- _id: string;
3435
- name: string;
3436
- };
3437
- committedAmount: {
3438
- amount: number;
3439
- precision: number;
3440
- };
3441
- }[];
3442
- skippedSkuIds: string[];
3443
- issuedAt: string;
3444
- issuedBy: {
3445
- name: string;
3446
- id: string;
3447
- };
3448
- acknowledgedShortages: {
3449
- skuId: string;
3450
- baseUnit: {
3451
- name: string;
3452
- id: string;
3453
- abbrev: string;
3454
- conversion: {
3455
- amount: number;
3456
- precision: number;
3457
- };
3458
- baseUnitId: string;
3459
- };
3460
- projectedBalance: {
3461
- amount: number;
3462
- precision: number;
3463
- };
3464
- }[];
3465
- movement: {
3466
- amounts: {
3467
- measurement: {
3468
- name: string;
3469
- id: string;
3470
- abbrev: string;
3471
- conversion: {
3472
- amount: number;
3473
- precision: number;
3474
- };
3475
- baseUnitId: string;
3476
- };
3477
- amount: {
3478
- amount: number;
3479
- precision: number;
3480
- };
3481
- outputSkuId: string;
3482
- }[];
3483
- ingredient: {
3484
- code: string;
3485
- skuId: string;
3486
- name: string;
3487
- baseUnit: {
3488
- name: string;
3489
- id: string;
3490
- abbrev: string;
3491
- conversion: {
3492
- amount: number;
3493
- precision: number;
3494
- };
3495
- baseUnitId: string;
3496
- };
3497
- basePrecision: number;
3498
- };
3499
- }[];
3500
- }[];
3501
- };
3502
- batches: {
3503
- adjustmentId: string;
3504
- id: string;
3505
- remark: string | null;
3506
- items: {
3507
- measurement: {
3508
- name: string;
3509
- id: string;
3510
- abbrev: string;
3511
- conversion: {
3512
- amount: number;
3513
- precision: number;
3514
- };
3515
- baseUnitId: string;
3516
- };
3517
- skuId: string;
3518
- producedAmount: {
3519
- amount: number;
3520
- precision: number;
3521
- };
3522
- }[];
3523
- operationKey: string;
3524
- stockApplicationStatus: "PENDING" | "APPLIED";
3525
- producedAt: string;
3526
- recordedAt: string;
3527
- recordedBy: {
3528
- name: string;
3529
- id: string;
3530
- };
3531
- wastages: {
3532
- measurement: {
3533
- name: string;
3534
- id: string;
3535
- abbrev: string;
3536
- conversion: {
3537
- amount: number;
3538
- precision: number;
3539
- };
3540
- baseUnitId: string;
3541
- };
3542
- skuId: string;
3543
- amount: {
3544
- amount: number;
3545
- precision: number;
3546
- };
3547
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
3548
- remark: string | null;
3549
- itemSkuId: string;
3550
- }[];
3551
- }[];
3552
- }>[];
3553
- prepareInitialView: "print" | "review";
3554
- atTarget: boolean;
3555
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3556
- export default _default;
3557
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
3558
- type __VLS_TypePropsToRuntimeProps<T> = {
3559
- [K in keyof T]-?: {} extends Pick<T, K> ? {
3560
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
3561
- } : {
3562
- type: import('vue').PropType<T[K]>;
3563
- required: true;
3564
- };
3565
- };
3566
- type __VLS_WithDefaults<P, D> = {
3567
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
3568
- default: D[K];
3569
- }> : P[K];
3570
- };
3571
- type __VLS_Prettify<T> = {
3572
- [K in keyof T]: T[K];
3573
- } & {};