Commit Graph
14503 Commits
Author SHA1 Message Date
Suraj Khurana d74742d730 Improved: Make data members of class as private and added accessor methods for the same, also corrected occurences of the same in applications component.
(OFBIZ-11963)
Also made some related checkstyle code enhancements.
Thanks jacques for finalizing Javadoc pattern during this effort.
2020-08-22 13:00:17 +05:30
Pawan Verma 568fa2c173 Improved: Convert updateSingleContentPurpose service from mini-lang to groovy DSL(OFBIZ-11367)
Thanks: Devanshu for report and Sourabh for the patch.
2020-08-22 10:44:02 +05:30
Pawan Verma 71cfe0f8e3 Fixed: Corrected package for marketing tests(OFBIZ-11877)
Thanks, Dennis Balkir for the report.
2020-08-19 18:01:01 +05:30
Suraj Khurana 413e0ec3ec Improved: Added missing Javadocs for some methods, this is required for all classes which looks like designed for extension (can be subclassed).
(OFBIZ-11947)
This is done for applications component. Also corrected some variables as per naming convention best practices.
Thanks Jacques for review.
2020-08-17 12:25:56 +05:30
James Yong 39c1e280f9 Improved: Move page-specific script links to html template (OFBIZ-11799)
refactoring +
importLibrary function to use crossDomain = true to allow js file to be shown under browser's sources folder
2020-08-16 18:05:32 +08:00
James Yong 55df1c7db0 Improved: Move page-specific script links to html template (OFBIZ-11799)
Use importLibrary js function to load elrte js and css
Tested on
https://localhost:8443/content/control/findForumMessages?forumGroupId=WebStoreFORUM&forumId=10000
https://localhost:8443/content/control/WebSiteCms?webSiteId=CmsSite
2020-08-16 14:35:35 +08:00
Jacques Le Roux 421f8c6569 Fixed: error log of a fresh trunk installation (OFBIZ-11953)
Typo: missing quotes

Thanks: Alex Bodnaru for report
2020-08-13 12:09:13 +02:00
Jacques Le Roux 3155906740 Improved: small typo in trunk (OFBIZ-11952)
I also replaced tabs by spaces in applications/product/servicedef/services.xml

Thanks: Alex Bodnaru
2020-08-13 09:16:20 +02:00
Priya SharmaandPriya Sharma 9e7df96921 Improved: Move 'SecurityPermission' data to seed data files (OFBIZ-10575) (#225)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
2020-08-11 16:01:18 +02:00
Jacques Le Roux 4ff22b46dc Improved: Convert getInvoicePaymentInfoListByDueDateOffset service from mini-lang to groovy DSL (OFBIZ-11486)
Thanks: Devanshu Vyas for report, Nitish Mishra for the patch
2020-08-09 20:14:10 +02:00
Jacques Le Roux cc61673198 Improved: Convert cancelCheckRunPayments service from mini-lang to groovy DSL (OFBIZ-11494)
Thanks: Devanshu Vyas for report, Yogesh Naroliya for the patch
2020-08-09 20:07:51 +02:00
Priya Sharma 5dbf5cb9eb Improved: Removed unused imports from Java files for fixinf checkstyle errors
(OFBIZ-11930)
Thanks: Priya Sharma
2020-08-07 18:57:02 +05:30
Priya Sharma 3fe72d440f Improved: Remove unused imports from Java files (OFBIZ-11930) (#222)
Improved: Remove unused imports from Java files
(OFBIZ-11930)
Thanks: Priya Sharma
2020-08-06 19:51:09 +05:30
Suraj Khurana 33f05c1684 Improved: Corrected all redundant modifiers occurences in framework component. Also, fixed some other checkstyle line formatting and spacing issues.
(OFBIZ-11925)
2020-08-06 18:53:13 +05:30
Suraj Khurana dd1af9f358 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-08-06 18:47:12 +05:30
Suraj Khurana 6ca9bf3102 Improved: Corrected all redundant modifiers occurences from applications component. Also, fixed some other checkstyle line formatting and spacing issues.
(OFBIZ-11925)
2020-08-06 16:52:22 +05:30
Jacques Le Roux eb6218b628 Fixed: Make all related Cancel/Done buttons return to backHome ie. party profile page (OFBIZ-11943)
Thanks: Priya for the patch
2020-08-06 12:47:21 +02:00
Akash Jain b4fbbc4934 Improved: Convert PartyContactMechTests.xml to Groovy (OFBIZ-11854) 2020-08-04 22:35:58 +05:30
Akash Jain 25fc51f961 Improved: Convert PartyStatusChangeTests.xml to Groovy (OFBIZ-11853) 2020-08-04 22:23:10 +05:30
Akash Jain bc95f057f2 Improved: Convert ProductTest.xml to Groovy (OFBIZ-11852) 2020-08-04 21:52:08 +05:30
Akash Jain 29c2ed5a18 Fixed: View Image button on order view page fails to render the image (OFBIZ-11734)
Thanks, Arpit Mor for reporting.
2020-08-04 15:48:55 +05:30
Akash Jain da0f52d005 Improved: Status ID checkbox for FindEmploymentApps, FindPartyQuals and FindEmplLeaves forms (OFBIZ-11937) 2020-08-04 15:41:53 +05:30
Jacques Le Roux 3ba1d7c7f3 Improved: Purchase Order Email Support (OFBIZ-11864)
This is how I intended to do it. But, since I have a save action to format
edited lines, Eclipse forced an "unwrapping". I had to check in "Line Wrapping":
"Never join already wrapped lines", pfew!
2020-08-03 20:01:05 +02:00
Jacques Le Roux 8b0d137798 Improved: Purchase Order Email Support (OFBIZ-11864)
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins

There was something I did not understand.
I got the same locally, but I have no history like in BuildBot.

The only file changed in 1587 is a Groovy files and we get more errors than
in  preceding build, ie 1586:
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1587/steps/check/logs/stdio
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1586/steps/check/logs/stdio

The only Java file changed was OrderServices.java in #68d210
Somehow Buildbot found this commit too early, it was in
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1589

Anyway this fixes the formatting
2020-08-03 19:41:11 +02:00
Akash Jain 68d210a7d0 Improved: Purchase Order Email Support (OFBIZ-11864) 2020-08-03 17:29:13 +05:30
Akash Jain dd04252593 Improved: Unit test case for some content services (OFBIZ-8420)
Covered following tickets/services,
OFBIZ-8420 --> createDataCategory
OFBIZ-8421 --> updateDataCategory
OFBIZ-8422 --> removeDataCategory
OFBIZ-8424 --> createDataResourceRole
OFBIZ-8425 --> updateDataResourceRole
OFBIZ-8426 --> removeDataResourceRole

Thanks, Tanmay Muley for reporting the issue.
2020-08-03 16:31:10 +05:30
Akash Jain ea37e0fed3 Improved: Status ID checkbox for FindWorkEffort, FindProductionRun and FindShipment forms (OFBIZ-11939) 2020-08-03 16:22:26 +05:30
Akash Jain 2a9c4ce3f4 Improved: Status ID checkbox for FindPayments and FindPurchaseInvoices forms (OFBIZ-11938) 2020-08-03 16:19:06 +05:30
Akash Jain 001ce6a6c4 Improved: Status ID checkbox for Return, Requirement and Quote forms (OFBIZ-11935) 2020-08-03 16:15:45 +05:30
Akash Jain 019b54aceb Improved: Status ID checkbox for FindDataResource and FindContent forms (OFBIZ-11934) 2020-08-03 16:11:03 +05:30
Akash Jain 3f07bb8103 Improved: Improvements in Find Invoice screen (OFBIZ-9643)
Thanks, Renuka Srishti for reporting the issue.
2020-08-03 15:57:49 +05:30
Suraj Khurana c6399ef668 Improved: Corrected some line is longer than 150 characters checkstyle issues in applications component. Also fixed some extra spaces and naming conventions related checkstyle issues.
(OFBIZ-11921)
2020-08-03 10:14:20 +05:30
Pawan Verma d962777c77 Improved: Convert testCreateAndUpdateContactList test from XML to Groovy(OFBIZ-11877)
Thanks, Jacques for the review.
2020-07-31 12:07:52 +05:30
Pawan Verma 034e03abf4 Improved: Inconsistent String Comparisons(OFBIZ-9254)
There are some inconsistencies in the code for string comparison statusId.equals(PRUN_COMPLETED) whereas it should be written as PRUN_COMPLETED.equals(statusId) cause the former can throw NullPointerException if the variable found to be NULL.

Thanks: Devanshu for your contribution.
2020-07-30 17:01:54 +05:30
Jacques Le Roux 782cd7da63 Improved: Convert ProductTagTest.xml to Groovy (OFBIZ-11857)
This can be tested using

./gradlew "ofbiz --test component=product --test suitename=producttagtests"

Thanks: Akash Jain for report, Anushi Gupta for the patch
2020-07-28 11:54:48 +02:00
Jacques Le Roux 03081897c6 Fixed: Inconsistent String Comparisons (OFBIZ-9254) & Uploading image to data resource (OFBIZ-10834)
Changes made in startsWith and indexOf methods in ContentManagementServices
for OFBIZ-9254  where wrong (reversed). Fortunately only place where this happened.

I added a comment to make clear why we have 2 empty else if

I'll backport later, conflicts to handle by hand...

Thanks: Ankush Upadhyay for spotting the bug
2020-07-27 09:45:26 +02:00
Suraj Khurana f8a0a83695 Merge branch 'trunk' of https://gitbox.apache.org/repos/asf/ofbiz-framework into trunk 2020-07-26 21:01:25 +05:30
Suraj Khurana 3929ff1bd7 Improved: Corrected all incorrect indentation level issues in application component, also fixed some case indentation checkstyle issues.
(OFBIZ-11922)
2020-07-26 20:25:35 +05:30
Jacques Le Roux a3fc1e8205 Fixed: Convert InvoicePerShipmentTests.xml to Groovy (OFBIZ-11553)
The order created with test case testCreateOrderServiceProduct did not get
approved so the quick ship process did not work correctly while with specific
configurableServiceOrder-test new order has got approved and the quick ship
process worked correctly.

We got multiple payment methods i.e. EXT_PAYPAL and EXT_COD but in the test case
only EXT_COD was defined.

Without shopping cart tests testIntegration works perfectly.

Shopping cart has multiple payment methods, and as cart has multiple payment
methods, order is not approved
(org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java:1166)

This ensures single paymentMethod. It could reviewed again when converting
ShoppingCartTests.xml to Groovy. I have added a comment about that

Thanks: Pawan and Suraj
2020-07-26 08:45:39 +02:00
Jacques Le Roux 077625c5a6 Fixed: Unable to create event in SFA component (OFBIZ-9901)
The tests failed because CAL_OWNER instead of CONTACT was necessary
2020-07-25 19:18:45 +02:00
Jacques Le Roux 1542844add In previous commit 2b04118690 for
Revert "Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)"
This reverts commit faa59b325f.

I wrongly put back 2 files not part of faa59b325 commit
CostTests.xml
ProductPriceTests.xml

This removes them
2020-07-25 16:59:30 +02:00
Jacques Le Roux 2b04118690 Revert "Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)"
This reverts commit faa59b325f.

It introduced 3 errors in testIntegration, in:
testGlPostingOnCancelCheckRun
testGlPostingsOnVoidPayment
testVoidPayment
2020-07-25 16:06:34 +02:00
Aditya Sharma 6804a9dac3 Fixed: Unable to create event in SFA component (OFBIZ-9901)
When creating event for the party other than the loggedin user, the party should be in CAL_OWNER role to be added to event. Added appropriate check in service along with the error message.
Thanks Rubia Elza Joshep for reporting the issue and Aditi Patidar for providing the patch
2020-07-25 18:48:39 +05:30
Jacques Le Roux fc865c458a Fixed: One page checkout is broken because of ordermgr::getAssociatedStateList (OFBIZ-11838)
On orderview screen at the ordermgr, when a user tries to change the status of
the order, in OrderInfo.ftl, we are calling "changeOrderStatus" request as

<@ofbizUrl>changeOrderStatus/orderview</@ofbizUrl>

Hence when the request is done, it is rewriting URL to
https://localhost:8443/ordermgr/control/changeOrderStatus/orderview.

When js functions running in the backend like "getAssociatedStateList" are
called, they are getting the wrong URL to send a request to. This was causing
the issue.

For now, there are two different fixes that can handle both problems which are
mentioned in OFBIZ-2562 and OFBIZ-11838.

1.
  To change the request mapping for "changeOrderStatus" and add request-redirect
  to "orderview" screen. Change the actions in the forms in OrderInfo.ftl to
  call "changeOrderStatus" request only and then remove code in
  "getAssociatedStateList" js function to rewrite URL.

2.
  To add .length to the existing URL rewrite code written in
  "getAssociatedStateList" js function as

if (jQuery('#orderViewed').length) {
    requestToSend = "/ordermgr/control/getAssociatedStateList"
}

Thanks: Pritam Kute!

I picked the 2nd solution
2020-07-25 14:07:19 +02:00
Pawan Verma 5799c7e5e4 Improved: Convert CostTests.xml to Groovy(OFBIZ-11859)
Thanks, Akash for report and Anushi for the Patch.
2020-07-25 17:25:42 +05:30
Jacques Le Roux faa59b325f Improved: Convert voidPayment service from mini-lang to groovy DSL (OFBIZ-11487)
Thanks: Sourabh Punyani
2020-07-25 10:33:17 +02:00
Suraj Khurana df21972eed Improved: Updated case indentation to 0 for all switch statements in applications component. Also done formatting changes as per checkstyle best practices.
(OFBIZ-11904)
2020-07-25 13:53:10 +05:30
lodhiravi 4739019732 Fixed: Error in Quick Receive Purchase Order process. (OFBIZ-11911) (#219)
Corrected typo
2020-07-25 12:11:12 +05:30
lodhiravi 356af00b83 Fixed: Converted GString to String while setting success message in receiveInventoryProduct service to avoid the ClassCastException. Also corrected loop condition while creating inventory information during PO receiving to fix the issue where each product is getting received two times (doubled the qty) instead of single time.(OFBIZ-11909) (#218) 2020-07-25 12:04:03 +05:30
Pawan Verma a779bdc5f0 Improved: Convert ProductPriceTests.xml to Groovy(OFBIZ-11856)
Thanks, Akash for report and Anushi for patch.
2020-07-25 11:49:28 +05:30