Trust you’re doing great. The ‘Claimed Amount’ field in the Employee Advance form doesn’t get cleared even after the associated Expense Claim document is cancelled! I believe this issue is linked to your patch for the issue in the following thread:
Kindly help resolve this asap
Thanks for reporting the issue, I have sent the fix of the issue and soon we’ll release it.
Many thanks @rohit_w
hoping this gets merged soon…
Does this fix affect existing Employee Advances? We still have a number of Advances which are showing claimed amount even though the Expense Claims were cancelled. If the fix won’t work for existing advances, how do we proceed?
If they are cancelled please delete them
Thanks for your response. We have deleted them but the claimed amount is still there on the Employee Advance forms. Because of this, there’s no way to make Expense Claims for those Advances!
How do we proceed?
Still expecting your feedback pls
Run below code in bench console and check
for d in frappe.get_all('Employee Advance'):
doc = frappe.get_doc('Employee Advance', d.name)
You’re the man! Thanks a lot for this. All existing Advances were updated successfully