4 changed files with 22 additions and 2 deletions
@ -1,5 +1,10 @@ |
|||||||
module DerivedVariables::SalesLogVariables |
module DerivedVariables::SalesLogVariables |
||||||
def set_derived_fields! |
def set_derived_fields! |
||||||
self.ethnic = 17 if ethnic_refused? |
self.ethnic = 17 if ethnic_refused? |
||||||
|
if exdate.present? |
||||||
|
self.exday = exdate.day |
||||||
|
self.exmonth = exdate.month |
||||||
|
self.exyear = exdate.year |
||||||
|
end |
||||||
end |
end |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue