mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
fix: serialize document values with tojson in rfq portal script
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user