跳至內容
選單
此問題已被標幟
4195 瀏覽次數

Hi, I have a smatoria of values ​​that I have. % for order in objects: $ {amount_total}-here are the values ​​I want to add at every turn to give me a total

but so I can not because in the mako that I have when I embed this.

<% variable_acumulada = 0 %>

% for order in objects: variable_acumulada + = orden.amount_total % endfor

I print to pdf variable_acumuladora + = orden.amount_total

and if I put it like that.

<% variable_acumulada = 0 %> % for order in objects: variable_acumulada + = $ {orden.amount_total} % endfor

prints for each turn me this.

lap 1 variable_acumuladora + = 86.5

turn 2 variable_acumuladora + = 1.05

Thanks for responding. alfonsojn15@gmail.com

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
9月 16
9087
1
12月 15
4506
0
11月 15
3652
3
11月 15
12867
2
3月 15
10710