Commit Graph
27737 Commits
Author SHA1 Message Date
Jacques Le Roux 709944ff47 A slightly modified patch from Christian Carlow for "Add ability to find by orderName" https://issues.apache.org/jira/browse/OFBIZ-5969
Allow finding orders by the OrderHeader.orderName field at ordermgr/control/findorders.  Searching by orderName over orderId is more relevant when customers specify the name of their order. 

jleroux: I have increased the size of the column from 5 to 10% and hidden the name when empty

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652708 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 06:51:11 +00:00
Jacques Le Roux 5bac573139 A patch from Christian Carlow for "Find Order filtering broken" https://issues.apache.org/jira/browse/OFBIZ-5999
The Find Order page at ordermgr/control/searchorders does not filter results.

This patch adds the .where(cond) method missing from the query statement.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652706 13f79535-47bb-0310-9956-ffa450edef68
2015-01-18 06:27:17 +00:00
Adrian Crum 24a54944fd Some fixups for my previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652688 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 22:38:38 +00:00
Adrian Crum f8daffe432 Build out XmlWidgetFieldVisitor. I am finished working on this feature, but it is not complete. There are some TODO: comments, and if anyone wants to work on them, they are welcome to do so.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652672 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 20:43:48 +00:00
Adrian Crum 28fecf1efc Revert unintentional change in my last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652641 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 16:59:30 +00:00
Adrian Crum ed262228b2 Screen widget overhaul:
1. Extract and reuse common code/artifacts.
2. Organized the class structure so it makes more sense.
3. Add an XML widget visitor - this restores and improves the widget classes toString() methods. This is a WIP.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652638 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 16:47:23 +00:00
Mridul Pathak 57da246c29 [OFBIZ-3433] eCommerce main store front error returned when attempt is made to "Sign Up For Contact List" - as reported by Ruth. Not a service level bug but a UI issue. Email is a required input parameter in "signUpForContactList" service. Sign up form does have a field for email but has no label which is confusing to user, neither it is displayed as a required field. Applied patch from the issue to fix UI. Thanks Ruth for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652627 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 15:46:01 +00:00
Pranay Pandey b78ad92f7a Applied patch from jira issue OFBIZ-3563 which also resolves OFBIZ-2361. Creating a category with an ID (manually or automatically) that matches an existing productID will show the unrelated product when enter into the category on the 'Browse category' of the Ecommerce application.
Thanks  Jonatan Soto  and Rohit Sureka for reporting the issue. Thanks Divesh Dutta for providing patch for the fix.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652624 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 15:20:57 +00:00
Pranay Pandey e5d5d6dee2 Applied patch from jira issue - OFBIZ-5951. Product Costs page actions cause incorrect listings.
Thanks Christian Carlow for reporting the issue and thanks Amardeep for providing patch for the fix.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652617 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 14:51:35 +00:00
Mridul Pathak 09dadb5346 [OFBIZ-4457] Checkout layout - in screens before payment screen, the fields are below the last div in right column. Fixed Markup as in other checkout pages. Thanks Jacques for reporting the issue, and Amardeep for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652611 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 14:05:20 +00:00
Pranay Pandey 6cfc468ab3 Applied patch from jira issue - OFBIZ-5034. Contact us submit doesn't display a message on the page and doesn't send an email notification.
Thanks Eric de Maulde for reporting the issue and Amardeep Singh Jhajj for providing the patch.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652610 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 14:04:14 +00:00
Nicolas Malin 34b0954c9b (OFBIZ-5992) Convert following entities CRUD service from simple to entity-auto :
FixedAsset                                                          
FixedAssetProduct                                                   
FixedAssetStdCost
FixedAssetIdent
FixedAssetRegistration
FixedAssetMaint
FixedAssetMaintOrder
PartyFixedAssetAssignment
FixedAssetTypeGlAccount

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652608 13f79535-47bb-0310-9956-ffa450edef68
2015-01-17 13:47:00 +00:00
Jacopo Cappellato b5d24765cf Modified code to make sure the EntityListIterator is always closed after being used.
Thanks to Deepak Dixit and Nameet Jain for spotting the issue and identifying the offending code.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652361 13f79535-47bb-0310-9956-ffa450edef68
2015-01-16 08:34:49 +00:00
Nicolas Malin 0b0d83657c restore element parameter, auto-parameters-entity and auto-parameters-service removed by error at revision r1650821
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1652312 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 23:45:59 +00:00
Jacques Le Roux ce84199a9a No functional change. Slightly improves the Promo Rule Action UI by replacing an input field by a lookup when adding a Product Action to the Rule
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651971 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 08:42:28 +00:00
Jacques Le Roux 2e6b3155a0 No functional change. Slightly improves the Promo Rule condition UI by replacing an input field by a lookup when adding a Product Condition for the Rule
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651969 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 08:36:43 +00:00
Nicolas Malin ddc01156ab Convert old simple CRUD service on BillingAccount to entity-auto (OFBIZ-5963).
Clean service definition with using auto-fields-entity and clean editBillingAccount screen :
    display correctly the customer billing party
    hidden billingAccountId and contactMechId on create process
    add new service createBillingAccountAndRole (the screen present the partyId field but didn't propage the value on billingAccountRole)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651912 13f79535-47bb-0310-9956-ffa450edef68
2015-01-15 00:37:06 +00:00
Nicolas Malin 0213278608 no functionnal change, clean file with remove space end line and double empty line
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651874 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 23:13:09 +00:00
Nicolas Malin 74baa197e2 Complete README to use jdk1.7 instead of jdk 1.6 and add command to run ofbiz directly by ant target
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651870 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 22:51:21 +00:00
Jacques Le Roux 6a7b978678 A part of a patch from Bob Morley for "Storing supplier relationship sub-class & two related fixes" https://issues.apache.org/jira/browse/OFBIZ-3764
jleroux: this is only a part of the patch related to an improvement: Bob suggested:
<<It did not look right to have an empty dropdown for status – I created the standard "Created" status under the PARTY_REL_STATUS type so that we show the only applicable status. There does not appear to be any specific logic looking for party relationships with a blank status, so creating ones with this status should not cause any issues.>>
I added an expired status and a valid transition

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651631 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 12:05:44 +00:00
Jacopo Cappellato 836b1e578f Since ServiceEcaSetField are cached, if a seca definition contains a set operation with an env-name like:
<set field-name="partyId" env-name="${userLogin.partyId}"/>
then the expanded value (at the time of creation) is stored in the ServiceEcaSetField and then reused even when the seca is re-executed with a different context.
This commit fix the bug by removing the outer if statement "if (UtilValidate.isEmpty(this.value))".
Thanks to Deepak Dixit for spotting this issue.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651593 13f79535-47bb-0310-9956-ffa450edef68
2015-01-14 08:40:08 +00:00
Nicolas Malin aa476cf1bd Convert CostComponentCalc and WorkEffortCostCalc CRUD service from simple to entity-auto (OFBIZ-5958). The file applications/accounting/script/org/ofbiz/accounting/cost/CostServices.xml and the directory applications/accounting/script/org/ofbiz/accounting/cost are now empty, so I remove it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651229 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 23:27:25 +00:00
Nicolas Malin a442c86252 Convert Invoice entites CRUD service from simple to entity-auto (OFBIZ-5957) : convert only updateInvoiceItemType. Clean uneeded space end line.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1651222 13f79535-47bb-0310-9956-ffa450edef68
2015-01-12 22:55:01 +00:00
Nicolas Malin 83c8292b53 finalize to convert BudgetRole service to entity-auto relative to OFBIZ-5900
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650977 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 21:59:33 +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 c1bc5c2769 A patch from Pierre Smits for "Tasks menu item should only be visible to persons with appropriate rights" https://issues.apache.org/jira/browse/OFBIZ-5833
Currently the menu item Tasks (and the subsequent overview) is visibe to all persons having basic access to the application.
However, persons with assigned tasks can view these through the My Tasks options and project managers of assigned projects can view the tasks via the project.

jleroux: this makes sense to me, else what for "My Tasks" would be?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650967 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 20:43:15 +00:00
Jacques Le Roux 11211efb6e A patch from Bob Morley for "Data seeding to support ability to return products of type RAW_MATERIAL" https://issues.apache.org/jira/browse/OFBIZ-3669
This patch contains data seeding that supports the ability to have return items that contain products of type RAW_MATERIAL.  This allows an enterprise to return raw materials back to suppliers as well as customers returning them (if the enterprise sells raw materials to customers).  There is no code in this patch, just the data model wiring to map the raw material product types to the proper return types / accounting types.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650949 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 18:41:53 +00:00
Jacques Le Roux 7ac5f9ae33 AA patch from Bob Morley for "Errors attempting to use quantities with more than 2 decimals of precision" https://issues.apache.org/jira/browse/OFBIZ-3666
We have a need to handle inventory items with quantities up to four decimal places.  The data model currently supports 6 decimals so I thought I would try to complete a purchase order, sales order, and a return for an item that has this many digits of precision.  What I found was ...

- The order item was calculated properly (including the total for the line) but the totals for the entire sales order were incorrect.  This was because when OrderReadHelper was getting the OrderItemQuantity as part of calculating the subtotal it would round it to the order's configured scale (2).  Since this is being used as a calculation it should not be rounded -- the total itself should be rounded.
- In a number of spots in issuance and reservation services values were (sometimes) being rounded.  For example, when an order item was created it would create an InventoryItemDetail record that would reduce the ATP by the precise quantity, however when the order was placed the QOH was reduced by the rounded value.  All of these issues were the result of the mini-lang calculate element being used which by default uses a scale of 2 decimals (from the dtd).  The solution was when working with quantities pass in the precision scale (6) to ensure we do not lose precision.  Again, when order totals, taxes, things like that are being done the configured scale should take over, but the intermediate calculations should not be losing precision.


jleroux: Adrian suggested to rather introduce types for quantity and money. This was almost 5 years ago. Because these types has not been introduced since I decided to pragmatically fix this 5 years old bug!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650938 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 18:10:03 +00:00
Jacques Le Roux 4215bc0934 A patch from Pierre Smits for "link of dependent task in Task Dependencies of task links Dependencies of Task" https://issues.apache.org/jira/browse/OFBIZ-5815
In the dependencies overview of a task links are provided for the tasks listed.
These links link to the dependencies overview of the task that has been accessed.
The links should point to the dependent task.

jleroux: while testing I had a doubt about Pierre's assertion, but I agree it makes more sense to link to the dependent tasks than to the dependencies overview

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650887 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 11:25:00 +00:00
Jacques Le Roux ad6d292c1f A patch from Christian Carlow for "GlReconciledFinAccountTrans.ftl finAccountTrans.entryDateId should be finAccountTrans.entryDate" https://issues.apache.org/jira/browse/OFBIZ-5945
An error is thrown at accounting/control/FindFinAccountReconciliation for finAccountTrans.entryDateId because the field is supposed to be finAccountTrans.entryDate.


To reproduce, transaction records have to be associated with the glReconciliation:
1. Navigate to Accounting->Financial Account->Reconciliation
2. Click "Create New Financial Account Reconciliations" and create a glReconciliation and copy the glReconciliationId
3. Navigate to Accounting->Financial Account->Transactionsgl
4. Click "Create New" and create a new transaction with glReconciliationId set to the one created in step 2
5. Navigate to Accounting->Financial Account->Reconciliation again and an error should appear about finAccountTrans.entryDateId not being a valild field

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650882 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 10:14:14 +00:00
Jacques Le Roux 5605d43918 This which is a WIP part of OFBIZ-5945 has slipped in inadvertently, reverting for now
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650881 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 10:02:42 +00:00
Jacques Le Roux b8ca5543c9 Changes in all labels files: <value xml:lang="(.*)_(.*)"> to <value xml:lang="$1-$2">
Changes also listLocales.ftl to show dashes rather than underscores

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650880 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 09:59:32 +00:00
Scott Gray 42d3aa96f5 Eclipse classpath fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650865 13f79535-47bb-0310-9956-ffa450edef68
2015-01-11 03:29:25 +00:00
Adrian Crum 65640c3a50 FIXME comment in screen widget schema, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650821 13f79535-47bb-0310-9956-ffa450edef68
2015-01-10 22:18:31 +00:00
Jacques Le Roux 94df4a9810 A patch from Christian Carlow for "Error when adding quantity less than 1 but greater than 0 to cart" https://issues.apache.org/jira/browse/OFBIZ-5941
This error occurs when attempting to add, for instance, an item with quantity 0.1 to the shopping cart: "Quantity must be a positive number"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650678 13f79535-47bb-0310-9956-ffa450edef68
2015-01-09 21:57:56 +00:00
Jacques Le Roux 04748292cf A patch from Wai for "state/province dropdown contains incorrect items when Canada is chosen in country dropdown" https://issues.apache.org/jira/browse/OFBIZ-5933
When creating a postal address, selecting Canada for country automatically filled the state/province dropdown with values. The issue is that the values of the state/province dropdown list are incorrect.

I was expecting the options for the state/province dropdown to have the following:
name=Alberta, value=AB
name=British Columbia, value=BC
...

What is actually present in the drop down is:
name=AB, value=AB
name=AB, value=BC
...

One observation is that this issue does not appear when the country selected is the United States. It seems to happen with Canada.
Another observation is that this issue applies to the 'en' locale. It seems to work fine for 'fr' locale.

jleroux: this was OK for Saskatchewan, that leaded to the solution


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650642 13f79535-47bb-0310-9956-ffa450edef68
2015-01-09 20:19:17 +00:00
Jacques Le Roux 4cb4640476 Reverts r1646926 as I explained in "WebShoppingCart ignores session currency" in https://issues.apache.org/jira/browse/OFBIZ-5767 and as stated Mridul at "missing request map for changing currency" https://issues.apache.org/jira/browse/OFBIZ-5767
This is only one part of the work (ie it's a WIP) because Jossip has some points in OFBIZ-5767

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650583 13f79535-47bb-0310-9956-ffa450edef68
2015-01-09 16:06:57 +00:00
Jacopo Cappellato e09118316e Partial fix for the unit test testMultipleInventoryItemIssuance that is failing since 1649408.
However the test is still failing after this fix, but for another reason (that I still could figure out) with another error:
"Cannot compare: r-value is null"

Added comment before the call to the method that is responsible for this error.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650455 13f79535-47bb-0310-9956-ffa450edef68
2015-01-09 07:52:43 +00:00
Adrian Crum 2e8e62cba7 Form widget improvement: Set focus on first control when rendering a single form.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650357 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 19:25:41 +00:00
Adrian Crum ca9c76ad84 Improved code for ModelForm.java - better handling of attributes when extending a form widget.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650348 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 17:55:09 +00:00
Adrian Crum 14e3b15252 Some small fixups for some of my previous commits.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650347 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 17:53:59 +00:00
Jacques Le Roux 78005015e8 A patch from Forrest Rae for "addOrderShipmentToShipment Should Return shipmentItemSeqId" https://issues.apache.org/jira/browse/OFBIZ-5950
jleroux: this has no negative effects (testMultipleInventoryItemIssuance fails for another reason: OFBIZ-5364)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650250 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 11:05:56 +00:00
Jacques Le Roux f0e20f7a26 A patch from Arun Patidar for "Dialogue window is not working for webpos screens. Seems JS load issue on page." https://issues.apache.org/jira/browse/OFBIZ-5939
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650240 13f79535-47bb-0310-9956-ffa450edef68
2015-01-08 09:49:11 +00:00
Jacques Le Roux a751dd7ab8 Replaces tabs by spaces
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1650031 13f79535-47bb-0310-9956-ffa450edef68
2015-01-07 10:51:47 +00:00
Adrian Crum 7c9aa8e489 Some optimizations for URL lookups.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649979 13f79535-47bb-0310-9956-ffa450edef68
2015-01-07 00:24:28 +00:00
Adrian Crum b85eb53598 Removed an unused method from UtilURL.java, added some JavaDocs.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649971 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 23:22:56 +00:00
Nicolas Malin f2370bffeb * update the service createPartyRelationshipAndRole with two new service ensurePartyRoleFrom and ensurePartyRoleTo to have coherence between each service in this group (related to JIRA OFBIZ-5905) and correct call service from sfa's form.
* clean sfa's from to convert bsh to groovy call and clean unnecessary value declaration
 * complete unit test to controle new service ensurePartyRoleFrom and ensurePartyRoleTo

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649965 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 22:55:57 +00:00
Adrian Crum 1df97ce20c Fixed a bug in FlexibleLocation.java where the optional locationresolvers.properties file was not being loaded due to static initializer recursion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649934 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 20:21:28 +00:00
Adrian Crum c201d5f6f3 Small change to Debug.java - to avoid static initializer recursion.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649933 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 20:19:56 +00:00
Adrian Crum 38c358671f A new method for UtilProperties.java - to be used in upcoming changes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649931 13f79535-47bb-0310-9956-ffa450edef68
2015-01-06 20:18:43 +00:00