| Issue 87: | cutting costs calculation does not work properly | |
| 1 person starred this issue and may be notified of changes. | Back to list |
We have faced an issue at belt cutting calculation, seems that it is not working properly. Exaples: 1. user Biz Plima item 12 PL 635 MD calc: 36,28 eur correct price should be: 35,28 eur. So it adds one EUR. 2. user M&M item 2450 RPP14 DD 85 MD calc: 313,88 eur correct price should be: 334,4 eur so it does not add 10% not even one EUR.
May 29, 2014
Zoli, you are right... The formula is not precise 100%, might be missunderstood. I will re-define it and let you know ASAP. The price for the 2nd example is correct.
May 29, 2014
I think the formula should changed to total price = (unit_price x width x discount(partner)) + (unit_price x cut_unit x cut_cost x discount(partner)) + min( cut_max(partner)x cut_cost, max(cut_min(partner)x cut_cost, unit_price x width x discount(partner) x cut_percent(partner) x cut_cost)) The change is at cut_max(partner) and cut_min(partner). I multiplied both with cut_cost that is the product dependent cut cost, 0 or 1. This way if cut_cost is 0 then even the min cut cost is not added.
Jul 2, 2014
This is correct, so please go ahead with implementing the change. The point is, that if unit_price x width x discount(partner) x cut_percent(partner) x cut_cost = 0, than this part has to be 0, if unit_price x width x discount(partner) x cut_percent(partner) x cut_cost >0, than this part should be the vaule, but between the min and max.
Jul 8, 2014
this is done
Status:
Fixed
|
Labels: Milestone-3.2