Commit Graph
27737 Commits
Author SHA1 Message Date
Pawan Verma 6c342323a5 Improved: Refactor CatalogWorker.java to remove duplicate code(OFBIZ-11696) 2020-06-02 16:27:52 +05:30
Pawan Verma aa57e68088 Fixed: ViewShipment in facility does not show phone details(OFBIZ-11785)
Thanks, Pierre for the report.
2020-06-02 15:33:56 +05:30
Pawan Verma 04bc8be7cb Improved: Converted RateTests from XML to Groovy
(OFBIZ-11561)(OFBIZ-11562)(OFBIZ-11563)(OFBIZ-11564)(OFBIZ-11565)(OFBIZ-11566)(OFBIZ-11567)(OFBIZ-11569)

Thanks: Rohit for the report and Anushi for the patch.
2020-06-01 16:47:10 +05:30
Jacques Le Roux 240903b6cb Improved: Convert testExpirePartyRate test from XML to Groovy (OFBIZ-11568)
This can be tested using

./gradlew "ofbiz --test component=accounting --test suitename=ratetests"

Thanks: Rohit Hukkeri
2020-06-01 10:08:29 +02:00
Jacques Le Roux 4b55e07505 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Fixes Javadoc issues
2020-06-01 07:52:59 +02:00
James Yong a5ab3961fa Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Allow expression in template location.
2020-05-31 23:31:49 +08:00
Jacques Le Roux 51d91619ea Improved: Rainbow theme: use the United Nations flag ad default flag (OFBIZ-11705)
Oops, I missed to add the un flag files
2020-05-31 12:39:20 +02:00
Jacques Le Roux 6c6f1e1135 Improved: Rainbow theme: use the United Nations flag ad default flag (OFBIZ-11705)
This follows OFBIZ-9866: where I proposed to use the United Nations flag
as default flag

Pierre noticed that no flag shows when a meta language (like en) is chosen.

I noticed that some meta language have default values (gb, fr, zh, th). So I did
not apply Pierre's GH PR#154 to keep those, because that can be increased.

I added the un.svg flag from https://en.wikipedia.org/wiki/United_Nations
I did not adapt its size. Since it's SVG it should be OK in most cases
I also added the necessary change at the end of in flag-icon.min.css

Thanks: Pierre Smits for the initial patch
2020-05-31 12:36:57 +02:00
James Yong f85040ff04 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Allow expression in template location.
2020-05-31 17:42:42 +08:00
Aditya Sharma 3bc127dfb0 Fixed: RequestHandlerException due missing controller entries
(OFBIZ-9478)
Fixed missing Lookup controller entries for the following pages:
1. LookupBudget for Employment Applications page of party
2. LookupDataResource for Content page of facility
3. LookupFixedAsset for Inventory Items Details page of facility

Thank you Pallavi Goyal for reporting the issue and Humera Khan for providing the patch
2020-05-31 09:53:26 +05:30
Pawan Verma bda6192b6b Fixed: Corrected package path for UtilDateTime.(OFBIZ-6408) 2020-05-30 23:07:03 +05:30
Pawan Verma f0e60ba3dc Fixed: Adding a group order generates an error(OFBIZ-6408)
The error is caused by an invalid expression, the two boolean evaluations should reside in the same groovy scriptlet.

