mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
fixed test case
This commit is contained in:
@@ -57,7 +57,7 @@ class TestSalarySlip(unittest.TestCase):
|
|||||||
self.assertTrue(ss[0][0]==67)
|
self.assertTrue(ss[0][0]==67)
|
||||||
|
|
||||||
def test_submit(self):
|
def test_submit(self):
|
||||||
self.sm.submit_sal_slip()
|
self.sm.submit_salary_slip()
|
||||||
ss = webnotes.conn.sql("""
|
ss = webnotes.conn.sql("""
|
||||||
select docstatus
|
select docstatus
|
||||||
from `tabSalary Slip`
|
from `tabSalary Slip`
|
||||||
@@ -112,7 +112,8 @@ emp1 = Document(fielddata={
|
|||||||
'grade':'grade1',
|
'grade':'grade1',
|
||||||
'naming_series':'EMP/',
|
'naming_series':'EMP/',
|
||||||
'status':'Active',
|
'status':'Active',
|
||||||
'docstatus':0
|
'docstatus':0,
|
||||||
|
'employee_name':'emp1'
|
||||||
})
|
})
|
||||||
|
|
||||||
emp2 = Document(fielddata={
|
emp2 = Document(fielddata={
|
||||||
@@ -135,7 +136,8 @@ ss1 = [
|
|||||||
'employee':'emp1',
|
'employee':'emp1',
|
||||||
'is_active':'Yes',
|
'is_active':'Yes',
|
||||||
'department': 'dep1',
|
'department': 'dep1',
|
||||||
'designation' : 'des1'
|
'designation' : 'des1',
|
||||||
|
'employee_name': 'emp1'
|
||||||
}),
|
}),
|
||||||
Document(fielddata={
|
Document(fielddata={
|
||||||
'parenttype':'Salary Structure',
|
'parenttype':'Salary Structure',
|
||||||
|
|||||||
Reference in New Issue
Block a user