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 '
| '.$langs->trans("OpportunityProbability").' | ';
- print ' %';
- print '';
- print ' | ';
- print '
';
+ // Opportunity probability
+ print '| '.$langs->trans("OpportunityProbability").' | ';
+ print ' %';
+ print '';
+ print ' | ';
+ print '
';
- // Opportunity amount
- print '| '.$langs->trans("OpportunityAmount").' | ';
- print ' | ';
- print '
';
- }
+ // Opportunity amount
+ print '| '.$langs->trans("OpportunityAmount").' | ';
+ print ' | ';
+ print '
';
+ }
// Date start
print '| '.$langs->trans("DateStart").' | ';
diff --git a/htdocs/public/paybox/newpayment.php b/htdocs/public/paybox/newpayment.php
index aea30184286..bd27554c500 100644
--- a/htdocs/public/paybox/newpayment.php
+++ b/htdocs/public/paybox/newpayment.php
@@ -305,7 +305,7 @@ if (! GETPOST("source") && $valid)
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -392,7 +392,7 @@ if (GETPOST("source") == 'order' && $valid)
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -480,7 +480,7 @@ if (GETPOST("source") == 'invoice' && $valid)
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -656,7 +656,7 @@ if (GETPOST("source") == 'contractline' && $valid)
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -786,7 +786,7 @@ if (GETPOST("source") == 'membersubscription' && $valid)
//$valtoshow=price2num(GETPOST("newamount",'alpha'),'MT');
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
print '';
- print '';
+ print '';
}
else {
$valtoshow=$amount;
diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php
index 4bc33756a51..74ffcfd120a 100644
--- a/htdocs/public/payment/newpayment.php
+++ b/htdocs/public/payment/newpayment.php
@@ -647,7 +647,7 @@ if (! $source)
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -738,7 +738,7 @@ if ($source == 'order')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -858,7 +858,7 @@ if ($source == 'invoice')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -1079,7 +1079,7 @@ if ($source == 'contractline')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -1239,7 +1239,7 @@ if ($source == 'membersubscription')
//$valtoshow=price2num(GETPOST("newamount",'alpha'),'MT');
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
print '';
- print '';
+ print '';
}
else {
$valtoshow=$amount;
diff --git a/htdocs/public/paypal/newpayment.php b/htdocs/public/paypal/newpayment.php
index 8261ba2d99a..b1ecfa43803 100644
--- a/htdocs/public/paypal/newpayment.php
+++ b/htdocs/public/paypal/newpayment.php
@@ -387,7 +387,7 @@ if (! GETPOST("source"))
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -472,7 +472,7 @@ if (GETPOST("source") == 'order')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -582,7 +582,7 @@ if (GETPOST("source") == 'invoice')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -780,7 +780,7 @@ if (GETPOST("source") == 'contractline')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -936,7 +936,7 @@ if (GETPOST("source") == 'membersubscription')
//$valtoshow=price2num(GETPOST("newamount",'alpha'),'MT');
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
print '';
- print '';
+ print '';
}
else {
$valtoshow=$amount;
diff --git a/htdocs/public/stripe/newpayment.php b/htdocs/public/stripe/newpayment.php
index 8c1db0ea834..36cd64b4f01 100644
--- a/htdocs/public/stripe/newpayment.php
+++ b/htdocs/public/stripe/newpayment.php
@@ -455,7 +455,7 @@ if (! GETPOST("source"))
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -541,7 +541,7 @@ if (GETPOST("source") == 'order')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -652,7 +652,7 @@ if (GETPOST("source") == 'invoice')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -852,7 +852,7 @@ if (GETPOST("source") == 'contractline')
if (empty($amount) || ! is_numeric($amount))
{
print '';
- print '';
+ print '';
}
else {
print ''.price($amount).'';
@@ -1008,7 +1008,7 @@ if (GETPOST("source") == 'membersubscription')
//$valtoshow=price2num(GETPOST("newamount",'alpha'),'MT');
if (! empty($conf->global->MEMBER_MIN_AMOUNT) && $valtoshow) $valtoshow=max($conf->global->MEMBER_MIN_AMOUNT,$valtoshow);
print '';
- print '';
+ print '';
}
else {
$valtoshow=$amount;
|