Freight in Receipt of Entry

Hello,

When entering an invoice through receipt of entry, the freight is added on the last page. The freight is currently set up to expense to a freight gl account. How can I make it so that the freight is allocated based on the jobs lines?