@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,29 +1,31 @@
1
1
  import { components as ce, useDialogChild as Pe, useSnackbar as de, useDialog as Me, FmButtonVariant as te } from "@feedmepos/ui-library";
2
2
  import { defineStore as pe } from "pinia";
3
3
  import { F as xe } from "./form-mode.enum-BKiNVH6A.js";
4
- import { u as fe } from "./purchase-order-template-bBTN12Ij.js";
4
+ import { u as fe } from "./purchase-order-template-c0YljACm.js";
5
5
  import { ref as I, h as oe, defineComponent as ye, resolveComponent as W, createElementBlock as F, openBlock as O, createElementVNode as N, createCommentVNode as J, normalizeClass as Z, createTextVNode as Be, toDisplayString as q, unref as B, createVNode as z, withCtx as me, Fragment as Y, renderList as ae, onMounted as Le, computed as H, watch as Qe, createSlots as Ue, createBlock as re } from "vue";
6
- import { a as X, c as ve, r as L, u as ie, m as qe, k as _e, s as Ve, R as we } from "./app-CNKD3vjZ.js";
6
+ import { a as X, c as ve, r as L, u as ie, m as qe, k as _e, s as Ve, R as we } from "./app-BYXLBTAp.js";
7
7
  import { useRouter as He } from "vue-router";
8
- import { a as ze } from "./FmMultiselectDialog-CZr-dX4K.js";
8
+ import { a as ze } from "./FmMultiselectDialog-Cq_sKKG7.js";
9
9
  import { D as ne, R as U } from "./row-action.enum-ncgDYAjP.js";
10
10
  import { c as je } from "./component-BmLAdDiY.js";
11
- import { f as Ye } from "./format-time-from-id-CX7mBtQD.js";
11
+ import { f as Ye } from "./format-time-from-id-R9Chodov.js";
12
12
  import { useI18n as he, useCoreStore as Ie } from "@feedmepos/mf-common";
13
- import { t as K, a as Ce, d as Oe, s as Ae, r as Ke } from "./xlsx.util-CZOxuAL-.js";
13
+ import { t as K, a as Ce, d as Oe, s as Ae, r as Ke } from "./xlsx.util-B4YBSPGX.js";
14
14
  import { F as Ge } from "./FmDroppableField-J0tG_U3w.js";
15
- import { a as G, c as We, t as se, g as ue } from "./number-LQ8tdP_1.js";
16
- import { f as Je } from "./date2-B00CYgio.js";
17
- import { u as ge } from "./supplier-BNoSljLB.js";
18
- import { a as Ze, B as Xe } from "./rules-BdR1TB3v.js";
19
- import { u as Te } from "./netsuite-yzjEuV4c.js";
20
- import { u as et } from "./duplicate-template-CMddJ7le.js";
21
- import { u as tt } from "./vue-i18n-DLJI5tIS.js";
15
+ import { a as G, c as We, t as se, g as ue } from "./number-3lF6zpQn.js";
16
+ import { f as Je } from "./date2-Bakt163M.js";
17
+ import { u as ge } from "./supplier-CV24jgpS.js";
18
+ import { a as Ze, B as Xe } from "./rules-Bd7-xhpl.js";
19
+ import { u as Te } from "./netsuite-Dfo9PwZB.js";
20
+ import { u as et } from "./duplicate-template-DKwa3kcE.js";
21
+ import { u as tt } from "./vue-i18n-BUqwBCDs.js";
22
22
  function De(n) {
23
23
  const e = X(), o = n.sku, d = e.skuById[o._id];
24
24
  if (d.unit._id !== o.unit._id) return !0;
25
- const u = n.measurement;
26
- return u ? !e.unitById[d.unit._id].measurements.find((a) => a.id === u.id) : !1;
25
+ const u = e.unitById[d.unit._id];
26
+ if (!u) return !0;
27
+ const a = n.measurement;
28
+ return a ? !u.measurements.find((s) => s.id === a.id) : !1;
27
29
  }
