I hereby claim:
- I am gtan66 on github.
- I am gtan (https://keybase.io/gtan) on keybase.
- I have a public key whose fingerprint is DAAE 9DA3 95DA B426 0937 8063 F4B0 5EA6 6896 9E16
To claim this, I am signing this object:
| Employee.unscoped.where(email: ["[email protected]", "[email protected]"]).each do |employee| | |
| employee.user_uuid = employee.uuid | |
| employee.deleted_at = nil | |
| employee.save | |
| end |
I hereby claim:
To claim this, I am signing this object:
| export default React.createClass({ | |
| rightButtons() { | |
| return [ | |
| { text: "Close", type: "secondary", callback: this.props.onDismiss } | |
| ]; | |
| }, | |
| componentDidMount() { | |
| JumioClient.setVars({ | |
| authorizationToken: this.props.transactionToken |
| def cancel_future_move_in_with_active_sd_invoice(account_uuid, office_num) | |
| a = Account.find_by(uuid: account_uuid) | |
| pr = a.primary_reservations.all.detect { |r| r.reservable.name == office_num } | |
| sdr = pr.children.where(reservable: Resource.security_deposit).last | |
| sdr.invoices.can_delete.each{|ei| ei.destroy! } | |
| sdr.reload.archive! | |
| ReservationService.new.archive!(pr, nil, true) | |
| pr.reservable.occupancy.refresh | |
| pr.reservable.occupancy.publish_entity(true) |
| invoice = Invoice.find 456040 | |
| account = invoice.account | |
| location = invoice.location | |
| lis = [2422969,2422970,2422973] | |
| changed_lis = lis.map do |l| | |
| li = LineItem.find l | |
| sd = account.security_deposits.where(refunded_at:nil).select{|m| m.occupiable.name == li.occupiable.name }.last | |
| li.occupiable = sd.occupiable |
| batches = [ | |
| {batch_number: 14625, location: "South Station" }, | |
| { batch_number: 14626, location: "Chinatown"}, | |
| { batch_number: 14627, location: "Wonder Bread"}, | |
| { batch_number: 14628, location: "Dupont Circle"}, | |
| { batch_number: 14629, location: "Soho West"}, | |
| { batch_number: 14630, location: "Bryant Park"}, | |
| { batch_number: 14631, location: "Park South"}, | |
| { batch_number: 14632, location: "42nd Street"}, | |
| { batch_number: 14633, location: "FiDi"}, |
| account = Account.find_by(uuid: "4092f3a0-8251-0130-f786-123138068411") | |
| account_admin = User.find_by(email: "[email protected]") | |
| account.account_admin_id = account_admin.id | |
| account.account_admin_uuid = account_admin.uuid | |
| account.save! |
| p = PrimaryReservation.where(account_id: 7442, office_num: "1018") | |
| p.started_on = p.started_on.last_month | |
| p.save | |
| ReservationService.new.move_out!(p, Date.now, "Move Out") | |
| i = p.last.invoices.last | |
| i.without_versioning :destroy | |
| i.versions.each(&:delete) |
| batches = [ | |
| {batch_number: 14625, location: "South Station" }, | |
| { batch_number: 14626, location: "Chinatown"}, | |
| { batch_number: 14627, location: "Wonder Bread"}, | |
| { batch_number: 14628, location: "Dupont Circle"}, | |
| { batch_number: 14629, location: "Soho West"}, | |
| { batch_number: 14630, location: "Bryant Park"}, | |
| { batch_number: 14631, location: "Park South"}, | |
| { batch_number: 14632, location: "42nd Street"}, | |
| { batch_number: 14633, location: "FiDi"}, |
| account = Account.find_by(uuid: "066c4a44-6eaa-4712-9019-198817c4b2bd") | |
| account_admin = User.find_by(email: "[email protected]") | |
| account_admin.uuid = "b5465310-e7a0-0132-3401-1e4f0fde60c1" | |
| account_admin.save! | |
| account.name = "Nothing Forgotten" | |
| account.account_admin_id = account_admin.id | |
| account.account_admin_uuid = account_admin.uuid | |
| account.save! |