Skip to content

Commit

Permalink
set Q647 to final version
Browse files Browse the repository at this point in the history
  • Loading branch information
kgudel committed Sep 4, 2024
1 parent 0df177d commit e221b78
Showing 1 changed file with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ import hmda.validation.dsl.PredicateCommon._
import hmda.validation.dsl.PredicateHmda._
import hmda.validation.dsl.PredicateSyntax._

object Q647 extends EditCheck[LoanApplicationRegister] {
object Q647 {
def withContext(ctx: ValidationContext): EditCheck[LoanApplicationRegister] = {
IfTsPresentIn(ctx) { new Q647(_) }
}

}

class Q647 private (ts: TransmittalSheet) extends EditCheck[LoanApplicationRegister] {
override def name: String = "Q647"

override def parent: String = "Q647"
override def apply(lar: LoanApplicationRegister): ValidationResult = {
exemptionTaken(lar) is equalTo(false)
when (ts.agency.code not equalTo(7)) {
exemptionTaken(lar) is equalTo(false)
}
}
}

0 comments on commit e221b78

Please sign in to comment.