cavscout
Registered User.
- Local time
- Today, 12:05
- Joined
- Mar 13, 2003
- Messages
- 74
I have a series of queries that take in part numbers for stocklength materials, qty and cut size needed. It process a Bill of Materials that tells our shop what to fabricate. I am trying to determine how much stock material to pull from inventory to give to the shop to be cut.
I am able to determine how much material is required for each record (if I need 3 pcs @ 10' from a 20' stick, i'll need 2 sticks from inventory). This would also leave me 10' of usable material.
The trick is looking at multiple records to determine if I can utilize the leftover drop from a previous cut to fill a need on another (ie. if I need 1 pce @ 10' from a 20' stick, and also need 2 pcs at 2' from the same stick I should only need 1 stick). My querie treats this as needing 2 sticks because it doesn't realize there is 10' of leftover drop from the previous cut.
Any ideas out there?
I am able to determine how much material is required for each record (if I need 3 pcs @ 10' from a 20' stick, i'll need 2 sticks from inventory). This would also leave me 10' of usable material.
The trick is looking at multiple records to determine if I can utilize the leftover drop from a previous cut to fill a need on another (ie. if I need 1 pce @ 10' from a 20' stick, and also need 2 pcs at 2' from the same stick I should only need 1 stick). My querie treats this as needing 2 sticks because it doesn't realize there is 10' of leftover drop from the previous cut.
Any ideas out there?