Subversion Repositories SmartDukaan

Rev

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

Rev 9964 Rev 10185
Line 137... Line 137...
137
        if item_selling_price <= providerPrepaidLimit:
137
        if item_selling_price <= providerPrepaidLimit:
138
            iscod = iscod and item_selling_price <= websiteCodLimit
138
            iscod = iscod and item_selling_price <= websiteCodLimit
139
            otgAvailable = otgAvailable and item_selling_price >= 2000
139
            otgAvailable = otgAvailable and item_selling_price >= 2000
140
            return 1, iscod, otgAvailable
140
            return 1, iscod, otgAvailable
141
    
141
    
142
    else:
-
 
143
        return None, False, False    
142
    return None, False, False    
144
 
143
 
145
def get_destination_code(providerId, pinCode):
144
def get_destination_code(providerId, pinCode):
146
    serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
145
    serviceableLocationDetail = ServiceableLocationDetails.query.filter_by(provider_id = providerId, dest_pincode = pinCode).one()
147
    return serviceableLocationDetail.dest_code
146
    return serviceableLocationDetail.dest_code
148
    
147