Bug #7741
opensales return issue in creation time
100%
Subtasks
Related issues
Updated by Pavan Kumar Murala 30 days ago
- Status changed from New to In Progress
Updated by Pavan Kumar Murala 29 days ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Estimated time changed from 1:00 h to 3:00 h
I identified an issue in the frontend where the default SR value was causing errors. To fix this, I implemented a useEffect that automatically focuses on the input field once the Sale Return is created.
I have implemented two ways of sending SR:
Sending SR- format
Sending without SR- (only number input) — this is useful for barcode scanner usage.
Both approaches are working correctly on the frontend, and the creation flow is functioning properly.
However, there is an issue from the backend side. Some recent backend code changes are causing errors during Sale Return creation. I informed the group and mentioned the issue to Ruban, but he is currently unavailable for this project. I reviewed the backend changes and resolved the Sale Return creation issue.
Also, another change was made in validation where Sale Return status was set to true before creation. I updated this logic so that it becomes true only after successful creation, and this change has been implemented on the Sale Return page.