Example #1
0
def review_ajax(facility_name, year, month):
    from_date, to_date = util.start_and_end_month(year, month)
    criteria = {
            ('line_item', 'date_created'): {'from': from_date, 'to': to_date},
            ('line_item', 'price_per_unit'): {'compare': 'greater than', 'value': 0}
    }
    return core_routes.build_summary_ajax('line_item', criteria)
Example #2
0
def invoice_summary_ajax(facility_name, year, month):
    from_date, to_date = util.start_and_end_month(year, month)
    criteria = {
            ('invoice', 'invoice_month'): {'from': from_date, 'to': to_date},
    }
    return core_routes.build_summary_ajax('invoice', criteria)