irc.libera.chat #tryton log beginning Tue Jan 16 12:10:01 AM CET 2024 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:11 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:11 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 00:26 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 00:26 | |
-!- springwurm(~springwur@2a01:76c0:104:c700:1342:b5f6:f3cd:2f9b) has joined #tryton | 06:19 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 07:24 | |
-!- tbruyere(~Thunderbi@mail.saluc.com) has joined #tryton | 08:00 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 08:36 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 08:42 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 08:42 | |
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton | 09:26 | |
-!- springwurm(~springwur@2a01:76c0:104:c700:620e:5644:cc12:62fb) has joined #tryton | 13:03 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 13:18 | |
-!- LordVan(~LordVan@gentoo/developer/lordvan) has joined #tryton | 13:30 | |
LordVan | Hi. I am consdering adding some (very basic) form of price calculation to articles and was wondering if there was anything existing that I maybe missed? - to be more concrete: I was planning to add an extra tab to product/template to include some fields like size X,Y,Z, density, work hours spent on it and hourly rate, extra material, profit margin,.. and just have it calcualte the price - but also save previous calculations for historical | 13:57 |
---|---|---|
LordVan | reasons (the backgroudn being ther ehave been large varitions in prics for materials, wages, ..) | 13:57 |
LordVan | currently this is done in a spreadsheet (office staff made this, but it is .. error prone and not easy to use because of the number of fields/formulas) | 13:58 |
LordVan | similar to what product_cost_history does with the price for products, but with more fields | 14:00 |
pokoli | LordVan: this is custom code as the formula to compute the price is specific for each company | 14:05 |
LordVan | pokoli, of course I just meant if there is maybe something generic like that somewhere that I could base it on | 14:06 |
pokoli | I do not think so | 14:06 |
LordVan | i also have extra complexity for different hourly rates,.. | 14:06 |
LordVan | pokoli, ok thanks | 14:06 |
LordVan | i think i will look into product_cost_history for the historical "versions" that should be a good reference (or maybe it is too complicated .. will see) | 14:06 |
pokoli | LordVan: IIRC product_cost_history has a revision table, you can fill such table with your computations if you want to store all versions of the cost | 14:13 |
LordVan | pokoli, yes that was my first impression at a quick glance -- i need those revisions | 14:28 |
cedk | LordVan: extend price list to get the needed values to make your computation | 14:45 |
LordVan | cedk, yes I was hoping that was a possibility but I did not get around to look at the details of the code (yet) | 14:46 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!