Fix: Can't view thirdparties that are not customer nor prospect nor

supplier.
This commit is contained in:
Laurent Destailleur
2015-07-15 12:42:50 +02:00
parent 3ace940505
commit 4d6ce2a1de
3 changed files with 14 additions and 5 deletions

View File

@@ -1725,11 +1725,12 @@ function dol_substr($string,$start,$length,$stringencoding='')
* @param string $type Type of graph ('pie', 'barline')
* @param int $showpercent Show percent (with type='pie' only)
* @param string $url Param to add an url to click values
* @param int $combineother 0=No combine, 0.05=Combine if lower than 5%
* @return void
* @deprecated
* @see DolGraph
*/
function dol_print_graph($htmlid,$width,$height,$data,$showlegend=0,$type='pie',$showpercent=0,$url='')
function dol_print_graph($htmlid,$width,$height,$data,$showlegend=0,$type='pie',$showpercent=0,$url='',$combineother=0.05)
{
dol_syslog(__FUNCTION__ . " is deprecated", LOG_WARNING);
@@ -1777,10 +1778,15 @@ function dol_print_graph($htmlid,$width,$height,$data,$showlegend=0,$type='pie',
series: {
pie: {
show: true,
radius: 0.8,
radius: 0.8,';
if ($combineother)
{
print '
combine: {
threshold: 0.05
},
threshold: '.$combineother.'
},';
}
print '
label: {
show: true,
radius: 0.9,