Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 8f0eb96a2c A slightly modified patch from Leon for "ConcurrentModificationException when cancelling an order" https://issues.apache.org/jira/browse/OFBIZ-5194
Leon:
Thanks for resolve this bug. But it introduce a small flaw: all cancelled items is filtered out from order item list.

The filter condition before this patch is : ("Y".equals(orderItem.get("isPromo")) && "ITEM_CANCELLED".equals(orderItem.get("statusId"))); – means filter out the item that is promo "AND" cancelled.
That of patch is : ! ((item.isPromo == null || item.isPromo == 'N') && !(item.statusId.equals('ITEM_CANCELLED'))) – means filter outer the item that is promo "OR" cancelled.

Theses two is not equivalent. After this patch, all cancelled items are filter out, no matter it's promo or not.


jleroux:

What we had before the change:
 get cancelled promo items
 remove them from the list of items
So we got all items but cancelled promo items

What we have now:
Get non-promo items AND non-cancelled items (or as said Scott "get all non-promo items that aren't cancelled")

What you suggest:
Get non-promo items OR non-cancelled items (if re-phrase what you suggest: get all non-promo items and add to them all the non-cancelled ones, so including the non-cancelled promo ones)

Your sentence "After this patch, all cancelled items are filter out, no matter it's promo or not." is almost right. Because we not only miss the cancelled non-promo but also the promo not cancelled

To re-prhase myself: Currently we miss the promo items which are not cancelled and the non-promo items which are cancelled

Pfew... the exclusive reasoning is here quite easier than the inclusive one!

