diff --git a/htdocs/comm/card.php b/htdocs/comm/card.php
index 6f6a5516aab..a639fea53ea 100644
--- a/htdocs/comm/card.php
+++ b/htdocs/comm/card.php
@@ -366,6 +366,21 @@ if ($id > 0)
print '';
print '';
+ // Max outstanding bill
+ if ($object->client)
+ {
+ print '
';
+ print '| ';
+ print $form->editfieldkey("OutstandingBill",'outstanding_limit',$object->outstanding_limit,$object,$user->rights->societe->creer);
+ print ' | ';
+ $limit_field_type = (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) ? 'numeric' : 'amount';
+ print $form->editfieldval("OutstandingBill",'outstanding_limit',$object->outstanding_limit,$object,$user->rights->societe->creer,$limit_field_type,($object->outstanding_limit != '' ? price($object->outstanding_limit) : ''));
+ //if (empty($object->outstanding_limit)) print $langs->trans("NoLimit");
+
+ print ' | ';
+ print '
';
+ }
+
// Multiprice level
if (! empty($conf->global->PRODUIT_MULTIPRICES))
{
@@ -511,23 +526,8 @@ if ($id > 0)
print ''.$langs->trans("ShowCustomerPreview").' | ';
print '';
- // Max outstanding bill
- if ($object->client)
- {
- print '';
- print '| ';
- print $form->editfieldkey("OutstandingBill",'outstanding_limit',$object->outstanding_limit,$object,$user->rights->societe->creer);
- print ' | ';
- $limit_field_type = (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) ? 'numeric' : 'amount';
- print $form->editfieldval("OutstandingBill",'outstanding_limit',$object->outstanding_limit,$object,$user->rights->societe->creer,$limit_field_type,($object->outstanding_limit != '' ? price($object->outstanding_limit) : ''));
- //if (empty($object->outstanding_limit)) print $langs->trans("NoLimit");
-
- print ' | ';
- print '
';
- }
-
// Outstanding bill
- print '';
+ print '
';
print '| '.$langs->trans("CurrentOutstandingBill").' | ';
print ''.price($outstandingBills).$warn.' | ';
print '
';
diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index f0ecb0e5b13..08afbc283f4 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -3316,7 +3316,7 @@ function print_fleche_navigation($page, $file, $options='', $nextpage=0, $betwee
if (! empty($conf->global->MAIN_PAGESIZE_CHOICES)) $pagesizechoices=$conf->global->MAIN_PAGESIZE_CHOICES;
print '