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:
teo_sarca 2007-04-18 10:49:44 +00:00
parent 0e389c5505
commit 07b5159755
1 changed files with 5 additions and 3 deletions

View File

@ -219,10 +219,12 @@ public class MInvoiceTax extends X_C_InvoiceTax
amt = Env.ZERO;
boolean isSOTrx = "Y".equals(rs.getString(3));
//
if (documentLevel || baseAmt.signum() == 0)
amt = Env.ZERO;
else if (amt.signum() != 0 && !isSOTrx) // manually entered
// phib [ 1702807 ]: manual tax should never be amended
// on line level taxes
if (!documentLevel && amt.signum() != 0 && !isSOTrx) // manually entered
;
else if (documentLevel || baseAmt.signum() == 0)
amt = Env.ZERO;
else // calculate line tax
amt = tax.calculateTax(baseAmt, isTaxIncluded(), getPrecision());
//