Difference between revisions of "SLAUGHTERHOUSE BUSINESS RULES"

From NAITS
Jump to navigation Jump to search
Tag: Manual revert
Line 1: Line 1:
{| class="wikitable" style="text-align: center;
{| class="wikitable" style="text-align: center;
|#
|<span style="color:#00ffff"> '''OBJECT''' <span>
|<span style="color:#00ffff"> '''OBJECT''' <span>
|<span style="color:#00ffff"> '''ACTION''' <span>
|<span style="color:#00ffff"> '''ACTION''' <span>
Line 9: Line 10:
|<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' <span>
|<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' <span>
|-
|-
|1
|ANIMAL
|ANIMAL
|GENERATE_PREMORTEM
|GENERATE_PREMORTEM
Line 18: Line 20:
|No
|No
|-
|-
|2
|ANIMAL
|ANIMAL
|GENERATE_PREMORTEM
|GENERATE_PREMORTEM
Line 27: Line 30:
|No
|No
|-
|-
|3
|ANIMAL
|ANIMAL
|GENERATE_PREMORTEM
|GENERATE_PREMORTEM
Line 36: Line 40:
|Yes
|Yes
|-
|-
|4
|ANIMAL
|ANIMAL
|SLAUGHTERED
|SLAUGHTERED
Line 45: Line 50:
|Yes
|Yes
|-
|-
|5
|ANIMAL
|ANIMAL
|SLAUGHTERED
|SLAUGHTERED
Line 54: Line 60:
|Yes
|Yes
|-
|-
|6
|ANIMAL
|ANIMAL
|DESTROY
|DESTROY
Line 63: Line 70:
|Yes
|Yes
|-
|-
|7
|RPE_SLAUGHT_FORM
|RPE_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 72: Line 80:
|Yes
|Yes
|-
|-
|8
|PRE_SLAUGHT_FORM
|PRE_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 81: Line 90:
|Yes
|Yes
|-
|-
|9
|PRE_SLAUGHT_FORM
|PRE_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 90: Line 100:
|Yes
|Yes
|-
|-
|10
|PRE_SLAUGHT_FORM
|PRE_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 99: Line 110:
|No
|No
|-
|-
|11
|PRE_SLAUGHT_FORM
|PRE_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 108: Line 120:
|Yes
|Yes
|-
|-
|12
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT
Line 117: Line 130:
|Yes
|Yes
|-
|-
|13
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|REGISTRATION
|REGISTRATION
Line 126: Line 140:
|Yes
|Yes
|-
|-
|14
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|REGISTRATION
|REGISTRATION
Line 135: Line 150:
|Yes
|Yes
|-
|-
|15
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|EDIT
|EDIT
Line 144: Line 160:
|Yes
|Yes
|-
|-
|16
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|EDIT
|EDIT
Line 153: Line 170:
|No
|No
|-
|-
|17
|POST_SLAUGHT_FORM
|POST_SLAUGHT_FORM
|REGISTRATION/EDIT
|REGISTRATION/EDIT

Revision as of 07:00, 3 December 2021

# OBJECT ACTION VALIDATION NAME VALIDATION DESCRIPTION VALIDATION CATEGORY METHOD NAME CLASS NAME DUPLICATED IN CLASS
1 ANIMAL GENERATE_PREMORTEM Animal must have status different than premortem Checks if animal has premortem status Other checkIfAnimalOrFlockHasAlreadyValidPreMortem MassActions No
2 ANIMAL GENERATE_PREMORTEM Animal must not have blocking diseases in premortem Checks if animal has blocking diseases in premortem Other checkIfAnimalHasBlockingDiseaseInPremortemForm MassActions No
3 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
4 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
5 ANIMAL SLAUGHTERED Animal must not have campaign with specific disease before slaughter Checks if animal has campaign with specific disease Other checkIfAnimalHasAnyActiveVaccEventForSpecificDisease MassActions Yes
6 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
7 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
8 PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock with status postmortem is slaughetred Checks if animal/flock is already slaughtered Other beforeSave OnSaveValidations Yes
9 PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock already have premortem form Checks if animal/flock already has valid premortem form Other checkIfAnimalOrFlockHasAlreadyValidPreMortem ValidationChecks Yes
10 PRE_SLAUGHT_FORM REGISTRATION/EDIT Animal/flock has blocking disease Check if animal/flock has blocking disease Other checkIfAnimalHasBlockingDiseaseInPremortemForm ValidationChecks No
11 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
12 POST_SLAUGHT_FORM REGISTRATION/EDIT Beehives can’t have postmortem form Check if flock is slaughterable Other isFlockSlaughterable ValidationChecks Yes
13 POST_SLAUGHT_FORM REGISTRATION Animal/flock has postmortem status Checks if animal/flock has postmortem status Other beforeSave OnSaveValidations Yes
14 POST_SLAUGHT_FORM REGISTRATION Manufacture date before slaughter date Check if manufacture date is before slaughter date Dates beforeSave OnSaveValidations Yes
15 POST_SLAUGHT_FORM EDIT Slaughter date can’t be edited Checks if slaughter date is edited Othher beforeSave OnSaveValidations Yes
16 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
17 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