IDEMPIERE-5544 - Fix orders being calculated with wrong tax provider (#1636)

This commit is contained in:
Ricardo Santana 2023-01-14 08:08:00 -03:00 committed by GitHub
parent 920bf2d6e9
commit 5b464e18fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -2877,6 +2877,8 @@ public class MInvoice extends X_C_Invoice implements DocAction, IDocsPostProcess
MInvoiceLine[] lines = getLines();
for (MInvoiceLine line : lines)
{
if (line.isDescription())
continue;
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
if (provider == null)

View File

@ -2912,6 +2912,8 @@ public class MOrder extends X_C_Order implements DocAction
MOrderLine[] lines = getLines();
for (MOrderLine line : lines)
{
if (line.isDescription())
continue;
MTax tax = new MTax(line.getCtx(), line.getC_Tax_ID(), line.get_TrxName());
MTaxProvider provider = providers.get(tax.getC_TaxProvider_ID());
if (provider == null)