Subversion Repositories SmartDukaan

Rev

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

Rev 4009 Rev 4010
Line 167... Line 167...
167
        if type == DeliveryType.PREPAID and self.cutoff_time <= current_hour:
167
        if type == DeliveryType.PREPAID and self.cutoff_time <= current_hour:
168
            shipping_delay = shipping_delay + 24
168
            shipping_delay = shipping_delay + 24
169
        elif type == DeliveryType.COD and self.cod_cutoff_time <= current_hour:
169
        elif type == DeliveryType.COD and self.cod_cutoff_time <= current_hour:
170
            shipping_delay = shipping_delay + 24
170
            shipping_delay = shipping_delay + 24
171
        
171
        
172
        shipping_delay = int(math.ceil(shipping_delay/24.0))
-
 
173
        
-
 
174
        delivery_time = delivery_time + shipping_delay
172
        delivery_time = delivery_time + shipping_delay
175
        
173
        
-
 
174
        shipping_delay = int(math.ceil(shipping_delay/24.0))
-
 
175
        delivery_time = int(math.ceil(delivery_time/24.0))
-
 
176
        
176
        '''
177
        '''
177
        Delays such as the following are delivery delays and are to only affect the
178
        Delays such as the following are delivery delays and are to only affect the
178
        delivery time and not the shipping time.
179
        delivery time and not the shipping time.
179
        '''
180
        '''
180
        '''
181
        '''