From 9e865b8947000a6b20ce20d2fd55e1fddbb3951c Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 28 Apr 2009 12:53:41 +0000 Subject: [PATCH] minor [ adempiere-Contributions-2782704 ] Correct name https://sourceforge.net/tracker/?func=detail&atid=883808&aid=2782704&group_id=176962 Thanks to contedracma (Angelo Martinelli) --- base/src/org/compiere/acct/Doc_Invoice.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/base/src/org/compiere/acct/Doc_Invoice.java b/base/src/org/compiere/acct/Doc_Invoice.java index 7043ed1250..6f7ecea96c 100644 --- a/base/src/org/compiere/acct/Doc_Invoice.java +++ b/base/src/org/compiere/acct/Doc_Invoice.java @@ -169,7 +169,7 @@ public class Doc_Invoice extends Doc MTax tax = MTax.get(getCtx(), C_Tax_ID); if (!tax.isZeroTax()) { - BigDecimal LineNetAmtTax = tax.calculateTax(LineNetAmt, true, getStdPercision()); + BigDecimal LineNetAmtTax = tax.calculateTax(LineNetAmt, true, getStdPrecision()); log.fine("LineNetAmt=" + LineNetAmt + " - Tax=" + LineNetAmtTax); LineNetAmt = LineNetAmt.subtract(LineNetAmtTax); for (int t = 0; t < m_taxes.length; t++) @@ -180,7 +180,7 @@ public class Doc_Invoice extends Doc break; } } - BigDecimal PriceListTax = tax.calculateTax(PriceList, true, getStdPercision()); + BigDecimal PriceListTax = tax.calculateTax(PriceList, true, getStdPrecision()); PriceList = PriceList.subtract(PriceListTax); } } // correct included Tax @@ -224,10 +224,10 @@ public class Doc_Invoice extends Doc } // loadLines /** - * Get Currency Percision + * Get Currency Precision * @return precision */ - private int getStdPercision() + private int getStdPrecision() { if (m_precision == -1) m_precision = MCurrency.getStdPrecision(getCtx(), getC_Currency_ID());