Commit Graph

4 Commits

Author SHA1 Message Date
michael 3559cbe19d Add test script for JSON extraction functionality
This commit introduces a new test script, `test_json_extraction.py`, which verifies the correctness of the JSON extraction logic. The script includes a function to extract the first valid JSON object from raw input and a series of test cases covering various scenarios, such as clean JSON, JSON with extra text, nested JSON, and escaped quotes. The tests ensure that the extraction function behaves as expected and handles edge cases appropriately.
2025-10-09 19:56:22 +00:00
bolade f582110674 Add name_of_asset field to receipt processing and update related logic in DocumentProcessor 2025-10-07 20:35:43 +01:00
bolade d8315f13ac Add new fields for tax and depreciation in receipt processing
- Introduced fields: receipt_location, calculated_tax, is_depreciable, cca_rate, useful_life, and residual_value in DBReceipt model.
- Updated process_document function to handle new receipt data attributes.
- Enhanced DocumentProcessResponse schema to include new fields.
- Updated document processing rules to incorporate tax calculation based on location and depreciation rules.
2025-10-07 11:15:26 +01:00
michael 3d48cf0385 Add requirements.txt with essential dependencies for the project 2025-10-05 11:29:45 +00:00