This commit is contained in:
Zuhri Utama 2023-07-06 11:15:39 +07:00 committed by GitHub
parent e477dad1c0
commit 00c4fec2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -186,5 +186,15 @@ public class MOrgInfo extends X_AD_OrgInfo implements ImmutablePOSupport
makeImmutable();
return this;
}
@Override
protected boolean beforeSave(boolean newRecord) {
if(!newRecord && getParent_Org_ID()==get_ID()){
log.saveError("Error", "Parent_Org_ID=AD_Org_ID");
return false;
}
return true;
}
}