Subversion Repositories SmartDukaan

Rev

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

Rev 2819 Rev 2832
Line 1024... Line 1024...
1024
    pending_orders = query.all()
1024
    pending_orders = query.all()
1025
    
1025
    
1026
    if not pending_orders:
1026
    if not pending_orders:
1027
        return -1
1027
        return -1
1028
    
1028
    
1029
    inventory_client = InventoryClient().get_client()
-
 
1030
    t_warehouse = inventory_client.getWarehouse(warehouseId)
-
 
1031
    
-
 
1032
    t_purchase_order = PurchaseOrder()
1029
    t_purchase_order = PurchaseOrder()
1033
    t_purchase_order.supplierId = t_warehouse.vendorId
1030
    t_purchase_order.supplierId = warehouseId
1034
    t_purchase_order.warehouseId = warehouseId
1031
    t_purchase_order.warehouseId = warehouseId
1035
    t_purchase_order.lineitems = []
1032
    t_purchase_order.lineitems = []
1036
    
1033
    
1037
    lineitems = {}
1034
    lineitems = {}
1038
    
1035