Bug 147050 - [FILEOPEN] NUMBERS table incorrect number formats
Summary: [FILEOPEN] NUMBERS table incorrect number formats
Status: UNCONFIRMED
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libetonyek (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-29 05:42 UTC by SheetJS
Modified: 2022-02-01 14:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
sample (235.74 KB, application/zip)
2022-01-29 05:44 UTC, SheetJS
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SheetJS 2022-01-29 05:42:58 UTC
Description:
The attached file was generated by open the "Charting Basics" template in Numbers 11.2 and saving without making changes.  When opening with the current release build (7.2.5.2), a number of formats are incorrect:

Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart") should have months as column labels, but LO shows raw date codes.  A similar issue affects "Comparison of Units Sold by Year" (column headers should be year) 

Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart") body cells (B2:E5) are formatted as number in Numbers, but LO shows currency.  This issue also affects "Comparison of Units Sold by Year" and "Average Rainfall"

Table "Average Rainfall" (original table in worksheet "2-Axis Chart") column B is formatted as Number with 2 decimal places, but LO shows integers.

Steps to Reproduce:
Open Attached File.

Actual Results:
See Description

Expected Results:
See Description


Reproducible: Always


User Profile Reset: Yes



Additional Info:
See Description
Comment 1 SheetJS 2022-01-29 05:44:12 UTC
Created attachment 177892 [details]
sample

File was generated by opening Numbers 11.2 and creating a new document from the template Basic > Charting Basics
Comment 2 raal 2022-01-29 12:11:29 UTC
I doesn't see any data on the sheet "Interactive Chart", only one text box.

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 2f4f4cbeb8e50081d607b86b0475b93971c40ab8
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: tr-TR (cs_CZ.UTF-8); UI: en-US
Calc: threaded Jumbo
Comment 3 SheetJS 2022-01-29 18:27:16 UTC
A "Sheet" in Numbers can contain multiple objects, including "Tables" and charts and text boxes.  LibreOffice projects each supported object into its own "worksheet".  If a table has a title, the generated worksheet uses the title as the worksheet name.  That decision loosely "makes sense" given that LO has no direct equivalent of a Numbers Sheet.

In the "Interactive Chart" Sheet in Numbers, there is a text box, a table and a chart.

LibreOffice put the text box in the "Interactive Chart" worksheet.  Since the table has a title "Monthly Sales by Region", LibreOffice actually generated a worksheet called "Monthly Sales by Region" and put the table there.

The phrase `Table "Monthly Sales by Region" (original table in worksheet "Interactive Chart")` should be parsed as 'LibreOffice generated a table "Monthly Sales by Region".  This table corresponds to the "Interactive Chart" Numbers sheet.'
Comment 4 Timur 2022-02-01 14:29:19 UTC
I don't know what Numbers is, but there, how are those cells formatted, as all, general numbers, date, specific date.. which format code exactly? 
Is this a bug against Calc or libetonyek as reported? MSO doesn't open it at all.