diff --git a/htdocs/compta/paiement.php b/htdocs/compta/paiement.php index b82d2b6216e..8ea4795af4a 100644 --- a/htdocs/compta/paiement.php +++ b/htdocs/compta/paiement.php @@ -13,6 +13,7 @@ * Copyright (C) 2023 Sylvain Legrand * Copyright (C) 2023 William Mead * Copyright (C) 2024-2025 MDW + * Copyright (C) 2025 Josep LluĂ­s Amador * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -501,7 +502,9 @@ if ($result >= 0) { print ''.$langs->trans('Date').''; $datepayment = dol_mktime(12, 0, 0, GETPOSTINT('remonth'), GETPOSTINT('reday'), GETPOSTINT('reyear')); $datepayment = ($datepayment == '' ? (!getDolGlobalString('MAIN_AUTOFILL_DATE') ? -1 : '') : $datepayment); - print $form->selectDate($datepayment, '', 0, 0, 0, "add_paiement", 1, 1, 0, '', '', $facture->date); + $adddateof = array(array('adddateof'=>$facture->date)); + $adddateof[] = array('adddateof'=>$facture->date_lim_reglement, 'labeladddateof'=>$langs->transnoentities('DateDue')); + print $form->selectDate($datepayment, '', 0, 0, 0, "add_paiement", 1, 1, 0, '', '', $adddateof); print ''; // Payment mode