effective_orders 4.0.0beta11 → 4.0.0beta12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/order.rb +5 -1
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 376115e079468c5d3491790fa4ecf3b3246a50ae
|
4
|
+
data.tar.gz: 7fe5bd8bf1858d610165c69dbb5ea607ce43a592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d23090e89bd8b6d52de083e31960952b3a770d22879acfa38df41996fc55cfd9e70f21b5edad298b7dd25fc034801b02ddcc7666bedd185dd791baebe7a532bb
|
7
|
+
data.tar.gz: a0aff96d9a98967c8a5463a31973535d2f7d0c6cc5910200d5cfc158af5bc1d2d47e9fdaa777914bb7666cebc905a3ee0f1c138f9009f8ce2e5b47b3c8cc2ef1
|
@@ -309,7 +309,7 @@ module Effective
|
|
309
309
|
end
|
310
310
|
|
311
311
|
# Effective::Order.new(items: Product.first, user: User.first).purchase!(email: false)
|
312
|
-
def purchase!(payment: 'none', provider: 'none', card: 'none',
|
312
|
+
def purchase!(payment: 'none', provider: 'none', card: 'none', email: true, skip_buyer_validations: false)
|
313
313
|
return false if purchased?
|
314
314
|
error = nil
|
315
315
|
|
@@ -400,6 +400,10 @@ module Effective
|
|
400
400
|
send_email(:pending_order_invoice_to_buyer, to_param) unless purchased?
|
401
401
|
end
|
402
402
|
|
403
|
+
def skip_qb_sync!
|
404
|
+
defined?(EffectiveQbSync) ? EffectiveQbSync.skip_order!(self) : true
|
405
|
+
end
|
406
|
+
|
403
407
|
protected
|
404
408
|
|
405
409
|
def get_tax_rate
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.0beta12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|