diff --git a/brewman/views/Management/rebase.py b/brewman/views/Management/rebase.py index 7c7b38ef..d1ee56d4 100644 --- a/brewman/views/Management/rebase.py +++ b/brewman/views/Management/rebase.py @@ -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()