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
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
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
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
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
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
<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
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
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
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
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
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
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
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
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
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
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
* 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