fixes in buying_amount_calculation
Merge branch 'master' of github.com:webnotes/erpnext