Fix PO approval duplicating bill items on repeated clicks#19686
Fix PO approval duplicating bill items on repeated clicks#19686buddhika75 merged 1 commit intodevelopmentfrom
Conversation
Clear billItems at the start of generateBillComponent() to prevent duplicate accumulation when the method is invoked multiple times from rapid clicks on the approval link. Fixes both Pharmacy and Store PO approval controllers. Closes #19685 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughTwo controller classes now explicitly clear the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
billItemsat the start ofgenerateBillComponent()in bothPurchaseOrderControllerandStorePurchaseOrderControllerto prevent duplicate bill items when the approval link is clicked multiple times rapidly.Test plan
Closes #19685
🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes