- Introduced a new endpoint `/preview-order-no` to generate order numbers based on registered numbering rules without incrementing the sequence. - Implemented the `previewOrderNo` function in the `outsourcePurchaseController` to handle the logic for generating the preview order number. - Updated the `outsourcePurchaseRoutes` to include the new route for previewing order numbers. - Enhanced the `RegistrationModal` component to automatically fill the order number input with the preview value when the modal opens. - Added a new API function `previewOrderNo` in the frontend to call the backend endpoint. (TASK:ERP-019)
13 KiB
13 KiB