Sha256: ac88d06f6e494afe4994a1253d5480f5e069b56d979731baca1719d99085807a

Contents?: true

Size: 715 Bytes

Versions: 236

Compression:

Stored size: 715 Bytes

Contents

module Comee
  module Core
    class BackOrderNotification < Noticed::Base
      deliver_by :database
      deliver_by :email, mailer: "Comee::Core::SupplierMailer", method: :new_order_notification

      param :back_order

      def message
        back_order = params[:back_order]
        title = "New Order Notification"
        date = Date.current
        content = <<~CONTENT
          A new purchase order with the following details has been sent to you:
            order number: #{back_order.order_number}
            order date: #{back_order.order_date}
            delivery date: #{back_order.delivery_date}
        CONTENT
        {title: title, date: date, content: content}
      end
    end
  end
end

Version data entries

236 entries across 236 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.61 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.60 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.59 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.58 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.57 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.56 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.55 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.54 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.53 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.51 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.50 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.49 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.48 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.47 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.46 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.45 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.44 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.43 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.42 app/notifications/comee/core/back_order_notification.rb