* Fix [ 1693801 ] Error when you try comple a shipmet or receipt and tax is 0
This commit is contained in:
parent
fc37e41749
commit
cc7435704d
|
|
@ -866,8 +866,9 @@ 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 (!updateOrderTax(true))
|
if (!m_parent.isProcessed())
|
||||||
return false;
|
if (!updateOrderTax(true))
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return updateHeaderTax();
|
return updateHeaderTax();
|
||||||
} // afterSave
|
} // afterSave
|
||||||
|
|
@ -921,8 +922,9 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
private boolean updateHeaderTax()
|
private boolean updateHeaderTax()
|
||||||
{
|
{
|
||||||
// Recalculate Tax for this Tax
|
// Recalculate Tax for this Tax
|
||||||
if (!updateOrderTax(false))
|
if (!m_parent.isProcessed())
|
||||||
return false;
|
if (!updateOrderTax(false))
|
||||||
|
return false;
|
||||||
|
|
||||||
// Update Order Header
|
// Update Order Header
|
||||||
String sql = "UPDATE C_Order i"
|
String sql = "UPDATE C_Order i"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue