hr reports cleanup

This commit is contained in:
Nabin Hait 2012-04-16 12:31:36 +05:30
parent dbffc2d8d0
commit eaf8b91402
2 changed files with 5 additions and 5 deletions

View File

@ -43,8 +43,8 @@ for r in res:
for d1 in li: for d1 in li:
d2 = '%s'%d1 d2 = '%s'%d1
earn_ret=convert_to_lists(sql("select e_type,e_amount from `tabSS Earning Detail` where parent = '%s'"%r[col_idx['ID']])) earn_ret=convert_to_lists(sql("select e_type,e_amount from `tabSalary Slip Earning` where parent = '%s'"%r[col_idx['ID']]))
ded_ret=convert_to_lists(sql("select d_type,d_amount from `tabSS Deduction Detail` where parent = '%s'"%r[col_idx['ID']])) ded_ret=convert_to_lists(sql("select d_type,d_amount from `tabSalary Slip Deduction` where parent = '%s'"%r[col_idx['ID']]))
for e in earn_ret: for e in earn_ret:
@ -78,7 +78,7 @@ for lst in earn_type_lst:
for r in res: for r in res:
lst0 = '%s'%lst[0] lst0 = '%s'%lst[0]
total_ear += r[col_idx[lst0]] total_ear += flt(r[col_idx[lst0]])
total.append(total_ear) total.append(total_ear)
@ -87,7 +87,7 @@ for lst in ded_type_lst:
total_ded = 0 total_ded = 0
for r in res: for r in res:
lst0 = '%s'%lst[0] lst0 = '%s'%lst[0]
total_ded += r[col_idx[lst0]] total_ded += flt(r[col_idx[lst0]])
total.append(total_ded) total.append(total_ded)

View File

@ -129,7 +129,7 @@ def delete_search_criteria():
'periodic_sales_summary', 'monthly_despatched_trend', 'sales', 'sales_order', 'periodic_sales_summary', 'monthly_despatched_trend', 'sales', 'sales_order',
'sales_order1', 'sales_agentwise_commission', 'test_report', 'sales_order1', 'sales_agentwise_commission', 'test_report',
'territory_wise_sales_-_target_vs_actual_', 'territory_wise_sales_-_target_vs_actual_',
'pending_po_items_to_bill1', 'pending_po_items_to_receive1')""") 'pending_po_items_to_bill1', 'pending_po_items_to_receive1', 'expense_vouchers', 'pending_expense_vouchers')""")
webnotes.conn.sql(""" webnotes.conn.sql("""
DELETE FROM `tabSearch Criteria` DELETE FROM `tabSearch Criteria`