Skip to content

Commit

Permalink
(BSR)[BO] feat: remove useless lines in incident pages in BO
Browse files Browse the repository at this point in the history
  • Loading branch information
vroullier-pass committed Jan 28, 2025
1 parent ca1281a commit 6347dd3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,6 @@ def _get_incident(finance_incident_id: int, **args: typing.Any) -> finance_model
.load_only(
educational_models.CollectiveOffer.id,
educational_models.CollectiveOffer.name,
educational_models.CollectiveOffer.subcategoryId,
educational_models.CollectiveOffer.formats,
),
sa.orm.joinedload(educational_models.CollectiveBooking.pricings).load_only(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,9 @@
{% endif %}
</p>
<p class="mb-1">
<span class="fw-bold">Catégorie :</span>
<span class="fw-bold">Sous-catégorie :</span>
{{ booking_finance_incident.booking.stock.offer.subcategoryId | format_offer_category }}
</p>
<p class="mb-1">
<span class="fw-bold">Formats :</span>
{{ booking_finance_incident.booking.stock.offer.formats | format_collective_offer_formats }}
</p>
<p class="mb-1">
<span class="fw-bold">Crédit utilisé par le jeune :</span>
{{ booking_finance_incident.booking.deposit.type | format_deposit_type }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@
{{ booking_finance_incident.collectiveBooking.cancellationReason | format_booking_cancellation }}
</p>
{% endif %}
<p class="mb-1">
<span class="fw-bold">Catégorie :</span>
{{ booking_finance_incident.collectiveBooking.collectiveStock.collectiveOffer.subcategoryId | format_offer_category }}
</p>
<p class="mb-1">
<span class="fw-bold">Formats :</span>
{{ booking_finance_incident.collectiveBooking.collectiveStock.collectiveOffer.formats | format_collective_offer_formats }}
Expand Down

0 comments on commit 6347dd3

Please sign in to comment.