diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php
index 2f4116e938f..e8da06ee2ca 100755
--- a/htdocs/compta/facture/card.php
+++ b/htdocs/compta/facture/card.php
@@ -4280,7 +4280,7 @@ elseif ($id > 0 || ! empty($ref))
print $langs->trans('AlreadyPaidNoCreditNotesNoDeposits');
else
print $langs->trans('AlreadyPaid');
- print ' :
0)?' class="amountalreadypaid"':'').'>' . price($totalpaye) . ' | | ';
+ print ' :' . price($totalpaye) . ' | | ';
$resteapayeraffiche = $resteapayer;
$cssforamountpaymentcomplete = 'amountpaymentcomplete';
@@ -4359,14 +4359,13 @@ elseif ($id > 0 || ! empty($ref))
// Billed
print '| ' . $langs->trans("Billed") . ' : | ' . price($object->total_ttc) . ' | |
';
-
// Remainder to pay
print '| ';
print $langs->trans('RemainderToPay');
if ($resteapayeraffiche < 0)
print ' ('.$langs->trans('ExcessReceived').')';
print ' : | ';
- print '' . price($resteapayeraffiche) . ' | ';
+ print '' . price($resteapayeraffiche) . ' | ';
print ' |
';
}
else // Credit note
@@ -4387,7 +4386,7 @@ elseif ($id > 0 || ! empty($ref))
if ($resteapayeraffiche > 0)
print ' ('.$langs->trans('ExcessPaid').')';
print ' :';
- print '' . price($sign * $resteapayeraffiche) . ' | ';
+ print '' . price($sign * $resteapayeraffiche) . ' | ';
print ' | ';
// Sold credit note
diff --git a/htdocs/compta/sociales/card.php b/htdocs/compta/sociales/card.php
index d3093a6f374..8bdbd68bfc4 100644
--- a/htdocs/compta/sociales/card.php
+++ b/htdocs/compta/sociales/card.php
@@ -665,7 +665,7 @@ if ($id > 0)
$cssforamountpaymentcomplete = 'amountpaymentcomplete';
print '| '.$langs->trans("RemainderToPay")." : | ";
- print ''.price($resteapayer)." |
\n";
+ print ''.price($resteapayer)." | \n";
print "";
$db->free($resql);
diff --git a/htdocs/don/card.php b/htdocs/don/card.php
index 4a3dbf1bf52..2e80e4a1fc9 100644
--- a/htdocs/don/card.php
+++ b/htdocs/don/card.php
@@ -772,7 +772,7 @@ if ($object->socid) {
$remaintopay = $object->amount - $totalpaid;
print "| ".$langs->trans("RemainderToPay")." : | ";
- print ''.price($remaintopay)." |
\n";
+ print ''.price($remaintopay)." | \n";
}
print "";
$db->free($resql);
diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php
index b036fbf20fd..927e59f4877 100644
--- a/htdocs/expensereport/card.php
+++ b/htdocs/expensereport/card.php
@@ -1989,7 +1989,7 @@ else
print '| '.$langs->trans("AmountExpected").': | '.price($object->total_ttc).' | |
';
print '| '.$langs->trans("RemainderToPay").': | ';
- print ''.price($resteapayeraffiche).' | |
';
+ print ''.price($resteapayeraffiche).' | | ';
$db->free($resql);
}
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index b2d7597e2e5..b19de1c2046 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2802,7 +2802,7 @@ else
$resteapayer = $object->total_ttc - $totalpaye;
print '| '.$langs->trans('RemainderToPay').' : | ';
- print ''.price($resteapayer).' | |
';
+ print ''.price($resteapayer).' | | ';
}
*/
@@ -2912,7 +2912,7 @@ else
else
print $langs->trans('ExcessPaid');
print ' :';
- print '' . price($resteapayeraffiche) . ' | ';
+ print '' . price($resteapayeraffiche) . ' | ';
print ' | ';
}
else // Credit note
@@ -2934,7 +2934,7 @@ else
else
print $langs->trans('ExcessPaid');
print ' :';
- print '' . price($sign * $resteapayeraffiche) . ' | ';
+ print '' . price($sign * $resteapayeraffiche) . ' | ';
print ' | ';
// Sold credit note
diff --git a/htdocs/loan/card.php b/htdocs/loan/card.php
index 1c9d6f97a01..bb2b69f63f2 100644
--- a/htdocs/loan/card.php
+++ b/htdocs/loan/card.php
@@ -743,7 +743,7 @@ if ($id > 0)
$staytopay = $object->capital - $totalpaid;
print '| '.$langs->trans("RemainderToPay").' : | ';
- print '';
+ print ' | ';
print price($staytopay, 0, $langs, 0, 0, -1, $conf->currency);
print ' |
';
}
diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php
index 11f68891df4..7a00a5bb23b 100644
--- a/htdocs/takepos/invoice.php
+++ b/htdocs/takepos/invoice.php
@@ -291,18 +291,19 @@ if ($action=="valid")
{
$sectionwithinvoicelink.=''."\n";
$sectionwithinvoicelink.='';
- $sectionwithinvoicelink.='';
+ $sectionwithinvoicelink.='';
$sectionwithinvoicelink.=$invoice->getNomUrl(1, '', 0, 0, '', 0, 0, -1, '_backoffice')." - ";
- if ($invoice->getRemainToPay() > 0)
+ $remaintopay = $invoice->getRemainToPay();
+ if ($remaintopay > 0)
{
- $sectionwithinvoicelink.=$langs->trans('Generated');
+ $sectionwithinvoicelink.=$langs->trans('RemainToPay').': '.price($remaintopay, 1, $langs, 1, -1, -1, $conf->currency).'';
}
else
{
- if ($invoice->paye) $sectionwithinvoicelink.=$langs->trans("Payed");
+ if ($invoice->paye) $sectionwithinvoicelink.=''.$langs->trans("Payed").'';
else $sectionwithinvoicelink.=$langs->trans('BillShortStatusValidated');
}
- $sectionwithinvoicelink.='';
+ $sectionwithinvoicelink.='';
if ($conf->global->TAKEPOSCONNECTOR) $sectionwithinvoicelink.=' ';
else $sectionwithinvoicelink.=' ';
if ($conf->global->TAKEPOS_AUTO_PRINT_TICKETS) $sectionwithinvoicelink.='';