From 08c7775f7738e65c201b46ab145ef16982095d14 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 16 Dec 2021 07:53:18 +0100 Subject: [PATCH] IDEMPIERE-5099 Invoice Tax zero deleted wrongly when invoice line is updated before complete (#1050) --- .../src/org/compiere/model/MInvoiceLine.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java index f0f64e5622..02dc8e013d 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoiceLine.java @@ -937,14 +937,8 @@ public class MInvoiceLine extends X_C_InvoiceLine return false; // red1 - solving BUGS #[ 1701331 ] , #[ 1786103 ] - if (tax.getTaxAmt().signum() != 0) { - if (!tax.save(get_TrxName())) - return false; - } - else { - if (!tax.is_new() && !tax.delete(false, get_TrxName())) - return false; - } + if (!tax.save(get_TrxName())) + return false; } return true; }