Commit Graph
27060 Commits
Author SHA1 Message Date
James Yong 4e563a67ff Fixed: showHelp not working (OFBIZ-11803)
Fixed Navigation tree is not displayed in showHelp page.
2020-06-06 19:49:26 +08:00
James Yong 5e63e81d08 Improved: Remove unused location ${parameters.quoteDecoratorLocation} (OFBIZ-11802)
Thanks: Jacques for review
2020-06-06 18:34:08 +08:00
Priya SharmaandPriya Sharma 15aec7e8f7 WIP: [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug (OFBIZ-11762) (#185)
* [Improved]: Use GroovyBaseScript's logging utility methods instead of using Debug
- Replaced the debug.log methods with the respective groovy utility method
- Enhanced the GroovyBaseScript to entertain the fetch the current class name as the module name for logging
- Overloaded the logError method to entertain throwbale object for better logging
- Removed unused import statements and module variables.

(OFBIZ-11762)

* [Removed]: Extra line spaces. (OFBIZ-11762)

* [Revert]: Unwanted changes. (OFBIZ-11762)

* [Added] Same changes to these files. (OFBIZ-11762)

Co-authored-by: Priya Sharma <priya.sharma@example.com>
2020-06-06 10:17:23 +02:00
James Yong e3f6d1547f Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Fix regression in scrumtests that resulted in NullPointerException.
2020-06-06 14:28:32 +08:00
Suraj Khurana 846e5f0ded Improved: Enforce noninstantiability to GroovyUtil Class. (#180)
(OFBIZ-11778)

Made class as final, moved default constructor and renamed private data members as per naming convention best practices.
2020-06-06 10:03:33 +05:30
Suraj Khurana 924df4b217 Improved: Enforce noninstantiability to ConfigXMLReader Class (#178)
(OFBIZ-11746)

Made class as final, added private constructor and corrected private data members as per naming convention.
2020-06-06 10:01:55 +05:30
James Yong 347ea63479 Improved: Headerize external script in multi-block html template (OFBIZ-11741)
Improve function for adding links to layoutSettings
2020-06-06 10:23:41 +08:00
holivier 211540a966 Documented: Help link using asciidoc files via generated html
(OFBIZ-11693)

Migrate AccountingHelData.xml to added some <set field="helpAnchor" to
the correct screens

Now in accounting component only asciidoc documents are used, help link
area now link to userDocUri
(ci.apache.org/projects/ofbiz/site/trunk/ofbizdoc as default value in
general.property)
2020-06-05 15:15:21 +02:00
Suraj Khurana a2186baaed Updated: tasks.checkstyleMain.maxErrors to 26866 (-30) 2020-06-05 13:21:30 +05:30
Suraj Khurana 73b15e9867 Improved: Enforce noninstantiability to FinAccountHelper Class. (#171)
(OFBIZ-11723)

Made class as final, added private constructor, also made data members as private, defined getter methods and changed related occurrences.
2020-06-05 13:13:58 +05:30
holivier 192059e3da Improvement: Help link using asciidoc files via generated html
(OFBIZ-11693)

Change release for all asciidoc files, now there area 3 publish site,
one per release
* site/trunk
* site/next   currently for the 18.12
* site/stable currently for the 17.12
2020-06-04 17:56:54 +02:00
holivier d79d7c50b8 Improvement: Help link using asciidoc files via generated html (OFBIZ-11693)
1. Add a general property: userDocUri containing uri for
ofbiz.apache.org html user-documentation generated by Buildbot
2. in each theme, add a test on helpAnchor field, if it's define help
link is now on ${userDocUri}#${helpAnchor}
  * if userDocUri is not defined, the general property is used
2020-06-04 17:42:23 +02:00
Suraj Khurana a5fc642a48 Updated: tasks.checkstyleMain.maxErrors to 26896 (-16) 2020-06-04 14:53:11 +05:30
Suraj Khurana 9ade9d776b Improved: Enforce noninstantiability to BillingAccountWorker Class. (#167)
(OFBIZ-11721)
Made class as final, added private constructor, changed data members to private and corrected names as per naming convention.
2020-06-04 14:41:31 +05:30
Suraj Khurana e92becb0fd Improved: Enforce noninstantiability to ServiceGroupReader Class. (#177)
(OFBIZ-11750)
Made class as final, added private constructor and corrected private data member name as per naming convention.
2020-06-04 14:38:22 +05:30
Suraj Khurana af787274ce Updated: tasks.checkstyleMain.maxErrors to 26902 (-6) 2020-06-03 16:24:14 +05:30
Suraj Khurana 65c235704c Improved: Enforce noninstantiability to JobUtil Class. (#176)
(OFBIZ-11749)
Made class as final and added private constructor.
2020-06-03 16:08:49 +05:30
Suraj Khurana 9423bfdcc5 Improved: Enforce noninstantiability to ExpressionUiHelper Class. (#173)
(OFBIZ-11748)

Made class as final, added private constructor and corrected private data member naming convention.
2020-06-03 16:05:30 +05:30
Pawan Verma d106b91dd0 Improved: UI improvement on View Order page(OFBIZ-10985)
Thanks, Rashi for report and Aishwary for initial patch and garima and jacques for the review.
2020-06-02 17:34:29 +05:30
Pawan Verma 8cac7f1fc5 Fixed: startup-service does not work without runtime-data-id(OFBIZ-11668) 2020-06-02 17:25:16 +05:30
Pawan Verma 281c278308 Fixed: Overview of shipments shows links to edit shipment it should point to viewshipment(OFBIZ-11787)
Thanks: Pierre for your contribution.
2020-06-02 17:15:28 +05:30
Pawan Verma 30ee142864 Improved: Improvement in Purchases by Product Report(OFBIZ-11733)
The status description should be used in report instead of OFBiz ID.

Thanks: Chandan Khandelwal for your contribution.
2020-06-02 16:57:29 +05:30
Pawan Verma c9b7c576a9 Fixed: UI issue in payment lookup(OFBIZ-9476)
Thanks: Pallavi for report and patch and pierre from the review.
2020-06-02 16:37:10 +05:30
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