Credit Note Against Student

Im sure this has been tackled but cannot find the thread …
I have a scenario , where if I pass a credit note via JV against a student , credit student(debtors) and debit(Sales Income) in the student ledger the system shows the balance correctly however on the fees doc the “Outstanding Amount” has not changed still the same as before passing the credit note via JV.
Has anyone come accross an issue like this ?
ERPNext: v13.49.10 (version-13)
Frappe Framework: v13.52.0 (version-13)