fix received_invoices save without invoice lines