Commit e7b0f39e authored by ryadav's avatar ryadav

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92361 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 283bbc66
@CHARSET "UTF-8";
body {
background-color: white;
}
.tTableHeader {
border: 2px groove;
background-color: #CCF8CC;
}
.tTableDetail {
border: 2px groove;
background-color: #FFFFD9;
}
.tTitle {
font-size: 21px;
color: white;
background-color: gray;
}
.tLabel {
font-weight: bold;
}
.tLabelData {
font-family: arial,tahoma,serif,sans-serif;
font-size: 15px;
}
=============================================
wf_role_users
=============================================
INSERT INTO wf_role_users
(
role_code ,
userid ,
chg_date ,
chg_user ,
chg_term
)
VALUES
(
'ACT_EX ',
'SUPER ',
TO_TIMESTAMP('10-10-2010 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'E '
);
COMMIT;
/
=============================================
INSERT INTO wf_role_users
(
role_code ,
userid ,
chg_date ,
chg_user ,
chg_term
)
VALUES (
'ACT_MGR ',
'SUPER ',
TO_TIMESTAMP('10-10-2010 00:00:00','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'E '
);
COMMIT;
/
=============================================
wf_role
=============================================
INSERT INTO wf_role
(
role_code ,
role_type ,
event_carr ,
descr ,
user_id ,
subject_str,
include_data,
chg_date,
chg_user,
chg_term,
role_entity,
role_entity_sql,
email_addr,
dyn_role_ref
)
VALUES (
'ACT_EX ',
'S',
'S',
'ACCOUNTS EXECUTIVE ',
'BASE ',
'Accounts Executive Approval ',
NULL,
TO_DATE('11-09-2012 11:08:58','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'BASE ',
'E',
'SELECT EMP_CODE FROM EMPLOYEE WHERE EMP_CODE=?',
'swakade@baseinformation.com',
NULL);
commit;
/
=============================================
INSERT INTO wf_role
(
role_code ,
role_type ,
event_carr ,
descr ,
user_id ,
subject_str,
include_data,
chg_date,
chg_user,
chg_term,
role_entity,
role_entity_sql,
email_addr,
dyn_role_ref
)
VALUES (
'ACT_MGR ',
'S',
'S',
'ACCOUNTS MANAGER ',
'BASE ',
'Accounts Manager Approval ',
NULL,
TO_DATE('11-09-2012 11:08:58','DD-MM-YYYY HH24:MI:SS'),
'BASE ',
'BASE ',
'E',
'SELECT EMP_CODE FROM EMPLOYEE WHERE EMP_CODE=?',
'swakade@baseinformation.com',
NULL);
commit;
/
=============================================
mail format for payable_voucher,fin_payment,
fin_credit_note,fin_debit_note
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTEXAPRVFINPAY',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to Account Executive',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTMGRAPRVFINCRENOTE',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to Account Manager',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTEXAPRVFINCRENOTE',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to Account Executive',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTMGRAPRVFINDEBNOTE',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Debit Note<Detail1.tran_id> assigned to Account Manager',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTEXAPRVFINDEBNOTE',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Debit Note<Detail1.tran_id> assigned to Account Executive',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTEXAPRVPAYVOU',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Payable voucher<Detail1.tran_id> assigned to Account Executive',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTMGRAPRVFINPAY',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to Account Manager',
NULL,
1,
1,
NULL,
NULL,
'M',
'192.168.0.142',
'192.168.0.142',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
INSERT INTO mail_format
(
format_code,
format_type,
send_to,
copy_to,
blind_copy,
subject,
body_text,
body_comp ,
priority,
delivery_report,
return_receipt,
mail_application,
mail_server,
mail_box,
mail_id,
attach_type,
attach_text,
mail_generation,
win_name,
cond_method,
fn_name
)
VALUES (
'ACTMGRAPRVPAYVOU',
'T',
'[(E)ROLE_CODE]',
NULL,
NULL,
'FIN-Request for approval : Finance Payable voucher<Detail1.tran_id> assigned to Account Manager',
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL);
commit;
/
=============================================
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<tr>
<td colspan="4" align="center" class="tTitle">Credit Note</td>
</tr>
<tr>
<td>
<span class="tLabel">Transaction ID : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_id"/></span>
</td>
<td>
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_date"/></span>
</td>
<td colspan="2">
<span class="tLabel">Site: </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code"/> [<xsl:value-of select="//Detail1/site_descr"/>]</span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Reference Series : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_ser"/></span>
</td>
<td>
<span class="tLabel">Currency Code : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/curr_code"/></span>
</td>
<td>
<span class="tLabel">Exchange Rate : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/exch_rate"/></span>
</td>
<td>
<span class="tLabel">Amount : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/amount"/></span>
</td>
</tr>
<tr>
<td colspan="2">
<span class="tLabel">Account : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/acct_code"/> [<xsl:value-of select="//Detail1/accounts_descr"/>]</span>
</td>
<td>
<span class="tLabel">Cost center : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/cctr_code"/></span>
</td>
<td>
<span class="tLabel">Analysis Code : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/anal_code"/></span>
</td>
</tr>
<tr>
<td colspan="3">
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/remarks"/></span>
</td>
<td>
<span class="tLabel">Change User : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/change_user"/></span>
</td>
</tr>
</table>
</div>
<br /><br />
<xsl:if test="//Detail2/line_no!=''">
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="7" align="center" class="tTitle">Pay Detail</td>
</tr>
<tr>
<td class="tLabel">Line No</td>
<td class="tLabel">Reason Code</td>
<td class="tLabel">DR/CR Amount</td>
<td class="tLabel">Tax Amount</td>
<td class="tLabel">Net Amount</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost center</td>
</tr>
<xsl:for-each select="//Detail2">
<tr>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="reas_code"/></td>
<td class="tLabelData"><xsl:value-of select="drcr_amt"/></td>
<td class="tLabelData"><xsl:value-of select="tax_amt"/></td>
<td class="tLabelData"><xsl:value-of select="net_amt"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
<br />
<xsl:if test="//Detail3/line_no!=''">
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="5" align="center" class="tTitle">Pay Account</td>
</tr>
<tr>
<td class="tLabel">Line No</td>
<td class="tLabel">Analysis Code</td>
<td class="tLabel">Amount</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost center</td>
</tr>
<xsl:for-each select="//Detail3">
<tr>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="anal_code"/></td>
<td class="tLabelData"><xsl:value-of select="amount"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<tr>
<td colspan="4" align="center" class="tTitle">Debit Note</td>
</tr>
<tr>
<td>
<span class="tLabel">Transaction ID : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_id"/></span>
</td>
<td>
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_date"/></span>
</td>
<td colspan="2">
<span class="tLabel">Site: </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code"/> [<xsl:value-of select="//Detail1/site_descr"/>]</span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Reference Series : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_ser"/></span>
</td>
<td>
<span class="tLabel">Currency Code : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/curr_code"/></span>
</td>
<td>
<span class="tLabel">Exchange Rate : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/exch_rate"/></span>
</td>
<td>
<span class="tLabel">Amount : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/amount"/></span>
</td>
</tr>
<tr>
<td colspan="2">
<span class="tLabel">Account : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/acct_code"/> [<xsl:value-of select="//Detail1/accounts_descr"/>]</span>
</td>
<td>
<span class="tLabel">Cost center : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/cctr_code"/></span>
</td>
<td>
<span class="tLabel">Analysis Code : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/anal_code"/></span>
</td>
</tr>
<tr>
<td colspan="3">
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/remarks"/></span>
</td>
<td>
<span class="tLabel">Change User : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/change_user"/></span>
</td>
</tr>
</table>
</div>
<br /><br />
<xsl:if test="//Detail2/line_no!=''">
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="7" align="center" class="tTitle">Pay Detail</td>
</tr>
<tr>
<td class="tLabel">Line No</td>
<td class="tLabel">Reason Code</td>
<td class="tLabel">DR/CR Amount</td>
<td class="tLabel">Tax Amount</td>
<td class="tLabel">Net Amount</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost center</td>
</tr>
<xsl:for-each select="//Detail2">
<tr>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="reas_code"/></td>
<td class="tLabelData"><xsl:value-of select="drcr_amt"/></td>
<td class="tLabelData"><xsl:value-of select="tax_amt"/></td>
<td class="tLabelData"><xsl:value-of select="net_amt"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
<br />
<xsl:if test="//Detail3/line_no!=''">
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="5" align="center" class="tTitle">Pay Account</td>
</tr>
<tr>
<td class="tLabel">Line No</td>
<td class="tLabel">Analysis Code</td>
<td class="tLabel">Amount</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost center</td>
</tr>
<xsl:for-each select="//Detail3">
<tr>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="anal_code"/></td>
<td class="tLabelData"><xsl:value-of select="amount"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<tr>
<td colspan="4" align="center" class="tTitle">Journal Voucher</td>
</tr>
<tr>
<td>
<span class="tLabel">Journal Vouch No. : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_id"/></span>
</td>
<td>
<span class="tLabel">Transaction Type : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_type"/></span>
</td>
<td>
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_date"/></span>
</td>
<td>
<span class="tLabel">Effective Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/eff_date"/></span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Reference Series : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/ref_ser"/> </span>
</td>
<td>
<span class="tLabel">Reference No. : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/ref_no"/> </span>
</td>
<td colspan="2">
<span class="tLabel">Site: </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code"/> [<xsl:value-of select="//Detail1/site_descr"/>]</span>
</td>
</tr>
<tr>
<td colspan="2">
<span class="tLabel">Reverse Site : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code__rev"/>[<xsl:value-of select="//Detail1/site_b_descr"/>]</span>
</td>
<td colspan="2">
<span class="tLabel">Site For : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code__for"/> [<xsl:value-of select="//Detail/site_descr_1"/>]</span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/remarks"/></span>
</td>
</tr>
</table>
</div>
<br /> <br />
<div>
<table border="1" width="100%" class="tTableDetail">
<xsl:if test="//Detail2/line_no!=''">
<tr>
<td colspan="6" align="center" class="tTitle">Details</td>
</tr>
<tr>
<td class="tLabel">Journal Vouch No.</td>
<td class="tLabel">Line No.</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost Center</td>
<td class="tLabel">Debit/Credit</td>
<td class="tLabel">Amount</td>
</tr>
<xsl:for-each select="//Detail2">
<tr>
<td class="tLabelData"><xsl:value-of select="tran_id"/></td>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
<td class="tLabelData"><xsl:value-of select="drcr_flag"/></td>
<td class="tLabelData"><xsl:value-of select="amount"/></td>
</tr>
</xsl:for-each>
</xsl:if>
</table>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<xsl:for-each select="//Detail1">
<tr>
<td colspan="4" align="center" class="tTitle">Payable Voucher</td>
</tr>
<tr>
<td>
<span class="tLabel">Transaction ID : </span>
<span class="tLabelData"><xsl:value-of select="tran_id"/></span>
</td>
<td>
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="tran_date"/></span>
</td>
<td>
<span class="tLabel">Voucher Type :</span>
<span class="tLabelData">
<xsl:variable name="vouchType"><xsl:value-of select="vouch_type"/></xsl:variable>
<xsl:choose>
<xsl:when test="$vouchType = 'N'">
Training
</xsl:when>
<xsl:when test="$vouchType = 'R'">
Recruitment
</xsl:when>
<xsl:when test="$vouchType = 'G'">
Freight
</xsl:when>
<xsl:when test="$vouchType = 'F'">
Field Staff
</xsl:when>
<xsl:when test="$vouchType = 'O'">
Other Employee
</xsl:when>
<xsl:when test="$vouchType = 'E'">
Expense
</xsl:when>
<xsl:when test="$vouchType = 'P'">
Purchase
</xsl:when>
<xsl:when test="$vouchType = 'A'">
Loan and Advance
</xsl:when>
<xsl:when test="$vouchType = 'D'">
Debit Note
</xsl:when>
<xsl:when test="$vouchType = 'C'">
Credit Note
</xsl:when>
<xsl:when test="$vouchType = 'B'">
SPR Employee
</xsl:when>
<xsl:when test="$vouchType = 'H'">
SPR Others
</xsl:when>
</xsl:choose>
</span>
</td>
<td>
<span class="tLabel">Site Code :</span>
<span class="tLabelData"><xsl:value-of select="site_code" /> [<xsl:value-of select="site_descr" />]</span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Bill No : </span>
<span class="tLabelData"><xsl:value-of select="bill_no"/></span>
</td>
<td>
<span class="tLabel">Bill Date : </span>
<span class="tLabelData"><xsl:value-of select="bill_date"/></span>
</td>
<td>
<span class="tLabel">Sundry Type : </span>
<span class="tLabelData"><xsl:value-of select="sundry_type" /> [<xsl:value-of select="advance" />]</span>
</td>
<td>
<span class="tLabel">Sundry Code : </span>
<span class="tLabelData"><xsl:value-of select="sundry_code" /> [<xsl:value-of select="sundry_name" />]</span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Cheque Name : </span>
<span class="tLabelData"><xsl:value-of select="chq_name"/></span>
</td>
<td>
<span class="tLabel">Reference Order : </span>
<span class="tLabelData"><xsl:value-of select="order_ref"/></span>
</td>
<td>
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="remarks" /></span>
</td>
</tr>
</xsl:for-each>
</table>
</div>
<BR></BR>
<xsl:if test="//Detail3/line_no!=''">
<div>
<table border="1" width="100%" class ="tTableDetail">
<tr>
<td class="tLabel" rowspan="2">#</td>
<td class="tLabel" colspan="3">Ref. Sundry Information</td>
<td class="tLabel" rowspan="2">Account</td>
<td class="tLabel" rowspan="2">Cost Center</td>
<td class="tLabel" rowspan="2">Analysis</td>
<td class="tLabel" rowspan="2">Bill No</td>
<td class="tLabel" rowspan="2">Bill Date</td>
<td class="tLabel" rowspan="2">Bill Amount(Rs.)</td>
<td class="tLabel" rowspan="2">Tax Amount</td>
<td class="tLabel" rowspan="2">Amount</td>
<td class="tLabel" rowspan="2">Remarks</td>
</tr>
<tr>
<td class="tLabel" width="2%">Type </td>
<td class="tLabel" width="2%">Code </td>
<td class="tLabel" width="10%">Name </td>
</tr>
<xsl:for-each select="//Detail3">
<tr>
<td class="tLabelData" align="center"><xsl:value-of select="line_no"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="sundry_type__for"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="sundry_code__for"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="sundry_name"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="acct_code"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData" align="center"><xsl:value-of select="cctr_code"/> [<xsl:value-of select="costctr_descr"/>]</td>
<td class="tLabelData" align="center"><xsl:value-of select="anal_code"/> [<xsl:value-of select="anal_code"/>]</td>
<td class="tLabelData" align="center"><xsl:value-of select="bill_no"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="bill_date"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="bill_amt"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="tax_amt"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="amount"/></td>
<td class="tLabelData" align="center"><xsl:value-of select="remarks"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<tr>
<td colspan="4" align="center" class="tTitle">Payments</td>
</tr>
<xsl:for-each select="//Detail1">
<tr>
<td colspan="2">
<span class="tLabel">Transaction ID : </span>
<span class="tLabelData"><xsl:value-of select="tran_id"/></span>
</td>
<td colspan="2">
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="tran_date"/></span >
</td>
</tr>
<tr>
<td>
<span class="tLabel">Payment Type : </span>
<span class="tLabelData"><xsl:value-of select="tran_type"/></span>
</td>
<td colspan="3">
<span class="tLabel">Payment Mode : </span>
<span class="tLabelData">
<xsl:variable name="payMode"><xsl:value-of select="pay_mode"/></xsl:variable>
<xsl:choose>
<xsl:when test="$payMode = 'C'">
Cash
</xsl:when>
<xsl:when test="$payMode = 'Q'">
Cheque
</xsl:when>
<xsl:when test="$payMode = 'D'">
Demand Draft
</xsl:when>
<xsl:when test="$payMode = 'T'">
Electronic Transfer
</xsl:when>
<xsl:when test="$payMode = 'I'">
EDI
</xsl:when>
<xsl:when test="$payMode = 'P'">
Pay Order
</xsl:when>
<xsl:when test="$payMode = 'R'">
Credit Card
</xsl:when>
<xsl:when test="$payMode = 'Y'">
Payment Advice
</xsl:when>
<xsl:when test="$payMode = 'G'">
RTGS
</xsl:when>
<xsl:when test="$payMode = 'N'">
NEFT
</xsl:when>
</xsl:choose>
</span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Site Code : </span>
<span class="tLabelData"><xsl:value-of select="site_code"/> [<xsl:value-of select="site_descr"/>]</span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Sundry Code : </span>
<span class="tLabelData"><xsl:value-of select="sundry_code"/> [<xsl:value-of select="sundry_name"/>]</span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Sundry Type : </span>
<span class="tLabelData"><xsl:value-of select="sundry_type"/></span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Cheque/DD No : </span>
<span class="tLabelData"><xsl:value-of select="ref_no"/></span>
</td>
<td colspan="3">
<span class="tLabel">Cheque/DD Date : </span>
<span class="tLabelData"><xsl:value-of select="ref_date"/></span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Cheque Name : </span>
<span class="tLabelData"><xsl:value-of select="chq_name"/></span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="remarks"/></span>
</td>
</tr>
</xsl:for-each>
</table>
</div>
<xsl:if test="//Detail2/line_no!=''">
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="12" align="center" class="tTitle">Details</td>
</tr>
<tr>
<td class="tLabel">Line No.</td>
<td class="tLabel">Tran Series</td>
<td class="tLabel">Voucher No.</td>
<td class="tLabel">Voucher Date</td>
<td class="tLabel">Exchange Rate</td>
<td class="tLabel">Currency</td>
<td class="tLabel">Net Amount</td>
<td class="tLabel">Amount Paid</td>
<td class="tLabel">Bill No.</td>
<td class="tLabel">Bill Date</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost Center</td>
</tr>
<xsl:for-each select="//Detail2">
<tr>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="tran_ser"/></td>
<td class="tLabelData"><xsl:value-of select="vouch_no"/></td>
<td class="tLabelData"><xsl:value-of select="vouch_date"/></td>
<td class="tLabelData"><xsl:value-of select="curr_code"/></td>
<td class="tLabelData"><xsl:value-of select="exch_rate__vouch"/></td>
<td class="tLabelData"><xsl:value-of select="net_amt"/></td>
<td class="tLabelData"><xsl:value-of select="pay_amt"/></td>
<td class="tLabelData"><xsl:value-of select="bill_no"/></td>
<td class="tLabelData"><xsl:value-of select="bill_date"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code__ap"/> [<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code__ap"/></td>
</tr>
</xsl:for-each>
</table>
</div>
</xsl:if>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
\ No newline at end of file
<?xml version='1.0' encoding='utf-8'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<link type="text/css" rel="stylesheet" href="/ibase/css/TARO_FINANCE.css"/>
</head>
<body>
<div>
<table border="1" width="100%" class="tTableHeader">
<tr>
<td colspan="4" align="center" class="tTitle">Purchase Voucher</td>
</tr>
<tr>
<td>
<span class="tLabel">Voucher No. : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_id"/></span>
</td>
<td>
<span class="tLabel">Transaction Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_date"/></span>
</td>
<td>
<span class="tLabel">Voucher Type : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/vouch_type"/> </span>
</td>
<td>
<span class="tLabel">Transaction Type : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/tran_type"/> </span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Purchase order : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/purc_order"/></span>
</td>
<td>
<span class="tLabel">Supplier : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/supp_code"/> [<xsl:value-of select="//Detail1/supp_name"/>]</span>
</td>
<td>
<span class="tLabel">Station : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/stan_descr"/></span>
</td>
<td>
<span class="tLabel">Bill No. : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/bill_no"/></span>
</td>
</tr>
<tr>
<td>
<span class="tLabel">Bill Date : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/bill_date"/></span>
</td>
<td>
<span class="tLabel">Bill Amount : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/supp_bill_amt"/> [<xsl:value-of select="//Detail/advance"/>]</span>
</td>
<td colspan="2">
<span class="tLabel">Site: </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/site_code"/> [<xsl:value-of select="//Detail1/site_descr"/>]</span>
</td>
</tr>
<tr>
<td colspan="4">
<span class="tLabel">Remarks : </span>
<span class="tLabelData"><xsl:value-of select="//Detail1/remarks"/></span>
</td>
</tr>
</table>
</div>
<br /><br />
<div>
<table border="1" width="100%" class="tTableDetail">
<tr>
<td colspan="9" align="center" class="tTitle">Advance</td>
</tr>
<tr>
<td class="tLabel">Reference Series</td>
<td class="tLabel">Reference No.</td>
<td class="tLabel">Total Amount</td>
<td class="tLabel">Adjusted Amount</td>
<td class="tLabel">Diff Amt Exch</td>
<td class="tLabel">Currency</td>
<td class="tLabel">Exchange Rate</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost Center</td>
</tr>
<tr>
<td class="tLabelData"><xsl:value-of select="//Detail2/ref_ser"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/ref_no"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/tot_amt"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/adj_amt"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/diff_amt__exch"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/curr_code"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/exch_rate__vouch"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail2/acct_code"/>[<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="//Detail2/cctr_code"/></td>
</tr>
</table>
</div>
<br />
<div>
<table border="1" width="100%">
<xsl:if test="//Detail3/line_no!=''">
<tr>
<td colspan="10" align="center"><h4>Receipt</h4></td>
</tr>
<tr>
<td class="tLabel">Line No.</td>
<td class="tLabel">Purchase Receipt No.</td>
<td class="tLabel">Line No. Receipt</td>
<td class="tLabel">Item</td>
<td class="tLabel">Item Description</td>
<td class="tLabel">Voucher Quantity</td>
<td class="tLabel">Voucher Rate</td>
<td class="tLabel">Voucher Amount</td>
<td class="tLabel">Voucher No.</td>
<td class="tLabel">Unit</td>
</tr>
<xsl:for-each select="//Detail3">
<tr>
<td class="tLabelData"><xsl:value-of select="//Detail3/line_no"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/prcp_id"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/line_no__rcp"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/item_code"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/item_descr"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/vouch_qty"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/vouch_rate"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/vouch_amt"/>[<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="//Detail3/tran_id"/></td>
<td class="tLabelData"><xsl:value-of select="//Detail3/unit"/></td>
</tr>
</xsl:for-each>
</xsl:if>
</table>
</div>
<br />
<div>
<table border="1" width="100%" class="tTableDetail">
<xsl:if test="//Detail4/line_no!=''">
<tr>
<td colspan="11" align="center" class="tTitle">Detail</td>
</tr>
<tr>
<td class="tLabel">Transaction ID</td>
<td class="tLabel">Line No.</td>
<td class="tLabel">Account</td>
<td class="tLabel">Cost Center</td>
<td class="tLabel">Department Code</td>
<td class="tLabel">Amount</td>
<td class="tLabel">Apply Tax</td>
<td class="tLabel">Tax Amount</td>
<td class="tLabel">Tax Class</td>
<td class="tLabel">Tax Chap</td>
<td class="tLabel">Tax Env</td>
</tr>
<xsl:for-each select="//Detail4">
<tr>
<td class="tLabelData"><xsl:value-of select="tran_id"/></td>
<td class="tLabelData"><xsl:value-of select="line_no"/></td>
<td class="tLabelData"><xsl:value-of select="acct_code"/>[<xsl:value-of select="accounts_descr"/>]</td>
<td class="tLabelData"><xsl:value-of select="cctr_code"/></td>
<td class="tLabelData"><xsl:value-of select="dept_code"/></td>
<td class="tLabelData"><xsl:value-of select="amount"/></td>
<td class="tLabelData"><xsl:value-of select="apply_tax"/></td>
<td class="tLabelData"><xsl:value-of select="tax_amt"/></td>
<td class="tLabelData"><xsl:value-of select="tax_class"/></td>
<td class="tLabelData"><xsl:value-of select="tax_chap"/></td>
<td class="tLabelData"><xsl:value-of select="tax_env"/></td>
</tr>
</xsl:for-each>
</xsl:if>
</table>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment