Repository navigation
@nmi-agro/fdm-core@0.41.0
Minor Changes
-
#993
54cc506Thanks @SvenVw! - Only move an animal to a herd whose category it can become.assignAnimalToHerd,reassignHerdAnimalsandupdateAnimalAssigningnow reject a move to another species, back to a younger age group, or to a category the animal's sex can't reach (for example a red deer stag from 974 back to 973, a water buffalo to the dairy cows, or a bull calf to the heifers). A move in the past and a corrected assignment are also checked against the herd the animal is in after it.reassignHerdAnimalsmoves all animals of a herd or none, and leaves animals that only join the source herd after the reassignment date where they are instead of refusing the whole move.An animal of unknown sex gets the sex of a move or category that only one sex can make or have: a calf that moves to the heifers becomes female, and animals added to a herd of dairy cows by
addAnimal,addAnimalsToHerdorcreateHerdWithAnimalsare female.New exports:
checkAnimalCategoryMoveandgetAnimalSexForCategory, with the typesAnimalCategoryMoveandAnimalSex.
Patch Changes
- Updated dependencies [
54cc506]:- @nmi-agro/fdm-data@0.26.0