Commit Graph
27737 Commits
Author SHA1 Message Date
Vikas Mayur 25c3810fd8 Added payment lookup specific to Account Receivable and Account Payable application. This fix a bug with the payment types that was showing up wrong values in the lookup screen used before.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950986 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 13:23:47 +00:00
Vikas Mayur 9740afd145 Added invoice lookup specific to Account Receivable and Account Payable application. This fix a bug with the status and invoice type
that was showing up wrong values in the lookup screen used before.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950936 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 10:24:02 +00:00
Jacques Le Roux f65c6e12bf A patch from Bob Morley "Support for order by nulls first/last " (https://issues.apache.org/jira/browse/OFBIZ-3740) - OFBIZ-3740
This patch provides the fundamentals to resolve an issue where the sorting of null values were inconsistent (sometimes sorting first and other times sorting last). Specifically, this patch allows one to create an order-by clause via any of the order-by elements of "-myField NULLS LAST" where this text parses out the - (as descending) and the "nulls last".

Since not all databases support the "nulls" argument on an order by clause (it was introduced as part of the OLAP support specification) , our entity-engine.xml file allows each data source to indicate if it has this support. If the support does not exist and nulls first/last is specified, the sql that is generated uses native sql to simulate the nulls first/last intent. At this time, the derby, postgres, and oracle databases are marked to use the nulls first grammar.

Right now, if you do not specify "NULLS XXX" in the field-name for the order-by it makes no change whatsever (naturally this assumption could be changed to have a default).

It should be noted, that my intent here was ultimately to "properly" model the order by into something whose xml representation could look something like ...
<entity-order-by field-name="fieldName" ascending="true" nulls-first="true" />

Divesh Dutta added a comment - 07/May/10 01:44 AM HI Bob, This patch works as expected for derby, postgres, and oracle databases as you have already mentioned. Cant we have some generic solution which supports all the databases. Or we can have some conditional code, where we can check which datasource is being used, and then generate the sql accordingly. Please let me know your views on this.

Bob Morley added a comment - 07/May/10 08:07 AM
Hi Divesh,
I added a more detailed description in the forum thread; but in brief this is a generic solution which supports all databases which generates the sql accordingly. What this patch does not do is apply a standard default order for all databases; it just adds support for one to dictate how they want the nulls sorted.
For example, when one sets the order-by they can set it to "lastName DESC NULLS FIRST" which should apply to all databases.


The thread Bob was referring above ends at http://markmail.org/message/47z7fwtawehuem6b


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950901 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 07:39:19 +00:00
Jacques Le Roux bdd925bcc7 A patch from Atul Vani for an issue reported by R.S."States of th country Germany shows zero results from both webtools and using services." (https://issues.apache.org/jira/browse/OFBIZ-3799) - OFBIZ-3799
Data to associate the country with states isn't present. This issue is with reference to discussion started by R.S. on user-mailing list subjected as "StateList"
R.S., thanks for reporting the issue.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950893 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 07:12:39 +00:00
Vikas Mayur 17d428c0f6 Applied a slightly modified patch provided by Surya Kusumakar on jira issue OFBIZ-3337 (https://issues.apache.org/jira/browse/OFBIZ-3337)
This fixed a bug with inactive financial account(s) which does show up while creating a new payment or creating a batch of payments.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950892 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 07:12:21 +00:00
Jacques Le Roux 1712eb8e01 A patch from Eric De Maulde 'Config price context doesn't refer to a product store id / product store group id' https://issues.apache.org/jira/browse/OFBIZ-3770 - OFBIZ-3770
For AGGREGATED product, the service "calculateProductPrice" doesn't refer to a product store, in order to select the right registered product price between different productStoreGroupId.
This patch add productStoreId to the price context in order to select the right registered product price

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950870 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 04:28:27 +00:00
Jacques Le Roux e57c2599a9 A patch from Sumit Pandit "Issue in rendering Freemarker Template from String." (https://issues.apache.org/jira/browse/OFBIZ-3782) - OFBIZ-3782
With the help of Bob Morley (it was more a cache issue than what Sumit thought)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950866 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 04:11:32 +00:00
Jacques Le Roux 013853ee4f A patch from Sascha Rodekamp "Edit Category FTL ProductCategory Type Select " (https://issues.apache.org/jira/browse/OFBIZ-3794) - OFBIZ-3794
In the Drop Down field is always the Key Catalog_Category selected. This Patch change the behavior and select a default product Category Type Id 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950864 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 03:46:36 +00:00
Jacques Le Roux 02a39d6bb6 A patch from Sascha Rodekamp "Entity ProdCatalogCategoryType Parent Relation" (https://issues.apache.org/jira/browse/OFBIZ-3793) - OFBIZ-3793
The ProdCatalogCategoryType didn't have a parent Relation. Here is a fix that added a parentTypeId field and the relation definition

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950861 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 03:36:37 +00:00
Jacques Le Roux acbf699a1c Fix a bug introduced at r950481
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950860 13f79535-47bb-0310-9956-ffa450edef68
2010-06-03 03:26:17 +00:00
Adam Heath 9bf10fa9b4 Use the new isEmpty support in conditions to skip
EntityConditionListBase entries that have no children.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950767 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:19 +00:00
Adam Heath fd213c9a3c EntityCondition.isEmpty() support.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950766 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:14 +00:00
Adam Heath e8d8b4f777 Refactor the 2 arg version of the addSqlValue method, to use the List
version.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950765 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:07 +00:00
Adam Heath b2e13f2a28 Add a new marker interface, IsEmpty.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950764 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 21:24:00 +00:00
Erwan de Ferrieres e426da361f Adding missing French entityLabels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950754 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 20:41:27 +00:00
Erwan de Ferrieres 382cf4a4e4 Using the right description for the sent field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950753 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 20:38:42 +00:00
Vikas Mayur 8b95f222cd Fixed an issue with menu item not coming as selected upon selection. Also moved redundant declaration of the headerItem variable in independent
screens to just the screen decorator.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950719 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 18:57:20 +00:00
Vikas Mayur 0d2a61bc29 Replaced
<if-has-permission permission="WORKEFFORTMGR" action="_VIEW"/>
with
<if-service-permission service-name="workEffortManagerPermission" main-action="VIEW"/>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950692 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 17:54:03 +00:00
Jacques Le Roux 36e3342cd7 Accurate documentation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950683 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 17:37:36 +00:00
Vikas Mayur a8fa56bd1a Added the value for CommunicationEvent in screen context so that the menu bar CommEventTabBar do not disappear when user selects
menu item Communication Work Efforts.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950553 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 13:10:43 +00:00
Vikas Mayur a941d5e1ad Reverting my last commit (r950503). Probably not a best solution as the entire menu bar goes away when I tried to
create a new communication event.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950549 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 12:59:31 +00:00
Vikas Mayur 9d0a42299d All the three menus items related to find (Find, Email From Unknown Parties & Find Communication By Order) under Communications header in
party manager should disappear when a user select any communication event from the search result.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950503 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 11:40:27 +00:00
Jacques Le Roux c4a1d52cc6 A patch from Sumit Pandit "Added new status for Contact List" (https://issues.apache.org/jira/browse/OFBIZ-3796) - OFBIZ-3796
With reference of mail at developer mailing list (sub: Contact List Status.) Add two more status for Contact List

    * Unsubscription pending : CLPT_UNSUBS_PENDING
    * Unsubscribed. : CLPT_UNSUBSCRIBED



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950498 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 11:28:03 +00:00
Vikas Mayur e47cf6566c Parameterize the location of the screen decorator CommonCommunicationEventDecorator & CommonMyCommunicationEventDecorator so that it is
easier to override them with custom decorators.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950492 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 11:05:53 +00:00
Marco Risaliti 1498a44fd4 Some missing security permissions for HHFacility, Setup and BI components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950483 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 10:45:44 +00:00
Jacques Le Roux d75fbce90a Allows to initially collapse the search screenlet of a layered lookup, default to false.
It was harder than I though because of the async nature of Ajax. So I had to use a setTimeout with a 400 ms timeout. Hopefully it will work in any environments. I chose 400 because I found it worked well on my machine, 300 also but to be sure I picked 400, 200 was too low it seems.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950481 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 10:44:16 +00:00
Jacopo Cappellato 3b42619762 Formatting fixes: no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950454 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 09:36:15 +00:00
Jacopo Cappellato f22bdccd59 Enhanced Birt view handler to automatically set report parameters in the request.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950452 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 09:34:19 +00:00
Erwan de Ferrieres 81e7c3af7e Adding missing internationalization
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950404 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 07:51:26 +00:00
Adam Heath 0f6803cde9 Re-apply 949617, add new variants of makeConditionWhereString that take
a StringBuilder, and deprecate the old versions that don't.

This works now because of the previous commit.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950339 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 02:18:19 +00:00
Adam Heath 8e173bf9c5 Refactor makeConditionWhereString to use the entity condition system to
build the where string.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950338 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 02:18:14 +00:00
Adam Heath e8ad94f1f2 Revert wrongly committed 950253
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950283 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:02:06 +00:00
Adam Heath ca13adff80 Revert wrongly committed 950254
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950281 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:42 +00:00
Adam Heath 7c326c1d61 Revert wrongly committed 950255
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950280 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:23 +00:00
Adam Heath 6c2124c44f Revert wrongly committed 950256
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950279 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:01:05 +00:00
Adam Heath cd9d308c3d Revert wrongly committed 950257
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950278 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:45 +00:00
Adam Heath cbd11cf3b0 Revert wrongly committed 950258
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950277 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:26 +00:00
Adam Heath 67912df510 Revert wrongly committed 950259
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950276 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 22:00:05 +00:00
Adam Heath 73e0f908c6 Revert wrongly committed 950260
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950275 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:45 +00:00
Adam Heath ce4c794fb6 Revert wrongly committed 950261
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950274 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:21 +00:00
Adam Heath caa519f006 Revert wrongly committed 950262
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950273 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:59:02 +00:00
Adam Heath 610a364ef0 Revert wrongly committed 950263
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950272 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:58:42 +00:00
Adam Heath b1c183fe6f Revert wrongly committed 950264
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950271 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:58:06 +00:00
Adam Heath 9cc1b3e521 Revert wrongly committed 950265
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950269 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:55:59 +00:00
Adam Heath 0a84a9166c Minor fixes to make webtools work underneath webslinger(not ready to go
public).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950265 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:24 +00:00
Adam Heath b05cb1f71d Rewrote filterProductsInCategory to use larger, single queries.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950264 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:18 +00:00
Adam Heath 18cf664161 UserLogin.currentPassword should be treated as opaque, so don't do any
explicit compares against it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950263 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:12 +00:00
Adam Heath b1da3a854c Make use of new HashCrypt cryptPassword functionality.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950262 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:06 +00:00
Adam Heath 2840ae46fb Refactored LoginServices.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950261 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:47:00 +00:00
Adam Heath e4e262751b Add unix(glibc)-compatible password hashing, exact same output, with
support for salts.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950260 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 21:46:54 +00:00