Created
December 29, 2017 17:47
-
-
Save avidas/d52de68541843d1d5c58ffc6cead714f to your computer and use it in GitHub Desktop.
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
begin | |
TenantService.switch_to_rest_of_world_tenant | |
account = Account.find_by_short_code '7MY9PT' | |
primary_reservations = account.primary_reservations.active.where(description: ['2132', '2133', '2134', '2135', '2137']) | |
# Set commitment terms | |
start_date = Date.today.next_month.beginning_of_year | |
months = 6 | |
primary_reservations.map{|res| CommitmentTermService.new(res).create(months, start_date) } | |
end |
👍
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Digital ops will add the discount mentioned on the ticket