BF [ 1702807 ] Manual tax not added to InvoiceTax
http://sourceforge.net/tracker/index.php?func=detail&aid=1702807&group_id=176962&atid=879332
This commit is contained in:
parent
0e389c5505
commit
07b5159755
|
@ -219,10 +219,12 @@ public class MInvoiceTax extends X_C_InvoiceTax
|
||||||
amt = Env.ZERO;
|
amt = Env.ZERO;
|
||||||
boolean isSOTrx = "Y".equals(rs.getString(3));
|
boolean isSOTrx = "Y".equals(rs.getString(3));
|
||||||
//
|
//
|
||||||
if (documentLevel || baseAmt.signum() == 0)
|
// phib [ 1702807 ]: manual tax should never be amended
|
||||||
amt = Env.ZERO;
|
// on line level taxes
|
||||||
else if (amt.signum() != 0 && !isSOTrx) // manually entered
|
if (!documentLevel && amt.signum() != 0 && !isSOTrx) // manually entered
|
||||||
;
|
;
|
||||||
|
else if (documentLevel || baseAmt.signum() == 0)
|
||||||
|
amt = Env.ZERO;
|
||||||
else // calculate line tax
|
else // calculate line tax
|
||||||
amt = tax.calculateTax(baseAmt, isTaxIncluded(), getPrecision());
|
amt = tax.calculateTax(baseAmt, isTaxIncluded(), getPrecision());
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue