LedgerSMB icon indicating copy to clipboard operation
LedgerSMB copied to clipboard

Excel export at PNL and Balance Sheet

Open aungzwin10 opened this issue 5 years ago • 4 comments

I would like to request to develop Excel export function at PNL report and Balance Sheet report. Format of excel would be the same as PDF export or current HTML output.

aungzwin10 avatar Sep 04 '20 08:09 aungzwin10

Our templating system is designed to allow users to develop this kind of functionality themselves. However, I've checked the HTML template for required functionalities to implement the template versus the functionalities available in the XLS templating engine.

The following functionalities are missing (to be checked once implemented):

  • [ ] Setting of column width (in order to be able to create indenting)
  • [ ] Merging of cells (in order to create a single cell with text for the remainder of the row)

Further more, the links at the bottom of the PNL and Balance sheet are hard-coded, meaning that additional templates in additional formats won't show, even when the application knows how to process these templates.

ehuelsmann avatar Oct 04 '20 08:10 ehuelsmann

How can I implement this excel export?

aungzwin10 avatar Oct 07 '20 02:10 aungzwin10

@aungzwin10 you need to create a template named"balance_sheet.xlst" and use the tags from https://github.com/ledgersmb/LedgerSMB/blob/master/lib/LedgerSMB/Template/Plugin/XLSX.pm#L139 to generate worksheets, rows and cells.

ehuelsmann avatar Jan 22 '23 20:01 ehuelsmann

I'll build this when someone sponsors it.

ehuelsmann avatar Dec 19 '23 05:12 ehuelsmann