Screenlet title bars and H1 titles have been removed when they simply duplicate the tab menu.
Fixed some missing tab menu highlighting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098406 13f79535-47bb-0310-9956-ffa450edef68
[javac16] Compiling 20 source files to /home/ofbiz/trunk/framework/testtools/build/classes
[javac16] /home/ofbiz/trunk/framework/testtools/src/org/ofbiz/testtools/ModelTestSuite.java💯 addTestSuite(java.lang.Class<? extends junit.framework.TestCase>) in junit.framework.TestSuite cannot be applied to (java.lang.Class<capture#618 of ?>)
[javac16] suite.addTestSuite(clz);
This change allows to compile on trunk demo server
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098245 13f79535-47bb-0310-9956-ffa450edef68
This patch allows the saving of a shipping price the supplier charges to get the item to you on a per product basis.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098140 13f79535-47bb-0310-9956-ffa450edef68
Lookup tag has a attribute "disabled" that is used to set disabled="disabled" property for lookup input element and it create also a clear button just after lookup field to clear the field value.
But if we set disabled="disabled" for any input field then that field does not passes as parameter and we can't accesses it from parameters or request parameters , so it should be "readonly".
If we set readonly-"readonly" then user can't change the field value directly, and this field passes as parameters.
Only difference between readonly and disabled is that in case of disabled field does not passes as parameter buy in case of readonly field passes as a parameter.
Thanks Deepak for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098082 13f79535-47bb-0310-9956-ffa450edef68
<<Slight improvement to prevent false error messages when putting spaces in readers names, eg after commas for instance>>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1097712 13f79535-47bb-0310-9956-ffa450edef68
- move remove and rename function to manage page
- create UI label and error UI label
- improve remove function
- improve rejected function
- improve share image function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1097674 13f79535-47bb-0310-9956-ffa450edef68
Orig. Msg.
When I open an layer mode lookup window and click the 'Next' button above the search result list, nothing happend but exception occures in backend.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096344 13f79535-47bb-0310-9956-ffa450edef68
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
To test :
* apply patch
* apply patch from OFBiz-4262
* load seed
* Go to example and add examplePortlet2 to an example pagePortal
* Edit examplePortlet2
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096290 13f79535-47bb-0310-9956-ffa450edef68
When you use auto-field-entity on a form , you get a nullPointer :
java.lang.NullPointerException
org.ofbiz.widget.form.ModelFormField$DisplayField.getImageLocation(ModelFormField.java:2122)
org.ofbiz.widget.form.MacroFormRenderer.renderDisplayField(MacroFormRenderer.java:193)
org.ofbiz.widget.form.ModelFormField$DisplayField.renderFieldString(ModelFormField.java:2104)
org.ofbiz.widget.form.ModelFormField.renderFieldString(ModelFormField.java:600)
org.ofbiz.widget.form.ModelForm.renderItemRow(ModelForm.java:1707)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096140 13f79535-47bb-0310-9956-ffa450edef68
Adds the possibility to use famfamfam icons contained in framework/images/webapp/images/famfamfam/icons.
If you want use a specific icon, it's possible to define an attribute VT_ICONS_LOC that contains the location to themes icons directory to use
It improves form rendering to pass a flexible string on image-location attribute and screen and form renderer to display an image with a text.
JLR: I just added à before menus texts
After Erwan's remark I wondered If I should remove the CSS on buttons. But I finally found that it was complementary. Because when no image is used on a specific button you still have the default CSS style applied (typical for Add buttons as Erwan outlined). And when no default CSS style is applied you can have an image like now shown OTTB on print button when editing an Example. So I see these 2 features as complementary for now. Maybe one day, one will replace the other, but at this stage both are welcome IMO.
BTW the famfamfam (strange name ;o) icons lib is well done and really full of possibilities...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1095984 13f79535-47bb-0310-9956-ffa450edef68
Fixes issue of getting store categories in ebay store component during product export functionality. Added a new method to get store categories and made fixes in existing code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1095024 13f79535-47bb-0310-9956-ffa450edef68
In china, city like "Shanghai","Beijing", "Chongqin" and "Tianjin" is municipality which is equivalent to province, but there's no such municipality in the state list displayed in client end.
In Geo entity, these municipalities is stored with geoTypeId="MUNICIPALITY", So I add it as a new search condition to CommonWorkers.getStateList to fix this issue.
Fixes some problem in current GeoData_CN.xml
Also changes the geoTypeId from "REGIONS" to "MUNICIPALITY" for some "Autonomous regions" and "Special administrative Regions" and add some missing country-state associations.
It's better to add new geo types for "Autonomous regions" or "Special Administrative Regions", but I don't want to make the thing complex if there's no such strong demand.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1094505 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