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

https://sourceforge.net/tracker/index.php?func=detail&aid=1693801&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2007-04-18 23:02:59 +00:00
parent 1e4ecda35a
commit 7c09038c6d
1 changed files with 2 additions and 2 deletions

View File

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