You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Rishi Solanki (JIRA)" <ji...@apache.org> on 2010/04/03 07:13:27 UTC

[jira] Commented: (OFBIZ-3633) Minimum order quantity

    [ https://issues.apache.org/jira/browse/OFBIZ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853077#action_12853077 ] 

Rishi Solanki commented on OFBIZ-3633:
--------------------------------------

With reference to user list discussion here are our (Deepak and mine) thoughts;
- We have posted the both solution on the list and elected to go with price constraints due to following reasons;
1) Here we do not need to change the existing entity definition, which is not a big deal if we add minimumOrderQuantiy field to Product entity.
2) If we want to add minimum order quantity for any product then we set the price which is of special type 'MINIMUM_ORDER_QUANTITY'.
3) In case of adding the field in product entity we need to check whether it will reflect on every UI of product related screens, in the current patch the Product Price screen already have support to add a special type of price.
4) For the ProductStore thing i.e the ProductStore may want different minimum order quantity for different stores, this will handle in the same way it will handle for adding product entity field. Here I mean to say that; it is not available for Product specific configuration as well ProductPrice specific configuration in either case we need to work on that.
Finally we will accept the community decision, and upload the patch in a way which will be finalize by community.

> Minimum order quantity
> ----------------------
>
>                 Key: OFBIZ-3633
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-3633
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: order, specialpurpose/ecommerce
>            Reporter: Rishi Solanki
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-3633.patch, OFBIZ-3633.patch
>
>
> It will work as follows;
> We will set the special type price as 'MINIMUM_ORDER_PRICE' for a Product in ProductPrice entity. On the basis of it we will get the minimum order quantity of the product on the basis of this price and sale price.
> Will get the minimum order quantity for product by division. For example we have selling price of product P1 is $10.00 and its MINIMUM_ORDER_PRICE is $100.00 then minimum order quantity for the product will be --> 100/10 ==> 10.
> To achieve the above ;
> write a getMinimumOrderQuantity() method in ShoppingCart.java which takes the itemBasePrice and productId as in parameter, and call it where we add, update the cart items and change the quantity to minmumOrderQuantity if it is less then minimum.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.