src-db/database/model/functions/C_INVOICE_POST.xml
changeset 21909 5b7d0ffec363
parent 21626 f64403aac66c
child 22357 74df619a7316
--- a/src-db/database/model/functions/C_INVOICE_POST.xml	Thu Jan 30 14:51:58 2014 +0530
+++ b/src-db/database/model/functions/C_INVOICE_POST.xml	Mon Feb 03 12:11:07 2014 +0100
@@ -22,7 +22,7 @@
   * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
   * All Rights Reserved.
   * Contributor(s): Openbravo SLU
-  * Contributions are Copyright (C) 2001-2013 Openbravo, S.L.U.
+  * Contributions are Copyright (C) 2001-2014 Openbravo, S.L.U.
   *
   * Specifically, this derivative work is based upon the following Compiere
   * file and version.
@@ -317,6 +317,8 @@
     into v_count
     from c_invoicetax it inner join c_tax t on (it.c_tax_id = t.c_tax_id)
     where it.c_invoice_id = v_Record_ID
+    and t.iswithholdingtax = 'N'
+    and t.rate <> 0
     and t.IsCashVat <> v_iscashvat;
 
     IF (v_count > 0) THEN