If you want to record the material cost of goods sold during invoicing, you must select the correct inventory account as the offset account for the expense account, for each product group and customer group.