I have encountered a business logic problem in ERP. I am working on an erp system and have encountered a problem.
For example, table A has fields.
Id1 cname necklace number 3 iseku 0
What we need to do is to warehouse each quantity of each order to a different serial number to track the trend of each cargo,
Then this field will loop out three rows in the same way on the page and assign them a warehouse picking serial number respectively. when I click the warehouse picking button in the first row, iseku will be updated to 1 to indicate warehouse picking. Then the following two statuses are changed to warehouse picking. then, the two rows below won't be able to get out of the warehouse, and the warehouse picking will reduce the number of other inventory tables, the number 3 here will not be reduced.
To put it bluntly, it is how to mark each number of records in a row separately !! Urgent
Reply to discussion (solution)
Iseku can be counted as 0, 1, 2, 3, 4 ....
Positions of items in circulation
Table A id cname number iseku status time
1 mobile phone 5 warehouse receiving 0 xx
1 mobile phone 2 warehouse picking 1 xx
1 mobile phone 1 warehouse picking 1 xx
1 mobile phone 1 transfer 2 xx
Status = 0 indicates warehouse receiving status. status = 1 indicates warehouse picking.
If there is a transfer, you only need to add a status label to the status
Iseku can be counted as 0, 1, 2, 3, 4 ....
Positions of items in circulation
I think you may not understand my business needs.
Obviously, you still need a table organized by order, and the logistics status is recorded in it.
Your inventory table (table A) only records the inventory quantity.
Okay, the boss has changed the business logic. thank you.