support for invoice type in url and default invoice type in settings
removed reference to pid
InvoiceMetaBox wp-twinfield component.