diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index cd436543079..ca6d2bc8fdd 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -683,7 +683,7 @@ if (empty($reshook)) $i = 0; foreach ($object->lines as $line) { - if ($line->total_ht!=0) + if ($line->product_type < 9 && $line->total_ht != 0) // Remove lines with product_type greater than or equal to 9 { // no need to create discount if amount is null $amount_ht[$line->tva_tx] += $line->total_ht; $amount_tva[$line->tva_tx] += $line->total_tva; diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index c0dc04ccb38..3cbef60f5fd 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -1508,7 +1508,7 @@ function dol_print_reduction($reduction,$langs) } else { - $string = price($reduction).'%'; + $string = vatrate($reduction,true); } return $string; diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php index 92a38059a1e..f8b68f8035b 100644 --- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php @@ -139,10 +139,10 @@ class pdf_einstein extends ModelePDFCommandes $this->posxdesc=$this->marge_gauche+1; if($conf->global->PRODUCT_USE_UNITS) { - $this->posxtva=99; - $this->posxup=114; - $this->posxqty=130; - $this->posxunit=147; + $this->posxtva=101; + $this->posxup=118; + $this->posxqty=135; + $this->posxunit=151; } else { diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index 078af5975df..eda568b5be1 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -121,10 +121,10 @@ class pdf_crabe extends ModelePDFFactures $this->posxdesc=$this->marge_gauche+1; if($conf->global->PRODUCT_USE_UNITS) { - $this->posxtva=99; - $this->posxup=114; - $this->posxqty=130; - $this->posxunit=147; + $this->posxtva=101; + $this->posxup=118; + $this->posxqty=135; + $this->posxunit=151; } else { diff --git a/htdocs/core/modules/propale/doc/pdf_azur.modules.php b/htdocs/core/modules/propale/doc/pdf_azur.modules.php index 87437138812..41c36cd8d29 100644 --- a/htdocs/core/modules/propale/doc/pdf_azur.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_azur.modules.php @@ -109,10 +109,10 @@ class pdf_azur extends ModelePDFPropales $this->posxdesc=$this->marge_gauche+1; if($conf->global->PRODUCT_USE_UNITS) { - $this->posxtva=99; - $this->posxup=114; - $this->posxqty=130; - $this->posxunit=147; + $this->posxtva=101; + $this->posxup=118; + $this->posxqty=135; + $this->posxunit=151; } else { diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 2050e492f63..b5646e37128 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -789,18 +789,18 @@ elseif ($object->id > 0) print ''; print ''; - // Opportunity probability - print '