Update policy.py
This commit is contained in:
parent
6cd7903555
commit
f2943e1d69
1 changed files with 2 additions and 2 deletions
|
@ -145,7 +145,7 @@ def departure_date_limit_rule(report, fields):
|
||||||
planning_section.add_rule(title="Departure date limit", rule=departure_date_limit_rule)
|
planning_section.add_rule(title="Departure date limit", rule=departure_date_limit_rule)
|
||||||
|
|
||||||
def economy_class_rule(report, fields):
|
def economy_class_rule(report, fields):
|
||||||
if not economy_class:
|
if not fields.economy_class:
|
||||||
return "Only economy or coach class tickets are within policy."
|
return "Only economy or coach class tickets are within policy."
|
||||||
|
|
||||||
planning_section.add_rule(title="Economy class check", rule=economy_class_rule)
|
planning_section.add_rule(title="Economy class check", rule=economy_class_rule)
|
||||||
|
|
Loading…
Reference in a new issue