working on merged invoices