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
vmaksymiv committed Apr 1, 2016
1 parent 5f6e05e commit 74c3d27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openprocurement/tender/openua/views/award.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def patch(self):
'contractID': '{}-{}{}'.format(tender.tenderID, self.server_id, len(tender.contracts) +1) }))
add_next_award(self.request)
elif award_status == 'active' and award.status == 'cancelled':
award.complaintPeriod.endDate = get_now()
now = get_now()
if award.complaintPeriod.endDate > now:
award.complaintPeriod.endDate = now
for i in tender.contracts:
if i.awardID == award.id:
i.status = 'cancelled'
Expand Down

0 comments on commit 74c3d27

Please sign in to comment.