Project

General

Profile

Development #89810

facturation: générer un avoir à la clôture d'une facture, si elle est négative

Added by Lauréline Guérin about 1 month ago. Updated about 1 month ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
19 April 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Clôture d'une facture:
- par api, clôture d'une facture draft
- lors d'une campagne, génération des factures définitives
- validation de panier (on crée déjà un avoir si la facture est négative)

A part pour le cas panier, actuellement on crée une facture sans se soucier du montant.

A la place, regarder le montant, et s'il est négatif générer un avoir.
Attention, lors de la suppression d'un pool définitif, annuler aussi les avoirs, comme on annule les factures depuis #89732
Implications:
- afficher les avoirs annulés dans la liste des avoirs, filtrer sur annulé oui/non
- les exclure des enpoints de remontée dans la cellule avoir combo
- les exclure des affectations à des factures
- exclure aussi les avoirs des campagnes non terminées des affectations à des factures

Associated revisions

Revision 01f6adb6 (diff)
Added by Lauréline Guérin about 1 month ago

basket: promote draft invoice into invoice or credit (#89810)

Revision 6318c000 (diff)
Added by Lauréline Guérin about 1 month ago

api: generate credit if closed draft invoice is negative (#89810)

Revision 248d0843 (diff)
Added by Lauréline Guérin about 1 month ago

invoicing: promote pool, generate credit if draft invoice is negative (#89810)

Revision e401ba36 (diff)
Added by Lauréline Guérin about 1 month ago

misc: remove unused variable (#89810)

Revision d459a0cd (diff)
Added by Lauréline Guérin about 1 month ago

api: exclude non published credits (#89810)

Revision 1f540fdd (diff)
Added by Lauréline Guérin about 1 month ago

basket: don't assign non published credits (#89810)

Revision dfd7cd06 (diff)
Added by Lauréline Guérin about 1 month ago

invoicing: add credit cancellation fields (#89810)

Revision 42c4bc2e (diff)
Added by Lauréline Guérin about 1 month ago

invoicing: display and filter cancelled credits (#89810)

Revision 09daf1d5 (diff)
Added by Lauréline Guérin about 1 month ago

api: exclude cancelled credits (#89810)

Revision 7882e16a (diff)
Added by Lauréline Guérin about 1 month ago

basket: don't assign cancelled credits (#89810)

Revision 976a33a5 (diff)
Added by Lauréline Guérin about 1 month ago

invoicing: don't delete cancellation reason used on credit (#89810)

History

#1

Updated by Robot Gitea about 1 month ago

  • Status changed from Nouveau to En cours

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#2

Updated by Robot Gitea about 1 month ago

  • Status changed from En cours to Solution proposée
#3

Updated by Robot Gitea about 1 month ago

Paul Marillonnet (pmarillonnet) a demandé une relecture de Paul Marillonnet (pmarillonnet) sur une pull request sur Gitea concernant cette demande :

#4

Updated by Robot Gitea about 1 month ago

  • Status changed from Solution proposée to Solution validée

Paul Marillonnet (pmarillonnet) a approuvé une pull request sur Gitea concernant cette demande :

#5

Updated by Robot Gitea about 1 month 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 :

#6

Updated by Transition automatique about 1 month ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF