Spaces:
Runtime error
Runtime error
Commit History
-
feat(prices): implement price management with date ranges, including creation, retrieval, and history listing; update schemas and API documentation
Cyril Dupland15f1cb0
-
feat(article_import): introduce support for 'COMMUN' brand alias to link articles to all existing brands, update schemas and processing logic accordingly
Cyril Duplanddae5737
-
feat: implement brand and category slug normalization, update import mappings, and enhance article import processing
Cyril Dupland1cc158b
-
feat(db): add groups table, update schema, and clean up docs
Yarin35f17a684 -
feat(db): link supplier discounts to lines instead of batch
Yarin3529addc7
-
feat: migrate supplier_discount to many-to-many suppliers relationship
Yarin355eaee2a
-
feat(quotation): implement global temporal discounts with status control
Yarin35da62a2f
-
fix(quotation): correctly calculate discounted price from percentage and original unit price
Yarin35572b7d5
-
Merge branch 'feature/cotation_route_clean' of https://github.com/AutoFranceParts/afp_core into dev
cdupland4239d8b -
fix(cotation_calcul): discount handling
Yarin35247593f -
feat: enhance article import functionality with reference management
cdupland- Added support for `reference_old` and `reference_new` in the article import process, allowing for legacy reference handling and renaming of articles. - Updated `ArticleBulkRepository` to manage conflicts when renaming articles and ensure unique main references. - Enhanced `ArticleImportRow` and `ArticleImportMapping` schemas to include new reference fields. - Implemented validation logic to ensure `reference_old` and `reference_new` are distinct and properly normalized. - Documented new reference handling behavior in `imports.md` and added integration tests for various scenarios involving reference management.96d8d92
-
feat: implement row level security and supplier status management
cdupland- Added `supplier_status` enum to manage supplier states (active, inactive, archived). - Introduced row level security (RLS) policies for suppliers and prices to enforce access control based on supplier status. - Updated `PriceRepository` to filter out inactive suppliers and blacklisted prices. - Created `admin_list_suppliers` function for admin access to all suppliers. - Documented RLS policies and supplier status management in `docs/rls.md` and `docs/database.md`.8b401c9
-
feat(quotations): optimize quotation creation and enhance batch processing for articles and prices
Yarin358bacde2
-
fix(calcul): correct use of discounts
Yarin35b639ddb
-
fix(quotations): update test data and doc, along with quotation method
Yarin3582cb09c
-
feat(quotations): route and calcul workflow
AFP-PROJECT-2024c4b0f63
-
Implement price import functionality with support for CSV and Excel formats. Add API endpoint for starting price imports, including validation and error handling. Introduce new schemas, services, and repositories for price data management. Update documentation to reflect new features and usage. Enhance tests to cover the added functionality.
cdupland0f8d56c
-
Implement Supabase Storage integration for import files, allowing uploads and downloads of article and price data. Update import processing to utilize the new storage service, including metadata handling and error management. Refactor related services and repositories, and enhance documentation to reflect these changes. Add tests for new functionality and ensure existing tests are updated accordingly.
cdupland8cddb04
-
Enhance article import process by adding support for optional logistic fields (`moq`, `origin`) and implementing progress tracking with `total_rows` and `rows_processed`. Update related schemas, repositories, and services to accommodate these changes. Improve documentation to reflect new features and usage. Add tests for new functionality and ensure existing tests cover the updated logic.
cdupland860c252
-
Add article import functionality with CSV and Excel support, including API endpoints for starting imports, listing imports, and handling import errors. Implement background processing for imports, validation, and error handling. Update requirements and documentation accordingly.
cdupland51e5253
-
Add FastAPI application structure with Prisma integration, including API endpoints, services, repositories, and database setup. Introduce strict layering rules, documentation, and testing strategy.
cdupland0ddf928