fix: clear stock input field when opening edit medicine dialog
Summary
Clears the stock input field when opening the Edit Medicine dialog to prevent previously entered values from persisting.
Problem
When opening the edit medicine dialog multiple times, the stock input field retained old values, which could lead to incorrect data being submitted.
Solution
Reset the stock input field state whenever the Edit Medicine dialog is opened.
Impact
- Prevents accidental submission of stale stock values
- Improves form accuracy and user experience
- No impact on other medicine fields
Testing
- Verified that stock field resets when opening the edit dialog
- Confirmed that other form fields behave correctly
- All existing tests pass