@feedmepos/mf-inventory-portal 1.7.13-dev.4 → 1.7.13-dev.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/dist/{App-Cfp4CqzQ.js → App-JqoqVVdP.js} +354 -348
  2. package/dist/{ApprovalView-DO91AQ5f.js → ApprovalView-JiWbXkVU.js} +9 -9
  3. package/dist/{BindingsDialog-DUj0z6N7.js → BindingsDialog-BK4xofWu.js} +2 -2
  4. package/dist/{BindingsPicker-CD2J6-_Z.js → BindingsPicker-CLMsAseG.js} +2 -2
  5. package/dist/{BindingsTable-B2FEKZXU.js → BindingsTable-DKrBQTxN.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-ejHyukEp.js → BulkReceiveRequestView-bttHw2ub.js} +19 -19
  7. package/dist/{ClosingDraftView-tIvrsfYH.js → ClosingDraftView-Bhdwo-n8.js} +19 -19
  8. package/dist/ClosingHistoryView-DrQPWnr6.js +761 -0
  9. package/dist/{ClosingTemplateView-C-hL9uPv.js → ClosingTemplateView-UkwXCrz_.js} +16 -16
  10. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BffF8S_q.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DNtMdFVF.js} +1 -1
  11. package/dist/{DefaultView-BLbtx0Ho.js → DefaultView-sGrYeUGh.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-BLQHL7aB.js → DeliveryOrderPrintPreview-CVnqC9Jy.js} +10 -10
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BnTAuutB.js → EmailDialog.vue_vue_type_script_setup_true_lang-CYtHQ2Ru.js} +2250 -2250
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Mxhn0b6c.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DXTdvT0C.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hrk0cTBX.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtfiRgsD.js} +2 -2
  16. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yBIbCJYy.js +243 -0
  17. package/dist/{FmMultiselectDialog-Bpi5rI0h.js → FmMultiselectDialog-A9VIMLGn.js} +1 -1
  18. package/dist/{FmMultiselectDialog-Bi6XlAAU.js → FmMultiselectDialog-DL00XnUc.js} +2 -2
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-e55tnl4u.js → FmUnitInput.vue_vue_type_script_setup_true_lang-RJKOB-cm.js} +66 -63
  20. package/dist/{ImportView-xPTzBekx.js → ImportView-DPrLnJO8.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-tvmS42s_.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-IAQyFPmi.js} +1 -1
  22. package/dist/{IngredientGroupView-RFcqjF8T.js → IngredientGroupView-DyhC6lJ8.js} +5 -5
  23. package/dist/{IngredientsView-CvWOgquN.js → IngredientsView-P4AqPikD.js} +15 -15
  24. package/dist/{IntegrationExplorerView-CYNhsJSS.js → IntegrationExplorerView-CujhjHHV.js} +4 -4
  25. package/dist/{IntegrationView-ZtLokbu3.js → IntegrationView-CFqsZyzI.js} +3074 -2999
  26. package/dist/{InventoryBindingForm-DwiAIf5v.js → InventoryBindingForm-B0NJ8H51.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-njDaQe10.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-bbIpFo_4.js} +5 -5
  28. package/dist/{InventoryBindingSummary-zim_Bp5_.js → InventoryBindingSummary-CBgO_tCz.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CfTgt5xW.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DuuXzyKH.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-LLtd1VvM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C418f34P.js} +1 -1
  31. package/dist/ProductionRunDetailView-tSByC3nQ.js +5165 -0
  32. package/dist/ProductionRunPreparePrintView-zPAATL-n.js +31 -0
  33. package/dist/ProductionRunTabs.vue_vue_type_script_setup_true_lang-DgtZJgrs.js +3506 -0
  34. package/dist/ProductionRunView-BsP02jgC.js +815 -0
  35. package/dist/{PublishView-DFXOi7Hx.js → PublishView-Cf0Tn7xt.js} +3 -3
  36. package/dist/{PurchaseOrderPrintPreview-CG6kBQ26.js → PurchaseOrderPrintPreview-BTlSyQqZ.js} +6 -6
  37. package/dist/{ReceiveRequestView-DKMVMo7M.js → ReceiveRequestView-9LFOl2hJ.js} +14 -14
  38. package/dist/{RecipeView-cLLKlLmE.js → RecipeView-C4KxMCpQ.js} +17 -17
  39. package/dist/{SettingsView-Cmf2ZOUL.js → SettingsView-ShrefnTM.js} +4 -4
  40. package/dist/{StockView-DTai8l8U.js → StockView-BVd6f7Fr.js} +21 -21
  41. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BlKm7GLw.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B-rB7p9o.js} +1 -1
  42. package/dist/{SupplierView-CRAHOOLm.js → SupplierView-DZSY6_eU.js} +12 -12
  43. package/dist/{SurchargeView-3XymEvcr.js → SurchargeView-UUYoT8MK.js} +6 -6
  44. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DcXfQr_8.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BLMxzi1C.js} +2 -2
  45. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-qhJVHahS.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-z3qIVKP7.js} +1 -1
  46. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CibsrZXw.js → TransferDetails.vue_vue_type_script_setup_true_lang-DEO8CP-X.js} +20 -20
  47. package/dist/{TransferTemplateView-ByhvK4Ua.js → TransferTemplateView-C21o2V_1.js} +20 -20
  48. package/dist/{UnitCostHistoryView-DHHWNJYA.js → UnitCostHistoryView-DPEGVLBP.js} +4 -4
  49. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-bQu2KOI7.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BuGmmHBk.js} +4 -4
  50. package/dist/{UnitView-BZTS-Ahu.js → UnitView-Bx03E4uc.js} +7 -7
  51. package/dist/{WarehouseView-DVak1RPs.js → WarehouseView-BehHQ9Ao.js} +6 -6
  52. package/dist/{WastageTemplateView-CUDL3HUD.js → WastageTemplateView-gmr7doXL.js} +14 -14
  53. package/dist/api/netsuite.d.ts +13 -0
  54. package/dist/api/production-run-error.d.ts +36 -0
  55. package/dist/api/production-run-error.spec.d.ts +1 -0
  56. package/dist/api/production-run.d.ts +58 -0
  57. package/dist/api/stock.d.ts +0 -6
  58. package/dist/{app-BUQUpe4c.js → app-BT7hD4az.js} +16491 -12629
  59. package/dist/app.d.ts +2958 -14
  60. package/dist/app.js +1 -1
  61. package/dist/{closing-template-DzxDiEQB.js → closing-template-BNfr1RIX.js} +1 -1
  62. package/dist/components/FmInventoryBanner.vue.d.ts +39 -0
  63. package/dist/components/FmUnitInput.spec.d.ts +1 -0
  64. package/dist/components/FmUnitInputProps.d.ts +2 -0
  65. package/dist/composable/useModalA11y.d.ts +9 -0
  66. package/dist/composable/useModalA11y.spec.d.ts +1 -0
  67. package/dist/{date2-6jkfRNS_.js → date2-CAh7rsAp.js} +1 -1
  68. package/dist/{dayjs.min-ByRnXzrl.js → dayjs.min-BJk-edO7.js} +7 -7
  69. package/dist/{decimal-CqWBdj8E.js → decimal-DYlKNkVX.js} +2 -2
  70. package/dist/{defineDeepModel-CaT-4fiq.js → defineDeepModel-BPHl7mTD.js} +1 -1
  71. package/dist/{duplicate-template-Cyvx-WK7.js → duplicate-template-BWUUIdzG.js} +1 -1
  72. package/dist/{feature-FjXz4WXw.js → feature-CSvVyBN2.js} +2 -2
  73. package/dist/{format-time-from-id-cSri3OoO.js → format-time-from-id-Dh3lxXpc.js} +1 -1
  74. package/dist/{format-unit-display-DPbcT7Ff.js → format-unit-display-B1ft2wxm.js} +12 -12
  75. package/dist/{import-export.helper-_yqcePYs.js → import-export.helper-txDvkMf0.js} +6 -6
  76. package/dist/{index-CyJVMHQW.js → index-AmTodx3_.js} +1 -1
  77. package/dist/{index-CGvNoBid.js → index-B4wQijn6.js} +1 -1
  78. package/dist/{index-nSL5yxNn.js → index-TIX5DyQk.js} +3 -3
  79. package/dist/inventory-core-dart.default-BpMxAF-0.js +31060 -0
  80. package/dist/{lz-string-iyER1Klb.js → lz-string-CFDYH-K6.js} +1 -1
  81. package/dist/{netsuite-BD8LVxaA.js → netsuite-CdW9v92G.js} +477 -462
  82. package/dist/{number-C7CJ9ZfE.js → number-DRRlTYv7.js} +6 -6
  83. package/dist/{predefined-templates-o-_pKVSM.js → predefined-templates-C68U85pc.js} +1 -1
  84. package/dist/production-run-display-DmyfdjHR.js +239 -0
  85. package/dist/production-run-prepare-sheet-BvxMd19E.js +189 -0
  86. package/dist/{purchase-order-template-BHS8T1VA.js → purchase-order-template-BvED3CpO.js} +1 -1
  87. package/dist/{recalculationUtils-BCByr_CU.js → recalculationUtils-9rFepwwr.js} +1 -1
  88. package/dist/router/name.d.ts +2 -0
  89. package/dist/{rules-wZo-8FZ0.js → rules-C8RmopTe.js} +2 -2
  90. package/dist/{stock-DwqEvWM5.js → stock-BKkluaaM.js} +26 -36
  91. package/dist/{stock-CnAjxV7P.js → stock-CiCsT5JK.js} +3 -3
  92. package/dist/stores/integration/codemax.d.ts +1 -1
  93. package/dist/stores/integration/netsuite.d.ts +54 -0
  94. package/dist/style.css +1 -1
  95. package/dist/{supplier-DkqNwQmi.js → supplier--zZMQHPc.js} +2 -2
  96. package/dist/{surcharge-Csj1WYbH.js → surcharge-BLF3XV0G.js} +1 -1
  97. package/dist/tsconfig.app.tsbuildinfo +1 -1
  98. package/dist/{uom-rules-BI1CdWeS.js → uom-rules-CjCCXiGL.js} +1 -1
  99. package/dist/{use-ingredient-select-dialog-5AqoZJDA.js → use-ingredient-select-dialog-DnUiY-Ic.js} +2 -2
  100. package/dist/{use-inventory-binding-dialog-ChiyhiuP.js → use-inventory-binding-dialog-BAU-P8kV.js} +2 -2
  101. package/dist/{use-template-enabled-locations-BqXxegct.js → use-template-enabled-locations-DZMzYCi-.js} +2 -2
  102. package/dist/{use-transfer-locations-Ckj_diGt.js → use-transfer-locations-DomGLsT2.js} +2 -2
  103. package/dist/{useHrmPermission-USG_KRoq.js → useHrmPermission-CrhsV_5z.js} +1 -1
  104. package/dist/{useNavigationMenu-BhYf87KI.js → useNavigationMenu-1h-G_-el.js} +2 -2
  105. package/dist/{useSseClient-BqoE-ir6.js → useSseClient-o_3wiqhX.js} +1 -1
  106. package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +1 -1
  107. package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -1
  108. package/dist/views/integration/components/ApplyProductDialogCodemax.vue.d.ts +2 -2
  109. package/dist/views/integration/components/CodemaxDialog.vue.d.ts +2 -2
  110. package/dist/views/integration/components/netsuite/business/vendor-publish.d.ts +7 -0
  111. package/dist/views/integration/components/netsuite/business/vendor-publish.spec.d.ts +1 -0
  112. package/dist/views/production-run/ProductionRunDetailView.spec.d.ts +1 -0
  113. package/dist/views/production-run/ProductionRunDetailView.vue.d.ts +15 -0
  114. package/dist/views/production-run/ProductionRunPreparePrintView.spec.d.ts +1 -0
  115. package/dist/views/production-run/ProductionRunPreparePrintView.vue.d.ts +2 -0
  116. package/dist/views/production-run/ProductionRunView.spec.d.ts +1 -0
  117. package/dist/views/production-run/ProductionRunView.vue.d.ts +2 -0
  118. package/dist/views/production-run/components/CancelRunDialog.spec.d.ts +1 -0
  119. package/dist/views/production-run/components/CancelRunDialog.vue.d.ts +918 -0
  120. package/dist/views/production-run/components/CancelRunDialogProps.d.ts +9 -0
  121. package/dist/views/production-run/components/CloseRunDialog.spec.d.ts +1 -0
  122. package/dist/views/production-run/components/CloseRunDialog.vue.d.ts +918 -0
  123. package/dist/views/production-run/components/CloseRunDialogProps.d.ts +29 -0
  124. package/dist/views/production-run/components/PrepareRunConfirmationDialog.spec.d.ts +1 -0
  125. package/dist/views/production-run/components/PrepareRunConfirmationDialog.vue.d.ts +29 -0
  126. package/dist/views/production-run/components/PrepareRunDialog.spec.d.ts +1 -0
  127. package/dist/views/production-run/components/PrepareRunDialog.vue.d.ts +18 -0
  128. package/dist/views/production-run/components/PrepareRunDialogProps.d.ts +29 -0
  129. package/dist/views/production-run/components/PrepareSheetDialog.spec.d.ts +1 -0
  130. package/dist/views/production-run/components/PrepareSheetDialog.vue.d.ts +26 -0
  131. package/dist/views/{stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts → production-run/components/ProductionRunActionMenuItem.vue.d.ts} +7 -10
  132. package/dist/views/production-run/components/ProductionRunActionsCell.spec.d.ts +1 -0
  133. package/dist/views/production-run/components/ProductionRunActionsCell.vue.d.ts +20 -0
  134. package/dist/views/production-run/components/ProductionRunActivityTab.spec.d.ts +1 -0
  135. package/dist/views/production-run/components/ProductionRunActivityTab.vue.d.ts +15 -0
  136. package/dist/views/production-run/components/ProductionRunBanner.spec.d.ts +1 -0
  137. package/dist/views/production-run/components/ProductionRunBanner.vue.d.ts +42 -0
  138. package/dist/views/production-run/components/ProductionRunBatchCard.spec.d.ts +1 -0
  139. package/dist/views/production-run/components/ProductionRunBatchCard.vue.d.ts +69 -0
  140. package/dist/views/production-run/components/ProductionRunBatchWastageDetails.spec.d.ts +1 -0
  141. package/dist/views/production-run/components/ProductionRunBatchWastageDetails.vue.d.ts +33 -0
  142. package/dist/views/production-run/components/ProductionRunBindingsDisclosure.spec.d.ts +1 -0
  143. package/dist/views/production-run/components/ProductionRunBindingsDisclosure.vue.d.ts +25 -0
  144. package/dist/views/production-run/components/ProductionRunBindingsList.vue.d.ts +51 -0
  145. package/dist/views/production-run/components/ProductionRunCompactDisclosure.vue.d.ts +25 -0
  146. package/dist/views/production-run/components/ProductionRunContributorBranch.spec.d.ts +1 -0
  147. package/dist/views/production-run/components/ProductionRunContributorBranch.vue.d.ts +25 -0
  148. package/dist/views/production-run/components/ProductionRunCostRail.spec.d.ts +1 -0
  149. package/dist/views/production-run/components/ProductionRunCostRail.vue.d.ts +77 -0
  150. package/dist/views/production-run/components/ProductionRunDialog.spec.d.ts +1 -0
  151. package/dist/views/production-run/components/ProductionRunDialog.vue.d.ts +24 -0
  152. package/dist/views/production-run/components/ProductionRunDialogProps.d.ts +15 -0
  153. package/dist/views/production-run/components/ProductionRunDialogSurface.vue.d.ts +33 -0
  154. package/dist/views/production-run/components/ProductionRunDiscardDialog.spec.d.ts +1 -0
  155. package/dist/views/production-run/components/ProductionRunDiscardDialog.vue.d.ts +21 -0
  156. package/dist/views/production-run/components/ProductionRunDuplicateDialog.spec.d.ts +1 -0
  157. package/dist/views/production-run/components/ProductionRunDuplicateDialog.vue.d.ts +51 -0
  158. package/dist/views/production-run/components/ProductionRunFormDialog.spec.d.ts +1 -0
  159. package/dist/views/production-run/components/ProductionRunFormDialog.vue.d.ts +918 -0
  160. package/dist/views/production-run/components/ProductionRunFormDialogProps.d.ts +22 -0
  161. package/dist/views/production-run/components/ProductionRunHeader.spec.d.ts +1 -0
  162. package/dist/views/production-run/components/ProductionRunHeader.vue.d.ts +65 -0
  163. package/dist/views/production-run/components/ProductionRunHelpPopover.spec.d.ts +1 -0
  164. package/dist/views/production-run/components/ProductionRunHelpPopover.vue.d.ts +52 -0
  165. package/dist/views/production-run/components/ProductionRunIngredientTree.spec.d.ts +1 -0
  166. package/dist/views/production-run/components/ProductionRunIngredientTree.vue.d.ts +42 -0
  167. package/dist/views/production-run/components/ProductionRunIngredientsTab.spec.d.ts +1 -0
  168. package/dist/views/production-run/components/ProductionRunIngredientsTab.vue.d.ts +63 -0
  169. package/dist/views/production-run/components/ProductionRunInstructionsCard.spec.d.ts +1 -0
  170. package/dist/views/production-run/components/ProductionRunInstructionsCard.vue.d.ts +15 -0
  171. package/dist/views/production-run/components/ProductionRunItemPickerDialog.spec.d.ts +1 -0
  172. package/dist/views/production-run/components/ProductionRunItemPickerDialog.vue.d.ts +30 -0
  173. package/dist/views/production-run/components/ProductionRunItemsCell.spec.d.ts +1 -0
  174. package/dist/views/production-run/components/ProductionRunItemsCell.vue.d.ts +33 -0
  175. package/dist/views/production-run/components/ProductionRunItemsTable.spec.d.ts +1 -0
  176. package/dist/views/production-run/components/ProductionRunItemsTable.vue.d.ts +73 -0
  177. package/dist/views/production-run/components/ProductionRunLoadBannerContract.spec.d.ts +1 -0
  178. package/dist/views/production-run/components/ProductionRunNoBindingsHelp.spec.d.ts +1 -0
  179. package/dist/views/production-run/components/ProductionRunNoBindingsHelp.vue.d.ts +15 -0
  180. package/dist/views/production-run/components/ProductionRunOutputTab.spec.d.ts +1 -0
  181. package/dist/views/production-run/components/ProductionRunOutputTab.vue.d.ts +26 -0
  182. package/dist/views/production-run/components/ProductionRunOverviewTab.spec.d.ts +1 -0
  183. package/dist/views/production-run/components/ProductionRunOverviewTab.vue.d.ts +999 -0
  184. package/dist/views/production-run/components/ProductionRunPlanCard.spec.d.ts +1 -0
  185. package/dist/views/production-run/components/ProductionRunPlanCard.vue.d.ts +50 -0
  186. package/dist/views/production-run/components/ProductionRunPlanner.spec.d.ts +1 -0
  187. package/dist/views/production-run/components/ProductionRunPlanner.vue.d.ts +61 -0
  188. package/dist/views/production-run/components/ProductionRunPrepareSheet.vue.d.ts +16 -0
  189. package/dist/views/production-run/components/ProductionRunProjectionFeedback.spec.d.ts +1 -0
  190. package/dist/views/production-run/components/ProductionRunProjectionFeedback.vue.d.ts +41 -0
  191. package/dist/views/production-run/components/ProductionRunRecordOutputDetails.spec.d.ts +1 -0
  192. package/dist/views/production-run/components/ProductionRunRecordOutputDetails.vue.d.ts +43 -0
  193. package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.spec.d.ts +1 -0
  194. package/dist/views/production-run/components/ProductionRunRecordOutputWastageStatus.vue.d.ts +31 -0
  195. package/dist/views/production-run/components/ProductionRunRequestedOverview.spec.d.ts +1 -0
  196. package/dist/views/production-run/components/ProductionRunRequestedOverview.vue.d.ts +48 -0
  197. package/dist/views/production-run/components/ProductionRunResultTable.spec.d.ts +1 -0
  198. package/dist/views/production-run/components/ProductionRunResultTable.vue.d.ts +31 -0
  199. package/dist/views/production-run/components/ProductionRunScrollHint.spec.d.ts +1 -0
  200. package/dist/views/production-run/components/ProductionRunScrollHint.vue.d.ts +31 -0
  201. package/dist/views/production-run/components/ProductionRunSelectionCheckbox.vue.d.ts +31 -0
  202. package/dist/views/production-run/components/ProductionRunSelectionControls.spec.d.ts +1 -0
  203. package/dist/views/production-run/components/ProductionRunSelectionRadio.spec.d.ts +1 -0
  204. package/dist/views/production-run/components/ProductionRunSelectionRadio.vue.d.ts +37 -0
  205. package/dist/views/production-run/components/ProductionRunSideSheet.spec.d.ts +1 -0
  206. package/dist/views/production-run/components/ProductionRunSideSheet.vue.d.ts +77 -0
  207. package/dist/views/production-run/components/ProductionRunSideSheetSurface.vue.d.ts +52 -0
  208. package/dist/views/production-run/components/ProductionRunSortHeader.spec.d.ts +1 -0
  209. package/dist/views/production-run/components/ProductionRunSortHeader.vue.d.ts +25 -0
  210. package/dist/views/production-run/components/ProductionRunStatusBadge.vue.d.ts +15 -0
  211. package/dist/views/production-run/components/ProductionRunTabs.spec.d.ts +1 -0
  212. package/dist/views/production-run/components/ProductionRunTabs.vue.d.ts +47 -0
  213. package/dist/views/production-run/components/ProductionRunTerminalNotice.spec.d.ts +1 -0
  214. package/dist/views/production-run/components/ProductionRunTerminalNotice.vue.d.ts +15 -0
  215. package/dist/views/production-run/components/ProductionRunTextarea.spec.d.ts +1 -0
  216. package/dist/views/production-run/components/ProductionRunTextarea.vue.d.ts +53 -0
  217. package/dist/views/production-run/components/ProductionRunUnitInput.spec.d.ts +1 -0
  218. package/dist/views/production-run/components/ProductionRunUnitInput.vue.d.ts +34 -0
  219. package/dist/views/production-run/components/ProductionRunWastageDisclosure.spec.d.ts +1 -0
  220. package/dist/views/production-run/components/ProductionRunWastageDisclosure.vue.d.ts +23 -0
  221. package/dist/views/production-run/components/RecordOutputDialog.spec.d.ts +1 -0
  222. package/dist/views/production-run/components/RecordOutputDialog.vue.d.ts +20 -0
  223. package/dist/views/production-run/components/RecordOutputDialogProps.d.ts +28 -0
  224. package/dist/views/production-run/components/TargetReachedDialog.spec.d.ts +1 -0
  225. package/dist/views/production-run/components/TargetReachedDialog.vue.d.ts +927 -0
  226. package/dist/views/production-run/components/production-run-deduction-parity.spec.d.ts +1 -0
  227. package/dist/views/production-run/components/production-run-prepare-sheet.d.ts +17 -0
  228. package/dist/views/production-run/components/production-run-typography-contract.spec.d.ts +1 -0
  229. package/dist/views/production-run/components/production-run-unit-snapshot.d.ts +39 -0
  230. package/dist/views/production-run/composables/production-run-display.d.ts +272 -0
  231. package/dist/views/production-run/composables/production-run-display.spec.d.ts +1 -0
  232. package/dist/views/production-run/composables/production-run-list.d.ts +46 -0
  233. package/dist/views/production-run/composables/production-run-list.spec.d.ts +1 -0
  234. package/dist/views/production-run/composables/production-run-request-confirmation.d.ts +20 -0
  235. package/dist/views/production-run/composables/use-production-run-actions.d.ts +37 -0
  236. package/dist/views/production-run/composables/use-production-run-actions.spec.d.ts +1 -0
  237. package/dist/views/production-run/composables/use-production-run-cost.d.ts +672 -0
  238. package/dist/views/production-run/composables/use-production-run-cost.spec.d.ts +1 -0
  239. package/dist/views/production-run/composables/use-production-run-detail.d.ts +1894 -0
  240. package/dist/views/production-run/composables/use-production-run-detail.spec.d.ts +1 -0
  241. package/dist/views/production-run/composables/use-production-run-disclosure.d.ts +15 -0
  242. package/dist/views/production-run/composables/use-production-run-disclosure.spec.d.ts +1 -0
  243. package/dist/views/production-run/composables/use-production-run-duplicate-sources.d.ts +19 -0
  244. package/dist/views/production-run/composables/use-production-run-duplicate-sources.spec.d.ts +1 -0
  245. package/dist/views/production-run/composables/use-production-run-economics.d.ts +92 -0
  246. package/dist/views/production-run/composables/use-production-run-economics.spec.d.ts +1 -0
  247. package/dist/views/production-run/composables/use-production-run-form.d.ts +277 -0
  248. package/dist/views/production-run/composables/use-production-run-form.spec.d.ts +1 -0
  249. package/dist/views/production-run/composables/use-production-run-record-output.d.ts +261 -0
  250. package/dist/views/production-run/composables/use-production-run-record-output.spec.d.ts +1 -0
  251. package/dist/views/production-run/composables/use-production-run-scroll-hint.d.ts +9 -0
  252. package/dist/views/production-run/composables/use-production-run-table.d.ts +19 -0
  253. package/dist/views/production-run/composables/use-production-run-table.spec.d.ts +1 -0
  254. package/dist/views/production-run/helpers/production-run-precision.helper.d.ts +31 -0
  255. package/dist/views/production-run/helpers/production-run-quantity.helper.d.ts +55 -0
  256. package/dist/views/production-run/helpers/production-run-quantity.helper.spec.d.ts +1 -0
  257. package/dist/views/production-run/production-run.fixture.d.ts +70 -0
  258. package/dist/views/production-run/production-run.fixture.spec.d.ts +1 -0
  259. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -3
  260. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +3 -3
  261. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +2 -17
  262. package/dist/{vue-i18n-DoKioQ81.js → vue-i18n-hE8n67Ig.js} +202 -202
  263. package/dist/{xlsx.util-BXjE2o-3.js → xlsx.util-Jv7EpwFc.js} +2 -2
  264. package/package.json +4 -4
  265. package/dist/ChangeLocationComponent.vue_vue_type_script_setup_true_lang-ashHOuZt.js +0 -130
  266. package/dist/ClosingHistoryView-BYVZ01Ma.js +0 -1112
  267. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-hTQmIyaf.js +0 -120
  268. package/dist/ProductionView-BWn7RBEg.js +0 -1441
  269. package/dist/inventory-core-dart.default-DSYRPQNZ.js +0 -25155
  270. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
