-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(PC-33051)[API] feat: Generate invoices with correct wording for OA. #15108
Conversation
44b1f46
to
aa41d70
Compare
api/tests/core/finance/test_api.py
Outdated
@@ -2522,7 +2525,7 @@ def _store_invoice_pdf(invoice_storage_id, invoice_html) -> None: | |||
assert reimbursement_by_venue_row["Dont offres collectives (TTC)"] == "0,00 €" | |||
assert reimbursement_by_venue_row["Dont offres individuelles (TTC)"] == "308,40 €" | |||
assert reimbursement_by_venue_row["Incidents (TTC)"] == "10,10 €" | |||
assert reimbursement_by_venue_row["Lieux"] == venue.name | |||
assert reimbursement_by_venue_row["structures" if with_oa else "lieux"] == venue.name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça devrait logiquement être Structures
ou Lieux
non ? (enfin avec une majuscule)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comme j'avais la possibilité d'avoir structure
et Structure
, il aurait fallu que je fasse 2 variables différentes dans ff_wording
, et je trouvais que c'était peut être inutile.
Mais comme je rajoute un capitalise un peu partout, c'est peut être plus simple.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah my bad, je pensais que le capitalize s'appliquerait sur les valeurs dans le test, mais ça n'arrive quand dans le rendu de la facture c'est ça ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C'est ça, oui. Mais je m'en suis sorti sans. Les modifications arrivent.
@@ -194,7 +194,7 @@ | |||
</svg> | |||
<h1>Note de débit</h1> | |||
<div class="customerInfo"> | |||
<p><b>Structure :</b> Association de coiffeurs - 8533184</p> | |||
<p><b style="text-transform: capitalize;">structure :</b> Association de coiffeurs - 8533184</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quand on aura supprimé le FF OA, il faudra se débarrasser du capitalize, du coup
api/src/pcapi/core/finance/api.py
Outdated
@@ -88,6 +88,7 @@ | |||
from . import repository | |||
from . import utils | |||
from . import validation | |||
from ...models.feature import FeatureToggle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from ...models.feature import FeatureToggle | |
from pcapi.models.feature import FeatureToggle |
On aime pas avoir trop de points :p
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad Pycharm !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comme cela concerne les documents finance, je laisse @vroullier-pass et @ataib-pass relire et approuver, je laisse juste un commentaire.
api/src/pcapi/core/finance/api.py
Outdated
@@ -88,6 +88,7 @@ | |||
from . import repository | |||
from . import utils | |||
from . import validation | |||
from ...models.feature import FeatureToggle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from ...models.feature import FeatureToggle | |
from pcapi.models.feature import FeatureToggle |
aa41d70
to
c1f1eee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
But de la pull request
Ticket Jira (ou description si BSR) : https://passculture.atlassian.net/browse/PC-33051
Vérifications