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.
Thanks Deepak & Rishi for the contribution and others for providing valuable comments / suggestions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@936228 13f79535-47bb-0310-9956-ffa450edef68
1) added new fields to InventoryItem/InventoryItemDetail to keep track of the units posted to INVENTORY accounts according to the costing methods in use
2) added new field to AcctgTransEntry to keep track of the inventoryItemId that was used to get the cost according to LIFO/FIFO etc... strategy
3) modified existing demo data to support the new costing strategies; enabled by default the LIFO strategy for Company accounting (it was average cost before)
4) code that implements LIFO/FIFO for inventory receipts and sales shipments
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926090 13f79535-47bb-0310-9956-ffa450edef68
When we create a new customer profile, it doesn't send correct mail according to "UPD_PRSNL_INF_CNFRM", "PARTY_REGIS_CONFIRM" and "RDS_CUST_REGISTER" emailType. Currently it grabs the first from the list of ProductStoreEmailSetting entity and uses it's email settings to send the email.
It was due to unavailability of productStoreId for sending mail so whenever new customer profile will be created it should be associated to certain product store and its role type will be "CUSTOMER".
Apart from this customer profile page should have information about associated product stores.
Following points are covered:
1. Improved patch from OFBIZ-3000.
2. Improved Product Store Roles screens.
3. Added ProductStores portlet into party profile screen.
4. Created updateProductStoreRole service for updating ProductStoreRole record.
5. Removed EditProductStoreRoles.groovy and EditProductStoreRoles.ftl .
Thanks to Amit Sharma for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916219 13f79535-47bb-0310-9956-ffa450edef68
Done following:
1. Converted events createUpdateCustomerAndShippingAddress and createUpdateBillingAndPayment to services.
2. Written services in order component.
3. Removed dependency form ecommerce.
4. Moved checkout map processor to order and corrected its reference at all other places in ecommerce.
5. Introduced and seca setAnonUserLogin instead of using event from ecommerce.
6. Small respective changes in OnePageCheckoutProcess.ftl and checkoutProcess.js.
7. Also fixed some of the issues found during testing in old createUpdateShippingAddress and createUpdateBillingAddress services.
Thanks Pranay for the contribution and Arun for your help in testing the patch for Anonymous & Registered user.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@907181 13f79535-47bb-0310-9956-ffa450edef68
BTW Ashish, in r902739 you changed the Japanese translation (which was actually useless as like most of them, if not all, was a plain copy of English) but not the English, is that really wanted?
I will remove all those useless Japanese translations, when I will get a chance!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902754 13f79535-47bb-0310-9956-ffa450edef68
User should be able to sort on SIZE and COLORS kind of features associated with Products. This sort will be additional sort with ProductFields and ProductPrice. Here we need to add the additional sort not to change the existing.
This will be achieve in the similar manner the ProductPrice in the ProductSearch.java and ProductSearchSession.java.
Thanks Deepak & Rishi for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897170 13f79535-47bb-0310-9956-ffa450edef68
And generalized to all FTL files where needed.
I only tested for lookups, but should be ok, since the same trick is used in other FTL files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887166 13f79535-47bb-0310-9956-ffa450edef68