Commit Graph
14503 Commits
Author SHA1 Message Date
Scott Gray 3483832f8c Replace usage of deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982144 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 07:28:25 +00:00
Scott Gray bb97cd803b Deprecated (renamed) org.ofbiz.party.party.PartyWorker.findMatchingPartyAndPostalAddress(...), use findMatchingPersonPostalAddresses(...) instead. Includes minor javadoc change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982143 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 07:28:06 +00:00
Scott Gray 61c710f429 Extract Method getMatchingPartyPostalAddress(...) from getMatchingPartyAndPostalAddress and add a partyTypeId parameter to the extracted method, this allows the address matching portion of the code to be reused in various party matching methods e.g. Person vs. Company
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982142 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 07:27:58 +00:00
Scott Gray dc09ea0633 Replace a long "if not empty" block with an "if empty" early return, no functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982141 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 07:27:49 +00:00
Scott Gray ed876da4d6 Add some javadocs to the person/address matching methods
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982119 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 04:18:03 +00:00
Scott Gray c16556e21d Remove escaping of single quotes from a city string before it is adding to the entity condition. I'm not really sure of what its purpose was.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982118 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 04:17:52 +00:00
Scott Gray 9584101183 Prevent potential NPE
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@982117 13f79535-47bb-0310-9956-ffa450edef68
2010-08-04 04:17:08 +00:00
Jacopo Cappellato 2ea51771c2 Incresed font size of the pdf report of the pproduction run: the default font size of 8pt was definetily too small for a document that is mostly printed and used by workers in a manufacturing facility.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981950 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 16:14:49 +00:00
Jacopo Cappellato 18617a5502 Added information about the initial (creation) quantity for the inventory items created by a production run.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981898 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 14:22:51 +00:00
Jacopo Cappellato c25b2eb234 Simlified service definitions for CRUD operations on the TechDataCalendarWeek entity: this also fix the calendar week editor that was broken.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981865 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 13:27:18 +00:00
Erwan de Ferrieres 07761eee51 Missing uiLabels for WE fields
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981855 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 12:58:51 +00:00
Hans Bakker 7950a17133 deleteWorkEffortRequest service not working properly: fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981733 13f79535-47bb-0310-9956-ffa450edef68
2010-08-03 04:06:31 +00:00
Adam Heath be8ece3717 When loading an order into a cart, handle per-item tax adjustments
correctly, by storing them in CartShipItemInfo, instead of the
ShoppingCartItem.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981699 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 22:33:00 +00:00
Adam Heath 2da92e401f Some more trailing newline changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981698 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 22:32:54 +00:00
Adam Heath 496a0b09f6 In loadCartFromOrder, add support for restoring the per-ship-group sales
tax adjustments.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981600 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 17:00:26 +00:00
Scott Gray 327081a1bb Replaced all usage of CommonWorkers.hasParentType(...) with the EntityTypeUtil version.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981447 13f79535-47bb-0310-9956-ffa450edef68
2010-08-02 10:48:06 +00:00
Scott Gray 9346035a5b Deprecate method* that doesn't use its input parameter and add a new method that doesn't take one.
* org.ofbiz.order.shoppingcart.CheckoutHelper.checkOrderBlackList(GenericValue)
use checkOrderBlackList() instead


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981179 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:19 +00:00
Scott Gray b5f71c236c Remove throws declaration for unthrown exception
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981178 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:11 +00:00
Scott Gray 1d8c3ad20c Remove unnecessary null assignment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981177 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:52:02 +00:00
Scott Gray 14d812f57d Fix bug in unused method, the newly created result map was being iterated over instead of the input list. Also added generics markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981176 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:54 +00:00
Scott Gray 220ba3feae Generics markup
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981175 13f79535-47bb-0310-9956-ffa450edef68
2010-08-01 08:51:44 +00:00
Ashish Vijaywargiya cf89bc0197 When we pass fractional package weight to UPS like (0.5) then it gives error. This is because in UpsServices.java file, package weight has been changed to boxWeight.intValue() so it converts 0.5 to 0. Now if we pass only boxWeight big decimal number, code runs perfectly fine on confirming shipment.
Searched out in ups shipping document and found that we should pass this fractional weight to ups to its next full weight. For example 0.5 will be sent as 1.0 and 1.2 will be sent as 2.0 etc. Here is the link: http://www.ups.com/content/us/en/resources/prepare/oversize.html
search for this text "Determine the Actual Weight" in this link.

Having come to know this fact I converted boxWeight.intValue() code into boxWeight.setScale(0, boxWeight.ROUND_CEILING) which solves this purpose which is given in above mentioned link.

