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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new da52701  Fixed: Missed initialisation in previous commit 
163ff79526e18f720d3cb89176e4899aa0b4c15f (OFBIZ-10878)
da52701 is described below

commit da52701862462e091aa3865c848121c7a7e14a2b
Author: Akash Jain <[email protected]>
AuthorDate: Mon Aug 31 11:06:04 2020 +0530

    Fixed: Missed initialisation in previous commit 
163ff79526e18f720d3cb89176e4899aa0b4c15f (OFBIZ-10878)
---
 .../main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java
 
b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java
index 72d8ddb..1472b6a 100644
--- 
a/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java
+++ 
b/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java
@@ -379,7 +379,7 @@ public final class InvoiceWorker {
             Timestamp now = UtilDateTime.nowTimestamp();
             GenericValue invoiceType = null;
             try {
-                
EntityQuery.use(delegator).from("InvoiceType").where("invoiceTypeId", 
invoice.getString("invoiceTypeId")).queryFirst();
+                invoiceType = 
EntityQuery.use(delegator).from("InvoiceType").where("invoiceTypeId", 
invoice.getString("invoiceTypeId")).queryFirst();
             } catch (GenericEntityException e) {
                 Debug.logError("Trouble getting invoice type", MODULE);
             }

Reply via email to