This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 112182f28 Fixed: NetBeforeOverheadReport.groovy does not compile 
(OFBIZ-12958)
112182f28 is described below

commit 112182f2835dc9f0cc20f70b3b3c539e2e694231
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Fri Mar 22 10:33:49 2024 +0100

    Fixed: NetBeforeOverheadReport.groovy does not compile (OFBIZ-12958)
    
    First note that the Birt component is currently disabled because of
    https://github.com/eclipse-birt/birt/issues/625
    To test OFBIZ-12957 I enabled it and got this incomprehensible error:
    
    > Task :compileGroovy
    startup failed:
    
C:\projectsASF\Git\ofbiz-framework\plugins\birt\src\main\groovy\org\apache\ofbiz\birt\order\NetBeforeOverheadReport.groovy:
 21: unable to resolve class org.apache.ofbiz.base.util.UtilDatetime
     @ line 21, column 1.
       import org.apache.ofbiz.base.util.UtilDatetime
       ^
    1 error
    > Task :compileGroovy FAILED
    FAILURE: Build failed with an exception.
    
    This fixes it (still incomprehensible, it's disabled anyway)
    Also import java.sql.* is unused
---
 .../org/apache/ofbiz/birt/order/NetBeforeOverheadReport.groovy       | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/birt/src/main/groovy/org/apache/ofbiz/birt/order/NetBeforeOverheadReport.groovy
 
b/birt/src/main/groovy/org/apache/ofbiz/birt/order/NetBeforeOverheadReport.groovy
index 4c5d42fd7..7958cc208 100644
--- 
a/birt/src/main/groovy/org/apache/ofbiz/birt/order/NetBeforeOverheadReport.groovy
+++ 
b/birt/src/main/groovy/org/apache/ofbiz/birt/order/NetBeforeOverheadReport.groovy
@@ -18,11 +18,8 @@
 */
 package org.apache.ofbiz.birt.order
 
-import org.apache.ofbiz.base.util.UtilDatetime
-import java.sql.*
-
 productStoreId = parameters.productStoreId
-DateTime = UtilDateTime.nowTimestamp()
+DateTime = org.apache.ofbiz.base.util.UtilDateTime.nowTimestamp()
 String DateStr = DateTime
 DateDay = DateStr.substring(0,10)
 DateMonth = DateStr.substring(5,7)

Reply via email to