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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16f9345522d95b1b1ed85338ca228ab81368b1834caeec4250b026c17df75356
|
|
4
|
+
data.tar.gz: 94bd42fea833346ce56401bdaf953886e5675779e9f4c078dd884059627d734e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|