Subversion Repositories SmartDukaan

Rev

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

Rev 6524 Rev 6537
Line 138... Line 138...
138
        # This warehouse may be located in a zone which is different from the one we allocated for this pincode.
138
        # This warehouse may be located in a zone which is different from the one we allocated for this pincode.
139
        #delivery_estimate = get_logistics_estimation(destination_pin, item.sellingPrice, warehouse_loc, type)
139
        #delivery_estimate = get_logistics_estimation(destination_pin, item.sellingPrice, warehouse_loc, type)
140
        #if delivery_estimate is None:
140
        #if delivery_estimate is None:
141
        #    raise LogisticsServiceException(105, "Unable to fetch delivery estimate for pincode: " + destination_pin + " and revised location: " + str(warehouse_loc))
141
        #    raise LogisticsServiceException(105, "Unable to fetch delivery estimate for pincode: " + destination_pin + " and revised location: " + str(warehouse_loc))
142
        
142
        
143
        delivery_time = 24 * delivery_estimate.delivery_time
143
        delivery_time = 24 * (delivery_estimate.delivery_time + delivery_estimate.delivery_delay)
144
        
144
        
145
        '''
145
        '''
146
        We're now calculating the expected shipping delay which is independent of
146
        We're now calculating the expected shipping delay which is independent of
147
        the courier agency and is completely within our control (well, almost).
147
        the courier agency and is completely within our control (well, almost).
148
        '''
148
        '''