Spaces:
Sleeping
Sleeping
Commit History
16 days ago
-
Enhance code resolution and lookup functionality
- Added `to_candidates` function to improve candidate selection in code resolution. - Introduced `CodeLookupResponse` schema for detailed code lookup responses, including heading and declarable codes. - Implemented a new endpoint for manual code lookup, allowing users to retrieve code details and associated candidates. - Updated existing resolution logic to utilize the new `to_candidates` function for better candidate management.d1898eb
22 days ago
-
Enhance batch processing and client profile management with tariff preference support
- Introduced `LinePreference` schema to capture tariff preference details in line check responses. - Updated `ReviewRow` and related functions to include preference data in batch processing. - Enhanced Excel export functionality to display preference-related columns. - Modified client profile management to accommodate new preference fields in export columns. - Improved utility functions for rendering origin proofs and handling preference data in line checks.66e3040
23 days ago
-
added new client
c6eb40b -
Enhance client profile management and filtering
- Introduced a new configuration setting for disabled client profiles, allowing profiles to be excluded from operations. - Added utility functions to filter out disabled profiles and raise exceptions when attempting to access them. - Updated batch and client request handling to incorporate the new profile filtering logic, ensuring only enabled profiles are processed. - Refactored relevant views to utilize the new filtering functions for improved code clarity and maintainability.090f378
24 days ago
-
Update Dockerfile for Python environment and enhance scheduling functionality
- Changed base image from Node.js to Python 3.12-slim. - Set environment variables for Python configuration and user permissions. - Updated application user from 'node' to 'user' and adjusted file ownership. - Replaced Node.js package installation with Python package installation using requirements.txt. - Modified scheduling function to include immediate execution on startup to ensure data availability.8baee7e -
init
e77a641 -
init
b3ba377
27 days ago
-
Update batch models and schemas to support optional currency fields
- Changed total metrics in `BatchMetrics` and `ShipmentTotals` to use `float | None` instead of defaulting to 0.0. - Updated `currency` field in `ManualShipmentRequest` and `ProfileDefaults` to be optional. - Adjusted batch processing functions to handle potential None values for currency and totals. - Ensured default profiles are updated with currency information where missing.97a4163
28 days ago
-
Refactor project structure and enhance batch processing capabilities
- Updated `.gitignore` to exclude sensitive client material and system files. - Removed unnecessary comments and documentation from `main.py` and `cbh/__init__.py`. - Revised `README.md` to clarify batch processing routes and export formats. - Added new manual shipment and row addition endpoints in `cbh/api/batch/views.py`. - Enhanced batch model and schema definitions to support additional fields and metrics. - Updated batch processing logic to handle new parameters for destination country and customs procedures. - Introduced new utility functions for file handling and improved error management in batch processing. - Removed deprecated account module files to streamline the codebase.c2ea771 -
Add initial project structure with FastAPI setup, batch processing, and Excel handling
- Created main application entry point in `main.py`. - Added FastAPI app configuration in `cbh/__init__.py`. - Implemented batch processing logic with models, schemas, and utilities in `cbh/api/batch`. - Introduced Excel file handling for batch uploads and exports. - Added `.gitignore` to exclude environment files and temporary directories. - Documented project overview and setup instructions in `README.md`. - Defined dependencies in `requirements.txt` for project setup.a9710f3