Guest User

Untitled

a guest
Aug 19th, 2019
80
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # ESTATE-5761
  2. Receipt.where(receipt_id: /\./i).each do |r|
  3. unit = r.project_unit
  4. if unit.present?
  5. r.set(receipt_id: "#{unit.name.to_s.gsub('.', '')} - #{Time.now.to_i.to_s}")
  6. GenerateReceiptAssetWorker.new.perform(r.id.to_s, r.booking_detail_id.to_s, r.client_id.to_s)
  7. end
  8. end
RAW Paste Data