diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index f1a6d4eb466..49173eff5fd 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3273,7 +3273,7 @@ class Propal extends CommonObject $delay_warning=$conf->propal->cloture->warning_delay; $statut = self::STATUS_VALIDATED; $label = $langs->trans("PropalsToClose"); - $labelShort = $langs->trans("ToClose"); + $labelShort = $langs->trans("ToAcceptRefuse"); } if ($mode == 'signed') { $delay_warning=$conf->propal->facturation->warning_delay; diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index f9662a562f2..de93ff778c4 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3412,7 +3412,7 @@ class Commande extends CommonOrder $response = new WorkboardResponse(); $response->warning_delay=$conf->commande->client->warning_delay/60/60/24; $response->label=$langs->trans("OrdersToProcess"); - $response->labelShort = $langs->trans("ToProcess"); + $response->labelShort = $langs->trans("Opened"); $response->url=DOL_URL_ROOT.'/commande/list.php?viewstatut=-3&mainmenu=commercial&leftmenu=orders'; $response->img=img_object('', "order"); diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 9363956d764..72bdce0f524 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -2199,7 +2199,7 @@ function fetchObjectByElement($element_id, $element_type, $element_ref = '') * @param array $arraycolor Array * @param string $colorifnotfound Color code to return if entry not defined or not a RGB format * @return string RGB hex value (without # before). For example: 'FF00FF', '01FF02' - * @see colorStringToArray() + * @see colorStringToArray(), colorHexToRgb() */ function colorArrayToHex($arraycolor, $colorifnotfound = '888888') { @@ -2216,7 +2216,7 @@ function colorArrayToHex($arraycolor, $colorifnotfound = '888888') * @param string $stringcolor String with hex (FFFFFF) or comma RGB ('255,255,255') * @param array $colorifnotfound Color code array to return if entry not defined * @return array RGB hex value (without # before). For example: FF00FF - * @see colorArrayToHex() + * @see colorArrayToHex(), colorHexToRgb() */ function colorStringToArray($stringcolor, $colorifnotfound = array(88,88,88)) { @@ -2233,13 +2233,12 @@ function colorStringToArray($stringcolor, $colorifnotfound = array(88,88,88)) } /** - * @param string $color the color you need to valid - * @param boolean $allow_white in case of white isn't valid + * @param string $color the color you need to valid + * @param boolean $allow_white in case of white isn't valid * @return boolean */ function colorValidateHex($color, $allow_white = true) { - if(!$allow_white && ($color === '#fff' || $color === '#ffffff') ) return false; if(preg_match('/^#[a-f0-9]{6}$/i', $color)) //hex color is valid @@ -2249,7 +2248,6 @@ function colorValidateHex($color, $allow_white = true) return false; } - /** * Change color to make it less aggressive (ratio is negative) or more aggressive (ratio is positive) * @@ -2347,10 +2345,10 @@ function colorLighten($hex, $percent) /** - * @param string $hex color in hex - * @param float $alpha 0 to 1 - * @param bool $returnArray set to 1 to return an array instead of string - * @return string|array + * @param string $hex color in hex + * @param float $alpha 0 to 1 to add alpha channel + * @param bool $return Array set to 1 to return an array instead of string + * @return string|array String or array */ function colorHexToRgb($hex, $alpha = false, $returnArray = false) { diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index a77206d5f42..2edd86d1c10 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -2835,7 +2835,7 @@ class CommandeFournisseur extends CommonOrder $response = new WorkboardResponse(); $response->warning_delay=$conf->commande->fournisseur->warning_delay/60/60/24; $response->label=$langs->trans("SuppliersOrdersToProcess"); - $response->labelShort=$langs->trans("ToProcess"); + $response->labelShort=$langs->trans("Opened"); $response->url=DOL_URL_ROOT.'/fourn/commande/list.php?statut=1,2,3&mainmenu=commercial&leftmenu=orders_suppliers'; $response->img=img_object('', "order"); diff --git a/htdocs/index.php b/htdocs/index.php index d8a8ffab17d..28c26965815 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -538,36 +538,36 @@ $dashboardgroup = array ( 'stats' => array ('propal_opened','propal_signed'), ), - 'supplier_proposal' => - array ( - 'groupName' => 'SupplierProposals', - 'stats' => - array ('supplier_proposal_opened','supplier_proposal_signed'), - ), 'commande' => array ( 'groupName' => 'Orders', 'stats' => array ('commande'), ), - 'order_supplier' => - array ( - 'groupName' => 'SuppliersOrders', - 'stats' => - array ('order_supplier'), - ), - 'contrat' => - array ( - 'groupName' => 'Contracts', - 'stats' => - array ('contrat_inactive','contrat_active'), - ), 'facture' => array ( 'groupName' => 'Invoices', 'stats' => array ('facture'), ), + 'contrat' => + array ( + 'groupName' => 'Contracts', + 'stats' => + array ('contrat_inactive','contrat_active'), + ), + 'supplier_proposal' => + array ( + 'groupName' => 'SupplierProposals', + 'stats' => + array ('supplier_proposal_opened','supplier_proposal_signed'), + ), + 'order_supplier' => + array ( + 'groupName' => 'SuppliersOrders', + 'stats' => + array ('order_supplier'), + ), 'invoice_supplier' => array ( 'groupName' => 'BillsSuppliers', @@ -580,12 +580,6 @@ $dashboardgroup = array ( 'stats' => array ('bank_account','RemiseCheque'), ), - /*'RemiseCheque' => - array ( - 'groupName' => 'BankChecks', - 'stats' => - array ('RemiseCheque'), - ),*/ 'Adherent' => array ( 'groupName' => 'Members', @@ -713,8 +707,7 @@ if (!empty($valid_dashboardlines)) $openedDashBoard.= '