Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Partial Shipment Check Qty left!
Message
From
11/12/1999 01:11:30
 
 
To
10/12/1999 23:03:46
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00302169
Message ID:
00302184
Views:
25
>For Stardard situation,
>
>
>Orders   (Order_ID, ....)
>    |
>   /|\
>OrdItems (Order_ID, ITEM, QTY, ....)
>    |
>   /|\
>Shipment (SHIP_NO, Order_ID, ITEM, SHIPQTY, ....)
>
>
>

>
>Serval Shipment to Finish this Orders!
>
>How to Calculate the Left QTY (Not send to Shipment for the Orders)?

In systems that I design for this, the OrderItem line has a primary key of its own. There's a Shipment header that ties to the customer but not to an order (a shipment may contain items from several orders), with Ship lines tied to the parent Shipment and the OrderItem that it shipped against (you may have the same item occur multiple times on the same order, or occur multiple times in a shipment from several different orders.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform