fix get_invoice_type() and template label