Subversion Repositories SmartDukaan

Rev

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

Rev 23516 Rev 23606
Line 76... Line 76...
76
    warehouses = Warehouse.query.filter(Warehouse.warehouseType.in_(['OURS', 'THIRD_PARTY'])).filter(Warehouse.inventoryType == 'GOOD').all()
76
    warehouses = Warehouse.query.filter(Warehouse.warehouseType.in_(['OURS', 'THIRD_PARTY'])).filter(Warehouse.inventoryType == 'GOOD').all()
77
    for warehouse in warehouses:
77
    for warehouse in warehouses:
78
        warehouseMap[warehouse.id] = warehouse
78
        warehouseMap[warehouse.id] = warehouse
79
        print warehouse.id, warehouse.vendor
79
        print warehouse.id, warehouse.vendor
80
        if warehouse.vendor.id==default_virtual_vendor and warehouse.warehouseType == 'THIRD_PARTY':
80
        if warehouse.vendor.id==default_virtual_vendor and warehouse.warehouseType == 'THIRD_PARTY':
81
            virtualVendorWarehouses[warehouse.state_id] = warehouse.id 
81
            virtualVendorWarehouses[warehouse.state_id] = warehouse 
82
        if warehouse.vendor.id==default_virtual_vendor and warehouse.warehouseType == 'OURS':
82
        if warehouse.vendor.id==default_virtual_vendor and warehouse.warehouseType == 'OURS':
83
            billingVendorWarehouses[warehouse.state_id] = warehouse.billingWarehouseId
83
            billingVendorWarehouses[warehouse.state_id] = warehouse.billingWarehouseId
84
            print "billingVendorWarehouses", billingVendorWarehouses
84
            print "billingVendorWarehouses", billingVendorWarehouses
85
            
85
            
86
        if warehouse.billingWarehouseId in physicalWarehouseIdsForFofo:
86
        if warehouse.billingWarehouseId in physicalWarehouseIdsForFofo: