Commit graph

187 commits

Author SHA1 Message Date
Fanilo-Nantenaina
f3fc32c89f refactor(api): remove unused signature endpoint and related imports 2026-01-06 12:48:56 +03:00
Fanilo-Nantenaina
410d4553d5 refactor(universign): clean up code and update status constants 2026-01-06 11:29:36 +03:00
Fanilo-Nantenaina
a08fb12b56 refactor(utils): move normaliser_type_doc to generic_functions module 2026-01-06 00:07:58 +03:00
Fanilo-Nantenaina
a68f5af72e feat(universign): implement comprehensive e-signature integration 2026-01-05 23:37:17 +03:00
Fanilo-Nantenaina
50c654a74a refactor(sage_client): Corrected collaborator listing logic and return type 2026-01-05 19:06:53 +03:00
Fanilo-Nantenaina
59105dae88 refactor(api): update response model for collaborators endpoint 2026-01-05 18:38:42 +03:00
Fanilo-Nantenaina
c97db9b058 Added collaborator 2026-01-05 18:19:11 +03:00
Fanilo-Nantenaina
8850c7c266 Unification for document's schemas 2026-01-05 17:22:27 +03:00
Fanilo-Nantenaina
45dd517ecf refactor(models): rename request models to be more concise 2026-01-03 11:27:36 +03:00
Fanilo-Nantenaina
306c71b43d refactor(schemas): rename response and request models to simpler names 2026-01-03 11:11:28 +03:00
Fanilo-Nantenaina
e3b0f7e44a refactor(config): move config module to config/config.py and update imports 2026-01-02 19:14:40 +03:00
Fanilo-Nantenaina
ac045f7dd3 refactor(api): remove unused articles endpoint and update tags metadata 2025-12-31 11:20:42 +03:00
Fanilo-Nantenaina
6b1710ad99 feat(sage-gateway): add multi-tenant sage gateway configuration system 2025-12-31 10:19:16 +03:00
Fanilo-Nantenaina
792d771667 refactor: reorganize database models and clean up schemas 2025-12-30 18:35:47 +03:00
Fanilo-Nantenaina
4867b114fe fix: correct document status change parameters and enum handling 2025-12-30 12:50:44 +03:00
Fanilo-Nantenaina
6eba416f72 fix(api): normalize document types and fix status change validation 2025-12-30 12:48:45 +03:00
Fanilo-Nantenaina
e85c6560be feat(documents): enhance document status change handling 2025-12-30 12:43:49 +03:00
Fanilo-Nantenaina
c89db29963 refactor(document): Made status changes to be "global" 2025-12-30 11:56:18 +03:00
Fanilo-Nantenaina
7fccf95ed9 Made persistency for logs and reduced retry delay for email 2025-12-30 08:54:43 +03:00
Fanilo-Nantenaina
ab062747cb Modified generate_pdf function that caused error 2025-12-30 08:48:34 +03:00
Fanilo-Nantenaina
971d35b078 better debbuging for universign 2025-12-30 08:42:16 +03:00
Fanilo-Nantenaina
d0db0e4077 Reverted delocalized function 2025-12-29 20:43:27 +03:00
Fanilo-Nantenaina
ffa45347bb feat: Implement Universign e-signature integration with dedicated utility functions. 2025-12-29 20:16:23 +03:00
Fanilo-Nantenaina
d76cb4546f Added missing import 2025-12-29 20:03:14 +03:00
Fanilo-Nantenaina
27c8ae77c2 fix(api): handle different response formats in contact creation 2025-12-29 19:55:33 +03:00
Fanilo-Nantenaina
ffb7a50443 Restructured files and reorganization for better consistency 2025-12-29 18:26:00 +03:00
Fanilo-Nantenaina
0e2398278f refactor(api): rename client endpoints to tiers for consistency (Generalized contact's creation endpoint) 2025-12-29 13:27:08 +03:00
Fanilo-Nantenaina
efe5961bea feat(api): add type tier normalization utility and update API 2025-12-29 11:54:17 +03:00
Fanilo-Nantenaina
1d78c6b46b feat(tiers): add tiers schemas and API endpoints 2025-12-29 11:20:55 +03:00
Fanilo-Nantenaina
8859152379 Modified client's retrieving method on creating a new contact 2025-12-28 21:34:13 +03:00
Fanilo-Nantenaina
18699a8673 Added contact handling 2025-12-28 21:20:15 +03:00
Fanilo-Nantenaina
e9e4aff0db Enriched article response 2025-12-27 18:08:03 +03:00
Fanilo-Nantenaina
ce84c66ee6 refactor(api): enhance FamilleResponse model with detailed fields and sections 2025-12-27 07:08:01 +03:00
Fanilo-Nantenaina
7f51992dda refactor(api): remove ge constraints from numeric fields in ArticleResponse 2025-12-27 06:20:24 +03:00
Fanilo-Nantenaina
a4f5274663 refactor(api): align ArticleResponse model with Sage database structure 2025-12-27 06:12:10 +03:00
Fanilo-Nantenaina
be7a8baddd Enriched article response 2025-12-27 05:29:18 +03:00
Fanilo-Nantenaina
e55ff75624 Added missing import 2025-12-26 20:37:39 +03:00
Fanilo-Nantenaina
459ce26766 feat(api): enhance FamilleResponse model with additional fields 2025-12-26 20:33:53 +03:00
Fanilo-Nantenaina
0f06075779 feat(fournisseurs): add FournisseurDetails model and update endpoints 2025-12-26 19:54:00 +03:00
Fanilo-Nantenaina
3546c58165 Added missing import 2025-12-26 19:31:53 +03:00
Fanilo-Nantenaina
8b42db686c refactor(Contact): simplify civilite_map and validator comments 2025-12-26 19:27:15 +03:00
Fanilo-Nantenaina
db3776c000 refactor(Contact): rename _civilite_map to civilite_map for better accessibility 2025-12-26 19:18:24 +03:00
Fanilo-Nantenaina
c101e45afd feat(Contact): add civilite mapping and validator 2025-12-26 19:03:34 +03:00
Fanilo-Nantenaina
f414a2889e feat(client): add Contact model and contacts field to ClientDetails 2025-12-26 18:51:36 +03:00
Fanilo-Nantenaina
61869f3293 refactor(api): simplify ClientDetails model by removing unused fields and reorganizing structure 2025-12-26 17:49:14 +03:00
Fanilo-Nantenaina
ca532fc890 feat(ClientDetails): add validator for type_tiers field 2025-12-26 17:32:24 +03:00
Fanilo-Nantenaina
82c43627d9 enrich client's details 2025-12-26 16:57:30 +03:00
Fanilo-Nantenaina
5a23f37e64 fix: make client number field required in ClientCreateRequest 2025-12-26 13:04:30 +03:00
Fanilo-Nantenaina
7e7c274724 feat: Updated pydantic schema for create and update client function 2025-12-26 12:09:48 +03:00
Fanilo-Nantenaina
2e267d6faf Added missing import 2025-12-24 22:56:58 +03:00
Fanilo-Nantenaina
07ec8af191 style: remove emoji icons from log messages and comments 2025-12-24 16:01:41 +03:00
Fanilo-Nantenaina
c47c2c43fb Corrected error "Object of type Decimal is not JSON serializable" 2025-12-24 15:54:43 +03:00
Fanilo-Nantenaina
3809d3403b Refactored Create Client Object 2025-12-24 15:49:37 +03:00
Fanilo-Nantenaina
a4827c0534 corrected pydantic model's name mismatch 2025-12-24 11:49:19 +03:00
Fanilo-Nantenaina
5443c5c44a Added missing import 2025-12-24 11:47:47 +03:00
Fanilo-Nantenaina
f8ea7b48b9 Updated client's field 2025-12-24 11:41:31 +03:00
Fanilo-Nantenaina
215763b679 Trying to make universign functionnal 2025-12-22 11:11:12 +03:00
Fanilo-Nantenaina
d921c7100a refactor(api): simplify Universign transaction flow and error handling 2025-12-22 11:01:50 +03:00
Fanilo-Nantenaina
f357e9614b refactor(api): improve universign transaction flow with better error handling 2025-12-22 10:26:08 +03:00
Fanilo-Nantenaina
0a6dfcdf64 fix(api): correct parameter name in universign request 2025-12-22 10:11:46 +03:00
Fanilo-Nantenaina
dbdfa1e2df Refactored universign message function 2025-12-22 09:56:38 +03:00
Fanilo-Nantenaina
2705de7a07 fix: correct date_livraison reference in creer_avoir function 2025-12-21 10:57:26 +03:00
Fanilo-Nantenaina
ac72d6f896 Removed "date_expedition" handling 2025-12-20 17:29:04 +03:00
Fanilo-Nantenaina
3511b000d5 refactor(models): remove prix_unitaire_ht from line item models 2025-12-20 16:33:26 +03:00
Fanilo-Nantenaina
1240a118e5 Updated pydantic schemas, deleted client's retrieving logics on creating and updating document 2025-12-20 16:30:48 +03:00
Fanilo-Nantenaina
dbb2a6f16e feat(api): add date fields to document models 2025-12-20 16:19:23 +03:00
Fanilo-Nantenaina
edfa4a0231 refactor(api): remove redundant document status validation checks 2025-12-20 14:34:16 +03:00
Fanilo-Nantenaina
e5fad0ccca feat(devis): add reference field and remove prix_unitaire_ht 2025-12-20 09:53:27 +03:00
Fanilo-Nantenaina
bffca51fcd feat(DevisUpdateRequest): add optional reference field to model 2025-12-20 09:46:02 +03:00
Fanilo-Nantenaina
4934101085 feat(api): add optional reference field to DevisRequest 2025-12-20 09:21:31 +03:00
Fanilo-Nantenaina
19ea145bbb refactor(api): replace hardcoded document types with TypeDocumentSQL enum 2025-12-19 13:23:36 +03:00
Fanilo-Nantenaina
da4d43dcf7 refactor(api): simplify devis reading by using TypeDocumentSQL enum 2025-12-19 13:16:56 +03:00
Fanilo-Nantenaina
d26a6a0312 fix: update devis retrieval to use lire_document method 2025-12-19 13:11:26 +03:00
Fanilo-Nantenaina
d8e3fb4b00 refactor(api): remove redundant devis status update logic 2025-12-19 12:39:35 +03:00
Fanilo-Nantenaina
5cb9015ab5 style(api): improve email template readability and clean up code formatting 2025-12-18 10:59:40 +03:00
Fanilo-Nantenaina
282ffe4898 feat(signature): add email templates and tracking for signature workflow 2025-12-18 10:09:48 +03:00
Fanilo-Nantenaina
4c53477efe refactor(api): replace hardcoded document type with enum value 2025-12-18 04:28:26 +03:00
Fanilo-Nantenaina
de6739e3f5 fix: make est_total field optional in FamilleResponse model 2025-12-17 18:21:01 +03:00
Fanilo-Nantenaina
4cdaea2051 refactor(api): update endpoint tags for better consistency 2025-12-17 17:26:13 +03:00
Fanilo-Nantenaina
daf96f71eb feat: add PDF document generation and model listing functionality 2025-12-17 17:25:27 +03:00
Fanilo-Nantenaina
388618603b feat: add article_ref field to MouvementStockResponse 2025-12-17 16:22:43 +03:00
Fanilo-Nantenaina
62e347969c feat(stock): enhance stock movement models with lot tracking and min/max stock 2025-12-17 14:55:13 +03:00
Fanilo-Nantenaina
421f4d24dc refactor(api): simplify client and article search endpoints 2025-12-17 12:35:29 +03:00
Fanilo-Nantenaina
737e340679 refactor(api): wrap client and article responses in success object 2025-12-17 12:33:05 +03:00
Fanilo-Nantenaina
bf4b00ed85 fix(api): ensure date fields are properly formatted before processing 2025-12-17 11:34:45 +03:00
Fanilo-Nantenaina
42b3164f79 refactor(sage_client): remove section comments and redundant docstrings 2025-12-17 11:14:16 +03:00
Fanilo-Nantenaina
0faec99817 refactor(api): introduce TypeDocumentSQL enum and update document reading methods 2025-12-17 09:23:03 +03:00
Fanilo-Nantenaina
5bed8c0cfe refactor(api): add Body import from fastapi for request handling 2025-12-11 12:04:07 +03:00
Fanilo-Nantenaina
e56159268f feat(articles): enhance article endpoints with async support and validation 2025-12-11 12:01:54 +03:00
Fanilo-Nantenaina
963118641b fix: change exclude_none to exclude_unset in article creation/update 2025-12-11 11:49:17 +03:00
Fanilo-Nantenaina
44675f69ac refactor(api): rename DTO classes to Request for clarity 2025-12-10 17:06:39 +03:00
Fanilo-Nantenaina
a133172a0b refactor(api): change router to app for article endpoints 2025-12-10 17:04:59 +03:00
Fanilo-Nantenaina
428093306a feat(articles): add CRUD operations for articles management 2025-12-10 17:01:49 +03:00
Fanilo-Nantenaina
44354ec9bd refactor(api): remove debug endpoints before production release 2025-12-09 15:55:47 +03:00
Fanilo-Nantenaina
1c53135b62 feat(api): enrich ArticleResponse model with additional fields 2025-12-09 15:52:07 +03:00
Fanilo-Nantenaina
8f4c4f97a7 refactor(models): improve client models structure and documentation 2025-12-09 11:20:01 +03:00
Fanilo-Nantenaina
60a9d90955 refactor(models): make client response fields optional 2025-12-09 10:44:01 +03:00
Fanilo-Nantenaina
732ccd2fd4 feat(api): extend client response model with detailed fields 2025-12-09 10:35:20 +03:00
Fanilo-Nantenaina
e95e550044 style: Reformat method calls and remove unnecessary blank lines for improved code consistency. 2025-12-08 17:57:41 +03:00
Fanilo-Nantenaina
61e787bf36 refactor(api): change query params to path params in document endpoint 2025-12-08 17:48:32 +03:00