Merge pull request #24349 from Anurag810/dunning_fixes

fix: not able to create dunning from sales invoice