File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple
189
189
190
190
* ** rate** (` float ` ): the tax rate applied to an item expressed as a percentage. Can be ` None ` .
191
191
* ** code** (` str ` ): tax code (or equivalent, depending on the origin of the document). Can be ` None ` .
192
- * ** base** (` float ` ): base amount used for the tax. Can be ` None ` .
192
+ * ** basis** (` float ` ): base amount used for the tax. Can be ` None ` .
193
+ * ** value** (` float ` ): the value of the tax. Can be ` None ` .
193
194
194
195
> Note: currently ` TaxField ` is not used on its own, and is accessed through a parent ` Taxes ` object, a list-like structure.
195
196
Original file line number Diff line number Diff line change @@ -233,7 +233,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple
233
233
234
234
* ** rate** (` float ` ): the tax rate applied to an item expressed as a percentage. Can be ` None ` .
235
235
* ** code** (` str ` ): tax code (or equivalent, depending on the origin of the document). Can be ` None ` .
236
- * ** base** (` float ` ): base amount used for the tax. Can be ` None ` .
236
+ * ** basis** (` float ` ): base amount used for the tax. Can be ` None ` .
237
+ * ** value** (` float ` ): the value of the tax. Can be ` None ` .
237
238
238
239
> Note: currently ` TaxField ` is not used on its own, and is accessed through a parent ` Taxes ` object, a list-like structure.
239
240
Original file line number Diff line number Diff line change @@ -221,7 +221,8 @@ Aside from the basic `BaseField` attributes, the tax field `TaxField` also imple
221
221
222
222
* ** rate** (` float ` ): the tax rate applied to an item expressed as a percentage. Can be ` None ` .
223
223
* ** code** (` str ` ): tax code (or equivalent, depending on the origin of the document). Can be ` None ` .
224
- * ** base** (` float ` ): base amount used for the tax. Can be ` None ` .
224
+ * ** basis** (` float ` ): base amount used for the tax. Can be ` None ` .
225
+ * ** value** (` float ` ): the value of the tax. Can be ` None ` .
225
226
226
227
> Note: currently ` TaxField ` is not used on its own, and is accessed through a parent ` Taxes ` object, a list-like structure.
227
228
Original file line number Diff line number Diff line change @@ -351,6 +351,8 @@ def enqueue_and_parse(
351
351
while retry_counter < max_retries :
352
352
if poll_results .job .status == "completed" :
353
353
break
354
+ if poll_results .job .status == "failed" :
355
+ raise MindeeError ("Parsing failed for job {poll_results.job.id}" )
354
356
logger .debug (
355
357
"Polling server for parsing result with job id: %s" , queue_result .job .id
356
358
)
You can’t perform that action at this time.
0 commit comments