svn commit: r1809399 - /ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/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: r1809399 - /ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java

akashjain
Author: akashjain
Date: Sat Sep 23 11:31:00 2017
New Revision: 1809399

URL: http://svn.apache.org/viewvc?rev=1809399&view=rev
Log:
Fixed: Error in payment address for purchase invoice via service createinvoicefororder, applied patch from jira issue (OFBIZ-9535)

Thanks, Gaudin Pierre for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java

Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java?rev=1809399&r1=1809398&r2=1809399&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceServices.java Sat Sep 23 11:31:00 2017
@@ -346,7 +346,7 @@ public class InvoiceServices {
                 if (billFromVendor != null) {
                     List<GenericValue> billingContactMechs = billFromVendor.getRelatedOne("Party", false).getRelated("PartyContactMechPurpose", UtilMisc.toMap("contactMechPurposeTypeId", "BILLING_LOCATION"), null, false);
                     if (UtilValidate.isNotEmpty(billingContactMechs)) {
-                        payToAddress = EntityUtil.getFirst(billingContactMechs);
+                        payToAddress = EntityUtil.getFirst(EntityUtil.filterByDate(billingContactMechs));
                     }
                 }
             } else {