Difference between revisions of "SLAUGHTERHOUSE BUSINESS RULES"

From NAITS
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |'''OBJECT''' |'''ACTION''' |'''VALIDATION NAME''' |'''VALIDATION DESCRIPTION''' |'''VALIDATION CATEGORY''' |'''METHOD NAME''' |'''CLASS NAME''' |'''DUPLI...")
 
Line 1: Line 1:
{| class="wikitable"
{| class="wikitable" style="text-align: center;
|'''OBJECT'''
|'''OBJECT'''
|'''ACTION'''
|'''ACTION'''

Revision as of 06:49, 3 December 2021

OBJECT ACTION VALIDATION NAME VALIDATION DESCRIPTION VALIDATION CATEGORY METHOD NAME CLASS NAME DUPLICATED IN CLASS
ANIMAL GENERATE_PREMORTEM Animal must have status different than premortem Checks if animal has premortem status Other checkIfAnimalOrFlockHasAlreadyValidPreMortem MassActions No
ANIMAL GENERATE_PREMORTEM Animal must not have blocking diseases in premortem Checks if animal has blocking diseases in premortem Other checkIfAnimalHasBlockingDiseaseInPremortemForm MassActions No
ANIMAL GENERATE_PREMORTEM Animal with active withdrawal period and premortem form can’t be generated Checks if animal has withdrawal period before generated premortem form Other checkIfAnimalHasAnyActiveVaccEventForSpecificDisease MassActions Yes
ANIMAL SLAUGHTERED Animal with active withdrawal period and premortem form can’t be slaughetered Checks if animal has withdrawal period before it’s slaugheterd Other checkIfAnimalHasAnyActiveVaccEventForSpecificDisease MassActions Yes
ANIMAL SLAUGHTERED Animal must not have campaign with specific disease before slaughter Checks if animal has campaign with specific disease Other checkIfAnimalHasAnyActiveVaccEventForSpecificDisease MassActions Yes
ANIMAL DESTROY Animal with active withdrawal period can’t be destroyed Checks if animal has withdrawal period before it’s destoroyed Other checkIfAnimalHasAnyActiveVaccEventForSpecificDisease MassActions Yes
RPE_SLAUGHT_FORM REGISTRATION/EDIT Premortem form is allowed for animals/flock with premortem status Checks if animal/flock has premortem status Other beforeSave OnSaveValidations Yes
PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock with status postmortem is slaughetred Checks if animal/flock is already slaughtered Other beforeSave OnSaveValidations Yes
PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock already have premortem form Checks if animal/flock already has valid premortem form Other checkIfAnimalOrFlockHasAlreadyValidPreMortem ValidationChecks Yes
PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock has blocking disease Check if animal/flock has blocking disease Other checkIfAnimalHasBlockingDiseaseInPremortemForm ValidationChecks No
PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal has premortem form with appropriate disease Check if animal/flock has appropriate disease in premortem form Other checkIfAnimalHasAppropriateDiseaseInPreOrPostSlaughtForm ValidationChecks Yes
POST_SLAUGHT_FORM REGISTRATION/EDIT Beehives can’t have postmortem form Check if flock is slaughterable Other isFlockSlaughterable ValidationChecks Yes
POST_SLAUGHT_FORM REGISTRATION Animal/flock has postmortem status Checks if animal/flock has postmortem status Other beforeSave OnSaveValidations Yes
POST_SLAUGHT_FORM REGISTRATION Manufacture date before slaughter date Check if manufacture date is before slaughter date Dates beforeSave OnSaveValidations Yes
POST_SLAUGHT_FORM EDIT Slaughter date can’t be edited Checks if slaughter date is edited Othher beforeSave OnSaveValidations Yes
POST_SLAUGHT_FORM EDIT Animal/flock must have postmortem status when editing post_slaugt_form Checks if animal/flock has postmortem status Other checkIfAnimalOrFlockHaveStatusPostMortem ValidationChecks No
POST_SLAUGHT_FORM REGISTRATION/EDIT Animal has postmortem form with appropriate disease Check if animal/flock has appropriate disease in postmortem form Other checkIfAnimalHasAppropriateDiseaseInPreOrPostSlaughtForm ValidationChecks Yes