Commit Graph
27737 Commits
Author SHA1 Message Date
Jacopo Cappellato 8493d5f3cc Fix for error generated by the ViewFacilityInventoryByProduct screen because one of its forms was referencing an undeclared variable. Patch contributed by Deepak Dixit in OFBIZ-6052.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656983 13f79535-47bb-0310-9956-ffa450edef68
2015-02-04 04:25:06 +00:00
Jacques Le Roux 64088836d6 A patch from Wei Zhang for "Return <strong> tag for Autocomplete Dropdown highlight" https://issues.apache.org/jira/browse/OFBIZ-6036
I got the highlight text like <strong>US</strong> for Autocomplete Dropdown. See http://demo-trunk-ofbiz.apache.org/example/control/FormWidgetExamples

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656445 13f79535-47bb-0310-9956-ffa450edef68
2015-02-02 12:00:23 +00:00
Jacques Le Roux 19c1dc1c0b Removes a no longer needed comment, this was fixed at r1656198
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656200 13f79535-47bb-0310-9956-ffa450edef68
2015-01-31 14:48:56 +00:00
Jacques Le Roux d7e7028b2f Fixes a trivial bug introduced by Nicolas at r1649965 for OFBIZ-5905
Reported by Eduardo Arellano at https://issues.apache.org/jira/browse/OFBIZ-6049 "Error on Convert Lead"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656198 13f79535-47bb-0310-9956-ffa450edef68
2015-01-31 14:35:32 +00:00
Jacques Le Roux 240ad839a4 A patch from Youssef Khaye to finally fix "Incorrect quantityNotAvailable for OrderItemShipGrpInvRes when issuing items to shipments" https://issues.apache.org/jira/browse/OFBIZ-5364
This patch fixes the problem from a functional point of view and consequently the JUnit test in question.

In fact, functionally speaking, The previous patch is not good in measure or it does not take into account that an OrderItem might use several lines of stock InventoryItem.
orderId     orderItemSeqId  orderItemShipGrpSeqId   InvetoryItemId
10000       000001              10000                               000001
10000       000001              10001                               000001

So by making a stock exit (ItemIssuance) we can afford to cancel the reservation lines for the line of stock in question but not all the lines of stock.
That's why I added the lines in the inventoryItemId research question and then cancel a reservation!

While at it I reverted r1653056 since testMultipleInventoryItemIssuance now passes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656185 13f79535-47bb-0310-9956-ffa450edef68
2015-01-31 11:37:14 +00:00
Nicolas Malin f6bc517122 (OFBIZ-6047) Convert DataSource, Enumeration and Note entites CRUD service from simple to entity-auto. I remove also some end line space on CommonService.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656125 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 21:41:34 +00:00
Adrian Crum ee70626d67 Fixed a bug caused by recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-6041.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1656014 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 13:45:49 +00:00
Jacopo Cappellato e1fa200abb Implemented missing code to properly handle accounting transactions for foreign currency converion rates gain/losses.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655979 13f79535-47bb-0310-9956-ffa450edef68
2015-01-30 10:44:44 +00:00
Jacques Le Roux cc803c5d08 This implements OFBIZ-5312 "Proposal: URL-Generation Changes (mostly for SEO reasons but not only)" by merging the "SEO branch" in trunk
After some efforts to take into consideration Anil's justified concerns (simply put: keep the current behaviour), the modifications are finally light, which is greater for reviews. Most important are:
* Product component
  ** I have moved the OfbizCatalogAltUrlTransform and OfbizCatalogUrlTransform classes to a ftl subdirectory with the new FTL macros implementation: CatalogAltUrlSeoTransform, CatalogUrlSeoFilter, CatalogAltUrlSeoTransform, CatalogUrlSeoTransform, SeoTransform, UrlRegexpTransform
  ** A bunch of new filters have been added CatalogUrlSeoFilter, controlServlet, SeoCatalogUrlServlet, SeoContentUrlFilter, SeoContextFilter, SeoControlServlet, UrlRegexpContextFilter
  ** 2 util classes: SeoConfigUtil, SeoUrlUtil
  ** By default ofbizCatalogAltUrl and ofbizCatalogUrl macros now use the new implementations by CatalogAltUrlSeoTransform and CatalogUrlSeoTransform. This can be changed back in freemarkerTransforms.properties
  ** A SeoConfig.xml file define some SEO parameters, the SeoConfig.xsd can be sued as documentation, globally please refer to OFBIZ-5312.
* Framework webapp component
  ** By default ofbizUrl macro now uses the new implementations by UrlRegexpTransform. This can be changed back in freemarkerTransforms.properties
* Ecommerce component
  ** A new ecomseo webapp clones the ecommerce webapp on the model of ecomclone. There is not much there: mostly a controller with a new JspViewHandler class (in ecommerce) and a web.xml file

