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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe4a98dd89d5ffe64e9984a2f474d5d68ce02a45
4
- data.tar.gz: d80c7ea4416f68d30a11ad80e5aa22555fa510da
3
+ metadata.gz: 376115e079468c5d3491790fa4ecf3b3246a50ae
4
+ data.tar.gz: 7fe5bd8bf1858d610165c69dbb5ea607ce43a592
5
5
  SHA512:
6
- metadata.gz: 4c40948325d0ef895a19aaa982343f09e4195ceb220399522a9f2759678394d479a90ef6d5ed4cae1d6c9eea34c415cd94901a74343e386b69138d41d445a051
7
- data.tar.gz: 4d3928148ff0b56537f61eb0e06d0c1441171b0b7ee6b118973272118a69195096785a875ed7cbb007012783304c4a123a1613bdbaf6d26a2d7bc706aea7fb5e
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', note: nil, email: true, skip_buyer_validations: false)
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '4.0.0beta11'.freeze
2
+ VERSION = '4.0.0beta12'.freeze
3
3
  end
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.0beta11
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-23 00:00:00.000000000 Z
11
+ date: 2018-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails