Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux 467b42a5f4 A patch from Sebastian Leitner for "Anonymous customer looses locale on order" https://issues.apache.org/jira/browse/OFBIZ-5666
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
2014-06-25 11:39:53 +00:00
Jacques Le Roux ee1bab7307 Better French label from "Traduction of Salutation in French" by Guillaume Sigoigne at https://issues.apache.org/jira/browse/OFBIZ-5668
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
2014-06-25 11:26:18 +00:00
Adam Heath 8ea51fb77e Fix issues with inventory creation/transfer tests, and with the entity
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
2014-06-25 05:27:30 +00:00
Vikas Mayur bd71a876e5 Fix: Bypass the permission check to update communication event if userLogin partyId equals partyIdFrom parameter, useful in certain cases for front-end customers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1605056 13f79535-47bb-0310-9956-ffa450edef68
2014-06-24 11:25:13 +00:00
Adam Heath d4ae304e5a Fix OFBIZ-5565: FinAccountHelper.getFinAccountFromCode() no longer
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
2014-06-24 01:30:56 +00:00
Adam Heath c423838342 Remove encryptConditionFields from the condition objects; now, the
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
2014-06-24 00:24:22 +00:00
Jacques Le Roux 8dc76d665c A proposed fix by chunlinyao for "checkExistsImage method in ImageManagementServices" at https://issues.apache.org/jira/browse/OFBIZ-5658
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
2014-06-22 09:18:39 +00:00
Paul Foxworthy 535e473526 Read gender from person parameter, not PartyNameHistory
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604522 13f79535-47bb-0310-9956-ffa450edef68
2014-06-22 03:22:42 +00:00
Jacques Le Roux a70d6f32d1 A patch from Pierre Smits for "ConvertUom.js contains a bug" https://issues.apache.org/jira/browse/OFBIZ-5661
Due to a missing comma, this function doesn't work properly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1604357 13f79535-47bb-0310-9956-ffa450edef68
2014-06-21 13:21:35 +00:00
Jacopo Cappellato 5f0827e189 OFBIZ-1217: commented out code that was just an example of how to select products with the same feature.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603739 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:31:02 +00:00
Jacopo Cappellato 803bf50497 OFBIZ-5589: Display Currency Uom of Best Selling Product in order component was ignoring the currency of the orders; thanks to Lê Văn Thiêp for the report and to Deepak Dixit for the fix.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603732 13f79535-47bb-0310-9956-ffa450edef68
2014-06-19 07:11:40 +00:00
Jacopo Cappellato c687532188 Fixed issue reported by Pierre Smits in OFBIZ-5274: the menu label "Edit Agreement" was misleading because the screen simply shows the agreements associated to the facility; the agreement type used in the screen doesn't exist in OFBiz; this is because this code (committed by Adam Heath) is a partial implementation of a feature than in its current status is only confusing.
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
2014-06-18 14:25:16 +00:00
Jacopo Cappellato 32dec5e757 Applied fix for OFBIZ-5622: during invoicing, only one ShipmentItemBilling was created for the first InvoiceItem.
Thanks to Christian Geisert for the fix.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603439 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 12:59:05 +00:00
Jacopo Cappellato 5daa29eeab Applied patch from OFBIZ-5592: made more consistent the Chart of Accounts screen in Global GL Settings with the one in Organisational GL Settings.
Thanks to Pierre Smits for the contribution (and to Anahita Goljahani for the tests).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1603434 13f79535-47bb-0310-9956-ffa450edef68
2014-06-18 12:50:41 +00:00
Jacques Le Roux 422694c07e Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1599112 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 08:11:03 +00:00
Jacques Le Roux f23f0041a0 Changes a bunch of Thru to Through (kept all truDate in a sole word to avoid ambiguities)
Note tough that thru is even in the Collins http://dictionary.reference.com/browse/thru

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1599110 13f79535-47bb-0310-9956-ffa450edef68
2014-06-02 08:02:15 +00:00
Jacques Le Roux 00b535d98b A patche from Olivier Heintz for "ProductStoreFacilities page does not refresh information after actions are performed" https://issues.apache.org/jira/browse/OFBIZ-5408
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
2014-05-31 20:10:54 +00:00
Jacques Le Roux 79d38296fb 2 patches from Deepak Dixit for "If customer pay higher than amount due, POS issues an error 'Problem with order change'." https://issues.apache.org/jira/browse/OFBIZ-5611
If customer pay higher than amount due, POS issues an error 'Problem with order change'. 

