Home > database > Strives for the great god, according to outbound update inventory!!!!!!!!!!
Strives for the great god, according to outbound update inventory!!!!!!!!!!
Time:11-10
Inventory stock list is as follows: Id name sotck batch create_date 1 towel 50 123 2020-06-01 2 towels 22 32 2020-06-02 3 towels 32 56 2020-06-01 4 soap 10 11 2020-06-01 5 soap 52 115 2020-05-20 6 toothbrush 20 November 2020-04-01 7 toothpaste 12 November 2020-06-01
1, with varieties, batch number must be different, creation time could be the same, 2, and now want to according to the outbound data, to update the stock table, if inventory reduce create_date first under the condition of small enough, if same create_date first batch small reduction,