Merge pull request #17410 from Hystepik/develop#3

Fix : Bug facture.class.php
This commit is contained in:
Laurent Destailleur 2021-04-27 17:30:39 +02:00 committed by GitHub
commit 7db74c81be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4949,8 +4949,8 @@ class Facture extends CommonInvoice
// TODO Add filter to check there is no payment started
$sql .= $this->db->order("date_lim_reglement", "ASC");
$resql = $this->db->query($sql);
$this->output .= 'Search unpaid invoices with due date = '.$this->db->idate(dol_get_first_hour(dol_time_plus_duree($now, -1 * $nbdays, 'd'), 'gmt'), 'gmt').'<br>';
$tmpidate=$this->db->idate(dol_get_first_hour(dol_time_plus_duree($now, -1 * $nbdays, 'd'), 'gmt'), 'gmt');
$this->output .= 'Search unpaid invoices with due date = '.$tmpidate.'<br>';
if ($resql) {
while ($obj = $this->db->fetch_object($resql)) {