Fix : some dolibarr log warnings

This commit is contained in:
Hystepik 2023-06-29 15:09:27 +02:00
parent 046ce4dc59
commit 3fa04fb7a8
3 changed files with 3 additions and 3 deletions

View file

@ -646,7 +646,7 @@ class PaymentExpenseReport extends CommonObject
$label .= '<br><b>'.$langs->trans('Ref').':</b> '.$this->ref;
}
if (!empty($this->datep)) {
$label .= '<br><b>'.$langs->trans('Date').':</b> '.dol_print_date($this->datep, 'dayhour');
$label .= '<br><b>'.$langs->trans('Date').':</b> '.dol_print_date($this->db->jdate($this->datep), 'dayhour');
}
if (!empty($this->id)) {

View file

@ -2763,7 +2763,7 @@ class FactureFournisseur extends CommonInvoice
$datas['label'] = '<br><b>'.$langs->trans('Label').':</b> '.$this->label;
}
if (!empty($this->date)) {
$datas['date'] = '<br><b>'.$langs->trans('Date').':</b> '.dol_print_date($this->date, 'day');
$datas['date'] = '<br><b>'.$langs->trans('Date').':</b> '.dol_print_date($this->db->jdate($this->date), 'day');
}
if (!empty($this->date_echeance)) {
$datas['date_echeance'] = '<br><b>'.$langs->trans('DateDue').':</b> '.dol_print_date($this->date_echeance, 'day');

View file

@ -683,7 +683,7 @@ class PaiementFourn extends Paiement
$label .= '<strong>'.$langs->trans("Ref").':</strong> '.$text;
$dateofpayment = ($this->datepaye ? $this->datepaye : $this->date);
if ($dateofpayment) {
$label .= '<br><strong>'.$langs->trans("Date").':</strong> '.dol_print_date($dateofpayment, 'dayhour', 'tzuser');
$label .= '<br><strong>'.$langs->trans("Date").':</strong> '.dol_print_date($this->db->jdate($dateofpayment), 'dayhour', 'tzuser');
}
if ($this->amount) {
$label .= '<br><strong>'.$langs->trans("Amount").':</strong> '.price($this->amount, 0, $langs, 1, -1, -1, $conf->currency);