Managing carrier costs

85 views
Skip to first unread message

Artem Braga

unread,
Feb 2, 2017, 9:15:07 AM2/2/17
to tryton
Hello. 

I'd like to ask to share possible solutons for managing carrier costs when creating a CustomerSale in Tryton. 
The case is the following: suppose there is one Carrier (UPS), who can provide 3 delivery Service Types (Express, Standard and Priority). The price of each ServiceType depends on the weight of the sold product and there are 3 possible weights possible 1kg, 2 kg and 5kg. 

Is there a process flow in Tryton to set up a Carrier with the possibility to assign carrier cost rates depending on ServiceType and weight? 
Example: 
- Express, 1kg- XX USD
- Express, 2kg - YY USD
- Express, 5kg - ZZ USD 
- Standard, 1kg- XXX USD
- Standard 2kg - YYY USD
- Standard, 5kg - ZZX USD  and so on.

So far I had found an option to link one ServiceType per Carrier and assign different weight-price rates.

Thank you
Artem 

Cédric Krier

unread,
Feb 2, 2017, 9:45:06 AM2/2/17
to tryton
On 2017-02-02 05:52, 'Artem Braga' via tryton wrote:
> Is there a process flow in Tryton to set up a Carrier with the possibility
> to assign carrier cost rates depending on ServiceType and weight?

No you must see carrier as the service so you must create a carrier per
service type.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Artem Braga

unread,
Feb 2, 2017, 11:05:06 AM2/2/17
to tryton
Thank you for help. That is a solution. 

четверг, 2 февраля 2017 г., 16:45:06 UTC+2 пользователь Cédric Krier написал:

Artem Braga

unread,
Feb 3, 2017, 4:35:06 AM2/3/17
to tryton
I set up Carrier.CostMethod: "Weight" and provided price list for carrier price for each possible weights. Now, when Im creating and saving Sale, the Carrier Cost Line is created in SaleLine. But the total amount of CarrierCost is not recalculated in accordance to the weight of the Product shown in the SaleLine. For example, Im selling 2 products each 1kg, total weight is 2 kg. Carrier Costs are not recalculated accordingly. Weight is set in Product.Measurements. 

Is there any reason for the CarrierCost not adjusting to the actual weight of the Products sold? 

Thank you 
Artem 




четверг, 2 февраля 2017 г., 18:05:06 UTC+2 пользователь Artem Braga написал:

Cédric Krier

unread,
Feb 3, 2017, 4:55:06 AM2/3/17
to tryton
On 2017-02-03 01:20, 'Artem Braga' via tryton wrote:
> I set up Carrier.CostMethod: "Weight" and provided price list for carrier
> price for each possible weights. Now, when Im creating and saving Sale, the
> Carrier Cost Line is created in SaleLine. But the total amount of
> CarrierCost is not recalculated in accordance to the weight of the Product
> shown in the SaleLine. For example, Im selling 2 products each 1kg, total
> weight is 2 kg. Carrier Costs are not recalculated accordingly. Weight is
> set in Product.Measurements.
>
> Is there any reason for the CarrierCost not adjusting to the actual weight
> of the Products sold?

The shipment cost is re-computed only on quotation.
But if it does not re-compute on quotation, the you should give us how
you configured the carrier.



PS: Please do not top-post on this mailing list, see
https://groups.tryton.org/netiquette

Artem Braga

unread,
Feb 3, 2017, 5:50:07 AM2/3/17
to tryton
Thank you. 
After Sale goes to Quotation state, Carrier costs are really recalculated and updated. 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? 

Thank you 
Artem 








пятница, 3 февраля 2017 г., 11:55:06 UTC+2 пользователь Cédric Krier написал:

Cédric Krier

unread,
Feb 3, 2017, 6:15:07 AM2/3/17
to tryton
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

Artem Braga

unread,
Jun 16, 2017, 11:39:51 AM6/16/17
to tryton

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
3        3
4        4

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) ?

Thank you
Best regards
Artem







 

Karla Stenger

unread,
Jun 16, 2017, 2:28:29 PM6/16/17
to try...@googlegroups.com
2017-06-16 12:39 GMT-03:00 'Artem Braga' via tryton <try...@googlegroups.com>:

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.



--
-------------------------
Karla  Mª  Stenger  Sábat
karla....@gmail.com

Artem Braga

unread,
Jun 18, 2017, 12:34:01 PM6/18/17
to tryton
Thanks Karla! That's quite helpful. 
Best regards
Artem

 
Reply all
Reply to author
Forward
0 new messages