clintonhealthaccess / chailmis-android

Android Tablet Application for Logistics Management in the DHIS2 Platform
Other
7 stars 6 forks source link

6) "Projected Order Quantity" which should pre-populate the “suggested order quantity” when ordering does not sync correctly from the server and is always displayed as zero #136

Open LakshmiCHAI opened 9 years ago

LakshmiCHAI commented 9 years ago

Severity: High

reneeorser commented 9 years ago

Dependent on 127. When 127 is fixed, 136 should be fixed as well.

chai-lmis commented 9 years ago

projected order quantity is now populated on the app, but not correctly, i am not sure where its pulling the figures from as they do not match what is on the server

chai-lmis commented 9 years ago

figures on the app still do not match the the figures on the server

chai-lmis commented 9 years ago

following the explanation by Job that all "suggested order quantity" is calculated locally on the app and not synced to the server. Routine order: Suggested quantity = MaximumThreshold - SOH

Emergency Order before 15th of the month: Suggested quantity = (MaximumThreshold - SOH)

Emergency Quantity = NumberOfDaysToEndOfMonth/TotalDaysInMonth * MaximumThreshold