IRC logs of #tryton for Saturday, 2016-02-06

chat.freenode.net #tryton log beginning Sat Feb 6 00:00:05 CET 2016
2016-02-06 00:03 -!- JosDzG(~Thunderbi@189.148.161.75) has joined #tryton
2016-02-06 00:11 -!- smarro_(~sebastian@181.16.7.104) has joined #tryton
2016-02-06 00:38 -!- juanfe(~juanfe@181.143.145.58) has joined #tryton
2016-02-06 01:27 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-02-06 03:05 -!- chris____(~chris@105.227.121.153) has joined #tryton
2016-02-06 05:12 -!- chris____(~chris@105.227.121.153) has joined #tryton
2016-02-06 05:22 -!- kstenger1(~karla@r186-55-65-129.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-02-06 07:29 -!- chris____(~chris@105.227.121.153) has joined #tryton
2016-02-06 07:40 -!- frispete_(~frispete@p54A908B0.dip0.t-ipconnect.de) has joined #tryton
2016-02-06 09:06 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-02-06 09:20 -!- cedk(~ced@gentoo/developer/cedk) has joined #tryton
2016-02-06 09:31 -!- Telesight(~anthony@4dae0c97.ftth.telfortglasvezel.nl) has joined #tryton
2016-02-06 09:31 -!- leio(~leio@62.65.230.248) has joined #tryton
2016-02-06 09:31 -!- leio(~leio@gentoo/developer/leio) has joined #tryton
2016-02-06 10:42 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2016-02-06 12:48 <csotelo__> hello dear coders, I have a question about fields.Function, when I use this kind of field, the field is just calculated, no table field exists, right ( at least I have noticed that ) I have a table field wich one I need to be updated depending on otheyrs fields, if I used "Function" this field just convert into calculated, My question is, what will be the best way to do that or is possible to use on change with on fields.Numeric? thanks a lot
2016-02-06 12:49 <cedk> csotelo__: if your field is purely a computation, use Function
2016-02-06 12:50 <csotelo__> cedk, but I need to store this caclculated value
2016-02-06 12:50 <csotelo__> calculated*
2016-02-06 12:50 <cedk> csotelo__: why ?
2016-02-06 12:50 <cedk> csotelo__: it will be duplicate information
2016-02-06 12:53 <csotelo__> well, the reason is, as a customer requirement, I need to do discounts, then I have been thinking the best way could be doing it on the invoice line, in order on no manipulate code, then, as invoice use unit price and amount on line to calculate taxes and total amount, I though the easiest way could be just adding two more fields, gross_unit_price and discount_percent, then. If the, gross_unit_price will be the real unit price, and the unit_price will
2016-02-06 12:53 <csotelo__> changed depending on discount percent, then no more changes in code will be nedded
2016-02-06 12:54 <cedk> csotelo__: use sale_promotion
2016-02-06 12:56 <csotelo__> I am not using sales, cause.. wll is a non tipical behavior. It is for private health center, using gnu health, then a ptient after spend to much money they could go to the social service and ask for a dioscount on a surgery, if the medical doctor responsible say is ok, then the social service approve the discount
2016-02-06 12:56 <csotelo__> is something no usual
2016-02-06 12:57 <cedk> csotelo__: what the point to change invoice
2016-02-06 12:57 <cedk> csotelo__: put just the right unit price
2016-02-06 12:57 <cedk> and if needed put a description
2016-02-06 12:58 <cedk> invoice is not for marketing
2016-02-06 12:59 <csotelo__> please and orry for this question, I just want to understand better, if I put the right unit price... how I could manage the financial moves, I think the moves must kep the unit price and the amout... or is no necesary..
2016-02-06 12:59 <csotelo__> well I need a way to manage this kind of discount on services
2016-02-06 12:59 <csotelo__> please, advice
2016-02-06 13:01 <csotelo__> that is the reason .. and the easiest way I have found on adding this two fields, one for keep the real unit price , but for finantial moves and calculations, update the unit price, the the invoice and taxes will continue as a normal incoice
2016-02-06 13:01 <csotelo__> Am I wrong? please advice
2016-02-06 13:02 <csotelo__> I am on tryton 3.4 with gnu health 2.8
2016-02-06 13:13 <aroncero> csotelo: I agree with cedk, invoice is not for marketing
2016-02-06 13:15 <aroncero> csotelo: but if you need it, create other price field and discount field and modify the usual price field with on_change if some of these fields is modified
2016-02-06 13:42 -!- chris____(~chris@105.227.121.153) has joined #tryton
2016-02-06 14:04 <csotelo__> aroncero, I have done on that way...
2016-02-06 14:04 <csotelo__> I understand is no for marketin
2016-02-06 14:05 <csotelo__> What I want to avoid is to alter the finantial amounts
2016-02-06 14:06 <csotelo__> I mean, I have a product with unit price 100, then I apply a discount of 50%, then the final amount on the invoice will be based on the produt unit price with its discount
2016-02-06 14:07 <csotelo__> I am not really sure how is tryton managing it, but , in order on keeping real unit order and no modify code for calculation, I just add this two fields.. and worked for me
2016-02-06 14:07 <csotelo__> I just add an update on change, and the whole invoice use this value
2016-02-06 14:07 <csotelo__> no code changes, no extra changes
2016-02-06 14:39 <cedk> csotelo__: just put 50 as unit price
2016-02-06 14:39 <cedk> csotelo__: you don't need to store those marketing stuff on the invoice
2016-02-06 14:39 <cedk> especially if you create the invoice base on other document
2016-02-06 14:40 <csotelo__> I also though that
2016-02-06 14:54 -!- nelek_(~nf@ip-83-134-57-177.dsl.scarlet.be) has joined #tryton
2016-02-06 15:08 -!- chris____(~chris@105.227.121.153) has joined #tryton
2016-02-06 15:09 -!- kstenger(~karla@r186-55-65-129.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-02-06 16:07 <fishbein137> Are attachments supposed to be functional in sao? When I try to save a new attachment, I get 'The value "None" of field "Resource" on "Attachment" is not in the selection.' Maybe something is not correctly configured?
2016-02-06 16:11 <cedk> fishbein137: I think it is missing changeset a8bd4433dc4c of issue3525
2016-02-06 16:11 <cedk> fishbein137: please fill an issue
2016-02-06 16:12 -!- apostatize(~visavis@unaffiliated/apostatize) has joined #tryton
2016-02-06 16:21 <fishbein137> cedk: Thank you, will do!
2016-02-06 16:42 -!- fishbein137(~chris@105.227.121.153) has joined #tryton
2016-02-06 17:12 -!- JosDzG(~Thunderbi@189.148.197.207) has joined #tryton
2016-02-06 17:21 -!- kstenger(~karla@r167-56-236-218.dialup.adsl.anteldata.net.uy) has joined #tryton
2016-02-06 18:07 -!- fishbein137(~chris@105.227.121.153) has joined #tryton
2016-02-06 18:11 <cedk> fishbein137: I did not see your report
2016-02-06 18:20 -!- VaticanCameos(~VaticanCa@182.68.173.188) has joined #tryton
2016-02-06 18:51 -!- nicoe(~nicoe@2a02:a03f:30b6:ee00:ee55:f9ff:fe7b:f7ac) has joined #tryton
2016-02-06 19:05 -!- rpit(~rpit@2a02:908:e672:9420:56ee:75ff:fe0d:d3c7) has joined #tryton
2016-02-06 19:07 -!- nelek(~nf@unaffiliated/nelek) has joined #tryton
2016-02-06 19:11 -!- JosDzG(~Thunderbi@189.148.197.207) has joined #tryton
2016-02-06 19:45 -!- JosDzG(~Thunderbi@189.148.207.65) has joined #tryton
2016-02-06 19:46 -!- fishbein137(~chris@105.227.121.153) has joined #tryton
2016-02-06 19:52 -!- fishbein137(~chris@105.227.121.153) has joined #tryton
2016-02-06 20:22 -!- LordVan(~lordvan@gentoo/developer/LordVan) has joined #tryton
2016-02-06 21:57 -!- fishbein137(~chris@105.227.121.153) has joined #tryton
2016-02-06 23:09 -!- JosDzGx(~Thunderbi@189.148.207.65) has joined #tryton
2016-02-06 23:40 -!- fishbein137(~chris@105.227.121.153) has joined #tryton

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