refactored get_value and added backlink check in 'cancel'
Merge branch 'master' of github.com:webnotes/erpnext