I have an erp system with frappe, I made an API endpoints to an app I made on the erp to…
- User
I have an erp system with frappe, I made an API endpoints to an app I made on the erp to make free disburse for the reason of deliverying food or items to beneficiaies. The api has five endipoints
The first is to get token to user by supplying email and password Second is syncing beneficiaries that gets list of beneficiaries with id barcode and list of item each has be delivered in quantity, Third syncing items that return list of items and quantities the user responsble to deliver has in stock for each Forth is starting a disbursement session Final is to sync a disbursement operation to erp by sending beneficiaryid and item id and qunatity delivered and disbursement session this opreation belongs to
i want to build a flutter application that uses this api, The app should be working even if no internet connection is there
The use cases are login .. And start session, and when new session is open the items and beneficiaries data must be up to date, then when there is open session the app allow user to select one of the items he has in stcok then scan barcode of beneficiary .. If the beneficiary has this item and the item stock can supply qunanity beneficiary has to get .. The opreation succed otherwise is beneficiary does not has this item or the item stock is empty or cant be enough it fails
This operation are synced to erp, but the app must work even if network is not available .. Only starting new session that starts session and update beneificaires and item shuold have internet .. But then if internet is there the opreation goes to erp but if no internet the opreation get cached until it's sent to erp
User cannot colse session or logout if there are opreations that are not synced with system
The goal of the app is to make delivery easy and works even in places that has no internet connection if user only got ready before going to the point he has to deliver these items
Sync opreation must be autmatic and user should be able to know how many beneficiaries had their items and how many still .. Items and their left stock that updates after every opreation is mde
- Assistant