dscf-marketplace 0.3.5 → 0.3.7

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: ed0561954d684647c338a26994cf4b58d0671024866a05dfa897352e4e827e65
4
- data.tar.gz: b959f769320523fdadcdb69e58664b9879fed6ec36b563b8155363ec0cb5856e
3
+ metadata.gz: a7be6498573d6c61c1f3b8f589f0aff53d53c132a67939d80e7faf73117bf021
4
+ data.tar.gz: 960b9d8be09c2a6e9d6b54412a9be9da1e04867fccc9d82d2df8ce2ec2aa0520
5
5
  SHA512:
6
- metadata.gz: 8fbb075febd4bbbec9813858f235ad9b8be64d9e2df0a1adc16fdab225dc96295e4201d5d72d73e6fc18373e66341d075b42e3a026a819b850a6a3476d52466f
7
- data.tar.gz: 247a76932d2cf383f5b3d6767899f2c96e5908f88198b50f041c31bd9cdbce81de49f1da2d3517947c8f348a3a5c56618832f04cd7b467e21653c4acef9f17b7
6
+ metadata.gz: 43f00f107f3bd87ddedcdb8510e9db2b7d5f880bfdc097341ed6d1f0485b197864d2242ce54d452b1e9bec11bab029907aa61ce921f5e0c81ebb53ee1913b234
7
+ data.tar.gz: 6ac93de835319baca428a922339b72cb42c1a4024093da43ba90f44cd2ebbb1d970651ba79984e5779d81e228622247810545fbbf3d0077e07840b4357fe5e2f
@@ -78,7 +78,7 @@ module Dscf
78
78
 
79
79
  def default_serializer_includes
80
80
  {
81
- index: [ :business, :supplier_product ],
81
+ index: [ :business, supplier_product: [ :product ] ],
82
82
  show: [ :business, :supplier_product, :order_items ],
83
83
  create: [ :business, :supplier_product ],
84
84
  update: [ :business, :supplier_product ]
@@ -85,6 +85,10 @@ module Dscf
85
85
  update: [ :user, :ordered_by, :ordered_to, :quotation, :listing, :order_items ]
86
86
  }
87
87
  end
88
+
89
+ def find_record
90
+ Dscf::Marketplace::Order.find(params[:id])
91
+ end
88
92
  end
89
93
  end
90
94
  end
@@ -37,7 +37,7 @@ module Dscf::Marketplace
37
37
 
38
38
  order = create!(
39
39
  order_type: :rfq_based,
40
- status: :pending,
40
+ status: :processing,
41
41
  quotation: quotation,
42
42
  user: quotation.request_for_quotation.user, # Keep for backward compatibility
43
43
  ordered_by: quotation.request_for_quotation.user,
@@ -1,5 +1,5 @@
1
1
  module Dscf
2
2
  module Marketplace
3
- VERSION = "0.3.5".freeze
3
+ VERSION = "0.3.7".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dscf-marketplace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Asrat
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-09-16 00:00:00.000000000 Z
10
+ date: 2025-09-17 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rails