Fix bug [ 1863657 ] Typo in AcctSchemaCopyAcct.doIt

This commit is contained in:
Carlos Ruiz 2008-01-03 23:35:00 +00:00
parent 627c8f55f5
commit 2f04f05230
1 changed files with 1 additions and 2 deletions

View File

@ -71,11 +71,10 @@ public class AcctSchemaCopyAcct extends SvrProcess
if (source.get_ID() == 0)
throw new AdempiereSystemError("NotFound Source C_AcctSchema_ID=" + p_SourceAcctSchema_ID);
MAcctSchema target = new MAcctSchema (getCtx(), p_TargetAcctSchema_ID, get_TrxName());
if (source.get_ID() == 0)
if (target.get_ID() == 0)
throw new AdempiereSystemError("NotFound Target C_AcctSchema_ID=" + p_TargetAcctSchema_ID);
//
MAcctSchemaElement[] sourceElements = source.getAcctSchemaElements();
MAcctSchemaElement[] targetElements = target.getAcctSchemaElements();
if (targetElements.length == 0)
throw new AdempiereUserError("NotFound Target C_AcctSchema_Element");