quba-viewer icon indicating copy to clipboard operation
quba-viewer copied to clipboard

table like view for invoice positions

Open FrankStrieter opened this issue 9 months ago • 6 comments

Hey, It would be helpful if quba would provide a view where every invoice positions are listed as they will be on a PDF invoice.

I've seen, that itplr-kosit provides such a template, but I was not able to add it to qoba. https://github.com/itplr-kosit/xrechnung-visualization/blob/master/src/xsl/xr-pdf.xsl

I get transformation errors:

Transformation failure: Error XTDE0044
  No source input supplied for apply-templates invocation

and errors at runtime

Transformation failure: Error FODF1310 at xr-content.xsl#201
  Invalid picture: mantissa contains no digits

We need to check manually if the delivered articles match with the positions on the invoice. For that case a table-like view is much better than the box view.

Can somebody look at this or help me with the errors above?

FrankStrieter avatar May 10 '24 12:05 FrankStrieter

Shall we have a 60min-webex e.g. on Wednesday 22nd 11 or 15°° CET? My issue is much less the conversion but it's output, as it will be an intermediate format, namely XML:FO which in java (->Mustangproject) I would convert to PDF(/A) using Apache FOP. Do you already have an idea for a javascript-library to convert from FO to PDF?

jstaerk avatar May 10 '24 13:05 jstaerk

Do you already have an idea for a javascript-library to convert from FO to PDF?

Unfortunately there is no such library but maybe the java tool or https://www.nuget.org/packages/FOP.NetCore/ can be integrated in electron.

FrankStrieter avatar May 10 '24 14:05 FrankStrieter

I believe we do need to solve the fop problem first, otherwise we can not use the output at all. Plus 22nd 11°° is not available on your calendar :-|

jstaerk avatar May 10 '24 14:05 jstaerk

Now it is, I'll make a POC to get FOP running in electron.

FrankStrieter avatar May 10 '24 15:05 FrankStrieter

Hi @jstaerk is there any progress on this?

FrankStrieter avatar Aug 14 '24 07:08 FrankStrieter

fop is now integrated in mustang and maybe there will be an endpoint in Mustangserver 1.4.0 in which case I could show you how to call Mustangserver to get the pdf.

jstaerk avatar Aug 15 '24 11:08 jstaerk