adds payment priority support in invoice matching algorithm
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Mon, 24 Jan 2011 11:55:07 +0100
changeset 10083 6919e9e1de89
parent 10082 371037e68003
child 10084 7b0cca48bc9c
adds payment priority support in invoice matching algorithm
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/algorithm/InvoiceMatchingAlgorithm.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/algorithm/InvoiceMatchingAlgorithm.java	Mon Jan 24 11:31:18 2011 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/algorithm/InvoiceMatchingAlgorithm.java	Mon Jan 24 11:55:07 2011 +0100
@@ -178,6 +178,10 @@
       whereClause.append(" psd.");
       whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_INVOICEPAYMENTSCHEDULE);
       whereClause.append(".");
+      whereClause.append(FIN_PaymentSchedule.PROPERTY_FINPAYMENTPRIORITY);
+      whereClause.append(", psd.");
+      whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_INVOICEPAYMENTSCHEDULE);
+      whereClause.append(".");
       whereClause.append(FIN_PaymentSchedule.PROPERTY_DUEDATE);
       whereClause.append(", psd.");
       whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_INVOICEPAYMENTSCHEDULE);
@@ -386,6 +390,10 @@
       whereClause.append(" psd.");
       whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_ORDERPAYMENTSCHEDULE);
       whereClause.append(".");
+      whereClause.append(FIN_PaymentSchedule.PROPERTY_FINPAYMENTPRIORITY);
+      whereClause.append(", psd.");
+      whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_ORDERPAYMENTSCHEDULE);
+      whereClause.append(".");
       whereClause.append(FIN_PaymentSchedule.PROPERTY_DUEDATE);
       whereClause.append(", psd.");
       whereClause.append(FIN_PaymentScheduleDetail.PROPERTY_ORDERPAYMENTSCHEDULE);