IRC logs of #tryton for Thursday, 2018-06-14

chat.freenode.net #tryton log beginning Thu Jun 14 00:00:01 CEST 2018
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton22:33
-!- smarro(~sebastian@2800:af0:1028:627::4) has joined #tryton23:21
-!- yangoon1(~mathiasb@i59F4D372.versanet.de) has joined #tryton02:37
-!- JanGB(~jan@ipb218efdf.dynamic.kabel-deutschland.de) has joined #tryton04:11
-!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton05:58
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton06:07
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton06:11
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton06:16
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton07:06
-!- rpit(~ralf@p200300C88F352A001CB049140027CE21.dip0.t-ipconnect.de) has joined #tryton07:32
-!- goug(~goug@i19-les01-t2-31-36-190-64.sfr.lns.abo.bbox.fr) has joined #tryton07:56
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton08:08
-!- orphean(~Orphean@31.192.224.224) has joined #tryton08:28
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton09:29
-!- cappumuc(uid303129@gateway/web/irccloud.com/x-ounleuqckxgujfik) has joined #tryton11:12
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton11:16
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton11:26
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton11:43
-!- smarro(~sebastian@2800:af0:1028:627::4) has joined #tryton11:53
-!- JanGB(~jan@nat3.hmt-leipzig.de) has left #tryton13:20
-!- udono1(~udono@121-058-210-188.ip-addr.inexio.net) has joined #tryton14:03
-!- smarro(~sebastian@2800:af0:1028:627:2ab2:bdff:fe11:9b67) has joined #tryton14:06
-!- JanGB(~jan@x2f7f884.dyn.telefonica.de) has joined #tryton14:10
-!- JanGB(~jan@x2f7f884.dyn.telefonica.de) has joined #tryton14:22
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton14:35
-!- JanGB(~jan@x2f7fb38.dyn.telefonica.de) has joined #tryton15:46
-!- JanGB(~jan@x59cc8a03.dyn.telefonica.de) has joined #tryton16:45
-!- alex_007(~alex@179.43.97.56) has joined #tryton17:00
alex_007Hi, is there any way to cancel a report printing17:02
alex_007if a invoice was already printed, i want to prevent it from printing again17:03
alex_007i tried cls.raise_user_error('Invoice already printed!'), bu i get17:04
alex_007AttributeError: type object 'account.pos.journal' has no attribute 'raise_user_error'17:04
alex_007any suggestions?17:04
cedkalex_007: report can not raise error17:09
cedkalex_007: but you should not worry, the invoice will always print the same because it is cached17:09
alex_007Yes, I know that, however ( I dont know the really reason ) the accountant custommer says that an invoice couldnt be printed twice, since it is a legal issue, then he show me other systems and they restrict the printing, once an incvoice is printed, it couldnt be printed anymore17:22
-!- perilla(~perilla@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton17:23
perillaHi, one question..17:23
perillaon account plan view, only balance column is summarized to view accounts, but debit and credit account is calculated on accounts =! view17:25
cedkalex_007: just ask him how he prevents to make a photocopy?17:28
cedkalex_007: there is no point to try to prevent something that is so easy to do in real life17:28
cedkperilla: I do not read any question17:29
perillacedk: my question is that how can I get debit and credit values on view accounts17:29
perillacedk: https://imgur.com/a/JahVWDD17:29
perillacedk: on screenshot debti and credit is only appear on accounts != view17:30
alex_007cedk, you are completely right, hoever is a customner restriction that he show me that other systems have and he is asking me to implement the same17:30
perillacedk: I read code and get_credit_debit function on account module not use the same pattern that get_balance, ( join table_a with table_c), in order to sum on view accounts17:32
cedkperilla: debit/credit is only for the current account so on a view, it is always zero17:32
cedkalex_007: sometimes it is better to say no to stupid customer requirements17:33
cedkperilla: this is done on purpose, I think there is an issue that gives the rational17:35
perillacedk: I need debit and credit on view accounts. What can I do? Add a new function on account? that summarize debit and credit? following same pattern that get_balance?17:35
cedkperilla: why do you need it?17:37
perillacedk: because on my country, on public accounting I need to validate certaint rules at view level17:39
perillacedk: https://imgur.com/a/sG8FGKX17:39
cedkperilla: do not understand what you show me17:40
perillacedk: for example on rule 142: I need to check that credit on account 213.53 = sum debits on other accounts 633.01, 633.02, ...17:41
perillacedk: to be able to validate this rules, I need to compare values on debit and credit on accounts at view level17:42
cedkperilla: check using all the children17:44
cedkperilla: also where do you make such check?17:44
cedkperilla: and when?17:44
perillacedk: on public account on Ecuador, these rules are a requirement in order to send balance sheets to the control entities17:46
perillacedk: I want to check this rules, before send balance to goverment control entities17:47
cedkperilla: so just write the code using child_of17:48
cedkACTION bbl17:48
perillacedk: ok, I know how to do it, but I wanted the opinion of an expert, thank you17:49
cedkalex_007: just to convince you customer, ask him what does he do if the printer crash as he will not be able to reprint ;-)17:49
-!- JanGB(~jan@x59cc8b85.dyn.telefonica.de) has joined #tryton17:54
perillacedk: IMHO debit and credit should be calculated also on view accounts17:54
alex_007cedk, i also think this is just unnecesary, but for some unknown fear of my customer i thinkthe moe i can do is to print a white pageso no problem18:04
alex_007cedk thanks for the quick answer! :)18:04
perillacedk: I upload a sample image comparing two behaviors, with and without summarized debit and credit on view accounts18:17
perillacedk: https://imgur.com/a/UNZh0Ig18:17
perillacedk: and I think it's more intuitive get summarized values on credit and debit columns18:18
-!- mariomop(~quassel@host128.201-252-126.telecom.net.ar) has joined #tryton19:05
-!- JanGB(~jan@ipb218ef83.dynamic.kabel-deutschland.de) has joined #tryton19:14
-!- alex_007(~alex@179.43.97.56) has joined #tryton19:40
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton20:00

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