IRC logs of #tryton for Monday, 2021-07-19

irc.libera.chat #tryton log beginning Mon Jul 19 12:00:01 AM CEST 2021
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:09
-!- ChanServ changed mode/#tryton -> +o cedk 22:09
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:33
-!- ChanServ changed mode/#tryton -> +o cedk 22:33
-!- ChanServ(ChanServ@services.libera.chat) has joined #tryton05:00
-!- timitos(~kpreisler@2001:a61:4c2:e001:762b:62ff:fe84:ed7e) has joined #tryton05:51
-!- udono(~udono@015-056-210-188.ip-addr.inexio.net) has joined #tryton06:19
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:38
-!- ChanServ changed mode/#tryton -> +o cedk 06:38
-!- rpit(~rpit@p4fd19beb.dip0.t-ipconnect.de) has joined #tryton07:05
-!- springwurm(~springwur@5.104.149.54) has joined #tryton08:15
-!- nicoe(~nicoe@2a02:578:852a:c00:18c2:1aff:fef9:2b7f) has joined #tryton09:22
-!- Jared-nan(~Jared-nan@173.red-2-136-122.staticip.rima-tde.net) has joined #tryton10:04
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton11:08
-!- sharkcz(~sharkcz@19.161.broadband4.iol.cz) has joined #tryton11:45
-!- rs[m](~rsinframa@2001:470:69fc:105::ea2) has joined #tryton11:54
-!- springwurm(~springwur@5.104.149.54) has joined #tryton12:02
Jared-nanHello, we're working on the account consolidation task (https://codereview.tryton.org/346041008/), 13:16
Jared-nanas Ced said here (https://codereview.tryton.org/346041008/patch/336491010/334471003)13:16
Jared-nanwe're trying to call the get_amount() with a context for each company, 13:16
Jared-nanthe problem is that we need a fiscal year in the context to get the periods between start and end in GeneralLedger.get_period_ids(),13:16
Jared-nanand to get this fiscal year, we use from_date and to_date,  this is a problem when the dates are part of different fiscal years. How could we solve this?13:16
cedkI think it is not possible to consolidate charts if they do no have the same fiscal year schema13:19
cedkso I guess the report should be based on a selection of fiscal years13:19
cedkor may it can work with dates using https://bugs.tryton.org/issue1024913:30
cedkindeed it depends of the report for balance sheet like it should be only based on a date13:37
cedkand for income statement, it can be done on dates only and it will require something similar to https://bugs.tryton.org/issue10249 but for AccountType.get_amount13:42
Jared-nanYes as you say it's not a problem from balance as it's based on a single date,  so if I understand you correctly we should modify  AccountType.get_amount of Account to either use periods or dates not both13:47
cedkJared-nan: I think13:50
Jared-nanOk thank you13:54
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton14:45
-!- rpit(~rpit@p200300c88f237e00350a8f4bb01b2b21.dip0.t-ipconnect.de) has joined #tryton15:06

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!