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.41 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.40 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.39 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.38 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.37 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.36 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.35 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.34 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.33 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.32 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.31 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.30 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.29 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.28 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.27 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.26 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.25 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.24 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.23 app/notifications/comee/core/back_order_notification.rb
comee_core-0.3.22 app/notifications/comee/core/back_order_notification.rb