Merge pull request #4230 from nabinhait/fix26

minor fix
diff --git a/erpnext/public/js/utils/party.js b/erpnext/public/js/utils/party.js
index cc6f112..427cd89 100644
--- a/erpnext/public/js/utils/party.js
+++ b/erpnext/public/js/utils/party.js
@@ -22,7 +22,7 @@
 		}
 		
 		if (args) {
-			args.posting_date = frm.doc.transaction_date;
+			args.posting_date = frm.doc.posting_date || frm.doc.transaction_date;
 		}
 	}
 	if(!args) return;