[OFBiz] SVN: r6892 - trunk/applications/accounting/script/org/ofbiz/accounting/invoice
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Thu Mar 2 13:51:20 CST 2006
Author: sichen
Date: 2006-03-02 13:51:16 -0600 (Thu, 02 Mar 2006)
New Revision: 6892
Modified:
trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
Log:
Improved error logging a little
Modified: trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml
===================================================================
--- trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml 2006-03-02 19:17:53 UTC (rev 6891)
+++ trunk/applications/accounting/script/org/ofbiz/accounting/invoice/InvoiceServices.xml 2006-03-02 19:51:16 UTC (rev 6892)
@@ -385,8 +385,7 @@
<if-compare field-name="parameters.statusId" operator="equals" value="INVOICE_PAID">
<set field="notApplied" value="${bsh:org.ofbiz.accounting.invoice.InvoiceWorker.getInvoiceNotApplied(invoice)}"/>
<if-compare field-name="notApplied" operator="not-equals" value="0.00">
- <add-error><fail-message message="Cannot change status to 'paid', invoice ${invoice.invoiceId} not fully applied...."/></add-error>
- <log level="error" message="Cannot change from ${invoice.statusId} to ${parameters.statusId} not fully applied"/>
+ <add-error><fail-message message="Cannot change status to 'paid', invoice ${invoice.invoiceId} has an unapplied balance of [${notApplied}]"/></add-error>
<check-errors/>
</if-compare>
</if-compare>
More information about the Svn
mailing list