With these changes we can have both worlds running side by side. So you can use eitherb http://localhost:8080/ecommerce/control/main as root or http://localhost:8080/ecomseo, but also if you want http://localhost:8080/ecommerce/. Then everything follows.

From my reviews and tests all is working as expected. I only found a trivial bug that I can also reproduce in current trunk see OFBIZ-5305 (sometimes not locally, weird).

Of course, all the tests passes. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655803 13f79535-47bb-0310-9956-ffa450edef68
2015-01-29 19:06:49 +00:00
Adrian Crum 1a595f70ab Fixed a NPE bug in ModelViewEntity, reported by Christian Carlow on the user mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655795 13f79535-47bb-0310-9956-ffa450edef68
2015-01-29 18:47:29 +00:00
Jacques Le Roux 3d70574a24 Fixes a bug which was left over with r1562767
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655668 13f79535-47bb-0310-9956-ffa450edef68
2015-01-29 14:02:15 +00:00
Nicolas Malin 6fd6e8a049 A patch from Anne Jessel to Support filtering on non-std date field names in performFind and prepareFind (OFBIZ-4374).
With the difficulty to test, I create a new test-suite performfindtests with five junit :
 * testPerformFindConditionFieldEquals
 * testPerformFindConditionFieldLike
 * testPerformFindConditionDistinct
 * testPerformFindFilterByDate
 * testPerformFindFilterByDateWithDedicateDateField
I also improve TestNodeMember with two fields extendFromDate and extendThruDate to realize filter on it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655499 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 23:25:40 +00:00
Jacques Le Roux d3a58f3ee4 Commits small RequestHandler.java changes after r1535432 (related with OFBIZ-5312)
This is in preparation of the SEO branch merging, still WIP but should be soon

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655367 13f79535-47bb-0310-9956-ffa450edef68
2015-01-28 15:41:07 +00:00
Nicolas Malin 7fe9ad2a9c No functional change, reorganise some field on one line, remove double space and remove value present as default on submit button
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655170 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 21:46:33 +00:00
Nicolas Malin 82495fe78d Little improvement to adding uom to product quantity in production run forms (OFBIZ-5752), proposition and initial patch from Guillaume Sigoigne, thanks to him.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655165 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 21:28:15 +00:00
Jacopo Cappellato 71891a76fb Moved out from JobManager.getInstance the call to reloadCrashedJobs because it was causing a deadlock issue at bootstrap when an eca rule of type "validate" is defined on the JobSandbox entity.
At bootstrap an eca definition like the following:
   <eca entity="JobSandbox" operation="store" event="validate">
          <action service="ping" mode="sync"/>
   </eca>
 is causing a deadlock because it is triggered at startup when the reloadCrashedJobs method is executed; reloadCrashedJobs  is executed holding a lock on the JobManager object; within this method a "find" operation is performed that (because of the "validate" event) triggers the action; but for this a getDispatchContext is executed and this blocks until the task (executed by a thread Executor) that reads and setups the eca rules is complete; but this task requires a lock on the same JobManager object and thus we get the deadlock
