fixed erpnext/frappe#1441 and other pos related cleanups