def index(page=1): invoice_list, page_context = cloud_accounting.get_invoice_list(page) json.dumps(invoice_list) printed_invoices = set( [f.zoho_id for f in db_session.query(Factura).all()]) return render_template('index.html', invoices=invoice_list, printed=printed_invoices, page_context=page_context)
def get_facturas(): return jsonify(data=cloud_accounting.get_invoice_list())