Disable default posting date = today

When recording purchase or sales invoices, posting date is set to today by default. How can I disable this? I just want it to be left empty, forcing the user to input manually.

I’m OK with changing a function for this on the server, just can’t figure out in which file this is.

To unset default date , customize the “transaction.js” file.

Geetanjali Shitole
New Indictrans Technologies Pvt. Ltd.

Why posting_date is hardcoded?
I have removed Default value Today from Customize from, but its not working

I tried commenting the two lines below which mention “today” but still no luck. Posting date keeps being populated with today. (supervisor restart, new browser…) Please help.

erpnext.TransactionController = erpnext.taxes_and_totals.extend({
	onload: function() {
		var me = this;
		if(this.frm.doc.__islocal) {
			var today = get_today(),
				currency = frappe.defaults.get_user_default("currency");

			$.each({
				// posting_date: today,
				// transaction_date: today,