fix: missing traductions and some issues

This commit is contained in:
Djery-Tom 2023-09-13 11:10:10 +01:00
parent 63ce95ff71
commit 30f8387ee8
3 changed files with 7 additions and 4 deletions

View File

@ -440,9 +440,10 @@ trait Helper
->whereDate('next_payment_reminder', date('Y-m-d'))->get(); ->whereDate('next_payment_reminder', date('Y-m-d'))->get();
foreach ($invoices as $invoice) { foreach ($invoices as $invoice) {
if (in_array($invoice->insurance->monthsGrid->payment_period, ['DAILY', 'MONTHLY'])) { $paymentPeriod = $invoice->insurance->monthsGrid->payment_period;
if (in_array($paymentPeriod, ['DAILY', 'MONTHLY'])) {
// Si le paiement est mensuel, se rassurer que cela fait deja 1 mois // Si le paiement est mensuel, se rassurer que cela fait deja 1 mois
if ($invoice->monthsGrid->payment_period == 'MONTHLY' && date_create($invoice->next_payment_deadline)->diff(new DateTime())->m < 1) { if ($paymentPeriod == 'MONTHLY' && date_create($invoice->next_payment_deadline)->diff(new DateTime())->m < 1) {
continue; continue;
} }

View File

@ -76,5 +76,6 @@ return [
"amount_not_allowed" => "This amount is not allowed. It must be between :min and :max", "amount_not_allowed" => "This amount is not allowed. It must be between :min and :max",
'payment_not_available' => "Payment not available at this time. Please try again later", 'payment_not_available' => "Payment not available at this time. Please try again later",
'payment_not_found' => "Payment not found", 'payment_not_found' => "Payment not found",
'payment_invalid' => "Invalid payment" 'payment_invalid' => "Invalid payment",
"transaction_already_completed" => "This transaction has already been completed",
]; ];

View File

@ -79,5 +79,6 @@ return [
"amount_not_allowed" => "Ce montant n'est pas autorisé. Il doit être compris entre :min et :max", "amount_not_allowed" => "Ce montant n'est pas autorisé. Il doit être compris entre :min et :max",
'payment_not_available' => "Paiement non disponible pour le moment. Veuillez réessayer plus tard", 'payment_not_available' => "Paiement non disponible pour le moment. Veuillez réessayer plus tard",
'payment_not_found' => "Paiement non trouvé", 'payment_not_found' => "Paiement non trouvé",
'payment_invalid' => "Paiement invalide" 'payment_invalid' => "Paiement invalide",
"transaction_already_completed" => "Cette transaction a déjà été éffectuée",
]; ];