- codec from 1.6 to 1.10
- validator from 1.4.0 to 1.4.1
- logging from 1.1.2 to 1.2
- net from 3.1 to 3.3
- csv from 1.0 to 1.1
Resolves OFBIZ-6157, OFBIZ-6158, OFBIZ-6159, OFBIZ-6160, OFBIZ-6161
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1667055 13f79535-47bb-0310-9956-ffa450edef68
Error:
FreeMarker template error: The following has evaluated to null or missing: ==> null [in template "component://order/webapp/ordermgr/return/returnItems.ftl" at line 155, column 48]
To reproduce just update the quantity or price of a return item to blank.
Fix:
Prevents Freemarker errors from appearing in the quantity and price input fields when they are set to blank. Perhaps logic should be implemented to prevent the fields from being updated to blank but as of right now its allowed which cause the errors to appear which make the screen look very messy. This patch basically cleans up the screen if either of those scenarios occur.
Prevents OrderView.groovy getReturnableItems error which prevents page from displaying when returnQuantity gets set to blank due to getReturnableQuantity in OrderReturnServices.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666836 13f79535-47bb-0310-9956-ffa450edef68
1. While creating an organization, it is possible to specify a meaningful party id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a Party (Person or Party Group). this means, all the parties created get a sequence id for party id.
If the user inputs a party ID to any of the party creation screens (person, party group, customer, employee or prospect) then that ID will be used, otherwise it will pull a party ID from the sequence bank
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666794 13f79535-47bb-0310-9956-ffa450edef68
<<passing the id in the other field does not work yet with autocompletion, WIP...>>
This works now, just tested on trunk demo
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666474 13f79535-47bb-0310-9956-ffa450edef68
We neglected this aspect so far, adding a "form-name" attribute to the lookup element fixes it. You then need also to set the correct id-name value on field element.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665535 13f79535-47bb-0310-9956-ffa450edef68
===========================================================
Sebastian Wachinger commented on OFBIZ-5893:
Now we have the issue that it is no longer possible to set up, edit or delete *Payment Settings for PayPal* on _catalog/control/EditProductStorePaySetup?productStoreId=9000_
These actions render a lengthy error message referring to _applications/product/webapp/catalog/WEB-INF/actions/store/EditProductStorePaySetup.groovy_ ending with
bq. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [interface java.util.List] [interface java.util.Map])
As a quick fix we had to revert from revision 1647937 to be able to set up payment settings for PayPal.
===========================================================
Thanks Arun for providing the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665198 13f79535-47bb-0310-9956-ffa450edef68
This fix move the code that reads the JSON parameters from the body into the ContextFilter: the parameters are then stored as attributes that can be later used by events and other artifacts (service events, simple events, scripts events support this and Java events if they use UtilHttp.getCombinedMap(request) to get the map of input parameters.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665162 13f79535-47bb-0310-9956-ffa450edef68
java.lang.UnsupportedOperationException: hashCode: org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder
[java] java.lang.UnsupportedOperationException: hashCode: org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder
Thanks to Deepak Dixit for the bug report and for his tests.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1665154 13f79535-47bb-0310-9956-ffa450edef68
Reported by Taher:
Any search form that calls "performFind" and has a "date-find" tag will not persist but it will give correct search results.
For example, If I go to Order -> Requests and search using any of the date fields, the result will be correct but the field will be blank upon returning results. This behavior affects only dates.
I suspect the main offender here is a bug in performFind service or one of the services it calls (prepareFind or executeFind). I believe that the "queryStringMap" does not contain the date-find fields in its returned value. I did not look heavily into the code but I think "fld" types are not persisted in-between requests.
Christian:
This issue is still relevant and needed. The <date-find> values are not persisted after submission due to MacroFormRenderer.java not evaluating value and value2 correctly. In face, value2 isn't event passed to the definition in framework/widget/templates/htmlFormMacroLibrary.ftl. This is a starting point for this functionality. I said starting point because I'm not sure if it handles default values and other field settings that may need to be applied after my patch.
jleroux: It indeed needs to be improved, at least to keep the related date operator... I don't close yet, but would be better to open a new Jira issue...
I simply formatted the patch (tabs instead of 4 spaces) and used UtilGenerics.checkMap() instead of (Map<String, Object>)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664696 13f79535-47bb-0310-9956-ffa450edef68
I have translated fully the framework/common/config/CommonUiLabels.xml & CommonEntityLabels.xml to Arabic. Attached is the patch for both files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1664602 13f79535-47bb-0310-9956-ffa450edef68
Currently the birt reporting component is not visible in the main menu of OFBiz, thereby hindering the adoption
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1663983 13f79535-47bb-0310-9956-ffa450edef68
FOP <fo:external-graphic/> images do not appear when portoffset used:
2015-02-28 18:12:12,249 |http-bio-8445-exec-4 |ApacheFopWorker |I| FOP FontBaseURL: file:/home/anon/workspace/ofbiz/framework/webapp/config/
2015-02-28 18:12:12,254 |http-bio-8445-exec-4 |FOP |D| target-resolution set to: 72.0dpi (px2mm=0.35277778)
2015-02-28 18:12:12,593 |http-bio-8445-exec-4 |FOP |E| Error with opening URL 'http://localhost:8080/content/control/stream?contentId=10004': Connection refused
2015-02-28 18:12:12,616 |http-bio-8445-exec-4 |FOUserAgent |E| Image not found. URI: /content/control/stream?contentId=10004. (See position 40:158)
In framework/webapp/config/fop.xconf <base>http://localhost:8080</base> is hardcoded
This patch employs FopFactory.setBaseUrl() along with the portOffset from Start class.
A better solution might be to extract the port from the baseUrl of fop.xconf and then apply the offset to that but I don't have time to implement that yet.
jleroux: I followed Christian's tip to complete his patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1663979 13f79535-47bb-0310-9956-ffa450edef68
The Following Errors Occurred:
Error running the simple-method: Primary key map "estimatedArrivalWorkEffortMap" not found Method = updateShipment, File = file:/home/anon/ofbiz/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml, Element = <find-by-primary-key>, Line 215null
estimatedArrivalWorkEffortMap is passed to <find-by-primary-key> but never set which causes the error.
jleroux: I was curious about this (was weird), it was missed at r889656, anyway gone...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1663912 13f79535-47bb-0310-9956-ffa450edef68
Onepage checkout process is broken for registered user.
Error in Service [createPartyRole]: Value found (with ids 10000::CUSTOMER), cannot create a new one
Its due to CheckoutServices.xml#createUpdateCustomerAndShippingAddress service, in this service if system try to create party role at line 54, as this service is used for create/update shipping address so at the time of create its working fine but at the time of update it fails to create same party role again.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1663202 13f79535-47bb-0310-9956-ffa450edef68
<@ofbizUrl secure="true">SomeRequest</@ofbizUrl>
will actually use the https protocol. Thanks to Deepak Dixit for reporting discussing the issue and fix with me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662919 13f79535-47bb-0310-9956-ffa450edef68
It would be better if we have most of the demo product data in product or maybe in order component. Because almost all what can be done concerning ordering in ecommerce can also be done in order manager from which anyway ecommerce depends on
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1662093 13f79535-47bb-0310-9956-ffa450edef68
I guess it's due to
require-new-transaction="true"
when calling createProductFacility service, not sure why it was needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661977 13f79535-47bb-0310-9956-ffa450edef68
The issue is actually related with OrderQuoteDemoData.xml. Though I checked that 1st I somehow missed something
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661951 13f79535-47bb-0310-9956-ffa450edef68
If productStore.orderDecimalQuantity OR product.orderDecimalQuantity is set to N, then system should return error if we try to add to partial quantity then system should return error instead of rounding it to 0,
Actual Behavior: If partial quantity is not allowed in order process, and user enter 1.5 quantity then it rounded it and add 2 quantity.
Expected Behavior: if partial quantity is not allowed then system should return error instead of doing rounding if partial quantity passed during add/update item.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661862 13f79535-47bb-0310-9956-ffa450edef68
When reviewing the profit page of a quote the profit percentage is calculated wrong. Instead of dividing the profit by the quote amount giving the margin, the quote amount is divided by the average cost (when provided). Thus giving the quote (amount) to cost ratio.
jleroux: there was an interesting discussion with Divesh Dutta who suggested to calculate the profit mark-up instead of the profit margin as done here.I agree we want the profit margin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661853 13f79535-47bb-0310-9956-ffa450edef68
Quote demo data is missing.
jleroux:
I modified the path to OrderQuoteDemoData.xml in ofbiz-component.xml, it was missing the data/ folder
I changed
Quote.validThruDate="2015-02-01 00:00:00.0"
to
Quote.validThruDate="2100-02-01 00:00:00.0"
To be used longer... enough...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1661786 13f79535-47bb-0310-9956-ffa450edef68