[IMP] sale,purchase: allow invoicing

(closes #500)

(cherry picked from commit 84c0595aef3a417702c81b5226ae1f61817a2bf8)
[ADD] Added new report for sale and point of sale analysis,Renamed menu of Orders Analysis into POS Analysis which will show pos order data.

[IMP]Improved query for report,gived access rights for this report and improved qty string.

[IMP]gived access of report to pos user

[MIG]Migrated report in new api,removed icon,improved view and query.

[IMP]Improved query to fix that pos datas is not availabel in report

[IMP]Improved query to differntiate data of so and pos.