Bug 152933 - File don't recalculate when was saved/reopening
Summary: File don't recalculate when was saved/reopening
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-08 20:18 UTC by BogdanB
Modified: 2023-01-09 11:06 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
demo document (13.04 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-01-08 20:18 UTC, BogdanB
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BogdanB 2023-01-08 20:18:19 UTC
Description:
Open the attached file.
A = 379.788
B = 268.577 

The value for B6 should be (A-B)*100/B = 41.41
But it is zero.

Press Ctrl+Shift+F9 (Hard Recalculate): B6 is now 41.41, as it should.

If you would get this file you wouldn't know that you have to press something to see real results.

Steps to Reproduce:
see description

Actual Results:
The value from B6 is zero

Expected Results:
The value from B6 should be 41.41


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.0.1 (X86_64) / LibreOffice Community
Build ID: 77cd3d7ad4445740a0c6cf977992dafd8ebad8df
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 1 BogdanB 2023-01-08 20:18:54 UTC
Created attachment 184531 [details]
demo document
Comment 2 m_a_riosv 2023-01-08 22:38:06 UTC
After a first hard recalc, introducing new numbers the recalculation it's done automatically.

Somehow, the file was saved without the recalculation done. D4 has zero as value in the file.
Comment 3 BogdanB 2023-01-09 06:24:51 UTC
Thanks for looking at this report.
 
The file is generated by an accounting software through an XML file, and the attachment it's a minimal reproduction file. It is supposed NOT to be edited by anyone, being automatically generated.

The B6 value is a percentage that means the reduction of taxes. Big taxes with 10% means something. So, zero could mean in this case that we NOT apply the law.

I know that modifying any number and UNDO resolve the case, but I am not the only user who use it (others don't know the trick). Could be hundreds of people who could be affected by this wrong percent. More important, I tested this file, and Microsoft Office is opening the file with the correct value. Just LibreOffice don't.
Comment 4 Telesto 2023-01-09 08:59:42 UTC
Confirm no auto-calculation with LO but it does with Microsoft Office
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 102846d45cb9660805e209b6954c7b8d707b8288
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Raster; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 5 Telesto 2023-01-09 09:02:26 UTC
@Eike
Some dev advise would be nice
Comment 6 BogdanB 2023-01-09 09:21:49 UTC
The essential part here is that I am NOT allowed to modify the file. It's generated by software and used just to take the percentage and print it.
Comment 7 m_a_riosv 2023-01-09 10:22:11 UTC
There is an option:
Menu/Tools/Options/LibreOffice calc/Formula/Recalculation on File Load - ODF spreadsheet (not saved by LibreOffice) - Always recalculate
That works for me.
Comment 8 BogdanB 2023-01-09 11:06:04 UTC
(In reply to m.a.riosv from comment #7)
> There is an option:
> Menu/Tools/Options/LibreOffice calc/Formula/Recalculation on File Load - ODF
> spreadsheet (not saved by LibreOffice) - Always recalculate
> That works for me.

Yes, thanks. It worked.