erp_integration 0.44.0 → 0.46.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: 3cdd4ce00f835ca16fc82dc61b1f39ea0d41ad70739d867fe512c3bb10cd2f28
4
- data.tar.gz: 262bbf4aa723cba1050d5f5ba6caf41889027ca06fb76a3b8a2d9169d910c48e
3
+ metadata.gz: cc595a10c50b58e2ed163058d95f658be92b852a4827aab0e30a964ce7960f27
4
+ data.tar.gz: 407b494f39ffd973a2264f9d6b82a2d4c8c0698d9bc74c031c5dc099567da056
5
5
  SHA512:
6
- metadata.gz: fe3b583efdc0992247a5918a746be2f3bb02a324c3b1914b5547dde742838168cd4b9cf6f9a1f7ad1d4bde2ef39f26c40413bb2eb1b9f080ea8e5fea9a58ca9b
7
- data.tar.gz: 926ff526f0a60f52ec52dda46a08b3aa45d954d10911411c3d602d6448ba56e5d9ee012201919b2888057d5cd04f14574653101848a92e83b4e55c77c9c974ba
6
+ metadata.gz: 590eb2725b4212fc60882342466b1d6ddbda4935abd7f745e55648a8cc5bba75a6e975276a7ce63cf9987efb49e8fff4444ac6db507a060d16da26a5656b6059
7
+ data.tar.gz: 7302ae626554c39747c9229c8291b4e08eb429e4a1d17d24792c4f1a85edcdfd4e0deef5af54172512209d79cfa9c60cd99c7eff9aa052f6f117edccc6ace095
@@ -32,5 +32,9 @@ module ErpIntegration
32
32
  def split(options)
33
33
  self.class.adapter.split(id, options)
34
34
  end
35
+
36
+ def mark_as_packed!
37
+ self.class.adapter.mark_as_packed!(id)
38
+ end
35
39
  end
36
40
  end
@@ -15,6 +15,13 @@ module ErpIntegration
15
15
  def split(id, options)
16
16
  client.put("model/stock.shipment.out/#{id}/split", options)
17
17
  end
18
+
19
+ # Mark a CustomerShipment as packed in Fulfil
20
+ #
21
+ # @param id [Integer, String] The ID of the Customer Shipment
22
+ def mark_as_packed!(id)
23
+ client.put("model/stock.shipment.out/#{id}/pack")
24
+ end
18
25
  end
19
26
  end
20
27
  end
@@ -13,7 +13,8 @@ module ErpIntegration
13
13
  :reference, :sales_person, :shipment_amount, :shipment_method,
14
14
  :shipment_returns, :shipment_state, :shipments, :shipping_start_date,
15
15
  :state, :tax_amount, :total_amount, :total_quantity, :total_shipment_cost,
16
- :untaxed_amount, :warehouse, :weight, :weight_uom, :write_date, :write_uid
16
+ :untaxed_amount, :warehouse, :weight, :weight_uom, :write_date, :write_uid,
17
+ :gift_message
17
18
 
18
19
  def cancel
19
20
  self.class.adapter.cancel(id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ErpIntegration
4
- VERSION = '0.44.0'
4
+ VERSION = '0.46.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.44.0
4
+ version: 0.46.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-05-16 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport