Subversion Repositories SmartDukaan

Rev

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

Rev 23284 Rev 23285
Line 8578... Line 8578...
8578
        
8578
        
8579
        if order.cod:
8579
        if order.cod:
8580
            if totalOrdersAmount > provider.maxCodLimit:
8580
            if totalOrdersAmount > provider.maxCodLimit:
8581
                raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Max Cod Amount Collection Limit Violated i.e. "+ str(provider.maxCodLimit))
8581
                raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Max Cod Amount Collection Limit Violated i.e. "+ str(provider.maxCodLimit))
8582
        
8582
        
8583
        if order.logistics_provider_id in [4, 48] :
8583
        if order.logistics_provider_id not in [4, 48] :
8584
        
8584
        
8585
            providerCodLimit = float(providerLimits.get("providerCodLimit"))
8585
            providerCodLimit = float(providerLimits.get("providerCodLimit"))
8586
            providerPrepaidLimit = float(providerLimits.get("providerPrepaidLimit"))
8586
            providerPrepaidLimit = float(providerLimits.get("providerPrepaidLimit"))
8587
            
8587
            
8588
            if order.cod:
8588
            if order.cod:
Line 11574... Line 11574...
11574
#pincodes = [302006,263139,781001,834001,380051,380001,110074,400095,560037,125055,122001,700009,400709,462022,700023,400015]
11574
#pincodes = [302006,263139,781001,834001,380051,380001,110074,400095,560037,125055,122001,700009,400709,462022,700023,400015]
11575
#logistics_client = LogisticsClient().get_client()
11575
#logistics_client = LogisticsClient().get_client()
11576
#for pincode in pincodes:
11576
#for pincode in pincodes:
11577
#    print pincode, logistics_client.getLogisticsEstimation(26385, str(pincode), 1).providerId
11577
#    print pincode, logistics_client.getLogisticsEstimation(26385, str(pincode), 1).providerId
11578
 
11578
 
11579
    add_price_drop(213, ['1','2'], 20, 1513686198574)
-
 
11580
11579
    #add_price_drop(213, ['1','2'], 20, 1513686198574)
-
 
11580
11581
11581