diff --git a/erpnext/public/js/utils/party.js b/erpnext/public/js/utils/party.js index 1a86b2b620..9173b71703 100644 --- a/erpnext/public/js/utils/party.js +++ b/erpnext/public/js/utils/party.js @@ -20,7 +20,10 @@ erpnext.utils.get_party_details = function(frm, method, args, callback) { price_list: frm.doc.buying_price_list }; } - args.posting_date = frm.doc.transaction_date; + + if (args) { + args.posting_date = frm.doc.transaction_date; + } } if(!args) return;