(OFBIZ-7359)
In case of a promotion where X% discount has to be applied on a product, when more than one quantity of the product is added to order, respective multiple item adjustments are created. Improved the code to create a single adjustment for the total discount.
Thanks: Arvind Singh Tomar for contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765034 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8459)
InventoryItemStatus will now be logged as: INV_PROMISED when a serialized inventory item is reserved for an order.
Thanks: Vaibhav Jain for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765030 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7777)
When creating a new quote, the field quoteId is displayed even though its value is "null". Fixed the behavior adding a use-when condition to display the field when the quote already exists and to hide the field when the quote is being created.
Thanks: Montalbano Florian for the contribution and Chandan Khandelwal for reviewing and providing the updated patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1765012 13f79535-47bb-0310-9956-ffa450edef68
conditional.xml to conditionalLabels.xml
DefaultMessages.xml to DefaultMessagesLabels.xml
EmailPassword.xml to EmailPasswordLabels.xml
Found while working on OFBIZ-8321
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1764261 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-4106)
Completes previous commit at r1764158: moves deleteCustomerTaxAuthInfo request
from ecommerce to order where it's only used
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1764176 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7317)
Here is the patch that removes the NBO(Net Before Overhead) report from the
trunk. In the patch I have also removed the Demo data which is required by this
report only.
Note : Please remove below data from existing database to avoid any data
related problem in OrderPortletData.xml
<PortalPortlet portalPortletId="NBO_Report"
portletName="Net Before Overhead Report"
screenName="NetBeforeOverheadReport"
screenLocation="component://birt/widget/order/OrderScreens.xml"
description=""/>
<PortletPortletCategory portalPortletId="NBO_Report" portletCategoryId="REPORT"/>
<PortalPagePortlet portalPageId="OrderReportPage" portalPortletId="NBO_Report"
portletSeqId="00001" columnSeqId="00002" sequenceNum="11"/>
Thanks: Rohit Koushal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1763132 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8312)
Go to
https://localhost:8443/catalog/control/EditProductFeatures?productId=WG-9943
In the webbrowser, show the html source. Found...
class="class org.apache.ofbiz.base.util.collections.MapStack"
Rohit: Uninitialize class variable causing problem while calling
htmlTemplate.renderDateTimeField macro. This patch fixes the problem.
I have replaced all the similar kind of occurrence from the code base.
jleroux: I added EditProductPromoStores.ftl
Thanks: Wai for report, Rohit Koushal for patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1763044 13f79535-47bb-0310-9956-ffa450edef68
All values are getting null.
(OFBIZ-8339)
If we pass only orderId then rest value should not set empty.
jleroux: I must add it's weird to pass only orderId when updating an Order
Header, but in theory the fix is right, "Errare humanum est"
Thanks: Renuka Srishti
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762999 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8282)
Steps to regenerate :
1) Login into webtools component.
2) Run "createDataCategory" service without passing any parameter.
3) Following error message occured : (Column 'DATA_CATEGORY_ID' cannot accept
a NULL value) PFA attached screenshot.
In this patch I have changed service engine to "entity-auto" and removed
service implementation.
Thanks: Pawan Verma
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762996 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8322)
Steps to regenerate
1. Login into webtools application
2. Try to run service findContentParents after passing parameters
3. Cannot find service error occurs.
Thanks: Tanmay Muley for the patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762331 13f79535-47bb-0310-9956-ffa450edef68
code using it, that wraps most of the OFBiz integration with FreeMarker.
This is the list of the main modifications:
* simplified and cleaned up the public methods of FreeMarkerWorker, used to
retrieve and render Freemarker templates and changed client code accordingly to
use them
* removed unused methods in FreeMarkerWorker and made some others private
* improved the integration code in FreeMarkerWorker to better use the Freemarker
API and specifically to leverage the various TemplateLoaders and the Freemarker
caching mechanism; it is now possible to switch the OFBiz legacy template
caching mechanism to use the Freemarker one instead
* improved the implementation of Freemarker template rendering from strings
(used by DataResourceWorker): it now leverages the Freemarker's
StringTemplateLoader that provides the ability to cache the strings, retrieved
from DataResources records, based on the timestamp of the last modification
* moved freemarkerImports.properties from "widget" to "base" component, and
changed its content (and the content of the associated templates
AutoImportTemplate.ftl and HtmlTemplate.ftl) to remove the dependency from base
to widget&common; some resources of "widget" and "common" are still referenced
from AutoImportTemplate.ftl (that is in "base") but even if they are soft
dependencies: if they are missing the system will load properly without any
error or warning; before this change it was impossible to use, or unit test,
FreeMarkerWorker before the "widget" and "common" components were loaded by the
system, now it is possible
* created a new class for unit tests for FreeMarkerWorker, named
FreeMarkerWorkerTests: at the moment it contains just one simple unit test but
more should be implemented
* refactored WebToolsServices.entityImport(...) to leverage the
FreeMarkerWorker.renderTemplate(...) method to run the Freemarker template,
rather than dealing with the Freemarker API directly; this is now possible
thanks to the cleanups and improvements done in the FreeMarkerWorker class; this
same approach should be implemented for a few other similar integration points
(mostly in the "content" component); this is a TODO item
* moved the encodeDoubleQuotes(...) method from FreeMarkerWorker to
MacroFormRenderer and made it private since this is the only calss using it and
its logic is not related to FreeMarker
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1762227 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7500) (OFBIZ-7501) (OFBIZ-7505)
A readme should be the first starting point of each component for developers to
have references to the placeholder in the Wiki, in Jira and in Svn/Viewvc
jleroux: This will be certainly more helpful with the plugins, even if for now
plugins are only components
Thanks: Pierre Smits
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761867 13f79535-47bb-0310-9956-ffa450edef68
working because of an issue in the OFBiz custom TemplateLoader for Freemarker
templates.
(OFBIZ-8292)
The OFBiz custom TemplateLoader now returns null if the resource is missing as
required by the TemplateLoader specification.
Additional cleanups for unused methods in the FreeMarkerWorker class and some
minor fine tuning; improved the way errors are rendered: now the full stack
trace is not shown in the screen but only in the logs.
Thanks: Jacques Le Roux for the report.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761586 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8296)
The reason of error was editable fromDate field, corrected the settings with routingProductLink null check to only display or show it editable.
Thanks: Amardeep Singh Jhajj for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761542 13f79535-47bb-0310-9956-ffa450edef68
default encoding for the requests and some fine tuning of ControlFilter
settings; removed no more used code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761424 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8121)
The changes were not necessary because the button titles are automatically pulled from FormFieldTitle_updateButton.
Thanks: Nicolas Malin for spotting and reporting.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761335 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8121)
I've slightly modified the patch to only change the button titles.
Thanks: Pierre Smits for reporting and providing the patch.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761332 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7135)
As a supplement to correct the uri call problem, I review the roleTypeId drop-down to list only role without parentTypeId on the main role screen
Thanks: Florian Montalbano this correction.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761323 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7117)
Review the entity condition order to optimize sql search
Optimize java import
update code format
Thanks : Florian Montalbano to propose the order optimisation.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761314 13f79535-47bb-0310-9956-ffa450edef68
new ControlFilter, from the ContextFilter; modified existing applications to use
the two filters in a chain; removed from the other specialized filters all the
logic that was duplicated or extended from ContextFilter.
A web application, in order to leverage the OFBiz framework, requires that a
series of objects are in its contexts (servlet context, session and request)
such as "delegator", "delegatorName", "dispatcher", "security" etc. etc...
This setup is performed by the logic contained in the servlet filter implemented
by the ContextFilter class.
The execution of this logic is required for the application to run properly.
However, before this commit, in the ContextFilter there was other logic, related
to access control and redirection rules (some of them performed in coordination
with the ControlServlet), making it difficult to deploy this filter in all the
web applications, especially the ones that implement special handling of paths.
In fact, this filter was deployed in most but not all the web application in the
OFBiz codebase: specifically it was not deployed in web applications that
require the execution of other filters (e.g. CatalogUrlFilter, etc...) like the
ones in the "ecommerce" and "solr" components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761304 13f79535-47bb-0310-9956-ffa450edef68
Now that all local jars are removed from OFBiz, there is no need to either
keep the "lib" directory in components or to automatically load these libs
if they exist. If users want to add custom libraries, then can place them
directly in the top level directory "lib".
Hence this commit removes the remaining lib directories in the accounting,
example and ldap components and fixes build.gradle to not iterate the lib
directories in components for loading jars inside of them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761302 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7117)
Use a dynamic target resolution on form LookupPerson and LookupPartyGroup that call by different LookupScreen so different URI.
With a static target, we loosed the preparation on dedicate parameter search realize by the dedicate LookupScreen like LookupAccount or LookupLead
Thanks : Florian Montalbano to spot and explain on detail the problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761257 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-7959)
When duplicate a workEffort, if a status is given, initialize on this or check the first status sequence on the same statusType from the duplicate workEffort
Convert the ftl form EditWorkEffortDupForm to sreen engine form EditWorkEffortDuplicate
Thanks : Montalbano Florian for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1761233 13f79535-47bb-0310-9956-ffa450edef68