def setUp(self): create_loan_accounts() create_loan_type("Demand Loan", 2000000, 13.5, 25, 0, 5, 'Cash', 'Payment Account - _TC', 'Loan Account - _TC', 'Interest Income Account - _TC', 'Penalty Income Account - _TC') create_loan_security_type() create_loan_security() create_loan_security_price( "Test Security 1", 500, "Nos", get_datetime(), get_datetime(add_to_date(nowdate(), hours=24))) create_loan_security_price( "Test Security 2", 250, "Nos", get_datetime(), get_datetime(add_to_date(nowdate(), hours=24))) if not frappe.db.exists("Customer", "_Test Loan Customer"): frappe.get_doc(get_customer_dict('_Test Loan Customer')).insert( ignore_permissions=True) self.applicant = frappe.db.get_value("Customer", {'name': '_Test Loan Customer'}, 'name')
def setUp(self): create_loan_accounts() create_loan_type( "Demand Loan", 2000000, 13.5, 25, 0, 5, "Cash", "Disbursement Account - _TC", "Payment Account - _TC", "Loan Account - _TC", "Interest Income Account - _TC", "Penalty Income Account - _TC", ) create_loan_security_type() create_loan_security() create_loan_security_price( "Test Security 1", 500, "Nos", get_datetime(), get_datetime(add_to_date(nowdate(), hours=24))) if not frappe.db.exists("Customer", "_Test Loan Customer"): frappe.get_doc(get_customer_dict("_Test Loan Customer")).insert( ignore_permissions=True) self.applicant = frappe.db.get_value("Customer", {"name": "_Test Loan Customer"}, "name")