I am new to Adalo. I would like to set an app to calculate the wage of staff. As such, one’s wage should be only seen by himself, i.e. other users are not allowed seeing his wage.
I’m not sure reg. the correctness of you DB setup. I assume “Pending orders” is the table used to calculate wages? Then why there is many-to-many connection with Users collection - how come that one Pending Order can have multiple Users?
As I pointed out, there is many-to-many relation of Pending orders with Users. That’s why you can’t calculate individual wage.
If you have 1:many relation (a pending order belongs only to one User-Worker), then you will be able to isolate its view and have the wage displayed only to this user.
Also, I wonder why did you decide to split Orders and Pending orders. Does the business logic imply that for one Order there could be several jobs delivered?
From what I can see you’ve set up the list of “Orders taken by” incorrectly.
Also, the whole flow is a bit cumbersome, and the buttons in the lists doesn’t always do what you expect to see.
The biggest question though is why did you decide to separate “Create Order” and “Pending Order” collections. If an order can be executed only once (an as I understand this is a transportation of the patient from point A to point B), why would you have 2 separate collections? Such solution may be needed only if you have several “providers” fulfilling one order, which seems not to be the case.