Auto payment due

Hallo, if i make a new invoice, i manually have to fill in the field “Payment Due Date”
Is there a function, to auto fill it with a date in the future - e.g. plus 7 Days?

Hi @quintact! you can set a Custom script for this onload:

frappe.ui.form.on("Sales Invoice", "onload", function(frm){
    frm.set_value("payment_due_date", [your_calc_date_here] );

You can set credit days at customer level also for this.

Hey Pawan … :slight_smile:
Is this a basic settung for all user - accept i set another credit day for one customer?