bug fix: sales invoice always dirty even after reloading
This commit is contained in:
parent
095cfc9cfc
commit
79f9a4aef1
@ -1131,7 +1131,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
||||
|
||||
payment_terms_template: function() {
|
||||
var me = this;
|
||||
if(this.frm.doc.payment_terms_template) {
|
||||
if(this.frm.doc.payment_terms_template && this.frm.doc.payment_schedule.length === 0) {
|
||||
frappe.call({
|
||||
method: "erpnext.controllers.accounts_controller.get_payment_terms",
|
||||
args: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user