Custom Script in Payment Entry:
cur_frm.add_fetch(“purchase_invoice”,“bill_no”,“bill_no”);
Script error in Payment entry after a refresh:
SyntaxError: Invalid or unexpected token
at Class.setup (http://192.168.1.240/assets/js/form.min.js?ver=1531735239.0:2691:18)
at _f.Frm.setup (http://192.168.1.240/assets/js/form.min.js?ver=1531735239.0:172:22)
at _f.Frm.refresh (http://192.168.1.240/assets/js/form.min.js?ver=1531735239.0:446:9)
at Class.load (http://192.168.1.240/assets/js/form.min.js?ver=1531735239.0:87:33)
at http://192.168.1.240/assets/js/form.min.js?ver=1531735239.0:82:7
at Object.callback (http://192.168.1.240/assets/js/desk.min.js?ver=1531735239.0:5516:6)
at Object.callback [as success_callback] (http://192.168.1.240/assets/js/desk.min.js?ver=1531735239.0:1437:16)
at _ (http://192.168.1.240/assets/js/desk.min.js?ver=1531735239.0:1461:34)
at Object. (http://192.168.1.240/assets/js/desk.min.js?ver=1531735239.0:1562:5)
at i (http://192.168.1.240/assets/frappe/js/lib/jquery/jquery.min.js:2:27151)
Why the error?