sandrods / odf-report

Generates ODF files, given a template (.odt) and data, replacing tags

Home Page:http://sandrods.github.com/odf-report

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Substituting numbers in a table with currency format

vanboom opened this issue · comments

commented

I am trying to substitute numbers in a table that performs a SUM on the column. Everything should be displayed using Currency format.

There seems to be no way to set the currency format on template tags like: [ITEM_COST], OpenOffice Writer changes the tag to $0.00 when the Currency format is selected.

Is there a way to use numeric template items, but retain the currency number formatting of the .odt template?

Excerpt from the .odt template...

      <table:table-cell table:style-name="Table4.D1" office:value-type="currency" office:currency="USD" office:value="123.12">
       <text:p text:style-name="P41">[ITEM_COST]</text:p>
      </table:table-cell>

Excerpt from the processed file...

     <table:table-cell table:style-name="Table4.D1" office:value-type="string">
       <text:p text:style-name="P15">$31476.79</text:p>
      </table:table-cell>

Is it possible that the office:value-type and office:currency attributes are being stripped by odf-report? I am going to start digging... appreciate advice on where to look.

thanks!

Is this still an issue? I was not able to even select a format in LibreOffice. Please reopen if needed