Commit Graph
125 Commits
Author SHA1 Message Date
Suraj Khurana 8bdb6c9985 Improved: Make shipment services loosely coupled with work-effort generation. (#132)
* Improved: Make shipment services loosely coupled with work-effort generation.
(OFBIZ-11678)
Removed workeffort generation related code in separate service, in createShipment and updateShipment service. In this effort, createShipment has been successfully changed to entity-auto as well.
Thanks: Pierre Smits and Arun Patidar for discussion and review.
2020-05-23 15:26:26 +05:30
Suraj Khurana c7ae78d551 Improved: Converted all Timesheet related CRUD services from simple to entity-auto (#88)
* Improved: Converted all Timesheet related CRUD entities from simple to entity-auto
(OFBIZ-11616)
2020-05-16 13:46:12 +05:30
Suraj Khurana 1a45f2ff71 Improved: Converted WorkEffort related services from simple to entity-auto. (#135)
(OFBIZ-11690)
2020-05-16 10:17:32 +05:30
Suraj Khurana 0393ebe994 Fixed: testIntegrations caused due to invalid cust request status 'CRQ_SUBMITTED', so loaded QuoteTestData.xml with proper status before executing CustRequestTests. Also fixed default dateValue for nowTimestamp as in case of overrided fromDate, entity-auto doesn't take care of it.
Thanks: Jacques Le Roux for reporting.
2020-05-06 12:16:12 +05:30
Suraj Khurana cb4ca226f0 Improved: Converted all TimeEntry related CRUD services from simple to entity-auto (#99)
(OFBIZ-11624)
Also, removed unused services named unlinkInvoiceFromTimeEntry, whcih simply clears TimeEntry field, so used updateTimeEntry instead.
2020-05-04 10:42:26 +05:30
Suraj Khurana 0f56568bc1 Improved: Converted all TimesheetRole related CRUD services from simple to entity-auto (#90)
* Improved: Converted all TimesheetRole related CRUD services from simple to entity-auto
(OFBIZ-11617)
2020-05-02 12:58:35 +05:30
Swapnil Mane b871eda45f Fixed: Error on deleting the survey associated with the task
(OFBIZ-7594)

The following error is generated on deleting the survey associated with the task.

Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: Problems getting the service model (Cannot locate service by name (deleteWorkEffortSurveyAppl))

On exploration I found, In the refactoring work done under OFBIZ-8408, the deleteWorkEffortSurveyAppl service was removed.

Added the deleteWorkEffortSurveyAppl service, previously it was in written in the simple engine, converted it to entity-auto.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859931 13f79535-47bb-0310-9956-ffa450edef68
2019-05-25 09:25:56 +00:00
Jacques Le Roux 2dadaacac8 Fixed: Services allow arbitrary HTML for parameters with allow-html set to "safe"
(OFBIZ-5254)

This was reopened after discussion at 
https://markmail.org/message/jnaitmwahjcjmdn5

This is a new solution which follows the work done with OFBIZ-6669 and OFBIZ-10187
Roughly said, it uses org.owasp.html.PolicyFactory and org.owasp.html.Sanitizers

Thanks: Christoph Neuroth for report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1859877 13f79535-47bb-0310-9956-ffa450edef68
2019-05-24 13:47:08 +00:00
Deepak Dixit 2426cc46dc Improved: Correected the sequence of service attribute tag to fix Invalid content was found warning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1829699 13f79535-47bb-0310-9956-ffa450edef68
2018-04-21 09:17:53 +00:00
Jacques Le Roux a8f85dd564 Fixed: Required parameters are optional for createWorkRequirementFulfillment service
(OFBIZ-8622)

As per entity def, required parameter should be  requirementId instead of 
requirementTypeId.

Thanks: Suraj for the last patch

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1828255 13f79535-47bb-0310-9956-ffa450edef68
2018-04-03 16:37:09 +00:00
Arun Patidar 2199534c40 Fixed: Removed mode=INOUT from override attribute of service definetion that was added mistakenly in previous patch.
(OFBIZ-7738)
Thanks Dennis Balkir for reporting issue and Dhaval Wagela for providing patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825537 13f79535-47bb-0310-9956-ffa450edef68
2018-02-28 08:52:46 +00:00
Gil Portenseigne 08a6b96114 Fixed: Error in service definition for deleteOrderHeaderWorkEffort
(OFBIZ-10243)

Thanks Pierre Gaudin for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825450 13f79535-47bb-0310-9956-ffa450edef68
2018-02-27 13:56:50 +00:00
Arun Patidar a980ef317a Improved: all the service level error messages for missing required field for workeffort component (OFBIZ-7738)
Thanks Ratnesh Upadhyay and Dhaval Wagela for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1825209 13f79535-47bb-0310-9956-ffa450edef68
2018-02-24 10:46:30 +00:00
Jacques Le Roux 327aa49353 Improved: Create missing services definitions in WorkEffortSimpleServices.xml
(OFBIZ-9708)

In WorkEffortSimpleServices.xml the service implementations from 
updateWorkEffortContactMech to updateWorkEffortEmailAddress are missing service 
definitions. 

This was discussed at http://markmail.org/message/kgbpolz2daxfa5zx. 
Thanks to Pawan Verma for reporting and patching, everyone for the discussion 
and Scott for the detailed argumentation which makes totally sense.

jleroux:I wanted to provide proper tests, but this has already stayed too long 
in my working copy

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821114 13f79535-47bb-0310-9956-ffa450edef68
2018-01-14 18:33:23 +00:00
Jacques Le Roux 7ce77db416 Reverts from r1821001 (for OFBIZ-10113) I thought about keeping it but it's
better to commit it apart

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821032 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 20:53:25 +00:00
Jacques Le Roux 19d9b3ca30 Improved: Replace Asm select plugin with Select2.
(OFBIZ-10113)

Current Asm Select Plugin 
http://www.ryancramer.com/journal/entries/asmselect_v104/
can be replaced with Select2 (https://select2.org/).

* Select2 has much better community support on GitHub with 386 contributors 
  while Asm Select Plugin is handled by Ryan Cramer on http://www.ryancramer.com/.
* Select2 has 37 releases while Asm select has very few releases yet.
* Both the plugin has MIT license.

Refer https://select2.org/ and  
https://github.com/select2/select2 for more features and other information.

Added i18n support so added logic in JsLanguageFileMappingCreator and 
JsLanguageFilesMapping accordingly.
Added some custom CSS as the Select2 seems to be too fancy in accordance 
with the current OFBiz themes

Verify:
Multiple drop-downs field in FormWidgetExamples.
https://localhost:8443/example/control/FormWidgetExamples

Find Request page with StatusId , CustRequestId
https://localhost:8443/ordermgr/control/FindRequest

I have replaced the plugins though I feel the implementation of select multiple 
js code is to be reviewed & refactored. I will pick when I am done with all my 
current tasks if I get some consensus.

Thanks: Aditya 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1821001 13f79535-47bb-0310-9956-ffa450edef68
2018-01-12 15:47:47 +00:00
Deepak Dixit 1a53771473 Fixed: Corrected engine name for updateWorkEffortFixedAssetStd service, Thanks Suraj Khurana for reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818101 13f79535-47bb-0310-9956-ffa450edef68
2017-12-14 10:56:49 +00:00
Arun Patidar 8b5e790729 Fixed: Error displayed while adding WorkEffort Contact Mechs.(OFBIZ-9316)
Applied slightly modified patch. Thanks Jagpreet for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801349 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 06:30:21 +00:00
Deepak Dixit 7fb5c14fe3 Improved: Removed deprecated entity related migration service, also removed some more deprecated entities that are located in entitymodel.xml instead entitymodel_old.xm (OFBIZ-9327)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1792182 13f79535-47bb-0310-9956-ffa450edef68
2017-04-21 11:21:32 +00:00
Deepak Dixit 4149bbddbb Fixed: Remove duplicate service entry for deleteWorkEffortInventoryProduced.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1782662 13f79535-47bb-0310-9956-ffa450edef68
2017-02-12 11:57:31 +00:00
Deepak Dixit 0f5465684a Fixed: Fixed console warning introduced in revision#1768253
(OFBIZ-8358)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768288 13f79535-47bb-0310-9956-ffa450edef68
2016-11-06 08:02:29 +00:00
Arun Patidar 918d9fa451 Implemented: Added CRUD services for ApplicationSandbox, CartAbandonedLine, PaymentGatewayConfig, PaymentGatewaySagePay, PaymentGatewayAuthorizeNet and PaymentGatewayClearCommerce entities.
(OFBIZ-8970) (OFBIZ-8993)(OFBIZ-9081)(OFBIZ-9082)(OFBIZ-9087)(OFBIZ-9091)

Thanks: Amit Gadaley, Rohit Koushal and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768266 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 18:24:21 +00:00
Deepak Dixit f71ec58bfb Fixed: Set required parameter as option false at service definition level.
(OFBIZ-8358)

Thanks Avnindra Sharma and Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768253 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 17:25:25 +00:00
Deepak Dixit d2a695e9bc Fixed: Incorrect required parameters set on following services, mark required parameters as option false as service in parameter.
- createWorkEffortKeywords
- createWorkEffortQuote
- createWorkEffortRequest
- createWorkEffortRequestItem
- createWorkEffortRequestItemAndRequestItem
- createWorkEffortReview
- createWorkRequirementFulfillment
(OFBIZ-8602)(OFBIZ-8603)(OFBIZ-8604)(OFBIZ-8605)(OFBIZ-8620)(OFBIZ-8621)(OFBIZ-8622)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768252 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 17:15:00 +00:00
Deepak Dixit 8ffec06b64 Fixed: Update Services that sets non-pk fields to null if not passed, if non-pks not passed than it should remain unupaded.
(OFBIZ-8722)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768239 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 16:28:57 +00:00
Deepak Dixit 3eca8d6aad Improved: Added generic permission service for following
- facility
- marketting
- return
- entitysync
Also moved  the permission check from implementation level to service defination level

(OFBIZ-8673)(OFBIZ-8673)(OFBIZ-8674)(OFBIZ-8739)(OFBIZ-8823)(OFBIZ-8825)(OFBIZ-8827)(OFBIZ-8850)(OFBIZ-8876)(OFBIZ-8875)(OFBIZ-8824)(OFBIZ-8826)(OFBIZ-8851)

Thanks Nameet Jain for your contribution

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1768188 13f79535-47bb-0310-9956-ffa450edef68
2016-11-05 11:10:57 +00:00
Arun Patidar 3584666dbc Implemented: Added CRUD services for ProdConfItemContentType, ProductAssocType, UserPrefGroupType, WebPreferenceType, WorkEffortAssocAttribute, WorkEffortAssocType, WorkEffortAssocTypeAttr, WorkEffortBilling, WorkEffortContentType, WorkEffortGoodStandardType, WorkEffortPurposeType, WorkEffortType, WorkEffortTypeAttr, WorkReqFulfType, UomType, UomGroup, ProductPricePurpose, ProductPriceType, ProductStoreGroupRole and ProductStoreGroupRollup entities.
(OFBIZ-8729)(OFBIZ-8730)(OFBIZ-8792)(OFBIZ-8793)(OFBIZ-8794)(OFBIZ-8795)(OFBIZ-8796)(OFBIZ-8797)(OFBIZ-8798)(OFBIZ-8799)(OFBIZ-8800)(OFBIZ-8801)(OFBIZ-8802)(OFBIZ-8803)(OFBIZ-8788)(OFBIZ-8789)(OFBIZ-8767)
(OFBIZ-8768)(OFBIZ-8769)(OFBIZ-8770)

Thanks: Chinmay Patidar, Amit Gadaley and Rishi Solanki for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767965 13f79535-47bb-0310-9956-ffa450edef68
2016-11-03 20:30:52 +00:00
Jacques Le Roux ef7ce89714 Improved: Convert WorkEffortContent entity CRUD service to entity-auto
(OFBIZ-8666)

Adds a DELETE permission to deleteWorkEffortContent service implementation to be
consistent with create and update.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767792 13f79535-47bb-0310-9956-ffa450edef68
2016-11-02 22:08:11 +00:00
Deepak Dixit 19881beffb Improved: Converted following WorkEffort related services to entity-auto
- CustRequestItemWorkEffort
 - CustRequestWorkEffort
 - OrderHeaderWorkEffort
 - WorkEffortContactMech
 - QuoteWorkEffort
 - ShoppingListWorkEffort
 - WorkEffortContent
 - WorkEffortGoodStandard
 - WorkRequirementFulfillment
 (OFBIZ-8658)(OFBIZ-8659)(OFBIZ-8660)(OFBIZ-8661)(OFBIZ-8663)(OFBIZ-8665)(OFBIZ-8666)(OFBIZ-8667)(OFBIZ-8668)
 
Thanks Pawan Verma for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767549 13f79535-47bb-0310-9956-ffa450edef68
2016-11-01 19:11:20 +00:00
Deepak Dixit aef7161215 Fixed: Console Warning : No parameter found for override parameter named
(OFBIZ-7814)

Thanks Nameet Jain for your contribution.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1766860 13f79535-47bb-0310-9956-ffa450edef68
2016-10-27 17:06:55 +00:00
Deepak Dixit eda58c9e93 Improved: Converted some WorkEffort related CRUD services from simple to entity-auto.
(OFBIZ-8394)(OFBIZ-8395)(OFBIZ-8396)(OFBIZ-8397)(OFBIZ-8398)(OFBIZ-8399)(OFBIZ-8400)(OFBIZ-8401)(OFBIZ-8402)(OFBIZ-8403)(OFBIZ-8404)(OFBIZ-8405)(OFBIZ-8406)

Thanks Pawan Verma for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765352 13f79535-47bb-0310-9956-ffa450edef68
2016-10-17 18:57:33 +00:00
Nicolas Malin 2f9435b2cb Implemented : Enable the status selection for WorkEffort duplication
(OFBIZ-7959)

When duplicate a workEffort, if a status is given, initialize on this or check the first status sequence on the same statusType from the duplicate workEffort
Convert the ftl form EditWorkEffortDupForm to sreen engine form EditWorkEffortDuplicate

Thanks : Montalbano Florian for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761233 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 13:34:47 +00:00
Arun Patidar 3539ea7ed9 Implemented: Added CRUD services for DeductionType, Deliverable and DeliverableType entity.
(OFBIZ-8047) (OFBIZ-8048)(OFBIZ-8049)

Thanks: Amit Gadaley for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761140 13f79535-47bb-0310-9956-ffa450edef68
2016-09-17 07:44:56 +00:00
Taher A. Alkhateeb 889125734b patch provided by Leila Mekika to add WorkEffortAttribute CRUD services - OFBIZ-7973
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1757689 13f79535-47bb-0310-9956-ffa450edef68
2016-08-25 13:53:50 +00:00
Deepak Dixit 834691742b (OFBIZ-6274) Renamed OFBiz artefacts from org.ofbiz.* to org.apache.ofbiz.*.Thanks to Taher for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752920 13f79535-47bb-0310-9956-ffa450edef68
2016-07-16 10:30:49 +00:00
Jacques Le Roux ec66e361e1 A big but straightforward commit for "Move minilang scripts from component://componentname/script/org/ofbiz to component://componentname/minilang" - https://issues.apache.org/jira/browse/OFBIZ-7267
I removed duplicate paths were componentname was uselessly repeated after component://componentname/script/org/ofbiz (projectmngr was the only one using there project instead)

I had few typos, easily fixed thanks to the tests. There could be still typos but they are unexpected and anyway no-brainer to fix 

I'm still wondering about specialpurpose/example/minilang/README.txt.
I changed its content to 
  "The minilang directory is for static resources that are interpreted at run time rather than being compiled. This goes on the classpath, but does not get built or put into a JAR file."
not sure it makes any sense, I don't see how this relates to the classpath. 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747712 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 14:04:30 +00:00
Nicolas Malin 8e4bfa1eba remove old deprecated code in WorkEffortEventReminder services related to issue OFBIZ-6519. Thanks Gil Portenseigne for this cleaning
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686754 13f79535-47bb-0310-9956-ffa450edef68
2015-06-21 20:09:31 +00:00
Jacques Le Roux 7adfe90d71 Fixes <<Services allow arbitrary HTML for parameters with allow-html set to "safe">> https://issues.apache.org/jira/browse/OFBIZ-5254
After r751990, <<allow-html="any">> and <<allow-html="safe">> are the same: they do nothing! The only difference is the warning message from the OWASP Antisamy IntrusionDetector, which is both, as Christoph noted "giving you a false sense of security" or as I wrote "disturbing, wrong and useless". So there are no longer any reasons for differencing "safe" and "any".

This
* Deprecates "safe" (making it clear in the XSD documentation), keeping only "none" and "any". This is for backward compatibility, else we could completely remove the misleading "safe". Note that "none" is the default.
* Replaces in services definition all allow-html="safe" by allow-html="any"
* Remove from ModelService.java (near line 587) the code which throws the OWASP Antisamy IntrusionDetector message in log

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1536324 13f79535-47bb-0310-9956-ffa450edef68
2013-10-28 12:12:43 +00:00
Adrian Crum 0585858761 Added a workEffortTypeId parameter to the getICalWorkEfforts service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1230689 13f79535-47bb-0310-9956-ffa450edef68
2012-01-12 18:34:06 +00:00
Adrian Crum 999fdc5d96 Added a source code comment and service definition documentation to clear up some confusing behavior in the getWorkEffortEventsByPeriod service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1225647 13f79535-47bb-0310-9956-ffa450edef68
2011-12-29 20:52:35 +00:00
Hans Bakker cc3702ccb5 allow safe html in workeffort name and desciption
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1189555 13f79535-47bb-0310-9956-ffa450edef68
2011-10-27 00:36:17 +00:00
Adrian Crum b758748e52 Oops, I forgot to add a permission check in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164839 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 09:46:36 +00:00
Adrian Crum 9a54c2df9d Added two new services - copyWorkEffort and copyWorkEffortAssocs. The copyWorkEffort service can be used as a replacement for the duplicateWorkEffort service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1164773 13f79535-47bb-0310-9956-ffa450edef68
2011-09-03 00:38:25 +00:00
Adrian Crum 46ce86f899 Clean up, debug, improve the duplicateWorkEffort service.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1163026 13f79535-47bb-0310-9956-ffa450edef68
2011-08-29 21:42:20 +00:00
Erwan de Ferrieres a7735325b0 Accurate descriptions for getWorkEffortAssignedTasks getWorkEffortAssignedActivities getWorkEffortAssignedActivitiesByRole getWorkEffortAssignedActivitiesByGroup services
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1136835 13f79535-47bb-0310-9956-ffa450edef68
2011-06-17 10:14:47 +00:00
Hans Bakker 7d62e698fc make notification services for custRequest and commevent website aware
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1128984 13f79535-47bb-0310-9956-ffa450edef68
2011-05-30 03:01:29 +00:00
Hans Bakker 66d23d0f04 allow safe html in workeffort description and name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1075633 13f79535-47bb-0310-9956-ffa450edef68
2011-03-01 03:20:59 +00:00
Scott Gray 0fc0ea4ad5 Extract processWorkEffortEventReminder out to a service so that the implementation can be overridden if desired. Deprecates org.ofbiz.workeffort.workeffort.WorkEffortServices.processEventReminder(DispatchContext, GenericValue, Map<String, Object>), use the processWorkEffortEventReminder service instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1039980 13f79535-47bb-0310-9956-ffa450edef68
2010-11-28 23:29:44 +00:00
Hans Bakker 473f78cecf allow 'safe' html in workeffort name, description and request description
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1027897 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 10:31:41 +00:00
Hans Bakker c2833dcf2f reverting rev 1027811 because of buildbot errors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1027885 13f79535-47bb-0310-9956-ffa450edef68
2010-10-27 10:12:49 +00:00