mirror of
https://github.com/SuiteCRM/SuiteCRM.git
synced 2026-03-02 19:16:58 -05:00
Import data for floating point fields wrongly saved #4128
Labels
No labels
Area: API
Area: Campaigns
Area: Cases
Area: Clean Up
Area: Clean Up: Performance
Area: Dashlets
Area: Databases
Area: Developer Tools
Area: Elasticsearch
Area: Elasticsearch
Area: Emails
Area: Emails:Campaigns
Area: Emails:Cases
Area: Emails:Compose
Area: Emails:Config
Area: Emails:Templates
Area: Environment
Area: Installation
Area: Language
Area: Mobile
Area: Module
Area: PDFs
Area: PHP8
Area: Reports
Area: Studio
Area: Styling
Area: Upgrading
Area: Workflow
Area:Activity Stream
Area:Calls
Area:Import
Area:Projects
Area:Search
Area:Surveys
Area:Themes
Area:Users
Branch:Hotfix
Good First Issue
Hacktoberfest
Help Wanted
PR:Community Contribution
PR:Type:Enhancement
Priority:Critical
Priority:Important
Priority:Moderate
Severity: Major
Severity: Minor
Severity: Moderate
Status: Requires Code Review
Status: Requires Updates
Status: Stale
Status: Team Investigating
Status:Assessed
Status:Fix Proposed
Status:Needs Assessed
Status:Requires Automated Tests
Type: Bug
Type:Deprecated
Type:Discussion
Type:Duplicate
Type:Invalid
Type:Question
Type:Suggestion
Type:Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SuiteCRM-SuiteCRM#4128
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @timo-ecm2 on GitHub (Nov 21, 2019).
Issue
If I try to import a csv document to a custom module I see something strange happening to floating point fields. In that csv document I have two floating point fields with the values 4,25 and 5,25. I have made this csv document with LibreOffice [Charset: Unicode (UTF-8) and
Language: Standaard Nederlandss (NL)]. In this import document, the European notations is applied for both separators. I used the comma as its decimal separator and a dot as the thousands separator.
After import the values of both fields changed from 4,25 and 5,25 to 425,00 and 525,00. I am not able to do an import with floating point fields. When I work with those fields in SuiteCRM and change them manually in editview or quick edit everything works fine. Values like 4,25 or 5,25 do not change after I saved them. They stay the same. It happened only after import.
Expected Behavior
After import the content of floating point fields should show us values of 4,25 and 5,25.
Actual Behavior
After import the content of floating point fields changed from 4,25 and 5,25 to 425,00 and 525,00.
Possible Fix
I do not know yet.
Steps to Reproduce
Context
Busy with importing data to a custom module with also floating point fields.
Used system
SuiteCRM Version used: 7.10.22
Browser name and version: Version 78.0.3904.97 (Official Build) (64-bit)
Environment name and version: MariaDB 10.2, PHP 7.2
Operating System and version: Windows 10
@Mac-Rae commented on GitHub (Nov 22, 2019):
Hi @timo-ecm2,
Could you please try to change your default 1000s separator and Decimal Symbol in your profile;
Press the "Profile" button within the user drop-down menu on the navigation bar and navigate to the bottom of the Advanced tab. You should find the 2 fields which you can update to your preferences. Afterwards hit save and retest to see if the issue persists.
Let me know if this makes any difference 😄
@timo-ecm2 commented on GitHub (Nov 22, 2019):
Hi @Mac-Rae ,
Thnx for your advice, but it did not help. Still the strange change rom 4,25 to 425,00.
@Mac-Rae commented on GitHub (Nov 25, 2019):
Thanks @timo-ecm2,
I'll look at replicating this today!
@timo-ecm2 commented on GitHub (Dec 30, 2019):
Hi @Mac-Rae,
Any luck with replicating?
@Mac-Rae commented on GitHub (Dec 31, 2019):
Hi @timo-ecm2,
I do apologise, think this go lost in the prep for a release and never got completed. Do you have an example CSV you could provide?
Thanks in advance 👍
@timo-ecm2 commented on GitHub (Jan 3, 2020):
Hi @Mac-Rae,
Yes, sure, I will add an anonymized csv file and please follow the steps to reproduce.
test-custom-module.zip
@timo-ecm2 commented on GitHub (Mar 12, 2020):
Hi @Mac-Rae,
Any luck?