<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_change_an_existing_Report</id>
	<title>How to change an existing Report - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=How_to_change_an_existing_Report"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_change_an_existing_Report&amp;action=history"/>
	<updated>2026-04-06T16:46:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=How_to_change_an_existing_Report&amp;diff=2461&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;== Objective == One of the firsts customizations required when deploying Openbravo is to modify the templates of the most common documents: Orders, Shipments and Invoices. The...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=How_to_change_an_existing_Report&amp;diff=2461&amp;oldid=prev"/>
		<updated>2021-11-20T14:46:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Objective == One of the firsts customizations required when deploying Openbravo is to modify the templates of the most common documents: Orders, Shipments and Invoices. The...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Objective ==&lt;br /&gt;
One of the firsts customizations required when deploying Openbravo is to modify the templates of the most common documents: Orders, Shipments and Invoices. These documents are common to customers and vendors of the client company and must follow its requirements and corporate image. This document explains how to modify these templates in a modular way taking as example the report template for ''Sales Orders''.&lt;br /&gt;
&lt;br /&gt;
== Acknowledgments ==&lt;br /&gt;
Before starting make sure you read the [[Prerequisite_Knowledge|prerequisite knowledge]] and [[Modularity_Concepts|modularity concepts]] articles.&lt;br /&gt;
&lt;br /&gt;
You should read also the [[How_to_create_a_Report|how to create a report]] article that explains some concepts and common configuration you must follow in order to use iReport.&lt;br /&gt;
&lt;br /&gt;
{{(!)|'''Important Note:''' This article doesn't explain how to work with [http://jasperforge.org/projects/ireport iReport]}}&lt;br /&gt;
&lt;br /&gt;
== Defining the Module ==&lt;br /&gt;
You should define first a new module that contains your report modifications. For more information about creating a module read the documentation on [[How_To_Create_and_Package_a_Module]].&lt;br /&gt;
* As System Administrator&lt;br /&gt;
** Create a new record in the '''Module''' window&lt;br /&gt;
** Fill all required fields&lt;br /&gt;
** Fill all required data in child tabs: Dependency, DB Prefix, etc&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report1.png|600px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
* Export your changes to create the module structure &amp;lt;pre&amp;gt;ant export.database&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Copying the Base Template ==&lt;br /&gt;
After exporting your changes, you'll get a new folder under the modules folder.&lt;br /&gt;
* Create a src folder&lt;br /&gt;
* Copy the base templates from ''src/org/openbravo/erpReports/C_Order*.jrxml'' to your module folder&lt;br /&gt;
&lt;br /&gt;
{{(!)|Note: You should follow the Java package structure}}&lt;br /&gt;
&lt;br /&gt;
You should end up with some structure like this one:&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report2.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Changing the Template ==&lt;br /&gt;
&lt;br /&gt;
After making a copy of the base template to your module, you're ready to make all the changes you like. For sake of simplicity, we'll just add a simple label to the report header.&lt;br /&gt;
&lt;br /&gt;
* Start iReport&lt;br /&gt;
* Open the C_OrderJR.jrxml file of your module&lt;br /&gt;
* Add a simple label: &amp;quot;My customization&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{(!)| You can customize your template with any change you like, more fields, changing position, etc}}&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report3.png|600px|thumb|center]]&lt;br /&gt;
* Rebuild your changes to deploy the module structure &amp;lt;pre&amp;gt;ant smartbuild&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Reload Openbravo from tomcat Manager&lt;br /&gt;
&lt;br /&gt;
== Defining the Report Template at Document Level ==&lt;br /&gt;
Report templates are defined at document level. You need to change it in order to work.&lt;br /&gt;
* As Client Admin Role&lt;br /&gt;
* Go to: Financial Management &amp;gt; Accounting &amp;gt; Setup &amp;gt; Document Type&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report4.png|center]]&lt;br /&gt;
&lt;br /&gt;
* Search for '''Name''' ''Standard Order'' and open it&lt;br /&gt;
&lt;br /&gt;
* Open the '''Report Template''' tab and modify the '''Template Location''' field&lt;br /&gt;
** Use the location where your copy is located &amp;lt;pre&amp;gt;@basedesign@/org/openbravo/howto/mysalesorder&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Save the changes&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report5.png|600px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
== Testing the changes ==&lt;br /&gt;
All the definitions required to use your customized Sales Order template has been done. There is only needed to verify that the new document template created renders the document as expected with an existing Sales Order document.&lt;br /&gt;
&lt;br /&gt;
* Open any Sales Order using ''Standard Order'' as document type&lt;br /&gt;
* Print it&lt;br /&gt;
&lt;br /&gt;
[[Image:howto-change-report6.png|600px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[Category:HowTo]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>