Commit Graph
24305 Commits
Author SHA1 Message Date
Deepak Dixit e95c7eb261 Fixed: fix tag "disable-if-empty" in menus if field has no value (OFBIZ-9377)
Thanks Gaudin Pierre and Humera Khan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801336 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 22:54:06 +00:00
Arun Patidar 44c0caa799 Improved: Set autocomplete to off for all the password fields.(OFBIZ-9471)
Thanks Ritesh Kumar for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801324 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 21:07:51 +00:00
Arun Patidar 8a3f704e53 Fixed: ACCTG TRANS ENTRIES PDF link on invoiceOverview does not work. (OFBIZ-6774)
Thanks Morten and Ankit Joshi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801320 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 20:24:35 +00:00
Arun Patidar c0d7847cfc Fixed: Missing productId in input field after Atp/Qoh button is clicked on create PO screen. (OFBIZ-9470)
Thanks Pallavi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801319 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 20:06:38 +00:00
Arun Patidar 6fd5fd2546 Fixed: UI issue in ATP/QOH table on Create Purchase Order screen. (OFBIZ-9468)
Thanks Pallavi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801318 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 19:52:35 +00:00
Arun Patidar 09352ae0f9 Fixed: Alignment issue at Catalog Manager page. (OFBIZ-9461)
Thanks Sanjay Yadav and Humera Khan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801316 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 19:07:45 +00:00
Deepak Dixit 70ea1b55c2 Fixed sequencing for ILS locale description.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801314 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:44:48 +00:00
Arun Patidar e85c824585 Improved: Use serviceUtil() in place of hard-coded error/success messages. (OFBIZ-9466)
Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801313 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:43:54 +00:00
Deepak Dixit 7bb7ac13ea Added mistakenly removed valued for ILS entity uiLabel.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801312 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:42:29 +00:00
Deepak Dixit 0d6bc54720 Fixed: Removed duplicate uiLable for ILS currency, also fix translation for French locale. (OFBIZ-9413)
Thanks Jacques for reporting

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801311 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:39:30 +00:00
Arun Patidar d995b1c130 Improved: Improvements in OrderHeader entity definition and services. (OFBIZ-9457)
Thanks Rishi solanki and Aishwary Shrivastav for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801310 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:38:17 +00:00
Arun Patidar 3ddf59ccf6 Fixed: Create New button is misplaced on Party Content Screen.(OFBIZ-9328)
Thanks Devanshu and Humera for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801308 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 18:34:08 +00:00
Arun Patidar 39e6808e24 Fixed: Incorrect MimeTypeId value shown if the form is submitted. (OFBIZ-9344)
Thanks Devanshu Vyas for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801303 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 17:17:48 +00:00
Deepak Dixit fc8179ca26 Removed mistakenly added file in r#1801300
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801302 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 17:17:22 +00:00
Arun Patidar 02d1ae2382 Fixed: Issue due to my previous commit of consistent pattern in comparision.(OFBIZ-9254)
Thanks Swapnil Mane for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801301 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 16:14:21 +00:00
Divesh Dutta 83bf3906a2 Fixed:Accounting quantity transfer should not be zero while transferring inventory from one facility to another (OFBIZ-9464)
Thanks Vaibhav Jain for reporting this issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801300 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 16:06:04 +00:00
Deepak Dixit 14f9c7331d Improved: Following uiLabels should move from ProductUiLabels.xml to CommonEntityLabels.xml. (OFBIZ-9408)
ProductShipmentUomAbbreviation_LEN_in
    ProductShipmentUomAbbreviation_WT_g
    ProductShipmentUomAbbreviation_WT_kg
    ProductShipmentUomAbbreviation_WT_lb
    These labels should be written in similer pattern as other labels of "Uom" entity are written in CommonEntityLabels.xml, for example :
    ProductShipmentUomAbbreviation_LEN_in will be written as
    Uom.abbreviation.LEN_in
    <entityName>.<fieldName>.<PrimaryKey>

Thanks Renuka for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801281 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:36:50 +00:00
Arun Patidar 69c7d479bc Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801280 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:33:19 +00:00
Arun Patidar 370903e59b Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801278 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 11:03:07 +00:00
Deepak Dixit 8895181ce5 Fixed: add gift certificate in purchase order cause exception (OFBIZ-9438)
Apply slightly modified patch from jira issue.
Thanks Wai and Pallavi for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801274 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:59:18 +00:00
Arun Patidar 4da1003bae Improved:On create order, the page shows orderview screen, but Url does not change. It shows processorder. (OFBIZ-9462)
Thanks Renuka Srishti for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801273 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:53:55 +00:00
Arun Patidar 8904e47e2d Improved:Require check on Create Work Effort Screen (OFBIZ-7496)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801272 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:34:25 +00:00
Michael Brohl faef156b61 Improved: Fixing defects reported by code analysis tools.
(OFBIZ-9452)

This sets non-final static fields to final, avoids display of known null
values in the errors messages and removes unneccessary null checks on
known null variables.

Thanks Kyra Pritzel-Hentley for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801271 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 10:03:22 +00:00
Pranay Pandey fa66d69fab Fixed: Product specific quantity condition price rule application when quantity is changed in cart (OFBIZ-7263)
Changing item quantity in cart was setting the flag isModifiedPrice true which is conflicting with updatePrice condition and hence price recalculation was not being triggered. 

Thanks Aditi Patidar for reporting the issue and providing patch. Thanks Paul Foxworthy for reviewing the issue and providing the research details.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801269 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 09:25:06 +00:00
Arun Patidar 8763342f1e Improved: Inconsistent String Comparisons. (OFBIZ-9254).
Thanks Devanshu Vyas for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801268 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 09:15:03 +00:00
Deepak Dixit 34b4b6823c Improved: Added new constraints for INOUT modelservice param, Also updated remaining occurrences for hardcoded IN, OUT and INOUT model service param. (OFBIZ-9434)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801267 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 09:01:37 +00:00
Deepak Dixit 982356f563 Improved: Remove hard-coded instances of "IN" with ModelService.IN_PARAM (OFBIZ-9434)
Thanks Devanshu and Pawan for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801266 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 08:35:32 +00:00
Arun Patidar 7ec0bcce8d Required check missing for Routing Task Name on Add Routing Task page. (OFBIZ-9456).
Thanks Aditya Sharma for reporting and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801263 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 08:18:44 +00:00
Arun Patidar 882d41c249 Fixed: Required check missing for supplier product id and last price on Add Product Supplier page (OFBIZ-9455).
Thanks Aditya Sharma for reporting and providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801262 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 06:35:57 +00:00
Michael Brohl a78998ce47 Fixed: wrong assignment of the "default-hide-if-selected" attribute.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801209 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 20:26:40 +00:00
Michael Brohl 4c0528de2f Improved: Checking service results errors using ServiceUtil.isError instead of
null checking the error message.

I think this class needs further refactoring, I only checked the code modified 
the last changes from OFBIZ-9451. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801208 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 20:14:20 +00:00
Michael Brohl ec825aac5d Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

At two occurrences, an Error is logged which contains the variable 
processorResult. At that point however processorResult is certain to be null. 
Remove the variable from the log. Remove unreachable else condition in 
processAuthResult(). authResult can only be true or false, no third condition 
needed.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801185 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 15:39:54 +00:00
Michael Brohl b339e26bc3 Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

Use a StringBuilder to append a certain amount of '*'s to origMaskedNumber. 
When using concatenation inside the loop, the String is converted to a new 
StringBuilder, appended to, and then converted back to a String anyway. 
Therefore the performance is improved by avoiding many StringBuilder 
initializations.

ReturnHeaderResp in RefundGcPurchase() is unnecessarily checked for null value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801183 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 15:33:39 +00:00
Michael Brohl 4068e1c1fc Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

Set BigDecimal ZERO to final to avoid changes by malicious code from the outside
or changes that happen by accident from another package.

ReturnHeaderResp in RefundGcPurchase() is unnecessarily checked for null value.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801171 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 14:44:21 +00:00
Michael Brohl ca98fe417b Improved: Fixing defects reported by FindBugs.
(OFBIZ-9451)

Implement Serializable for class BillingAccountComparator.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801168 13f79535-47bb-0310-9956-ffa450edef68
2017-07-07 14:09:50 +00:00
Jacques Le Roux cefad6cd23 Fixed: Missing secure port in URLs when sending mails
(OFBIZ-9449)
While working on an issue reported by Pierre Gaudin on user ML 
https://s.apache.org/gDo3, here quoted:

I found another issue while testing: the port 8443 is missing  in the URL used 
underneath by the form reported by Pierre.

It was broken by OFBIZ-9206 where I removed the value of port.https in 
url.properties. 

It's not an issue if you set the value of port.https, or let it empty when 
using a SSL certificate on a production server. But if you try locally 
(localhost) then the URL misses the 8443 port.

Solution append 8443 as default secure port when using localhost

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801094 13f79535-47bb-0310-9956-ffa450edef68
2017-07-06 19:02:01 +00:00
Michael Brohl f965059347 Fixed: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
does not use fallback locale.
(OFBIZ-9445)

If no alternate locale content for the requested locale is found, search for an 
alternate locale content with the locale configured in general.properties at 
locale.properties.fallback. If this one isn't found either we can still return 
the original content.

Thanks Tobias Laufkötter for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800853 13f79535-47bb-0310-9956-ffa450edef68
2017-07-05 09:42:23 +00:00
Michael Brohl 5333451e04 Reverted: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
does not use fallback locale.
(OFBIZ-9445)

r1800780 introduced a bug which breaks the functionality. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800832 13f79535-47bb-0310-9956-ffa450edef68
2017-07-04 22:11:55 +00:00
Michael Brohl 6639ffa89d Fixed: ContentWorker#findAlternateLocaleContent(Delegator, GenericValue, Locale)
does not use fallback locale.
(OFBIZ-9445)

If no alternate locale content for the requested locale is found, search for an 
alternate locale content with the locale configured in general.properties at 
locale.properties.fallback. If this one isn't found either we can still return 
the original content.

Thanks Tobias Laufkötter for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800780 13f79535-47bb-0310-9956-ffa450edef68
2017-07-04 12:56:38 +00:00
Taher A. Alkhateeb 707e8e86f5 Improved: Refactor Config.java and properties files
(OFBIZ-9435)

Another round of refactoring in the start component with the following changes:

- Change the default adminKey to "NA" since it is only used in the "start"
  context. Other contexts do not require an admin server (test, load-data)
- Simplify and cleanup the locale creation logic in the constructor and move
  things out to the method with a return value
- Simplify the Timezone creation logic by moving it outside the constructor into
  a small method
- Substantially simplify the determineOfbizPropertiesFileName(..) method by
  reversing the order of condition evaluation (first, load-data, then test, then
  anything else is start)
- Change default locale to be 'en' as the system crashes if not provided.
- Remove all comments from properties files except for start.properties and
  refer to it from the other properties files
- Update the properties files accordingly

Thanks: Jacques Le Roux for review and suggestion to remove the comments from
        properties files


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800368 13f79535-47bb-0310-9956-ffa450edef68
2017-06-30 10:19:50 +00:00
Michael Brohl 8b3b0ecf41 Improved: Several file names do not adhere to conventions applied to same files
in other components.
(OFBIZ-9338)

Thanks Pierre Smits for reporting the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800303 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:39:27 +00:00
Michael Brohl eab1123394 Improved: UtilMisc.toMap(), toList() and toSet() refactoring taking Varargs for
creating the wanted data structure.
(OFBIZ-9393)

This patch removes a number of outdated methods that took a fixed number of 
objects to create a data structure, such as a linked list. Since the code is 
outdated and inflexible, this patch removes these methods and added methods to 
create the given data structure via a variable amount of arguments. 
This approach also ensures that no other code needs a refactoring. In addition 
the method populateMap() was removed which was private and was only used by the 
multiple outdated toMap() functions.

Thanks Martin Becker for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800299 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 16:04:01 +00:00
Michael Brohl babe08a1b2 Improved: Upgrade Tomcat to 8.5.16
(OFBIZ-9437)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800296 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 15:51:18 +00:00
Jacques Le Roux 7dd842cf3e Improved: Typo in value of SfaAddSalesForecastDetail uiLabel
(OFBIZ-9424)

It should be Forecast not Forcast 

Thanks: Aditya Sharma for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800250 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 08:41:18 +00:00
Nicolas Malin 987feeb2a8 Improved: Convert RateServices.xml mini-lang to groovyDSL (OFBIZ-9381)
finish the service conversion : getRateAmount, getRatesAmountsFromWorkEffortId, getRatesAmountsFromPartyId, getRatesAmountsFromEmplPositionTypeId and filterRateAmountList
I create a generic groovy function getRateAmoutForm to remove duplicate code and refactoring the filterRateAmount for simplicity

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800245 13f79535-47bb-0310-9956-ffa450edef68
2017-06-29 07:46:02 +00:00
Taher A. Alkhateeb 89a041c97a Improved: refactored and improved the createPlugin task in gradle script
(OFBIZ-9436)

Applied the following changes:

- reduced the copy-paste pattern in creating the directory structure for a
  new component by converting the mkdir logic into a loop over a list of the
  directory names
- reduced the copy-paste pattern in creating the files from their templates
  by converting the calls to the generator function to a loop over a list
  of maps containing the arguments to the generator function
- added missing src/java/main and src/java/test
- removed duplicate / redundant directories as creating child directory
  automatically creates the parent


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1800073 13f79535-47bb-0310-9956-ffa450edef68
2017-06-27 15:39:34 +00:00
Jacques Le Roux db272d8ff4 No functional change,
While checking there were no other cases like in OFBIZ-9432 
(missing path to class), to be consistent I removed the trailing semicolons in 
groovy scripts and made few formatting

I did not changes tests code

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799867 13f79535-47bb-0310-9956-ffa450edef68
2017-06-26 09:55:10 +00:00
Jacques Le Roux 6e61e09fcc Reverts r1799736
Taher pointed out in dev ML that kill is not an atomic operation. 
So the previous behaviour does not change. In most cases SIGKILL is still the 
action which kills the process before SIGTERM has a chance to terminate it.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799852 13f79535-47bb-0310-9956-ffa450edef68
2017-06-26 06:03:35 +00:00
Michael Brohl 59ed752fe4 Fixed: Cannot create a new GL Account
(OFBIZ-9429)

This changes the service definition of createGLAccount to use the pk
attributes as OUT instead of INOUT so that the glAccountId will be 
generated by OFBiz instead of being provided to the service.

Thanks Sharan Foga for reporting.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799793 13f79535-47bb-0310-9956-ffa450edef68
2017-06-25 10:37:48 +00:00
Taher A. Alkhateeb 5275aaf233 Fixed: renamed help file that is missing an underscore
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1799779 13f79535-47bb-0310-9956-ffa450edef68
2017-06-24 20:19:32 +00:00