app/mailers/purchase_notifier.rb
# Notifies the specified facility staff member if an order is placed including a product
Notifies the specified facility staff member if an order is placed including a product
Notifies the specified facility staff member if an order is placed including a product
def product_order_notification(order_detail, recipient)
    @order = order_detail.order
    @order_detail = OrderDetailPresenter.new(order_detail)
    attach_reservation_ical(order_detail.reservation) if order_detail.reservation.present?
    subject = text("views.purchase_notifier.product_order_notification.subject", product: order_detail.product)
    send_nucore_mail to: recipient, subject: subject, reply_to: @order.created_by_user.email
  end
def product_order_notification ( order_detail , recipient ) @order = order_detail . order @order_detail = OrderDetailPresenter . new ( order_detail ) attach_reservation_ical ( order_detail . reservation ) if order_detail . reservation . present? subject = text ( "views.purchase_notifier.product_order_notification.subject" , product : order_detail . product ) send_nucore_mail to : recipient , subject : subject , reply_to : @order . created_by_user . email end
Notifies the specified facility staff member if an order is placed including a product
Notifies the specified facility staff member if an order is placed including a product
order_detail
<not_specific>
recipient
<not_specific>