Subversion Repositories SmartDukaan

Rev

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

Rev 18634 Rev 18647
Line 8220... Line 8220...
8220
            raise TransactionServiceException(301, "No order found for the given order id" + str(orderId))
8220
            raise TransactionServiceException(301, "No order found for the given order id" + str(orderId))
8221
        else:
8221
        else:
8222
            ordersList.append(order)
8222
            ordersList.append(order)
8223
            
8223
            
8224
    singleOrder = ordersList[0]
8224
    singleOrder = ordersList[0]
-
 
8225
    if singleOrder.logisticsTransactionId is not None:
8225
    grouppedOrders = get_group_orders_by_logistics_txn_id(singleOrder.logisticsTransactionId)
8226
        grouppedOrders = get_group_orders_by_logistics_txn_id(singleOrder.logisticsTransactionId)
8226
    
8227
        
8227
    errorString = ""
8228
        errorString = ""
8228
    missingString = "Billing Details Missing for following Orders:- "
8229
        missingString = "Billing Details Missing for following Orders:- "
8229
    
8230
        
8230
    for ordObj in grouppedOrders:
8231
        for ordObj in grouppedOrders:
8231
        if ordObj.id not in orderIds:
8232
            if ordObj.id not in orderIds:
8232
            errorString = errorString + "Order Id:- " +str(ordObj.id) +" "
8233
                errorString = errorString + "Order Id:- " +str(ordObj.id) +" "
8233
    
8234
        
8234
    if len(errorString)>0:
8235
        if len(errorString)>0:
8235
        raise TransactionServiceException(301, missingString + errorString)
8236
            raise TransactionServiceException(301, missingString + errorString)
8236
                
8237
                
8237
    #inventoryDbConnection = getDbConnection("192.168.190.114","root", "shop2020", "inventory") 
8238
    #inventoryDbConnection = getDbConnection("192.168.190.114","root", "shop2020", "inventory") 
8238
    try:
8239
    try:
8239
        warehouseDbConnection = getDbConnection("localhost","root", "shop2020", "warehouse")
8240
        warehouseDbConnection = getDbConnection("localhost","root", "shop2020", "warehouse")
8240
    except:
8241
    except: