Subversion Repositories SmartDukaan

Rev

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

Rev 13390 Rev 13402
Line 7770... Line 7770...
7770
    '''
7770
    '''
7771
    for order in ordersList:
7771
    for order in ordersList:
7772
        totalWeight = totalWeight + order.total_weight
7772
        totalWeight = totalWeight + order.total_weight
7773
        #if order.cod:
7773
        #if order.cod:
7774
        totalOrdersAmount = totalOrdersAmount + order.total_amount
7774
        totalOrdersAmount = totalOrdersAmount + order.total_amount
7775
 
7775
        
-
 
7776
        if order.cod:
7776
        if isPrivateDealUser:
7777
            if isPrivateDealUser:
7777
            if totalOrdersAmount > privateDealUser.bulkShipmentAmountLimit:
7778
                if totalOrdersAmount > privateDealUser.bulkShipmentAmountLimit:
7778
                raise TransactionServiceException(208, "Private Deal Counter "+privateDealUser.counter_id+ " Group Shipment Weight Limit Violated")
7779
                    raise TransactionServiceException(208, "Private Deal Counter Group Shipment Weight Limit Violated")
7779
        
7780
        
7780
        print 'totalWeight',totalWeight
7781
        print 'totalWeight',totalWeight
7781
        if totalWeight > provider.bundleWeightLimit:
7782
        if totalWeight > provider.bundleWeightLimit:
7782
            raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Group Shipment Weight Limit Violated")
7783
            raise TransactionServiceException(210, "Logistics Partner "+provider.name+ " Group Shipment Weight Limit Violated")
7783
        
7784