INVENTORY OF ANIMAL ID DEVICES BUSINESS RULES GEO
Jump to navigation
Jump to search
| # | MODULE NAME | OBJECT | ACTION | VALIDATION NAME | VALIDATION DESCRIPTION | VALIDATION CATEGORY | METHOD NAME | CLASS NAME | DUPLICATED IN CLASS |
| 1 | INVENTORY OF ANIMAL ID DEVICES | INVENTORY_ITEM | REGISTRATION | Inventory item belongs to HQ | Checks if non applied inventory item on animal belongs to HQ | Other | inventoryItemCheck | ValidationChecks | Yes |
| 2 | INVENTORY OF ANIMAL ID DEVICES | INVENTORY_ITEM | REGISTRATION/EDIT | Ear tag not belongs to registered animal ID nor in inventory item | Checks if ear tag exists | Other | beforeSaveLabSample | OnSaveValidations | Yes |
| 3 | INVENTORY OF ANIMAL ID DEVICES | INVENTORY_ITEM | EDIT | Applied ear tag number can’t be edited | Checks if ear tag number is applied and edited | Other | beforeSave | OnSaveValidations | Yes |
| 4 | INVENTORY OF ANIMAL ID DEVICES | INVENTORY_ITEM | MOVEMENT/S | Animal must have valid inventory item to be moved | Checks if animal has inventory item valid | Other | isInventoryItemCheckBlocked | ValidationChecks | No |
| 5 | INVENTORY OF ANIMAL ID DEVICES | ORDER | REGISTRATION/EDIT | Order must have order number value | Checks if order number is 0/empty/null for order | Mandatory fields | beforeSave | OnSaveValidations | Yes |
| 6 | INVENTORY OF ANIMAL ID DEVICES | ORDER | EDIT | Status can’t be changed on order with status released | Checks if status is changed to order with status released | Other | beforeSave | OnSaveValidations | Yes |
| 7 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION/EDIT | Transfer quantity must be entered for flocks | Checks if quantity is null | Mandatory fields | rangeValidationSet | ValidationChecks | Yes |
| 8 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION | End tag ID must be bigger than start tag ID | Checks if end tag ID is smaller than start tag ID | Other | rangeValidationSet | ValidationChecks | Yes |
| 9 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION | Direct transfer – transfer exists in inventory item | Checks if all ear tags in transfer, exists in inventory items | Other | checkIfEarTagRangeInTransferExistsInInventoryItem | ValidationChecks | No |
| 10 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION/EDIT | Transfer can’t be deleted due to status released | Checks if status of the transfer is released | Other | getOrderTransferStatusPerRange | ValidationChecks | No |
| 11 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION/EDIT | Transfer fields (tag type, start tag, end tag) can’t be edited | Checks if transfer fields (tag type, start tag, end tag) are updated | Other | compareDbObjectFields | ValidationChecks | No |
| 12 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | EDIT | Transfer with status released can’t be edited | Checks if transfer with status released is edited | Other | rangeValidationSet | ValidationChecks | Yes |
| 13 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER | REGISTRATION/EDIT | Transfer must have type | Checks if transfer has type | Other | rangeValidationSet | ValidationChecks | Yes |
| 14 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER/RANGE | REGISTRATION/EDIT | Transfer/Range order status is already released | Checks if order status is released or canceled | Other | rangeValidationSet | ValidationChecks | Yes |
| 15 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER/RANGE | REGISTRATION/EDIT | Range quantity can’t be 0/null/empty | Checks if quantity info is null | Mandatory fields | rangeValidationSet | ValidationChecks | Yes |
| 16 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER/RANGE | REGISTRATION/EDIT | Range must have start/end tag ID | Checks if start/end tag ID is null | Mandatory fields | rangeValidationSet | ValidationChecks | Yes |
| 17 | INVENTORY OF ANIMAL ID DEVICES | TRANSFER/RANGE | REGISTRATION | Range overlapping for transfer | Check if range is overlapping | Other | checkIfRangeCanBeSaved | ValidationChecks | No |
| 18 | INVENTORY OF ANIMAL ID DEVICES | RANGE | Tags must appear in org units | Checks if tag are in org units | Other | checkIfAllItemsInTransferRangeBelongToOrgUnit | ApplicationServices | Yes (ApplicationServices) | |
| 19 | INVENTORY OF ANIMAL ID DEVICES | RANGE | TRANSFER | Range overlapping for transfer | Checks if range is overlapping | Other | checkIfTransferIsOverlapping | MassActions | No |
| 20 | INVENTORY OF ANIMAL ID DEVICES | SPOT_CHECK | REGISTRATION/EDIT | Registration date can’t be in the future | Checks if registration date is in future | Dates | checkIfDateIsInFuture | ValidationChecks | Yes |
| 21 | INVENTORY OF ANIMAL ID DEVICES | SPOT_CHECK | REGISTRATION/EDIT | Subject with same spot | Checks if subject with same spot already exists | Other | checkIfSameCheckSubjectIsShowingMoreThanOnceOnSameDateInHolding | ValidationChecks | No |
| 22 | INVENTORY OF ANIMAL ID DEVICES | EAR_TAG_REPLACEMENT | REGISTRATION/EDIT | New tag can’t be the same as old one | Checks if new tag is equal as old tag | Other | beforeSave | OnSaveValidations | Yes |
| 23 | INVENTORY OF ANIMAL ID DEVICES | SVAROG_ORG_UNITS | REGISTRATION/EDIT | Svarog org unit name must be unque | Checks if name is unique | Uniqueness | checkIfFieldIsUniquecheckIfFieldIsUnique | ValidationChecks | Yes |
| 24 | INVENTORY OF ANIMAL ID DEVICES | SUPPLY | REGISTRATION/EDIT | Supplier can’t be added after the order has been released | Checks if supplier is added and status of order is not released | Other | beforeSave | OnSaveValidations | Yes |
| 25 | INVENTORY OF ANIMAL ID DEVICES | ANIMAL | REGISTRATION/EDIT | Inventory item applied on animal | Checks if animal has applied inventory item | Other | isInventoryItemCheckBlocked | Writer | No |