Merge pull request #1009 from akhileshdarjee/1310

[cleanup] moved for territory, price list and item price doctype from setup to stock
[fix] [minor] itemwise sales/purchase register
[minor] [query] expense and income account queries should exclude customer and supplier accounts
[minor] fixes in test cases and demo
[minor] fixes after item price move
[minor] fix in patch
[minor] fix in patch
[minor] [fix] added end of life condition in item query
[fix] added owner permission for query report