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() { $(document).ready(function() {
new rfq(); new rfq();
doc.supplier = "{{ doc.supplier }}" doc.supplier = {{ doc.supplier | tojson }}
doc.currency = "{{ doc.currency }}" doc.currency = {{ doc.currency | tojson }}
doc.number_format = "{{ doc.number_format }}" doc.number_format = {{ doc.number_format | tojson }}
doc.buying_price_list = "{{ doc.buying_price_list }}" doc.buying_price_list = {{ doc.buying_price_list | tojson }}
}); });
rfq = class rfq { rfq = class rfq {