one more patch to fix following issues in ebay and ebayStore components
1 Fixed issue of set complete order status in ebay when we complete order in ofbiz.
2 Created record of OrderPaymentPreference in PAYMENT_RECEIVED status.
3 Updated qty of cart item, if same product is adding again in cart during import order from ebay.
4 Set transactionId in cart.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1063265 13f79535-47bb-0310-9956-ffa450edef68
Due to missing property "stateProvinceGeoId" in shippingAddressCtx the following call raises an NPE (EbayOrderServices.createShoppingCart, line 1118ff):
List<GenericValue> shipInfo = PartyWorker.findMatchingPersonPostalAddresses(delegator, shippingAddressCtx.get("shippingAddressStreet1").toString(),
(UtilValidate.isEmpty(shippingAddressCtx.get("shippingAddressStreet2")) ? null : shippingAddressCtx.get("shippingAddressStreet2").toString()), shippingAddressCtx.get("city").toString(),
shippingAddressCtx.get("stateProvinceGeoId").toString(), shippingAddressCtx.get("shippingAddressPostalCode").toString(), null, shippingAddressCtx.get("countryGeoId").toString(), firstName, null, lastName);
Checking whether the property is set (not empty) will solve this.
JLR: Norbert did the same for shippingAddressStreet2. I did not check if others were missing, hopefully there are none...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1062762 13f79535-47bb-0310-9956-ffa450edef68
The my time entry screen for hours in Project Mgr shows labels (in English) for the hour columns in following order: sun, mon,tue,wen,thu,fri,sat.
However when entering hours on in e.g the mon(day) column the actual date registered for the hours is for tuesday.
Seems like the week starts on monday, not on sunday
JLR: works well, would need more work for those who prefer to have weeks start on Monday...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1062138 13f79535-47bb-0310-9956-ffa450edef68
Patch to export single product to ebay in ebay store component. Added require attributes in item and call request of export product to ebay after successfully verify item.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061939 13f79535-47bb-0310-9956-ffa450edef68
Steps to test issue:
1. Go to ebayStore -> main
2 Select any demo user account and click on submit
3 Click on Export Product Listing tab in menu
4 Search any product from find screen
5 Select product from list and click on Export To Ebay button
6 Select any ebay category from drop down
7 Change event of this select box is not working properly due to blocking of JS.
JLR: I 1st got caught by the surprising behaviour of the eBay Category drop down (you have to select sub-categs one after the others in the same drop drow), but yes it works (ie you can publish an OFBiz product in the eBay store)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061307 13f79535-47bb-0310-9956-ffa450edef68
If I cancel an order item from ecommerce. I get, the below error displayed on the page.
The Following Errors Occurred:
Unable to cancel order line : WSCO11640 / 00001 / null
There have been a discussion about it in this thread http://markmail.org/message/dfkudyvbksvls333
How it works: you can cancel an order item if you create it or have the ORDERMGR_CREATE or ORDERMGR_UPDATE permissions (I added the later to Sascha's patch, else the order manager would be annoyed ;o)
I think this makes sense, because AFAIK there are no other UIs than
https://demo-trunk.ofbiz.apache.org/ordermgr/control/editOrderItems?orderId=...
and
https://demo-trunk.ofbiz.apache.org:8443/ecommerce/control/orderstatus?orderId=...
to cancel an order item. So nobody should be able to bypass his/her permissions... Of course, let me know if you think I could have missed something, thanks
Note also that we had to remove fullPath="true" in <@ofbizUrl>cancelOrderItem</@ofbizUrl> (orderitems.ftl), to avoid InsecureFormPostToSecureRequest error. I don't think it raises any security issues though, has it's done from a javascript call with hidden orderItemSeqId parameter.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1059180 13f79535-47bb-0310-9956-ffa450edef68
The reason for the bug was that the request was called with an additional orderId get parameter. But the orderId was still in the parameter map so the request handler created with these two orderIds a orderId List. These list couldn't be interpreted from the groovy script(because a string was expected). The result was the error message.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1058488 13f79535-47bb-0310-9956-ffa450edef68
Two reasons to this:
# we are not sure the descriptionFieldName is alwayd of the form formName_descriptionFieldName
# anyway we need a form name for call_fieldlookup3 and call_fieldlookup2 just above in htmlFormMacroLibrary.ftl.
While at it, I also removed all question marks in ${uiLabelMap.ProductIncludeSubCategories}? occurrences, it's already in the labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056731 13f79535-47bb-0310-9956-ffa450edef68
Rohit reported a bug in the jQuery implementation (ecommerce):
The find button is not working in the 'googlebase' application. The 'googlebase' application has a page using which u can to search for product to be submitted to google base. the find button is not submitting the page at all.
Sascha: This issue was related to the Lookup Call. The Form in Google Base hadn't a 'name' tag, so the form could not be found. I changed the target by name to a target by Id call (which is better anyways).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056701 13f79535-47bb-0310-9956-ffa450edef68
Rohit reported a bug in the jQuery implementation (ecommerce):
With the jQuery branch being merged into the trunk, 2 new issues have been identified in the onepagecheckout, and they are:
1) the remove item link does not work in the shoppingcart panel, and
2) the cart is not updated if cart quantity is changed or promo codes are entered.
There was also a caching problem in IE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056672 13f79535-47bb-0310-9956-ffa450edef68
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki
Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.
* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels
I simply fixed some typos. I did not test all cases but did a good review.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056497 13f79535-47bb-0310-9956-ffa450edef68
In: specialpurpose/ecommerce/webapp/ecommerce/order/orderheader.ftl:123
<#assign pmBillingAddress = creditCard.getRelatedOne("PostalAddress")>
is missing the ?if_exists causing errors in some cases.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1056072 13f79535-47bb-0310-9956-ffa450edef68
a map. findByAnd(entityName, field, value, list) was never a valid
call. However, this code still compiled, as it ended up using the
vararg variant of findByAnd. If this code had ever been run, then it
would have blown up.
broken since: 984366, initial commit
date: Wed Aug 11 10:39:10 2010 +0000
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1043999 13f79535-47bb-0310-9956-ffa450edef68
findList method were added, but the actual method name itself was not
changed. However, since there was a vararg version of
findByAnd(Object...), this meant the code actually compiled anyways, so
the problem was not detected.
broken since: 654934
date: Fri May 9 20:57:23 2008 +0000
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1043998 13f79535-47bb-0310-9956-ffa450edef68
To reproduce:
* add two associated products to a main product, both with "Complementary or Cross-Sell" association type
* view the main product in ecommerce
Expected behaviour: the two associated products are listed near the bottom of the page
Actual behaviour: two products are listed at the bottom of the page, but only one of them is an associated product. The other is the main product.
The problem is caused by the value of a freemarker variable changing at a point where other freemarker code assumes the variable does not change. The execution path is complicated.
The patch fixes the problem by saving the value of the key variable into another variable, and restoring it later. However I do wonder if there is a better solution.
JLR: I did not try to find a better solution
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1042411 13f79535-47bb-0310-9956-ffa450edef68