[
https://issues.apache.org/jira/browse/OFBIZ-3633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12854504#action_12854504
]
Bob Morley commented on OFBIZ-3633:
-----------------------------------
Here was my comment from the thread --
You are right this may be a stretch, but how it is currently used should not
dictate how things should be properly modeled. From my perspective,
SupplierProduct was a relationship between a Party (the person supplying
products) and a product. From a sales order perspective, the supplier for
products in that order is generally the inventory item order (the Company). It
did not seem a massive stretch to suggest that Orders use SupplierProduct
consistently regardless if they are of type PO or SO.
Wish my data modeling resource book was not at the office right now as I find
it somewhat hard to believe that in such a comprehensive model they did not
have a way for the "seller" of products to dictate non-price base restrictions
on purchase. Thinking of the grocery store that has a sale but limits it to 3
items max, the poker supply store that sells chips in increments of 25, and in
this case ... If there really is nothing then I would _ultimately_ vote for a
"ProductStoreProduct" entity that acts much the same was as SupplierProduct.
but does not double overload that entity if that is the concern ...
Having said all that, I think #1 is a reasonable short gap solution.
> 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.