Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/extras/guide/expense_receipts_v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
3 changes: 2 additions & 1 deletion docs/extras/guide/financial_document_v1.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
3 changes: 2 additions & 1 deletion docs/extras/guide/invoices_v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple

* **rate** (`float`): the tax rate applied to an item expressed as a percentage. Can be `None`.
* **code** (`str`): tax code (or equivalent, depending on the origin of the document). Can be `None`.
* **base** (`float`): base amount used for the tax. Can be `None`.
* **basis** (`float`): base amount used for the tax. Can be `None`.
* **value** (`float`): the value of the tax. Can be `None`.

> Note: currently `TaxField` is not used on its own, and is accessed through a parent `Taxes` object, a list-like structure.

Expand Down
2 changes: 2 additions & 0 deletions mindee/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ def enqueue_and_parse(
while retry_counter < max_retries:
if poll_results.job.status == "completed":
break
if poll_results.job.status == "failed":
raise MindeeError("Parsing failed for job {poll_results.job.id}")
logger.debug(
"Polling server for parsing result with job id: %s", queue_result.job.id
)
Expand Down