Em 15/04/2014 14:50, Iasmini - Gmail escreveu:
Em 15/04/2014 13:10, Sergi Almacellas Abellana escreveu:
El 15/04/14 18:06, Iasmini - Gmail ha escrit:
Hi,

Is there a way to summarize values in a list? Like this:

Product         Quantity        Value   Total
1       10      20      100
2       5       10      50
Total Amount
        
        
        150


I want to do this total of 150 in a wizard that filters work orders.
You can use the sum attribute [1] in the tree_view, and the client will calculate the sum amount for the showed records

[1] http://doc.tryton.org/3.0/trytond/doc/topics/views/index.html?highlight=sum#id2
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Ok, it worked if I have one product, Total Amount: 100.00 / 100.00.
If I have 2 products Total Amount: -

I thought it was because it had record with null value. So I created a new database, installed this module and created one record. It added correctly. Then I created another record with the same data and not sum. Why?

I just found out is hyphenated because I have to click on one of the lines to give the total amount. When it has just one product it selects this product automatically and shows the total. When it has 2 products it does not select any product and does not show the total.
--

Iasmini Gomes
Sílex Sistemas
www.silexsistemas.com.br



---
Este email está limpo de vírus e malwares porque a proteção do avast! Antivírus 
está ativa.
http://www.avast.com

Reply via email to