[minor] [fix] added end of life condition in item query
Merge branch '1310' of github.com:webnotes/erpnext