HOLDING BUSINESS RULES

From NAITS
Revision as of 05:15, 3 December 2021 by Naits (talk | contribs)
Jump to navigation Jump to search
MODULE NAME OBJECT ACTION VALIDATION NAME VALIDATION DESCRIPTION VALIDATION CATEGORY METHOD NAME CLASS NAME DUPLICATED IN CLASS
HOLDING HOLDING REGISTRATION Date of creation Checks if registration date is after current date Dates beforeSave OnSaveValidations Yes
HOLDING HOLDING REGISTRATION/EDIT Holding type Checks if holding type is entered Mandatory fields beforeSave OnSaveValidations Yes
HOLDING HOLDING REGISTRATION/EDIT Holding pic Checks if holding has pic Mandatory fields beforeSave OnSaveValidations Yes
HOLDING HOLDING REGISTRATION/EDIT Animal with disease can’t be slaughtered Checks if animal has any disease with valid premortem form Other checkIfAnimalHasAnyDiseaseInPreSlaughtForms ValidationChecks No
HOLDING HOLDING REGISTRATION/EDIT Flock must not have suspicious decision in case of slaughtering Checks if flock has suspicious decision in case of slaughtering Other checkIfFlockHaveNegativeOrSuspiciousDecisionInPreSlaughtForm ValidationChecks No
HOLDING HOLDING REGISTRATION/EDIT Slaughterhouse operator is not allowed to slaughter animal/flocks Other slaughterhouseHoldingValidationSet ValidationChecks Yes
HOLDING HOLDING REGISTRATION/EDIT Only animal/flock with status premortem can be slaughtered Checks if animal/flock with status different than premortem is slaughtered Other slaughterhouseHoldingValidationSet ValidationChecks Yes
HOLDING HOLDING REGISTRATION/EDIT Animal/flock must have valid premortem form in order to be slaughtered Checks if animal /flock has valid premortem form in order of slaughtering Other checkIfAnimalOrFlockHasAlreadyValidPreMortem ValidationChecks Yes
HOLDING HOLDING REGISTRATION/EDIT Animal with disease can’t be slaughtered Checks if animal has any disease with valid premortem form Other checkIfAnimalHasAnyDiseaseInPreSlaughtForms ValidationChecks No
HOLDING HOLDING REGISTRATION/EDIT Flock must not have suspicious decision in case of slaughtering Checks if flock has suspicious decision in case of slaughtering Other checkIfFlockHaveNegativeOrSuspiciousDecisionInPreSlaughtForm ValidationChecks No
HOLDING HOLDING REGISTRATION/EDIT Slaughterhouse operator is not allowed to slaughter animal/flocks Other slaughterhouseHoldingValidationSet ValidationChecks Yes
HOLDING HOLDING STATUS_UPDATE Farm type of holding Checks if holding is farm commercial or farm subsistence Other checkIfHoldingIsCommercialOrSubsistenceFarmType Writer Yes
HOLDING HOLDING_KEEPER (LINK) REGISTRATION/EDIT Legal entity must have associated physical entity Checks if legal entity has associated physical entity Other checkIfLegalEntityKeeperHasAtLeastOnePhysicalEntityAssociatedPerson ValidationChecks Yes
HOLDING HOLDING_HERDER (LINK) REGISTRATION/EDIT Herder mu be physical entity Checks if herder is not physical entity Other beforeSave OnSaveValidations Yes
HOLDING HOLDING_ASSOCIATED (LINK) REGISTRATION/EDIT Associated person must be physical entity Checks if associated person is physical entity Other beforeSave OnSaveValidations Yes
HOLDING HOLDING_ASSOCIATED (LINK) REGISTRATION/EDIT Associated person can’t be removed because of legal keeper Checks if associated person can be removed Other beforeSave OnSaveValidations Yes