diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index ce7ed73b6a5..e00d544ed22 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4058,7 +4058,7 @@ class Form
// Set height automatically if not defined
if (empty($height)) {
- $height = 210;
+ $height = 220;
if (is_array($formquestion) && count($formquestion) > 2) {
$height += ((count($formquestion) - 2) * 24);
}
diff --git a/htdocs/public/payment/newpayment.php b/htdocs/public/payment/newpayment.php
index f7f632459d4..d880025259b 100644
--- a/htdocs/public/payment/newpayment.php
+++ b/htdocs/public/payment/newpayment.php
@@ -68,8 +68,8 @@ $action = GETPOST('action', 'aZ09');
$suffix = GETPOST("suffix", 'aZ09');
$amount = price2num(GETPOST("amount", 'alpha'));
if (!GETPOST("currency", 'alpha')) $currency = $conf->currency;
-else $currency = GETPOST("currency", 'alpha');
-$source = GETPOST("s", 'alpha') ?GETPOST("s", 'alpha') : GETPOST("source", 'alpha');
+else $currency = GETPOST("currency", 'aZ09');
+$source = GETPOST("s", 'aZ09') ?GETPOST("s", 'aZ09') : GETPOST("source", 'aZ09');
$download = GETPOST('d', 'int') ?GETPOST('d', 'int') : GETPOST('download', 'int');
if (!$action)
@@ -964,8 +964,8 @@ if ($source == 'order')
// Tag
print '
| '.$langs->trans("PaymentCode");
print ' | '.$fulltag.'';
- print '';
- print '';
+ print '';
+ print '';
print ' |
'."\n";
// Shipping address
@@ -979,20 +979,20 @@ if ($source == 'order')
$phoneNum = $order->thirdparty->phone;
if ($shipToName && $shipToStreet && $shipToCity && $shipToCountryCode && $shipToZip)
{
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print ''."\n";
- print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
} else {
print ''."\n";
}
if (is_object($order->thirdparty)) print ''."\n";
print ''."\n";
- print ''."\n";
+ print ''."\n";
$labeldesc = $langs->trans("Order").' '.$order->ref;
if (GETPOST('desc', 'alpha')) $labeldesc = GETPOST('desc', 'alpha');
print ''."\n";
@@ -1065,8 +1065,9 @@ if ($source == 'invoice')
print '| '.$langs->trans("PaymentAmount");
if (empty($amount) && empty($object->paye)) print ' ('.$langs->trans("ToComplete").')';
print ' | ';
- if (empty($object->paye))
- {
+ if ($object->type == $object::TYPE_CREDIT_NOTE) {
+ print ''.$langs->trans("CreditNote").'';
+ } elseif (empty($object->paye)) {
if (empty($amount) || !is_numeric($amount))
{
print '';
@@ -1076,12 +1077,13 @@ if ($source == 'invoice')
print '';
print '';
}
+ print ' '.$langs->trans("Currency".$currency).'';
+ print '';
} else {
print ''.price($object->total_ttc, 1, $langs).'';
+ print ' '.$langs->trans("Currency".$currency).'';
+ print '';
}
- // Currency
- print ' '.$langs->trans("Currency".$currency).'';
- print '';
print ' |
'."\n";
// Tag