Fetch gst rates in quotation

Hi
I have used the below code contributed by one of our esteem member
frappe.ui.form.on(“quotation”, “validate”, function(frm) {
var tax= $(“.tax-break-up”).html()
$(cur_frm.fields_dict.other_charges_calculation.wrapper).html(“sam”)
cur_frm.set_value(“tax_breakup”,tax);

});

i created tax_breakup and type as text entry in the quotation doc
i added this in my print format
its not working
any help on this
Thank You
Regards
Hemanth

tax_breakup is HTML field and set_value does not work on HTML field. use (cur_frm.fields_dict.other_charges_calculation.wrapper).html(tax) instead

frappe.ui.form.on(“quotation”, “validate”, function(frm) {
var tax= $(“.tax-break-up”).html()
$(cur_frm.fields_dict.other_charges_calculation.wrapper).html(tax)
cur_frm.set_value(“tax_breakup”,tax);
});
used the above code
still nothing
hemanth

check the value of tax

i have used the same code on my sales invoice and it is working fine
its only on the quotation that its not showing up
regards