@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,2098 +0,0 @@
1
- import { type MaybeRefOrGetter } from 'vue';
2
- import type { WithRev } from '@/api/type';
3
- import { type ProductionOutputBatch } from '../../shared/model/production-run-display';
4
- import { type ProductionRunLifecycleAction } from '../../shared/model/use-production-run-actions';
5
- /**
6
- * The run page's data and its reveal rules.
7
- *
8
- * Two things this file exists to keep out of `.vue` templates:
9
- *
10
- * **Cold entry.** A run `_id` is only meaningful inside the CouchDB database of
11
- * the location that owns it, and the portal can land on `/production-run/:id`
12
- * before a location is chosen — a deep link, a refresh, a tab restored a day
13
- * later. So nothing fetches on mount: `watchLocation` is the only trigger, and
14
- * while `_currentLocation` is null the page renders a skeleton rather than
15
- * reading `currentLocationDBName`, which THROWS once locations are loaded and
16
- * none is selected.
17
- *
18
- * **Reveal by status.** Sections and tabs key on DATA — `issuances.length`,
19
- * `batches.length` — because that is what makes them meaningful. Actions key on
20
- * `productionRunActionsFor`, which reads core's legality table. Neither keys on
21
- * a `status === 'X'` comparison in a template, so a new status or a changed
22
- * edge cannot leave the page offering something the server will refuse.
23
- */
24
- export type ProductionRunDetailPhase =
25
- /** No location chosen yet — nothing has been asked for. */
26
- 'waitingForLocation' | 'loading' | 'ready'
27
- /** A 404: the run is real, but not in THIS location's database. */
28
- | 'notInLocation' | 'error';
29
- export type ProductionRunDetailTab = 'overview' | 'output' | 'ingredients' | 'activity';
30
- /**
31
- * What the page has to say about recalculation after a stock-moving write.
32
- *
33
- * Three states rather than a boolean, because the boolean answered a question
34
- * that stopped being the interesting one (FM-132). It meant "the cached balance
35
- * was not advanced" — but a backdated movement DOES advance the balance and now
36
- * schedules its own repair, so the old banner's copy was false in both clauses
37
- * for a backdated movement. What a user can act on is whether anything is
38
- * coming.
39
- *
40
- * - `dispatched` — a recalculation is scheduled. Informational; figures lag.
41
- * - `failed` — nothing is coming. Somebody has to act.
42
- * - `unknown` — the backend said a recalculation is needed but not whether
43
- * one was scheduled. Only reachable against a backend older
44
- * than FM-132, since the dispatch field is optional on the
45
- * wire.
46
- * - `unavailable` — the location has no closing or snapshot to anchor a replay
47
- * on, so historical figures after the movement could not be
48
- * rebuilt and nothing automatic will rebuild them. The
49
- * on-hand quantity still includes it, though valuation
50
- * may not. A known unresolved gap,
51
- * which is why it warns rather than informs.
52
- */
53
- export type StockRecalculationState = 'failed' | 'unknown' | 'dispatched' | 'unavailable';
54
- type RecalculationDispatch = 'dispatched' | 'failed' | 'unavailable' | 'not-required';
55
- /** Read a write's answer as a banner state, or `null` for nothing to say. */
56
- export declare function recalculationStateOf(result: {
57
- stockRecalculationRequired: boolean;
58
- stockRecalculationDispatch?: RecalculationDispatch;
59
- }): StockRecalculationState | null;
60
- export declare function useProductionRunDetail(runId: MaybeRefOrGetter<string>, newWorkEnabled?: MaybeRefOrGetter<boolean>): {
61
- run: import("vue").Ref<{
62
- _rev: string;
63
- closedAt?: string | null | undefined;
64
- cancelledAt?: string | null | undefined;
65
- cancelReason?: string | null | undefined;
66
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
67
- _id: string;
68
- createdAt: string;
69
- createdBy: {
70
- name: string;
71
- id: string;
72
- };
73
- activityLogs: {
74
- remark?: string | null | undefined;
75
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
76
- performedAt: string;
77
- performedBy: {
78
- name: string;
79
- id: string;
80
- };
81
- }[];
82
- runNo: number;
83
- runName: string | null;
84
- instructions: string | null;
85
- plan: {
86
- items: {
87
- measurement: {
88
- name: string;
89
- id: string;
90
- abbrev: string;
91
- conversion: {
92
- amount: number;
93
- precision: number;
94
- };
95
- baseUnitId: string;
96
- };
97
- skuId: string;
98
- requestedAmount: {
99
- amount: number;
100
- precision: number;
101
- };
102
- }[];
103
- requirements: {
104
- ingredients: {
105
- amounts: {
106
- measurement: {
107
- name: string;
108
- id: string;
109
- abbrev: string;
110
- conversion: {
111
- amount: number;
112
- precision: number;
113
- };
114
- baseUnitId: string;
115
- };
116
- amount: {
117
- amount: number;
118
- precision: number;
119
- };
120
- outputSkuId: string;
121
- rateBasis: {
122
- outputMeasurement: {
123
- name: string;
124
- id: string;
125
- abbrev: string;
126
- conversion: {
127
- amount: number;
128
- precision: number;
129
- };
130
- baseUnitId: string;
131
- };
132
- };
133
- }[];
134
- ingredient: {
135
- code: string;
136
- skuId: string;
137
- name: string;
138
- baseUnit: {
139
- name: string;
140
- id: string;
141
- abbrev: string;
142
- conversion: {
143
- amount: number;
144
- precision: number;
145
- };
146
- baseUnitId: string;
147
- };
148
- basePrecision: number;
149
- };
150
- }[];
151
- skippedSkuIds: string[];
152
- } | null;
153
- };
154
- preparation: {
155
- pendingIssuance?: {
156
- remark?: string | null | undefined;
157
- adjustmentId: string;
158
- items: {
159
- measurement: {
160
- name: string;
161
- id: string;
162
- abbrev: string;
163
- conversion: {
164
- amount: number;
165
- precision: number;
166
- };
167
- baseUnitId: string;
168
- };
169
- sku: {
170
- trackingMeasurement?: string | null | undefined;
171
- isInactive?: boolean | null | undefined;
172
- convert?: {
173
- measurement?: string | null | undefined;
174
- inventoryBindings?: {
175
- measurement?: {
176
- name: string;
177
- id: string;
178
- abbrev: string;
179
- conversion: {
180
- amount: number;
181
- precision: number;
182
- };
183
- } | null | undefined;
184
- rules?: Record<string, any> | null | undefined;
185
- alternatives?: {
186
- default?: boolean | null | undefined;
187
- trackingMeasurement?: string | null | undefined;
188
- priority?: number | null | undefined;
189
- _id: string;
190
- }[] | null | undefined;
191
- type: "RECIPE" | "SKU" | "SKU_GROUP";
192
- amount: {
193
- amount: number;
194
- precision: number;
195
- };
196
- id: string;
197
- }[] | null | undefined;
198
- } | null | undefined;
199
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
200
- defaultCost?: {
201
- measurement?: {
202
- name: string;
203
- id: string;
204
- abbrev: string;
205
- conversion: {
206
- amount: number;
207
- precision: number;
208
- };
209
- } | null | undefined;
210
- costPerUnit: {
211
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
212
- amount: number;
213
- precision: number;
214
- };
215
- } | null | undefined;
216
- operationalGroup?: string | null | undefined;
217
- thresholds?: {
218
- low: number;
219
- mid: number;
220
- } | null | undefined;
221
- customAttributes?: Record<string, any> | null | undefined;
222
- unit: {
223
- _id: string;
224
- name: string;
225
- abbrev: string;
226
- precision: number;
227
- measurements: {
228
- name: string;
229
- id: string;
230
- abbrev: string;
231
- conversion: {
232
- amount: number;
233
- precision: number;
234
- };
235
- }[];
236
- };
237
- code: string;
238
- _id: string;
239
- name: string;
240
- };
241
- committedAmount: {
242
- amount: number;
243
- precision: number;
244
- };
245
- }[];
246
- skippedSkuIds: string[];
247
- acknowledgedShortages: {
248
- skuId: string;
249
- baseUnit: {
250
- name: string;
251
- id: string;
252
- abbrev: string;
253
- conversion: {
254
- amount: number;
255
- precision: number;
256
- };
257
- baseUnitId: string;
258
- };
259
- projectedBalance: {
260
- amount: number;
261
- precision: number;
262
- };
263
- }[];
264
- movement: {
265
- sku: {
266
- trackingMeasurement?: string | null | undefined;
267
- isInactive?: boolean | null | undefined;
268
- convert?: {
269
- measurement?: string | null | undefined;
270
- inventoryBindings?: {
271
- measurement?: {
272
- name: string;
273
- id: string;
274
- abbrev: string;
275
- conversion: {
276
- amount: number;
277
- precision: number;
278
- };
279
- } | null | undefined;
280
- rules?: Record<string, any> | null | undefined;
281
- alternatives?: {
282
- default?: boolean | null | undefined;
283
- trackingMeasurement?: string | null | undefined;
284
- priority?: number | null | undefined;
285
- _id: string;
286
- }[] | null | undefined;
287
- type: "RECIPE" | "SKU" | "SKU_GROUP";
288
- amount: {
289
- amount: number;
290
- precision: number;
291
- };
292
- id: string;
293
- }[] | null | undefined;
294
- } | null | undefined;
295
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
296
- defaultCost?: {
297
- measurement?: {
298
- name: string;
299
- id: string;
300
- abbrev: string;
301
- conversion: {
302
- amount: number;
303
- precision: number;
304
- };
305
- } | null | undefined;
306
- costPerUnit: {
307
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
308
- amount: number;
309
- precision: number;
310
- };
311
- } | null | undefined;
312
- operationalGroup?: string | null | undefined;
313
- thresholds?: {
314
- low: number;
315
- mid: number;
316
- } | null | undefined;
317
- customAttributes?: Record<string, any> | null | undefined;
318
- unit: {
319
- _id: string;
320
- name: string;
321
- abbrev: string;
322
- precision: number;
323
- measurements: {
324
- name: string;
325
- id: string;
326
- abbrev: string;
327
- conversion: {
328
- amount: number;
329
- precision: number;
330
- };
331
- }[];
332
- };
333
- code: string;
334
- _id: string;
335
- name: string;
336
- };
337
- amounts: {
338
- measurement: {
339
- name: string;
340
- id: string;
341
- abbrev: string;
342
- conversion: {
343
- amount: number;
344
- precision: number;
345
- };
346
- baseUnitId: string;
347
- };
348
- amount: {
349
- amount: number;
350
- precision: number;
351
- };
352
- outputSkuId: string;
353
- }[];
354
- }[];
355
- claimedAt: string;
356
- claimedBy: {
357
- name: string;
358
- id: string;
359
- };
360
- } | null | undefined;
361
- issuances: {
362
- remark?: string | null | undefined;
363
- adjustmentId: string;
364
- items: {
365
- measurement: {
366
- name: string;
367
- id: string;
368
- abbrev: string;
369
- conversion: {
370
- amount: number;
371
- precision: number;
372
- };
373
- baseUnitId: string;
374
- };
375
- sku: {
376
- trackingMeasurement?: string | null | undefined;
377
- isInactive?: boolean | null | undefined;
378
- convert?: {
379
- measurement?: string | null | undefined;
380
- inventoryBindings?: {
381
- measurement?: {
382
- name: string;
383
- id: string;
384
- abbrev: string;
385
- conversion: {
386
- amount: number;
387
- precision: number;
388
- };
389
- } | null | undefined;
390
- rules?: Record<string, any> | null | undefined;
391
- alternatives?: {
392
- default?: boolean | null | undefined;
393
- trackingMeasurement?: string | null | undefined;
394
- priority?: number | null | undefined;
395
- _id: string;
396
- }[] | null | undefined;
397
- type: "RECIPE" | "SKU" | "SKU_GROUP";
398
- amount: {
399
- amount: number;
400
- precision: number;
401
- };
402
- id: string;
403
- }[] | null | undefined;
404
- } | null | undefined;
405
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
406
- defaultCost?: {
407
- measurement?: {
408
- name: string;
409
- id: string;
410
- abbrev: string;
411
- conversion: {
412
- amount: number;
413
- precision: number;
414
- };
415
- } | null | undefined;
416
- costPerUnit: {
417
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
418
- amount: number;
419
- precision: number;
420
- };
421
- } | null | undefined;
422
- operationalGroup?: string | null | undefined;
423
- thresholds?: {
424
- low: number;
425
- mid: number;
426
- } | null | undefined;
427
- customAttributes?: Record<string, any> | null | undefined;
428
- unit: {
429
- _id: string;
430
- name: string;
431
- abbrev: string;
432
- precision: number;
433
- measurements: {
434
- name: string;
435
- id: string;
436
- abbrev: string;
437
- conversion: {
438
- amount: number;
439
- precision: number;
440
- };
441
- }[];
442
- };
443
- code: string;
444
- _id: string;
445
- name: string;
446
- };
447
- committedAmount: {
448
- amount: number;
449
- precision: number;
450
- };
451
- }[];
452
- skippedSkuIds: string[];
453
- issuedAt: string;
454
- issuedBy: {
455
- name: string;
456
- id: string;
457
- };
458
- acknowledgedShortages: {
459
- skuId: string;
460
- baseUnit: {
461
- name: string;
462
- id: string;
463
- abbrev: string;
464
- conversion: {
465
- amount: number;
466
- precision: number;
467
- };
468
- baseUnitId: string;
469
- };
470
- projectedBalance: {
471
- amount: number;
472
- precision: number;
473
- };
474
- }[];
475
- movement: {
476
- amounts: {
477
- measurement: {
478
- name: string;
479
- id: string;
480
- abbrev: string;
481
- conversion: {
482
- amount: number;
483
- precision: number;
484
- };
485
- baseUnitId: string;
486
- };
487
- amount: {
488
- amount: number;
489
- precision: number;
490
- };
491
- outputSkuId: string;
492
- }[];
493
- ingredient: {
494
- code: string;
495
- skuId: string;
496
- name: string;
497
- baseUnit: {
498
- name: string;
499
- id: string;
500
- abbrev: string;
501
- conversion: {
502
- amount: number;
503
- precision: number;
504
- };
505
- baseUnitId: string;
506
- };
507
- basePrecision: number;
508
- };
509
- }[];
510
- }[];
511
- };
512
- batches: {
513
- adjustmentId: string;
514
- id: string;
515
- remark: string | null;
516
- items: {
517
- measurement: {
518
- name: string;
519
- id: string;
520
- abbrev: string;
521
- conversion: {
522
- amount: number;
523
- precision: number;
524
- };
525
- baseUnitId: string;
526
- };
527
- skuId: string;
528
- producedAmount: {
529
- amount: number;
530
- precision: number;
531
- };
532
- }[];
533
- operationKey: string;
534
- stockApplicationStatus: "PENDING" | "APPLIED";
535
- producedAt: string;
536
- recordedAt: string;
537
- recordedBy: {
538
- name: string;
539
- id: string;
540
- };
541
- wastages: {
542
- measurement: {
543
- name: string;
544
- id: string;
545
- abbrev: string;
546
- conversion: {
547
- amount: number;
548
- precision: number;
549
- };
550
- baseUnitId: string;
551
- };
552
- skuId: string;
553
- amount: {
554
- amount: number;
555
- precision: number;
556
- };
557
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
558
- remark: string | null;
559
- itemSkuId: string;
560
- }[];
561
- }[];
562
- } | null, WithRev<{
563
- _rev?: string | null | undefined;
564
- closedAt?: string | null | undefined;
565
- cancelledAt?: string | null | undefined;
566
- cancelReason?: string | null | undefined;
567
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
568
- _id: string;
569
- createdAt: string;
570
- createdBy: {
571
- name: string;
572
- id: string;
573
- };
574
- activityLogs: {
575
- remark?: string | null | undefined;
576
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
577
- performedAt: string;
578
- performedBy: {
579
- name: string;
580
- id: string;
581
- };
582
- }[];
583
- runNo: number;
584
- runName: string | null;
585
- instructions: string | null;
586
- plan: {
587
- items: {
588
- measurement: {
589
- name: string;
590
- id: string;
591
- abbrev: string;
592
- conversion: {
593
- amount: number;
594
- precision: number;
595
- };
596
- baseUnitId: string;
597
- };
598
- skuId: string;
599
- requestedAmount: {
600
- amount: number;
601
- precision: number;
602
- };
603
- }[];
604
- requirements: {
605
- ingredients: {
606
- amounts: {
607
- measurement: {
608
- name: string;
609
- id: string;
610
- abbrev: string;
611
- conversion: {
612
- amount: number;
613
- precision: number;
614
- };
615
- baseUnitId: string;
616
- };
617
- amount: {
618
- amount: number;
619
- precision: number;
620
- };
621
- outputSkuId: string;
622
- rateBasis: {
623
- outputMeasurement: {
624
- name: string;
625
- id: string;
626
- abbrev: string;
627
- conversion: {
628
- amount: number;
629
- precision: number;
630
- };
631
- baseUnitId: string;
632
- };
633
- };
634
- }[];
635
- ingredient: {
636
- code: string;
637
- skuId: string;
638
- name: string;
639
- baseUnit: {
640
- name: string;
641
- id: string;
642
- abbrev: string;
643
- conversion: {
644
- amount: number;
645
- precision: number;
646
- };
647
- baseUnitId: string;
648
- };
649
- basePrecision: number;
650
- };
651
- }[];
652
- skippedSkuIds: string[];
653
- } | null;
654
- };
655
- preparation: {
656
- pendingIssuance?: {
657
- remark?: string | null | undefined;
658
- adjustmentId: string;
659
- items: {
660
- measurement: {
661
- name: string;
662
- id: string;
663
- abbrev: string;
664
- conversion: {
665
- amount: number;
666
- precision: number;
667
- };
668
- baseUnitId: string;
669
- };
670
- sku: {
671
- trackingMeasurement?: string | null | undefined;
672
- isInactive?: boolean | null | undefined;
673
- convert?: {
674
- measurement?: string | null | undefined;
675
- inventoryBindings?: {
676
- measurement?: {
677
- name: string;
678
- id: string;
679
- abbrev: string;
680
- conversion: {
681
- amount: number;
682
- precision: number;
683
- };
684
- } | null | undefined;
685
- rules?: Record<string, any> | null | undefined;
686
- alternatives?: {
687
- default?: boolean | null | undefined;
688
- trackingMeasurement?: string | null | undefined;
689
- priority?: number | null | undefined;
690
- _id: string;
691
- }[] | null | undefined;
692
- type: "RECIPE" | "SKU" | "SKU_GROUP";
693
- amount: {
694
- amount: number;
695
- precision: number;
696
- };
697
- id: string;
698
- }[] | null | undefined;
699
- } | null | undefined;
700
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
701
- defaultCost?: {
702
- measurement?: {
703
- name: string;
704
- id: string;
705
- abbrev: string;
706
- conversion: {
707
- amount: number;
708
- precision: number;
709
- };
710
- } | null | undefined;
711
- costPerUnit: {
712
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
713
- amount: number;
714
- precision: number;
715
- };
716
- } | null | undefined;
717
- operationalGroup?: string | null | undefined;
718
- thresholds?: {
719
- low: number;
720
- mid: number;
721
- } | null | undefined;
722
- customAttributes?: Record<string, any> | null | undefined;
723
- unit: {
724
- _id: string;
725
- name: string;
726
- abbrev: string;
727
- precision: number;
728
- measurements: {
729
- name: string;
730
- id: string;
731
- abbrev: string;
732
- conversion: {
733
- amount: number;
734
- precision: number;
735
- };
736
- }[];
737
- };
738
- code: string;
739
- _id: string;
740
- name: string;
741
- };
742
- committedAmount: {
743
- amount: number;
744
- precision: number;
745
- };
746
- }[];
747
- skippedSkuIds: string[];
748
- acknowledgedShortages: {
749
- skuId: string;
750
- baseUnit: {
751
- name: string;
752
- id: string;
753
- abbrev: string;
754
- conversion: {
755
- amount: number;
756
- precision: number;
757
- };
758
- baseUnitId: string;
759
- };
760
- projectedBalance: {
761
- amount: number;
762
- precision: number;
763
- };
764
- }[];
765
- movement: {
766
- sku: {
767
- trackingMeasurement?: string | null | undefined;
768
- isInactive?: boolean | null | undefined;
769
- convert?: {
770
- measurement?: string | null | undefined;
771
- inventoryBindings?: {
772
- measurement?: {
773
- name: string;
774
- id: string;
775
- abbrev: string;
776
- conversion: {
777
- amount: number;
778
- precision: number;
779
- };
780
- } | null | undefined;
781
- rules?: Record<string, any> | null | undefined;
782
- alternatives?: {
783
- default?: boolean | null | undefined;
784
- trackingMeasurement?: string | null | undefined;
785
- priority?: number | null | undefined;
786
- _id: string;
787
- }[] | null | undefined;
788
- type: "RECIPE" | "SKU" | "SKU_GROUP";
789
- amount: {
790
- amount: number;
791
- precision: number;
792
- };
793
- id: string;
794
- }[] | null | undefined;
795
- } | null | undefined;
796
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
797
- defaultCost?: {
798
- measurement?: {
799
- name: string;
800
- id: string;
801
- abbrev: string;
802
- conversion: {
803
- amount: number;
804
- precision: number;
805
- };
806
- } | null | undefined;
807
- costPerUnit: {
808
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
809
- amount: number;
810
- precision: number;
811
- };
812
- } | null | undefined;
813
- operationalGroup?: string | null | undefined;
814
- thresholds?: {
815
- low: number;
816
- mid: number;
817
- } | null | undefined;
818
- customAttributes?: Record<string, any> | null | undefined;
819
- unit: {
820
- _id: string;
821
- name: string;
822
- abbrev: string;
823
- precision: number;
824
- measurements: {
825
- name: string;
826
- id: string;
827
- abbrev: string;
828
- conversion: {
829
- amount: number;
830
- precision: number;
831
- };
832
- }[];
833
- };
834
- code: string;
835
- _id: string;
836
- name: string;
837
- };
838
- amounts: {
839
- measurement: {
840
- name: string;
841
- id: string;
842
- abbrev: string;
843
- conversion: {
844
- amount: number;
845
- precision: number;
846
- };
847
- baseUnitId: string;
848
- };
849
- amount: {
850
- amount: number;
851
- precision: number;
852
- };
853
- outputSkuId: string;
854
- }[];
855
- }[];
856
- claimedAt: string;
857
- claimedBy: {
858
- name: string;
859
- id: string;
860
- };
861
- } | null | undefined;
862
- issuances: {
863
- remark?: string | null | undefined;
864
- adjustmentId: string;
865
- items: {
866
- measurement: {
867
- name: string;
868
- id: string;
869
- abbrev: string;
870
- conversion: {
871
- amount: number;
872
- precision: number;
873
- };
874
- baseUnitId: string;
875
- };
876
- sku: {
877
- trackingMeasurement?: string | null | undefined;
878
- isInactive?: boolean | null | undefined;
879
- convert?: {
880
- measurement?: string | null | undefined;
881
- inventoryBindings?: {
882
- measurement?: {
883
- name: string;
884
- id: string;
885
- abbrev: string;
886
- conversion: {
887
- amount: number;
888
- precision: number;
889
- };
890
- } | null | undefined;
891
- rules?: Record<string, any> | null | undefined;
892
- alternatives?: {
893
- default?: boolean | null | undefined;
894
- trackingMeasurement?: string | null | undefined;
895
- priority?: number | null | undefined;
896
- _id: string;
897
- }[] | null | undefined;
898
- type: "RECIPE" | "SKU" | "SKU_GROUP";
899
- amount: {
900
- amount: number;
901
- precision: number;
902
- };
903
- id: string;
904
- }[] | null | undefined;
905
- } | null | undefined;
906
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
907
- defaultCost?: {
908
- measurement?: {
909
- name: string;
910
- id: string;
911
- abbrev: string;
912
- conversion: {
913
- amount: number;
914
- precision: number;
915
- };
916
- } | null | undefined;
917
- costPerUnit: {
918
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
919
- amount: number;
920
- precision: number;
921
- };
922
- } | null | undefined;
923
- operationalGroup?: string | null | undefined;
924
- thresholds?: {
925
- low: number;
926
- mid: number;
927
- } | null | undefined;
928
- customAttributes?: Record<string, any> | null | undefined;
929
- unit: {
930
- _id: string;
931
- name: string;
932
- abbrev: string;
933
- precision: number;
934
- measurements: {
935
- name: string;
936
- id: string;
937
- abbrev: string;
938
- conversion: {
939
- amount: number;
940
- precision: number;
941
- };
942
- }[];
943
- };
944
- code: string;
945
- _id: string;
946
- name: string;
947
- };
948
- committedAmount: {
949
- amount: number;
950
- precision: number;
951
- };
952
- }[];
953
- skippedSkuIds: string[];
954
- issuedAt: string;
955
- issuedBy: {
956
- name: string;
957
- id: string;
958
- };
959
- acknowledgedShortages: {
960
- skuId: string;
961
- baseUnit: {
962
- name: string;
963
- id: string;
964
- abbrev: string;
965
- conversion: {
966
- amount: number;
967
- precision: number;
968
- };
969
- baseUnitId: string;
970
- };
971
- projectedBalance: {
972
- amount: number;
973
- precision: number;
974
- };
975
- }[];
976
- movement: {
977
- amounts: {
978
- measurement: {
979
- name: string;
980
- id: string;
981
- abbrev: string;
982
- conversion: {
983
- amount: number;
984
- precision: number;
985
- };
986
- baseUnitId: string;
987
- };
988
- amount: {
989
- amount: number;
990
- precision: number;
991
- };
992
- outputSkuId: string;
993
- }[];
994
- ingredient: {
995
- code: string;
996
- skuId: string;
997
- name: string;
998
- baseUnit: {
999
- name: string;
1000
- id: string;
1001
- abbrev: string;
1002
- conversion: {
1003
- amount: number;
1004
- precision: number;
1005
- };
1006
- baseUnitId: string;
1007
- };
1008
- basePrecision: number;
1009
- };
1010
- }[];
1011
- }[];
1012
- };
1013
- batches: {
1014
- adjustmentId: string;
1015
- id: string;
1016
- remark: string | null;
1017
- items: {
1018
- measurement: {
1019
- name: string;
1020
- id: string;
1021
- abbrev: string;
1022
- conversion: {
1023
- amount: number;
1024
- precision: number;
1025
- };
1026
- baseUnitId: string;
1027
- };
1028
- skuId: string;
1029
- producedAmount: {
1030
- amount: number;
1031
- precision: number;
1032
- };
1033
- }[];
1034
- operationKey: string;
1035
- stockApplicationStatus: "PENDING" | "APPLIED";
1036
- producedAt: string;
1037
- recordedAt: string;
1038
- recordedBy: {
1039
- name: string;
1040
- id: string;
1041
- };
1042
- wastages: {
1043
- measurement: {
1044
- name: string;
1045
- id: string;
1046
- abbrev: string;
1047
- conversion: {
1048
- amount: number;
1049
- precision: number;
1050
- };
1051
- baseUnitId: string;
1052
- };
1053
- skuId: string;
1054
- amount: {
1055
- amount: number;
1056
- precision: number;
1057
- };
1058
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1059
- remark: string | null;
1060
- itemSkuId: string;
1061
- }[];
1062
- }[];
1063
- }> | {
1064
- _rev: string;
1065
- closedAt?: string | null | undefined;
1066
- cancelledAt?: string | null | undefined;
1067
- cancelReason?: string | null | undefined;
1068
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1069
- _id: string;
1070
- createdAt: string;
1071
- createdBy: {
1072
- name: string;
1073
- id: string;
1074
- };
1075
- activityLogs: {
1076
- remark?: string | null | undefined;
1077
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1078
- performedAt: string;
1079
- performedBy: {
1080
- name: string;
1081
- id: string;
1082
- };
1083
- }[];
1084
- runNo: number;
1085
- runName: string | null;
1086
- instructions: string | null;
1087
- plan: {
1088
- items: {
1089
- measurement: {
1090
- name: string;
1091
- id: string;
1092
- abbrev: string;
1093
- conversion: {
1094
- amount: number;
1095
- precision: number;
1096
- };
1097
- baseUnitId: string;
1098
- };
1099
- skuId: string;
1100
- requestedAmount: {
1101
- amount: number;
1102
- precision: number;
1103
- };
1104
- }[];
1105
- requirements: {
1106
- ingredients: {
1107
- amounts: {
1108
- measurement: {
1109
- name: string;
1110
- id: string;
1111
- abbrev: string;
1112
- conversion: {
1113
- amount: number;
1114
- precision: number;
1115
- };
1116
- baseUnitId: string;
1117
- };
1118
- amount: {
1119
- amount: number;
1120
- precision: number;
1121
- };
1122
- outputSkuId: string;
1123
- rateBasis: {
1124
- outputMeasurement: {
1125
- name: string;
1126
- id: string;
1127
- abbrev: string;
1128
- conversion: {
1129
- amount: number;
1130
- precision: number;
1131
- };
1132
- baseUnitId: string;
1133
- };
1134
- };
1135
- }[];
1136
- ingredient: {
1137
- code: string;
1138
- skuId: string;
1139
- name: string;
1140
- baseUnit: {
1141
- name: string;
1142
- id: string;
1143
- abbrev: string;
1144
- conversion: {
1145
- amount: number;
1146
- precision: number;
1147
- };
1148
- baseUnitId: string;
1149
- };
1150
- basePrecision: number;
1151
- };
1152
- }[];
1153
- skippedSkuIds: string[];
1154
- } | null;
1155
- };
1156
- preparation: {
1157
- pendingIssuance?: {
1158
- remark?: string | null | undefined;
1159
- adjustmentId: string;
1160
- items: {
1161
- measurement: {
1162
- name: string;
1163
- id: string;
1164
- abbrev: string;
1165
- conversion: {
1166
- amount: number;
1167
- precision: number;
1168
- };
1169
- baseUnitId: string;
1170
- };
1171
- sku: {
1172
- trackingMeasurement?: string | null | undefined;
1173
- isInactive?: boolean | null | undefined;
1174
- convert?: {
1175
- measurement?: string | null | undefined;
1176
- inventoryBindings?: {
1177
- measurement?: {
1178
- name: string;
1179
- id: string;
1180
- abbrev: string;
1181
- conversion: {
1182
- amount: number;
1183
- precision: number;
1184
- };
1185
- } | null | undefined;
1186
- rules?: Record<string, any> | null | undefined;
1187
- alternatives?: {
1188
- default?: boolean | null | undefined;
1189
- trackingMeasurement?: string | null | undefined;
1190
- priority?: number | null | undefined;
1191
- _id: string;
1192
- }[] | null | undefined;
1193
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1194
- amount: {
1195
- amount: number;
1196
- precision: number;
1197
- };
1198
- id: string;
1199
- }[] | null | undefined;
1200
- } | null | undefined;
1201
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1202
- defaultCost?: {
1203
- measurement?: {
1204
- name: string;
1205
- id: string;
1206
- abbrev: string;
1207
- conversion: {
1208
- amount: number;
1209
- precision: number;
1210
- };
1211
- } | null | undefined;
1212
- costPerUnit: {
1213
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1214
- amount: number;
1215
- precision: number;
1216
- };
1217
- } | null | undefined;
1218
- operationalGroup?: string | null | undefined;
1219
- thresholds?: {
1220
- low: number;
1221
- mid: number;
1222
- } | null | undefined;
1223
- customAttributes?: Record<string, any> | null | undefined;
1224
- unit: {
1225
- _id: string;
1226
- name: string;
1227
- abbrev: string;
1228
- precision: number;
1229
- measurements: {
1230
- name: string;
1231
- id: string;
1232
- abbrev: string;
1233
- conversion: {
1234
- amount: number;
1235
- precision: number;
1236
- };
1237
- }[];
1238
- };
1239
- code: string;
1240
- _id: string;
1241
- name: string;
1242
- };
1243
- committedAmount: {
1244
- amount: number;
1245
- precision: number;
1246
- };
1247
- }[];
1248
- skippedSkuIds: string[];
1249
- acknowledgedShortages: {
1250
- skuId: string;
1251
- baseUnit: {
1252
- name: string;
1253
- id: string;
1254
- abbrev: string;
1255
- conversion: {
1256
- amount: number;
1257
- precision: number;
1258
- };
1259
- baseUnitId: string;
1260
- };
1261
- projectedBalance: {
1262
- amount: number;
1263
- precision: number;
1264
- };
1265
- }[];
1266
- movement: {
1267
- sku: {
1268
- trackingMeasurement?: string | null | undefined;
1269
- isInactive?: boolean | null | undefined;
1270
- convert?: {
1271
- measurement?: string | null | undefined;
1272
- inventoryBindings?: {
1273
- measurement?: {
1274
- name: string;
1275
- id: string;
1276
- abbrev: string;
1277
- conversion: {
1278
- amount: number;
1279
- precision: number;
1280
- };
1281
- } | null | undefined;
1282
- rules?: Record<string, any> | null | undefined;
1283
- alternatives?: {
1284
- default?: boolean | null | undefined;
1285
- trackingMeasurement?: string | null | undefined;
1286
- priority?: number | null | undefined;
1287
- _id: string;
1288
- }[] | null | undefined;
1289
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1290
- amount: {
1291
- amount: number;
1292
- precision: number;
1293
- };
1294
- id: string;
1295
- }[] | null | undefined;
1296
- } | null | undefined;
1297
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1298
- defaultCost?: {
1299
- measurement?: {
1300
- name: string;
1301
- id: string;
1302
- abbrev: string;
1303
- conversion: {
1304
- amount: number;
1305
- precision: number;
1306
- };
1307
- } | null | undefined;
1308
- costPerUnit: {
1309
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1310
- amount: number;
1311
- precision: number;
1312
- };
1313
- } | null | undefined;
1314
- operationalGroup?: string | null | undefined;
1315
- thresholds?: {
1316
- low: number;
1317
- mid: number;
1318
- } | null | undefined;
1319
- customAttributes?: Record<string, any> | null | undefined;
1320
- unit: {
1321
- _id: string;
1322
- name: string;
1323
- abbrev: string;
1324
- precision: number;
1325
- measurements: {
1326
- name: string;
1327
- id: string;
1328
- abbrev: string;
1329
- conversion: {
1330
- amount: number;
1331
- precision: number;
1332
- };
1333
- }[];
1334
- };
1335
- code: string;
1336
- _id: string;
1337
- name: string;
1338
- };
1339
- amounts: {
1340
- measurement: {
1341
- name: string;
1342
- id: string;
1343
- abbrev: string;
1344
- conversion: {
1345
- amount: number;
1346
- precision: number;
1347
- };
1348
- baseUnitId: string;
1349
- };
1350
- amount: {
1351
- amount: number;
1352
- precision: number;
1353
- };
1354
- outputSkuId: string;
1355
- }[];
1356
- }[];
1357
- claimedAt: string;
1358
- claimedBy: {
1359
- name: string;
1360
- id: string;
1361
- };
1362
- } | null | undefined;
1363
- issuances: {
1364
- remark?: string | null | undefined;
1365
- adjustmentId: string;
1366
- items: {
1367
- measurement: {
1368
- name: string;
1369
- id: string;
1370
- abbrev: string;
1371
- conversion: {
1372
- amount: number;
1373
- precision: number;
1374
- };
1375
- baseUnitId: string;
1376
- };
1377
- sku: {
1378
- trackingMeasurement?: string | null | undefined;
1379
- isInactive?: boolean | null | undefined;
1380
- convert?: {
1381
- measurement?: string | null | undefined;
1382
- inventoryBindings?: {
1383
- measurement?: {
1384
- name: string;
1385
- id: string;
1386
- abbrev: string;
1387
- conversion: {
1388
- amount: number;
1389
- precision: number;
1390
- };
1391
- } | null | undefined;
1392
- rules?: Record<string, any> | null | undefined;
1393
- alternatives?: {
1394
- default?: boolean | null | undefined;
1395
- trackingMeasurement?: string | null | undefined;
1396
- priority?: number | null | undefined;
1397
- _id: string;
1398
- }[] | null | undefined;
1399
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1400
- amount: {
1401
- amount: number;
1402
- precision: number;
1403
- };
1404
- id: string;
1405
- }[] | null | undefined;
1406
- } | null | undefined;
1407
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1408
- defaultCost?: {
1409
- measurement?: {
1410
- name: string;
1411
- id: string;
1412
- abbrev: string;
1413
- conversion: {
1414
- amount: number;
1415
- precision: number;
1416
- };
1417
- } | null | undefined;
1418
- costPerUnit: {
1419
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1420
- amount: number;
1421
- precision: number;
1422
- };
1423
- } | null | undefined;
1424
- operationalGroup?: string | null | undefined;
1425
- thresholds?: {
1426
- low: number;
1427
- mid: number;
1428
- } | null | undefined;
1429
- customAttributes?: Record<string, any> | null | undefined;
1430
- unit: {
1431
- _id: string;
1432
- name: string;
1433
- abbrev: string;
1434
- precision: number;
1435
- measurements: {
1436
- name: string;
1437
- id: string;
1438
- abbrev: string;
1439
- conversion: {
1440
- amount: number;
1441
- precision: number;
1442
- };
1443
- }[];
1444
- };
1445
- code: string;
1446
- _id: string;
1447
- name: string;
1448
- };
1449
- committedAmount: {
1450
- amount: number;
1451
- precision: number;
1452
- };
1453
- }[];
1454
- skippedSkuIds: string[];
1455
- issuedAt: string;
1456
- issuedBy: {
1457
- name: string;
1458
- id: string;
1459
- };
1460
- acknowledgedShortages: {
1461
- skuId: string;
1462
- baseUnit: {
1463
- name: string;
1464
- id: string;
1465
- abbrev: string;
1466
- conversion: {
1467
- amount: number;
1468
- precision: number;
1469
- };
1470
- baseUnitId: string;
1471
- };
1472
- projectedBalance: {
1473
- amount: number;
1474
- precision: number;
1475
- };
1476
- }[];
1477
- movement: {
1478
- amounts: {
1479
- measurement: {
1480
- name: string;
1481
- id: string;
1482
- abbrev: string;
1483
- conversion: {
1484
- amount: number;
1485
- precision: number;
1486
- };
1487
- baseUnitId: string;
1488
- };
1489
- amount: {
1490
- amount: number;
1491
- precision: number;
1492
- };
1493
- outputSkuId: string;
1494
- }[];
1495
- ingredient: {
1496
- code: string;
1497
- skuId: string;
1498
- name: string;
1499
- baseUnit: {
1500
- name: string;
1501
- id: string;
1502
- abbrev: string;
1503
- conversion: {
1504
- amount: number;
1505
- precision: number;
1506
- };
1507
- baseUnitId: string;
1508
- };
1509
- basePrecision: number;
1510
- };
1511
- }[];
1512
- }[];
1513
- };
1514
- batches: {
1515
- adjustmentId: string;
1516
- id: string;
1517
- remark: string | null;
1518
- items: {
1519
- measurement: {
1520
- name: string;
1521
- id: string;
1522
- abbrev: string;
1523
- conversion: {
1524
- amount: number;
1525
- precision: number;
1526
- };
1527
- baseUnitId: string;
1528
- };
1529
- skuId: string;
1530
- producedAmount: {
1531
- amount: number;
1532
- precision: number;
1533
- };
1534
- }[];
1535
- operationKey: string;
1536
- stockApplicationStatus: "PENDING" | "APPLIED";
1537
- producedAt: string;
1538
- recordedAt: string;
1539
- recordedBy: {
1540
- name: string;
1541
- id: string;
1542
- };
1543
- wastages: {
1544
- measurement: {
1545
- name: string;
1546
- id: string;
1547
- abbrev: string;
1548
- conversion: {
1549
- amount: number;
1550
- precision: number;
1551
- };
1552
- baseUnitId: string;
1553
- };
1554
- skuId: string;
1555
- amount: {
1556
- amount: number;
1557
- precision: number;
1558
- };
1559
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
1560
- remark: string | null;
1561
- itemSkuId: string;
1562
- }[];
1563
- }[];
1564
- } | null>;
1565
- phase: import("vue").Ref<ProductionRunDetailPhase, ProductionRunDetailPhase>;
1566
- errorMessage: import("vue").Ref<string | null, string | null>;
1567
- activeTab: import("vue").Ref<ProductionRunDetailTab, ProductionRunDetailTab>;
1568
- tabs: import("vue").ComputedRef<ProductionRunDetailTab[]>;
1569
- locationName: import("vue").ComputedRef<string>;
1570
- stockRecalculation: import("vue").Ref<StockRecalculationState | null, StockRecalculationState | null>;
1571
- stockRecalculationRequired: import("vue").ComputedRef<boolean>;
1572
- /** The one way to take a stock-moving write's answer onto the page. */
1573
- adoptWriteResult: (result: WithRev<{
1574
- _rev?: string | null | undefined;
1575
- closedAt?: string | null | undefined;
1576
- cancelledAt?: string | null | undefined;
1577
- cancelReason?: string | null | undefined;
1578
- status: "DRAFT" | "REQUESTING" | "CANCEL" | "CLOSED" | "PREPARING";
1579
- _id: string;
1580
- createdAt: string;
1581
- createdBy: {
1582
- name: string;
1583
- id: string;
1584
- };
1585
- activityLogs: {
1586
- remark?: string | null | undefined;
1587
- action: "cancel" | "close" | "create" | "update" | "request" | "complete" | "prepare";
1588
- performedAt: string;
1589
- performedBy: {
1590
- name: string;
1591
- id: string;
1592
- };
1593
- }[];
1594
- runNo: number;
1595
- runName: string | null;
1596
- instructions: string | null;
1597
- plan: {
1598
- items: {
1599
- measurement: {
1600
- name: string;
1601
- id: string;
1602
- abbrev: string;
1603
- conversion: {
1604
- amount: number;
1605
- precision: number;
1606
- };
1607
- baseUnitId: string;
1608
- };
1609
- skuId: string;
1610
- requestedAmount: {
1611
- amount: number;
1612
- precision: number;
1613
- };
1614
- }[];
1615
- requirements: {
1616
- ingredients: {
1617
- amounts: {
1618
- measurement: {
1619
- name: string;
1620
- id: string;
1621
- abbrev: string;
1622
- conversion: {
1623
- amount: number;
1624
- precision: number;
1625
- };
1626
- baseUnitId: string;
1627
- };
1628
- amount: {
1629
- amount: number;
1630
- precision: number;
1631
- };
1632
- outputSkuId: string;
1633
- rateBasis: {
1634
- outputMeasurement: {
1635
- name: string;
1636
- id: string;
1637
- abbrev: string;
1638
- conversion: {
1639
- amount: number;
1640
- precision: number;
1641
- };
1642
- baseUnitId: string;
1643
- };
1644
- };
1645
- }[];
1646
- ingredient: {
1647
- code: string;
1648
- skuId: string;
1649
- name: string;
1650
- baseUnit: {
1651
- name: string;
1652
- id: string;
1653
- abbrev: string;
1654
- conversion: {
1655
- amount: number;
1656
- precision: number;
1657
- };
1658
- baseUnitId: string;
1659
- };
1660
- basePrecision: number;
1661
- };
1662
- }[];
1663
- skippedSkuIds: string[];
1664
- } | null;
1665
- };
1666
- preparation: {
1667
- pendingIssuance?: {
1668
- remark?: string | null | undefined;
1669
- adjustmentId: string;
1670
- items: {
1671
- measurement: {
1672
- name: string;
1673
- id: string;
1674
- abbrev: string;
1675
- conversion: {
1676
- amount: number;
1677
- precision: number;
1678
- };
1679
- baseUnitId: string;
1680
- };
1681
- sku: {
1682
- trackingMeasurement?: string | null | undefined;
1683
- isInactive?: boolean | null | undefined;
1684
- convert?: {
1685
- measurement?: string | null | undefined;
1686
- inventoryBindings?: {
1687
- measurement?: {
1688
- name: string;
1689
- id: string;
1690
- abbrev: string;
1691
- conversion: {
1692
- amount: number;
1693
- precision: number;
1694
- };
1695
- } | null | undefined;
1696
- rules?: Record<string, any> | null | undefined;
1697
- alternatives?: {
1698
- default?: boolean | null | undefined;
1699
- trackingMeasurement?: string | null | undefined;
1700
- priority?: number | null | undefined;
1701
- _id: string;
1702
- }[] | null | undefined;
1703
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1704
- amount: {
1705
- amount: number;
1706
- precision: number;
1707
- };
1708
- id: string;
1709
- }[] | null | undefined;
1710
- } | null | undefined;
1711
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1712
- defaultCost?: {
1713
- measurement?: {
1714
- name: string;
1715
- id: string;
1716
- abbrev: string;
1717
- conversion: {
1718
- amount: number;
1719
- precision: number;
1720
- };
1721
- } | null | undefined;
1722
- costPerUnit: {
1723
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1724
- amount: number;
1725
- precision: number;
1726
- };
1727
- } | null | undefined;
1728
- operationalGroup?: string | null | undefined;
1729
- thresholds?: {
1730
- low: number;
1731
- mid: number;
1732
- } | null | undefined;
1733
- customAttributes?: Record<string, any> | null | undefined;
1734
- unit: {
1735
- _id: string;
1736
- name: string;
1737
- abbrev: string;
1738
- precision: number;
1739
- measurements: {
1740
- name: string;
1741
- id: string;
1742
- abbrev: string;
1743
- conversion: {
1744
- amount: number;
1745
- precision: number;
1746
- };
1747
- }[];
1748
- };
1749
- code: string;
1750
- _id: string;
1751
- name: string;
1752
- };
1753
- committedAmount: {
1754
- amount: number;
1755
- precision: number;
1756
- };
1757
- }[];
1758
- skippedSkuIds: string[];
1759
- acknowledgedShortages: {
1760
- skuId: string;
1761
- baseUnit: {
1762
- name: string;
1763
- id: string;
1764
- abbrev: string;
1765
- conversion: {
1766
- amount: number;
1767
- precision: number;
1768
- };
1769
- baseUnitId: string;
1770
- };
1771
- projectedBalance: {
1772
- amount: number;
1773
- precision: number;
1774
- };
1775
- }[];
1776
- movement: {
1777
- sku: {
1778
- trackingMeasurement?: string | null | undefined;
1779
- isInactive?: boolean | null | undefined;
1780
- convert?: {
1781
- measurement?: string | null | undefined;
1782
- inventoryBindings?: {
1783
- measurement?: {
1784
- name: string;
1785
- id: string;
1786
- abbrev: string;
1787
- conversion: {
1788
- amount: number;
1789
- precision: number;
1790
- };
1791
- } | null | undefined;
1792
- rules?: Record<string, any> | null | undefined;
1793
- alternatives?: {
1794
- default?: boolean | null | undefined;
1795
- trackingMeasurement?: string | null | undefined;
1796
- priority?: number | null | undefined;
1797
- _id: string;
1798
- }[] | null | undefined;
1799
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1800
- amount: {
1801
- amount: number;
1802
- precision: number;
1803
- };
1804
- id: string;
1805
- }[] | null | undefined;
1806
- } | null | undefined;
1807
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1808
- defaultCost?: {
1809
- measurement?: {
1810
- name: string;
1811
- id: string;
1812
- abbrev: string;
1813
- conversion: {
1814
- amount: number;
1815
- precision: number;
1816
- };
1817
- } | null | undefined;
1818
- costPerUnit: {
1819
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1820
- amount: number;
1821
- precision: number;
1822
- };
1823
- } | null | undefined;
1824
- operationalGroup?: string | null | undefined;
1825
- thresholds?: {
1826
- low: number;
1827
- mid: number;
1828
- } | null | undefined;
1829
- customAttributes?: Record<string, any> | null | undefined;
1830
- unit: {
1831
- _id: string;
1832
- name: string;
1833
- abbrev: string;
1834
- precision: number;
1835
- measurements: {
1836
- name: string;
1837
- id: string;
1838
- abbrev: string;
1839
- conversion: {
1840
- amount: number;
1841
- precision: number;
1842
- };
1843
- }[];
1844
- };
1845
- code: string;
1846
- _id: string;
1847
- name: string;
1848
- };
1849
- amounts: {
1850
- measurement: {
1851
- name: string;
1852
- id: string;
1853
- abbrev: string;
1854
- conversion: {
1855
- amount: number;
1856
- precision: number;
1857
- };
1858
- baseUnitId: string;
1859
- };
1860
- amount: {
1861
- amount: number;
1862
- precision: number;
1863
- };
1864
- outputSkuId: string;
1865
- }[];
1866
- }[];
1867
- claimedAt: string;
1868
- claimedBy: {
1869
- name: string;
1870
- id: string;
1871
- };
1872
- } | null | undefined;
1873
- issuances: {
1874
- remark?: string | null | undefined;
1875
- adjustmentId: string;
1876
- items: {
1877
- measurement: {
1878
- name: string;
1879
- id: string;
1880
- abbrev: string;
1881
- conversion: {
1882
- amount: number;
1883
- precision: number;
1884
- };
1885
- baseUnitId: string;
1886
- };
1887
- sku: {
1888
- trackingMeasurement?: string | null | undefined;
1889
- isInactive?: boolean | null | undefined;
1890
- convert?: {
1891
- measurement?: string | null | undefined;
1892
- inventoryBindings?: {
1893
- measurement?: {
1894
- name: string;
1895
- id: string;
1896
- abbrev: string;
1897
- conversion: {
1898
- amount: number;
1899
- precision: number;
1900
- };
1901
- } | null | undefined;
1902
- rules?: Record<string, any> | null | undefined;
1903
- alternatives?: {
1904
- default?: boolean | null | undefined;
1905
- trackingMeasurement?: string | null | undefined;
1906
- priority?: number | null | undefined;
1907
- _id: string;
1908
- }[] | null | undefined;
1909
- type: "RECIPE" | "SKU" | "SKU_GROUP";
1910
- amount: {
1911
- amount: number;
1912
- precision: number;
1913
- };
1914
- id: string;
1915
- }[] | null | undefined;
1916
- } | null | undefined;
1917
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
1918
- defaultCost?: {
1919
- measurement?: {
1920
- name: string;
1921
- id: string;
1922
- abbrev: string;
1923
- conversion: {
1924
- amount: number;
1925
- precision: number;
1926
- };
1927
- } | null | undefined;
1928
- costPerUnit: {
1929
- currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
1930
- amount: number;
1931
- precision: number;
1932
- };
1933
- } | null | undefined;
1934
- operationalGroup?: string | null | undefined;
1935
- thresholds?: {
1936
- low: number;
1937
- mid: number;
1938
- } | null | undefined;
1939
- customAttributes?: Record<string, any> | null | undefined;
1940
- unit: {
1941
- _id: string;
1942
- name: string;
1943
- abbrev: string;
1944
- precision: number;
1945
- measurements: {
1946
- name: string;
1947
- id: string;
1948
- abbrev: string;
1949
- conversion: {
1950
- amount: number;
1951
- precision: number;
1952
- };
1953
- }[];
1954
- };
1955
- code: string;
1956
- _id: string;
1957
- name: string;
1958
- };
1959
- committedAmount: {
1960
- amount: number;
1961
- precision: number;
1962
- };
1963
- }[];
1964
- skippedSkuIds: string[];
1965
- issuedAt: string;
1966
- issuedBy: {
1967
- name: string;
1968
- id: string;
1969
- };
1970
- acknowledgedShortages: {
1971
- skuId: string;
1972
- baseUnit: {
1973
- name: string;
1974
- id: string;
1975
- abbrev: string;
1976
- conversion: {
1977
- amount: number;
1978
- precision: number;
1979
- };
1980
- baseUnitId: string;
1981
- };
1982
- projectedBalance: {
1983
- amount: number;
1984
- precision: number;
1985
- };
1986
- }[];
1987
- movement: {
1988
- amounts: {
1989
- measurement: {
1990
- name: string;
1991
- id: string;
1992
- abbrev: string;
1993
- conversion: {
1994
- amount: number;
1995
- precision: number;
1996
- };
1997
- baseUnitId: string;
1998
- };
1999
- amount: {
2000
- amount: number;
2001
- precision: number;
2002
- };
2003
- outputSkuId: string;
2004
- }[];
2005
- ingredient: {
2006
- code: string;
2007
- skuId: string;
2008
- name: string;
2009
- baseUnit: {
2010
- name: string;
2011
- id: string;
2012
- abbrev: string;
2013
- conversion: {
2014
- amount: number;
2015
- precision: number;
2016
- };
2017
- baseUnitId: string;
2018
- };
2019
- basePrecision: number;
2020
- };
2021
- }[];
2022
- }[];
2023
- };
2024
- batches: {
2025
- adjustmentId: string;
2026
- id: string;
2027
- remark: string | null;
2028
- items: {
2029
- measurement: {
2030
- name: string;
2031
- id: string;
2032
- abbrev: string;
2033
- conversion: {
2034
- amount: number;
2035
- precision: number;
2036
- };
2037
- baseUnitId: string;
2038
- };
2039
- skuId: string;
2040
- producedAmount: {
2041
- amount: number;
2042
- precision: number;
2043
- };
2044
- }[];
2045
- operationKey: string;
2046
- stockApplicationStatus: "PENDING" | "APPLIED";
2047
- producedAt: string;
2048
- recordedAt: string;
2049
- recordedBy: {
2050
- name: string;
2051
- id: string;
2052
- };
2053
- wastages: {
2054
- measurement: {
2055
- name: string;
2056
- id: string;
2057
- abbrev: string;
2058
- conversion: {
2059
- amount: number;
2060
- precision: number;
2061
- };
2062
- baseUnitId: string;
2063
- };
2064
- skuId: string;
2065
- amount: {
2066
- amount: number;
2067
- precision: number;
2068
- };
2069
- reason: "OTHER" | "TRIM" | "COOKING" | "SPOILAGE" | "SPILLAGE";
2070
- remark: string | null;
2071
- itemSkuId: string;
2072
- }[];
2073
- }[];
2074
- }> | {
2075
- run: WithRev<FdoProductionRun>;
2076
- stockRecalculationRequired: boolean;
2077
- stockRecalculationDispatch?: RecalculationDispatch | undefined;
2078
- }) => void;
2079
- hasIssuance: import("vue").ComputedRef<boolean>;
2080
- batches: import("vue").ComputedRef<ProductionOutputBatch[]>;
2081
- committed: import("vue").ComputedRef<number | null>;
2082
- produced: import("vue").ComputedRef<number | null>;
2083
- remaining: import("vue").ComputedRef<number | null>;
2084
- attainmentPercent: import("vue").ComputedRef<number | null>;
2085
- atTarget: import("vue").ComputedRef<boolean>;
2086
- targetReachedOpen: import("vue").ComputedRef<boolean>;
2087
- outcome: import("vue").ComputedRef<"target-reached" | "below-target" | null>;
2088
- summable: import("vue").ComputedRef<boolean>;
2089
- legalActions: import("vue").ComputedRef<import("../../shared/model/use-production-run-actions").ProductionRunAction[]>;
2090
- /** Legality asked as a question, so callers never re-derive the table. */
2091
- can: (action: ProductionRunLifecycleAction) => boolean;
2092
- primaryAction: import("vue").ComputedRef<ProductionRunLifecycleAction | null>;
2093
- secondaryActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
2094
- dangerActions: import("vue").ComputedRef<ProductionRunLifecycleAction[]>;
2095
- load: () => Promise<void>;
2096
- reload: () => Promise<void>;
2097
- };
2098
- export {};