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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777e262c604a99493ca587be525eb924ac7d399893292206a95a395f235ae4ac
|
4
|
+
data.tar.gz: 4cd1e47df6f981e2702d96061068910906fbc5d1ecbede7c0bad29b10ab6a467
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|