Merge pull request #1687 from nabinhait/v4-hotfix

Update status based on communication. Fixes #1682
fix to pos invoice
Merge pull request #1689 from rmehta/develop

fix to pos invoice
use build_filter_conditions from db_query. Fixes #1679