def complaintPeriod(self):
     if self.tenderPeriod.startDate < COMPLAINT_OLD_SUBMIT_TIME_BEFORE:
         return Period(
             dict(startDate=self.tenderPeriod.startDate,
                  endDate=calculate_business_date(
                      self.tenderPeriod.endDate, -COMPLAINT_OLD_SUBMIT_TIME,
                      self)))
     else:
         normalized_end = calculate_normalized_date(
             self.tenderPeriod.endDate, self)
         return Period(
             dict(startDate=self.tenderPeriod.startDate,
                  endDate=calculate_business_date(normalized_end,
                                                  -COMPLAINT_SUBMIT_TIME,
                                                  self, True)))
 def complaintPeriod(self):
     normalized_end = calculate_normalized_date(self.tenderPeriod.endDate,
                                                self)
     return Period(
         dict(startDate=self.tenderPeriod.startDate,
              endDate=calculate_business_date(normalized_end,
                                              -COMPLAINT_SUBMIT_TIME,
                                              self)))
Beispiel #3
0
 def complaintPeriod(self):
     if self.tenderPeriod.startDate < COMPLAINT_OLD_SUBMIT_TIME_BEFORE:
         endDate = calculate_tender_business_date(
             self.tenderPeriod.endDate, -COMPLAINT_OLD_SUBMIT_TIME, self)
     else:
         endDate = calculate_complaint_business_date(
             self.tenderPeriod.endDate, -COMPLAINT_SUBMIT_TIME, self)
     return Period(
         dict(startDate=self.tenderPeriod.startDate, endDate=endDate))
 def complaintPeriod(self):
     endDate = calculate_complaint_business_date(self.tenderPeriod.endDate,
                                                 -COMPLAINT_SUBMIT_TIME,
                                                 self)
     return Period(
         dict(startDate=self.tenderPeriod.startDate, endDate=endDate))
 def tender_enquiryPeriod(self):
     return Period(dict(startDate=self.tenderPeriod.startDate, endDate=calculate_business_date(self.tenderPeriod.endDate, -ENQUIRY_PERIOD_TIME)))
 def auction_tenderPeriod(self):
     if self.tenderPeriod and self.tenderPeriod.endDate:
         return self.tenderPeriod
     endDate = calculate_business_date(self.auctionPeriod.startDate,
                                       -timedelta(days=1), self)
     return Period(dict(endDate=endDate))