mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
feat(Payment Request): Added a toggle for using the payment schedule
This commit is contained in:
@@ -66,6 +66,7 @@
|
|||||||
"payment_options_section",
|
"payment_options_section",
|
||||||
"enable_loyalty_point_program",
|
"enable_loyalty_point_program",
|
||||||
"column_break_ctam",
|
"column_break_ctam",
|
||||||
|
"fetch_payment_schedule_in_payment_request",
|
||||||
"invoicing_settings_tab",
|
"invoicing_settings_tab",
|
||||||
"accounts_transactions_settings_section",
|
"accounts_transactions_settings_section",
|
||||||
"over_billing_allowance",
|
"over_billing_allowance",
|
||||||
@@ -696,16 +697,21 @@
|
|||||||
"fieldname": "enable_subscription",
|
"fieldname": "enable_subscription",
|
||||||
"fieldtype": "Check",
|
"fieldtype": "Check",
|
||||||
"label": "Enable Subscription"
|
"label": "Enable Subscription"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "1",
|
||||||
|
"fieldname": "fetch_payment_schedule_in_payment_request",
|
||||||
|
"fieldtype": "Check",
|
||||||
|
"label": "Fetch Payment Schedule In Payment Request"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"grid_page_length": 50,
|
"grid_page_length": 50,
|
||||||
"hide_toolbar": 0,
|
|
||||||
"icon": "icon-cog",
|
"icon": "icon-cog",
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2026-02-27 01:04:09.415288",
|
"modified": "2026-03-30 07:32:58.182018",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Accounts Settings",
|
"name": "Accounts Settings",
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ class AccountsSettings(Document):
|
|||||||
enable_party_matching: DF.Check
|
enable_party_matching: DF.Check
|
||||||
enable_subscription: DF.Check
|
enable_subscription: DF.Check
|
||||||
exchange_gain_loss_posting_date: DF.Literal["Invoice", "Payment", "Reconciliation Date"]
|
exchange_gain_loss_posting_date: DF.Literal["Invoice", "Payment", "Reconciliation Date"]
|
||||||
|
fetch_payment_schedule_in_payment_request: DF.Check
|
||||||
fetch_valuation_rate_for_internal_transaction: DF.Check
|
fetch_valuation_rate_for_internal_transaction: DF.Check
|
||||||
general_ledger_remarks_length: DF.Int
|
general_ledger_remarks_length: DF.Int
|
||||||
ignore_account_closing_balance: DF.Check
|
ignore_account_closing_balance: DF.Check
|
||||||
|
|||||||
@@ -459,8 +459,12 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
|||||||
reference_name: frm.doc.name,
|
reference_name: frm.doc.name,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
const value = await frappe.db.get_single_value(
|
||||||
|
"Accounts Settings",
|
||||||
|
"fetch_payment_schedule_in_payment_request"
|
||||||
|
);
|
||||||
|
|
||||||
if (!schedules.length) {
|
if (!value || !schedules.length) {
|
||||||
this.make_payment_request();
|
this.make_payment_request();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user