Thanks to Arun Patidar and Deepak Dixit for analyzing the issue with me.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655046 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 14:02:50 +00:00
Jacopo Cappellato 7388a6407e Reverting my last commit for now as it because, after furthr testing it has no effect on the deadlock issue we are facing (the cache is already disabled by default so the change I did was irrelevant).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655013 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 11:32:31 +00:00
Jacopo Cappellato 9673c8c1a6 When selecting crashed JobSandbox records, disable cache: this makes sense for the specific use case but more importantly it fixes an intermittent deadlock issue that was occurring at startup when loading eca rules. Thanks to Arun Patidar and Deepak Dixit for reporting and analyzing the issue with me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1655010 13f79535-47bb-0310-9956-ffa450edef68
2015-01-27 11:22:52 +00:00
Adrian Crum 828aff751a Fixed a bug in the form widget models where a default type was not being supplied under certain circumstances - https://issues.apache.org/jira/browse/OFBIZ-6037.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654824 13f79535-47bb-0310-9956-ffa450edef68
2015-01-26 14:58:43 +00:00
Adrian Crum dbd5cc3e69 Restore private final fields in ModelForm.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654684 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 18:39:51 +00:00
Adrian Crum b1737aee5d Eliminated redundant code in the new widget classes. ModelSingleForm and ModelGrid are effectively light-weight "decorators" for the ModelForm abstract class. ModelForm still retains code for all form types (single and list) - because any attempt to separate the functionality will result in an avalanche of code modifications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654683 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 18:36:26 +00:00
Adrian Crum 2818037cc7 Updated widget visitor for new grid widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654673 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:57:44 +00:00
Adrian Crum 3d3ea2ad67 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654672 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:56:26 +00:00
Adrian Crum 771e10f1c4 First pass at extracting grid widget from the form widget. This commit has a lot of duplicate code - future commits will reduce and reuse the duplicate code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654670 13f79535-47bb-0310-9956-ffa450edef68
2015-01-25 17:18:24 +00:00
Sharan Foga 213e3c4128 OFBIZ 6015 - added more HR help pages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654509 13f79535-47bb-0310-9956-ffa450edef68
2015-01-24 13:09:37 +00:00
Jacques Le Roux fb3a2adcc5 Fixes a bug, and get rid of some more bsh scriptlets
2015-01-23 18:19:10,216 |http-bio-8443-exec-6 |FlexibleStringExpander        |W| Error evaluating scriptlet [${bsh:isPromo!=null&&isPromo.equals("Y")}]; error was: java.lang.IllegalArgumentException: Error ru
nning bsh script [isPromo!=null&&isPromo.equals("Y")]: javax.script.ScriptException: Sourced file: inline evaluation of: ``isPromo!=null&&isPromo.equals("Y");'' : Attempt to resolve method: equals() on undefi
ned variable or class name: isPromo : at Line: 1 : in file: inline evaluation of: ``isPromo!=null&&isPromo.equals("Y");'' : isPromo .equals ( "Y" )

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654273 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 17:23:12 +00:00
Jacques Le Roux 10f596620a A patch from Pierre Smits for "ViewQuoteItemInfo.ftl has <td></td> at the wrong place" https://issues.apache.org/jira/browse/OFBIZ-6030
When a product has been added to a quote and subsequently looking at http://demo-trunk-ofbiz.apache.org/ordermgr/control/ViewQuote it shows that the quantity and sel. amount are positioned wrong (1 column to the right of where they should be).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1654175 13f79535-47bb-0310-9956-ffa450edef68
2015-01-23 11:34:44 +00:00
Jacques Le Roux 9cea2f4397 No functional changes. Despite that I don't like how the lookups are not inlined by default in FTL templates (so I had to separate them by line to keep things clear) I still prefer to have lookups for product and party. Here they are for rules actions creation and update
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653938 13f79535-47bb-0310-9956-ffa450edef68
2015-01-22 16:35:19 +00:00
Jacques Le Roux 9bfe114d10 Fixes a bug, there is no LookupParty only LookupPerson and LookupPartyGroup. anyway I believe here we should rather use LookupUserLoginAndPartyDetails because no reasons to exclude a PartyGroup or a Person
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653934 13f79535-47bb-0310-9956-ffa450edef68
2015-01-22 16:28:14 +00:00
Jacques Le Roux 7abdb62c51 No functional changes, fixes misc. typos while working on OFBIZ-1560
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653916 13f79535-47bb-0310-9956-ffa450edef68
2015-01-22 15:35:10 +00:00
Adrian Crum 1a23f8c1d7 Some fixups for the recent widget refactor.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653614 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 17:35:49 +00:00
Adrian Crum 350053b05f Fixed a portal menu item bug caused by the recent widget refactoring - https://issues.apache.org/jira/browse/OFBIZ-6022.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653597 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 16:54:18 +00:00
Jacques Le Roux 6c48f830c8 A slightly modified patch from Pierre Smits for "Remove Portal Management code from Framework/WebTools." https://issues.apache.org/jira/browse/OFBIZ-5817
Remove code related to Portal Management functionality from WebTools after equivalent code in MyPortal has been committed. 

jleroux: I just removed also the FindPortalPage entry in Webtools main.ftl


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653481 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 11:27:16 +00:00
Jacques Le Roux a6d02f7e33 Non functional change, change name WebtoolsAdminPortalPage to MyPortalAdminPortalPage
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653479 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 11:09:09 +00:00
Jacques Le Roux 9e48ae2842 A patch from Pierre Smits for "Move Portal Mgt functions in MyPortal" https://issues.apache.org/jira/browse/OFBIZ-5812
Portal page admin functionalities are included in WebTools, but should be also in MyPortal for those users that don't have access to WebTools.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653477 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 10:52:21 +00:00
Jacques Le Roux 6b0e0fe346 Fixes "Gift card reload service not working OOTB" https://issues.apache.org/jira/browse/OFBIZ-5914
jleroux: this issue was only in ecommerce, order manager worked once you followed the FAQ about fin account and GC. It simply missed a test on product.requireAmount

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653456 13f79535-47bb-0310-9956-ffa450edef68
2015-01-21 08:04:10 +00:00
Adrian Crum c71dc63d27 Fixed a lookup bug caused by the recent widget refactoring, reported by lmac on the user mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653296 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 16:51:56 +00:00
Sharan Foga 1f4c0345cd OFBIZ-6015 updated HR Help Screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653248 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 13:59:18 +00:00
Jacques Le Roux d5c3acb587 Slightly modified uilabels patch from Pierre Smits for Dutch translations https://issues.apache.org/jira/browse/OFBIZ-6016
jleroux: I have made some changes within these changes, in agreement with Pierre


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653224 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 11:05:22 +00:00
Jacques Le Roux 0f284fb6af Slightly modified bunch of uilabels patches from Pierre Smits for Dutch translations (Manufacturing, Order, Party)
https://issues.apache.org/jira/browse/OFBIZ-6018
https://issues.apache.org/jira/browse/OFBIZ-6019
https://issues.apache.org/jira/browse/OFBIZ-6020

