2017-06-16 12:39 GMT-03:00 'Artem Braga' via tryton <[email protected]
>:

>
> On 2017-02-03 02:36, 'Artem Braga' via tryton wrote:
>> > But I had noticed another interesting thing.
>> > I have a sample Price.List of price-weight values for a Carrier.
>> > CarrierCostMethod is Weight:
>> >
>> > 1kg - 1 USD
>> > 2 kg- 2 USD
>> > 3 kg- 3 USD and so on.
>> >
>> > Im creating a Sale with the 3 items. Each item weights 1 kg. Carrier
>> costs
>> > are calculated as like for 2 kg weight- 2USD. If I sell only 1 item
>> (1kg)
>> > Carrier costs dissapear (as if weight of sale is 0). So, seems like
>> > Carrier.Costs in the SaleLine are taken from the CarrierPriceList in a
>> > (n-1) sequence. What can be the reason for that?
>>
>> It is explained in the documentation:
>> http://doc.tryton.org/4.2/modules/carrier_weight/doc/index.html
>>
>>
>> PS: PLEASE DO NOT TOP-POST on this mailing list, see
>> https://groups.tryton.org/netiquette
>> --
>>
>>
> Hello.
>
> Returning back to the Carrier weight cost calculation, suppose that there
> are following kg-price line table for Carrier weight:
>
> kg  -   price (USD)
>
1        1
>
​will be used between 1 and 3kg​


> 3        3
>
​will be used between 3 and 4 kg​


> 4        4
>
​will be used for over 4kg​


>
> As discussed previously in this topic, Carrier weight calculation method
> returns 1 USD for 3 kg weight and 3 USD for 4 kg weight. How to achieve the
> correct carrier weight cost calculation for a Sale (e.g. - 3 USD for 3 kg,
> 4 USD for 4 kg etc) ?
>

So you need to start defining the price between 0kg and 1kg​, you should
get something ​like this instead:
0kg 1USD (used for up to 1kg)
1kg 3USD (used for up to 3kg)
3kg 4USD (used for over 3kg)
and so on...

​Cheers,
Karla.​



>
> Thank you
> Best regards
> Artem
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "tryton" group.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tryton/1fc498ce-210f-4c39-b98a-1a8d91786ede%40googlegroups.com
> <https://groups.google.com/d/msgid/tryton/1fc498ce-210f-4c39-b98a-1a8d91786ede%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>



-- 
-------------------------
Karla  Mª  Stenger  Sábat
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/CAF9qxNpXOgwoi%2BeZULMz43B3VtdX8k9dqjuyRJqpf%3D3sEeW_vQ%40mail.gmail.com.

Reply via email to