fix: serialize document values with tojson in rfq portal script

This commit is contained in:
diptanilsaha
2026-08-18 22:49:07 +05:30
parent c42d653da5
commit a3032f2f66

View File

@@ -5,10 +5,10 @@ window.doc={{ doc.as_json() }};
$(document).ready(function() {
new rfq();
doc.supplier = "{{ doc.supplier }}"
doc.currency = "{{ doc.currency }}"
doc.number_format = "{{ doc.number_format }}"
doc.buying_price_list = "{{ doc.buying_price_list }}"
doc.supplier = {{ doc.supplier | tojson }}
doc.currency = {{ doc.currency | tojson }}
doc.number_format = {{ doc.number_format | tojson }}
doc.buying_price_list = {{ doc.buying_price_list | tojson }}
});
rfq = class rfq {