say i am ordering (2) $50.00 items and (2) $100.00 items on a purchase order.
2 x 50.00 = 100.00 2 x 100.00 = 200.00 total = 300.00The shipping charge for the order is $15.00. I want to take that shipping charge and add it to the cost of the items by dividing it between them as follows:
the two $50.00 items account for 1/3 of the total cost before shipping, so $5.00 of the shipping will get allocated wo the 50.00 items.
100.00 + 5.00 = 105.00 divided by 2 = 52.50. so the new unit cost is $52.50 apply the remaining $10.00 shipping charges to the other item the same way.is there any way i can automate this using the savepurchaseorder hook? Is there a session class that will allow me to read/write any of this information on the header tab and the contents tab of the purchase order, and if so what is the class name?
I looked in the CG and couldn't find anything there
Thank you, Kevin