Skip to content

Commit

Permalink
update award.complaintPeriod.endDate only in complaintPeriod
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Sep 7, 2017
1 parent c21e4ce commit 7c9cb0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openprocurement/tender/openua/views/award.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,14 @@ def patch(self):
tender.status = 'active.qualification'
tender.awardPeriod.endDate = None
now = get_now()
award.complaintPeriod.endDate = now
if award.complaintPeriod.endDate > now:
award.complaintPeriod.endDate = now
cancelled_awards = []
for i in tender.awards:
if i.lotID != award.lotID:
continue
i.complaintPeriod.endDate = now
if not i.complaintPeriod.endDate or i.complaintPeriod.endDate > now:
i.complaintPeriod.endDate = now
i.status = 'cancelled'
cancelled_awards.append(i.id)
for i in tender.contracts:
Expand Down

0 comments on commit 7c9cb0c

Please sign in to comment.