github nmi-agro/fdm @nmi-agro/fdm-core@0.41.0

latest releases: @nmi-agro/fdm-storage@0.1.0, @nmi-agro/fdm-rvo@0.7.1, @nmi-agro/fdm-reports@0.1.2...
24 minutes ago

Minor Changes

  • #993 54cc506 Thanks @SvenVw! - Only move an animal to a herd whose category it can become. assignAnimalToHerd, reassignHerdAnimals and updateAnimalAssigning now 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. reassignHerdAnimals moves 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, addAnimalsToHerd or createHerdWithAnimals are female.

    New exports: checkAnimalCategoryMove and getAnimalSexForCategory, with the types AnimalCategoryMove and AnimalSex.

Patch Changes

  • Updated dependencies [54cc506]:
    • @nmi-agro/fdm-data@0.26.0

Don't miss a new fdm release

NewReleases is sending notifications on new releases.