caboose-cms 0.9.12 → 0.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/caboose/invoice_pdf.rb +0 -15
- data/lib/caboose/version.rb +1 -1
- metadata +2 -3
- data/app/models/caboose/#Untitled-1# +0 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd5c3299de4b2df226ab252fd6692f96f6d14e4a
|
4
|
+
data.tar.gz: 7d68c1f14df8d0eff130de8837687b4433c4b299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 290b12853521bb941918fb8ef86e72b09bb731d1a869929517b8433f0f5af53aaa31fecdb79c1fde9c490365c28a5883be5c386f81e9254a87f827f1e9500be2
|
7
|
+
data.tar.gz: 9786c74786a166a85aef663b970a8285afb9326ebfd61211919632161f531bca6006073fdfb7f9a3c09ff8c21eece139650e7de5747882a59eaa998541434cf9
|
@@ -53,8 +53,6 @@ module Caboose
|
|
53
53
|
|
54
54
|
sc = self.invoice.site.store_config
|
55
55
|
ot = self.invoice.invoice_transactions.where(:transaction_type => InvoiceTransaction::TYPE_AUTHORIZE, :success => true).first
|
56
|
-
|
57
|
-
return unless ot
|
58
56
|
|
59
57
|
case ot.payment_processor
|
60
58
|
when StoreConfig::PAYMENT_PROCESSOR_AUTHNET
|
@@ -86,17 +84,6 @@ module Caboose
|
|
86
84
|
invoice_info = "Invoice Number: #{invoice.invoice_number}\n"
|
87
85
|
invoice_info << "Invoice Date: #{invoice.date_created.strftime('%d %b %Y %H:%M:%S %p')}\n"
|
88
86
|
invoice_info << "Status: #{invoice.status.capitalize}\n"
|
89
|
-
|
90
|
-
if invoice.status == Invoice::STATUS_PENDING
|
91
|
-
s = self.invoice.site
|
92
|
-
sc = self.invoice.site.store_config
|
93
|
-
invoice_info << "\n"
|
94
|
-
invoice_info << "Please mail payments to:\n"
|
95
|
-
invoice_info << "#{s.description}\n"
|
96
|
-
invoice_info << "#{sc.origin_address1}\n"
|
97
|
-
invoice_info << "#{sc.origin_address2}\n"
|
98
|
-
invoice_info << "#{sc.origin_city}, " << "#{sc.origin_state} " << "#{sc.origin_zip}\n"
|
99
|
-
end
|
100
87
|
|
101
88
|
tbl = []
|
102
89
|
tbl << [
|
@@ -108,7 +95,6 @@ module Caboose
|
|
108
95
|
|
109
96
|
|
110
97
|
def customer_info
|
111
|
-
return if self.invoice.status == Invoice::STATUS_PENDING
|
112
98
|
|
113
99
|
c = invoice.customer
|
114
100
|
|
@@ -271,7 +257,6 @@ module Caboose
|
|
271
257
|
end
|
272
258
|
|
273
259
|
def payment_info
|
274
|
-
return if self.invoice.status == Invoice::STATUS_PENDING
|
275
260
|
|
276
261
|
trans = invoice.invoice_transactions.where(:transaction_type => InvoiceTransaction::TYPE_AUTHORIZE, :success => true).first
|
277
262
|
tbl = []
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -839,7 +839,6 @@ files:
|
|
839
839
|
- app/mailers/caboose/caboose_mailer.rb
|
840
840
|
- app/mailers/caboose/invoices_mailer.rb
|
841
841
|
- app/mailers/caboose/login_mailer.rb
|
842
|
-
- app/models/caboose/#Untitled-1#
|
843
842
|
- app/models/caboose/ab_option.rb
|
844
843
|
- app/models/caboose/ab_testing.rb
|
845
844
|
- app/models/caboose/ab_value.rb
|
@@ -1,12 +0,0 @@
|
|
1
|
-
|
2
|
-
x = 0.0
|
3
|
-
invoice.line_items.each do |li|
|
4
|
-
li.verify_unit_price
|
5
|
-
x = x + (li.unit_price * li.quantity) if li.variant.taxable
|
6
|
-
end
|
7
|
-
|
8
|
-
return x * 0.09 if invoice.instore_pickup
|
9
|
-
sa = invoice.shipping_address
|
10
|
-
return 0.00 if sa.nil? || sa.city.nil? || sa.state.nil?
|
11
|
-
return 0.00 if sa.state.downcase != 'al'
|
12
|
-
return (0.09 * x).round(2)
|