Commit Graph
315 Commits
Author SHA1 Message Date
Ashish Vijaywargiya a9d1a7a8f5 Applied patch from jira issue: OFBIZ-3633 - Minimum order quantity.
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
2010-04-21 09:36:40 +00:00
Scott Gray a02984f357 Fix OFBIZ-3523, the demo order confirmation email wasn't including full urls
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935146 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 08:17:19 +00:00
Jacques Le Roux aa21e44705 A patch from Chris Snow "ecommerce screen shows error after loading only seed data" (https://issues.apache.org/jira/browse/OFBIZ-2798) - OFBIZ-2798
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@935089 13f79535-47bb-0310-9956-ffa450edef68
2010-04-16 22:05:50 +00:00
Bruno Busco e25ebb8da8 A patch from Blas Rodriguez Somoza
OFBIZ-3679 - XHTML validation errors round 2 (specialpurpose/ecommerce)
https://issues.apache.org/jira/browse/OFBIZ-3679

XHTML validation errors

    * Unclosed tags
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.




git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@934190 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 20:46:08 +00:00
Bruno Busco 079d2f1015 A patch from Blas Rodriguez Somoza
OFBIZ-3614 - XHTML validation errors (specialpurpose_ecommerce)
https://issues.apache.org/jira/browse/OFBIZ-3614

XHTML validation errors

    * Unclosed INPUT
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.

Other errors:

viewprofile.ftl
Wrong markup at 248, 250. Entity without final ;
&nbsp</#if>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932719 13f79535-47bb-0310-9956-ffa450edef68
2010-04-10 13:50:12 +00:00
Hans Bakker 158fd4aec9 Update dutch translation, a contribution by Willem Janssen: OFBIZ-3652
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931430 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 04:27:42 +00:00
Ashish Vijaywargiya a220091a5c Applied patch from jira issue - OFBIZ-3635 - Contact list unsubscription email notification.
Thanks Chandan for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930842 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 11:25:08 +00:00
Jacques Le Roux 42cd8325c3 A patch from Bob Morley "Resolve java warnings exposed in Eclipse (eCommerce part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3596 - OFBIZ-3596
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930829 13f79535-47bb-0310-9956-ffa450edef68
2010-04-05 08:24:47 +00:00
Jacopo Cappellato c2d9606772 Implemented first version of FIFO and LIFO costing methods in accounting:
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
2010-03-22 14:02:46 +00:00
Scott Gray c75bda5d7a OrderHeader isn't cached so there's no point in trying to do lookups via the cache
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924575 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:54 +00:00
Scott Gray 54a7423ef6 xhtml fix: checked -> checked="checked"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924574 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 00:56:36 +00:00
Scott Gray 10cb0f058b Removed another superfluous closing div tag and also added a value to the checked attribute to be valid xhtml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924541 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 22:50:38 +00:00
Scott Gray 2c0cd73e73 Removed two superfluous closing div tags
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924442 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:42:01 +00:00
Scott Gray 3a6b0e832f Formatting fixes, no markups changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924441 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:41:57 +00:00
Scott Gray c9dfd42458 Fixed some bad xhtml, added a closing label tag and corrected a closing p tag
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924440 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 19:41:52 +00:00
Scott Gray 6109808c8a Tabs to spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68
2010-03-17 17:28:01 +00:00
Adam Heath 2eb1768f1d Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
Jacques Le Roux 65ed20de81 Fix a security issue reported by Heidi Dehaes at "unsubscribe from a contactlist in the "profile" screen in the ecommerce screens" (https://issues.apache.org/jira/browse/OFBIZ-3396) - OFBIZ-3396
Actually this commit fixes rather 2 security issues

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@922042 13f79535-47bb-0310-9956-ffa450edef68
2010-03-11 22:25:32 +00:00
Adam Heath 64e3996030 Fix all br to be proper xhtml.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921212 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 02:43:50 +00:00
Ashish Vijaywargiya 428165a2d3 Applied patch from jira issue OFBIZ-3508 -
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
2010-02-25 10:19:02 +00:00
Ashish Vijaywargiya 0e907b0b01 Applied patch from jira issue OFBIZ-3493 - OFBiz Improvement on ecommerce product detail page for showing out of stock product.
Thanks Parimal & Pranay for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912544 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 12:14:35 +00:00
Ashish Vijaywargiya 71edf5dbeb Moving data to appropriate location. I don't know much about the original thought of keeping this data in ProductTypeData.xml file and considering that it was done mistakenly.
If anyone else think otherwise then please comment.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@910174 13f79535-47bb-0310-9956-ffa450edef68
2010-02-15 08:15:24 +00:00
Ashish Vijaywargiya e269e145b9 Applied patch from jira issue OFBIZ-3437 - Conversion of one page checkout events to services.
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
2010-02-06 07:12:44 +00:00
Ashish Vijaywargiya ce6fb91a08 Added colon(:), it would increase the readability for end user.
Patch from Bharat Soni.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904443 13f79535-47bb-0310-9956-ffa450edef68
2010-01-29 10:04:32 +00:00
Scott Gray 78496f5377 Applied patch from Mridul Pathak, OFBIZ-3427. A PartyContactMech lookup wasn't being filtered by date and was causing expired records to be retrieved.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903428 13f79535-47bb-0310-9956-ffa450edef68
2010-01-26 21:34:12 +00:00
Ashish Vijaywargiya c05a2ab767 Improved the sentence in English. Thanks Jacques for your comment. Sorry, I patched the sentence at wrong place.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902762 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 10:13:31 +00:00
Jacques Le Roux c2aeb047e6 Better French translation.
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
2010-01-25 09:53:00 +00:00
Ashish Vijaywargiya 619f375a46 Improved sentence.
Changed "we" -> "us to"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902739 13f79535-47bb-0310-9956-ffa450edef68
2010-01-25 09:08:01 +00:00
Ashish Vijaywargiya cfa5a0de30 Applied patch from jira issue - OFBIZ-3416.
Email templates Layout improvement.
In this patch CSS added in email template(FTL).
These changes are done according to following article.
http://articles.sitepoint.com/article/designers-guide-html-email

Thanks Bharat & Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902365 13f79535-47bb-0310-9956-ffa450edef68
2010-01-23 08:35:38 +00:00
Ashish Vijaywargiya b927ec9c73 Applied patch from jira issue OFBIZ-3417 - Add support for iterating shopping cart item in ShowCart.groovy.
Thanks Arpit & Vivek for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900760 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 13:06:46 +00:00
Ashish Vijaywargiya 930445cb36 Applied patch from jira issue OFBIZ-3415 - All json request should handled thru CommonEvents.jsonResponseFromRequestAttributes in ecommerce.
Thanks Rishi for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900371 13f79535-47bb-0310-9956-ffa450edef68
2010-01-18 12:41:50 +00:00
Ashish Vijaywargiya e61cc1d01a Fixed Typo - account* & visitor*.
Code formatting. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899064 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 05:25:25 +00:00
Ashish Vijaywargiya 96fc0b8f9a Adding missing demo data for WebAnalyticsConfig entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898293 13f79535-47bb-0310-9956-ffa450edef68
2010-01-12 11:56:53 +00:00
Ashish Vijaywargiya ff7dce4203 Applied patch from jira issue - OFBIZ-3397- Advance Search should also support the feature base sorting.
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
2010-01-08 11:33:19 +00:00
Jacques Le Roux 0f45f8e21d PartyUserNameInUse French localisation.
Replaced a bunch of hardcoded error messages by  PartyUserNameInUse 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894318 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 06:59:58 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 56dac0bf9e Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Jacopo Cappellato 6277c9e503 Added example of cost component calc entry associated to a finished product to compute general overhead costs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892911 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 18:14:09 +00:00
Scott Gray 3f33a1fab7 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Scott Gray 78b784e80e Convert all uses of json event types to chained requests with the common json event at the end.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Hans Bakker dfaf58c0ff correct some content blog errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890253 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 09:51:41 +00:00
Scott Gray ced8fd1a54 Reverted previous temporary security fix for request parameters being directly inserted into survey forms and changed all SurveyWrapper instances using this method to instead store the parameter map in the session temporarily.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@889040 13f79535-47bb-0310-9956-ffa450edef68
2009-12-10 00:53:47 +00:00
Adrian Crum 5689f98d4a Fixed a bug in the demo data that was causing a primary key violation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888941 13f79535-47bb-0310-9956-ffa450edef68
2009-12-09 20:10:51 +00:00
Vikas Mayur 6de573c289 Removed assignment operator from the value being saved.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@888381 13f79535-47bb-0310-9956-ffa450edef68
2009-12-08 12:56:46 +00:00
Jacques Le Roux 5cac36d5c5 Complete calendar i18n initialization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887454 13f79535-47bb-0310-9956-ffa450edef68
2009-12-04 23:38:25 +00:00
Jacques Le Roux 88e6b9481b I realized that in some cases it's better to keep the country part of locale, so this is better than r887164 (Fix a calendar i18n initialization issue in lookup.ftl)
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
2009-12-04 12:07:48 +00:00
Jacques Le Roux 059cf20ff9 Fix a bug introduced with r886143 (when a language.js was missing no default was given)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886723 13f79535-47bb-0310-9956-ffa450edef68
2009-12-03 09:45:33 +00:00
Jacques Le Roux 3dd84d9f25 A patch from Sascha Rodekamp " Colors and localisation for the calendar" (https://issues.apache.org/jira/browse/OFBIZ-1825) - OFBIZ-1825
Simple and clear implementation!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@886143 13f79535-47bb-0310-9956-ffa450edef68
2009-12-02 13:54:17 +00:00