Sales invoice with Purchase Category nominal code

Glenn’s suggestion is pretty much what was suggested to me in a similar situation, where I wanted to include a commission payment on a sales invoice.