fix: typo in salary register report field name (#16670)
When assigning salary slip field values to row list for salary register, line 22, the field was incorrectly spelled. The correct value in the Salary Slip DocType is `leave_without_pay`, and this change reflects this. Line 27 also reflects this adjustment.
This commit is contained in:
parent
551f52fd25
commit
3a88bc43dc
@ -19,12 +19,12 @@ def execute(filters=None):
|
||||
data = []
|
||||
for ss in salary_slips:
|
||||
row = [ss.name, ss.employee, ss.employee_name, ss.branch, ss.department, ss.designation,
|
||||
ss.company, ss.start_date, ss.end_date, ss.leave_withut_pay, ss.payment_days]
|
||||
ss.company, ss.start_date, ss.end_date, ss.leave_without_pay, ss.payment_days]
|
||||
|
||||
if not ss.branch == None:columns[3] = columns[3].replace('-1','120')
|
||||
if not ss.department == None: columns[4] = columns[4].replace('-1','120')
|
||||
if not ss.designation == None: columns[5] = columns[5].replace('-1','120')
|
||||
if not ss.leave_withut_pay == None: columns[9] = columns[9].replace('-1','130')
|
||||
if not ss.leave_without_pay == None: columns[9] = columns[9].replace('-1','130')
|
||||
|
||||
|
||||
for e in earning_types:
|
||||
@ -115,4 +115,4 @@ def get_ss_ded_map(salary_slips):
|
||||
ss_ded_map.setdefault(d.parent, frappe._dict()).setdefault(d.salary_component, [])
|
||||
ss_ded_map[d.parent][d.salary_component] = flt(d.amount)
|
||||
|
||||
return ss_ded_map
|
||||
return ss_ded_map
|
||||
|
Loading…
Reference in New Issue
Block a user