From 824e20ab789813f97323fd8eec862e616d162d76 Mon Sep 17 00:00:00 2001 From: Gogs Date: Sun, 25 Sep 2016 03:14:39 +0000 Subject: [PATCH] Updated rebase to delete ServiceCharge --- brewman/views/Management/rebase.py | 1 + 1 file changed, 1 insertion(+) 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()