2022-01-25 14:29:33 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
|
|
|
|
def execute():
|
|
|
|
|
|
|
|
frappe.reload_doc("loan_management", "doctype", "loan_type")
|
|
|
|
frappe.reload_doc("loan_management", "doctype", "loan")
|
|
|
|
|
|
|
|
loan_type = frappe.qb.DocType("Loan Type")
|
|
|
|
loan = frappe.qb.DocType("Loan")
|
|
|
|
|
2022-03-28 13:22:46 +00:00
|
|
|
frappe.qb.update(loan_type).set(loan_type.disbursement_account, loan_type.payment_account).run()
|
2022-01-25 14:29:33 +00:00
|
|
|
|
2022-03-28 13:22:46 +00:00
|
|
|
frappe.qb.update(loan).set(loan.disbursement_account, loan.payment_account).run()
|