Update fournisseur.facture.class.php

Hello Eldy, I just made the changes you asked me for. I have carried out the appropriate checks to verify that everything is working correctly.

All the best
This commit is contained in:
Yamil Esteban Garcia 2024-04-01 09:47:42 +02:00 committed by GitHub
parent 0a2481c702
commit a9821e2bf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1165,8 +1165,8 @@ class FactureFournisseur extends CommonInvoice
if (isset($this->close_note)) {
$this->close_note = trim($this->close_note);
}
if (isset($this->localtax1)) {
$this->localtax1 = trim($this->localtax1);
if (isset($this->total_localtax1)) {
$this->total_localtax1 = trim($this->total_localtax1);
}
if (isset($this->total_localtax2)) {
$this->total_localtax2 = trim($this->total_localtax2);
@ -1242,7 +1242,7 @@ class FactureFournisseur extends CommonInvoice
$sql .= " paye=".(isset($this->paye) ? ((int) $this->paye) : "0").",";
$sql .= " close_code=".(isset($this->close_code) ? "'".$this->db->escape($this->close_code)."'" : "null").",";
$sql .= " close_note=".(isset($this->close_note) ? "'".$this->db->escape($this->close_note)."'" : "null").",";
$sql .= " localtax1=".(isset($this->localtax1) ? ((float) $this->localtax1) : "null").",";
$sql .= " localtax1=".(isset($this->total_localtax1) ? ((float) $this->total_localtax1) : "null").",";
$sql .= " localtax2=".(isset($this->total_localtax2) ? ((float) $this->total_localtax2) : "null").",";
$sql .= " total_ht=".(isset($this->total_ht) ? ((float) $this->total_ht) : "null").",";
$sql .= " total_tva=".(isset($this->total_tva) ? ((float) $this->total_tva) : "null").",";