Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define a data model for the test data #18

Closed
tillmo opened this issue May 14, 2023 · 1 comment
Closed

define a data model for the test data #18

tillmo opened this issue May 14, 2023 · 1 comment
Assignees

Comments

@tillmo
Copy link
Owner

tillmo commented May 14, 2023

Look at the json1 fields of the PreRechnungs and abstract them to a general json schema

Here is a sample json1 field:

{"supplier": "Kornkraft Naturkost GmbH", "posting_date": "2021-06-11", "bill_no": "877031", "total": 729.91, "grand_total": 797.92, "taxes": [{"rate": 7, "tax_amount": 41.23}, {"rate": 19, "tax_amount": 26.78}]}

Here is the start of a json schema:

{
  "title": "Intermediate format for Google AI Invoice parser",
  "required": [ "supplier", "posting_date","bill_no", "grand_total","taxes" ],
  "type": "object",
  "properties": {
    "supplier": {"type": "string" },
    "bill_no": {"type": "string" },
  ....
  }
}
Andrewed95 added a commit that referenced this issue May 15, 2023
@Andrewed95
Copy link
Collaborator

Andrewed95 commented May 15, 2023

This schema was added to prerechnung.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants