Commit Graph
27737 Commits
Author SHA1 Message Date
Deepak Dixit a1daf009ca Applied patch manually from jira issue OFBIZ-6207 - Anyone can view any Request or Quote
Thanks  Forrest Rae for reporting the issue and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677769 13f79535-47bb-0310-9956-ffa450edef68
2015-05-05 10:17:12 +00:00
Jacopo Cappellato 5c2e9841e8 Removed commons-cli jar that was not used: barcode4j has an optional dependency on it but only if used from the command line (which is not the case in OFBiz); Groovy has a dependency on Commons CLI, antlr, asm but it uses a copy of them bundled in groovy-all jar, so removing the pathelements set for the ant path id "groovy.class.path".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677597 13f79535-47bb-0310-9956-ffa450edef68
2015-05-04 13:36:09 +00:00
Adrian Crum a84272b1ba Trivial code cleanup in ObjectType.java - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677386 13f79535-47bb-0310-9956-ffa450edef68
2015-05-03 11:25:08 +00:00
Christian Geisert 147854c9b3 OFBIZ-6305 translations of ProductUILabels.xml
Submitted by Martin Becker <martin.becker@ecomify.de>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677219 13f79535-47bb-0310-9956-ffa450edef68
2015-05-01 20:17:33 +00:00
Jacques Le Roux 1054bfa97c Fixes the way the FOP baseUrl was set. This was due to a change introduced for "Allow FOP to support <fo:external-graphic></fo:external> for -Dportoffset" at https://issues.apache.org/jira/browse/OFBIZ-6120
Thanks to Deepak's report

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1677123 13f79535-47bb-0310-9956-ffa450edef68
2015-05-01 12:08:59 +00:00
Adrian Crum ebf03ea721 Some work on ComponentContainer.java:
1. Improved thread safety
2. Optimization
3. Code cleanup
4. Use String constant instead of hard-coded value


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676985 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 13:46:46 +00:00
Adrian Crum d82005c958 Use String constant instead of hard-coded value.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676975 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:42:17 +00:00
Adrian Crum ec9d5d5416 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676974 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:41:26 +00:00
Adrian Crum ef710ed02f Some work on ComponentLoaderConfig.java:
1. Thread safety
2. Optimization
3. Code cleanup
4. Improved error handling

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676970 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 12:12:17 +00:00
Adrian Crum f322e1ca88 Optimization: move array creation outside loop so it is created only once.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676953 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 10:32:40 +00:00
Adrian Crum 4d01ad0289 JavaDoc fix and remove debug code. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676947 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 10:17:03 +00:00
Adrian Crum 2d37c15a48 Remove some code comments that were accidentally copied to new files.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676942 13f79535-47bb-0310-9956-ffa450edef68
2015-04-30 09:56:34 +00:00
Adrian Crum 0cae1a3571 Small fixup for my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676749 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 14:17:14 +00:00
Adrian Crum c2de699ca6 Fixed some bugs in startup code (https://issues.apache.org/jira/browse/OFBIZ-6268):
1. Class path loading was ignoring component settings, so class paths for disabled components were being loaded.
2. Configuration files were parsed twice.
3. Potential problem with unloading a loader that failed loading.

I was unable to test Cobertura because the necessary class (org.ofbiz.base.config.CoberturaInstrumenter) isn't being compiled for some reason.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676746 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 13:52:27 +00:00
Adrian Crum cd4f6cdbb3 Fixed a bug in UtilMisc.java where the List returned by the availableLocales() method included an empty Locale - causing errors in FreeMarker templates.
https://issues.apache.org/jira/browse/OFBIZ-6309

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676674 13f79535-47bb-0310-9956-ffa450edef68
2015-04-29 06:10:01 +00:00
Adam Heath e41b3149d8 Fix dumb compile errors in this file; please, let's be careful. Note
the EntityQuery import; this was due to this class being added, but not
imported, which is an obvious error.

Also, if you don't understand generics, please ask.  The changes listed
here are very basic compile errors.

The general problems discovered here are due to the class *not being
compiled* by default.  If you change something, at least attempt to see
if it has an effect.  Compile errors are just plain bad.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676303 13f79535-47bb-0310-9956-ffa450edef68
2015-04-27 15:25:00 +00:00
Adam Heath 5b96683aa8 Rename lib.txt to README, which is how other components keep the empty
lib folder around.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676156 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 23:30:31 +00:00
Adam Heath d5b6b35901 Add in missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676155 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 23:30:26 +00:00
Adam Heath 2dd530a51e Remove uesless exclusion of ofbiz crypto class compilation.
This was based on the availabily of javax.crypto.Cipher, which became
standard in java 1.4.  We require 1.7.  This is very old.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676154 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 23:30:20 +00:00
Adrian Crum 86d58f1fb1 Clean up unusual initialization of StartupException in Start.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676100 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 11:59:42 +00:00
Adrian Crum 57977ab950 Code simplification in StartupException.java - remove custom code that duplicates functionality that already exists in super class Throwable.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1676098 13f79535-47bb-0310-9956-ffa450edef68
2015-04-26 11:36:49 +00:00
Nicolas Malin 5f6c13b369 correct String conversion to Set on StringUtil that not respect the field order, thanks to Francis Douet to raise it on the issue (OFBIZ-6299 Field order is not correct in the auto-complete for look-ups.)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675998 13f79535-47bb-0310-9956-ffa450edef68
2015-04-25 07:00:42 +00:00
Adam Heath 155982d243 Remove unused import from ant, HasMethod.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675958 13f79535-47bb-0310-9956-ffa450edef68
2015-04-24 21:31:39 +00:00
Pranay Pandey 7f5df9fff5 Fixed the order in which invoice and payment transactions are created.
Payment transactions were being created prior to invoice transactions, It causes confusion for accountants in real world. 

It was a seca execution order which was causing the issue on setInvoiceStatus. Moved the trigger on setInvoiceStatus for checkInvoicePaymentApplications and capturePaymentsByInvoice from secas.xml to secas_invoice.xml, so that we do invoice transactions prior to payment. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675852 13f79535-47bb-0310-9956-ffa450edef68
2015-04-24 13:29:56 +00:00
Jacques Le Roux 23c89bab02 This defines the NotoSans font as default for report and FOP-PDF examples
With NotoSans by default, no need to specify the NotoSans "font-family" to write special characters in examples PDF (including content called from example).
This already worked in reports because of "fop.font.family=NotoSans" in fop.properties. It's also the way to use for custom reports.

I also added <auto-embed/> like we have <auto-detect/> but I'm unsure of what it does exactly (I suppose it embeds the fonts glyphs in the PDF) because the FOP documentation is unclear about it (to say the least). If someone knows better please chime in!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675061 13f79535-47bb-0310-9956-ffa450edef68
2015-04-21 08:03:41 +00:00
Jacques Le Roux 46ba7be2db I just noticed those svn:ignore properties which should not be there (committed on my side)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1675039 13f79535-47bb-0310-9956-ffa450edef68
2015-04-21 06:23:41 +00:00
Jacques Le Roux e8ade5bad7 When I added the FOP menu entry in the example menu I forgot to remove the initial tentative I did with menu items (not possible since it's only PDF: no HTML UI)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674935 13f79535-47bb-0310-9956-ffa450edef68
2015-04-20 15:44:58 +00:00
Jacopo Cappellato debe89225a OFBIZ-6269: "Pro-rate shipping calculation is generating incorrect invoice in case of order with subtotal $0.00"
The solution provided in this commit is to use, in these cases, the quantities instead of the amounts for pro rating of misc and shipping adjustments.
Thanks to Mohammad Kathawala for the bug report, great analysis and tests that have helped me a lot to implement this fix.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674908 13f79535-47bb-0310-9956-ffa450edef68
2015-04-20 15:00:00 +00:00
Jacques Le Roux 246236e3cc A patch from Pierre Smits "Add a basic VAT report with frequency setting" https://issues.apache.org/jira/browse/OFBIZ-6225
This is a 1st stage, we will add more later, notably totals as a 1st step and then a more complete report but still basic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674587 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 22:48:01 +00:00
Jacques Le Roux 5d557fac74 I wanted to be sure the degree symbol could be printed with FOP using NoTo fonts and to have this more handy I decided to put a menu link to the FOP fonts file in content from example.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674586 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 22:45:30 +00:00
Adrian Crum 4a6cd610ee Some trivial optimizations in Config.java.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674546 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 17:45:20 +00:00
Ashish Vijaywargiya d604e748d5 Applied patch from jira issue - OFBIZ-6260 - foScreenMacroLibrary.ftl renderLabel doesn't apply style parameter.
Thanks Christian for creating the issue and contributing the patch for the same. Thanks Aditya for reviewing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674513 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 14:11:37 +00:00
Deepak Dixit 5006b71873 Fixed broken CategroyTree.groovy, fixed incorrect map assignment, also found unused variable so removed it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674503 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 13:15:07 +00:00
Deepak Dixit 56fc47e2d3 Applied patch from jira issue OFBIZ-6196 - Package Labels Report error for Manufacturing Shipment Plan
Thanks Christian Carlow for reporting the issue and thanks   Amardeep Jhajj for verifying it the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674496 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 12:57:47 +00:00
Deepak Dixit 5df94b9e00 Applied patch from jira issue OFBIZ-6188 - Task Report error for Manufacturing Shipment Plan
Thanks Christian Carlow for reporting the issue and thanks   Amardeep Jhajj for verifying it the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674491 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 12:34:33 +00:00
Jacques Le Roux 3ecea0fd93 A patch from Pierre Smits "Move special purpose/jetty to attic" https://issues.apache.org/jira/browse/OFBIZ-6223
As per outcome of http://ofbiz.markmail.org/message/xoqjhbitdj5fi3bl remove special purpose/jetty from the trunk branch and add a notification to the attic document.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674482 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 11:44:52 +00:00
Deepak Dixit 356a2ff84e Applied slightly modified patch from jira issue OFBIZ-6202 - Expected hash" Freemarker error in FindInventoryEventPlan
Thanks Paul Foxworthy for reporting and providing the patch for the issue.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674464 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 08:49:56 +00:00
Adrian Crum a2fc70daff A small change to the behavior of the UtilProperties.createProperties() method: if the file is not found, return null instead of throwing an exception.
https://issues.apache.org/jira/browse/OFBIZ-6261

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674453 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 08:30:03 +00:00
Adrian Crum e55e71edcc Fix OFBiz looking for web.xml in wrong place - https://issues.apache.org/jira/browse/OFBIZ-6259.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674451 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 07:33:29 +00:00
Deepak Dixit 5fdc62745e Applied patch from jira issue OFBIZ-4837 - Separator Error in data file tools.
Thanks   Gil Portenseigne for reporting and providing the patch for the issue, Thanks Aditya for uploading the update patch and verifying it.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674447 13f79535-47bb-0310-9956-ffa450edef68
2015-04-18 06:40:32 +00:00
Jacques Le Roux d524de4d4c No functional change, replace &quot; by "
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674292 13f79535-47bb-0310-9956-ffa450edef68
2015-04-17 12:36:12 +00:00
Adam Heath c589bdaa28 Well, this is the start of converting ofbiz to use maven for building
and packaging.  There's a workable parent-pom, and I have converted
framework/start to maven as well.  To use this, the following commands
are useful:

* mvn clean
* mvn compile
* mvn package

All 3 can be run in either ${ofbiz.home.dir}, or in framework/start.
The trick that made this simple, was that I was able to redefine maven's
default file layout away from src/main/java and target/*, to something
more ofbiz specific.  This way of doing things is just to get things
going; eventually, we should adopt a more standard maven like layout.

Another thing not dealt with in these first 2 files, is downloading of
dependencies.  The top-level and framework/start have no external
requirements, so it allowed me to get going quite quickly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674216 13f79535-47bb-0310-9956-ffa450edef68
2015-04-17 05:52:32 +00:00
Adrian Crum a1bb4ff6bc Fix warnings in trunk in Java source code - https://issues.apache.org/jira/browse/OFBIZ-6217.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1674064 13f79535-47bb-0310-9956-ffa450edef68
2015-04-16 13:05:55 +00:00
Jacques Le Roux 2d46984aec Fixes a typo after a C/P
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673912 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 18:14:18 +00:00
Jacques Le Roux d4ae38b2ae Revert r1673764 related with https://issues.apache.org/jira/browse/OFBIZ-6253 wrong: "Fixe <result-to-field> doc for <call-simple-method> in simple-methods-v2.xsd"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673880 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 17:22:20 +00:00
Jacques Le Roux 8122cbe2e3 Fixes https://issues.apache.org/jira/browse/OFBIZ-6254 "Minilang: type="NewMap" and type="NewList" for the Set element don't work"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673859 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 16:42:06 +00:00
Jacques Le Roux d80c881c57 Fixes a wrong assertion, <result-to-field can only be used with inline scope.
Minor &quot; to " changes

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673764 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 13:45:43 +00:00
Nicolas Malin 6fbf256c28 Change performfind test sequence to escape a random error with dbcp, related to issue OFBIZ-6218 Unit tests throw exception in DBCP. Thanks Adrian for report it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1673269 13f79535-47bb-0310-9956-ffa450edef68
2015-04-13 20:14:10 +00:00
Jacques Le Roux 8767cffbd4 "Have a readme in every component" https://issues.apache.org/jira/browse/OFBIZ-6243 by Pierre Smits
Here are the assetmaint and myportal README files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672990 13f79535-47bb-0310-9956-ffa450edef68
2015-04-12 08:25:48 +00:00
Jacques Le Roux eb9a2a20bf "Have a readme in every component" https://issues.apache.org/jira/browse/OFBIZ-6243
Here are the manufacturing, projectmgr and scrum README files

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1672904 13f79535-47bb-0310-9956-ffa450edef68
2015-04-11 17:21:34 +00:00