smerp-quotation-engine 0.2.0 → 0.2.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 +4 -4
- data/app/controllers/smerp/quotation/engine/quotation_items_controller.rb +1 -1
- data/app/controllers/smerp/quotation/engine/quotation_products_controller.rb +2 -1
- data/app/views/smerp/quotation/engine/quotation_products/_quotation_product.html.erb +1 -0
- data/app/views/smerp/quotation/engine/quotation_products/index.html.erb +5 -2
- data/lib/smerp/quotation/engine/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2c5fb38d83a4caac8b3251dc2aebcecf5aea0d255dea1719df5ed2fccf0a846a
|
|
4
|
+
data.tar.gz: ebbf3ffbe92b9ef197ebf223c36e04a5c78d7132ae793c8b9884b837199f8b02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89ee2cd9161ff3123e06a71e16131cc05f6413e8491458557a7f2d3c6144159514b4228736dd2ffd0dd35fe61ae5909a0b94a18b330811bbb4928de99051d384
|
|
7
|
+
data.tar.gz: 2c93dbb0d79aeda5773c25847eb5637d93beb41b0642331fc4cd00d5cdefbe66ff3436f843666d48e95a7b8985cedd7bd40cc6aeb8d39b6fe31ba53b9b9ebce8
|
|
@@ -66,7 +66,7 @@ module Smerp::Quotation::Engine
|
|
|
66
66
|
|
|
67
67
|
# DELETE /quotation_items/1
|
|
68
68
|
def destroy
|
|
69
|
-
q = @quotation_item.quotation
|
|
69
|
+
q = @quotation_item.quotation
|
|
70
70
|
@quotation_item.destroy
|
|
71
71
|
|
|
72
72
|
redirect_to quotation_url(q), notice: "Quotation item was successfully destroyed."
|
|
@@ -25,7 +25,8 @@ module Smerp::Quotation::Engine
|
|
|
25
25
|
@quotation_product = QuotationProduct.new(quotation_product_params)
|
|
26
26
|
|
|
27
27
|
if @quotation_product.save
|
|
28
|
-
redirect_to @quotation_product, notice: "Quotation product was successfully created."
|
|
28
|
+
#redirect_to @quotation_product, notice: "Quotation product was successfully created."
|
|
29
|
+
redirect_to quotation_products_path, notice: "Quotation product was successfully created."
|
|
29
30
|
else
|
|
30
31
|
render :new, status: :unprocessable_entity
|
|
31
32
|
end
|
|
@@ -5,13 +5,16 @@
|
|
|
5
5
|
<div id="quotation_products">
|
|
6
6
|
<table class="table">
|
|
7
7
|
<tr>
|
|
8
|
+
<th width="18px"></th>
|
|
8
9
|
<th>Name</th>
|
|
9
10
|
<th>Category</th>
|
|
10
11
|
<th>Status</th>
|
|
11
12
|
</tr>
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
<% cnt = 1 %>
|
|
13
15
|
<% @quotation_products.each do |quotation_product| %>
|
|
14
|
-
<%= render quotation_product %>
|
|
16
|
+
<%= render quotation_product, cnt: cnt %>
|
|
17
|
+
<% cnt += 1 %>
|
|
15
18
|
<% end %>
|
|
16
19
|
</table>
|
|
17
20
|
</div>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smerp-quotation-engine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ian
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-10-
|
|
11
|
+
date: 2022-10-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|