Hi guys getting an error any ideas?, I am following the example usage in payment.js here.
i have added in hooks file
app_include_js = “assets/js/select_batch.html”
make_batch: function () {
var me = this;
$(this.$body).empty();
$(this.$body).html(frappe.render_template('select_batch', this.frm.doc))
this.bind_batch_event()
},
instead of adding the template in app_include_js add the file reference to build.json it will create the minified js file link the minefield js file in app_include_js