[ https://issues.apache.org/jira/browse/OFBIZ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12853137#action_12853137 ]
Jacques Le Roux commented on OFBIZ-3633: ---------------------------------------- Here is Bob's comment on dev ML {quote} It seems to me that the restrictions as indicated are already modeled on the SupplierProduct entity. I believe this is the correct location; anyone that supplies that particular product would have those restrictions including minimumQuantity, quantityIncrement, etc. And generally speaking, all orders have a supplier -- for a sales order the supplier is simply the owner of those inventory items; OOB that would be the internal organization party named "Company". Moreover, I would hope that the ShoppingCart / its related events and services would handle application of SupplierProduct to a WiP cart in a consistent manner. That is to say if you setup a sales order and your Company had this record, it should properly apply those rules to that cartitem line. I would speculate, however, this application is likely being made for orderType = PO. This is all from memory (I am not on my development machine) but I could envision a facility on the SupplierProduct entity. That would allow you to model the supplier that has multiple facilities with different rules. Consider the 3rd party supplier that has different rules for their Toledeo vs. Syracuse facilities. Similarly, your internal organization may have different rules based on one inventory facility vs. another. Would using the SupplierProduct for this purpose resolve your issue? There would likely be some business logic changes to ensure that they are being applied to OrderType = SO but hopefully no immediate model changes. {quote} > 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.