[ 1583825 ] No tax recalculation after line changes
This commit is contained in:
parent
8da50e3567
commit
0b426b1aad
|
@ -835,6 +835,15 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// deathmeat: [ 1583825 ] No tax recalculation after line changes
|
||||||
|
if((MInvoiceTax.get(this, getPrecision(),
|
||||||
|
true, get_TrxName()).getTaxAmt().doubleValue() == 0.0D))
|
||||||
|
{
|
||||||
|
// Tax line total is zero, delete the line
|
||||||
|
MInvoiceTax.get(this, getPrecision(),
|
||||||
|
true, get_TrxName()).delete(true, get_TrxName());
|
||||||
|
}
|
||||||
|
|
||||||
// Update Invoice Header
|
// Update Invoice Header
|
||||||
String sql = "UPDATE C_Invoice i"
|
String sql = "UPDATE C_Invoice i"
|
||||||
+ " SET TotalLines="
|
+ " SET TotalLines="
|
||||||
|
|
|
@ -911,6 +911,15 @@ public class MOrderLine extends X_C_OrderLine
|
||||||
if (!tax.save(get_TrxName()))
|
if (!tax.save(get_TrxName()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
// deathmeat: [ 1583825 ] No tax recalculation after line changes
|
||||||
|
if((MOrderTax.get(this, getPrecision(),
|
||||||
|
true, get_TrxName()).getTaxAmt().doubleValue() == 0.0D))
|
||||||
|
{
|
||||||
|
// Tax line total is zero, delete the line
|
||||||
|
MOrderTax.get(this, getPrecision(),
|
||||||
|
true, get_TrxName()).delete(true, get_TrxName());
|
||||||
|
}
|
||||||
|
|
||||||
// Update Order Header
|
// Update Order Header
|
||||||
String sql = "UPDATE C_Order i"
|
String sql = "UPDATE C_Order i"
|
||||||
+ " SET TotalLines="
|
+ " SET TotalLines="
|
||||||
|
|
Loading…
Reference in New Issue