From a3032f2f6640ef80ec8b8ee32c984b231d7ac230 Mon Sep 17 00:00:00 2001 From: diptanilsaha Date: Tue, 18 Aug 2026 22:49:07 +0530 Subject: [PATCH] fix: serialize document values with tojson in rfq portal script --- erpnext/templates/includes/rfq.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/erpnext/templates/includes/rfq.js b/erpnext/templates/includes/rfq.js index 4570a7445ff..cba5aead302 100644 --- a/erpnext/templates/includes/rfq.js +++ b/erpnext/templates/includes/rfq.js @@ -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 {