Skip to content

Commit

Permalink
remove LogicBank cascade rules
Browse files Browse the repository at this point in the history
  • Loading branch information
valhuber committed Dec 21, 2020
1 parent ac64a32 commit 8a261b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nw/logic/rules_bank.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ def congratulate_sales_rep(row: Order, old_row: Order, logic_row: LogicRow):

Rule.count(derive=Employee.order_count, as_count_of=Order)

Rule.parent_cascade(validate=Order, relationship="OrderDetailList", error_msg="N/A", action=ParentCascadeAction.DELETE)

Rule.parent_cascade(validate=Customer, relationship="OrderList", error_msg="N/A", action=ParentCascadeAction.DELETE)

def raise_over_20_percent(row: Employee, old_row: Employee, logic_row: LogicRow):
if logic_row.ins_upd_dlt == "upd" and row.Salary != old_row.Salary:
return row.Salary >= Decimal('1.20') * old_row.Salary
Expand Down

0 comments on commit 8a261b0

Please sign in to comment.