Merge pull request #1878 from anandpdoshi/anand-wip

Automatic Outstanding Writeoff