IDEMPIERE-5099 Invoice Tax zero deleted wrongly when invoice line is updated before complete (#1050)

This commit is contained in:
Carlos Ruiz 2021-12-16 07:53:18 +01:00 committed by GitHub
parent dc698ff655
commit 08c7775f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -937,14 +937,8 @@ public class MInvoiceLine extends X_C_InvoiceLine
return false; return false;
// red1 - solving BUGS #[ 1701331 ] , #[ 1786103 ] // red1 - solving BUGS #[ 1701331 ] , #[ 1786103 ]
if (tax.getTaxAmt().signum() != 0) { if (!tax.save(get_TrxName()))
if (!tax.save(get_TrxName())) return false;
return false;
}
else {
if (!tax.is_new() && !tax.delete(false, get_TrxName()))
return false;
}
} }
return true; return true;
} }