[issues #437] [fix] pulling terms and conditions
diff --git a/public/js/transaction.js b/public/js/transaction.js
index 9004a99..b7df5b6 100644
--- a/public/js/transaction.js
+++ b/public/js/transaction.js
@@ -507,4 +507,18 @@
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 },
+ },
+ });
+ }
+ },
});
\ No newline at end of file