-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.00 should not be left empty in the rows. #19
Comments
This most likely bottles down to the parent package PhpSpreadsheet and their |
To anyone else facing this issue, or the one described in issue #18, I've found a way to resolve both problems. Below is a base class I created to allow all other exporters to extend. The classes that extend it just define the columns in
|
When exporting a column of data set as
decimal(8.2)
in MySQL, the column will only add data to the CSV file if the entry is greater than 0.00.I also noticed that boolean
false
gets omitted as if it were null, as well. It sounds a lot like something somewhere is usingempty()
to check if something should be set to an empty string in the CSV.I don't have time right now to look into it further, but hopefully the package maintainer or someone else will look into the issue. (FYI, to keep things simple, a
0
in lieu of a booleanfalse
would be great in the CSV.)The text was updated successfully, but these errors were encountered: