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 2024/03/21 08:47:00 UTC
[jira] [Commented] (OFBIZ-12956) ListFixedAssets generates an error
[ https://issues.apache.org/jira/browse/OFBIZ-12956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17829438#comment-17829438 ]
Jacques Le Roux commented on OFBIZ-12956:
-----------------------------------------
Next demo works, seems an issue with move from minilang to groovy
> ListFixedAssets generates an error
> ----------------------------------
>
> Key: OFBIZ-12956
> URL: https://issues.apache.org/jira/browse/OFBIZ-12956
> Project: OFBiz
> Issue Type: Bug
> Components: accounting, assetmaint/assetmaint
> Reporter: Pierre Smits
> Priority: Major
>
> When doing a search/find on assets in accounting following error is generated
> {code:java}
> java.lang.RuntimeException: Error rendering included grid named [ListFixedAssets] at location [component://accounting/widget/FixedAssetForms.xml]: java.lang.IllegalArgumentException: Error in form [ListFixedAssets] calling service with name [calculateFixedAssetDepreciation]: org.apache.ofbiz.service.GenericServiceException: Error running Groovy method [calculateFixedAssetDepreciation] in Groovy file [component://accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy]: (Cannot cast object '1711' with class 'java.lang.String' to class 'int')java.lang.IllegalArgumentException: Error in form [ListFixedAssets] calling service with name [calculateFixedAssetDepreciation]: org.apache.ofbiz.service.GenericServiceException: Error running Groovy method [calculateFixedAssetDepreciation] in Groovy file [component://accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy]: (Cannot cast object '1711' with class 'java.lang.String' to class 'int')
> {code}
> see https://demo-trunk.ofbiz.apache.org/accounting/control/ListFixedAssets
--
This message was sent by Atlassian Jira
(v8.20.10#820010)