IDEMPIERE-5544 - Fix orders being calculated with wrong tax provider (#1636)
This commit is contained in:
parent
920bf2d6e9
commit
5b464e18fc
|
@ -2877,6 +2877,8 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess
|
||||||
MInvoiceLine[] lines = getLines();
|
MInvoiceLine[] lines = getLines();
|
||||||
for (MInvoiceLine line : lines)
|
for (MInvoiceLine line : lines)
|
||||||
{
|
{
|
||||||
|
if (line.isDescription())
|
||||||
|
continue;
|
||||||
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
|
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
|
||||||
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
|
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
|
||||||
if (provider == null)
|
if (provider == null)
|
||||||
|
|
|
@ -2912,6 +2912,8 @@ public class MOrder extends X_C_Order implements DocAction
|
||||||
MOrderLine[] lines = getLines();
|
MOrderLine[] lines = getLines();
|
||||||
for (MOrderLine line : lines)
|
for (MOrderLine line : lines)
|
||||||
{
|
{
|
||||||
|
if (line.isDescription())
|
||||||
|
continue;
|
||||||
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
|
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
|
||||||
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
|
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
|
||||||
if (provider == null)
|
if (provider == null)
|
||||||
|
|
Loading…
Reference in New Issue