yashovardhan99 / HealersDiary

Healers Diary - an android app for healers to keep track of their patients and help in instant billing. The app is currently in development.
https://play.google.com/store/apps/details?id=com.yashovardhan99.healersdiary&utm_source=github&utm_campaign=github&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1
Apache License 2.0
8 stars 0 forks source link

Healing counter goes inaccurate on deleting patient record #3

Closed yashovardhan99 closed 5 years ago

yashovardhan99 commented 6 years ago

Brief Summary

In MainActivity.java, a collapsing toolbar was added via pull request #1, the toolbar shows a welcome prompt to the user and the no. of healings they have done today and yesterday (separately) for all patients. However, deleting a patient record with existing healing in the mentioned timeframe causes the counters to go wrong.

Expected Behaviour

When a patient record is deleted, the counter should decrement by the no. of healings for that patient in the respective timeframes.

Observed Behaviour

When a patient record is deleted with healings in the specific timeframe (yesterday or today), the counter is subtracting the no. of healings multiple times which makes it inaccurate.

Known temporary fix

On restarting the activity, the counters are restored correctly.

Reference files

yashovardhan99 commented 5 years ago

Seems to be fixed with close of #12