Skip to content

Commit

Permalink
fix: populate payment schedule from payment terms (backport #44082) (#…
Browse files Browse the repository at this point in the history
…44083)

fix: populate payment schedule from payment terms (#44082)

(cherry picked from commit c81eb6c)

Co-authored-by: Nihantra C. Patel <[email protected]>
  • Loading branch information
mergify[bot] and Nihantra-Patel authored Nov 11, 2024
1 parent 34b5639 commit 363f151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -2446,7 +2446,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
payment_terms_template() {
var me = this;
const doc = this.frm.doc;
if(doc.payment_terms_template && doc.doctype !== 'Delivery Note' && doc.is_return == 0) {
if(doc.payment_terms_template && doc.doctype !== 'Delivery Note' && !doc.is_return) {
var posting_date = doc.posting_date || doc.transaction_date;
frappe.call({
method: "erpnext.controllers.accounts_controller.get_payment_terms",
Expand Down

0 comments on commit 363f151

Please sign in to comment.