KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Card thounsandSeparator format #1772

Open Alexis Parrón opened this topic on on Dec 17, 2020 - 2 comments

Alexis Parrón commented on Dec 17, 2020

Hello everyone,

I am creating some cards in my report but I thounsandSeparator is not working well. I am getting a format with commas instead of points . Example: "58,000,999€"

Is something wrong? Is it a bug? I am using Core 4.7.1 + Koolreport pro, under Laravel and composer.

See the code below. Thanks.

<?php 
            echo "<h6>".$this->dataStore("amount")->sum("Amount")."</h6>";
            Card::create(array(
                "value"=>($this->dataStore("amount")->sum("Amount")),
                "title"=>"Sales Partners ".date("Y"),
                "format"=>array(
                    "value"=>array(
                        "decimals"=>2,
                        "thounsandSeparator"=>".",
                        "decimalPoint"=>",",
                        "suffix"=>"€"
                    ),
                    "indicator"=>array(
                        "suffix"=>"",
                        "thounsandSeparator"=>".",
                        "decimalPoint"=>",",
                        "suffix"=>"€"
                    )
                ),
                "cssClass"=>array(
                    "card"=>"bg-info",
                    "title"=>"text-white",
                    "value"=>"text-white"
                )
            ));
        ?>
KoolReport commented on Dec 18, 2020

I see that you have a typos of thousandSeparator in your code.

It should be "thousandSeparator", not "thounsandSeparator".

Alexis Parrón commented on Dec 18, 2020

Solved. Thank you.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed
solved

None