Thanks, Pierre for report, Scott for the solution and Adrian, Jacques, Rahul for the review.
2020-05-30 15:36:52 +05:30
c8a7c7dd23 Fixed: Create Payment service throws an exception when receiving payment on order (OFBIZ-11754) (#166)
* [Fixed] Create Payment service throws exception when receiving payment on order
- Since the MODULE variable could not be found, the service was throwing error
- Instead used the groovy method directly to print the log instead, which has access to the module variable implicitly.
- Removed the unused import as Debug class is not longer needed here.

(OFBIZ-11754)

* [Improved] The content groovy services to avoid the error in case we try to log a detail, since the module variable is not found. (OFBIZ-11754)

* Update ContentServices.groovy

* [Improved] Added error logs instead of info logs for service excpetions logging. (OFBIZ-11754)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
Co-authored-by: Suraj Khurana <64310724+surajkhurana@users.noreply.github.com>
2020-05-30 11:53:53 +02:00
James Yong d1a22a6ba8 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Cleanup script cache when session ended
2020-05-30 14:32:38 +08:00
James Yong c0e527efb2 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Allow external scripts within the multi-block html template, to be rendered
within the html head tag, when a new attribute data-import is set to “head”

Thanks: Jacques for review
2020-05-30 12:00:21 +08:00
Nicolas Malin 1558f232c2 Fixed: Remove unnecessary semi-column 2020-05-29 16:29:32 +02:00
Nicolas Malin b862632a94 Fixed: Convert InventoryIssueServices.xml mini lang to groovy
(OFBIZ-11591)

Side effect: Inventory Issuance use generic shipment service to control the authorization
but without a shipment, checkCanChangeShipmentStatusGeneral failed with NPE.

I complete the function to escape if a shipment isn't present and only valid with facility permission
2020-05-29 16:28:18 +02:00
Sebastian Berg 7968f62e51 Improved: Convert InventoryIssueServices.xml mini lang to groovy
(OFBIZ-11591)
2020-05-29 16:28:11 +02:00
Jacques Le Roux 390708f989 Improved: increases tasks.checkstyleMain.maxErrors
Not sure from where comes the issues, no time to check more
2020-05-29 14:59:24 +02:00
holivier 1f673804a4 Improved: put simple-method optional for compound file (OFBIZ-11645) 2020-05-29 11:54:50 +02:00
holivier 097db39ee0 fixed: sort-order (field) not works in CompoundWidgets file (OFBIZ-11708)
In a form, when <sort-order tag is used, the children analyze not works
because, getTagName() is used not the getLocalName(). getTagName()
return "wf:sort-field" when getLocalName return "sort-field".
So change getTagName() to getLocalName() for sort-order children
2020-05-29 11:43:58 +02:00
holivier e4ee439e27 Fixed: drop-down field not work when in a compound-widget file (OFBIZ-11676)
When, in ModelFormField, FieldInfoWithOptions (which read xml file ) is
call, test on tag name is done with getName() and not getLocalName() so
none "option" is recognize when field is declare on a compound-widget
file. getName() is change to getLocalName()
2020-05-29 11:26:40 +02:00
Suraj Khurana 7ceebcc45e Reduced and setting tasks.checkstyleMain.maxErrors to 26953 from 27599 (-646) 2020-05-29 13:58:05 +05:30
Suraj Khurana abc7836dde Improved: Made MODULE as private data member of class instead of public in all framework components.
(OFBIZ-11739)
This will reduce checkstlye issues. Thanks Jacques for review.
2020-05-29 13:20:46 +05:30
Suraj Khurana 5e7193f5a8 Improved: Changed resources with proper naming convention in all application components.
(OFBIZ-11739)
Also, made MODULE as private data member of class instead of public. This will reduce checkstlye issues. Thanks Jacques for review.
2020-05-29 13:19:05 +05:30
Pawan Verma 269165d6df Fixed: productServiceOrder-test issue, it has been introduced after we fixed InventoryItemStatus is not updated to INV_PROMISED status(OFBIZ-8459)
Thanks, Jacques for the report.
2020-05-28 19:58:27 +05:30
Pawan Verma 3a4d227df2 Revert "Fixed: productServiceOrder-test issue, it has been introduced after we fixed InventoryItemStatus is not updated to INV_PROMISED status(OFBIZ-8459)"
This reverts commit b39c179adc.
2020-05-28 19:52:26 +05:30
Pawan Verma b39c179adc Fixed: productServiceOrder-test issue, it has been introduced after we fixed InventoryItemStatus is not updated to INV_PROMISED status(OFBIZ-8459)
Thanks, Jacques for the report.
2020-05-28 19:44:28 +05:30
holivier b17744d00c Fixed: plugins in common-theme/webapp/common/js is not monitored by git
(OFBIZ-11745)

change plugin/ to plugin/* in .gitignore to have only root directory
plugins to be ignore
2020-05-28 15:01:32 +02:00
Pawan Verma 45a7deecfe Fixed: InventoryItemStatus is not updated to INV_PROMISED status while creating sales order for serialized product(OFBIZ-8459)
Thanks, Vaibhav for the report and patch and Pranay for the review.
2020-05-28 17:25:03 +05:30
Jacques Le Roux 932303bf30 Improved: adds pull_request_template.md (OFBIZ-11722)
Forgot to commit the replacement
2020-05-27 20:42:16 +02:00
Jacques Le Roux ef4368121f Fixed: removes a trailing dot in pull_request_template.md. (OFBIZ-11722)
This is not only wrong but is a problem in Windows
2020-05-27 16:10:08 +02:00
Jacques Le Roux e348fd6fac Create a Github PR template
This follows https://issues.apache.org/jira/browse/OFBIZ-11722
2020-05-27 11:02:20 +02:00
Jacques Le Roux 10b8acd5d1 Improved: removes useless "@deprecated No replacement" comments in Java code
This follows a discussion on dev ML 5 days ago.
Those comments are useless because they are all related to Minilang and Minilang
is deprecated as a whole.
2020-05-27 09:26:56 +02:00
Pierre Smits 96c428d1cf Improved: instructions to upgrade due to datamodel changes (OFBIZ-11719) (#162) 2020-05-26 17:21:05 +05:30
Aditya Sharmaandholivier a82c3032ad Documented: datamodel markdown migration to asciidoc (OFBIZ-11574)
* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)

- DATAMODEL_CHANGE migration to asciidoc and add a included in
developer_manual
- Readme migration to asciidoc

* Documented: theme/README.md change theme/README.adoc but with very
simple content
(OFBIZ-11574)

README.md  has been migrated to asciidoc as doc/themes.adoc previously
but remove README.md has been forgot.
In this commit README.md is removed and a new README.adoc is created
with only a brief component definition and link to the theme
documentation (and developer-manual which included theme.adoc)

* Documented: datamodel markdown migration to asciidoc
(OFBIZ-11574)

Added new field parentGlXbrlClassId taking reference from DATAMODEL_CHANGES.md which was added with OFBIZ-10613 and missing in adoc file

Co-authored-by: holivier <holivier@apache.org>
2020-05-25 19:46:04 +05:30
Pierre Smits 52732c8807 Fixed: organisation tree in humanres doesn't show person names (OFBIZ-11677) (#121)
* Fixed: Tree on main page of the humanres component doesn't show names of persons

(OFBIZ-11677)

When parties are assigned to employee positions their names aren't shown in the tree
fixed: the function that retrieves the person record of the assigned party was using
	the wrong variable in the query, resulting in a null being returned. Corrected the variable
added/improved: retrieval of the middleName value of the person record, added it to the title
improved: ordering of the names making up the title.
improved: applying proper case to variable names

* Fixed: Tree on main page of the humanres component doesn't show names of persons

(OFBIZ-11677)

invoking PartyHelper.getPartyName instead of custom code
code clean-up

Thanks to Pawan Verma for the review and the suggestion
2020-05-25 19:42:16 +05:30
Suraj Khurana d6ebef6193 Improved: Improved: Changed lineSplit value to 150.
(OFBIZ-11737)
Earlier it was 120, as per discussion over ML we decided to make it 150 instead.
2020-05-25 17:24:30 +05:30
Suraj Khurana 0a23151ed3 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-05-25 13:37:42 +05:30
Suraj Khurana 7aa3db4c45 Improved: Converted createDownloadContent,updateDownloadContent services from mini-lang to groovy.
(OFBIZ-11372)(OFBIZ-11373)
Thanks Devanshu Vyas for reporting, Harman Kaur and Rahul for initial patch, Pawan for review.
2020-05-25 13:37:16 +05:30
Pierre Smits 5fac98022e Improved: quote menu
(OFBIZ-11715)

updated: QuoteTabBar - simplified labels
updated: moved 'Edit quote' menu item to QuoteSubTabBar
updated: reordering of menu-items of QuoteTabBar
updated: various UiLabels used by menu-items in QuoteTabBar
2020-05-24 14:34:03 +02:00
Jacques Le Roux e46821f041 Improved: downgrades tasks.checkstyleMain.maxErrors to stop failures in Buildbot 2020-05-24 12:37:41 +02:00
Suraj Khurana a178b79107 Improved: Added UI labels for success/error messages for humanres, marketing, order component.
(OFBIZ-7696)
Thanks Deepak Nigam for reporting and Sourabh Punyani for the patch.
2020-05-24 13:03:03 +05:30
Pawan Verma 3f9e37797a Fixed: RuntimeException in getPartyNameForDate service for partyNameHistory.gender field(OFBIZ-11736)
The reason for this issue is code is trying to get the gender of person from partyNameHistory record and gender is not a field in partyNameHistory entity. During conversion we minimized duplicate code which caused that issue.

I've added a check to avoid checking gender in partyNameHistory record.
2020-05-23 23:35:39 +05:30
Mridul Pathak dc5f8a6af0 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-05-23 18:14:00 +05:30
Mridul Pathak f9a05c8e30 Improved: Convert setContentStatus service from mini-lang to groovy DSL(OFBIZ-11365). Thanks Devanshu Vyas for the contribution. 2020-05-23 18:12:13 +05:30
Suraj Khurana c7e0856b06 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-05-23 17:53:40 +05:30
Suraj Khurana 15bcc92dd1 Improved: Converted updatePayment service from mini-lang to groovy.
(OFBIZ-11480)
Thanks Devanshu Vyas for reporting and Priya Sharma for the patch.
2020-05-23 17:48:54 +05:30
Aditya Sharma ebd7992dac Fixed: Requesthandler exception is showing after clicking cancel/done button on editPerson screen
(OFBIZ-10890)
Set the value of missing parameter.
Thanks Minal Phalak for reporting and providing the patch
2020-05-23 17:32:16 +05:30
Suraj Khurana 59d465bfd8 Improved: All the service level error messages for missing required field for humanares component.
(OFBIZ-8716)
Thanks Jagpreet for reporting and Prasheel for providing the initial patch
2020-05-23 17:06:18 +05:30