Commit Graph
14503 Commits
Author SHA1 Message Date
Jacques Le Roux 901b1a4a06 Removes tooltip="${uiLabelMap.CommonRequired}" from fields, https://issues.apache.org/jira/browse/OFBIZ-6691
Instead of a quiet S/R action, this was an unexpected pain in the ass. A considerable number of forms:
    EmployeeForms.xml
    EmploymentForms.xml
    EmplPositionForms.xml
    GlobalHRSettingForms.xml
    RecruitmentForms.xml
    QuoteForms.xml
    PartyForms.xml
    StoreForms.xml
    ContactForms.xml
    FixedAssetForms.xml
    TaskForms.xml
    scrumForms.xml
    TaskForms.xml
contained a large number of fields with 
  tooltip="${uiLabelMap.CommonRequired}"
but no 
  required-field="true"


Of course display and display-entity should not be concerned, I spotted a number of them in the lot.

I also removed a bunch of harcoded * at end of labels (those followed by required-field="true"* and spotted a number of others }*"  who still need to be carefully reviewed to see if required=true is not missing there :/

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709882 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 16:57:25 +00:00
Jacques Le Roux 7dc24b6902 A slightly modified patch from Taher Alkhateeb for <<replace widget-style="required" with required-field="true">> https://issues.apache.org/jira/browse/OFBIZ-6690
jleroux: after a cursory review, I simply did the chunk related to exampleName by hand, it needed more work. I also removed some trailing blanks.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709872 13f79535-47bb-0310-9956-ffa450edef68
2015-10-21 16:00:02 +00:00
Jacques Le Roux e27a1c6a18 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
This adds the migrateSalaryStep service to migrates data from OldSalaryStep to SalaryStep.
Since revision 1709214 (2015-10-18) the entity SalaryStep has been deprecated.
This service can be used to upgrade existing data from the OldSalaryStep entity to the new SalaryStep entity.
This service must be run only once, else you will get duplicates.

     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709272 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 12:29:37 +00:00
Jacques Le Roux 636e968393 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
The dateModified field was not modified (not even before auto-engine was used). I found that while changing updateSalaryStep from auto-engine to simple for lastModifiedByUserLogin and setting the createdByUserLogin field in createalaryStep services. It's now fixed
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709271 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 12:26:15 +00:00
Taher A. Alkhateeb a35fc14557 upgrade OFBiz to JDK 8 in reference to the JIRA https://issues.apache.org/jira/browse/OFBIZ-6458
This commit upgrades the framework to Java JDK 8 and prevents compiling
on earlier versions. Hence the build system should be updated to compile on
Java 8. After this point users can commit code holding Java 8 features such
as streams and lambdas

REFS OFBIZ-6458


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709262 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 11:15:59 +00:00
Jacques Le Roux e6b99c9740 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I'm certainly tired so I did not find a smart way to use entity-auto in createSalaryStep service and also create several salary steps different on the from date, at least using the older simple service works.
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709238 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 06:10:57 +00:00
Jacques Le Roux e716671cdb Fixes a wrong lang value, thanks to Adrian on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709236 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 05:35:39 +00:00
Jacques Le Roux ae872ad298 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I also decided that the "Salary StepSeq Id" Lookup needed not only a search on the fromDate but also to display the through date and the amount.
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709231 13f79535-47bb-0310-9956-ffa450edef68
2015-10-18 04:52:40 +00:00
Jacques Le Roux 286e3b6c38 Completes r1709192 for Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I decided other changes (adding a fromDate), notably in "Position Type Rate" and "Lookup Salary StepSeq Id" were not necessary
     





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709214 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 22:04:59 +00:00
Jacques Le Roux 3b423ca8fe Misc. non functional changes which were pending in my working copy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709213 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 22:00:40 +00:00
Jacques Le Roux b333dc9a14 Changes for "SalaryStep entity missing From and Thru dates" https://issues.apache.org/jira/browse/OFBIZ-5758
I applied the patch I created for the Jira and added 
    <parameter param-name="fromDate"/>
