minor [ adempiere-Contributions-2782704 ] Correct name

https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2782704&group_id=176962
Thanks to contedracma (Angelo Martinelli)
This commit is contained in:
Carlos Ruiz 2009-04-28 12:53:41 +00:00
parent 36ec3a5fca
commit 9e865b8947
1 changed files with 4 additions and 4 deletions

View File

@ -169,7 +169,7 @@ public class Doc_Invoice extends Doc
MTax tax = MTax.get(getCtx(), C_Tax_ID); MTax tax = MTax.get(getCtx(), C_Tax_ID);
if (!tax.isZeroTax()) if (!tax.isZeroTax())
{ {
BigDecimal LineNetAmtTax = tax.calculateTax(LineNetAmt, true, getStdPercision()); BigDecimal LineNetAmtTax = tax.calculateTax(LineNetAmt, true, getStdPrecision());
log.fine("LineNetAmt=" + LineNetAmt + " - Tax=" + LineNetAmtTax); log.fine("LineNetAmt=" + LineNetAmt + " - Tax=" + LineNetAmtTax);
LineNetAmt = LineNetAmt.subtract(LineNetAmtTax); LineNetAmt = LineNetAmt.subtract(LineNetAmtTax);
for (int t = 0; t < m_taxes.length; t++) for (int t = 0; t < m_taxes.length; t++)
@ -180,7 +180,7 @@ public class Doc_Invoice extends Doc
break; break;
} }
} }
BigDecimal PriceListTax = tax.calculateTax(PriceList, true, getStdPercision()); BigDecimal PriceListTax = tax.calculateTax(PriceList, true, getStdPrecision());
PriceList = PriceList.subtract(PriceListTax); PriceList = PriceList.subtract(PriceListTax);
} }
} // correct included Tax } // correct included Tax
@ -224,10 +224,10 @@ public class Doc_Invoice extends Doc
} // loadLines } // loadLines
/** /**
* Get Currency Percision * Get Currency Precision
* @return precision * @return precision
*/ */
private int getStdPercision() private int getStdPrecision()
{ {
if (m_precision == -1) if (m_precision == -1)
m_precision = MCurrency.getStdPrecision(getCtx(), getC_Currency_ID()); m_precision = MCurrency.getStdPrecision(getCtx(), getC_Currency_ID());