limit number of created invoices from template