in ListSalarySteps form, to be able to delete a salary step from the screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1709192 13f79535-47bb-0310-9956-ffa450edef68
2015-10-17 16:09:43 +00:00
Jacques Le Roux 4584f05a32 A patch from Pierre Smits for "PartyRole Lifespan fields - Have QuoteRole entity work with the change" https://issues.apache.org/jira/browse/OFBIZ-6679
This adds the from an thru date to the QuoteRole entity

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708969 13f79535-47bb-0310-9956-ffa450edef68
2015-10-16 12:09:56 +00:00
Jacques Le Roux 80af9d4438 Fixes a bug reported by Pierre Smits and commented by Vyom Jain at "viewimage in order generates an error" https://issues.apache.org/jira/browse/OFBIZ-6678
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708930 13f79535-47bb-0310-9956-ffa450edef68
2015-10-16 09:14:57 +00:00
Arun Patidar 600358b2f7 [OFBIZ-6674] In addToCart() method, reset shipment method information in cart only if shipping applies on product.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708742 13f79535-47bb-0310-9956-ffa450edef68
2015-10-15 09:11:53 +00:00
Jacques Le Roux d6783003f3 A patch from Wei for "The filter-by-date="true" of <entity-condition></entity> in view entity PartyExport does not work" https://issues.apache.org/jira/browse/OFBIZ-6495
I changed ViewEntityCondition.getWhereCondition(), ViewConditionExpr.createCondition() and ViewConditionList.createCondition() which will add additional condition of filtering by date to where clause.

Please test by following steps.

1. Change the code below in GenericDAO
 if (queryTotalTime > 150) {
    Debug.logTiming("Ran query in " + queryTotalTime + " milli-seconds: " + " EntityName: " + modelEntity.getEntityName() + " Sql: " + sql + " where clause:" + whereEntityConditionParams, module);
}
to  
{code:title=GenericDAO.java|borderStyle=solid}
 if (queryTotalTime > 0) {
    Debug.logTiming("Ran query in " + queryTotalTime + " milli-seconds: " + " EntityName: " + modelEntity.getEntityName() + " Sql: " + sql + " where clause:" + whereEntityConditionParams, module);
}
It will always log the sql to the log file.
2. Open https://localhost:8443/partymgr/control/ImportExport
2. Enter a valid partyId for export and click SUBMIT
3. Check ofbiz.log file under runtime folder. You should able to see the query below which contains filter data condition
SELECT
  PRT.PARTY_ID,
  PRT.STATUS_ID,
  PRT.PREFERRED_CURRENCY_UOM_ID,
  GRP.GROUP_NAME,
  PER.FIRST_NAME,
  PER.MIDDLE_NAME,
  PER.LAST_NAME,
  PR.PARTY_ID_FROM,
  CGRP.GROUP_NAME,
  PRL.ROLE_TYPE_ID,
  CM.CONTACT_MECH_TYPE_ID,
  PCP.CONTACT_MECH_PURPOSE_TYPE_ID,
  CM.INFO_STRING,
  TN.COUNTRY_CODE,
  TN.AREA_CODE,
  TN.CONTACT_NUMBER,
  PA.ADDRESS1,
  PA.ADDRESS2,
  PA.CITY,
  PA.STATE_PROVINCE_GEO_ID,
  PA.POSTAL_CODE,
  PA.COUNTRY_GEO_ID,
  PCM.FROM_DATE,
  PCM.THRU_DATE
FROM (((((((((public.PARTY PRT
LEFT OUTER JOIN public.PARTY_GROUP GRP
  ON PRT.PARTY_ID = GRP.PARTY_ID)
LEFT OUTER JOIN public.PERSON PER
  ON PRT.PARTY_ID = PER.PARTY_ID)
LEFT OUTER JOIN public.PARTY_RELATIONSHIP PR
  ON PRT.PARTY_ID = PR.PARTY_ID_TO
  AND ((PR.ROLE_TYPE_ID_FROM = 'ACCOUNT'
  AND PR.PARTY_RELATIONSHIP_TYPE_ID = 'EMPLOYMENT')))
LEFT OUTER JOIN public.PARTY_GROUP CGRP
  ON PR.PARTY_ID_FROM = CGRP.PARTY_ID)
LEFT OUTER JOIN public.PARTY_ROLE PRL
  ON PRT.PARTY_ID = PRL.PARTY_ID)
LEFT OUTER JOIN public.PARTY_CONTACT_MECH PCM
  ON PRT.PARTY_ID = PCM.PARTY_ID
  AND (((PCM.THRU_DATE IS NULL
  OR PCM.THRU_DATE > '2015-06-15 13:21:30.157')
  AND (PCM.FROM_DATE IS NULL
  OR PCM.FROM_DATE <= '2015-06-15 13:21:30.157'))))
LEFT OUTER JOIN public.POSTAL_ADDRESS PA
  ON PCM.CONTACT_MECH_ID = PA.CONTACT_MECH_ID)
LEFT OUTER JOIN public.CONTACT_MECH CM
  ON PCM.CONTACT_MECH_ID = CM.CONTACT_MECH_ID)
LEFT OUTER JOIN public.TELECOM_NUMBER TN
  ON PCM.CONTACT_MECH_ID = TN.CONTACT_MECH_ID)
LEFT OUTER JOIN public.PARTY_CONTACT_MECH_PURPOSE PCP
  ON PCM.CONTACT_MECH_ID = PCP.CONTACT_MECH_ID
  AND (((PCM.THRU_DATE IS NULL
  OR PCM.THRU_DATE > '2015-06-15 13:21:30.157')
  AND (PCM.FROM_DATE IS NULL
  OR PCM.FROM_DATE <= '2015-06-15 13:21:30.157')))
  AND PCM.PARTY_ID = PCP.PARTY_ID
  AND (((PCM.THRU_DATE IS NULL
  OR PCM.THRU_DATE > '2015-06-15 13:21:30.236')
  AND (PCM.FROM_DATE IS NULL
  OR PCM.FROM_DATE <= '2015-06-15 13:21:30.236')))
WHERE (((PRL.ROLE_TYPE_ID = ?
OR PRL.ROLE_TYPE_ID = ?
OR PRL.ROLE_TYPE_ID = ?)
AND (PRT.STATUS_ID <> ?
OR PRT.STATUS_ID IS NULL)
AND PRT.PARTY_ID = ?))
ORDER BY PRT.PARTY_ID ASC


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708341 13f79535-47bb-0310-9956-ffa450edef68
2015-10-13 11:24:17 +00:00
Jacques Le Roux bd08e516ea This adds caches to CategoryContentWrapper and ProductConfigItemContentWrapper classes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708326 13f79535-47bb-0310-9956-ffa450edef68
2015-10-13 10:58:55 +00:00
Jacques Le Roux ee6164d8bd Fix for ContentWorker at OFBIZ-6669. For that I have added owasp-java-html-sanitizer-r239.jar and put a "content.sanitize=true" property in content.properties with some explanations. The reason I put this property is because the sanitizer does some (safe) changes which might be unwanted in a context where you are "sure" no one can inject/exploit your DB, see the JIra issue for details. Note that this does not affect the *ContentWrapper.java classes where we use OWASP encoding and not sanitizer. The reason we need the sanitizer here is because we are no only handling content but also HTML code...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1708274 13f79535-47bb-0310-9956-ffa450edef68
2015-10-13 00:40:47 +00:00
Jacques Le Roux 9f434a3eba Fixes "ecommerce screen exception" https://issues.apache.org/jira/browse/OFBIZ-6665 reported by Wai
I missed this hidden ProductConfigItemContentWrapper class while working on r1705329 and sequels. I checked there are no other *ContentWrapper classes left now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1707857 13f79535-47bb-0310-9956-ffa450edef68
2015-10-10 10:38:49 +00:00
Gil Portenseigne 0ecf24a4ce OFBIZ-6654 Display of a recurrent workeffort in workeffort calendar do not respect estimatedStart/CompletionDate
Fix getWorkEffortEventsByPeriod service by :
- ignoring actual date timed workeffort in temporal expression process
- excluding workeffort occurence that are out of estimated date range
Thanks Adrian for testing and feedback

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1707791 13f79535-47bb-0310-9956-ffa450edef68
2015-10-09 18:49:42 +00:00
Michael Brohl 99a88a242e Applied patch for OFBIZ-6662: PartyRelationship.securityGroupId not added when adding a PartyRelationship.
When adding a PartyRelationship the value selected for SecurityGroupId is ignored as createPartyRelationship service expects the parameter to be named securityGroupId. The AddOtherPartyRelationship form incorrectly names the field groupId causing the value to be missed in the set-nonpk-fields call in applications/party/script/org/ofbiz/party/party/PartyServices.xml.

Thanks Forrest Rae for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706694 13f79535-47bb-0310-9956-ffa450edef68
2015-10-04 16:15:57 +00:00
Arun Patidar 4f52380dca [OFBIZ-6171] Replacing 'Open for Business' references with 'Apache OFBiz'from remaining occurences.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706593 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:31:12 +00:00
Divesh Dutta 2ceec88c88 [OFBIZ-5579] When adding Asset products into the cart, we will show Number of Persons field in UI only when reserMaxPersons field is defined in Product table. So this way we are binding Number of Persons field to datbase field. This way we avoid confusing UI that we don't show Number Of Persons field when its not needed. Simillarly Number Of Rooms field is also confusing in UI when Asset product is not room. We don't have any way to figure out which product is Room. So for now we have generalized the field and called it quantity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706591 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:20:01 +00:00
Arun Patidar 3865ff485d [OFBIZ-6171] Applied patch from Pierre Smits for replacing 'Open for Business' references with 'Apache OFBiz'.Thanks Pierre for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706589 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 14:15:21 +00:00
Deepak Dixit bf219ed064 (OFBIZ-6663) Fixed broken "Print Deposit Slip" pdf rendering. Thanks Paveen Patil for the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706569 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 12:55:18 +00:00
Arun Patidar 821f38a908 [OFBIZ-4651] Handled error in js code to fix timeout issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706553 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 11:50:09 +00:00
Deepak Dixit 2cc30104b1 (OFBIZ-6584) Display submitter partyId on edit response screen. Now if submitter partyId exists then display the same else logged-in partyId will be displayed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706549 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 11:35:52 +00:00
Arun Patidar f628022292 [OFBIZ-6650] Fixed a typo in product.groovy which causing error on redering product page. Removed additional ')' from the statement
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706531 13f79535-47bb-0310-9956-ffa450edef68
2015-10-03 09:30:52 +00:00
Jacques Le Roux 383a7f3641 Adds a French label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706371 13f79535-47bb-0310-9956-ffa450edef68
2015-10-02 11:01:11 +00:00
Jacques Le Roux 07ebf50fad While working on r1705329 I did not notice that OrderContentWrapper was not using the same scheme than other *ContentWrapper (implementing ContentWrapper interface). This fixes it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706162 13f79535-47bb-0310-9956-ffa450edef68
2015-09-30 21:47:15 +00:00
Jacques Le Roux 079700cac3 Fixes a typo introduced with r1705329
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1706159 13f79535-47bb-0310-9956-ffa450edef68
2015-09-30 21:36:33 +00:00
Jacques Le Roux 0beac33c9f I spotted some misses in FTL templates after r1705329, this fixes them
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1705417 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:52:31 +00:00
Jacques Le Roux 576b5e8fd8 I just spotted cases like
categoryContentWrapper.DESCRIPTION; 
before committing r1705405. This fixes them

