Sha256: a1906caecd5cc0884989dbf29c6f9f67889356cb3cd3b4fde6c91d24563a594f

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

class SupplierMailer < ActionMailer::Base

  def invoice_email(invoice)
    @invoice = invoice
    @supplier = @invoice.supplier
    @fee = 0.14
    @delivery = Delivery.find(:all, :conditions => { :order_id => @invoice.order.id, :supplier_id => @invoice.supplier_id})
    mail(:to => @supplier.email, :subject => "Sale on Freshfully.com!", :from => "support@freshfully.com")
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_suppliers-0.0.1 app/mailers/supplier_mailer.rb
spree_suppliers-0.60.3 app/mailers/supplier_mailer.rb