Last active
August 15, 2017 11:31
-
-
Save avidas/01d683b6fe895ed0b2b4b423ef5783c0 to your computer and use it in GitHub Desktop.
Cancel Move In for Finalized SD Invoice Reservations https://jira.we.co/browse/REVENG-121
This file contains hidden or 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
# JIRA: REVENG-121 | |
# cancel move in for Office 16-116 in Tower 49 for Gimbal EUAETK | |
begin | |
Rails.logger.info "JIRA REVENG-121 starting to cancel move in for Office 16-116 in Tower 49 for Gimbal EUAETK" | |
TenantService.switch_to_rest_of_world_tenant | |
pr = PrimaryReservation.find(600203682) | |
pr.canceled_at = DateTime.new(2017,9,1) | |
pr.save! | |
Rails.logger.info "JIRA REVENG-121 done canceling move in for Office 16-116 in Tower 49 for Gimbal EUAETK " | |
end |
๐
@avidas any reason not to call cancel! on that reservation?
๐ as long as all things associated have already been canceled/refunded by billing or community
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Splitting up https://gist.github.com/avidas/a3d454a33ff3e1446aae50ee9c800926 into two scripts.