diff --git a/htdocs/compta/facture/info.php b/htdocs/compta/facture/info.php index 33dde25ca97..f524d49eb97 100644 --- a/htdocs/compta/facture/info.php +++ b/htdocs/compta/facture/info.php @@ -131,7 +131,7 @@ if (!empty($conf->projet->enabled)) { } $morehtmlref .= ''; -$object->totalpaye = $totalpaye; // To give a chance to dol_banner_tab to use already paid amount to show correct status +$object->totalpaid = $totalpaye; // To give a chance to dol_banner_tab to use already paid amount to show correct status dol_banner_tab($object, 'ref', $linkback, 1, 'ref', 'ref', $morehtmlref, '', 0); @@ -140,7 +140,7 @@ print '
'; print '
'; -print '
'; +print '
'; dol_print_object_info($object); print '
'; diff --git a/htdocs/core/class/cstate.class.php b/htdocs/core/class/cstate.class.php index 36c3cb2c0fe..d67b0c25f66 100644 --- a/htdocs/core/class/cstate.class.php +++ b/htdocs/core/class/cstate.class.php @@ -51,6 +51,12 @@ class Cstate // extends CommonObject public $code_departement; public $code; + + /** + * @var string name + */ + public $name = ''; + /** * @var string * @deprecated @@ -58,10 +64,7 @@ class Cstate // extends CommonObject */ public $nom = ''; - /** - * @var string name - */ - public $name = ''; + public $label; public $active; @@ -88,7 +91,6 @@ class Cstate // extends CommonObject */ public function create($user, $notrigger = 0) { - global $conf, $langs; $error = 0; // Clean parameters @@ -155,7 +157,6 @@ class Cstate // extends CommonObject */ public function fetch($id, $code = '') { - global $langs; $sql = "SELECT"; $sql .= " t.rowid,"; $sql .= " t.code_departement,";