Il giorno venerdì 16 marzo 2018 17:21:08 UTC+1, Cato Nano ha scritto:
> My "total" field on the Bolletta entity is calculated.
> 
> It's the sum of a value from the lines PLUS some bits
> 
> In the GUI (and in SAO) the total gets updated while filling a line only with 
> the value from said line
> 
> The further bits get acconted for only after saving the Bolletta.
> 
> I suppose that the javascript layer updates the total field generically 
> summing on the client side
> 
> The complete calculation gets done on the server, after saving
> 
> Is there a way I could make the GUI showing the properly updated values while 
> editing a line ?
> 
> Thanks in advance

the values that do not get acconted for in the sum are calculated starting from 
line no. 8, as you can see here
https://gitlab.com/humanitiesNerd/tributi/blob/master/bolletta.py#L84

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/424d1eea-f0bc-4c0c-b5a9-e06d84116cac%40googlegroups.com.

Reply via email to