fixes in sales order test cases and set_buying_amount
Merge branch 'master' of github.com:webnotes/erpnext