IDEMPIERE-1453 Remove warning C_Tax_ID=0 for invoice description lines. Fixed regression "nll value in column "c_tax_id" violates not-null constraint"

This commit is contained in:
Heng Sin Low 2013-10-29 20:14:35 +08:00
parent bb789cebb4
commit 225dbae05d
2 changed files with 6 additions and 4 deletions

View File

@ -68,9 +68,10 @@ public class MInvoiceTax extends X_C_InvoiceTax
return null;
C_Tax_ID = ((Integer)old).intValue();
}
if (!line.isDescription() && C_Tax_ID == 0)
if (C_Tax_ID == 0)
{
s_log.warning("C_Tax_ID=0");
if (!line.isDescription())
s_log.warning("C_Tax_ID=0");
return null;
}

View File

@ -69,9 +69,10 @@ public class MOrderTax extends X_C_OrderTax
}
C_Tax_ID = ((Integer)old).intValue();
}
if (!line.isDescription() && C_Tax_ID == 0)
if (C_Tax_ID == 0)
{
s_log.fine("No Tax");
if (!line.isDescription())
s_log.fine("No Tax");
return null;
}