details:   https://code.openbravo.com/erp/devel/pi/rev/5f9d5073728d
changeset: 17571:5f9d5073728d
user:      Ioritz Cia <ioritz.cia <at> openbravo.com>
date:      Fri Jul 27 14:27:55 2012 +0200
summary:   Related to issue 20828: Depreciated lines discounted from the 
inserted ones.

diffstat:

 src-db/database/model/functions/A_ASSET_POST.xml |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r b6862b1e8f54 -r 5f9d5073728d 
src-db/database/model/functions/A_ASSET_POST.xml
--- a/src-db/database/model/functions/A_ASSET_POST.xml  Sun Jul 29 18:07:15 
2012 +0200
+++ b/src-db/database/model/functions/A_ASSET_POST.xml  Fri Jul 27 14:27:55 
2012 +0200
@@ -371,6 +371,7 @@
                 v_PERCENTAGE:=100 - v_PERCENTAGE;
                 finish:=true;
                 FINISH_PROCESS:=true;
+                v_inserted:=v_inserted - v_depreciatedLines;
               ELSE v_AMOUNT:=v_AMORTIZATIONVALUEAMT*v_PERCENTAGE/100;
               end if;
               IF(v_AMOUNT>0) THEN

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to