IDEMPIERE-3637 Invoice vendor re-price is not recalculating taxes
This commit is contained in:
parent
969d02f63c
commit
1216407472
|
@ -92,8 +92,11 @@ public class OrderRePrice extends SvrProcess
|
|||
for (int i = 0; i < lines.length; i++)
|
||||
{
|
||||
lines[i].setPrice(invoice.getM_PriceList_ID(), invoice.getC_BPartner_ID());
|
||||
if (lines[i].is_Changed()) {
|
||||
lines[i].setTaxAmt();
|
||||
lines[i].saveEx();
|
||||
}
|
||||
}
|
||||
invoice = new MInvoice (getCtx(), p_C_Invoice_ID, null);
|
||||
BigDecimal newPrice = invoice.getGrandTotal();
|
||||
if (retValue.length() > 0)
|
||||
|
|
|
@ -457,7 +457,7 @@ public class MInvoiceLine extends X_C_InvoiceLine
|
|||
BigDecimal TaxAmt = Env.ZERO;
|
||||
if (getC_Tax_ID() == 0)
|
||||
return;
|
||||
// setLineNetAmt();
|
||||
setLineNetAmt();
|
||||
MTax tax = MTax.get (getCtx(), getC_Tax_ID());
|
||||
if (tax.isDocumentLevel() && m_IsSOTrx) // AR Inv Tax
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue