mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-16 04:50:09 -04:00
Fixed currency support in pie chart (#342)
This commit is contained in:
@@ -24,7 +24,22 @@
|
||||
|
||||
plugins: [
|
||||
Chartist.plugins.tooltip({
|
||||
currency: '<?php echo $this->config->item('currency_symbol'); ?>'
|
||||
transformTooltipTextFnc: function(value) {
|
||||
<?php
|
||||
if( $this->config->item('currency_side') )
|
||||
{
|
||||
?>
|
||||
return value + '<?php echo $this->config->item('currency_symbol'); ?>';
|
||||
<?php
|
||||
}
|
||||
else
|
||||
{
|
||||
?>
|
||||
return '<?php echo $this->config->item('currency_symbol'); ?>' + value;
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
}
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user