In v15 posting the Sales Invoice & Purchase Invoice in Future date

Anyone can explain. Why transaction can be posted in future date ?

Hi @dineshpanchal432,

As per my understanding, you can now input Sales Invoices and Purchase Invoices for dates in the future. This means you can prepare invoices beforehand for upcoming transactions, like scheduled monthly sales or purchases. It helps with managing your accounts accurately, reflecting income and expenses when they occur, even if the actual money exchange happens later. This feature also assists in organizing your workflow, accommodating time zone differences, and keeping your financial records well-ordered. Just remember to use it responsibly, with proper permissions and oversight to maintain accuracy in your financial reporting.

1 Like

Ok, Thank you.

Can we make a check box in the accounting setting to enable or disable future transactions?

Is this a good idea?

You can develop the client/server script for that.

Ok Sure.

Thanks

Hi @dineshpanchal432,

Please check the client script.

frappe.ui.form.on('Sales Invoice', {
	before_save: function(frm) {
		frappe.db.get_single_value("Accounts Settings", "future_date").then( val => {
		    if (val != 1) {
		        frappe.throw("You can't use the future date");
		    }
		});
	}
});

You have to add future_date in the Accounts Settings and set it according to the scenario.

i hope this helps.

Thank You!

1 Like

Thank you so much