module Contabilidade::SubContaPcaspHelper
  def status_subconta_pcasp_label (inativo)
    if inativo
      style = "danger"
      status = "inativo"
    else
      style = "success"
      status = "ativo"
    end
    text = status.try(:upcase)
    bs_label(text, style)
  end
end