[ 
https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656500#comment-17656500
 ] 

Jacques Le Roux commented on OFBIZ-12735:
-----------------------------------------

Actually, as your fix implies an issue with invoiceTypeId, I just checked on 
trunk and stable demos using a purchase invoice and, like I tried before with a 
sales invoice, it worked. So it seems not related to invoiceTypeId in OFBIZ 
OOTB. You can check by yourself. 

That's why I ask you to reproduce on stable demo with the exact steps you use 
in your environment.

> 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
>            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)

Reply via email to