diff --git a/jarbas/frontend/elm/Reimbursement/Fields.elm b/jarbas/frontend/elm/Reimbursement/Fields.elm index f8ade7d..6b32e3c 100644 --- a/jarbas/frontend/elm/Reimbursement/Fields.elm +++ b/jarbas/frontend/elm/Reimbursement/Fields.elm @@ -51,14 +51,14 @@ type Label searchableLabels : List ( Label, String ) searchableLabels = - [ ( ApplicantId, "ApplicantId" ) - , ( CnpjCpf, "CnpjCpf" ) - , ( DocumentId, "DocumentId" ) - , ( IssueDateEnd, "IssueDateEnd" ) - , ( IssueDateStart, "IssueDateStart" ) - , ( Month, "Month" ) - , ( SubquotaId, "SubquotaId" ) - , ( Year, "Year" ) + [ ( ApplicantId, "applicantId" ) + , ( CnpjCpf, "cnpjCpf" ) + , ( DocumentId, "documentId" ) + , ( IssueDateEnd, "issueDateEnd" ) + , ( IssueDateStart, "issueDateStart" ) + , ( Month, "month" ) + , ( SubquotaId, "subquotaId" ) + , ( Year, "year" ) ] diff --git a/jarbas/frontend/elm/Reimbursement/Search/Update.elm b/jarbas/frontend/elm/Reimbursement/Search/Update.elm index 1850445..5de81e6 100644 --- a/jarbas/frontend/elm/Reimbursement/Search/Update.elm +++ b/jarbas/frontend/elm/Reimbursement/Search/Update.elm @@ -53,7 +53,7 @@ updateField model label value = fieldMatches field = Fields.getLabel field == label - formatValue value = + formattedValue = if Fields.isNumeric label then String.filter (\c -> Char.isDigit c || c == ' ') value else if label == State then @@ -64,7 +64,7 @@ updateField model label value = String.trim value formatField (Field label value) = - Field label (formatValue value) + Field label formattedValue in model |> updateIf fieldMatches formatField