smerp-quotation-engine 0.2.2 → 0.2.3

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: f71b4dd4f66d6b3a84d08becf612915e07c73d559b9b45b1739474e78670d48e
4
- data.tar.gz: 808298fcebe1eea7dc2cc7820b34ce7ee68db717a76f3b948c1430def58cfe20
3
+ metadata.gz: e68a4952af18e9ffec00956f56cb0beaf544c8ed4783a1d2400eb69a9220e5f1
4
+ data.tar.gz: 2a1118364f1bf7805682a2a3c3bb7bb7b19d73991fe2c0947a64e1fdadc35e4a
5
5
  SHA512:
6
- metadata.gz: 8d43e99812253d2be32facd3e28a76b299074258db6574a54ff83cad2b772491854d88f3dc57579409834140adc7ddbc84dc00d92e986d5dd5ba43a0eb8aaae7
7
- data.tar.gz: 2cc26d8e261f27eb6f09fd8ddd30367df751b4395f038c1653fe61bb6b72e506d4c18da81d25a5ac73cecf4ad2259cb5b38d63cbeff11189e874f9c4f53c1fab
6
+ metadata.gz: 1430c6d5fabc1c1dd0bcd229c50e1242161725b0cbf758a89116b8076097356eb7e1520d4258d5e147b87ce6a7415e1eb39e100443675081fdc7119aec08b48a
7
+ data.tar.gz: b4a38634a219d77c1e6240fc9cafd6d6265905e0de2237648f36e0b65982623d156ca22ee785654c526fb7b08d90c45468974a89bb9dbb9886b1406a617db884
@@ -18,10 +18,17 @@
18
18
  <% end %>
19
19
 
20
20
  <table class="table">
21
- <% if not @parent.nil? %>
22
- <tr style="background-color: #8EFEC1">
23
- <th>Parent Item : </th>
24
- <td colspan="6"><%= @parent.name %></td>
21
+ <% if quotation_item.new_record? %>
22
+ <% if not @parent.nil? %>
23
+ <tr style="background-color: #8EFEC1">
24
+ <th>Parent Item : </th>
25
+ <td colspan="4"><%= @parent.name %></td>
26
+ </tr>
27
+ <% end %>
28
+ <% else %>
29
+ <tr>
30
+ <th>Parent : </th>
31
+ <td colspan="4"><%= form.select :parent_id, quotation_item.quotation.quotation_items.where(["id != ?", quotation_item.id]).order(:name).collect { |e| [e.name, e.id] }.unshift([" - ", nil]), {}, class: "form-control" %></td>
25
32
  </tr>
26
33
  <% end %>
27
34
 
@@ -1,7 +1,7 @@
1
1
  module Smerp
2
2
  module Quotation
3
3
  module Engine
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smerp-quotation-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian