Author: jaz
Date: Fri Jun 29 12:03:38 2007
New Revision: 552004

URL: http://svn.apache.org/viewvc?view=rev&rev=552004
Log:
fixed comment in fin account auth; now passing replenish info to create account 
and credit

Modified:
    ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml
    
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java

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=552004&r1=552003&r2=552004
==============================================================================
--- ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml 
(original)
+++ ofbiz/trunk/applications/accounting/servicedef/services_finaccount.xml Fri 
Jun 29 12:03:38 2007
@@ -202,6 +202,8 @@
         <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="replenishPaymentId" type="String" mode="IN" 
optional="true"/>
+        <attribute name="replenishLevel" type="Double" mode="IN" 
optional="true"/>
         <attribute name="currencyUomId" type="String" mode="IN" 
optional="true"/>
         <attribute name="productStoreId" type="String" mode="IN" 
optional="true"/>
         <attribute name="finAccountTypeId" type="String" mode="IN" 
optional="false"/>

Modified: 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java?view=diff&rev=552004&r1=552003&r2=552004
==============================================================================
--- 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java
 (original)
+++ 
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/finaccount/FinAccountPaymentServices.java
 Fri Jun 29 12:03:38 2007
@@ -210,7 +210,7 @@
             // turn amount into a big decimal, making sure to round and scale 
it to the same as availableBalance
             BigDecimal amountBd = (new 
BigDecimal(amount)).setScale(FinAccountHelper.decimals, 
FinAccountHelper.rounding);
 
-            Debug.log("Allow auth to negative: " + allowAuthToNegative + " :: 
available: " + availableBalance + " comp: " + FinAccountHelper.ZERO + " = " + 
availableBalance.compareTo(FinAccountHelper.ZERO) + " :: req: " + amountBd, 
module);
+            Debug.log("Allow auth to negative: " + allowAuthToNegative + " :: 
available: " + availableBalance + " comp: " + minBalance + " = " + 
availableBalance.compareTo(minBalance) + " :: req: " + amountBd, module);
             // check the available balance to see if we can auth this tx
             if (("Y".equals(allowAuthToNegative) && 
availableBalance.compareTo(minBalance) > -1)
                     || (availableBalance.compareTo(amountBd) > -1)) {


Reply via email to