Answering to myself:
On Mon, Aug 30, 2010 at 8:42 PM, Jonatan Soto <[email protected]>wrote: > Has anyone got this error when an invoice PDF is generated? > > Expression x is undefined on line 19, column 15 in > component://accounting/webapp/accounting/invoice/invoiceReportItems.fo.ftl. > <#-- <#escape x as x?xml> --> I've commented this and the first error disappears. Seems that x variable is not defined neither used anywhere (AccountingPrintScreens.xml#InvoicePDF) > The problematic instruction: > ---------- > ==> ${taxRate.description} escaped ${taxRate.description?xml} [on line 241, > column 23 in > component://accounting/webapp/accounting/invoice/invoiceReportItems.fo.ftl] > ---------- > I just added a description to the tax rate and it works. I think it should be checked to avoid print it when the values are null or blank on the PDF generation because the description of a tax rate is not mandatory. > > Java backtrace for programmers: > ---------- > freemarker.core.InvalidReferenceException: Expression x is undefined on > line 19, column 15 in > component://accounting/webapp/accounting/invoice/invoiceReportItems.fo.ftl. > > I'm running a two months old trunk version of Ofbiz. > > I'll try to fix and then I'll create a Jira with a patch if no one has > solved yet. > > Thanks in advance. > > -- > ----- > > Jonatan Soto > -- ----- Jonatan Soto