I removed the useless parentheses around the cancelled proposition

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524361 13f79535-47bb-0310-9956-ffa450edef68
2013-09-18 10:49:54 +00:00
Hans Bakker a847b48b07 reverted unwanted change in r1524279
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524336 13f79535-47bb-0310-9956-ffa450edef68
2013-09-18 08:30:20 +00:00
Hans Bakker 557894d331 chanmge title relation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524279 13f79535-47bb-0310-9956-ffa450edef68
2013-09-18 02:52:31 +00:00
Adrian Crum 572ac66d16 Minor change to GenericDelegator - Put some logging calls inside if blocks.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524183 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 19:17:49 +00:00
Adrian Crum 252de4230f Fixed a bug in menu rendering, reported by Jacques on the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524143 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 17:58:13 +00:00
Adrian Crum 8004ad04c2 JavaDoc fix - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524134 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 17:17:56 +00:00
Adrian Crum 0e1449137d Small improvement to String-to-Date conversion: Accept either JDBC escape format or localized format.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524133 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 17:16:50 +00:00
Adrian Crum c276d17fa4 Small change to ObjectType.java - log warning on conversion failures so we can see what went wrong.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524132 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 17:15:20 +00:00
Adrian Crum ecb1c8e8d6 Fix a trivial compiler warning - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524131 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 17:13:52 +00:00
Jacopo Cappellato 672dc55f1e Moved the docbook distribution from applications/content to specialpurpose/cmssite, the only component that requires it. The Docbook schemas are still in the content component because they are required to render the online help screens of the applications.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1524112 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 16:11:00 +00:00
Hans Bakker 707a96401e missing reference in custRequest for parentCustRequestId field
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523959 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 09:03:44 +00:00
Jacopo Cappellato d636fbc327 Removed empty folder
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523899 13f79535-47bb-0310-9956-ffa450edef68
2013-09-17 05:37:43 +00:00
Jacopo Cappellato f77307f71e Removed commented out lines created for test purposes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523739 13f79535-47bb-0310-9956-ffa450edef68
2013-09-16 18:13:51 +00:00
Jacques Le Roux 53343461e0 Since we decided to keep findAll, no reasons to deprecate
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523645 13f79535-47bb-0310-9956-ffa450edef68
2013-09-16 13:38:08 +00:00
Jacques Le Roux ca73e7694e As suggested on dev ML, reintroduces findAll("EntityName") but uses the new pattern with a cache variable rather than a signature with "Cache" in method name (thanks to Adrian's comment on dev ML)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523507 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 21:58:38 +00:00
Jacques Le Roux 8de2674e78 This slipped in inadvertently
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523468 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 18:01:54 +00:00
Jacques Le Roux d54e2f098c As suggested on dev ML, reintroduce findAll("EntityName"), I decided that findAllCache("EntityName") could be also. If you disagree on findAllCache, just remove it...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523466 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 17:53:43 +00:00
Jacques Le Roux 5e194d1138 "Fix online help issues" https://issues.apache.org/jira/browse/OFBIZ-5320
A forgotten one

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523436 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 14:27:48 +00:00
Jacques Le Roux b8db107a26 "Fix online help issues" https://issues.apache.org/jira/browse/OFBIZ-5320
Fixes the setup application help

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523430 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 12:15:12 +00:00
Jacques Le Roux c70c41921d "Fix online help issues" https://issues.apache.org/jira/browse/OFBIZ-5320
This fixes most of the issues but some are remaining, I report them in OFBIZ-5320

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1523423 13f79535-47bb-0310-9956-ffa450edef68
2013-09-15 09:41:28 +00:00
Jacques Le Roux ff96845662 I18n of FacilityInventoryHistoryReport, I moved the labels from Product to birt application, they could have stayed there, but I preferred to have them in one place. We need to i18n the Birt reports also
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522782 13f79535-47bb-0310-9956-ffa450edef68
2013-09-13 05:37:37 +00:00
Jacques Le Roux d9ce0658d1 This reverts the change in birt ofbiz-component done at r1400463
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522679 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:40:14 +00:00
Jacques Le Roux 5c4bb0a2b4 Reverts r1518777
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522675 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:36:45 +00:00
Jacques Le Roux 8a6324862b No functional changes: remove useless/confusing comments, replace tabs by spaces (from commit r1519544)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522670 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:24:00 +00:00
Jacques Le Roux a2e67c7770 Following Jacopo's message on dev ML: http://markmail.org/message/yuogfjxddq2mum45
This reverts changes done for OFBIZ-5297


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522664 13f79535-47bb-0310-9956-ffa450edef68
2013-09-12 17:07:12 +00:00
Adrian Crum ac4f89935d Trivial improvement to log message: Add a stack trace.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522006 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 19:39:34 +00:00
Adrian Crum 67225263bb Refactored MacroScreenViewHandler.java so it doesn't require empty "do nothing" templates.
https://issues.apache.org/jira/browse/OFBIZ-5310


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1522002 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 19:31:14 +00:00
Christian Geisert 07728e0c67 target 'clean-search-indexes' should not fail when 'runtime/indexes' directory is missing
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521754 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 08:03:28 +00:00
Jacques Le Roux 656e0deef5 Damn, forgot to commit this with r1521589
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521740 13f79535-47bb-0310-9956-ffa450edef68
2013-09-11 06:01:27 +00:00
Jacques Le Roux ba5dc0cfea For "Order Report Issue" https://issues.apache.org/jira/browse/OFBIZ-5297
The quickInitDataWarehouse BI button used these dates (set in BI main screen)

<set field="fromDate" value="2008-01-01 00:00:00.0" type="Timestamp"/>
<set field="thruDate" value="2010-01-01 00:00:00.0" type="Timestamp"/>

This generated 1000+ records. I set 10 years ahead (from sept. 2013) in a new bi.properties file used by the BI main screen. So it generates only 3000+ records (and others related in BI DB) which is still reasonable. A message, placed at the top of the Order Reports page, informs users that for 4 Birt reports s/he needs 1st to run the data warehouse init using the BI button. Also this message clarifies the range, to be certain that in 10 years people will still easily know what to change...

I have also replaced a lot of labels and added English and French translations (by-product: some labels cleaning in CommonUiLabels.xml)

I did not do the same for the accounting paymentReport and ViewFacilityInventoryHistoryReport facility Birt reports which only need translation. 
I noticed that there are no ways to get to ViewFacilityInventoryHistoryReport from UI though!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521589 13f79535-47bb-0310-9956-ffa450edef68
2013-09-10 19:08:29 +00:00
Hans Bakker 8d58d0d9e9 remove typing error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1521348 13f79535-47bb-0310-9956-ffa450edef68
2013-09-10 02:07:53 +00:00
Hans Bakker 7be06f2f43 small improvements of the programmable database export
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520954 13f79535-47bb-0310-9956-ffa450edef68
2013-09-09 03:10:00 +00:00
Jacopo Cappellato 07934c65d3 Simplified the layout of the main/framework/applications/specialpurpose build files; now the files:
framework/build.xml
applications/build.xml
specialpurpose/build.xml

are only used to define the filelist properties (as before) with the list of components to be built.
The main build file simply refers to these lists to build/doc/clean OFBiz; as before, if applications' or specialpurpose's build.xml files are absent, the folders are ignored.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520744 13f79535-47bb-0310-9956-ffa450edef68
2013-09-07 09:27:59 +00:00
Jacopo Cappellato 60fdfcbfa8 First pass of the cleanup of Ant's targets defined in main build file and in build files for framework/applications/specialpurpose folders:
* removed redundant targets (e.g. clean-xtras)
* removed unused targets and settings
* moved runtime related targets from framework to main build file
* moved the search index runtime folder from runtime/data/indexes to runtime/indexes to prevent the removal of indexes when clean-data is executed



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520510 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 08:32:47 +00:00
Jacopo Cappellato 42a0cd5abc Fix for issue reported by Hans in the dev ml: after the migration of Lucene dependent code to specialpurpose, the application menu item for "Content" was replaced by "Lucene" due to a wrong title in the webapp declared in specialpurpose/lucene.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520509 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 08:24:47 +00:00
Hans Bakker 2908317017 added a new menu item in webtools: 'programmable export' where interactively a groovy program can be entered to export specifc records from the database. In order to apply some global changes for re-import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520505 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 08:03:34 +00:00
Jacopo Cappellato 233645aa89 Moved and renamed (from clean-lucene-index to clean-search-indexes) the ant target to clean runtime data for search indexes from the content build.xml to the main build.xml file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520326 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:29:34 +00:00
Jacopo Cappellato 1326473fda Set classpathentry for the src folder of the specialpurpose/lucene component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520322 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:12:57 +00:00
Jacopo Cappellato 65d76da54a Added svn:ignore property in order to ignore all files under the runtime/indexes folder.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520321 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:10:40 +00:00
Jacopo Cappellato c33e39550c Implemented the ability to specify an event (success) message in Groovy events when success(GString) is invoked.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520319 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 14:07:05 +00:00
Jacques Le Roux 251558ca8c Better to have this in doc than in a comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520249 13f79535-47bb-0310-9956-ffa450edef68
2013-09-05 08:23:59 +00:00
Jacopo Cappellato 0914236c45 Fix for typo in a comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519999 13f79535-47bb-0310-9956-ffa450edef68
2013-09-04 12:52:33 +00:00
Jacopo Cappellato 3911dc9aeb Removed parameter from the catalina-container setup that is deprecated:
public void setResolveHosts(boolean resolveHosts)
Deprecated. Unused, removed in Tomcat 8. See org.apache.catalina.connector.Connector.setEnableLookups(boolean).

and according to the above notes I have enabled the same behavior using the enableLookups flag in the Connectors.
This change resolves a warning during compilation but requires more testing.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519577 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 06:20:23 +00:00
Jacques Le Roux 3e8b20aa81 A patch from Parimal Gain for "Order Report Issue" https://issues.apache.org/jira/browse/OFBIZ-5297
Reports under Order component has following issues -
1. Following reports are not showing any records due some issue
   a. Last three month sales report.
   b. Sales report.
   c. Sales Order discount code report.
   d. Product demand report.
2. Inconsistency in opening the pdf report - some reports are opening in new tab window but some are in the same window.

Following are the checkpoint -
1) Order should be Approved
2) All Dimension table(CurrencyDimension, DateDimension, ProductDimension)should have record.
3) After approval of order, order record should be created in 'SalesOrderItemFact' table. These is the OLAP table used to display data in reports.

