Merge pull request #4775 from nabinhait/advance32

[fix] validate advance only if invoice total is positive