* @return идентификатор сущности
*/
@Override
protected void onUpdate(DiscountCard entity, EntityDetails details,
AuditDoc auditDoc, List<AuditDoc> auditDocList) throws ClipsServerException{
DiscountCardDetails d = (DiscountCardDetails) details;
boolean onlyBlock = false;
if (entity.getId() != 0) {
//проверка на только блокирование
DiscountCardDetails dold = entity.getDetails(this);
DiscountCardDetails dnew = d.clone();
if (dold.collaboratorBlockerID == 0 && dnew.collaboratorBlockerID != 0) {
dnew.collaboratorBlockerID = 0;
if (dold.equals(dnew)) {
onlyBlock = true;
}