Message 73095

Author
ced
Date
2022-01-04.18:07:13
Message id
73095

Content

On 2022-01-04 18:05, Sergi Almacellas Abellana wrote:
> > I do not understand why it can not be done in the Deferral.get_balance.
> 
> Because we [do not create a deferral record for accounts that do not have any type](https://hg.tryton.org/modules/account/file/5a15561b28ce/fiscalyear.py#l245). So the search of the deferral records fails for parent accounts.
>
> > Indeed the same code could be written in this function if it is changed
> into a classmethod.
> 
> This requires to have a deferral record for all accounts which is not the case.

I still do not uderstand why the code can not be placed in get_balance.
History
Date User Action Args
2022-01-04 18:07:13cedsetrecipients: + pokoli, reviewbot, acaubet
2022-01-04 18:07:13cedlinkissue11057 messages
2022-01-04 18:07:13cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)