fix error signed devis auto created contrat

This commit is contained in:
Serreau Jovann
2026-02-18 15:50:30 +01:00
parent b139052183
commit c076b6c92d
2 changed files with 6 additions and 6 deletions

View File

@@ -87,7 +87,7 @@
VAULT_TOKEN=hvs.QLpUdiptXtSPo5Qf7i2nn2Xz
MAILER_DSN=ses+smtp://AKIAWTT2T22CWBRBBDYN:BBdgb6KxRQ8mNcpWFJsZCJxbSGNdgLhKFiITMErfBlQP@default?region=eu-west-3
PATH_URL=https://intranet.ludikevent.fr
STRIPE_BASEURL=https://payment.ludikevent.fr
STRIPE_BASEURL=https://reservation.ludikevent.fr
SIGN_URL=https://reservation.ludikevent.fr
CONTRAT_BASEURL=https://reservation.ludikevent.fr
DEFAULT_URI=https://reservation.ludikevent.fr

View File

@@ -101,7 +101,7 @@
{% set fPrice = formule.price1j %}
{% if days >= 2 and formule.price2j %}{% set fPrice = formule.price2j %}{% endif %}
{% if days >= 5 and formule.price5j %}{% set fPrice = formule.price5j %}{% endif %}
{% if tvaEnabled %}
{% set fPriceDisplay = fPrice * 1.20 %}
{% else %}
@@ -213,7 +213,7 @@
{# --- COLONNE DROITE : FINANCES --- #}
<div class="lg:col-span-2 space-y-4">
{# CALCUL DES TOTAUX AVEC PROMO #}
{% set promoPercentage = 0 %}
{% if contrat.devis and contrat.devis.orderSession and contrat.devis.orderSession.promotion %}
@@ -269,7 +269,7 @@
{% set totalPaid = 0 %}
{% for p in paymentList %}{% set totalPaid = totalPaid + p.amount %}{% endfor %}
{% for p in paymentCtaList %}{% set totalPaid = totalPaid + p.amount %}{% endfor %}
{% if tvaEnabled %}
{% set newSolde = totalTTC - totalPaid %}
{% else %}
@@ -341,9 +341,9 @@
{% if not (contrat.devis and 'Chorus' in contrat.devis.paymentMethod) %}
{# 2. ACOMPTE #}
{% if tvaEnabled %}
{% set arrhes_discounted = totalTTC_Discounted * 0.25 %}
{% set arrhes_discounted = totalHT * 0.25 %}
{% else %}
{% set arrhes_discounted = totalHT_Discounted * 0.25 %}
{% set arrhes_discounted = totalHT * 0.25 %}
{% endif %}
{% if not contratPaymentPay(contrat, 'accompte') %}