harbor run -t openthoughts/tasktrove-exp-rle-github-issue-v3-5k-github-issue-0261harbor download openthoughts/tasktrove-exp-rle-github-issue-v3-5k-github-issue-0261Title: Implement get_directory_cfdi_amounts to aggregate CFDI amounts from JSON files in a directory
Description: We need to add a new function get_directory_cfdi_amounts in the module cfdi/utils/cfdi_amounts.py. The function should read a directory containing CFDI data files (primarily JSON), extract monetary amounts from each CFDI, and return a summary object that matches what the tests expect.
What to implement:
Function signature (in cfdi/utils/cfdi_amounts.py):
Behavior on success (tests expect status == 0):
Behavior on error (tests expect status == 1):
File format and parsing expectations:
Robustness and edge cases:
Type hints and documentation:
Acceptance criteria aligned to tests:
Notes:
Steps to reproduce (for maintainers and QA):
Environment and integration details: