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
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
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
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
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
Thanks Christian for creating the issue. Thanks Swapnil providing additional details and Divesh for providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1649405 13f79535-47bb-0310-9956-ffa450edef68
The DefaultEncoder from OWASP ESAPI, used internally by UtilCodec is now built with the default constructor that also adds the JavascriptCodec to the list of codecs used to canonicalize and validate the input.
Renamed the UrlEncoder class to UrlCodec in order to better describe its behavior.
Misc minor cleanups.
Added to the list of tests of the base component a series of Junit test classes that were missing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1648403 13f79535-47bb-0310-9956-ffa450edef68
In this changes Arun has taken care of cloning related concern raised by Adrian. Thanks Arun for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647946 13f79535-47bb-0310-9956-ffa450edef68
Adds
<auto-detect/>
in the fonts section of our fop.xconf
Adds the Google NotoSans font which is Apache licensed
* http://www.google.com/fonts/specimen/Noto+Sans
* https://www.google.com/get/noto/#/
Uses NotoSans as the default FOP font. For that puts the NotoSans font 4 files in framework/resources/fonts and add <directory>framework/resources/fonts/NotoSansFonts</directory> in fop.xconf
Renders ₹ in content/control/fonts.pdf as we do for €. Other symbols could be added later when needed, backed by Google NotoSans font...
Renders the NotoSans content/control/fonts.pdf as we do for other main fonts
Adds the rupee symbol (₹) to antisamy-esapi.xml file like we have the euro symbol (€)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647782 13f79535-47bb-0310-9956-ffa450edef68
1) removed foreign key relationship from/to this group of entities and the other entities of the OFBiz data model; the fields are still available but they are not enforced by a foreign key constraint
2) removed one view entitiy joining Visit with Party entities and refactored the code that was using it in order to provide the same behavior
3) added a new entity group ("org.ofbiz.stats") for the Visit/Visitor/ServerHit* (and related) entities; for now the group is not active so that the entities are still in the same database as before; however assigning them to a different database is now a matter of uncommenting the group file definition in framework/webapp/ofbiz-component.xml and provide the new datasource definition
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647271 13f79535-47bb-0310-9956-ffa450edef68
Deepak: here is the patch for this issue, found some more places where if-has-permission tag used in different way, will create a new ticket to fix the if-has-permission tags and will used the consistent pattern.
jleroux: I wonder if this commit does not fix some other already reported issues, anyway it's good!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647266 13f79535-47bb-0310-9956-ffa450edef68
Adds PDF (fo.ftl file) which will be opened when user click on "Print" button. Earlier web page was opened with bad formatting. New PDF is clean.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1647102 13f79535-47bb-0310-9956-ffa450edef68