[
https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656496#comment-17656496
]
yannong huang commented on OFBIZ-12735:
---------------------------------------
Here is the logic, "parent type" of the first row, as returned by
from(entityTypeName).where().cache().queryFirst().parentTypeId, is
"non-deterministic". That may be why it works in some cases.
On 1/10/23, 12:06 AM, "Jacques Le Roux (Jira)" <[email protected]
<mailto:[email protected]>> wrote:
[
https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656491#comment-17656491
<https://issues.apache.org/jira/browse/OFBIZ-12735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17656491#comment-17656491>
]
Jacques Le Roux edited comment on OFBIZ-12735 at 1/10/23 8:05 AM:
------------------------------------------------------------------
Another way could be that I apply your fix and if it works for me use it. I'll
try that...
was (Author: jacques.le.roux):
Another way could be that I apply your fix and if it works for me use it
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
> 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)