svn commit: r549593 - in /ofbiz/trunk/applications/accounting: entitydef/entitymodel.xml servicedef/services_finaccount.xml src/org/ofbiz/accounting/finaccount/FinAccountServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r549593 - in /ofbiz/trunk/applications/accounting: entitydef/entitymodel.xml servicedef/services_finaccount.xml src/org/ofbiz/accounting/finaccount/FinAccountServices.java

jaz-3
Author: jaz
Date: Thu Jun 21 13:05:11 2007
New Revision: 549593

URL: http://svn.apache.org/viewvc?view=rev&rev=549593
Log:
added comments to financial account transactions

Modified:
    ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
    ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml
    ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountServices.java

Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?view=diff&rev=549593&r1=549592&r2=549593
==============================================================================
--- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Thu Jun 21 13:05:11 2007
@@ -444,6 +444,7 @@
         <field name="orderId" type="id"></field>
         <field name="orderItemSeqId" type="id"><description>To be used along with orderId to point to an OrderItem that represents the purchase of a product to add money to the account.</description></field>
         <field name="performedByPartyId" type="id"></field>
+        <field name="comment" type="long-varchar"></field>
         <prim-key field="finAccountTransId"/>
         <relation type="one" fk-name="FINACCT_TX_TYPE" rel-entity-name="FinAccountTransType">
             <key-map field-name="finAccountTransTypeId"/>

Modified: ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml?view=diff&rev=549593&r1=549592&r2=549593
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml (original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml Thu Jun 21 13:05:11 2007
@@ -186,6 +186,7 @@
             location="org.ofbiz.accounting.finaccount.FinAccountServices" invoke="createAccountAndCredit" auth="true">
         <attribute name="finAccountId" type="String" mode="INOUT" optional="true"/>
         <attribute name="finAccountName" type="String" mode="IN" optional="true"/>
+        <attribute name="comment" type="String" mode="IN" optional="true"/>
         <attribute name="partyId" type="String" mode="IN" optional="false"/>
         <attribute name="amount" type="Double" mode="IN" optional="false"/>
         <attribute name="currencyUomId" type="String" mode="IN" optional="true"/>
@@ -198,6 +199,7 @@
             location="org.ofbiz.accounting.finaccount.FinAccountServices" invoke="createAccountAndCredit" auth="true">
         <attribute name="finAccountId" type="String" mode="INOUT" optional="true"/>
         <attribute name="finAccountName" type="String" mode="IN" optional="true"/>
+        <attribute name="comment" type="String" mode="IN" optional="true"/>
         <attribute name="partyId" type="String" mode="IN" optional="false"/>
         <attribute name="amount" type="Double" mode="IN" optional="false"/>
         <attribute name="currencyUomId" type="String" mode="IN" optional="true"/>

Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountServices.java?view=diff&rev=549593&r1=549592&r2=549593
==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountServices.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountServices.java Thu Jun 21 13:05:11 2007
@@ -145,8 +145,10 @@
 
             // create the credit transaction
             Map creditTransResult = dispatcher.runSync("createFinAccountTrans",
-                    UtilMisc.toMap("finAccountTransTypeId", "ADJUSTMENT", "finAccountId", creditAccount.getString("finAccountId"),
-                            "partyId", partyId, "amount", context.get("amount"), "userLogin", userLogin));
+                    UtilMisc.toMap("finAccountTransTypeId", "ADJUSTMENT", "finAccountId",
+                            creditAccount.getString("finAccountId"), "partyId", partyId, "amount",
+                            context.get("amount"), "comment", context.get("comment"), "userLogin", userLogin));
+
             if (ServiceUtil.isError(creditTransResult) || ServiceUtil.isFailure(creditTransResult)) {
                 return creditTransResult;
             }