-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mid month npt fix for 1095A values (#165)
* updating amount calculations for npt h41/1095A * fixing indendation * fixing variable naming * adding specs to insurance policy * formatting * correcting whitespace * rubocop * cv3 payload specs * rspec for payload * updating spec * updating path * refactor spec * testing spec' * removing spec * removing extra piece * adding h36 updates and specs * fixing spec: * fixing spec name * adding calendar month" * fixing spelling * removing comment * fixing for nil values * adding spec for cv3 constructor * fixing format * rubocop * expanding tests and handling nil values * fixing slcsp value * fixing spec * rubocop fix * removing returning nil and return 0 instead * typo * updating to remove mid month from aptc csr houshold * removing whitespace * moving date functions into separate module * rubocop fix * updating to include uqhp second gpm --------- Signed-off-by: Esme Rubinstein <[email protected]> Co-authored-by: Sai Praveen Gudimetla <[email protected]>
- Loading branch information
1 parent
3212189
commit 1338276
Showing
7 changed files
with
223 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# Helper methods for date-related calculations | ||
module DateHelper | ||
def mid_month_end?(end_on, month) | ||
ends_this_month = end_on.month == month | ||
last_day_of_month = Date.new(end_on.year, month, -1) | ||
(end_on.day != last_day_of_month.day) && ends_this_month | ||
end | ||
|
||
def eom_end?(end_on, month) | ||
ends_this_month = end_on.month == month | ||
last_day_of_month = Date.new(end_on.year, month, -1) | ||
(end_on == last_day_of_month) && ends_this_month | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters