Hello i am hoping someone can give me some advice and point me in the correct direction.
we have a vendors module where our delivery company's are stored as vendors, that has a subform in it that contains Zone charge rates.
There are about 10 different rates for each delivery company. so we have set up a sub from in the vendors module that has zone 1 zone 2 etc as the first column value, and then a value in the associated row for that zone. the delivery agent (Carrier) and the zone for a customer (account) is chosen in the accounts module and set in a field called carrier and a field called Zone (so for instance customer 1 can have a carrier of Orions and a zone of zone 1 and customer 2 can have a carrier of Smiths and a zone of zone 2.
what i want to do is pull the value of the zone from the sub form if the carrier is Orions, and use this in another module (Sales Orders) I'm having trouble working out the code for a function that queries the sub form of the Orions delivery company looking for the value of zone 1 and then passes that to a field in the sales order when it is created.
can anyone help please?