Subversion Repositories SmartDukaan

Rev

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

Rev 5481 Rev 5488
Line 2356... Line 2356...
2356
 
2356
 
2357
def get_billed_orders(vendor_id, onlyVendorNotPaid, billing_date_from, billing_date_to):
2357
def get_billed_orders(vendor_id, onlyVendorNotPaid, billing_date_from, billing_date_to):
2358
    query = Order.query.filter(Order.billing_timestamp != None)
2358
    query = Order.query.filter(Order.billing_timestamp != None)
2359
    
2359
    
2360
    if onlyVendorNotPaid:
2360
    if onlyVendorNotPaid:
2361
        query = query.filter(Order.vendor_paid = False)
2361
        query = query.filter_by(vendor_paid = False)
2362
    
2362
    
2363
    if vendor_id != -1:
2363
    if vendor_id != -1:
2364
        query = query.filter_by(vendorId = vendor_id)
2364
        query = query.filter_by(vendorId = vendor_id)
2365
    
2365
    
2366
    if billing_date_from:
2366
    if billing_date_from: