smerp-quotation-engine 0.2.4 → 0.2.5

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: cd0d27d0794a189f21582ff384002f632b70f9248c5cb4e0abcbde4530c073b6
4
- data.tar.gz: 36442f75d249b9e0ddffc4d9fe8f70beba311b20f64ddf1e20d5ff5332e7f0be
3
+ metadata.gz: 777e262c604a99493ca587be525eb924ac7d399893292206a95a395f235ae4ac
4
+ data.tar.gz: 4cd1e47df6f981e2702d96061068910906fbc5d1ecbede7c0bad29b10ab6a467
5
5
  SHA512:
6
- metadata.gz: c10601bb79a149188d0cac9c29dd3eb7681b0be8bd5a7acfd9a861ca957375254f4f4fa54f2ff4124b70e1b189c7ad181f9e81876aadaf1ca924df65c9726fe9
7
- data.tar.gz: 5b2d7ae24d489b595e074e09740daf0e9f92d97fd0961293f42c8dfd4a9607ae9341f91103db3dcf39dc25bcdba89e5cfc5c54488fe71c79a54cd495f68f2535
6
+ metadata.gz: 06aacf73a6e7de230646cc4fb13174b6754caf60c613b9e54a771473dd0f3a7698e1a2f6b1fe72c61da44e5cea0c0694136a211c31c1145b630623fdf7e4f48d
7
+ data.tar.gz: 3233365ebc395a89c4b6ab8c81788df3bfa39c6a3a6b8a2d9e1e54df5744e118301344cb75846314ee06bac9768bfc3d33b38743df2877d471423c13717fc9f1
@@ -15,15 +15,15 @@ module Smerp::Quotation::Engine
15
15
  # cont
16
16
  #end
17
17
 
18
- def render_item_tree_table(itm, level = 1, indx = 0)
18
+ def render_item_tree_table(itm, level = 1, indx = 0, form = nil)
19
19
  cont = []
20
20
  level += 1
21
21
  indx = 0
22
22
  if session[:hide_children_parent_id].nil? or not session[:hide_children_parent_id].include?(itm.id)
23
23
  itm.children.each do |c|
24
- cont << render("quotation_item", quotation_item: c, level: level, index: indx)
24
+ cont << render("quotation_item", quotation_item: c, level: level, index: indx, f: form)
25
25
  indx += 1
26
- cont += render_item_tree_table(c, level, indx)
26
+ cont += render_item_tree_table(c, level, indx, form)
27
27
  end
28
28
  end
29
29
  cont
@@ -53,7 +53,7 @@
53
53
 
54
54
  <%= render "quotation_item", quotation_item: c, level: 1, index: iindx, f: form %>
55
55
  <% iindx += 1 %>
56
- <%= render_item_tree_table(c, 1, iindx).join.html_safe %>
56
+ <%= render_item_tree_table(c, 1, iindx, form).join.html_safe %>
57
57
  <% end %>
58
58
 
59
59
 
@@ -1,7 +1,7 @@
1
1
  module Smerp
2
2
  module Quotation
3
3
  module Engine
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian