Allow the entry the Tax amount manually the same way PO
kind regards Victor Perez www.e-evolution.com Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3018714
This commit is contained in:
parent
8610b5b0ce
commit
b995ca075f
|
@ -432,7 +432,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
||||||
return;
|
return;
|
||||||
// setLineNetAmt();
|
// setLineNetAmt();
|
||||||
MTax tax = MTax.get (getCtx(), getC_Tax_ID());
|
MTax tax = MTax.get (getCtx(), getC_Tax_ID());
|
||||||
if (tax.isDocumentLevel() && m_IsSOTrx) // AR Inv Tax
|
if (tax.isDocumentLevel() && m_IsSOTrx || getTaxAmt().signum() > 0)// AR Inv Tax
|
||||||
return;
|
return;
|
||||||
//
|
//
|
||||||
TaxAmt = tax.calculateTax(getLineNetAmt(), isTaxIncluded(), getPrecision());
|
TaxAmt = tax.calculateTax(getLineNetAmt(), isTaxIncluded(), getPrecision());
|
||||||
|
|
|
@ -209,7 +209,7 @@ public class MInvoiceTax extends X_C_InvoiceTax
|
||||||
//
|
//
|
||||||
// phib [ 1702807 ]: manual tax should never be amended
|
// phib [ 1702807 ]: manual tax should never be amended
|
||||||
// on line level taxes
|
// on line level taxes
|
||||||
if (!documentLevel && amt.signum() != 0 && !isSOTrx) // manually entered
|
if (!documentLevel && amt.signum() != 0) // manually entered
|
||||||
;
|
;
|
||||||
else if (documentLevel || baseAmt.signum() == 0)
|
else if (documentLevel || baseAmt.signum() == 0)
|
||||||
amt = Env.ZERO;
|
amt = Env.ZERO;
|
||||||
|
|
Loading…
Reference in New Issue