Author: apatel
Date: Sat Jul 25 09:34:56 2009
New Revision: 797730
URL:
http://svn.apache.org/viewvc?rev=797730&view=revLog:
Return message if all payments are not ready for check run.
Modified:
ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
Modified: ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml?rev=797730&r1=797729&r2=797730&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml (original)
+++ ofbiz/trunk/applications/accounting/config/AccountingUiLabels.xml Sat Jul 25 09:34:56 2009
@@ -4614,6 +4614,9 @@
<value xml:lang="th">à¹à¸à¸à¸³à¸à¸±à¸à¸ªà¸´à¸à¸à¹à¸²</value>
<value xml:lang="zh">å票</value>
</property>
+ <property key="AccountingInvoicesRequiredInReadyStatus">
+ <value xml:lang="en">All Invoices should be in READY status for Check Run process.</value>
+ </property>
<property key="AccountingIssueCheck">
<value xml:lang="en">Issue Check</value>
</property>
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml?rev=797730&r1=797729&r2=797730&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/payment/PaymentServices.xml Sat Jul 25 09:34:56 2009
@@ -512,6 +512,10 @@
</call-service>
<first-from-list list="invoicePaymentInfoList" entry="invoicePaymentInfo"/>
<set field="paymentAmount" value="${paymentAmount + invoicePaymentInfo.outstandingAmount}"/>
+ <else>
+ <add-error><fail-property resource="AccountingUiLabels" property="AccountingInvoicesRequiredInReadyStatus"/></add-error>
+ <check-errors/>
+ </else>
</if-compare>
</iterate>
<if-compare field="paymentAmount" operator="greater" type="BigDecimal" value="0">