adhoustonj
Member
- Local time
- Today, 13:11
- Joined
- Sep 23, 2022
- Messages
- 192
Hello AWF,
Scratching my head with this one. We receive a scheduling file that we import into our database to build the kits on the order, and sometimes the next schedule update will be a revision that modifies the orders. The problem is when there are deviations requested to the part kits, and I will try to explain below.
These are imported where OrderNo/StartLot/EndLot is null to not bring in duplicate orders.
1st schedule:
2nd schedule:
so really I need to go back and match on something to hit on schedule1.row2 -- and essentially cancel the order/say 0 required quantity to filled.
As these part kits are color essential, so for the 50pcs in schedule1, if I had built 49 for that orderLine, now none of those 49 are good, I need 50 for the different part kit.
Now the same thing - but this isn't a line split, it is a color change, so I really need to cancel schedule3.row4 & row5 - and insert the rows again, or update the existing rows with the new color/part kits.
I'm thinking about the inventory allocation to these orders as well.. I was going to do it at the orderLine level, but I am starting to rethink.
My biggest concern is missing an order that is changed, split, and building the wrong thing, or not importing the order at all.
The import process only checks if OrderNo/StartLot/EndLot is null when joining to the OrderLines table.. I can use OrderNo/StartLot WHILE EndLot <> EndLot, and OrderNo/EndLot WHILE StartLot<> StartLot, but I feel like something is going to slip through the cracks.
Any suggestions on how you would approach this?
Scratching my head with this one. We receive a scheduling file that we import into our database to build the kits on the order, and sometimes the next schedule update will be a revision that modifies the orders. The problem is when there are deviations requested to the part kits, and I will try to explain below.
These are imported where OrderNo/StartLot/EndLot is null to not bring in duplicate orders.
1st schedule:
Schedule | Row | AssyDate | PartNum | Color | Qty | OrderNo | StartLot | EndLot |
021_C7.xlsm | 1 | 10/18/2023 | kit1 | White | 19 | 10182 | 701301 | 701319 |
021_C7.xlsm | 2 | 10/18/2023 | kit2 | Green | 50 | 10182 | 701320 | 701369 |
021_C7.xlsm | 3 | 10/18/2023 | kit3 | Gray | 11 | 10182 | 701370 | 701380 |
021_C7.xlsm | 4 | 10/19/2023 | kit3 | Gray | 10 | 10182 | 701381 | 701390 |
021_C7.xlsm | 5 | 10/19/2023 | kit4 | Carbon | 10 | 10182 | 701391 | 701400 |
2nd schedule:
Schedule | Row | Assy Date | PartNum | Color | Qty | OrderNo | StartLot | EndLot | Note |
021_C8.xlsm | 1 | 10/18/2023 | kit1 | White | 19 | 10182 | 701301 | 701319 | |
021_C8.xlsm | 2 | 10/18/2023 | kit5 | Yellow | 21 | 10182 | 701320 | 701340 | changed from part2(Green) and split from one order line of 50 |
021_C8.xlsm | 3 | 10/18/2023 | kit5 | Yellow | 29 | 10182 | 701341 | 701369 | changed from part2(Green) and split from one order line of 50 |
021_C8.xlsm | 4 | 10/18/2023 | kit3 | Gray | 11 | 10182 | 701370 | 701380 | |
021_C8.xlsm | 5 | 10/19/2023 | kit3 | Gray | 10 | 10182 | 701381 | 701390 | |
021_C8.xlsm | 6 | 10/19/2023 | kit4 | Carbon | 10 | 10182 | 701391 | 701400 |
As these part kits are color essential, so for the 50pcs in schedule1, if I had built 49 for that orderLine, now none of those 49 are good, I need 50 for the different part kit.
Source.Name | Row | Assy Date | PartNum | Color | Qty | OrderNo | StartLot | EndLot | Note |
021_C9.xlsm | 1 | 10/18/2023 | kit1 | WHITE | 19 | 10182 | 701301 | 701319 | |
021_C9.xlsm | 2 | 10/18/2023 | kit5 | Yellow | 21 | 10182 | 701320 | 701340 | |
021_C9.xlsm | 3 | 10/18/2023 | kit5 | Yellow | 29 | 10182 | 701341 | 701369 | |
021_C9.xlsm | 4 | 10/18/2023 | kit5 | Yellow | 11 | 10182 | 701370 | 701380 | changed from part3(Gray) to part5(Yellow) |
021_C9.xlsm | 5 | 10/19/2023 | kit5 | Yellow | 10 | 10182 | 701381 | 701390 | changed from part3(Gray) to part5(Yellow) |
021_C9.xlsm | 6 | 10/19/2023 | kit4 | Carbon | 10 | 10182 | 701391 | 701400 |
I'm thinking about the inventory allocation to these orders as well.. I was going to do it at the orderLine level, but I am starting to rethink.
My biggest concern is missing an order that is changed, split, and building the wrong thing, or not importing the order at all.
The import process only checks if OrderNo/StartLot/EndLot is null when joining to the OrderLines table.. I can use OrderNo/StartLot WHILE EndLot <> EndLot, and OrderNo/EndLot WHILE StartLot<> StartLot, but I feel like something is going to slip through the cracks.
Any suggestions on how you would approach this?