Development #71910
facturation: models pour gérer des trains de facturation
0%
Description
(à discuter autour d'un tableau blanc)
Un model Facturation (Invoicing ?), avec:
- un champ start
- un champ end (inclus, par exemple "Facturation du 1/9/22 au 30/9/22")
- probablement un champ status (pour savoir où on en est de la génération des lignes de facturation)
Un model Train de facturation (InvoicingTrain ?), avec:
- une FK vers Invoicing
- un champ created_at
- un flag draft
- probablement un champ status
Et du coup modifier les models Invoice, InvoiceLine, DraftInvoice, DraftInvoiceLine pour ajouter une FK vers InvoicingTrain.
En pratique, on peut avoir N InvoicingTrain draft dans un Invoicing, mais un seul InvoicingTrain non draft.
On peut supprimer les drafts pour nettoyer, mais pas les non drafts.
Les périodes des Invoicing doivent être disjointes.
(les champs status seront peut-être ajoutés quand on fera les générations dans un job)
Associated revisions
History
Updated by Gitea (Bot) Gitea 2 months ago
- Status changed from Nouveau to Solution proposée
Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/lingo/pulls/2
- Titre : wip/71910-invoicing-train-models (#71910)
- Modifications : https://gitea.entrouvert.org/entrouvert/lingo/pulls/2/files
Updated by Lauréline Guérin 2 months ago
(après réflexion, je partirais bien sur les models Campaign et Pool - au lieu de Invoicing et InvoicingTrain)
Updated by Gitea (Bot) Gitea about 2 months ago
Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/lingo/pulls/8
- Titre : invoicing: add Campaign & Pool models (#71910)
- Modifications : https://gitea.entrouvert.org/entrouvert/lingo/pulls/8/files
Updated by Gitea (Bot) Gitea about 2 months ago
- Status changed from Solution proposée to Solution validée
Thomas Noël (tnoel) a approuvé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/lingo/pulls/8
- Commentaire :
Tout est ok pour moi ici !
Updated by Gitea (Bot) Gitea about 2 months ago
- Status changed from Solution validée to Résolu (à déployer)
Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/lingo/pulls/8
- Titre : invoicing: add Campaign & Pool models (#71910)
- Modifications : https://gitea.entrouvert.org/entrouvert/lingo/pulls/8/files
Updated by Transition automatique about 2 months ago
- Status changed from Résolu (à déployer) to Solution déployée
invoicing: add Campaign & Pool models (#71910)