erp_integration 0.48.0 → 0.49.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c4c24346c137f126254ca4c48a8fba90742b4ce614a5575bf2344c1c02d6463
4
- data.tar.gz: 60a8fd0caaa904d63c0d01dd185b40b36d2c8a1657b1fffb196974d7cdfa2beb
3
+ metadata.gz: 649f6e6df0c9f5fb12d93fd9ffde7a3648cbc364f087e1bcc8ad5ef50c5102ee
4
+ data.tar.gz: 1d47066b1b44fbc008cdbae187004006d06f609dbc795789f4d28b0535dd6a8f
5
5
  SHA512:
6
- metadata.gz: 6e67b11d936ce4b6c71e8f4963ca1ebeff30c82293862002442dc3b8e9eb0a2f42aab96b9507ceabd8931fb8214165e4fd17752012610e16eb21a80e0cbb55d5
7
- data.tar.gz: 2f613253fc2cff3482e23c659c04ee2c5557478fe30d9e668de786220b414d361670c9704de902c220610e0eb4ec531cf3f80205a03d0950d9d4c03f7811583f
6
+ metadata.gz: e2b9ae39b29a56106026a26831d5a4b3879561d61a0a67f27c0f0ae63714c654d54e13a1c7452aeee6511d9c1e0bde012fda5bf5b807e2955e5ed82bb750a5be
7
+ data.tar.gz: e62f04b7837c043593b9afcf2c4f0f8c85e41aa20dbd789e6eba6e3a1759bde2cb84478d131338507c93ca4b3456e82a6d8a8cd92ec58ee212eb02e8e9999851
@@ -29,6 +29,11 @@ module ErpIntegration
29
29
  :ups_saturday_delivery, :warehouse, :warehouse_output, :warehouse_storage, :weight, :weight_digits,
30
30
  :weight_uom, :weight_uom_symbol, :write_date, :write_uid
31
31
 
32
+ # @param warehouse_ids [Array<Integer>, Integer] The warehouse(s) to move the shipment to
33
+ def move_to(*warehouse_ids)
34
+ self.class.adapter.change_warehouse(id, *warehouse_ids)
35
+ end
36
+
32
37
  def split(options)
33
38
  self.class.adapter.split(id, options)
34
39
  end
@@ -8,6 +8,13 @@ module ErpIntegration
8
8
  class CustomerShipment < ApiResource
9
9
  self.model_name = 'stock.shipment.out'
10
10
 
11
+ # Change the warehouse of a CustomerShipment in Fulfil
12
+ #
13
+ # @param id [Integer, String] The ID of the Customer Shipment
14
+ def change_warehouse(id, options)
15
+ client.put("model/stock.shipment.out/#{id}/change_warehouse", options)
16
+ end
17
+
11
18
  # Split a CustomerShipment in Fulfil
12
19
  #
13
20
  # @param id [Integer, String] The ID of the Customer Shipment
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.48.0'
4
+ VERSION = '0.49.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.48.0
4
+ version: 0.49.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: 2024-06-05 00:00:00.000000000 Z
11
+ date: 2024-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport