Skip to content

Instantly share code, notes, and snippets.

@avidas
Created December 29, 2017 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avidas/e07b8db15c9b8d91510e045d9f691fcf to your computer and use it in GitHub Desktop.
Save avidas/e07b8db15c9b8d91510e045d9f691fcf to your computer and use it in GitHub Desktop.
begin
TenantService.switch_to_rest_of_world_tenant
nbc = Account.find_by_short_code 'A0XA74'
congress_res = nbc.primary_reservations.active.find_by(description: '16104')
ct_start = Date.today.beginning_of_year.next_year # 01/01/2018
ct_duration = 6
CommitmentTermService.new(congress_res).create(ct_duration, ct_start)
end
@ianguffy
Copy link

👍

@edohring
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment