Commit Graph

6 Commits

Author SHA1 Message Date
794d6d1781 refactor: streamline item validation functions and enhance number formatting in summary section 2026-02-13 15:49:54 -06:00
c011d7ad65 feat: enhance invoice and item validation by adding new checks and updating schemas 2026-02-12 17:00:12 -06:00
f8c38d998d feat: enhance item creation validation by adding checks for subitem existence and required fields 2026-02-11 17:03:25 -06:00
ef4f3cdeac feat: implement historical fraction search logic and integrate with fraction preference search 2026-02-11 12:49:17 -06:00
8790321fe7 feat: enhance search_fraction_preference with additional API integrations for TLCS, ALADI, and PROSEC 2026-02-09 10:48:40 -06:00
0440543f24 Refactor item validation and service logic
- Consolidated item creation and update validation into a common function to reduce code duplication.
- Updated the `validate_create` and `validate_update` functions to utilize the new common validation logic.
- Introduced a new `common_validators.py` file for shared validation functions.
- Added a new `fractions.py` file to handle fraction-related logic and searches.
- Enhanced the `LineCustom` model to use an enumeration for `fraction_type`.
- Improved the `ItemService` class with methods for locking invoices and renumbering line items.
- Updated the `Sector` model to use a boolean type for the `authorized` field.
- Fixed import issues in the router by replacing the old `a24_router` with `sitar_router`.
2026-02-04 23:29:05 -06:00