Skip to content

Instantly share code, notes, and snippets.

@pierrejean-coudert
Last active August 17, 2021 15:08
Show Gist options
  • Save pierrejean-coudert/7c37a052a55538411612910ea145861d to your computer and use it in GitHub Desktop.
Save pierrejean-coudert/7c37a052a55538411612910ea145861d to your computer and use it in GitHub Desktop.
invoicing bug

log

{"exception": "Traceback (most recent call last):\n  File \"/app/lib/python3.8/site-packages/confederatio/orgs/management/commands/invoicing_distributors.py\", line 52, in handle\n    fresh_org.invoi
ce(until=until, payer_chain=payer_chain)\n  File \"/usr/lib/python3.8/contextlib.py\", line 75, in inner\n    return func(*args, **kwds)\n  File \"/app/lib/python3.8/site-packages/confederatio/orgs/m
odels.py\", line 2100, in invoice\n    bill_id = self._generate_invoice(\n  File \"/app/lib/python3.8/site-packages/confederatio/orgs/models.py\", line 2211, in _generate_invoice\n    bill.populate(u
sage, start_date=first, end_date=last)\n  File \"/app/lib/python3.8/site-packages/confederatio/bills/models.py\", line 856, in populate\n    assert billing_total == total, (billing_total, total)\nAss
ertionError: (Decimal('10.27000000'), Decimal('-71.59000'))", "message": "invoicing distributors error", "@timestamp": "2021-08-16T03:20:59.014931Z", "@version": 1}

Sentry

https://sentry.internal.exoscale.ch/exoscale/confederatio/issues/29365/

Organization

https://confederatio.internal.exoscale.ch/admin/organizations/synaxon-projekt-und-handels-gmbh

specific setup : top payer is buying 25.000 CHF credit each month : credit >0

fisrt child is a distributor : https://confederatio.internal.exoscale.ch/admin/organizations/synaxon-projekt-und-handels-gmbh-distributor

Strange usage report, generated 15/08/2021 (first sentry date) https://confederatio.internal.exoscale.ch/admin/usage-reports/766065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment