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 18036 fcd54e3485b8
parent 18035 9b83cbb3649b
child 18037 d2d57011a714
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) ;