If an anonymous customer changes his/her locale (/control/setSessionLocale) and then places an order in an ecommerce-application, the event ShoppingCartEvents.clearCart(HttpServletRequest, HttpServletResponse) invalidates the session and creates a new one. Due to that the previous locale-switch is lost and is set back to browser- or server-default.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605354 13f79535-47bb-0310-9956-ffa450edef68
When creating a new person, Salutation field is translate in "Salutation" in French. It is a false friend. Salutation in french is : "Civilité"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605348 13f79535-47bb-0310-9956-ffa450edef68
engine tests, when run with java1.7. Apparently, the order of methods
returned by reflection varies between runs, so if methods have implicit
requirements on each other, you get spurious errors.
The are 3 types of fixes:
* Combine the separate testCase methods into one
* Add explict method ordering.
* Make use testCase method completely stand-alone.
The product inventory tests were combined, while the entity engine tests
were restructured to be stand-alone.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605269 13f79535-47bb-0310-9956-ffa450edef68
returns financial account.
Now that EntityCondition lookups work against encrypted fields, there is
no longer a need to do the field encryption locally in the above method.
So, just pass the value directly into the entity engine.
There are also test cases, to prevent this breakage from occurring
again.
This commit depends on r1604967 and r1604968, at the minimum.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604993 13f79535-47bb-0310-9956-ffa450edef68
encryption/decryption happens at the jdbc layer, when values are set
into a PreparedStatement, or fetched from a ResultSet.
This means that conditions are no longer munged to contain the encrypted
value, and entities are no longer updated to temporarily contain the
encrypted value. In all cases, the value of a field in memory will be
unecncrypted.
This fixes the following code patterns:
person = delegator.create("Person", [partyId: "my-party"]);
person.socialSecurityNumber = "1234";
person.store();
// this fails, the encrypted value is stored inside entity
assertEquals("1234", person.socialSecurityNumber);
currentValue = person.socialSecurityNumber
person.store();
// this fails, the field is doubly-encrypted
assertEquals(currentValue, person.socialSecurityNumber);
origCondition = EntityCondition.makeCondition(
"socialSecurityNumber",
EntityOperator.EQUALS,
"1234"
);
list = delegator.findList("Person", origCondition);
newCondition = EntityCondition.makeCondition(
"socialSecurityNumber",
EntityOperator.EQUALS,
"1234"
);
// this fails, because the condition is updated in-place, with the
// encrypted field value.
assertEquals(origCondition, newCondition);
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604976 13f79535-47bb-0310-9956-ffa450edef68
I think indexOf(".") in these code should be lastIndexOf(".").
From CATALOG -> Image Management -> Upload view. upload some Images it will call this method. This method is intended to add (count) to the image name, when the file name was already exist. I debugged in it, the imagePath was the absolute path of the image file. So If any parent folder name contains "." , it will not works correctly.
chunlinyao's Note: And after review the whole ImageManagementServices.java file. I found it use static variables (ex. imageCount imagePath). It is not thread safe.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604554 13f79535-47bb-0310-9956-ffa450edef68
Now the screen only shows the agreements associated to the facility but in order to setup an agreement you have to use the Agreement screens of the Accounting application.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603460 13f79535-47bb-0310-9956-ffa450edef68
The ProductStoreFacilities page does not refresh when actions are performed. When adding or deleting a facility from the store, the result of either action is not reflected on the page even though both are performed. A loading icon appears after clicking action buttons/links so AJAX is probably being used.
Olivier:
bug corrections :
1) areaId was wrong in on-event for edit and in delete button in list
2) replace wrong view-map ListProductStoreFacilityFormOnly by ListProductStoreFacility
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1598913 13f79535-47bb-0310-9956-ffa450edef68
We are also proposing to add the following fields:
ProductSubscriptionResource.gracePeriodOnExpiry
ProductSubscriptionResource.gracePeriodOnExpiryUomId
Subscription.gracePeriodOnExpiry
Subscription.gracePeriodOnExpiryUomId
This will allow the runServiceOnSubscriptionExpiry to trigger the service in SubscriptionResource.serviceNameOnExpiry only after
nowTimeStamp >= Subscription.thruDate + Subscription.gracePeriodOnExpiry.
This provides flexibility in managing the triggering of the deprovisioning service, similar to the flexibility in automatic subscription extensions enabled by Subscription.canclAutmExtTime for runSubscriptionAutoReorders.
jleroux:
I replaced tabs by spaces
Will commit the change in serviceResult.ftl apart
Slightly reformatted SubscriptionServices.runServiceOnSubscriptionExpiry()
Slightly reformatted and added comment in services_subscription.xml for the 2 new services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597235 13f79535-47bb-0310-9956-ffa450edef68
Maxlength via HTML attribute maxlength for Product Store.title is configured as 60. ProductStore.title can store up to 100 characters in the database
jleroux: true also for the store name, both are of SQL type name which is 100 VARCHAR
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1593908 13f79535-47bb-0310-9956-ffa450edef68
A change introduced by SVN commit r1345532 in the inline JavaScript snippet in ReceiveInventoryAgainstPurchaseOrder.ftl causes an error while receiving PO into the facility.
We confused ftl and js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1593902 13f79535-47bb-0310-9956-ffa450edef68
r1125215 broke the possibility to set a currency to a product store.
The automatic product price currency conversion should not be activated by default
Correctly formats changes done by r1125215 in PriceServices.java
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1592977 13f79535-47bb-0310-9956-ffa450edef68
I also spotted something weird. If you change the name of the performFind result-map-list from listIt to eg listIts (in both performFind and removeDuplicateWorkEfforts), you get no results
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1592745 13f79535-47bb-0310-9956-ffa450edef68
I simply reused listIt in removeDuplicateWorkEfforts service which is called after performFind in ListWorkEfforts (itself extended by FoundWorkEfforts)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1592530 13f79535-47bb-0310-9956-ffa450edef68
In current feature set of the manufacturing compoment it is possible to set 'create dependent production run(s). This function will create the dependent production runs and have these shown in the production run.
In other scenario's of managing production runs it is not possible to associate one production run to another in the component. Although it might be needed/required. In order to do this now the user must (at least):
# have direct access to the workflow component (with appropriate permissions)
# look for the correct workeffort
# go to the children tab of the workeffort
# set the association
The improvement will be that the user of the manufacturing component will be able to define (in said component) the association between production runs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589869 13f79535-47bb-0310-9956-ffa450edef68
Now logo image will be display over order pdf. Default value set in fop decorator not working properly, global set to true, Also added check in company header groovy, if logoImageUrl found in groovy then only set to context else default will be used.
Also set the logo width in company header fo.ftl as if logo image is large then it will throw warning related to content overflow on console.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589669 13f79535-47bb-0310-9956-ffa450edef68
Main changes introduced:
* new "Not available" data types that can be applied when transaction, account and resource type are not specified
* fixed some screens that were still displaying the account pk rather than the account code
* misc enhancements to the editing of manual transactions and chart of accounts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589623 13f79535-47bb-0310-9956-ffa450edef68
System is creating the order in CREATED status before processing the payment. But if payment processing encounters a run time exception then system throws the error and does not change the order status to REJECTED. Because Authorize.net payment services are not handling these exceptions correctly.
Ex: If authorize.net payment gateway call get interrupt then method processCard of AIMPaymentServices.java is returning the result map without the 'authResult' kay.
And subsequent method (processAuthTransResult) is trying to access this and thus service is throwing NullPointerException.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1588733 13f79535-47bb-0310-9956-ffa450edef68
Scenario:
1. Go to content webapp
2. Go to CompDoc
3. Find all record
4. Edit any record
5. Click Approvals tab
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581997 13f79535-47bb-0310-9956-ffa450edef68