Test case fixes
This commit is contained in:
parent
ae276bcaa1
commit
e5b3a56cea
@ -58,7 +58,7 @@ def create_loan(applicant, loan_type, loan_amount, repayment_method, repayment_p
|
||||
"repayment_method": repayment_method,
|
||||
"repayment_periods": repayment_periods,
|
||||
"disbursement_date": nowdate(),
|
||||
"repayment_start_date": add_days(nowdate(), 10),
|
||||
"repayment_start_date": nowdate(),
|
||||
"status": "Disbursed",
|
||||
"mode_of_payment": frappe.db.get_value('Mode of Payment', {'type': 'Cash'}, 'name'),
|
||||
"payment_account": frappe.db.get_value('Account', {'account_type': 'Cash', 'company': erpnext.get_default_company(),'is_group':0}, "name"),
|
||||
|
@ -13,6 +13,8 @@ from erpnext.hr.doctype.salary_slip.test_salary_slip import get_salary_component
|
||||
from erpnext.hr.doctype.salary_structure.test_salary_structure import make_salary_structure
|
||||
from erpnext.hr.doctype.loan.test_loan import create_loan
|
||||
|
||||
test_dependencies = ["Salary Component"]
|
||||
|
||||
class TestPayrollEntry(unittest.TestCase):
|
||||
def setUp(self):
|
||||
for dt in ["Salary Slip", "Salary Component", "Salary Component Account", "Payroll Entry", "Loan"]:
|
||||
|
Loading…
Reference in New Issue
Block a user