jleroux: I have fixed some trivial issues within these changes, 
Wrong change at <value xml:lang="fr">OFBiz: Gestion commerciale</value>
Removed all Dutch changes which were simply duplicating the English ones

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653208 13f79535-47bb-0310-9956-ffa450edef68
2015-01-20 07:40:50 +00:00
Jacques Le Roux aa2b996605 A modified patch from Pierre Smits for "Adding som Dutch translations to common labels." https://issues.apache.org/jira/browse/OFBIZ-6016
jleroux: I removed 
3 specific comments
<!-- ORRTIZ: TAXREPORT -->
<!-- GEO -->
<!-- ORRTIZ:BMS Applications -->
2 duplicates
<value xml:lang="nl">Gesynchroniseerd</value>
<value xml:lang="nl">Req. - geannuleerd</value>
For the later I kept the old one which seems more complete

I replaced 2482 <value xml:lang="(.*)_(.*)"> by <value xml:lang="(.*)-(.*)">


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653143 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 22:32:25 +00:00
Jacques Le Roux 1a6dfc2dce Temporary removes this test (testMultipleInventoryItemIssuance) after r1649408 and r1650455
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1653056 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 17:16:52 +00:00
Jacques Le Roux f365a54b85 Reverts r1652814, it makes a number of tests to fail
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652923 13f79535-47bb-0310-9956-ffa450edef68
2015-01-19 06:43:25 +00:00
Adrian Crum dcecdd25a4 Reorganized the screen widget src folder so classes are more organized.
This commit might break some Groovy scripts. There seemed to be a lot of C&P widget import statements, but there were no widget classes being used in the script, so I removed them. I might have overlooked something though.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652852 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 21:03:40 +00:00
Jacques Le Roux 3a2e9f7af5 "Gift card reload service not working OOTB" https://issues.apache.org/jira/browse/OFBIZ-5914
Introduces inventory data for GC-002 to have the amount field showing at ecommerce/gift-card-reload-GC-002-p. This field depends on ProductFacility.lastInventoryCount column

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652814 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 17:41:13 +00:00
Jacques Le Roux ef7494f2f2 Improvement, I had enough to remove trailing blanks when filtering by entity name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652803 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 17:19:03 +00:00
Jacques Le Roux 1a585cf8d9 A patch from Pierre Smits for "Form TotalProdBacklog has typo in link" https://issues.apache.org/jira/browse/OFBIZ-5979
This bug was introduced in commit: http://svn.apache.org/viewvc?view=revision&revision=1142915

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652739 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 11:38:17 +00:00
Jacques Le Roux 109c1911c6 No functional changes, only replaces tabs (introduced by r1352861 by 4 spaces in fieldlookup.js
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652738 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 11:33:12 +00:00
Jacques Le Roux 928b06c495 A patch from Gareth Carter for "framework/images/webapp/images/fieldlookup.js throws a javascript error in google chrome from a link to ofbiz from another site" https://issues.apache.org/jira/browse/OFBIZ-5968
When you link to your ofbiz installation from another site using _blank as the target and protocol is changing from http to https, google chrome will throw an error - 
Blocked a frame with origin "https://ofbiz.company.com" from accessing a frame with origin "http://other.company.com".  The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.

This error may prevent other javascript from executing (this has caused, in our ofbiz installation, datetimepickers from working properly)

jleroux: this simply adds a try/catch block and use the parent in case of failure

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652731 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 11:12:11 +00:00
Jacques Le Roux c71805f4ce A patch from Amardeep Singh Jhajj for "Main storefront page, Featured Products (middle column) overwrites right column. Should just crop column, but not overwrite right column." https://issues.apache.org/jira/browse/OFBIZ-2602
Simply increases the width of the left and right screens. It is more appropriate UX and fixes the issue. Checked in Safari MAC OS (8.0) and latest Google Chrome, Firefox, it is working fine there.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652725 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 10:23:59 +00:00