mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 11:08:34 +01:00
On affiche l'intitul "offert" au lieu de 100% pour une rduction
This commit is contained in:
@@ -3849,4 +3849,28 @@ function monthArrayOrSelected($selected=0)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
\brief Returns formated reduction
|
||||
\param reduction Reduction percentage
|
||||
\return string Formated reduction
|
||||
*/
|
||||
function dolibarr_print_reduction($reduction=0)
|
||||
{
|
||||
global $langs;
|
||||
$langs->load("main");
|
||||
|
||||
$string = '';
|
||||
|
||||
if ($reduction == 100)
|
||||
{
|
||||
$string = $langs->trans("Offered");
|
||||
}
|
||||
else
|
||||
{
|
||||
$string = $reduction.'%';
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user