earthians / marley

Open Source Health Information System
https://frappehealth.com
GNU General Public License v3.0
304 stars 236 forks source link

fix(patient): error in age calculation (backport #421) #426

Closed mergify[bot] closed 5 months ago

mergify[bot] commented 5 months ago

The age of a patient was being bad calculated: between April 1st of different years, will be only years of difference, however, it is not working like that.

Captura desde 2024-04-01 17-36-35 See that from April 1st of 2019 to now, April 1st of 2024 there are just 5 years of difference.

Now, using moment library, that is already installed, the age is being well calculated.

Captura desde 2024-04-01 17-37-17


This is an automatic backport of pull request #421 done by Mergify.

mergify[bot] commented 5 months ago

Cherry-pick of 9258c1c3200430b6b7d1c6497b48e5a1aaf3b105 has failed:

On branch mergify/bp/version-15-hotfix/pr-421
Your branch is up to date with 'origin/version-15-hotfix'.

You are currently cherry-picking commit 9258c1c.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
    both modified:   healthcare/healthcare/doctype/patient/patient.js

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally