I don't know is this is possible.
We have different Sales types: Vans and Trucks, Aftersales and Services, Parts.
Each of these has their own Sales Account.
However when the inventory used on any sale is processed to recognise the COGS cost, it all goes into the 1 COGS account (2710).
Is there a way (other than using department codes) to do the following rule:
SALE TYPE SALE GL COGS GL
Van/truck 2300 2710
Aftersales/Service 2400 2715
Parts 2500 2720