Skip to content
Snippets Groups Projects
Commit d85e43c4 authored by Jordi Isidro Llobet's avatar Jordi Isidro Llobet
Browse files

control no files per billing_run_id

parent f1f09630
No related branches found
No related tags found
No related merge requests found
...@@ -79,6 +79,8 @@ def get_invoice_oc(con, billing_run_uuid): ...@@ -79,6 +79,8 @@ def get_invoice_oc(con, billing_run_uuid):
columns = ['description_cat' ,'code', 'preu', 'amount_tax', 'amount_with_tax', 'tax_percent', 'group_code', columns = ['description_cat' ,'code', 'preu', 'amount_tax', 'amount_with_tax', 'tax_percent', 'group_code',
'tax_code', 'billing_account_code'] 'tax_code', 'billing_account_code']
registries = con.execute(statement) registries = con.execute(statement)
if registries.rowcount == 0:
return 'NO DATA'
df = DataFrame(registries.fetchall()) df = DataFrame(registries.fetchall())
df.columns = registries.keys() df.columns = registries.keys()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment