parent
53819fb9d4
commit
5d14c37496
|
@ -227,7 +227,7 @@ class employees_salary_report(rml_parse.rml_parse):
|
|||
def get_monthly_total(self):
|
||||
return self.month_total_list
|
||||
|
||||
report_sxw.report_sxw('report.employees.salary', 'hr.payslip', 'hr_payroll/report/report_employees_detail.rml', parser=employees_salary_report,header=3)
|
||||
report_sxw.report_sxw('report.employees.salary', 'hr.payslip', 'hr_payroll/report/report_employees_detail.rml', parser=employees_salary_report,header='internal landscape')
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ class year_salary_report(rml_parse.rml_parse):
|
|||
self.total += item[count]
|
||||
return self.total
|
||||
|
||||
report_sxw.report_sxw('report.year.salary', 'hr.payslip', 'hr_payroll/report/report_year_report.rml', parser=year_salary_report,header=3)
|
||||
report_sxw.report_sxw('report.year.salary', 'hr.payslip', 'hr_payroll/report/report_year_report.rml', parser=year_salary_report,header='internal landscape')
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -151,10 +151,10 @@ class rml_parse(report_sxw.rml_parse):
|
|||
print Stringer
|
||||
return Stringer
|
||||
|
||||
def _add_header(self, node, header=1):
|
||||
if header==2:
|
||||
def _add_header(self, node, header='external'):
|
||||
if header=='internal':
|
||||
rml_head = self.rml_header2
|
||||
elif header==3:
|
||||
elif header=='internal landscape':
|
||||
rml_head = self.rml_header3
|
||||
else:
|
||||
rml_head = self.rml_header
|
||||
|
|
Loading…
Reference in New Issue