28
30
  function ke(n) {
29
31
  const { skuById: e } = X(), o = ve(n);
@@ -32,12 +34,12 @@ function ke(n) {
32
34
  const be = pe(
33
35
  "transferTemplateTable",
34
36
  function() {
35
- const { t: e } = he(), o = At(), d = I(!1), u = I(new Array()), s = fe(), m = X();
36
- async function a() {
37
+ const { t: e } = he(), o = At(), d = I(!1), u = I(new Array()), a = fe(), m = X();
38
+ async function s() {
37
39
  u.value = [], d.value = !0;
38
40
  try {
39
41
  m.isInventoryLoaded || await m.readInventory();
40
- const [l] = await Promise.all([s.readTemplates()]).delayed(
42
+ const [l] = await Promise.all([a.readTemplates()]).delayed(
41
43
  1e3
42
44
  );
43
45
  u.value = l.map(ke);
@@ -52,7 +54,7 @@ const be = pe(
52
54
  d.value = !0;
53
55
  try {
54
56
  u.value = [
55
- await s.getTemplate(l).then(ke).delayed(1e3)
57
+ await a.getTemplate(l).then(ke).delayed(1e3)
56
58
  ];
57
59
  } catch (c) {
58
60
  console.log("Something went wrong when fetching templates:", c);
@@ -68,9 +70,9 @@ const be = pe(
68
70
  case U.Edit:
69
71
  return o.updateTemplate(c);
70
72
  case U.Delete:
71
- return o.deleteTemplate(c, d, a);
73
+ return o.deleteTemplate(c, d, s);
72
74
  case U.Duplicate:
73
- return o.duplicateTemplate(c, d, a);
75
+ return o.duplicateTemplate(c, d, s);
74
76
  }
75
77
  }
76
78
  return {
@@ -173,7 +175,7 @@ const be = pe(
173
175
  ],
174
176
  templates: u,
175
177
  loading: d,
176
- fetchTemplates: a,
178
+ fetchTemplates: s,
177
179
  loadTemplate: r
178
180
  };
179
181
  }
@@ -231,8 +233,8 @@ function Re() {
231
233
  ];
232
234
  }
233
235
  function rt(n) {
234
- var a;
235
- const o = Ie().currentBusiness.value, u = (a = n.map((r) => {
236
+ var s;
237
+ const o = Ie().currentBusiness.value, u = (s = n.map((r) => {
236
238
  var b;
237
239
  const i = r.purchaseOrder.items.map((t) => Ne(t)), p = Re(), l = [
238
240
  ["Template ID", r._id],
@@ -272,11 +274,11 @@ function rt(n) {
272
274
  sheets: {},
273
275
  sheetOccurence: {}
274
276
  }
275
- )) == null ? void 0 : a.sheets, s = `${o == null ? void 0 : o.name} transfer templates (${Je(/* @__PURE__ */ new Date())}).xlsx`, m = Ce(u);
276
- return Oe(m, s), s;
277
+ )) == null ? void 0 : s.sheets, a = `${o == null ? void 0 : o.name} transfer templates (${Je(/* @__PURE__ */ new Date())}).xlsx`, m = Ce(u);
278
+ return Oe(m, a), a;
277
279
  }
278
280
  function nt() {
279
- const n = Ie(), e = ge(), o = ie(), d = X(), u = n.currentBusiness.value, s = Ne({
281
+ const n = Ie(), e = ge(), o = ie(), d = X(), u = n.currentBusiness.value, a = Ne({
280
282
  sku: {
281
283
  unit: {
282
284
  _id: "",
@@ -306,7 +308,7 @@ function nt() {
306
308
  amount: 1,
307
309
  precision: 0
308
310
  }
309
- }), m = Re(), a = [
311
+ }), m = Re(), s = [
310
312
  ["Template ID (leave empty to create new)"],
311
313
  ["Template Name", "New template"],
312
314
  ["Business name", u == null ? void 0 : u.name],
@@ -327,8 +329,8 @@ function nt() {
327
329
  ["Remark"],
328
330
  [],
329
331
  m.map((t) => t.name),
330
- m.map((t) => s[t.id])
331
- ], r = m.map((t) => `system:${t.id}`), i = K(a, r), p = K(
332
+ m.map((t) => a[t.id])
333
+ ], r = m.map((t) => `system:${t.id}`), i = K(s, r), p = K(
332
334
  [
333
335
  ...e.businessSuppliers.map((t) => [
334
336
  `${t.name} (${t._id})`,
@@ -386,7 +388,7 @@ function nt() {
386
388
  return Oe(h, b), b;
387
389
  }
388
390
  function ot(n, e) {
389
- const o = new Array(), d = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = ie().locationByDbName, a = ge().supplierById, r = n.trim(), i = d.exec(r);
391
+ const o = new Array(), d = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, a = ie().locationByDbName, s = ge().supplierById, r = n.trim(), i = d.exec(r);
390
392
  if (!i)
391
393
  return o.push(`Transfer from location value of ${r} cannot be read.`), {
392
394
  errors: o
@@ -394,9 +396,9 @@ function ot(n, e) {
394
396
  const p = i[1], l = i[2];
395
397
  let c;
396
398
  if (l.startsWith("supplier"))
397
- c = a[l], e !== L.enum.purchase && o.push(`Expected transfer type Purchase but found ${e} instead.`);
399
+ c = s[l], e !== L.enum.purchase && o.push(`Expected transfer type Purchase but found ${e} instead.`);
398
400
  else {
399
- const h = s[l];
401
+ const h = a[l];
400
402
  if (!h)
401
403
  return o.push(`Location (${p}) of id ${l} is not found.`), {
402
404
  errors: o
@@ -432,19 +434,19 @@ function at(n) {
432
434
  return [];
433
435
  const e = /(.*) \(((warehouse_|restaurant_).{24,})\)/, d = ie().locationByDbName;
434
436
  return n.map((u) => {
435
- const s = new Array(), m = u.trim(), a = e.exec(m);
436
- if (!a)
437
- return s.push(`Enabled location value of ${m} cannot be read.`), {
438
- errors: s
437
+ const a = new Array(), m = u.trim(), s = e.exec(m);
438
+ if (!s)
439
+ return a.push(`Enabled location value of ${m} cannot be read.`), {
440
+ errors: a
439
441
  };
440
- const r = a[1], i = a[2], p = d[i];
441
- return p ? (r !== p.name && s.push(
442
+ const r = s[1], i = s[2], p = d[i];
443
+ return p ? (r !== p.name && a.push(
442
444
  `Location id ${i} has non-matching name. Found ${r} but expected ${p.name}`
443
445
  ), {
444
- errors: s,
446
+ errors: a,
445
447
  location: p
446
- }) : (s.push(`Location (${r}) of id ${i} is not found.`), {
447
- errors: s
448
+ }) : (a.push(`Location (${r}) of id ${i} is not found.`), {
449
+ errors: a
448
450
  });
449
451
  });
450
452
  }
@@ -454,9 +456,9 @@ function st(n) {
454
456
  o,
455
457
  d,
456
458
  u,
457
- s,
458
- m,
459
459
  a,
460
+ m,
461
+ s,
460
462
  r,
461
463
  i,
462
464
  p,
@@ -465,7 +467,7 @@ function st(n) {
465
467
  return {
466
468
  id: `${o[1] ?? ""}`.trim(),
467
469
  name: `${d[1] ?? ""}`.trim(),
468
- type: `${a[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? L.enum.transfer : L.enum.purchase,
470
+ type: `${s[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? L.enum.transfer : L.enum.purchase,
469
471
  transferFrom: `${r[1] ?? ""}`.trim(),
470
472
  locations: i.slice(1).map((c) => `${c}`.trim()).filter((c) => c),
471
473
  reference: `${p[1] ?? ""}`.trim(),
@@ -478,9 +480,9 @@ function it(n) {
478
480
  o,
479
481
  d,
480
482
  u,
481
- s,
482
- m,
483
483
  a,
484
+ m,
485
+ s,
484
486
  r,
485
487
  i,
486
488
  p,
@@ -517,16 +519,16 @@ function it(n) {
517
519
  });
518
520
  }
519
521
  function lt(n, e, o) {
520
- const d = n === "" ? null : se(n, o), u = e === "" ? null : se(e, o), s = d && u && d.amount > u.amount;
522
+ const d = n === "" ? null : se(n, o), u = e === "" ? null : se(e, o), a = d && u && d.amount > u.amount;
521
523
  return {
522
524
  min: d,
523
525
  max: u,
524
- compareError: s ? "Minimum amount must be less than or equal to maximum amount" : void 0
526
+ compareError: a ? "Minimum amount must be less than or equal to maximum amount" : void 0
525
527
  };
526
528
  }
527
529
  function ut(n, e, o) {
528
- const d = X(), u = Te(), s = d.skuByCode[n.code], m = new Array();
529
- if (!s)
530
+ const d = X(), u = Te(), a = d.skuByCode[n.code], m = new Array();
531
+ if (!a)
530
532
  return m.push(`Cannot find ingredient with code (${n.code}) ${n.name}.`), {
531
533
  index: e,
532
534
  errors: m
@@ -536,14 +538,14 @@ function ut(n, e, o) {
536
538
  index: e,
537
539
  errors: m
538
540
  };
539
- const a = s.unit, r = a == null ? void 0 : a.measurements.find((f) => f.abbrev === n.unit);
540
- if (a.abbrev !== n.unit && !r) {
541
+ const s = a.unit, r = s == null ? void 0 : s.measurements.find((f) => f.abbrev === n.unit);
542
+ if (s.abbrev !== n.unit && !r) {
541
543
  const f = `Cannot find unit measurement of symbol ${n.unit || "[empty]"} for ingredient (${n.code}) ${n.name}.`;
542
544
  m.push(f);
543
545
  const v = {
544
- sku: s,
545
- code: n.overrideCode || s.code,
546
- name: s.name,
546
+ sku: a,
547
+ code: n.overrideCode || a.code,
548
+ name: a.name,
547
549
  measurement: r,
548
550
  quantity: { amount: 0, precision: 0 },
549
551
  quantityStep: { amount: 0, precision: 0 },
@@ -551,7 +553,7 @@ function ut(n, e, o) {
551
553
  maximumQuantity: { amount: 0, precision: 0 }
552
554
  };
553
555
  if (u.isEnabled) {
554
- const _ = u.getItemCustomCode(s);
556
+ const _ = u.getItemCustomCode(a);
555
557
  _ && (v.code = _);
556
558
  }
557
559
  return {
@@ -562,26 +564,26 @@ function ut(n, e, o) {
562
564
  }
563
565
  const i = se(
564
566
  n.quantityStep,
565
- ue(a, r)
567
+ ue(s, r)
566
568
  );
567
569
  (Number.isNaN(Number(n.quantityStep)) || Number(n.quantityStep) <= 0) && m.push("Amount step must be more than 0");
568
570
  const p = Ze(i), l = lt(
569
571
  n.minimumQuantity,
570
572
  n.maximumQuantity,
571
- ue(a, r)
573
+ ue(s, r)
572
574
  ), c = l.min, h = l.max;
573
575
  l.compareError && m.push(l.compareError);
574
576
  const b = Xe(+n.minimumQuantity, +n.maximumQuantity), t = se(
575
577
  n.defaultQuantity,
576
- ue(a, r)
578
+ ue(s, r)
577
579
  ), S = p(t);
578
580
  typeof S == "string" && m.push(`Default amount: ${S}`);
579
581
  const E = l.min && l.max ? b(`${n.defaultQuantity}`) : null;
580
582
  typeof E == "string" && m.push(`Default amount: ${E}`);
581
583
  const w = {
582
- sku: s,
583
- code: n.overrideCode || s.code,
584
- name: n.name || s.name,
584
+ sku: a,
585
+ code: n.overrideCode || a.code,
586
+ name: n.name || a.name,
585
587
  measurement: r,
586
588
  quantity: t,
587
589
  quantityStep: i,
@@ -596,20 +598,20 @@ function ut(n, e, o) {
596
598
  }
597
599
  function ct(n) {
598
600
  const e = n.SheetNames.filter(
599
- (s) => !Object.values(Se).map(String).includes(s)
601
+ (a) => !Object.values(Se).map(String).includes(a)
600
602
  ), d = be().templates, u = qe(d, "_id");
601
603
  try {
602
604
  return e.reduce(
603
- (s, m) => {
605
+ (a, m) => {
604
606
  var f;
605
- const a = new Array(), r = n.Sheets[m], i = st(r), p = ot(i.transferFrom, i.type);
606
- a.push(...p.errors);
607
+ const s = new Array(), r = n.Sheets[m], i = st(r), p = ot(i.transferFrom, i.type);
608
+ s.push(...p.errors);
607
609
  const l = p.from, c = at(i.locations), h = c.filter((v) => v.location).map((v) => v.location);
608
- a.push(...c.flatMap((v) => v.errors));
610
+ s.push(...c.flatMap((v) => v.errors));
609
611
  const b = it(r).filter((v) => v.data.code), t = b.map(
610
612
  (v, _) => ut(v.data, _, b)
611
613
  );
612
- a.push(
614
+ s.push(
613
615
  ...t.flatMap(
614
616
  (v) => v.errors.map((_) => `(Excel row ${v.index + 14}) ${_}`)
615
617
  )
@@ -624,13 +626,13 @@ function ct(n) {
624
626
  name: i.name || `(unnamed from sheet ${m || "<unnamed sheet>"})`,
625
627
  purchaseOrder: mt()
626
628
  };
627
- return a.push(`Template ID ${i.id} is not found.`), s.importUpdateResult.push({
629
+ return s.push(`Template ID ${i.id} is not found.`), a.importUpdateResult.push({
628
630
  type: "update",
629
631
  original: y,
630
632
  template: y,
631
633
  excelSheetName: m,
632
- errors: a
633
- }), s;
634
+ errors: s
635
+ }), a;
634
636
  }
635
637
  const _ = {
636
638
  type: "update",
@@ -648,9 +650,9 @@ function ct(n) {
648
650
  }
649
651
  },
650
652
  excelSheetName: m,
651
- errors: a
653
+ errors: s
652
654
  };
653
- return s.importUpdateResult.push(_), s;
655
+ return a.importUpdateResult.push(_), a;
654
656
  }
655
657
  const w = {
656
658
  type: "create",
@@ -665,9 +667,9 @@ function ct(n) {
665
667
  }
666
668
  },
667
669
  excelSheetName: m,
668
- errors: a
670
+ errors: s
669
671
  };
670
- return s.importCreateResult.push(w), s;
672
+ return a.importCreateResult.push(w), a;
671
673
  },
672
674
  {
673
675
  invalidExcel: !1,
@@ -675,10 +677,10 @@ function ct(n) {
675
677
  importUpdateResult: new Array()
676
678
  }
677
679
  );
678
- } catch (s) {
680
+ } catch (a) {
679
681
  return {
680
682
  invalidExcel: !0,
681
- invalidExcelMessage: (s == null ? void 0 : s.message) ?? "Invalid excel",
683
+ invalidExcelMessage: (a == null ? void 0 : a.message) ?? "Invalid excel",
682
684
  importCreateResult: [],
683
685
  importUpdateResult: []
684
686
  };
@@ -721,7 +723,7 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
721
723
  },
722
724
  setup(n) {
723
725
  return (e, o) => {
724
- var s, m, a;
726
+ var a, m, s;
725
727
  const d = W("FmIcon"), u = W("FmTooltip");
726
728
  return O(), F("div", dt, [
727
729
  o[0] || (o[0] = N("div", null, "•", -1)),
@@ -762,7 +764,7 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
762
764
  "text-fm-color-typo-secondary": !e.errors.length
763
765
  }
764
766
  ])
765
- }, q((s = e.locations) != null && s.length ? `${(m = e.locations) == null ? void 0 : m.length} locations` : "All locations") + ", " + q(`${(a = e.items) == null ? void 0 : a.length} items`), 3)
767
+ }, q((a = e.locations) != null && a.length ? `${(m = e.locations) == null ? void 0 : m.length} locations` : "All locations") + ", " + q(`${(s = e.items) == null ? void 0 : s.length} items`), 3)
766
768
  ])
767
769
  ]);
768
770
  };
@@ -782,9 +784,9 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
782
784
  }, Et = { class: "fm-typo-en-body-lg-600" }, $t = /* @__PURE__ */ ye({
783
785
  __name: "TransferTemplateImport",
784
786
  setup(n) {
785
- const e = I(null), o = Pe(), d = de(), u = I(!1), s = I(!1), m = ge();
787
+ const e = I(null), o = Pe(), d = de(), u = I(!1), a = I(!1), m = ge();
786
788
  Le(async () => {
787
- s.value = !0;
789
+ a.value = !0;
788
790
  try {
789
791
  await m.readSuppliers().delayed(1e3);
790
792
  } catch {
@@ -794,16 +796,16 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
794
796
  type: "error"
795
797
  });
796
798
  } finally {
797
- s.value = !1;
799
+ a.value = !1;
798
800
  }
799
801
  });
800
- const a = I(new Array()), r = I([]), i = I([]), p = H(
801
- () => !!a.value.length || r.value.some((b) => b.errors.length) || i.value.some((b) => b.errors.length)
802
+ const s = I(new Array()), r = I([]), i = I([]), p = H(
803
+ () => !!s.value.length || r.value.some((b) => b.errors.length) || i.value.some((b) => b.errors.length)
802
804
  ), l = H(
803
805
  () => !!r.value.length || !!i.value.length
804
806
  ), { t: c } = he();
805
807
  async function h(b) {
806
- a.value = [], r.value = [], i.value = [];
808
+ s.value = [], r.value = [], i.value = [];
807
809
  try {
808
810
  u.value = !0;
809
811
  const [t] = await Promise.all([
@@ -814,18 +816,18 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
814
816
  if (!t.SheetNames.filter(
815
817
  (f) => !Object.values(Se).map(String).includes(f)
816
818
  ).find((f) => f)) {
817
- a.value.push(c("inventory.ingredient.import.fileError.noSheet"));
819
+ s.value.push(c("inventory.ingredient.import.fileError.noSheet"));
818
820
  return;
819
821
  }
820
822
  const w = ct(t);
821
823
  if (w.invalidExcel) {
822
- a.value.push(
824
+ s.value.push(
823
825
  w.invalidExcelMessage ?? c("inventory.ingredient.import.fileError.invalidExcel")
824
826
  );
825
827
  return;
826
828
  }
827
829
  if (r.value = w.importCreateResult, i.value = w.importUpdateResult, !r.value.length && !i.value.length) {
828
- a.value.push(c("inventory.ingredient.import.fileError.noData"));
830
+ s.value.push(c("inventory.ingredient.import.fileError.noData"));
829
831
  return;
830
832
  }
831
833
  o.emitData(w);
@@ -836,7 +838,7 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
836
838
  type: "error"
837
839
  }), console.error("Error in reading file", t);
838
840
  } finally {
839
- a.value.length && d.open({
841
+ s.value.length && d.open({
840
842
  title: c("inventory.ingredient.import.fileError.invalidExcel"),
841
843
  type: "error"
842
844
  }), u.value = !1;
@@ -848,7 +850,7 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
848
850
  const S = W("FmCircularProgress"), E = W("FmIcon"), w = W("FmButton");
849
851
  return O(), F("div", gt, [
850
852
  t[2] || (t[2] = N("div", { class: "fm-typo-en-body-md-400" }, "Import transfer templates from excel sheets.", -1)),
851
- s.value ? (O(), F("div", Tt, [
853
+ a.value ? (O(), F("div", Tt, [
852
854
  N("div", null, [
853
855
  z(S, {
854
856
  size: "md",
@@ -911,8 +913,8 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
911
913
  }, null, 8, ["label", "variant", "prepend-icon", "onClick"])
912
914
  ]))
913
915
  ], 2),
914
- a.value.length ? (O(), F("div", _t, [
915
- (O(!0), F(Y, null, ae(a.value, (v, _) => (O(), F("div", {
916
+ s.value.length ? (O(), F("div", _t, [
917
+ (O(!0), F(Y, null, ae(s.value, (v, _) => (O(), F("div", {
916
918
  key: _,
917
919
  class: "flex gap-8 items-center"
918
920
  }, [
@@ -956,11 +958,11 @@ const dt = { class: "flex items-center gap-12 pl-8" }, pt = { class: "flex flex-
956
958
  }
957
959
  });
958
960
  function It(n) {
959
- var s, m;
961
+ var a, m;
960
962
  const e = Te();
961
963
  if (!e.isEnabled) return !0;
962
964
  if (!n.internal) {
963
- const a = e.getNetSuiteVendor(n._id), r = a == null ? void 0 : a.subsidiaryId, i = (s = e.currentVendorSubsidiary(n._id)) == null ? void 0 : s.id;
965
+ const s = e.getNetSuiteVendor(n._id), r = s == null ? void 0 : s.subsidiaryId, i = (a = e.currentVendorSubsidiary(n._id)) == null ? void 0 : a.id;
964
966
  return r && r == i;
965
967
  }
966
968
  const o = e.getNetSuiteLocation(`${n.internal}_${n._id}`), d = e.getLocationSubsidiary(o == null ? void 0 : o.netSuiteId).id, u = (m = e.currentLocationSubsidiary()) == null ? void 0 : m.id;
@@ -975,23 +977,23 @@ const Ct = {
975
977
  }, Ot = pe(
976
978
  "templateItemBulkEditor",
977
979
  function() {
978
- const { t: e } = tt(), o = de(), d = be(), u = fe(), s = I(!1), m = I(1), a = I(null), r = I([]), i = I({}), p = I(/* @__PURE__ */ new Set()), l = I([]), c = I(!1), h = I(/* @__PURE__ */ new Map()), b = I(/* @__PURE__ */ new Set()), t = H(() => {
979
- if (!a.value) return [];
980
- const T = a.value._id;
980
+ const { t: e } = tt(), o = de(), d = be(), u = fe(), a = I(!1), m = I(1), s = I(null), r = I([]), i = I({}), p = I(/* @__PURE__ */ new Set()), l = I([]), c = I(!1), h = I(/* @__PURE__ */ new Map()), b = I(/* @__PURE__ */ new Set()), t = H(() => {
981
+ if (!s.value) return [];
982
+ const T = s.value._id;
981
983
  return d.templates.filter(
982
984
  (C) => C.purchaseOrder.items.some(($) => $.sku._id === T)
983
985
  );
984
986
  }), S = H(
985
987
  () => t.value.filter((T) => r.value.includes(T._id))
986
988
  ), E = H(
987
- () => a.value !== null && t.value.length > 0 && r.value.length > 0
989
+ () => s.value !== null && t.value.length > 0 && r.value.length > 0
988
990
  ), w = H(() => {
989
991
  if (p.value.size === 0) return !1;
990
992
  const T = i.value;
991
993
  return !(p.value.has("code") && (!T.code || T.code.trim().length === 0) || p.value.has("name") && (!T.name || T.name.trim().length === 0) || p.value.has("defaultAmount") && T.quantity == null || p.value.has("step") && T.quantityStep == null);
992
994
  }), f = H(() => {
993
- if (!a.value) return [];
994
- const T = a.value._id;
995
+ if (!s.value) return [];
996
+ const T = s.value._id;
995
997
  return S.value.map((C) => {
996
998
  const $ = JSON.parse(JSON.stringify(C));
997
999
  return $.purchaseOrder.items = $.purchaseOrder.items.map((k) => {
@@ -1005,17 +1007,17 @@ const Ct = {
1005
1007
  });
1006
1008
  });
1007
1009
  function v() {
1008
- y(), s.value = !0;
1010
+ y(), a.value = !0;
1009
1011
  }
1010
1012
  function _() {
1011
- s.value = !1;
1013
+ a.value = !1;
1012
1014
  }
1013
1015
  function y() {
1014
- m.value = 1, a.value = null, r.value = [], i.value = {}, p.value = /* @__PURE__ */ new Set(), l.value = [], c.value = !1, h.value = /* @__PURE__ */ new Map(), b.value = /* @__PURE__ */ new Set();
1016
+ m.value = 1, s.value = null, r.value = [], i.value = {}, p.value = /* @__PURE__ */ new Set(), l.value = [], c.value = !1, h.value = /* @__PURE__ */ new Map(), b.value = /* @__PURE__ */ new Set();
1015
1017
  }
1016
1018
  function x() {
1017
- if (!a.value) return;
1018
- const T = a.value._id, C = S.value[0] ?? t.value[0];
1019
+ if (!s.value) return;
1020
+ const T = s.value._id, C = S.value[0] ?? t.value[0];
1019
1021
  if (C) {
1020
1022
  const $ = C.purchaseOrder.items.find((k) => k.sku._id === T);
1021
1023
  $ && (i.value = { ...$ });
@@ -1060,7 +1062,7 @@ const Ct = {
1060
1062
  count: l.value.length
1061
1063
  }, l.value.length),
1062
1064
  type: "success"
1063
- }), s.value = !1, y(), await d.fetchTemplates());
1065
+ }), a.value = !1, y(), await d.fetchTemplates());
1064
1066
  } catch (T) {
1065
1067
  o.open({
1066
1068
  title: e("inventory.transfer.template.bulkEditor.save.errorTitle"),
@@ -1092,9 +1094,9 @@ const Ct = {
1092
1094
  }
1093
1095
  return {
1094
1096
  // state
1095
- show: s,
1097
+ show: a,
1096
1098
  currentStep: m,
1097
- selectedSku: a,
1099
+ selectedSku: s,
1098
1100
  selectedTemplateIds: r,
1099
1101
  editedItem: i,
1100
1102
  selectedFields: p,
@@ -1124,7 +1126,7 @@ const Ct = {
1124
1126
  };
1125
1127
  }
1126
1128
  ), At = pe("transferTemplateActions", () => {
1127
- const n = Me(), e = de(), o = ie(), d = be(), u = et(), s = fe(), m = Te(), a = He(), { t: r } = he(), i = I({}), p = Ot();
1129
+ const n = Me(), e = de(), o = ie(), d = be(), u = et(), a = fe(), m = Te(), s = He(), { t: r } = he(), i = I({}), p = Ot();
1128
1130
  function l() {
1129
1131
  p.openDialog();
1130
1132
  }
@@ -1169,7 +1171,7 @@ const Ct = {
1169
1171
  try {
1170
1172
  x.value = !0;
1171
1173
  const [A] = await Promise.allSettled([
1172
- s.deleteTemplate(y),
1174
+ a.deleteTemplate(y),
1173
1175
  new Promise((D) => setTimeout(D, 1e3))
1174
1176
  ]);
1175
1177
  if (A.status === "rejected") throw A.reason;
@@ -1276,7 +1278,7 @@ const Ct = {
1276
1278
  close: !0
1277
1279
  }
1278
1280
  }).onPrimary(() => {
1279
- a.push({ name: we.TRANSFER_TEMPLATE }), R(void 0);
1281
+ s.push({ name: we.TRANSFER_TEMPLATE }), R(void 0);
1280
1282
  }).onSecondary(() => R(void 0)).onClose(() => R(void 0)), y;
1281
1283
  const D = A.map((g) => {
1282
1284
  var P;
@@ -1311,7 +1313,7 @@ const Ct = {
1311
1313
  close: !0
1312
1314
  }
1313
1315
  }).onPrimary((g) => Array.isArray(g) ? R(g[0]) : null).onSecondary(() => R(void 0)).onTertiary(() => {
1314
- a.push({ name: we.TRANSFER_TEMPLATE }), R(void 0);
1316
+ s.push({ name: we.TRANSFER_TEMPLATE }), R(void 0);
1315
1317
  }).onClose(() => R(void 0)), y;
1316
1318
  }
1317
1319
  function f() {
@@ -1380,7 +1382,7 @@ const Ct = {
1380
1382
  });
1381
1383
  };
1382
1384
  for (const g of x.chunk(100))
1383
- D(), await s.importTemplates(g);
1385
+ D(), await a.importTemplates(g);
1384
1386
  e.open({
1385
1387
  title: r("inventory.ingredient.import.success"),
1386
1388
  type: "success"
@@ -1,10 +1,10 @@
1
- import { a as w, t as H, f as T } from "./number-LQ8tdP_1.js";
2
- import { u as P } from "./feature-fzePklTK.js";
1
+ import { a as w, t as H, f as T } from "./number-3lF6zpQn.js";
2
+ import { u as P } from "./feature-DDZ2q9CF.js";
3
3
  import { useCoreStore as y } from "@feedmepos/mf-common";
4
- import { a as g, g as k, m as j, e as S } from "./app-CNKD3vjZ.js";
5
- import { b as N, d as $, s as I } from "./xlsx.util-CZOxuAL-.js";
6
- import { f as _ } from "./date2-B00CYgio.js";
7
- import { I as O } from "./rules-BdR1TB3v.js";
4
+ import { a as g, g as k, m as j, e as S } from "./app-BYXLBTAp.js";
5
+ import { b as N, d as $, s as I } from "./xlsx.util-B4YBSPGX.js";
6
+ import { f as _ } from "./date2-Bakt163M.js";
7
+ import { I as O } from "./rules-Bd7-xhpl.js";
8
8
  function U() {
9
9
  return {
10
10
  low: 6,
@@ -1,9 +1,9 @@
1
1
  import { ref as v, computed as f } from "vue";
2
- import { u as w } from "./netsuite-yzjEuV4c.js";
3
- import { A as L, a as p, u as y, d as k, G as h } from "./app-CNKD3vjZ.js";
2
+ import { u as w } from "./netsuite-Dfo9PwZB.js";
3
+ import { A as L, a as p, u as y, d as k, G as h } from "./app-BYXLBTAp.js";
4
4
  import { useSnackbar as B } from "@feedmepos/ui-library";
5
5
  import { useCoreStore as E } from "@feedmepos/mf-common";
6
- import { u as S } from "./feature-fzePklTK.js";
6
+ import { u as S } from "./feature-DDZ2q9CF.js";
7
7
  function C() {
8
8
  return {
9
9
  setting: {