Initial demand by Michael Pätzold
At the moment we concentrate on increasing the usability of the backend application. One thing we recognized is the way form errors are reported to the users. Now it's done by showing a list of entity fields, that are required. A more common approach would be to highlight the form controls, that were not/wrongly filled. Was/Is there any task related to that or something similar?
Nicolas's solution
With integration of JQuery and validate function integrate by Sascha, I extend the Form renderer to apply required class and alert the form when she submitted to pass by JQuery validate function.
JLR: I have added a required field to InternalName field in Edit Product Form. There are maybe other cases like that which should be improved...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096293 13f79535-47bb-0310-9956-ffa450edef68
During the reception of stock, if the reception is made on a line of stock which already exists with the same unit price, an accounting transaction due to the stock price value change is created with an amount of debit and credit of 0.
This is not normal and generate an error in the service postAcctgTrans.
This aim of this patch is to avoid creation of accounting transaction linked to the stock price value change if the unit price does not change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094126 13f79535-47bb-0310-9956-ffa450edef68
Behavior before the patch :
* you can add decimal quantity on shopping cart item (front office and back office) even if the product is a unit
* there is no rounding on quantity on shopping cart item thus you get amount with a large number of decimal
* reorder widget display quantity to reorder with a large number of decimal
What does this patch :
* a new field "orderDecimalQuantity" is added into ProducStore entity. The value of this field can be set from EditProducStore form (into shopping cart section). Value can be "Y", "N" or empty.
* a new field "orderDecimalQuantity" is added into Product entity. The value of this field can be set from EditProduc form (into shopping cart section). Value can be "Y", "N" or empty.
* a new method "isDecimalQuantityOrderAllowed" have been add into productWorker class. This method test if order decimal quantity is allow for a product and a productStore. Product is superior on producStore. Here is the table of value :
* ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = "Y" => return True
* ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = "Y" => return True
* ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = "Y" => return True
* ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = "N" => return False
* ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = "N" => return False
* ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = "N" => return False
* ProductStore.orderDecimalQuantity = "Y" && Product.orderDecimalQuantity = empty => return True
* ProductStore.orderDecimalQuantity = "N" && Product.orderDecimalQuantity = empty => return False
* ProductStore.orderDecimalQuantity = empty && Product.orderDecimalQuantity = empty => return True
* addToCat and modifyCart car method have been modify to call isDecimalQuantityOrderAllowed. If result is true then quantity is rounding with order config value. If result is false then quantity is rounding to 0. No message is return.
* to fix reorder quantity, then getQuickReorderProducts method have been modify to call isDecimalQuantityOrderAllowed. If result is true then quantity is rounding with order config value. If result is false then quantity is rounding to 0.
What the result :
* You can forbid or accept to manage order decimal quantity for all product
* You can forbid or accept to manage order decimal quantity for one product
* Decimal quantity are now rounded with order config value.
* reorder quantity is rounded with order config value or rounding to 0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094121 13f79535-47bb-0310-9956-ffa450edef68
I extended the service definition, now first name and last name are not optional anymore.
Orig Msg:
> Hi list,
>
> In partymgr when I am creating a person then on the form first name and
> last
> name are required fields but If I submit the form without passing the first
> name and last name , form gets submitted , it means required validations
> are
> not working. so I am curious to know Is there any problem with Validations
> ?
> I tried for the following url
>
>
> https://demo-trunk.ofbiz.apache.org/partymgr/control/editperson?create_new=Y
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094007 13f79535-47bb-0310-9956-ffa450edef68
On the view profile screen in the "Party Manager" app. The "Geo Location" link in the "Contact Information" box is not passing the partyId so when you get to the map page the profile id for "null" when it should be for "DemoCustomer"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1092479 13f79535-47bb-0310-9956-ffa450edef68
applications/product/data/ProductTypeData.xml defines an EnumerationType with enumTypeId="PCAT_LINK_TYPE".
The relevant elements next to this enumTypeId are used in the module "catalog / category / links" (see screenshot after applying the given patch).
Up to now we use the description given by the XML-Seeds above "hard-wired" in CategoryForms.xml, but it would be nice to have...
* a way to add i18n support for the Product Category Link Types by using the ProductEntityLabels.xml and
* support for a dynamic generation of the drop down list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1088017 13f79535-47bb-0310-9956-ffa450edef68
- Fixed the resize function can resize any format flie
- Fixed share image screen to get host from contentURL (if it has content)
- Fixed product detail screen in ecommerce
- Create the function for set default image to product content screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1087599 13f79535-47bb-0310-9956-ffa450edef68
Orig. Msg.:
As it does not work in trunk I 1st thought it was a jQuery migration issue. But it does not work either in R9.04 and I guess this is the initial reason
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1087254 13f79535-47bb-0310-9956-ffa450edef68
The createAgreementItem service in applications/accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml doesn't set the agreementId in the result map properly.
Line 129 is
<field-to-result field="agreementId" result-name="agreementId"/>
and should be
<field-to-result field="parameters.agreementId" result-name="agreementId"/>
JLR: minor detail I rather used newEntity.agreementId like in the line below newEntity.agreementItemSeqId
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085774 13f79535-47bb-0310-9956-ffa450edef68
When creating an invoice via the service "createInvoiceForOrderAllItems" the order items are currently just fetched from the database without any sorting. This can result in a different sorting of invoice items vs. order items. Or when creating a new invoice due to a changed order the sorting between invoices can be different.
Sorts invoice items (in case they are derived from OrderItems) by "orderItemSeqId".
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085726 13f79535-47bb-0310-9956-ffa450edef68
In the main.ftl of the accounting-module there are a lot of items listed (like paymentMethodTypes, paymentTypes, ...).
If one of these items does not have a description defined, an Exception is thrown.
As a fallback to the description i did add the Id.
Like if paymentMethodType.description doesnt exists, it gets the paymentMethodType.paymentMethodTypeId.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085697 13f79535-47bb-0310-9956-ffa450edef68
An improved patch for target-parameter functionality, now paramI indexing start with I=0 instead of 1.
JLR: I have updated the XSD to tell it must begin at 0
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1085671 13f79535-47bb-0310-9956-ffa450edef68