spree_invoice 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ Spree::OrderMailer.class_eval do
|
|
2
2
|
|
3
3
|
def confirm_email(order, resend = false)
|
4
4
|
if Spree::Config[:invoice_on_confirm_email]
|
5
|
-
inv_print = Spree::Invoice.
|
5
|
+
inv_print = Spree::Invoice.find_or_create_by_order_id_and_user_id(order.id, order.user_id)
|
6
6
|
attachments["#{inv_print.invoice_number}.pdf"] = {
|
7
7
|
:content => inv_print.generate_pdf,
|
8
8
|
:mime_type => 'application/pdf'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_invoice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-
|
14
|
+
date: 2013-06-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: spree_core
|