Updated rebase to delete ServiceCharge

This commit is contained in:
Gogs 2016-09-25 03:14:39 +00:00
parent 5b562051e7
commit 824e20ab78

View File

@ -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()