Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status of Ibu intermittent between 'delivered' and 'EDD Passed' #32

Open
rizkisunaryo opened this issue Feb 12, 2019 · 0 comments
Open

Comments

@rizkisunaryo
Copy link
Contributor

First time login, and first time sync, sometimes we will find that status of Ibu that already delivered to be 'EDD Passed'. But this is intermittent.

rizkisunaryo added a commit that referenced this issue Feb 12, 2019
Previously, the code was always to setText.

Now, I change the code to save the string to a variable first.
Then it will setText at the end.

#32
rizkisunaryo added a commit that referenced this issue Feb 18, 2019
**The Cause**

1. Client (the application) does:
- ANC: event date: 15 Feb 2019
- Dokumentasi Persalinan: event date: 15 Feb 2019

2. Sync (upload):
ANC and Dokumentasi Persalinan (delivery document) will be sent, and the server will add the same time for dateCreated. Because it's a bulky transaction.

3. Sync (download), sometimes like this:
Dokumentasi Persalinan data is above ANC. Because the date is the same, so no order (sorted by), and the data can be flipped.
While in the client (application), Dokumentasi Persalinan is processed first, then ANC.
That's why the status is still ANC (EDD Passed).

**The Fix**

When there are both ANC and Dokumentasi Persalinan, with actually it's a sequence, so the status should be Dokumentasi Persalinan (delivered).

#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant