[JIRA] Commented: (OFBIZ-209) Support for group shipment cost estimate and additional span support for feature and base pricing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (OFBIZ-209) Support for group shipment cost estimate and additional span support for feature and base pricing

JIRA jira@ofbiz.org
     [ http://jira.undersunconsulting.com/browse/OFBIZ-209?page=comments#action_14043 ]
     
Marco Risaliti commented on OFBIZ-209:
--------------------------------------

May I can move it to the new jira issue server ?

Thanks
Marco

> Support for group shipment cost estimate and additional span support for feature and base pricing
> -------------------------------------------------------------------------------------------------
>
>          Key: OFBIZ-209
>          URL: http://jira.undersunconsulting.com/browse/OFBIZ-209
>      Project: [OFBiz] Open For Business
>         Type: Improvement
>   Components: product
>     Versions: 3.5.0
>  Environment: N/A
>     Reporter: Ray Barlow
>     Assignee: Andrew Zeneski
>      Fix For: 3.5.0
>  Attachments: product.patch
>
>
> This patch allows more than one cost estimate to be used to calculate shipping. With this group support it is possible to calculate shipping based on more than one feature having more than one price. My needs were to support:
>   All large items 5.00 and each additional large item 2.25
>   All small items 2.50 and each additional small item 1.00
> I've done this by creating 4 grouped shipping cost estimates using spans to handle the quantity of 1 and a base price scenario. Having completed it I think it could be done using 2 estimates by changing the data but for now it functions as desired and I need some sleep.
> This is at present a backwards compatibile feature and should not change the functionality for any existing shipping cost estimates.
> There is not much code change, I just had to split calcShipmentCostEstimate into two methods so the actual calculation code could be repeatedly called for grouped estimates. It still follows the pattern of find all valid estimates, pick one based on the priorities, calculate the cost. It then checks if the estimate is part of a group and it will then pull from the pre-validated list of estimates for other members of the same group to add to the shipping cost.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.undersunconsulting.com/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira