chat.freenode.net #tryton log beginning Thu Jun 14 00:00:01 CEST 2018 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 22:33 | |
-!- smarro(~sebastian@2800:af0:1028:627::4) has joined #tryton | 23:21 | |
-!- yangoon1(~mathiasb@i59F4D372.versanet.de) has joined #tryton | 02:37 | |
-!- JanGB(~jan@ipb218efdf.dynamic.kabel-deutschland.de) has joined #tryton | 04:11 | |
-!- JanGB(~jan@nat3.hmt-leipzig.de) has joined #tryton | 05:58 | |
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton | 06:07 | |
-!- Timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 06:11 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:16 | |
-!- mrichez(~smuxi@mail.saluc.com) has joined #tryton | 07:06 | |
-!- rpit(~ralf@p200300C88F352A001CB049140027CE21.dip0.t-ipconnect.de) has joined #tryton | 07:32 | |
-!- goug(~goug@i19-les01-t2-31-36-190-64.sfr.lns.abo.bbox.fr) has joined #tryton | 07:56 | |
-!- nicoe(~nicoe@host-85-201-184-151.dynamic.voo.be) has joined #tryton | 08:08 | |
-!- orphean(~Orphean@31.192.224.224) has joined #tryton | 08:28 | |
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton | 09:29 | |
-!- cappumuc(uid303129@gateway/web/irccloud.com/x-ounleuqckxgujfik) has joined #tryton | 11:12 | |
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton | 11:16 | |
-!- NeonKing(~Neonking@unaffiliated/neonking) has joined #tryton | 11:26 | |
-!- LordVan(~LordVan@gentoo/developer/LordVan) has joined #tryton | 11:43 | |
-!- smarro(~sebastian@2800:af0:1028:627::4) has joined #tryton | 11:53 | |
-!- JanGB(~jan@nat3.hmt-leipzig.de) has left #tryton | 13:20 | |
-!- udono1(~udono@121-058-210-188.ip-addr.inexio.net) has joined #tryton | 14:03 | |
-!- smarro(~sebastian@2800:af0:1028:627:2ab2:bdff:fe11:9b67) has joined #tryton | 14:06 | |
-!- JanGB(~jan@x2f7f884.dyn.telefonica.de) has joined #tryton | 14:10 | |
-!- JanGB(~jan@x2f7f884.dyn.telefonica.de) has joined #tryton | 14:22 | |
-!- jmpoure(~jmpoure@soy95-3-82-237-147-64.fbx.proxad.net) has joined #tryton | 14:35 | |
-!- JanGB(~jan@x2f7fb38.dyn.telefonica.de) has joined #tryton | 15:46 | |
-!- JanGB(~jan@x59cc8a03.dyn.telefonica.de) has joined #tryton | 16:45 | |
-!- alex_007(~alex@179.43.97.56) has joined #tryton | 17:00 | |
alex_007 | Hi, is there any way to cancel a report printing | 17:02 |
---|---|---|
alex_007 | if a invoice was already printed, i want to prevent it from printing again | 17:03 |
alex_007 | i tried cls.raise_user_error('Invoice already printed!'), bu i get | 17:04 |
alex_007 | AttributeError: type object 'account.pos.journal' has no attribute 'raise_user_error' | 17:04 |
alex_007 | any suggestions? | 17:04 |
cedk | alex_007: report can not raise error | 17:09 |
cedk | alex_007: but you should not worry, the invoice will always print the same because it is cached | 17:09 |
alex_007 | Yes, 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 anymore | 17:22 |
-!- perilla(~perilla@corp-190-12-31-162.cue.puntonet.ec) has joined #tryton | 17:23 | |
perilla | Hi, one question.. | 17:23 |
perilla | on account plan view, only balance column is summarized to view accounts, but debit and credit account is calculated on accounts =! view | 17:25 |
cedk | alex_007: just ask him how he prevents to make a photocopy? | 17:28 |
cedk | alex_007: there is no point to try to prevent something that is so easy to do in real life | 17:28 |
cedk | perilla: I do not read any question | 17:29 |
perilla | cedk: my question is that how can I get debit and credit values on view accounts | 17:29 |
perilla | cedk: https://imgur.com/a/JahVWDD | 17:29 |
perilla | cedk: on screenshot debti and credit is only appear on accounts != view | 17:30 |
alex_007 | cedk, 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 same | 17:30 |
perilla | cedk: 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 accounts | 17:32 |
cedk | perilla: debit/credit is only for the current account so on a view, it is always zero | 17:32 |
cedk | alex_007: sometimes it is better to say no to stupid customer requirements | 17:33 |
cedk | perilla: this is done on purpose, I think there is an issue that gives the rational | 17:35 |
perilla | cedk: 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 |
cedk | perilla: why do you need it? | 17:37 |
perilla | cedk: because on my country, on public accounting I need to validate certaint rules at view level | 17:39 |
perilla | cedk: https://imgur.com/a/sG8FGKX | 17:39 |
cedk | perilla: do not understand what you show me | 17:40 |
perilla | cedk: 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 |
perilla | cedk: to be able to validate this rules, I need to compare values on debit and credit on accounts at view level | 17:42 |
cedk | perilla: check using all the children | 17:44 |
cedk | perilla: also where do you make such check? | 17:44 |
cedk | perilla: and when? | 17:44 |
perilla | cedk: on public account on Ecuador, these rules are a requirement in order to send balance sheets to the control entities | 17:46 |
perilla | cedk: I want to check this rules, before send balance to goverment control entities | 17:47 |
cedk | perilla: so just write the code using child_of | 17:48 |
cedk | ACTION bbl | 17:48 |
perilla | cedk: ok, I know how to do it, but I wanted the opinion of an expert, thank you | 17:49 |
cedk | alex_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 #tryton | 17:54 | |
perilla | cedk: IMHO debit and credit should be calculated also on view accounts | 17:54 |
alex_007 | cedk, 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 problem | 18:04 |
alex_007 | cedk thanks for the quick answer! :) | 18:04 |
perilla | cedk: I upload a sample image comparing two behaviors, with and without summarized debit and credit on view accounts | 18:17 |
perilla | cedk: https://imgur.com/a/UNZh0Ig | 18:17 |
perilla | cedk: and I think it's more intuitive get summarized values on credit and debit columns | 18:18 |
-!- mariomop(~quassel@host128.201-252-126.telecom.net.ar) has joined #tryton | 19:05 | |
-!- JanGB(~jan@ipb218ef83.dynamic.kabel-deutschland.de) has joined #tryton | 19:14 | |
-!- alex_007(~alex@179.43.97.56) has joined #tryton | 19:40 | |
-!- semarie_(~semarie@unaffiliated/semarie) has joined #tryton | 20:00 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!