svn commit: r555227 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r555227 - /ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

jacopoc
Author: jacopoc
Date: Wed Jul 11 02:43:30 2007
New Revision: 555227

URL: http://svn.apache.org/viewvc?view=rev&rev=555227
Log:
Fixed bug that was causing the invoice creation to fail if a billing account with a payment term was associated to the invoice.

Modified:
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java?view=diff&rev=555227&r1=555226&r2=555227
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/invoice/InvoiceServices.java Wed Jul 11 02:43:30 2007
@@ -2074,8 +2074,10 @@
                 createInvoiceTermContext.put("termTypeId", term.get("termTypeId"));
                 createInvoiceTermContext.put("termValue", term.get("termValue"));
                 createInvoiceTermContext.put("termDays", term.get("termDays"));
-                createInvoiceTermContext.put("textValue", term.get("textValue"));
-                createInvoiceTermContext.put("description", term.get("description"));
+                if (!"BillingAccountTerm".equals(term.getEntityName())) {
+                    createInvoiceTermContext.put("textValue", term.get("textValue"));
+                    createInvoiceTermContext.put("description", term.get("description"));
+                }
                 createInvoiceTermContext.put("uomId", term.get("uomId"));
                 createInvoiceTermContext.put("userLogin", userLogin);