Auto Fetch Custom Scrip

20 views
Skip to first unread message

Nate Gallery

unread,
Apr 17, 2014, 3:19:37 PM4/17/14
to erpnext-dev...@googlegroups.com
I used the following script to try and get the nda_expiration_date to be fetched when a Customer was selected on an Opportunity but it doesn't work:

cur_frm.cscript.customer = function(doc) {
    cur_frm.call({
        method: "get_nda_expiration_date",
        args: { customer: doc.customer }
    });
}

What am I doing wrong here?

rushabh

unread,
Apr 18, 2014, 2:48:40 PM4/18/14
to erpnext-dev...@googlegroups.com
Please open your JS console and reproduce the trace. Also mention which version you are using.
Reply all
Reply to author
Forward
0 new messages