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-framework.git

commit 3e509d0215440c982ca9b2069b6e34f072540f56
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Sat Nov 20 19:01:12 2021 +0100

    Improved: no functional change, only formatting
    
    Better have the package after the ASL2 header, also small formatting
---
 .../accounting/groovyScripts/invoice/InvoiceEvents.groovy      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/applications/accounting/groovyScripts/invoice/InvoiceEvents.groovy 
b/applications/accounting/groovyScripts/invoice/InvoiceEvents.groovy
index 76160e8..02456af 100644
--- a/applications/accounting/groovyScripts/invoice/InvoiceEvents.groovy
+++ b/applications/accounting/groovyScripts/invoice/InvoiceEvents.groovy
@@ -1,4 +1,3 @@
-package invoice
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -17,6 +16,7 @@ package invoice
  * specific language governing permissions and limitations
  * under the License.
  */
+package invoice
 
 import org.apache.ofbiz.entity.GenericValue
 import org.apache.ofbiz.service.ServiceUtil
@@ -31,10 +31,10 @@ def createInvoiceItemPayrol() {
                 payRolList.each { payRol ->
                     if (payRol.parentTypeId == payRolGroup.invoiceItemTypeId) {
                         Map createInvoiceItem = [invoiceId        : 
parameters.invoiceId,
-                                                 invoiceItemTypeId: 
payRol.invoiceItemTypeId,
-                                                 description      : 
"${payRolGroup.description}: ${payRol.description}",
-                                                 quantity         : 
parameters."${payRol.invoiceItemTypeId}_Quantity" ?: 1d,
-                                                 amount           : 
parameters."${payRol.invoiceItemTypeId}_Amount" ?: 0d]
+                            invoiceItemTypeId: payRol.invoiceItemTypeId,
+                            description      : "${payRolGroup.description}: 
${payRol.description}",
+                            quantity         : 
parameters."${payRol.invoiceItemTypeId}_Quantity" ?: 1d,
+                            amount           : 
parameters."${payRol.invoiceItemTypeId}_Amount" ?: 0d]
 
                         if (parameters."${payRol.invoiceItemTypeId}_Quantity" 
||
                                 
parameters."${payRol.invoiceItemTypeId}_Amount") {

Reply via email to