hr reports cleanup
This commit is contained in:
parent
dbffc2d8d0
commit
eaf8b91402
@ -43,8 +43,8 @@ for r in res:
|
||||
for d1 in li:
|
||||
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']]))
|
||||
ded_ret=convert_to_lists(sql("select d_type,d_amount from `tabSS Deduction 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 `tabSalary Slip Deduction` where parent = '%s'"%r[col_idx['ID']]))
|
||||
|
||||
|
||||
for e in earn_ret:
|
||||
@ -78,7 +78,7 @@ for lst in earn_type_lst:
|
||||
for r in res:
|
||||
|
||||
lst0 = '%s'%lst[0]
|
||||
total_ear += r[col_idx[lst0]]
|
||||
total_ear += flt(r[col_idx[lst0]])
|
||||
|
||||
total.append(total_ear)
|
||||
|
||||
@ -87,7 +87,7 @@ for lst in ded_type_lst:
|
||||
total_ded = 0
|
||||
for r in res:
|
||||
lst0 = '%s'%lst[0]
|
||||
total_ded += r[col_idx[lst0]]
|
||||
total_ded += flt(r[col_idx[lst0]])
|
||||
|
||||
total.append(total_ded)
|
||||
|
||||
|
@ -129,7 +129,7 @@ def delete_search_criteria():
|
||||
'periodic_sales_summary', 'monthly_despatched_trend', 'sales', 'sales_order',
|
||||
'sales_order1', 'sales_agentwise_commission', 'test_report',
|
||||
'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("""
|
||||
DELETE FROM `tabSearch Criteria`
|
||||
|
Loading…
Reference in New Issue
Block a user