Hi folks, I am stuck with this problem. Can someone kindly put me on the right track please?
I have a jobs table populated with this form:
Among the data I added a choice for SUPPLIERS (multiple selection allowed) to order goods from, in order to process that job.
I made another screen with a list of suppliers to whom we need to place an order (for all jobs that need goods from that supplier).
Now the tricky part where I’m stuck. When the user clicks the button to indicate that the order to that supplier has been placed, I need to change a flag that indicates that the goods have been ordered in the jobs table. This boolean field only needs to be set to true when an order has been placed for all suppliers listed for that job.
Tables wise, i put the results of the suppliers choice in an array column in the jobs table. The suppliers table has a multiple relation with the supplier array column of the jobs table.
With this structure I can’t find a way to do what I need, but I can’t find a better solution. Any ideas are appreciated!