This relates to Commodity workflows and is based on conversations with @Jane_Katanu and @Jenny (cc: @philip) and is a potential workaround for How to access parents summary information from an App form?
TL;DR
CHWs receive a Task from their Supervisors that will replenish the CHW’s stock counts when the CHW completes that task. Often, CHW’s have received the physical stock but do not immediately complete the Task, so the app doesn’t know they have this new stock. Then they provide service to a patient and stock levels can go negative in the app because they haven’t received it in the app. One consideration was having some notification at the start of a form if there is a certain type of pending task. Is it possible to prevent a CHW from proceeding in a form if a certain type of task exists?
Need more context?
For the sake of discussion, imagine this hierarchy and a scenario where a CHA has replenished a CHW’s stock of Chlorine tablets, then the CHW visits a household and needs to give them Chlorine tablets.
CHU (Primary Contact = CHA)
→ CHW Area (Primary Contact = CHW)
----> Household
--------> Patient
Current Predicament
CHW
has 0 Chlorine tablets on hand (physically and in the app)CHA
supplies theCHW
with 10 chlorine tablets (physically and by submitting a Commodity Supply form)CHW
receives the physical goods and a Commodity Received task that is intended to update their stock levelCHW
does not complete the task, so they have the physical goods but the app still thinks they have 0CHW
completes a WASH Visit form for the household and tells the app they have provided 5 chlorine tabletsCHW
now has 5 physical chlorine tablets, but the app thinks they have -5
Is it possible at step 5 to notify or prevent the CHW
from proceeding if they have a pending/incomplete Commodity Received task?