on 05-04-2009 7:30 PM
Greetings:
I have the following scenario:
I have created a UDT that has 3 columns - code, name, price. Client has pre-defined freight cost based on the total weight of the order (example - 5 lbs. = $4.56). UDT.Name = weight, UDT.price = freight charge. Is it possible to put a FMS on the amount field of the Freight Charges window that looks at the total weight of the associated Sales Order and selects the proper price based on weight?
Thanks in advance,
Aaron
NO.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think your UDF is there. There is no way that you can access the form that is not current.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think there is some confusion again. I don't have a UDF created anywhere except on my UDT.
Forget my specific scenario, I can figure out the fields myself. Is it possible to create a FMS on the freight charges screen that pulls information from the sales order you are working with that has not yet been added?
Which form is your active form? This query will only work on the Sales Order main form. You can not run it under query manager directly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That would not be possible even by SDK codding. The fact is: you have to assign price for each item FIRST before you got the document total. How could be possibly predict for the future event?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gordon,
I don't understand your response... The workflow would be (1) add all items to the order (2) drill into the freight and in the amount field (3) run the Formatted Search manually to return the shipping charge associated with the total weight of the order from my UDT table.
Does your response still hold in this scenario? If so can you explain further?
Thanks,
Aaron
Thanks Gordon,
I think it has to do with linking the freight screen to the order screen. Do I need multiple field references to make it work?
SELECT T0.[U_Price} FROM [dbo}.[@FREIGHTCHARGES} T0 , ORDR T1 INNER JOIN RDR3 T2 ON T1.DocEntry = T2.DocEntry WHERE T0.[Name} = $[ORDR.Weight.0}
Note - I had to change the brackets so everything did not become hyperlinks
It would be at the document level (ORDR.Weight)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Aaron,
Are you talking about line level total for each item or for document level?
Thanks,
Gordon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.