Skip to content

Commit

Permalink
Merge pull request #27 from openimis/policy_without_officer
Browse files Browse the repository at this point in the history
Error when policy had no officer (FS)
  • Loading branch information
edarchis authored May 6, 2022
2 parents 61f2178 + 8c55b4f commit 92d6b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ def _to_item(row):
enroll_date=row.enroll_date,
effective_date=row.effective_date,
expiry_date=row.expiry_date,
officer_code=row.officer.code,
officer_name=row.officer.name(),
officer_code=row.officer.code if row.officer else None,
officer_name=row.officer.name() if row.officer else None,
status=row.status,
ded=row.total_ded_g,
ded_in_patient=row.total_ded_ip,
Expand Down

0 comments on commit 92d6b09

Please sign in to comment.