mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-23 00:28:30 +00:00
feat: update due date in payment schedule
Partial backport of b629356b7c
This commit is contained in:
@@ -1042,6 +1042,14 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
due_date() {
|
due_date() {
|
||||||
// due_date is to be changed, payment terms template and/or payment schedule must
|
// due_date is to be changed, payment terms template and/or payment schedule must
|
||||||
// be removed as due_date is automatically changed based on payment terms
|
// be removed as due_date is automatically changed based on payment terms
|
||||||
|
|
||||||
|
// if there is only one row in payment schedule child table, set its due date as the due date
|
||||||
|
if (this.frm.doc.payment_schedule.length == 1){
|
||||||
|
this.frm.doc.payment_schedule[0].due_date = this.frm.doc.due_date;
|
||||||
|
this.frm.refresh_field("payment_schedule");
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this.frm.doc.due_date &&
|
this.frm.doc.due_date &&
|
||||||
!this.frm.updating_party_details &&
|
!this.frm.updating_party_details &&
|
||||||
|
|||||||
Reference in New Issue
Block a user