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
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
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
This reverts commit faa59b325f.
It introduced 3 errors in testIntegration, in:
testGlPostingOnCancelCheckRun
testGlPostingsOnVoidPayment
testVoidPayment
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
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
(OFBIZ-11894)
* Improved: Convert createRoleType service to entity-auto from Java and update its service calls
- Removed the java implementation
- Converted the service to entity-auto
- updated the service call in Party tests where this service was used.
* Improved: Removed the testCreateRoleType test, as the base service is now converted to entity-auto and will be handled in entity-auto tests. (OFBIZ-11984)
Co-authored-by: Priya Sharma <priya.sharma@hotwaxsystems.com>
Thanks: Pawan Verma for review.
Finally removes ol.js.map and references to it because it does not help due to
concatenations of multiple files in the multi mb source distribution.
Thanks: Alex Bodnaru for inquiry
* Improved: Convert createPartyRelationshipType service to entity-auto from Java and update its service calls(OFBIZ-11895)
- Updated the service definition to convert it into entity-auto
- Removed the java implementation of the services
- Removed the test as the service has been converted to entity-auto and it will be tested using entity-auto tests
Co-authored-by: Pawan Verma
ofbiz-plugins (OFBIZ-11587)
create file in ofbiz-plugins
* plugins-developer-manual, which will include all include:: plugins for
developer,
* plugins-user-manual, which will include all include:: plugins for user
The file plugins-user-manual is include in user-manual and
plugin-developer-manual is include in developer-manual
* Added verb as an attribute to specify the REST method OFBiz service is going to serve on
* Added methods to get service IN and OUT parameters as MAP
* Added TODO for supporing nested parameters
* Improvement : Added Restrictions for verb attribute and documentation for the same
* Fixed checkstyle issues
* Changed attribute name from verb to action for better clarity