HOLDING BUSINESS RULES
Jump to navigation
Jump to search
| # | MODULE NAME | OBJECT | ACTION | VALIDATION NAME | VALIDATION DESCRIPTION | VALIDATION CATEGORY | METHOD NAME | CLASS NAME | DUPLICATED IN CLASS |
| 1 | HOLDING | HOLDING | REGISTRATION | Date of creation | Checks if registration date is after current date | Dates | beforeSave | OnSaveValidations | Yes |
| 2 | HOLDING | HOLDING | REGISTRATION/EDIT | Holding type | Checks if holding type is entered | Mandatory fields | beforeSave | OnSaveValidations | Yes |
| 3 | HOLDING | HOLDING | REGISTRATION/EDIT | Holding pic | Checks if holding has pic | Mandatory fields | beforeSave | OnSaveValidations | Yes |
| 4 | 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 |
| 5 | 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 |
| 6 | HOLDING | HOLDING | REGISTRATION/EDIT | Slaughterhouse operator is not allowed to slaughter animal/flocks | Other | slaughterhouseHoldingValidationSet | ValidationChecks | Yes | |
| 7 | 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 |
| 8 | 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 |
| 9 | 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 |
| 10 | 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 |
| 11 | HOLDING | HOLDING | REGISTRATION/EDIT | Slaughterhouse operator is not allowed to slaughter animal/flocks | Other | slaughterhouseHoldingValidationSet | ValidationChecks | Yes | |
| 12 | HOLDING | HOLDING | STATUS_UPDATE | Farm type of holding | Checks if holding is farm commercial or farm subsistence | Other | checkIfHoldingIsCommercialOrSubsistenceFarmType | Writer | Yes |
| 13 | 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 |
| 14 | HOLDING | HOLDING_HERDER (LINK) | REGISTRATION/EDIT | Herder mu be physical entity | Checks if herder is not physical entity | Other | beforeSave | OnSaveValidations | Yes |
| 15 | HOLDING | HOLDING_ASSOCIATED (LINK) | REGISTRATION/EDIT | Associated person must be physical entity | Checks if associated person is physical entity | Other | beforeSave | OnSaveValidations | Yes |
| 16 | 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 |