Subversion Repositories SmartDukaan

Rev

Rev 5843 | Rev 5944 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5843 Rev 5885
Line 150... Line 150...
150
            
150
            
151
        #Further increase the estimate if it's late in the day
151
        #Further increase the estimate if it's late in the day
152
        current_hour = datetime.datetime.now().hour
152
        current_hour = datetime.datetime.now().hour
153
        if type == DeliveryType.PREPAID and self.cutoff_time <= current_hour:
153
        if type == DeliveryType.PREPAID and self.cutoff_time <= current_hour:
154
            shipping_delay = shipping_delay + 24
154
            shipping_delay = shipping_delay + 24
155
        elif type == DeliveryType.COD and self.cod_cutoff_time <= current_hour:
-
 
156
            shipping_delay = shipping_delay + 24
-
 
157
        
155
        
158
        #In case of COD,increase delay by one more day
156
        #In case of COD,increase delay by one more day
159
        if type == DeliveryType.COD:
157
        if type == DeliveryType.COD:
160
            shipping_delay = shipping_delay + 24
158
            shipping_delay = shipping_delay + 24
161
            
159