Bug 60777 - FORMATTING sum of different currencies should not be one of these currencies
Summary: FORMATTING sum of different currencies should not be one of these currencies
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.6.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Number-Format
  Show dependency treegraph
 
Reported: 2013-02-13 09:47 UTC by Lionel Elie Mamane
Modified: 2023-10-31 03:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
reproduction example (11.50 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-02-13 09:47 UTC, Lionel Elie Mamane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lionel Elie Mamane 2013-02-13 09:47:24 UTC
Created attachment 74738 [details]
reproduction example

Cells A1 and B2 are Currency/EUR/fr_LU.
Cells B1 and A1 are Currency/GBP/en_GB.
Cells C1 and C2 are Number/Standard

C1 is displayed as euros. Should not be. Since you cannot automatically guess which conversion rate to apply, just give up and display as a scalar (unitless, no currency).

Similarly, C2 is displayed as pounds, should not.

When fixing this, consider the cases in the other lines:

Line 3: A difference of EUR of different languages/countries is EUR; display it as €.

Line 4: A difference of GPB of different languages (same country) is still GPB; display it as £.

Line 5: A difference of USD and AUD of same language (different country) is NOT any kind of dollars; do not display as $.

In other words: the operative criterion is the three letter CURRENCY CODE. Ignore country and language and currency symbol when deciding whether the sum is any particular currency value. Decide *only* based on currency code: If the currency code of *all* values in the sum is the same, then the sum is in that currency, irrespective of language and country. Else, abandon and display as scalar (unless the cell has a particular format, obviously).

Lines 6 and 7 show a cornercase: LUF and BEF were at par and interchangeably used, so a sum of both could be either one. This is a very special case, I don't think it is worth recognising it and doing anything special with it.
Comment 1 Joel Madero 2013-03-21 18:20:34 UTC
It would be even nicer if we could get an option to pull a snapshot currency exchange from some site and have options for updating these numbers. 

Of course confirmed :) Marking

Changing version to 3.6.5.2 as it's confirmed at least through there, I'm expecting it's been this way always but can't confirm it.


New
Normal - indeed this can prevent high quality work and lead to misinformation (1 peso + 1 USD does NOT = 2 USD, if these numbers were used for anything could be a big problem)
Medium
Comment 2 QA Administrators 2015-04-19 03:23:39 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2016-11-08 10:38:43 UTC Comment hidden (obsolete)
Comment 4 Lionel Elie Mamane 2016-11-08 10:42:49 UTC
Still there in libreoffice-5-2 branch as of 2016-10-31
Comment 5 QA Administrators 2017-11-09 07:43:25 UTC Comment hidden (obsolete)
Comment 6 Thomas Lendo 2018-10-29 20:09:10 UTC
Still reproducible.

Version: 6.2.0.0.alpha1+
Build ID: 0f190f50368816964b2a1b7bb58000ac1792d640
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: de-DE (de_DE.UTF-8); Calc: threaded
from 2 days ago
Comment 7 QA Administrators 2019-10-30 03:36:30 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-10-30 04:37:08 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2023-10-31 03:13:35 UTC
Dear Lionel Elie Mamane,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug