You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2009/12/21 11:38:31 UTC

svn commit: r892748 - /ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml

Author: jacopoc
Date: Mon Dec 21 10:38:31 2009
New Revision: 892748

URL: http://svn.apache.org/viewvc?rev=892748&view=rev
Log:
Fixed tests broken after my recent enhancements to payment application transactions.
Thanks to Hans Bakker for the report.

Modified:
    ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml

Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml?rev=892748&r1=892747&r2=892748&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/test/AutoAcctgTransTests.xml Mon Dec 21 10:38:31 2009
@@ -139,7 +139,7 @@
 
             Post condition: On payment's status is sent: a double-entry accounting transaction is automatically posted to the GL:
                 * Credit; in account 111100 - "GENERAL CHECKING ACCOUNT"; amount: 290$; however this depends on the "Payment method type" selected;
-                * Debit; in account 210000 - "ACCOUNTS PAYABLE"; amount: 290$
+                * Debit; in account 216000 - "ACCOUNTS PAYABLE - UNAPPLIED PAYMENTS"; amount: 290$
          -->
 
         <set field="paymentId" value="9000"/>
@@ -163,16 +163,16 @@
         <call-simple-method method-name="UtilCheckEntriesBalance"/>
 
         <iterate list="acctgTransEntryList" entry="acctgTransEntry">
+            <log level="always" message="JAC: ${acctgTransEntry}"/>
             <if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
-            <!--<assert>
-                    <if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="GENERAL_CHECKING_ACCOUNT"/>
+                <assert>
                     <if-compare field="acctgTransEntry.glAccountId" operator="equals" value="111100"/>
-                </assert>-->
+                </assert>
             <else>
                 <if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="D">
                     <assert>
-                        <if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="ACCOUNTS_PAYABLE"/>
-                        <if-compare field="acctgTransEntry.glAccountId" operator="equals" value="210000"/>
+                        <if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="ACCPAYABLE_UNAPPLIED"/>
+                        <if-compare field="acctgTransEntry.glAccountId" operator="equals" value="216000"/>
                     </assert>
                 </if-compare>
             </else>
@@ -336,7 +336,7 @@
              1. From the payment detail screen, when you are ready to post the payment to the GL, click on the "Status to Received" link
         -->
         <!-- Post condition: "Status to Received", Received Payments. When you are ready to post the payment to the GL this action will generate and post to the GL the accounting transaction for the items taken from the warehouse and ready to be shipped:
-              * Credit; in glAccountId=120000 - glAccountTypeId="ACCOUNTS_RECEIVABLE"
+              * Credit; in glAccountId=126000 - glAccountTypeId="ACCOUNTS_RECEIVABLE - UNAPPLIED PAYMENTS"
               * Debit; in glAccountId=112000 - glAccountTypeId="UNDEPOSITED_RECEIPTS"
         -->
 
@@ -378,8 +378,8 @@
         <iterate entry="acctgTransEntry" list="acctgTransEntryList">
             <if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="C">
                <assert>
-                    <if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="ACCOUNTS_RECEIVABLE"/>
-                    <if-compare field="acctgTransEntry.glAccountId" operator="equals" value="120000"/>
+                    <if-compare field="acctgTransEntry.glAccountTypeId" operator="equals" value="ACCREC_UNAPPLIED"/>
+                    <if-compare field="acctgTransEntry.glAccountId" operator="equals" value="126000"/>
                 </assert>
             </if-compare>
             <if-compare field="acctgTransEntry.debitCreditFlag" operator="equals" value="D">