تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4128 أدوات العرض

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
سبتمبر 16
9087
1
ديسمبر 15
4438
0
نوفمبر 15
3572
3
نوفمبر 15
12811
2
مارس 15
10653