dscf-marketplace 0.12.0 → 0.12.1

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: b6818b94cd7c2f6c55d5e39da13eee317dbfa3879e17d442be6821a50f993659
4
- data.tar.gz: 840863a3f380843728489b4b6e6518fa0d5bed4cb73a5dd3bddde05f8c525c56
3
+ metadata.gz: 16f9345522d95b1b1ed85338ca228ab81368b1834caeec4250b026c17df75356
4
+ data.tar.gz: 94bd42fea833346ce56401bdaf953886e5675779e9f4c078dd884059627d734e
5
5
  SHA512:
6
- metadata.gz: efa76d0e7f656a6af4de6a2fce5923992872da28135c6a8c723f35717926cd1326aad14a10a5a8ce5ce5961f369f0872fb7d4ef3bdfaff3dc1f83c1b90c5177f
7
- data.tar.gz: d0f773b3303836c0dec8d963bc5397a93846d26a0ba83adc9625800a1c4c2239afec6e8fc25cdb15e9dfa2c8fcca6152ca4e02d7810a66ebc5b5c5af531e6420
6
+ metadata.gz: cbc4c95a471075a7402f3ecf9b0702356f9c938050e9e5b0cf425c67cdddd55afbd6018654b841b6255269c6aca05e4928506944a09cd62c1b16115f31eedd1d
7
+ data.tar.gz: 360443b7f9e82f9337cbae45e5c2344c44ba6f528c05860a5dd8316a8eea537ef9c0a72e7c49f14a0d0d8a1cbf714060215aba47cf3452a68aa31f690360b4ea
@@ -5,7 +5,7 @@ module Dscf
5
5
  :product_id, :unit_id, :quantity, :unit_price,
6
6
  :status, :validation_status, :validation_note, :resolved_unit_price, :resolved_quantity,
7
7
  :source_type, :source_id, :source_name, :created_at, :updated_at,
8
- :subtotal, :product_name, :unit_name, :thumbnail_url, :images_urls,
8
+ :subtotal, :product_name, :product_sku, :unit_name, :thumbnail_url, :images_urls,
9
9
  :supplier_adjusted_unit_price, :supplier_adjusted_quantity, :supplier_adjustment_note
10
10
 
11
11
  belongs_to :order
@@ -14,6 +14,10 @@ module Dscf
14
14
  belongs_to :product
15
15
  belongs_to :unit
16
16
 
17
+ def product_sku
18
+ object.product&.sku
19
+ end
20
+
17
21
  def source_name
18
22
  return nil unless object.source
19
23
  case object.source_type
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Marketplace
3
- VERSION = "0.12.0".freeze
3
+ VERSION = "0.12.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-marketplace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat