Merge pull request #1 from nabinhait/3.0.0-hotfix

minor fix in patches
bumped to version 3.8.7
Merge branch 'develop'
calculate outstanding amount in server side, only if docstatus is 0
patch to fix invoice outstanding