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

Jacopo Cappellato commented on OFBIZ-3633:
------------------------------------------

I don't want to add confusion but I can't resist to throw my 2 cents :-)

Alternative options to consider:
1) enhancing the Agreement* data model (in particular AgreementItemProduct); a 
default agreement (between the Company and all its customers) could be 
associated to the ProductStore and define some of the rules for sales; in 
particular, it could define the minimum order quantity for each product (in the 
AgreementItemProduct)
2) enhancing ProductPriceRules: the condition (ProductPriceCond) could be "if 
quantity is less than" and the action could be "then reset the price" (or 
similar); this is somewhat an hack but if properly modeled could be a nice 
enhancement



> 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.

Reply via email to