Refactor code
Only include unreturned materials in second dunning
Merge pull request #774 from jidel/issue#768-second_dunning

Issue#768 second dunning