Skip to content

Commit

Permalink
Added clear auction period on invalidation bids
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Feb 16, 2016
1 parent a9ebf79 commit 050157a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openprocurement/tender/openua/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ def next_check(self):
return min(checks).isoformat() if checks else None

def invalidate_bids_data(self):
if self.auctionPeriod and self.auctionPeriod.startDate:
self.auctionPeriod.startDate = None
[setattr(i.auctionPeriod, 'startDate', None) for i in self.lots if i.auctionPeriod and i.auctionPeriod.startDate]
for bid in self.bids:
if bid.status != "deleted":
bid.status = "invalid"

0 comments on commit 050157a

Please sign in to comment.