sheltermanager / asm3

Animal Shelter Manager
GNU General Public License v3.0
109 stars 67 forks source link

Offset template medical dates on date of birth #93

Closed bobintetley closed 1 year ago

bobintetley commented 7 years ago

At present, when copying template animals the dates assigned to medical, vacc and tests are calculated as:

today + (template required date - template intake)

For puppies and kittens, this is not always the desired behaviour as vaccines and neuter/spay surgeries are done at a certain age.

The option should be available to use a date of birth offset rather than an intake date offset for some vacc, medical and tests. It should be triggered by the word DOB being present in the comments for those items. Where that's the case, the difference should be:

dob + (template required date - template date of birth)

bobintetley commented 7 years ago

This might be a lot simpler and the clue is in the description - use date of birth for any Baby template and use intake date for adults. This makes this fix a lot more trivial (and needs to be documented).

bobintetley commented 7 years ago

Talked to a heavy user of this feature - would break everything for them. As with the original issue, we need a method to indicate that DOB is to be used as an offset. Either on a per item basis (as originally suggested) or per animal/template basis.