[issues #437] [fix] pulling terms and conditions

This commit is contained in:
Anand Doshi
2013-06-05 14:11:32 +05:30
parent 8f81623240
commit bf3e54a45b
21 changed files with 37 additions and 71 deletions

View File

@@ -507,4 +507,18 @@ erpnext.TransactionController = wn.ui.form.Controller.extend({
item[base_field] = flt(item[print_field] * this.frm.doc.conversion_rate,
precision(base_field, item));
},
get_terms: function() {
var me = this;
if(this.frm.doc.tc_name) {
this.frm.call({
method: "webnotes.client.get_value",
args: {
doctype: "Terms and Conditions",
fieldname: "terms",
filters: { name: this.frm.doc.tc_name },
},
});
}
},
});