Last active
December 29, 2017 18:34
-
-
Save avidas/82d08afb750e697dadcb5055e43188cf 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 'BJGQA0' | |
pr = account.primary_reservations.active.find_by(description: '9068') | |
ct_start = Date.today.beginning_of_year.next_year # 01/01/2018 | |
ct_duration = 24 | |
CommitmentTermService.new(pr).update(ct_duration, ct_start) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