addActionError("Description cannot be empty");
}
if(hasErrors()){
return INPUT;
}
LogInformation log = new LogInformation();
if(getPo().getId() != null){
if(getPo().getId().equalsIgnoreCase("")){
log.setCreateBy(session.getCurrentUser().getId());
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
} else {
log = getPo().getLogInformation();
}
} else {
log.setCreateBy(session.getCurrentUser().getId());
log.setCreateDate(new Timestamp(System.currentTimeMillis()));
}
log.setActiveFlag(LogInformation.ACTIVE);
log.setLastUpdateBy(session.getCurrentUser().getId());
log.setLastUpdateDate(new Timestamp(System.currentTimeMillis()));
BusinessPartner bp = new BusinessPartner();
if(!getBpId().equalsIgnoreCase("")){
bp = (BusinessPartner) manager.getById(BusinessPartner.class, getBpId());
} else {