Skip to content

Instantly share code, notes, and snippets.

@avidas
Created December 29, 2017 14:51
Show Gist options
  • Save avidas/43f2fbacec6fd3e2590c4ad749b60b63 to your computer and use it in GitHub Desktop.
Save avidas/43f2fbacec6fd3e2590c4ad749b60b63 to your computer and use it in GitHub Desktop.
begin
TenantService.switch_to_rest_of_world_tenant
account = Account.find_by_short_code 'B1F4AJ'
pr = account.primary_reservations.active.find_by(description: '411')
ct_start = Date.today.beginning_of_year.next_year # 01/01/2018
ct_duration = 12
CommitmentTermService.new(pr).create(ct_duration, ct_start)
end
@edohring
Copy link

👍

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