Freight to be charged to different account based upon variables
I'd like to know how to do it if I want the freight of a sales order to be charged to different GL account codes. The examples would be (1) if the sales order is a cash order, the customer is a person, and the ship-to location is in US, then the freight would be charged to 030.5895.45.000. (2) If the order type is a used equipment, the customer is an organization, and the ship-to location is in US, the freight would be charged to 032.5895.45.000 but (3) if the customer of this used equipment order is outside the US,