Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
HTML
<h2>Introduction</h2>

<p>Every report in TIM Enterprise can be fully customised, from how they perform their calculations to the way they appear.</p>

<p>To amend a report, you need to edit its associated <acronym title="eXtensible Stylesheet Language">XSL</acronym> or <acronym title="Portable Document Format">PDF</acronym> script file, paying attention to the class of web user whose content you want to change, and which report format.</p>

<p>This document details how to change the tax rate in the <span class="reference">Billing Report</span> in both <span class="reference">Web</span> and <span class="reference">PDF</span> formats, for any web user with a class of <span class="reference">Administrator</span>.</p>

<p>Every report has a unique ID number which the system uses to identify the report type; <b>the report ID for a <span class="reference">Billing Report</span> is <span class="reference">2</span>.</b></p>

<h2>Changing Web format</h2>

<p>Open the following file in a plain text editor such as <b>Notepad</b>:-</p>

...

themeEclipse
linenumberstrue

Summary_list
Task1Introduction
Task2Changing Web format
Task3Changing PDF format

HTML
<a id="Introduction"></a>

Introduction

Every report in TIM Enterprise can be fully customised, from how they perform their calculations to the way they appear.

To amend a report, you need to edit its associated XSL or PDF script file, paying attention to the class of web user whose content you want to change, and which report format.

This document details how to change the tax rate in the Phone Bill report in both Web and PDF formats, for any web user with a class of Administrator.

Every report has a unique ID number which the system uses to identify the report type (the report ID for a Phone Bill report is 2)

HTML
<a id="Changing Web format"></a>

Changing Web format

Open the following file in a plain text editor such as Notepad:

Code Block
{Program Files}\Tri-Line\TIM Enterprise\ssldata\_admin\scripts\web\2.xs
HTML
<p>Look in the first few lines of code for the VAT amount, then change it to the new amount, respecting the decimal point and number of decimal places:-</p>

<img id="border" src="http://www.tri-line.com/common/img/documentation/tim_enterprise/vat_xsl.png" alt="VAT change XSL snippet" />

<p>Save the file and run a new <span class="reference">Billing Report</span> in <span class="reference">Web format</span> to verify the amount has changed. If it hasn't then you may be running the report as a web user with a different web class than <i>Administrator</i>; in which case, modify the file in the path specified above but choose the appropriate folder other than <span class="keyword">_admin</span>.</p>

<h2>Changing PDF format</h2>

<p>Again, in a plain text editor such as <b>Notepad</b>, edit the following file:-</p>

<p>You'll notice that this is a Javascript file, and that it is located in the <span class="keyword">\pdf\</span> folder of the <span class="keyword">\scripts\</span> folder.</p>
Code Block
themeEclipse
linenumberstrue
xsl

Look in the first few lines of code for the VAT amount, then change it to the new amount, respecting the decimal point and number of decimal places:

Screenshotmacro
URL/download/attachments/1671318/vat_xsl.png

Save the file and run a new Phone Bill report in Web format to verify whether the amount has changed. If it hasn't then you may be running the report as a web user with a different web class than

Referencemacro
LabelAdministrator
; in which case, modify the file in the path specified above, but choose the appropriate folder other than _admin.

HTML
<a id="Changing PDF format"></a>

Changing PDF format

Again, in a plain text editor such as Notepad, edit the following file:

You'll notice that this is a Javascript file, and that it is located in the \pdf\ folder of the \scripts\ folder.

<p>Search
Code Block
{Program Files}\Tri-Line\TIM Enterprise\ssldata\_admin\scripts\pdf\2.js
HTML

Search for

...

the

...

following

...

line

...

(the

...

value

...

shown

...

below

...

may

...

be

...

different

...

on

...

your

...

system):

...

<p>Change
Code Block
themeEclipse
linenumberstrue
var _vat = 20.0;
HTML

Change the

...

value

...

to

...

the

...

new

...

amount,

...

then

...

save

...

the

...

file.

...

Run a new

Referencemacro
LabelPhone Bill
report in PDF format to verify that the amount has changed.