IDEMPIERE-4621 Cross Tenant Parent Tax Error (#502)

* IDEMPIERE-4621  Cross Tenant Parent Tax Error

* IDEMPIERE-4621 Add CLient Check on getTaxNodes
This commit is contained in:
igorpojzl 2020-12-31 13:21:04 +01:00 committed by GitHub
parent df47a79531
commit afde8a0cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -243,6 +243,7 @@ public class MTax extends X_C_Tax implements ImmutablePOSupport
List<MTax> list = new Query(getCtx(), I_C_Tax.Table_Name, whereClause, get_TrxName())
.setParameters(getC_Tax_ID())
.setOnlyActiveRecords(true)
.setClient_ID()
.list();
//red1 - end -
if (list.size() > 0 && is_Immutable())

View File

@ -97,8 +97,6 @@ public class StandardTaxProvider implements ITaxProvider {
}
if (!oTax.delete(true, order.get_TrxName()))
return false;
if (!oTax.save(order.get_TrxName()))
return false;
}
else
{