feat: base payment amount in payment schedule

This commit is contained in:
Saqib Ansari
2021-04-23 14:46:52 +05:30
committed by Deepesh Garg
parent afb60c3678
commit 9faaa8ffd8
2 changed files with 3 additions and 1 deletions

View File

@@ -57,6 +57,7 @@
"fieldtype": "Currency", "fieldtype": "Currency",
"in_list_view": 1, "in_list_view": 1,
"label": "Payment Amount", "label": "Payment Amount",
"options": "currency",
"reqd": 1 "reqd": 1
}, },
{ {
@@ -163,7 +164,7 @@
], ],
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2021-04-12 15:39:47.363609", "modified": "2021-04-23 13:55:59.548043",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Payment Schedule", "name": "Payment Schedule",

View File

@@ -2014,6 +2014,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
payment_term: function(doc, cdt, cdn) { payment_term: function(doc, cdt, cdn) {
var row = locals[cdt][cdn]; var row = locals[cdt][cdn];
if(row.payment_term) { if(row.payment_term) {
debugger;
frappe.call({ frappe.call({
method: "erpnext.controllers.accounts_controller.get_payment_term_details", method: "erpnext.controllers.accounts_controller.get_payment_term_details",
args: { args: {