details:   https://code.openbravo.com/erp/devel/pi/rev/2d8b2a794d9d
changeset: 17862:2d8b2a794d9d
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Thu Sep 06 12:04:26 2012 +0200
summary:   Fixes issue 21523. Adds a conditinal sentence for avoiding
code when is not price including taxes.

diffstat:

 src-db/database/model/functions/C_INVOICE_POST.xml |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r b86c5fec47e2 -r 2d8b2a794d9d 
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml        Tue Sep 04 
17:35:13 2012 +0200
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml        Thu Sep 06 
12:04:26 2012 +0200
@@ -1329,7 +1329,9 @@
           GrandTotal=v_GrandTotal,
           withholdingamount = withholdamount
       WHERE C_Invoice_ID=v_Record_ID;
-      C_INVOICETAX_ROUNDING(v_Record_ID, v_GrandTotal, v_TotalLines);
+      IF (v_istaxincluded = 'Y') THEN
+        C_INVOICETAX_ROUNDING(v_Record_ID, v_GrandTotal, v_TotalLines);
+      END IF;
       DBMS_OUTPUT.PUT_LINE('withholdingamount=' || withholdamount);
       DBMS_OUTPUT.PUT_LINE('GrandTotal=' || v_GrandTotal) ;
     END; -- Calculate Tax and Totals

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to