Skip to content

Commit

Permalink
test: fix test for settling gratuity via fnf
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c023e8)
  • Loading branch information
AyshaHakeem authored and mergify[bot] committed Jan 14, 2025
1 parent a7ca501 commit 27c80e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions hrms/payroll/doctype/gratuity/test_gratuity.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@

from hrms.hr.doctype.attendance.attendance import mark_attendance
from hrms.hr.doctype.expense_claim.test_expense_claim import get_payable_account
from hrms.hr.doctype.full_and_final_statement.full_and_final_statement import (
update_full_and_final_statement_status,
)
from hrms.payroll.doctype.gratuity.gratuity import get_last_salary_slip
from hrms.payroll.doctype.salary_slip.test_salary_slip import (
make_deduction_salary_component,
Expand Down Expand Up @@ -206,8 +203,14 @@ def test_settle_gratuity_via_fnf_statement(self):
},
)
fnf.submit()

jv = fnf.create_journal_entry()
jv.accounts[1].account = frappe.get_cached_value("Company", "_Test Company", "default_bank_account")
jv.cheque_no = "123456"
jv.cheque_date = getdate()
jv.save()
jv.submit()

gratuity.reload()
self.assertEqual(gratuity.status, "Paid")

Expand Down

0 comments on commit 27c80e0

Please sign in to comment.