Commit Graph
39 Commits
Author SHA1 Message Date
Pawan Verma 36a94d70df Fixed: Issue in which Agreement Item can't be removed from Agreement
(OFBIZ-11410)

Reason for the issue was incorrect use of service IN parameters for entity-auto delete invoke.

Thanks, Pierre Smits for the report.
2020-02-24 19:04:16 +05:30
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 a3f7437a09 Improved: Remove cancelAgreement service and added expireAgreement entity-auto service. (OFBIZ-9480)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801355 13f79535-47bb-0310-9956-ffa450edef68
2017-07-09 08:57:20 +00:00
Arun Patidar abbece0f9f Improved: Convert AgreementServices.xml mini-lang to groovyDSL. (OFBIZ-9460)
Thanks Rishi Solanki for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1801342 13f79535-47bb-0310-9956-ffa450edef68
2017-07-08 23:45:10 +00:00
Arun Patidar 97979f788f Applied patch from jira issue - OFBIZ-7870 - Added CRUD services for AgreementTypeAttr entity . Thanks Rohit Koushal and Rishi Solanki for your contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759526 13f79535-47bb-0310-9956-ffa450edef68
2016-09-07 00:51:59 +00:00
Nicolas Malin 60d4b2635e Add crud entity-auto service for AgreementType, thanks to Rishi Solanki and Pratik Kulshreshth for this patch trow OFBIZ-7871.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759181 13f79535-47bb-0310-9956-ffa450edef68
2016-09-04 17:58:57 +00:00
Deepak Dixit e99052cf12 (OFBIZ-7969) Applied slightly modified patch from jira issue.
=================================
Enable adding a content to an agreement
=================================
Thanks Leila Mekika for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759127 13f79535-47bb-0310-9956-ffa450edef68
2016-09-03 19:24:00 +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
Pranay Pandey e314e8a5ee [OFBIZ-7519] Updated optionality to required for attributes in entity auto services where pk fields were mentioned optional. It helps service engine to validate IN attributes and return error for missing ones.
Cases considered for this update are:
 1. One PK: Takes new sequence if PK not passed.
 2. Two PK: Both PK should be mandatory except the case of secondary primary key (like agreementItemSeqId) where next subsequence is generated.
 3. More than two PK's, all PK's should be mandatory except the fromDate.
 Thanks Amardeep Singh Jhajj for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749532 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 14:37:30 +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 63c0ab956e Add service crud for AgreementItemAttribute, related issue OFBIZ-6857
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1726951 13f79535-47bb-0310-9956-ffa450edef68
2016-01-27 08:16:07 +00:00
Nicolas Malin b1bd409b63 OFBIZ-5955 Convert Agreement entites CRUD service from simple to entity-auto
Convert the CRUD service for entities : Agreement,AgreementItem,AgreementPromoAppl,AgreementProductAppl,AgreementPartyApplic,AgreementGeographicalApplic,AgreementRole,AgreementWorkEffortApplic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650975 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 21:37:26 +00:00
Jacques Le Roux 90d37ce794 After my main external backup disk crashed, my main Eclipse workspace crashed also.
While rebuilding it, it seems I inadvertently pushed a OK button somewhere...
This reverts r1541470 and all pending stuff which should not have slipped in

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541485 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 12:01:48 +00:00
Jacques Le Roux d0bd4e8617 This was committed by error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1541470 13f79535-47bb-0310-9956-ffa450edef68
2013-11-13 11:07:04 +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
Jacques Le Roux abbf80f399 Removes useless and harmless cases reported by Leon for "Allow text data of agrement and its items accept "<" and ">" characters" https://issues.apache.org/jira/browse/OFBIZ-5209
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527345 13f79535-47bb-0310-9956-ffa450edef68
2013-09-29 16:29:26 +00:00
Jacques Le Roux 427d65e16c Reported by Adrian on dev ML.
Related to OFBIZ-5209. I guess Leon made a wrong C/P and the field is actually AgreementTerm.textValue I have also added it to updateAgreementTerm


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1527289 13f79535-47bb-0310-9956-ffa450edef68
2013-09-29 09:01:47 +00:00
Jacques Le Roux 83af74034f A patch from Leon for "Allow text data of agrement and its items accept "<" and ">" characters" https://issues.apache.org/jira/browse/OFBIZ-5209
It's common that an agreement text body contains those "special" characters.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1493682 13f79535-47bb-0310-9956-ffa450edef68
2013-06-17 08:26:43 +00:00
Adam Heath 12934702ec Add AgreementFacilityAppl entity and screens. There is no code that
deals with the data yet, however.  This is modeled after
AgreementProductAppl minus the price.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1413810 13f79535-47bb-0310-9956-ffa450edef68
2012-11-26 20:09:17 +00:00
Adam Heath ac2299c50e Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Vikas Mayur d20b0eb9b7 Moved the accounting permission services to a separate file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@930233 13f79535-47bb-0310-9956-ffa450edef68
2010-04-02 10:52:06 +00:00
Bilgin Ismet Ibryam 9190cdeb89 Renamed AgreementWorkEffortAppl entity to AgreementWorkEffortApplic in order to change relation types so that assigning WorkEfforts to Agreements is possible w/o specifying an agreementItemSeqId.
Added a migrateAgreementWorkEffortAppl service to migrate existing data to the new entity.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883140 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 20:17:38 +00:00
Anil Patel dac348b258 Adding ability to create Commission invoice from sales invoices. Patch from OFBIZ-2713. Thanks Rishi, Sumit, Awdesh, Amit for working on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@798854 13f79535-47bb-0310-9956-ffa450edef68
2009-07-29 10:54:02 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux 8f0c9f4c40 A 1s set of changes in accounting
Following best practice.
Changed location="org/ofbiz/......... to location="component:// in the service location attribute.
I used <service name=(.*)engine="simple"(.*)\R(.*)location="org/ofbiz => <service name=$1engine="simple"$2\R$3location="component://accounting/script/org/ofbiz 
More to follow... (component by component)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755925 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19 11:19:14 +00:00
Ashish Vijaywargiya 2f885778a0 Patch applied from JIRA issue # OFBIZ-1722.
Following things are covered in this patch :-
1) Create CRUD services for AgreementWorkEffortAppl. This should go in Accounting Component.
2) Create CRUD UI for AgreementWorkEffortAppl in Accounting --> Agreement to Add/Edit/Delete an AgreementWorkEffortAppl for an agreementId.
3) Create another CRUD UI in WorkEffort --> WorkEffort to Add/Edit/Delete an AgreementWorkEffortAppl for a workEffortId.
4) Create Lookups for Agreement and AgreementItems.