Deepak: 
This is due to changes done at r#1186102 (http://ofbiz.markmail.org/message/orewmkxnalebolke?q=1186102)
Removed incorrect condition form createPaymentApplication service.
Also found type in PaymentEvents.java file (Xuilabels == > XuiLabels).


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597464 13f79535-47bb-0310-9956-ffa450edef68
2014-05-25 20:04:08 +00:00
Jacques Le Roux b844d4e9bb A (slightly modified) patch from Yvan Cauchy for "Trigger for service to run upon subscription expiry" https://issues.apache.org/jira/browse/OFBIZ-5333
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
2014-05-24 04:37:16 +00:00
Paul Foxworthy 2aaec0e464 Change getProductInventoryAvailable to use a transaction for EntityListIterator
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1597067 13f79535-47bb-0310-9956-ffa450edef68
2014-05-23 11:48:46 +00:00
Jacques Le Roux 516a3b0299 Removes useless entried in ofbiz-component.xml files
Indicates what to do in README for accounting optional libs

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1595658 13f79535-47bb-0310-9956-ffa450edef68
2014-05-18 19:00:58 +00:00
Paul Foxworthy dad62c594f Ensure invoicePerShipment variable always has a value and is never null.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1594141 13f79535-47bb-0310-9956-ffa450edef68
2014-05-13 06:33:57 +00:00
Jacques Le Roux 785a767c3e Fixes https://issues.apache.org/jira/browse/OFBIZ-5633 "Inline style being applied to Order Manager > Find Orders"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1593952 13f79535-47bb-0310-9956-ffa450edef68
2014-05-12 12:56:21 +00:00
Jacques Le Roux 459f6ad6c5 Fixes https://issues.apache.org/jira/browse/OFBIZ-5635 "Store title to be 100 characters"
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
2014-05-12 09:04:23 +00:00
Jacques Le Roux 200929a2e3 Reverts r1592530 for OFBIZ-5637 "Cannot receive PO shipment"
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
2014-05-12 08:03:35 +00:00
Jacques Le Roux 3fe1f58582 Fixes a regression introduced by r1125215 "Add an automatic product price currency conversion which can be switched off in a properties file."
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
2014-05-07 11:44:44 +00:00
Jacques Le Roux f6198ee0fb Reverts r1592530 for OFBIZ-5629. Ahmad Ludin reported on dev ML that it was not working. I'm sure I saw it working, now wonder how it did work.
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
2014-05-06 13:45:38 +00:00
Jacques Le Roux 659588447d I stumbled upon this today and I agree with Deepak: http://markmail.org/message/2bsurgd52crssldk
So backporting also to R13.07 (only)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1592588 13f79535-47bb-0310-9956-ffa450edef68
2014-05-05 17:53:53 +00:00
Jacques Le Roux 76ff286efe Fixes "Pagination at find WorkEffort screen does not work" https://issues.apache.org/jira/browse/OFBIZ-5629
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
2014-05-05 14:06:47 +00:00
Jacques Le Roux 423bdb3e27 Fixes a bug which slipped in with r1589869. Thanks to Jacopo who spotted him, related to OFBIZ-5223 and OFBIZ-5224
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1590063 13f79535-47bb-0310-9956-ffa450edef68
2014-04-25 15:48:40 +00:00
Jacques Le Roux 5f62965d3e A patch from Pierre Smits for "Be able to manually set preceding or succeeding production runs" https://issues.apache.org/jira/browse/OFBIZ-5523
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
2014-04-24 20:23:44 +00:00
Jacques Le Roux a6339f8cf9 A patch from Deepak Dixit for "Scale logo to fit content area in PDF which are based on simple decorator" https://issues.apache.org/jira/browse/OFBIZ-5006
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
2014-04-24 11:35:44 +00:00
Jacopo Cappellato ce58b9e0c4 Usability improvement for management of manual Gl transactions (OFBIZ-5559): thanks to Anahita Goljahani for the patch and to Pierre Smits for the tests and review.
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
2014-04-24 07:39:46 +00:00
Jacopo Cappellato 9671c45841 Automatically removes requirement roles before deleting a requirement: thanks to Nicolas Malin for the patch from OFBIZ-4921
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589612 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 07:15:24 +00:00
Jacopo Cappellato 72836f89b4 Fix by Michael Brohl from OFBIZ-5605: Duplicate FileExtension entry for jpg in MimeTypeData.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589606 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:46:55 +00:00
Jacopo Cappellato 1fb8025740 Fix for FOP warnings reported by Kiran Gawde in OFBIZ-4493: thanks to Deepak Dixit for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589602 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:33:00 +00:00
Jacopo Cappellato 3928521b52 Applied fix by Deepak Dixit (OFBIZ-4493) to fix a class cast exception (after commit 1553890).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1589601 13f79535-47bb-0310-9956-ffa450edef68
2014-04-24 06:29:37 +00:00
Jacques Le Roux a482e3c463 A patch from Ritu Raj Lakhera for "Authorize.net payment services are not handling run time exceptions correctly" https://issues.apache.org/jira/browse/OFBIZ-5617
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
2014-04-20 10:13:44 +00:00
Jacques Le Roux 5633d63704 Better French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1587484 13f79535-47bb-0310-9956-ffa450edef68
2014-04-15 09:26:16 +00:00
Jacques Le Roux f420b2a36d Minor fix (resource leak): csvReader was not closed in case of exception
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1587217 13f79535-47bb-0310-9956-ffa450edef68
2014-04-14 14:40:40 +00:00
Jacques Le Roux 141ce6baeb Fixes tabs instead of spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1587213 13f79535-47bb-0310-9956-ffa450edef68
2014-04-14 14:14:49 +00:00
Jacopo Cappellato 745ab985de Removed hardcoded formatting
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583917 13f79535-47bb-0310-9956-ffa450edef68
2014-04-02 07:40:42 +00:00
Jacques Le Roux f89f3be3e3 Fixes some French labels related to agreement and term
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1583681 13f79535-47bb-0310-9956-ffa450edef68
2014-04-01 14:31:39 +00:00
Jacopo Cappellato 52c7659c23 Moved two util methods for billing accounts from the "accounting" to the "order" component and removed duplicated code from the order component that was there to avoid a cyclic dependency between the two components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1582774 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 15:05:23 +00:00
Jacopo Cappellato 0f35daba70 Fixed tests failing for DST differences between server and client: the time difference can be 1 or to 2 hours.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1582762 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 14:36:44 +00:00
Jacopo Cappellato 28f1c9aa02 Only formatting changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1582755 13f79535-47bb-0310-9956-ffa450edef68
2014-03-28 14:18:09 +00:00
Jacques Le Roux b81b183404 A patch from Rong Nguyen amended by Nicolas Malin for "Approvals function doesn't work for first time" https://issues.apache.org/jira/browse/OFBIZ-5555
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
2014-03-26 18:38:25 +00:00
Jacopo Cappellato 8529d5706c Misc fixes to get the right values for total cost and total retail value of inventory items; thanks to Igor Gallingani for the bug report in OFBIZ-4985.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581972 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 18:07:07 +00:00
Jacopo Cappellato a6985ecba6 Removed code based on a field that doesn't exist.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581788 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 11:32:32 +00:00
Jacopo Cappellato 6c2ef6ad93 Redirected the "Create Bom" link, and removed the unnecessary/duplicated screen that was linked to it, to the "Edit Product BOM" screen. This fixes OFBIZ-5483 (thanks to Christian Carlow for the report).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1581712 13f79535-47bb-0310-9956-ffa450edef68
2014-03-26 07:29:55 +00:00