Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4157 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Images in webkit / mako pdf reports แก้ไขแล้ว
4
ก.ย. 16
9087
1
ธ.ค. 15
4444
0
พ.ย. 15
3585
3
พ.ย. 15
12820
2
มี.ค. 15
10683