Thanks Nitin Bhawsar,Ravindra Mandre for working on this.
Special thanks to Jacopo and Mridul for your helpful comments.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663966 13f79535-47bb-0310-9956-ffa450edef68
2008-06-06 14:40:39 +00:00
Vikas Mayur 7dd25b9f2c Crud services for AgreementRole - part of issue OFBIZ-1794
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660999 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 16:10:39 +00:00
Adrian Crum a162030f1b Accounting agreement permissions and UI work.
Jacopo & Anil - see my ACCTG_ATX comments in AccountingSecurityData.xml.

Jacques - AgreementServices.java has changed, might affect POS.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@600242 13f79535-47bb-0310-9956-ffa450edef68
2007-12-02 05:11:59 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Jacopo Cappellato 2774954be0 Added new screens and services to manage the AgreementGeoApplicability entity.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@504496 13f79535-47bb-0310-9956-ffa450edef68
2007-02-07 11:03:37 +00:00
Jacques Le Roux dad67935f7 A (large) patch from Scott Gray "Update ASL header" (https://issues.apache.org/jira/browse/OFBIZ-637).
I put also some svn:ignore for shark build and lib diretories and assetmaint/build 

I did some by hand lately, too much to remember. They were files with old header but without copyright. A 1st attempt I suppose, will have to check this after this commit.

I add some problems to commit this patch in one piece because it's so huge (specially with Eclipse I had to turn to Tortoise) !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@499486 13f79535-47bb-0310-9956-ffa450edef68
2007-01-24 17:15:54 +00:00
David E. Jones 5f62c3ab4a Basics in place for sample customer affiliate commission service, with commented out ECA rule to trigger; just need to implement the invoice creation now
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@449224 13f79535-47bb-0310-9956-ffa450edef68
2006-09-23 12:29:54 +00:00
David E. Jones d3f94c5aef Replaced all old references to [Copyright * The Open For Business Project] which should take care of all of the legal loose ends
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@446798 13f79535-47bb-0310-9956-ffa450edef68
2006-09-16 00:35:48 +00:00
Jacopo Cappellato 31e9ddd06b small cleanup.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@427168 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 16:48:33 +00:00
Jacopo Cappellato ef9e63a249 Implemented the copy of an agreement.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@427159 13f79535-47bb-0310-9956-ffa450edef68
2006-07-31 16:33:26 +00:00
Jacopo Cappellato 0151f032dd Conversion from MIT to ASL2.0 for the files of the accounting component.
Many thanks to Scott Gray for the patch (Apache OFBIZ-87).

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422398 13f79535-47bb-0310-9956-ffa450edef68
2006-07-16 07:57:05 +00:00
Jacopo Cappellato c48a6e68fe Fixed broken xml file definition.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418558 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 07:47:56 +00:00
David E. Jones 828a0fe319 Applied patch from Anil Patel with some AgreementTerm screen cleanups and enhancements
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418539 13f79535-47bb-0310-9956-ffa450edef68
2006-07-02 01:05:50 +00:00
David E. Jones 94fe6d1cda Initial OFBiz import from revision 7923 of the old svn.ofbiz.org SVN repository.
git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@418498 13f79535-47bb-0310-9956-ffa450edef68
2006-07-01 19:05:20 +00:00