You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2023/01/10 14:52:00 UTC

[jira] [Assigned] (OFBIZ-12735) Accounting Invoice Overview - PDF failed

     [ https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-12735:
---------------------------------------

    Assignee: Jacques Le Roux

> Accounting Invoice Overview - PDF failed
> ----------------------------------------
>
>                 Key: OFBIZ-12735
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12735
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: 22.01.01
>         Environment: jdk 11.07
> macOS
>            Reporter: yannong huang
>            Assignee: Jacques Le Roux
>            Priority: Major
>         Attachments: Screenshot 2023-01-08 at 10.31.30 AM.png, stacktrace.rtf
>
>
> When clicking “PDF” button in the invoice view, it failed with “java.lang.StackOverflowError” (see stack trace below).
> A quick fix:  
> in def getCustomScreenTemplate(String entityTypeName, String fieldTypeValue), template/DocTypeTemplate.groovy,  
> Change: 
> parentTypeValue = from(entityTypeName).where().cache().queryFirst().parentTypeId 
> To: 
> String parentTypeValue = from(entityTypeName).where("invoiceTypeId", fieldTypeValue).cache().queryFirst().parentTypeId



--
This message was sent by Atlassian Jira
(v8.20.10#820010)