Merge pull request #2212 from nabinhait/hotfix

Fetch and validate advance entries in sales/purchase invoice