Processing sales invoices and credit notes