irc.libera.chat #tryton log beginning Fri Sep 17 12:00:02 AM CEST 2021 | ||
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:07 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 23:07 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 05:04 | |
-!- mrichez(~Maxime@2a02:a03f:c2e8:f900:ed77:85ea:af2b:ba6e) has joined #tryton | 05:12 | |
-!- timitos(~kpreisler@host-88-217-184-172.customer.m-online.net) has joined #tryton | 05:43 | |
-!- rpit(~rpit@p200300c88f168d000ae81a7497341a2e.dip0.t-ipconnect.de) has joined #tryton | 05:59 | |
-!- udono(~udono@093-136-067-156.ip-addr.inexio.net) has joined #tryton | 06:19 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:34 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 06:34 | |
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton | 06:41 | |
mrichez | Hi, did someone faced the case to have a price unit with a different unit of stock unit ? I mean: our stock unit is : unit. but products are very small so price for 1 unit is ridiculous and with a lot of decimal. So sellers often provide a price for 1000 units (but quantity sold is with uom unit). On sale report, it would be: Product A - Quantity: 1750000 Unit - Price: 2,5€/1000Unit to avoid having 0,0025€/unit | 07:07 |
---|---|---|
cedk | mrichez: it sounds like a display issue only | 07:22 |
cedk | so you could replace the format_currency with your own way to add the factor | 07:24 |
cedk | or even extend format_currency to multiple by factor depending on the number of digits | 07:24 |
mrichez | cedk: that was my idea... (and adding unit used next to the price) but i prefer asking for suggestions before applying my custo :-) | 07:25 |
cedk | indeed just like we discussed on the issue about adding a format with symbol, we could maybe have a format currency per symbol | 07:26 |
mrichez | cedk: but it is not always the case (i mean (in our case) we use only a specific display for some products having unit as uom and displaying price for 1000 units) This display doesn't apply for uom : Kg or when the unit price has less than x decimals | 07:29 |
cedk | but it is maybe over designed | 07:29 |
mrichez | I thinkl it will stay as custo.. | 07:31 |
cedk | I think the best option is to extend format_currency to check digits parameter | 07:36 |
mrichez | cedk: ok | 07:43 |
mrichez | cedk: but in format_currency, i don't know uom | 07:48 |
cedk | I think you do not care about uom | 07:49 |
mrichez | cedk: maybe i'll define a new function with uom as parameter that call then format_currency (after updated price with a factor if needed) | 07:50 |
cedk | 0.0025 with 4 digits -> 2.5€/1000 | 07:50 |
cedk | we do not usually display unit next to unit price in report | 07:51 |
mrichez | cedk: ok but on my report quantity is display with uom : unit and price will be xxx€/1000 | 07:51 |
mrichez | not the same unit | 07:51 |
cedk | why not the same? | 07:54 |
mrichez | because we sell by unit (to avoid have decimals if unit is /1000 and we don't sell by 1000 and to avoid confuse with suppliers). So we sell 17856423 Units but we prefer to give a price for /1000 instead of having a ridiculous price by unit | 07:59 |
cedk | mrichez: yes that what my proposal does | 08:02 |
mrichez | cedk: ? so i need to put the unit next to the price : here's an example: https://pasteboard.co/twIrs7alMxKm.png | 08:05 |
pokoli | johnf: which kind of features are you searching on third party modules? If the feature is generic enought it will be better to add on tryton.org source code. | 08:25 |
pokoli | mrichez: this is just format_price you don't care about the unit | 08:27 |
pokoli | 0.0025kg is also 2.5/1000 | 08:27 |
pokoli | You just need to take care of adding the currency simbol after /1000 | 08:27 |
mrichez | i'll made tests... thanks cedk and pokoli ! | 08:30 |
cedk | I would not add the currency symbol after /1000 but '2.5€/1000' + unit | 08:31 |
mrichez | cedk: yes better | 08:32 |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:17 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 10:17 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 10:59 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 10:59 | |
-!- springwurm(~springwur@5.104.149.54) has joined #tryton | 12:05 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 12:39 | |
-!- ChanServ changed mode/#tryton -> +o cedk | 12:39 | |
-!- udono(~udono@94.31.96.9) has joined #tryton | 13:04 | |
johnf | thanks everyone for providing the links. | 14:07 |
johnf | pokoli: since I am just starting out I'm not sure. But I would like a drop ship feature, returns. Also an interface to some shipping. | 14:33 |
cedk | johnf: if you want to sale with drop shipment, check https://docs.tryton.org/projects/modules-sale-supply-drop-shipment/en/latest/ | 14:36 |
cedk | johnf: what do you mean by "interface to some shipping"? | 14:36 |
johnf | cedk: These days apps like shipstation, shippit, and others handle shipping product via UPS, FedEx, USPS, and others. They handle freight charges etc.. | 14:39 |
cedk | johnf: see the package shipping modules: https://docs.tryton.org/en/latest/stock.html#index-stock | 14:41 |
johnf | cedk: there is a rough interface for shipping apps (Fundamentals to interact with shipping services)? Have you interfaced to any of the shipping apps? | 14:44 |
cedk | johnf: I do not understand the question. What do you name "shipping apps"? | 14:45 |
johnf | There are really good programs that handle shipping issues - one would be shipstation, an other shippit. | 14:47 |
johnf | https://www.shippit.com/ - a quick look will explain what I am talking about. | 14:48 |
cedk | johnf: this seems overlapping with Tryton | 14:49 |
johnf | I'm not sure what tryton is able to do. So I will agree if you say so. | 14:50 |
cedk | johnf: the aim of Tryton is to integrate all the requirements to run a business | 14:55 |
cedk | so usually we make integration for external services but rarely with other end user software | 14:56 |
johnf | That's great and the main reason I am trying find out more and have installed it. | 14:57 |
johnf | currently I setup a venv where I start my trytond on one terminal, and then open a second one and start tryton. Is that a good way to do dev work or is there a better one? | 15:44 |
cedk | johnf: that's mainly how I work | 16:09 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!