erp_integration 0.28.1 → 0.30.0

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
  SHA256:
3
- metadata.gz: 578ad2b73d9cb9cf8908a0a69e53eb4bb01be7440e0a470b9b5eae9df6cae763
4
- data.tar.gz: 6e27840b07094204be531330b5cfb2b49a0cbe504c847069ae57b0f5fb37cdc3
3
+ metadata.gz: ee536deb4a7a1ac0f90973a12a58fce819c118a61ccd5b99d6b9002babbb96d0
4
+ data.tar.gz: 36784a503e0fe9a042641b4e7c3ea046a2c888f6c2f395cc4a006753cf9224ed
5
5
  SHA512:
6
- metadata.gz: 4b10ad0ee4fb41a9ec6822b7f8555707ae53897998016af4db54aabbfdaa86e5abfb0fd616e1bd2d3dccf1d61862bd853ad272754b4328c143c04ab940c757ec
7
- data.tar.gz: 9714c5de0b2d6a6472bbc270e537cd606b4540ac3ccef445e9726c8ede862a252b8c65381f1253807078cade47e70f8fdadb4a45cbf4aa11d2bb81c42ed71b2e
6
+ metadata.gz: 4be3be5809f375fb56b0321d0aa40493d60f77f1a0c54cb8c2a63c52bd39638595cdd9d32ec81f2506a6c3834781bf4a979d890e6006a5f01ccb5e52677a2f23
7
+ data.tar.gz: 0dceb468b99e51a82acc7282cd51d4f4ec37034ee1140ad353e7df7c4993c6a84c7245662f3d513667d6344d2821d9743a4ba74f5e8e929804b4d63ee4e68297
@@ -120,8 +120,6 @@ module ErpIntegration
120
120
  # @param options [Hash] The attributes needed for the return.
121
121
  def return!(id, options)
122
122
  client.put("model/sale.sale/#{id}/return_order", options)
123
- rescue ErpIntegration::HttpError::BadRequest
124
- false
125
123
  end
126
124
  end
127
125
  end
@@ -34,5 +34,9 @@ module ErpIntegration
34
34
  def process
35
35
  self.class.adapter.process(id)
36
36
  end
37
+
38
+ def shipped?
39
+ state == 'done'
40
+ end
37
41
  end
38
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.28.1'
4
+ VERSION = '0.30.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.1
4
+ version: 0.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Vermaas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-28 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
342
342
  - !ruby/object:Gem::Version
343
343
  version: '0'
344
344
  requirements: []
345
- rubygems_version: 3.2.22
345
+ rubygems_version: 3.3.7
346
346
  signing_key:
347
347
  specification_version: 4
348
348
  summary: Connects Mejuri with third-party ERP vendors