Commit graph

151 commits

Author SHA1 Message Date
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
Fanilo-Nantenaina
a1794ac90f feat(documents): add generic PDF download endpoint for documents 2025-12-08 17:40:12 +03:00
Fanilo-Nantenaina
14b2758b68 refactor(api): update endpoint tags for better organization 2025-12-08 11:03:30 +03:00
Fanilo-Nantenaina
fafd5222a6 feat(api): add OpenAPI tags metadata and update endpoint tags 2025-12-08 10:58:24 +03:00
Fanilo-Nantenaina
5a6a721f16 feat(workflow): add direct quote-to-invoice and order-to-delivery endpoints 2025-12-08 09:54:39 +03:00
Fanilo-Nantenaina
57d1f313f4 feat(factures): add create and update invoice endpoints 2025-12-08 09:43:34 +03:00
Fanilo-Nantenaina
c15ae79c6a Added create and update for avoir 2025-12-08 09:18:15 +03:00
Fanilo-Nantenaina
204b792015 Integrate create and update for livraison 2025-12-08 08:47:48 +03:00
Fanilo-Nantenaina
35807542a3 Inclure transformation verification on devis retrieving 2025-12-07 13:36:47 +03:00
Fanilo-Nantenaina
f763d70592 Change devis' statut when transformed into commande 2025-12-07 07:16:00 +03:00
Fanilo-Nantenaina
b7a8af5ed5 Better catch for errors 2025-12-07 06:53:21 +03:00
Fanilo-Nantenaina
608ba12c50 Update devis, Create and Update Command 2025-12-06 17:03:12 +03:00
Fanilo-Nantenaina
a5dd81ddfb Update fournisseur 2025-12-06 15:17:15 +03:00
Fanilo-Nantenaina
ba79354386 Create new fournisseur 2025-12-06 15:03:23 +03:00
Fanilo-Nantenaina
709de0cb2c Test, again 2025-12-06 14:10:39 +03:00
Fanilo-Nantenaina
2c13c086a5 Evicted passing through cache for "fournisseurs" 2025-12-06 12:50:31 +03:00
Fanilo-Nantenaina
4867f4dc22 Cache problem 2025-12-06 12:15:36 +03:00
Fanilo-Nantenaina
72bd14a44e Updates for GET on client & facture, and PUT on clients 2025-12-06 10:14:58 +03:00
Fanilo-Nantenaina
36554b9ebe changed return field from client to data 2025-12-06 10:01:18 +03:00
Fanilo-Nantenaina
2f9b2fc1a9 Added create client logics 2025-12-05 19:11:36 +03:00
Fanilo-Nantenaina
df5ed76ec6 feat(api): add endpoint to read order with its lines 2025-12-05 14:44:53 +03:00
Fanilo-Nantenaina
511435d58e moved database in WORKDIR/data 2025-12-05 14:00:40 +03:00
Fanilo-Nantenaina
2bf982f60e clearing insecable spaces 2025-12-05 13:34:40 +03:00
Fanilo-Nantenaina
b4a76579b8 feat: Add API endpoints and SageClient methods for managing prospects, suppliers, credit notes, and delivery notes. 2025-12-04 13:47:28 +03:00
Fanilo-Nantenaina
a73bdc4d9e Corrected error on sending document to universign 2025-12-03 13:54:28 +03:00
Fanilo-Nantenaina
5ff01c6c45 Users debug 2025-12-03 11:00:55 +03:00
Fanilo-Nantenaina
b2cfb31e40 Added authentication logics 2025-12-02 09:09:29 +03:00
Fanilo-Nantenaina
3f8238f674 refactor: Use specialized Sage client methods for listing commands and invoices, and enhance the document transformation response. 2025-11-28 08:52:55 +03:00
Fanilo-Nantenaina
b468c963c9 refactor: Use explicit Sage document type constants for enums, document listing, and transformation endpoints. 2025-11-28 08:28:59 +03:00
Fanilo-Nantenaina
33843e031a updated devis to command logics transformation 2025-11-28 05:54:25 +03:00
Fanilo-Nantenaina
b11e161e7f Revert "refactor: modify quote status endpoint path to include ID and remove a related comment."
This reverts commit 2a6f462a0b.
2025-11-28 05:19:59 +03:00
Fanilo-Nantenaina
2a6f462a0b refactor: modify quote status endpoint path to include ID and remove a related comment. 2025-11-28 05:03:18 +03:00
Fanilo-Nantenaina
8dda1191b3 feat: enable including devis lines by default when listing devis. 2025-11-27 17:47:56 +03:00
Fanilo-Nantenaina
cba39ad7ec feat: Add API endpoints for Universign e-signature management, batch email sending, and quote contact retrieval. 2025-11-27 17:16:51 +03:00
Fanilo-Nantenaina
df6e09af07 feat: Add BaremeRemiseResponse model, expand SageGatewayClient with methods for document listing, status updates, discount retrieval, and PDF generation, and ignore .db files. 2025-11-27 13:08:44 +03:00
Fanilo-Nantenaina
643250850b feat: Add /devis endpoint for listing devis and apply minor formatting adjustments. 2025-11-27 12:40:23 +03:00
Fanilo-Nantenaina
a8ee3fe492 Added docker config 2025-11-26 13:50:30 +03:00