GL Dimensions

Hi how do you on the sales order make the dimensions look at the dimensions attached to the ledger account specified on the order lines and not on the dimensions attched to the item or customer?