nesting purchases within invoices