FIX support of localtax on expense report

This commit is contained in:
Laurent Destailleur
2021-09-22 15:11:18 +02:00
parent 6c7c6c9efd
commit 2824c8b8ab
4 changed files with 170 additions and 128 deletions

View File

@@ -3526,7 +3526,7 @@ abstract class CommonObject
$this->db->free($resql);
// Now update global field total_ht, total_ttc and tva
// Now update global field total_ht, total_ttc, total_tva, total_localtax1, total_localtax2, multicurrency_total_*
$fieldht = 'total_ht';
$fieldtva = 'tva';
$fieldlocaltax1 = 'localtax1';
@@ -3569,6 +3569,7 @@ abstract class CommonObject
dol_syslog(get_class($this)."::update_price", LOG_DEBUG);
$resql = $this->db->query($sql);
if (!$resql) {
$error++;
$this->error = $this->db->lasterror();