Description -
1) If dimension table doesn't have records then following services should execute from service engine -
a) loadAllProductsInProductDimension
b) loadCurrencyDimension
c) loadDateDimension
2) Calling service to create record in 'SalesOrderItemFact' is updated into patch. On commit operation of service 'changeOrderItemStatus' if order item is approved then 'loadSalesOrderFact' service called through SECAS.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519544 13f79535-47bb-0310-9956-ffa450edef68
2013-09-03 03:29:45 +00:00
Hans Bakker b06e78d5b6 replace numberformat with UtilFormatOut because not showing the Thai baht currency correctly
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519364 13f79535-47bb-0310-9956-ffa450edef68
2013-09-02 08:11:16 +00:00
Jacques Le Roux 06e7d2a646 The path /content/images/ was used in some places (only for contentForum.css it seems) but no mount point was associated, here is a fix
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1519245 13f79535-47bb-0310-9956-ffa450edef68
2013-09-01 08:18:47 +00:00
Jacopo Cappellato 4e9f674b6e Removed unused argument from a private method's signature.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518985 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 14:52:34 +00:00
Jacopo Cappellato 0d2f4d2347 Fix for typo in comment.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518983 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 14:45:45 +00:00
Jacopo Cappellato 25f1484bb5 Upgrade to latest Lucene release (4.4).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518981 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 14:40:26 +00:00
Jacopo Cappellato fa08fe4b00 Minor code cleanup for the Java classes in the "lucene" component: replaced unnecessary usage of Javolution, simplified some code, suppressed unnecessary empty lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518980 13f79535-47bb-0310-9956-ffa450edef68
2013-08-30 14:37:20 +00:00