Patch from Vivek Mishra(Thanks!)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981025 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 09:44:07 +00:00
Scott Gray 4448c4a866 No functional changes, just removing a whole bunch of unused imports and reorganizing them along the way.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@981019 13f79535-47bb-0310-9956-ffa450edef68
2010-07-31 08:28:34 +00:00
Jacques Le Roux a9af1cf319 Fix an old bug reported by James McGill on dev ML: <<Is it a bug, where it uses "paremeters" instead of "parameters">>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980935 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 20:10:06 +00:00
Jacopo Cappellato 8c0e270f51 Added ability to create new shipment groups to an existing order. This also fixes a bug mentioned in one of the comments to "OFBIZ-1809" (duplicated ship groups were assigned to newly created items when they were not assigned to the first ship group). Misc code formatting fixes that I did while wading thru the code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980655 13f79535-47bb-0310-9956-ffa450edef68
2010-07-30 05:37:28 +00:00
Joseph Eckard c061159aae Index product keywords when a GoodIdentification is created or updated
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980607 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 23:34:07 +00:00
Joseph Eckard d6f9b1507d Only pass the Product value to indexProductKeywords for a create operation - the value passed for a store operation is not guaranteed to contain all fields used for indexing. If index.delete.on_index=true then this scenario could cause a partial re-index / loss of keywords.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980606 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 23:33:58 +00:00
Erwan de Ferrieres 65f756720a defaulting to estimated times for a workeffort when editing instead of server time
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980534 13f79535-47bb-0310-9956-ffa450edef68
2010-07-29 18:32:46 +00:00
Jacques Le Roux ade416c654 Fix a label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@980033 13f79535-47bb-0310-9956-ffa450edef68
2010-07-28 12:07:52 +00:00
Scott Gray e75b1d17b0 Fix bug reported by Pierre Smits in OFBIZ-3823, the PartyRoleAndContactMechDetail required at least one ContactMech before a Party would show up in the view. Changed to make the ContactMech stuff optional.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978996 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 07:34:49 +00:00
Scott Gray 394a7eac26 Use request-redirect after quick creating a contact
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978975 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 04:04:55 +00:00
Scott Gray 72cd484464 Fix a bug in the delete promotion category form, it was trying to use an unknown variable as part of the form name (probably a copy/paste mistake). The problem was much easier to spot once the file had been reformatted.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978958 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 01:48:33 +00:00
Scott Gray ef89152bec Reformat to separate ftl and html indenting , no functional changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978955 13f79535-47bb-0310-9956-ffa450edef68
2010-07-25 01:39:15 +00:00
Adrian Crum 4356626ffb A patch from matthieu bollot (https://issues.apache.org/jira/browse/OFBIZ-3859) - Manufacturing: Incorrect data types in entity definition and groovy script.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978939 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 21:20:49 +00:00
Jacques Le Roux f6035141d9 Fix a very specific issue reported by Matthieu Bollot on Neogia dev ML.
Matthieu thought it could be related to double quotes in labels when actually it was the conjunction of double quotes *AND* the word locale that Freemarker tried to interpret

the error was 

2010-07-24 18:20:26,718 (http-0.0.0.0-28443-2) [MacroScreenRenderer.java:101:ERROR]
---- exception report ----------------------------------------------------------
Error rendering screen macro [<@renderScreenletBegin id="" title="Mise Ó jour des champs descriptifs de la fiche article (Ó supprimer si vous voulez utiliser "alternate locale", autrement dit traduire)" colla
psible=false saveCollapsed=true collapsibleAreaId="" expandToolTip="" collapseToolTip="" fullUrlString="" padded=true menuString="" showMore=true collapsed=false javaScriptEnabled=false />] thru ftl
Exception: freemarker.core.ParseException
Message: Encountered "locale" at line 1, column 140 in Sat Jul 24 18:20:26 CEST 2010.
Was expecting:
    "=" ...

---- stack trace ---------------------------------------------------------------
freemarker.core.ParseException: Encountered "locale" at line 1, column 140 in Sat Jul 24 18:20:26 CEST 2010.
Was expecting:
    "=" ...


I checked, there were not any other cases

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978893 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 16:29:30 +00:00
Ashish Vijaywargiya 27e6d4fbc3 Applied patch from jira issue - OFBIZ-3872.
Error in Screen Ap -> Invoices -> Commission Run.

The following error screen appears when we click on find button with

partyId - Demo Agent (DemoCustAgent)
fromDate - (set current date)

org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen component://accounting/widget/ap/InvoiceScreens.xml#CommissionRun: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Collection (java.lang.String cannot be cast to java.util.Collection)

Thanks Amit for the contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@978806 13f79535-47bb-0310-9956-ffa450edef68
2010-07-24 06:13:06 +00:00
Jacques Le Roux 2884cf4da8 A patch from David Cervera "Create Product in Category" doesn't allow non USD prices (https://issues.apache.org/jira/browse/OFBIZ-3865) - OFBIZ-3865
The screen "EditProductStorePaySetup" in "OFBIZ_HOME/applications/product/widget/catalog/StoreScreens.xml" (that is, section "PaymentsIn the page "Create Product in Category" (for example: https://demo-trunk.ofbiz.apache.org/catalog/control/createProductInCategoryStart?productCategoryId=100), the process that creates new product always creates it with USD price. It doesn't allow non USD prices.

It can be solved adding an input to set the currency in the form (because the service is ready to support it)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967155 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 16:18:14 +00:00
Jacques Le Roux 6ab823c94c A patch from Sascha Rodekamp "NPE in Financial Account Services" (https://issues.apache.org/jira/browse/OFBIZ-3873) - OFBIZ-3873
NPE in the financial account services when creating a financial account for a store. The error occurred when the accountValidDays is empty. The thru date can not be set.
This patch covers this issue by checking if accountValidDays is empty or not.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@967098 13f79535-47bb-0310-9956-ffa450edef68
2010-07-23 13:59:16 +00:00
Jacques Le Roux 235ddb74f6 Better Product French UI labels.
I began by stumping upon the default page labels. The wording I certainly done some years ago without checking all changes in the UI was not really clear. So I wanted to remove the Id (référence in French) part but as we use really an Id there (and not a name or description or what not) I preferred to keep the Id concept. Then, while at it, I checked all the file to be consistent. I have not the courage to do it in all OFBiz :/

So the idea is to keep the Id words (référence, Réf. or sometimes [Réf.]) to make clear that in those places in OFBiz OOTB we use an Id. This because in some custom application we could prefer to use a name (for instance for lookup, or text field, display, etc.) and when you begin to mix the two things begin to be really less clear...

In one word, when you remove a "référence" word, please be careful... (sometimes it makes sense because nothing else could be there, for instance for UOM which are abbrev and may be considered name even if actually they are Id, but it's really subjective and I'd prefer to make the difference real clear: an Id is not a name and a name may be used too)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966525 13f79535-47bb-0310-9956-ffa450edef68
2010-07-22 07:27:35 +00:00
Adam Heath 69074cfa54 Don't check for purchase allow membership if skipProductChecks is true.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@966380 13f79535-47bb-0310-9956-ffa450edef68
2010-07-21 19:41:02 +00:00
Erwan de Ferrieres 8ff9e56edd Missing French uiLabel for FormFieldTitle_requirePasswordChange
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965985 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 20:18:37 +00:00
Jacques Le Roux bb8607b93a Improves "New Shipment Estimate" experience: add Expand/Collapse All buttons
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965923 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:33:47 +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
Adam Heath 0a5b117b8f Fix NPE in thrown exception reporting an invalid orderHeader when
orderHeader is null in the constructor.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965915 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:14:11 +00:00
Scott Gray dd4ed8e8d6 Applied patch from Jeremy Olmstead OFBIZ-3840, production run tasks were not displaying their Start button after a production run was confirmed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965805 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 11:17:13 +00:00
Hans Bakker 84294c5e48 corrected conflict in PartyRelationshipAndDetail on status Id introduced oin previous commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965711 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 01:51:59 +00:00
Erwan de Ferrieres 727a2df89c Sales orders were created with OOTB settings with the form WSCO1 instead of WSCO10000. Thanks Scott
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965638 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 21:19:21 +00:00
Jacques Le Roux a3c548bca9 A patch from David Cervera "Security tag at screen "Payments of Product Store" with wrong syntax" (https://issues.apache.org/jira/browse/OFBIZ-3864) - OFBIZ-3864
The screen "EditProductStorePaySetup" in "OFBIZ_HOME/applications/product/widget/catalog/StoreScreens.xml" (that is, section "Payments" of one Product Store, at Catalog app) has a security tag with wrong syntax.

It causes that users with right permissions cannot add new payments to the store.

You can test it here: https://demo-trunk.ofbiz.apache.org:8443/catalog/control/EditProductStorePaySetup?productStoreId=9000 logged as "flexadmin". The form at the bottom (titled "Edit Product Store Payment Setup") doesn't appear.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965470 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 13:26:33 +00:00
Scott Gray 40d54f842e Run olap SECAs asynchronously so that if they encounter any problems then the entire process that they're attached to won't get rolled back.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965332 13f79535-47bb-0310-9956-ffa450edef68
2010-07-19 00:13:06 +00:00
Hans Bakker 6ba2a55553 add statuisId field to view, be able to ignoe disabled parties
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@965225 13f79535-47bb-0310-9956-ffa450edef68
2010-07-18 13:17:02 +00:00