Thanks also for Deepak's report about it, it was obvious when you loaded the ecommerce apps


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1705412 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 11:20:18 +00:00
Jacques Le Roux 5b93df6716 I missed some cases, if ever you spot some others or typos please let me know
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1705405 13f79535-47bb-0310-9956-ffa450edef68
2015-09-26 10:24:02 +00:00
Jacques Le Roux cc47525c7c I found a possible XSS attack through ProductContentWrapper.java.getProductContentAsText() which is notably used in several FTL files. This exists also in others *ContentWrapper.java.
Note that in supported releases it's hard to exploit, it's a Stored XSS https://www.owasp.org/index.php/Types_of_Cross-Site_Scripting which means you need 1st to somehow inject exploiting code in the DB.

This fixes it by changing the ContentWrapper interface
from
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId);
    }
to
    public interface ContentWrapper {
        public StringUtil.StringWrapper get(String contentTypeId, String encoderType) {
    }

And changing the Category, Party, Product, ProductPromo and WorkEffort ContentWrapperS accordingly. This means to use 2 types of encoderTypes: "html" and "url".
The "html"  encoderType will be used for all ProductContentTypes but those who contain URL in their ContentTypeIdS (actually end with, "_URL") which will use "url" encoderType.
It concerns not only the get() method but also methods like getPartyContentAsText(), getProductContentAsText(), etc.

It seems a big change but it's straightforward. It's normally complete. 

There are some (unrelated) tabs replaced by spaces here and there, and few trailing spaces removed but nothing big

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1705329 13f79535-47bb-0310-9956-ffa450edef68
2015-09-25 16:27:12 +00:00
Jacques Le Roux d9d30bda83 A patch from Oleg Andreyev for "Errors in ProductSummary.groovy" https://issues.apache.org/jira/browse/OFBIZ-6652
In all releases the code in ProductSummary.groovy tries to collect prices for variants. Doing so it use NumberFormat.format() to transform base price into string that is part of an embed JS snippet. In case purchase order this price is rather empty. Using null with formatting method cause error. You may see this error in the trunk if you starts PO and and try Browser Categories->Widgets->Small Widgets. This price should appear if you select Select Units of Measure for WG-1111 but currently this does not work.
I'm not sure these prices make sense for purchase orders but my goal was just fix ugly error message. Solution display N/A if price is not available. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1705004 13f79535-47bb-0310-9956-ffa450edef68
2015-09-24 07:02:17 +00:00
Jacques Le Roux 2a8dadbc91 No functional changes for https://issues.apache.org/jira/browse/OFBIZ-6651
Removes unused methods (not in Java code, FTL templates and Groovy scripts) in GenericValue and EntityUtil classes + misc related comments or logs
Adds log warning to spot possible use cases in templates and scripts of getRelated() and getRelatedOne() methods

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704769 13f79535-47bb-0310-9956-ffa450edef68
2015-09-23 08:03:45 +00:00
Jacques Le Roux de625ab66b No functional change: in relation with OFBIZ-6649, though we have not (yet) removed the deprecated methods from GenericValue this commit replaces deprecated getRelated() calls in a 1st preparation of this removing .
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704666 13f79535-47bb-0310-9956-ffa450edef68
2015-09-22 16:36:57 +00:00
Jacques Le Roux 4b303f5505 An enhanced patch from Pierre Smits for "Order items for GZ-1006-5 via ecommerce/ordermgr shows error" https://issues.apache.org/jira/browse/OFBIZ-6643
When an order is entered via the ecommerce component for a GZ-1006-5 an error is shown in the order items section

jleroux: actually, as Vyom Jain suggested "This is happening due to changes OFBIZ-6276. Either r1704108 should be reverted or additional patches be provided to avoid this reported issue (which is only one of them). Removing deprecated delegator methods require thorough testing as many as used in scripts and templates." I checked there was only 3 such changes for findByAnd and no others but getRelated where called in *.ftl and *.groovy. This completes the findByAnd case I will create a new Jira for the rest (did not check already, 238 cases!)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704478 13f79535-47bb-0310-9956-ffa450edef68
2015-09-22 08:31:46 +00:00
Jacques Le Roux f4bbab38a7 A modified patch from Oleg Andreyev for "Non-breaking space incorrectly encoded in forms" https://issues.apache.org/jira/browse/OFBIZ-6642
jleroux: rather than replacing &amp;nbsp; by &#160; as Oleg suggested, I removed or replaced by spaces

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704230 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 08:13:56 +00:00
Jacques Le Roux 15520297ff A patch from Pierre Smits for "Replace bsf event type and handler with groovy" https://issues.apache.org/jira/browse/OFBIZ-6598
jleroux: I did the same in order controller (was only in ecommerce) even if only a commented out example was used there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704227 13f79535-47bb-0310-9956-ffa450edef68
2015-09-21 07:54:13 +00:00
Jacques Le Roux d34955cd4b A patch from Gil Portenseigne for "multiple select dropdown listbox shows only one entry" https://issues.apache.org/jira/browse/OFBIZ-6627
Wai reported:
Use this link https://localhost:8443/ordermgr/control/FindRequest
Notice the customer request type id, status id, etc

This patch extend existing asm dropdown implementation to allow several asm dropdown in the same form using a simple ftl.
Find Request use the new ftl in this example.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704082 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 19:53:47 +00:00
Michael Brohl ab33193186 Applied patch for OFBIZ-6515: partymgr/control/EditPartyRelationships add odd-row="alternate-row" for ListPartRelationships and remove navigation-form-name for containing screenlet for better UI.
Displays the relationship table with alternate colors for better visibility and uses the screenlet pagination controls at top/bottom of the list.

Thanks Christian Carlow for this improvement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704036 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 14:11:25 +00:00
Michael Brohl abd6351c67 Applied patch for OFBIZ-6630: Update ShoppingCartItem locale if ShoppingCart locale is changed.
Introduces the setLocale methode for ShoppingCartItem and sets the locale for every item if the ShoppingCart setLocale method is called.

Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704018 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 13:16:53 +00:00
Arun Patidar 8a0af90c0f [OFBIZ-6212] Fixed the issue #1 of Accounting reports due to a minor typo and missing screen.Added a decorator screen for using with accounting report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704014 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 13:09:40 +00:00
Michael Brohl 52acfdedc9 Applied patch for OFBIZ-6526: ordermgr/control/searchorders findOrders service returns incorrect orderCount and therefore viewSize.
This patch replaces the HashSet with LinkedHashSet for fieldsToSelect because otherwise statusId was being added to the front of the set which was then passed to count distinct query causing incorrect counts. LinkedHashSet preserves the order in which items are added so orderId always appears at the front of the set for the count distinct query.

Thanks Christian Carlow for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704005 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 12:46:48 +00:00
Michael Brohl 00904e8b4a Applied patch for OFBIZ-6631: Optimize ShoppingCart.removeCartItem (skip price calc and inventory check).
Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1704000 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 12:31:08 +00:00
Mridul Pathak 16516b6897 [OFBIZ-6091] Supplier preferred currency not considered for drop-ship order. Applying patch from OFBIZ-6091. Thanks Akash Jain for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703988 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:34:41 +00:00
Arun Patidar 832c5ec143 [OFBIZ-5927] Applied the changes as discussed on ticket. Thanks Jacques and Scott for concluding it and thanks to Prateek for reporting this bug.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703981 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 11:08:32 +00:00
Michael Brohl f0b8e2fc5a Applied patch for OFBIZ-6629: Duplicate calculation and typo in ShoppingCart.getGrandTotal().
This removes duplicate code, fixes a methode name typo and adds type safety to an iterator.

Thanks Martin Becker for spotting this and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703977 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 10:45:13 +00:00
Arun Patidar abd8fbdd37 [OFBIZ-6348] Applied patch attached by Christian on the ticket. Reported issue of row alignment has been fixed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1703976 13f79535-47bb-0310-9956-ffa450edef68
2015-09-19 10:30:02 +00:00