* Fix [ 1693801 ] Error when you try comple a shipmet or receipt and tax is 0

This commit is contained in:
Carlos Ruiz 2007-04-03 17:58:10 +00:00
parent fc37e41749
commit cc7435704d
1 changed files with 6 additions and 4 deletions

View File

@ -866,6 +866,7 @@ public class MOrderLine extends X_C_OrderLine
if (!newRecord && is_ValueChanged("C_Tax_ID")) if (!newRecord && is_ValueChanged("C_Tax_ID"))
{ {
// Recalculate Tax for old Tax // Recalculate Tax for old Tax
if (!m_parent.isProcessed())
if (!updateOrderTax(true)) if (!updateOrderTax(true))
return false; return false;
} }
@ -921,6 +922,7 @@ public class MOrderLine extends X_C_OrderLine
private boolean updateHeaderTax() private boolean updateHeaderTax()
{ {
// Recalculate Tax for this Tax // Recalculate Tax for this Tax
if (!m_parent.isProcessed())
if (!updateOrderTax(false)) if (!updateOrderTax(false))
return false; return false;