Refactor document processing endpoint to accept file_id as a path parameter and update related logic; modify DocumentProcessRequest to make file_id optional; add clarification to tax processing rules in DocumentProcessor.

This commit is contained in:
bolade
2025-10-07 12:36:04 +01:00
parent 659ca4ff15
commit b2bf631448
4 changed files with 26 additions and 25 deletions
+1
View File
@@ -108,6 +108,7 @@ class DocumentProcessor:
* For other locations, estimate based on typical rates
- Store calculated tax in "calculated_tax" field (set to null if tax clearly shown)
- If tax is clearly shown on receipt, use that value for tax_amount and set calculated_tax to null
- If tax is clearly shown on the receipt as 0%, set tax_amount to 0 and calculated_tax to null
DEPRECIATION RULES:
- Determine if item is a depreciable asset (vehicles, machinery, equipment, computers, furniture, buildings)