Fixes issue 21566: Changes the parameters when calling the function
authorDavid Miguelez <david.miguelez@openbravo.com>
Thu, 06 Sep 2012 12:27:40 +0200
changeset 17863 b018aeca396f
parent 17862 2d8b2a794d9d
child 17864 1159e313740d
Fixes issue 21566: Changes the parameters when calling the function
C_INVOICETAX_ROUNDING.
src-db/database/model/functions/C_INVOICE_POST.xml
--- a/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Sep 06 12:04:26 2012 +0200
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Sep 06 12:27:40 2012 +0200
@@ -1330,7 +1330,7 @@
           withholdingamount = withholdamount
       WHERE C_Invoice_ID=v_Record_ID;
       IF (v_istaxincluded = 'Y') THEN
-        C_INVOICETAX_ROUNDING(v_Record_ID, v_GrandTotal, v_TotalLines);
+        C_INVOICETAX_ROUNDING(v_Record_ID, v_GrandTotal - v_taxnorecalculable, v_TotalLines);
       END IF;
       DBMS_OUTPUT.PUT_LINE('withholdingamount=' || withholdamount);
       DBMS_OUTPUT.PUT_LINE('GrandTotal=' || v_GrandTotal) ;