Updated rebase to delete ServiceCharge
This commit is contained in:
parent
5b562051e7
commit
824e20ab78
@ -103,6 +103,7 @@ def delete_data(date):
|
||||
|
||||
Inventory.__table__.delete(Inventory.voucher_id.in_(sub_query)).execute()
|
||||
SalaryDeduction.__table__.delete(SalaryDeduction.voucher_id.in_(sub_query)).execute()
|
||||
ServiceCharge.__table__.delete(ServiceCharge.voucher_id.in_(sub_query)).execute()
|
||||
Journal.__table__.delete(Journal.voucher_id.in_(sub_query)).execute()
|
||||
DbImage.__table__.delete(and_(DbImage.resource_type == 'voucher', DbImage.resource_id.in_(sub_query))).execute()
|
||||
Voucher.__table__.delete(Voucher.date < date).execute()
|
||||
|
Loading…
Reference in New Issue
Block a user