Difference between revisions of "SLAUGHTERHOUSE BUSINESS RULES"
Jump to navigation
Jump to search
| Line 10: | Line 10: | ||
|<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' <span> | |<span style="color:#00ffff"> '''DUPLICATED IN CLASS''' <span> | ||
|- | |- | ||
|1 | |'''1''' | ||
|ANIMAL | |ANIMAL | ||
|GENERATE_PREMORTEM | |GENERATE_PREMORTEM | ||
| Line 20: | Line 20: | ||
|No | |No | ||
|- | |- | ||
|2 | |'''2''' | ||
|ANIMAL | |ANIMAL | ||
|GENERATE_PREMORTEM | |GENERATE_PREMORTEM | ||
| Line 30: | Line 30: | ||
|No | |No | ||
|- | |- | ||
|3 | |'''3''' | ||
|ANIMAL | |ANIMAL | ||
|GENERATE_PREMORTEM | |GENERATE_PREMORTEM | ||
| Line 40: | Line 40: | ||
|Yes | |Yes | ||
|- | |- | ||
|4 | |'''4''' | ||
|ANIMAL | |ANIMAL | ||
|SLAUGHTERED | |SLAUGHTERED | ||
| Line 50: | Line 50: | ||
|Yes | |Yes | ||
|- | |- | ||
|5 | |'''5''' | ||
|ANIMAL | |ANIMAL | ||
|SLAUGHTERED | |SLAUGHTERED | ||
| Line 60: | Line 60: | ||
|Yes | |Yes | ||
|- | |- | ||
|6 | |'''6''' | ||
|ANIMAL | |ANIMAL | ||
|DESTROY | |DESTROY | ||
| Line 70: | Line 70: | ||
|Yes | |Yes | ||
|- | |- | ||
|7 | |'''7''' | ||
|RPE_SLAUGHT_FORM | |RPE_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 80: | Line 80: | ||
|Yes | |Yes | ||
|- | |- | ||
|8 | |'''8''' | ||
|PRE_SLAUGHT_FORM | |PRE_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 90: | Line 90: | ||
|Yes | |Yes | ||
|- | |- | ||
|9 | |'''9''' | ||
|PRE_SLAUGHT_FORM | |PRE_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 100: | Line 100: | ||
|Yes | |Yes | ||
|- | |- | ||
|10 | |'''10''' | ||
|PRE_SLAUGHT_FORM | |PRE_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 110: | Line 110: | ||
|No | |No | ||
|- | |- | ||
|11 | |'''11''' | ||
|PRE_SLAUGHT_FORM | |PRE_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 120: | Line 120: | ||
|Yes | |Yes | ||
|- | |- | ||
|12 | |'''12''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
| Line 130: | Line 130: | ||
|Yes | |Yes | ||
|- | |- | ||
|13 | |'''13''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|REGISTRATION | |REGISTRATION | ||
| Line 140: | Line 140: | ||
|Yes | |Yes | ||
|- | |- | ||
|14 | |'''14''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|REGISTRATION | |REGISTRATION | ||
| Line 150: | Line 150: | ||
|Yes | |Yes | ||
|- | |- | ||
|15 | |'''15''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|EDIT | |EDIT | ||
| Line 160: | Line 160: | ||
|Yes | |Yes | ||
|- | |- | ||
|16 | |'''16''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|EDIT | |EDIT | ||
| Line 170: | Line 170: | ||
|No | |No | ||
|- | |- | ||
|17 | |'''17''' | ||
|POST_SLAUGHT_FORM | |POST_SLAUGHT_FORM | ||
|REGISTRATION/EDIT | |REGISTRATION/EDIT | ||
Revision as of 07:01, 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 |