@@ -1,6 +1,6 @@
1
- import { w as o } from "./app-BUQUpe4c.js";
2
- import { F as l } from "./decimal-CqWBdj8E.js";
3
- import "./dayjs.min-ByRnXzrl.js";
1
+ import { w as o } from "./app-BT7hD4az.js";
2
+ import { F as l } from "./decimal-DYlKNkVX.js";
3
+ import "./dayjs.min-BJk-edO7.js";
4
4
  function g(n, t) {
5
5
  return o.convertPrecision({
6
6
  value: n,
@@ -129,10 +129,10 @@ export {
129
129
  w as i,
130
130
  j,
131
131
  g as k,
132
- A as l,
133
- F as m,
132
+ $ as l,
133
+ A as m,
134
134
  x as n,
135
- $ as o,
135
+ F as o,
136
136
  v as t,
137
137
  N as u
138
138
  };
@@ -1,4 +1,4 @@
1
- import { d as qn, j as Wn, y as zn } from "./app-BUQUpe4c.js";
1
+ import { d as qn, j as Wn, y as zn } from "./app-BT7hD4az.js";
2
2
  import { defineStore as Vn } from "pinia";
3
3
  import { ref as mt, computed as Kn } from "vue";
4
4
  import { useCoreStore as Yn } from "@feedmepos/mf-common";
@@ -0,0 +1,239 @@
1
+ import { l as b } from "./number-DRRlTYv7.js";
2
+ import { F as i } from "./decimal-DYlKNkVX.js";
3
+ import { b as m, c as A } from "./inventory-core-dart.default-BpMxAF-0.js";
4
+ function g(t) {
5
+ return Object.fromEntries(
6
+ Object.entries(t).map(([e, n]) => [e, i.toDouble(n.amount)])
7
+ );
8
+ }
9
+ function w(t) {
10
+ return Object.values(t).reduce((e, n) => e + n, 0);
11
+ }
12
+ function d(t) {
13
+ return g(m.committedBySku({ run: t }).amounts);
14
+ }
15
+ function f(t) {
16
+ return g(m.producedBySku({ run: t }).amounts);
17
+ }
18
+ function C(t) {
19
+ return w(d(t));
20
+ }
21
+ function x(t) {
22
+ return w(f(t));
23
+ }
24
+ function B(t) {
25
+ const e = f(t);
26
+ return Object.fromEntries(
27
+ Object.entries(d(t)).map(([n, o]) => [
28
+ n,
29
+ Math.max(0, o - (e[n] ?? 0))
30
+ ])
31
+ );
32
+ }
33
+ function j(t) {
34
+ return A.isAtTarget({ run: t });
35
+ }
36
+ function I(t, e) {
37
+ return m.baseAmount({ amount: t, measurement: e });
38
+ }
39
+ function N(t, e) {
40
+ return i.toDouble(I(t, e));
41
+ }
42
+ function T(t, e) {
43
+ return i.toDouble(
44
+ e ? i.multiplyDecimal(t, e.conversion) : t
45
+ );
46
+ }
47
+ const l = "—", y = new Intl.DateTimeFormat("en-MY", {
48
+ day: "2-digit",
49
+ month: "short",
50
+ year: "numeric"
51
+ }), D = new Intl.DateTimeFormat("en-US", {
52
+ hour: "2-digit",
53
+ minute: "2-digit",
54
+ hour12: !0
55
+ });
56
+ function L(t) {
57
+ const e = t instanceof Date ? t : new Date(t);
58
+ return Number.isNaN(e.getTime()) ? typeof t == "string" ? t : l : `${y.format(e)}, ${D.format(e)}`;
59
+ }
60
+ const M = 2, p = "−";
61
+ function G(t, e, n = {}) {
62
+ const o = typeof t == "number" ? t : i.toDouble(t), u = Math.max(0, Math.trunc(n.precision ?? M)), r = (a) => e ? `${a} ${e}` : a;
63
+ if (o === 0) return r("0");
64
+ if (Number(o.toFixed(u)) === 0) {
65
+ const a = b(10 ** -u, { minPrecision: 0, maxPrecision: u }), O = n.deduction || o < 0 ? p : "";
66
+ return r(`${O}<${a}`);
67
+ }
68
+ const s = b(n.deduction ? Math.abs(o) : o, {
69
+ minPrecision: 0,
70
+ maxPrecision: u
71
+ });
72
+ return r(n.deduction ? `${p}${s}` : s);
73
+ }
74
+ function S(t, e) {
75
+ if (t == null) return l;
76
+ const n = new Intl.NumberFormat("en", {
77
+ style: "currency",
78
+ currency: e
79
+ }).resolvedOptions().maximumFractionDigits;
80
+ return `${e === "MYR" ? "RM" : e} ${i.toDouble(t).toFixed(n)}`;
81
+ }
82
+ function K(t, e) {
83
+ if (t == null) return l;
84
+ const n = new Intl.NumberFormat("en", {
85
+ style: "currency",
86
+ currency: e
87
+ }).resolvedOptions().maximumFractionDigits;
88
+ return S({ amount: Math.round(t * 10 ** n), precision: n }, e);
89
+ }
90
+ function W(t) {
91
+ return t.length === 0 ? null : `${E(t.length, "ingredient")} uncosted`;
92
+ }
93
+ function E(t, e, n = `${e}s`) {
94
+ return `${t} ${t === 1 ? e : n}`;
95
+ }
96
+ function Y(t, e = () => null) {
97
+ var u;
98
+ const n = /* @__PURE__ */ new Map();
99
+ for (const r of t.issuances)
100
+ for (const s of r.items) n.set(s.skuId, s.sku.unit.abbrev);
101
+ const o = /* @__PURE__ */ new Set();
102
+ for (const r of t.items) {
103
+ const s = n.get(r.skuId) ?? ((u = e(r.skuId)) == null ? void 0 : u.unit.abbrev);
104
+ if (!s) return null;
105
+ o.add(s);
106
+ }
107
+ return o.size === 1 ? [...o][0] : null;
108
+ }
109
+ function z(t, e = () => null) {
110
+ var u;
111
+ const n = /* @__PURE__ */ new Map();
112
+ for (const r of t.issuances)
113
+ for (const s of r.items) n.set(s.skuId, k(s.sku.unit));
114
+ const o = /* @__PURE__ */ new Set();
115
+ for (const r of t.items) {
116
+ const s = (u = e(r.skuId)) == null ? void 0 : u.unit, a = n.get(r.skuId) ?? (s ? k(s) : void 0);
117
+ a && o.add(a);
118
+ }
119
+ return o.size > 1;
120
+ }
121
+ function k(t) {
122
+ return t._id || t.abbrev;
123
+ }
124
+ function R(t, e) {
125
+ return Math.floor(c(t) / 6e4) < Math.floor(c(e) / 6e4);
126
+ }
127
+ function Q(t) {
128
+ return [...t.batches].map((e) => {
129
+ var n;
130
+ return {
131
+ id: e.id,
132
+ adjustmentId: e.adjustmentId,
133
+ producedAt: e.producedAt,
134
+ recordedAt: e.recordedAt,
135
+ isBackdated: R(e.producedAt, e.recordedAt),
136
+ recordedBy: e.recordedBy.name,
137
+ remark: ((n = e.remark) == null ? void 0 : n.trim()) || null,
138
+ items: e.items.map((o) => ({
139
+ skuId: o.skuId,
140
+ amount: N(o.producedAmount, o.measurement)
141
+ })),
142
+ // PR1 owns the durable line field. The old umbrella's generated type has
143
+ // not caught up yet, so this projection is the isolated rebase seam.
144
+ wastages: e.wastages ?? []
145
+ };
146
+ }).sort((e, n) => c(e.producedAt) - c(n.producedAt)).map((e, n) => ({ ...e, index: n + 1 }));
147
+ }
148
+ function c(t) {
149
+ const e = Date.parse(t);
150
+ return Number.isNaN(e) ? Number.MAX_SAFE_INTEGER : e;
151
+ }
152
+ const h = [
153
+ "TRIM",
154
+ "COOKING",
155
+ "SPOILAGE",
156
+ "SPILLAGE",
157
+ "OTHER"
158
+ ];
159
+ function F(t) {
160
+ return `inventory.production.run.wastageReason.${t}`;
161
+ }
162
+ function q(t) {
163
+ return t ? h.includes(t) ? F(t) : t : null;
164
+ }
165
+ function H(t) {
166
+ if (!(t != null && t.skus)) return [];
167
+ const e = /* @__PURE__ */ new Set();
168
+ for (const n of t.skus)
169
+ n.amounts.reduce(
170
+ (u, r) => u + T(r.amount, r.measurement),
171
+ 0
172
+ ) < 0 && e.add(n.sku._id);
173
+ return [...e];
174
+ }
175
+ function V(t) {
176
+ const e = (n) => ({ key: n, params: {}, showsAmount: !1 });
177
+ switch (t.costState) {
178
+ case "uncosted":
179
+ return t.uncostedNames.length > 0 ? {
180
+ key: "unknownCost",
181
+ params: { names: t.uncostedNames.join(", ") },
182
+ showsAmount: !1
183
+ } : e("unknownCostUncostedUnnamed");
184
+ case "negative-valuation":
185
+ return e("unknownCostNegative");
186
+ case "unattributable":
187
+ return e("unknownCostUnattributable");
188
+ case "unavailable":
189
+ return e("unknownCostUnavailable");
190
+ case "known":
191
+ return t.unabsorbed === null ? e("unknownCostUnavailable") : { key: "leavesUnabsorbed", params: {}, showsAmount: !0 };
192
+ }
193
+ }
194
+ function U(t) {
195
+ return t.status === "CLOSED";
196
+ }
197
+ function X(t) {
198
+ const e = v(t);
199
+ return e === null ? null : e === "below-target" ? "below-target" : "target-reached";
200
+ }
201
+ function v(t) {
202
+ if (!U(t)) return null;
203
+ const e = d(t), n = f(t);
204
+ let o = !1;
205
+ for (const [u, r] of Object.entries(e)) {
206
+ const s = n[u] ?? 0;
207
+ if (s < r) return "below-target";
208
+ s > r && (o = !0);
209
+ }
210
+ return o ? "above-target" : "at-target";
211
+ }
212
+ export {
213
+ l as N,
214
+ h as P,
215
+ L as a,
216
+ N as b,
217
+ d as c,
218
+ S as d,
219
+ K as e,
220
+ G as f,
221
+ q as g,
222
+ X as h,
223
+ j as i,
224
+ V as j,
225
+ Q as k,
226
+ U as l,
227
+ C as m,
228
+ x as n,
229
+ z as o,
230
+ f as p,
231
+ H as q,
232
+ B as r,
233
+ T as s,
234
+ v as t,
235
+ Y as u,
236
+ W as v,
237
+ F as w,
238
+ I as x
239
+ };
@@ -0,0 +1,189 @@
1
+ import { defineComponent as g, createElementBlock as d, openBlock as p, createElementVNode as t, createCommentVNode as _, toDisplayString as s, unref as i, Fragment as w, renderList as v } from "vue";
2
+ import { useI18n as x } from "@feedmepos/mf-common";
3
+ import { a as k, f as S } from "./production-run-display-DmyfdjHR.js";
4
+ import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { D as e } from "./app-BT7hD4az.js";
6
+ const P = {
7
+ "data-testid": "prepare-sheet-page",
8
+ class: "production-run-prepare-sheet-page mx-auto min-h-[297mm] w-[210mm] max-w-full bg-white p-24 shadow-md print:min-h-0 print:w-full print:max-w-none print:shadow-none"
9
+ }, j = { class: "border-b-2 border-fm-color-line pb-16" }, N = { class: "fm-typo-en-body-sm-600 uppercase text-fm-color-typo-secondary" }, A = { class: "fm-typo-en-heading-lg-600 mt-4 text-fm-color-typo-primary" }, U = { class: "fm-typo-en-body-sm-400 mt-4 text-fm-color-typo-secondary" }, D = {
10
+ key: 0,
11
+ class: "production-run-prepare-sheet-instructions mt-16 rounded-8 border border-fm-color-line p-12"
12
+ }, E = { class: "fm-typo-en-body-md-600" }, T = { class: "fm-typo-en-body-sm-400 mt-4 whitespace-pre-wrap" }, R = { class: "production-run-prepare-sheet-ingredients mt-20" }, M = { class: "fm-typo-en-title-sm-600" }, $ = {
13
+ key: 0,
14
+ "data-testid": "prepare-sheet-ingredients",
15
+ class: "mt-8 overflow-hidden rounded-8 border border-fm-color-line"
16
+ }, B = { class: "w-full table-fixed border-collapse text-left" }, L = { class: "bg-fm-color-neutral-gray-100" }, O = { class: "px-8 py-12 text-center" }, q = { class: "sr-only" }, C = { class: "px-8 py-12 fm-typo-en-body-sm-600 sm:px-12" }, F = { class: "px-8 py-12 text-center fm-typo-en-body-sm-600 sm:px-12" }, G = { class: "px-8 py-12 text-left fm-typo-en-body-sm-600 sm:px-12" }, J = { class: "min-w-0 px-8 py-12 fm-typo-en-body-md-600 sm:px-12" }, Q = { class: "px-8 py-12 text-center fm-typo-en-body-md-600 sm:px-12" }, V = { class: "px-8 py-12 sm:px-12" }, X = {
17
+ "data-testid": "prepare-sheet-qty-taken",
18
+ class: "flex min-w-0 items-end gap-6"
19
+ }, z = { class: "shrink-0 text-fm-color-typo-secondary" }, K = {
20
+ key: 1,
21
+ class: "fm-typo-en-body-sm-400 mt-8 text-fm-color-typo-secondary"
22
+ }, H = {
23
+ "data-testid": "prepare-sheet-remarks",
24
+ class: "production-run-prepare-sheet-remarks mt-24"
25
+ }, W = { class: "fm-typo-en-body-md-600" }, Y = { class: "production-run-prepare-sheet-signoff mt-24 grid grid-cols-2 gap-24 fm-typo-en-body-sm-400" }, Z = { class: "border-b border-fm-color-line pb-24" }, ee = { class: "border-b border-fm-color-line pb-24" }, te = /* @__PURE__ */ g({
26
+ __name: "ProductionRunPrepareSheet",
27
+ props: {
28
+ document: {}
29
+ },
30
+ setup(n) {
31
+ const { t: o } = x();
32
+ return (r, a) => (p(), d("article", P, [
33
+ t("header", j, [
34
+ t("p", N, s(i(o)("inventory.production.run.dialog.prepare.sheet.document")), 1),
35
+ t("h1", A, s(r.document.title), 1),
36
+ t("p", U, s(i(o)("inventory.production.run.dialog.prepare.context", {
37
+ runNo: r.document.runNo,
38
+ location: r.document.locationName || i(o)("inventory.production.run.dialog.prepare.unknownLocation")
39
+ })) + " · " + s(i(o)("inventory.production.run.dialog.prepare.sheet.lastUpdated", {
40
+ at: i(k)(r.document.updatedAt)
41
+ })), 1)
42
+ ]),
43
+ r.document.instructions ? (p(), d("section", D, [
44
+ t("h2", E, s(i(o)("inventory.production.run.form.instructions")), 1),
45
+ t("p", T, s(r.document.instructions), 1)
46
+ ])) : _("", !0),
47
+ t("section", R, [
48
+ t("h2", M, s(i(o)("inventory.production.run.dialog.prepare.sheet.ingredients")), 1),
49
+ r.document.review.ingredients.length ? (p(), d("div", $, [
50
+ t("table", B, [
51
+ a[2] || (a[2] = t("colgroup", null, [
52
+ t("col", { class: "w-48" }),
53
+ t("col"),
54
+ t("col", { class: "w-112 sm:w-144" }),
55
+ t("col", { class: "w-128 sm:w-160" })
56
+ ], -1)),
57
+ t("thead", L, [
58
+ t("tr", null, [
59
+ t("th", O, [
60
+ t("span", q, s(i(o)("inventory.production.run.dialog.prepare.sheet.checkbox")), 1)
61
+ ]),
62
+ t("th", C, s(i(o)("inventory.production.run.dialog.prepare.sheet.ingredient")), 1),
63
+ t("th", F, s(i(o)("inventory.production.run.dialog.prepare.columns.requested")), 1),
64
+ t("th", G, s(i(o)("inventory.production.run.dialog.prepare.sheet.taken")), 1)
65
+ ])
66
+ ]),
67
+ t("tbody", null, [
68
+ (p(!0), d(w, null, v(r.document.review.ingredients, (c) => (p(), d("tr", {
69
+ key: c.skuId,
70
+ class: "border-t border-fm-color-line"
71
+ }, [
72
+ a[1] || (a[1] = t("td", { class: "px-8 py-12 align-middle" }, [
73
+ t("span", { class: "mx-auto block size-24 rounded-4 border-2 border-fm-color-typo-primary" })
74
+ ], -1)),
75
+ t("td", J, s(c.name), 1),
76
+ t("td", Q, s(i(S)(c.need, c.unit, {
77
+ precision: c.precision
78
+ })), 1),
79
+ t("td", V, [
80
+ t("div", X, [
81
+ a[0] || (a[0] = t("span", { class: "inline-block h-24 min-w-48 flex-1 border-b border-fm-color-typo-primary" }, null, -1)),
82
+ t("span", z, s(c.unit), 1)
83
+ ])
84
+ ])
85
+ ]))), 128))
86
+ ])
87
+ ])
88
+ ])) : (p(), d("p", K, s(i(o)("inventory.production.run.dialog.prepare.sheet.noIngredients")), 1))
89
+ ]),
90
+ t("section", H, [
91
+ t("h2", W, s(i(o)("inventory.production.run.dialog.prepare.sheet.remarks")), 1),
92
+ a[3] || (a[3] = t("div", { class: "mt-8 min-h-96 rounded-8 border border-fm-color-line bg-white" }, null, -1))
93
+ ]),
94
+ t("section", Y, [
95
+ t("div", Z, s(i(o)("inventory.production.run.dialog.prepare.sheet.preparedBy")), 1),
96
+ t("div", ee, s(i(o)("inventory.production.run.dialog.prepare.sheet.date")), 1)
97
+ ])
98
+ ]));
99
+ }
100
+ }), he = /* @__PURE__ */ I(te, [["__scopeId", "data-v-3925b420"]]), h = e.object({ amount: e.number().int(), precision: e.number().int().nonnegative() }).strict(), oe = e.object({
101
+ id: e.string().min(1),
102
+ name: e.string(),
103
+ abbrev: e.string(),
104
+ baseUnitId: e.string().min(1),
105
+ conversion: h
106
+ }).strict(), re = e.object({
107
+ itemSkuId: e.string(),
108
+ name: e.string(),
109
+ perUnit: e.number(),
110
+ sourceQuantity: e.number(),
111
+ sourceUnit: e.string(),
112
+ amount: e.number()
113
+ }).strict(), b = e.object({
114
+ title: e.string(),
115
+ runNo: e.number().int(),
116
+ instructions: e.string().nullable(),
117
+ locationName: e.string().nullable(),
118
+ updatedAt: e.string().min(1),
119
+ review: e.object({
120
+ items: e.array(
121
+ e.object({
122
+ skuId: e.string(),
123
+ name: e.string(),
124
+ code: e.string(),
125
+ unit: e.string(),
126
+ precision: e.number().int().nonnegative().nullable(),
127
+ model: e.object({ amount: h, measurement: oe }).strict()
128
+ }).strict()
129
+ ),
130
+ ingredients: e.array(
131
+ e.object({
132
+ skuId: e.string(),
133
+ name: e.string(),
134
+ unit: e.string(),
135
+ need: e.number(),
136
+ current: e.number().nullable(),
137
+ after: e.number().nullable(),
138
+ status: e.enum(["ok", "low", "shortage", "unknown"]),
139
+ contributors: e.array(re),
140
+ precision: e.number().int().nonnegative().nullable()
141
+ }).strict()
142
+ )
143
+ }).strict()
144
+ }).strict(), ne = e.object({
145
+ version: e.literal(1),
146
+ expiresAt: e.number().int(),
147
+ document: b
148
+ }).strict(), se = "production-run:prepare-sheet:", y = 6e4, m = /* @__PURE__ */ new Map();
149
+ function l(n) {
150
+ return `${se}${n}`;
151
+ }
152
+ function f(n, o = window.localStorage) {
153
+ const r = m.get(n);
154
+ r !== void 0 && window.clearTimeout(r), m.delete(n), o.removeItem(l(n));
155
+ }
156
+ function ie() {
157
+ var n, o;
158
+ return ((o = (n = globalThis.crypto) == null ? void 0 : n.randomUUID) == null ? void 0 : o.call(n)) ?? `${Date.now()}-${Math.random().toString(36).slice(2)}`;
159
+ }
160
+ function ae(n, o = window.localStorage, r = Date.now()) {
161
+ const a = b.parse(n), c = ie();
162
+ return o.setItem(
163
+ l(c),
164
+ JSON.stringify({ version: 1, expiresAt: r + y, document: a })
165
+ ), c;
166
+ }
167
+ function be(n, o = window.localStorage, r = Date.now()) {
168
+ const a = l(n), c = o.getItem(a);
169
+ if (f(n, o), !c) throw new Error("Production prepare sheet is unavailable");
170
+ const u = ne.parse(JSON.parse(c));
171
+ if (u.expiresAt <= r) throw new Error("Production prepare sheet has expired");
172
+ return u.document;
173
+ }
174
+ function ce(n, o = window.location.href) {
175
+ const r = new URL(o);
176
+ return r.pathname = r.hostname.includes("portal.feedme") ? "/inventory/production-item/prepare-sheet" : "/production-item/prepare-sheet", r.search = "", r.hash = "", r.searchParams.set("sheet", n), r;
177
+ }
178
+ function ye(n) {
179
+ const o = ae(n);
180
+ window.open(ce(o).href, "_blank", "noreferrer"), m.set(
181
+ o,
182
+ window.setTimeout(() => f(o), y)
183
+ );
184
+ }
185
+ export {
186
+ he as P,
187
+ ye as o,
188
+ be as r
189
+ };
@@ -1,4 +1,4 @@
1
- import { d as s } from "./app-BUQUpe4c.js";
1
+ import { d as s } from "./app-BT7hD4az.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import { B as p } from "./app-BUQUpe4c.js";
1
+ import { B as p } from "./app-BT7hD4az.js";
2
2
  function l(s) {
3
3
  return Math.floor(s.getTime() / 1e3) * 1e3;
4
4
  }
@@ -6,6 +6,8 @@ export declare enum RouteName {
6
6
  UNIT = "UNIT",
7
7
  STOCK = "STOCK",
8
8
  PRODUCTION = "PRODUCTION",
9
+ PRODUCTION_RUN_PREPARE_SHEET = "PRODUCTION_RUN_PREPARE_SHEET",
10
+ PRODUCTION_RUN_DETAIL = "PRODUCTION_RUN_DETAIL",
9
11
  UNIT_COST_HISTORY = "UNIT_COST_HISTORY",
10
12
  CLOSING_TEMPLATE = "CLOSING_TEMPLATE",
11
13
  CLOSING_DRAFT = "CLOSING_DRAFT",
@@ -1,5 +1,5 @@
1
- import { c as f, a as u, g as d, b as m } from "./number-C7CJ9ZfE.js";
2
- import { c as b, d as p } from "./date2-6jkfRNS_.js";
1
+ import { c as f, a as u, g as d, b as m } from "./number-DRRlTYv7.js";
2
+ import { c as b, d as p } from "./date2-CAh7rsAp.js";
3
3
  function M() {
4
4
  return function(e) {
5
5
  return !!e || "Required";
@@ -1,8 +1,8 @@
1
- import { d as m, u as $ } from "./app-BUQUpe4c.js";
1
+ import { d as m, u as $ } from "./app-BT7hD4az.js";
2
2
  import { useCoreStore as B } from "@feedmepos/mf-common";
3
- import { useSnackbar as k } from "@feedmepos/ui-library";
3
+ import { useSnackbar as y } from "@feedmepos/ui-library";
4
4
  const N = m((r, a) => {
5
- const s = $(), u = B(), i = k();
5
+ const o = $(), u = B(), i = y();
6
6
  return a.onError(async (e) => {
7
7
  e.name === "SvcForbiddenError" && (i == null || i.open({
8
8
  title: e.title,
@@ -11,65 +11,55 @@ const N = m((r, a) => {
11
11
  }));
12
12
  }), {
13
13
  async readStockBalance() {
14
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock-balance`;
14
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock-balance`;
15
15
  return await a.get(t);
16
16
  },
17
17
  async readSkuBalance() {
18
- var o;
19
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/sku/balance`;
20
- return (((o = u.currentBusiness.value) == null ? void 0 : o.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
18
+ var c;
19
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/sku/balance`;
20
+ return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
21
21
  },
22
22
  async readSingleAdjustment(e) {
23
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
23
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
24
24
  return await a.get(`${n}?adjustmentId=${e}`);
25
25
  },
26
26
  async readStockAdjustment(e, t, n) {
27
- const o = s.currentLocationDBName, c = `${r.inventoryBackendUrl}/${o}/sku`;
28
- return await a.get(`${c}?skuId=${e}&start=${t}&end=${n}`);
27
+ const c = o.currentLocationDBName, s = `${r.inventoryBackendUrl}/${c}/sku`;
28
+ return await a.get(`${s}?skuId=${e}&start=${t}&end=${n}`);
29
29
  },
30
30
  async readAdjustmentById(e) {
31
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
31
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
32
32
  return await a.get(`${n}?adjustmentId=${e}`);
33
33
  },
34
34
  async convertSku(e) {
35
- var c;
36
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/convert`;
37
- return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
35
+ var s;
36
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/convert`;
37
+ return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
38
38
  },
39
39
  async adjustSku(e) {
40
- var c;
41
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/adjust`;
42
- return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
40
+ var s;
41
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/adjust`;
42
+ return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
43
43
  },
44
44
  async revertWastageAdjustment(e) {
45
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
45
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
46
46
  return await a.post(n, e);
47
47
  },
48
48
  recalculation: {
49
- getRecalculateAbility() {
50
- var o;
51
- const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate`;
52
- return a.get(n);
53
- },
54
- startRecalculateTask() {
55
- var o;
56
- const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
57
- return a.post(n);
58
- },
59
49
  refreshCurrentBalances() {
60
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
50
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
61
51
  return a.post(t);
62
52
  },
63
53
  scheduleInvalidateClosingDraftCache(e) {
64
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
54
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
65
55
  return a.post(n, { closingDraftIds: e });
66
56
  },
67
57
  recalculationRequests() {
68
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
58
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
69
59
  return a.get(t);
70
60
  },
71
61
  scheduleRecalculation(e) {
72
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
62
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
73
63
  return a.post(n, {
74
64
  openingId: e.openingId,
75
65
  untilDate: e.untilDate,
@@ -77,15 +67,15 @@ const N = m((r, a) => {
77
67
  });
78
68
  },
79
69
  getAffectedClosingDrafts(e, t) {
80
- const n = s.currentLocationDBName, o = `${r.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
81
- return a.get(o);
70
+ const n = o.currentLocationDBName, c = `${r.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
71
+ return a.get(c);
82
72
  }
83
73
  },
84
74
  async readUnitCostHistory(e, t, n) {
85
75
  var d;
86
- const o = s.currentLocation.doc._id, c = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${r.inventoryBackendUrl}/${c}/api/unit-cost-history`;
76
+ const c = o.currentLocation.doc._id, s = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${r.inventoryBackendUrl}/${s}/api/unit-cost-history`;
87
77
  return await a.get(
88
- `${l}?locationId=${o}&skuId=${e}&startDate=${t}&endDate=${n}`
78
+ `${l}?locationId=${c}&skuId=${e}&startDate=${t}&endDate=${n}`
89
79
  );
90
80
  }
91
81
  };
@@ -1,7 +1,7 @@
1
- import { u as i } from "./stock-DwqEvWM5.js";
2
- import { a as s, T as p } from "./app-BUQUpe4c.js";
1
+ import { u as i } from "./stock-BKkluaaM.js";
2
+ import { a as s, U as p } from "./app-BT7hD4az.js";
3
3
  import { computed as k, ref as B } from "vue";
4
- import { c as d } from "./number-C7CJ9ZfE.js";
4
+ import { c as d } from "./number-DRRlTYv7.js";
5
5
  function m() {
6
6
  return {
7
7
  stockBalance: {
@@ -13,9 +13,9 @@ export declare function useCodemaxStore(): {
13
13
  readonly state: {
14
14
  setting: {
15
15
  tokens?: {
16
+ issuedAt: string;
16
17
  accessToken: string;
17
18
  refreshToken: string;
18
- issuedAt: string;
19
19
  } | null | undefined;
20
20
  _id: string;
21
21
  enable: boolean;