Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
Component Sharing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gagandeep Singh Bhatia
Component Sharing
Commits
305fea3a
Commit
305fea3a
authored
Apr 10, 2026
by
Mohammed Dohadwala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified the CSL to show old from date and ite description while also re
arranging the order.
parent
14b672c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
261 additions
and
0 deletions
+261
-0
Mohammed/SalesQuotAmd/sales_quot_amd_xsl.xsl
Mohammed/SalesQuotAmd/sales_quot_amd_xsl.xsl
+261
-0
No files found.
Mohammed/SalesQuotAmd/sales_quot_amd_xsl.xsl
0 → 100755
View file @
305fea3a
<?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/display_budget.css"
/>
<LINK
type=
"text/css"
rel=
"stylesheet"
href=
"/ibase/css/workflowsign.css"
/>
<style>
body{
background:#f5f6fa;
font-family:Arial, Helvetica, sans-serif;
}
.mainCard{
margin:10px;
background:#ffffff;
border:1px solid #ddd;
border-radius:6px;
padding:15px;
}
.titleHeader{
font-size:18px;
font-weight:bold;
margin-bottom:15px;
border-bottom:1px solid #e0e0e0;
padding-bottom:8px;
}
.infoGrid{
display:flex;
flex-wrap:wrap;
}
.fieldBox{
width:50%;
margin-bottom:8px;
}
.label{
font-weight:bold;
display:inline-block;
width:150px;
color:#444;
}
.value{
color:#000;
}
.tableCard{
margin:10px;
background:#fff;
border:1px solid #ddd;
border-radius:6px;
padding:10px;
}
.tableTitle{
font-weight:bold;
margin-bottom:8px;
}
.itemTable{
width:100%;
border-collapse:collapse;
}
.itemTable th{
background:#f3f5f9;
padding:8px;
border:1px solid #ddd;
font-size:13px;
}
.itemTable td{
padding:8px;
border:1px solid #ddd;
font-size:13px;
}
.itemTable tr:nth-child(even){
background:#fafafa;
}
.itemTable tr:hover{
background:#eef3ff;
}
.right{
text-align:right;
}
</style>
</head>
<body>
<div
class=
"allDisplayDiv"
>
<xsl:apply-templates
select=
"//Detail1"
/>
</div>
</body>
</html>
</xsl:template>
<xsl:template
match=
"Detail1"
>
<div
class=
"mainCard"
>
<div
class=
"titleHeader"
>
Sales Quotation Amendment
</div>
<div
class=
"infoGrid"
>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Quotation No :
</span>
<span
class=
"value"
><xsl:value-of
select=
"quot_no"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Quotation Date :
</span>
<span
class=
"value"
><xsl:value-of
select=
"quot_date"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Amendment No :
</span>
<span
class=
"value"
><xsl:value-of
select=
"amd_no"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Amendment Date :
</span>
<span
class=
"value"
><xsl:value-of
select=
"amd_date"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Amendment Type :
</span>
<span
class=
"value"
>
<xsl:choose>
<xsl:when
test=
"normalize-space(amd_type) = 'A'"
>
Addition
</xsl:when>
<xsl:when
test=
"normalize-space(amd_type) = 'M'"
>
Modification
</xsl:when>
<xsl:when
test=
"normalize-space(amd_type) = 'D'"
>
Deletion
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select=
"amd_type"
/>
</xsl:otherwise>
</xsl:choose>
</span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Reason for Amendment :
</span>
<span
class=
"value"
><xsl:value-of
select=
"reas_desc"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Customer :
</span>
<span
class=
"value"
>
<xsl:value-of
select=
"cust_name"
/>
(
<xsl:value-of
select=
"cust_code"
/>
)
</span>
</div>
<div
class=
"fieldBox"
>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Old From Date :
</span>
<span
class=
"value"
><xsl:value-of
select=
"from_date_o"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
New From Date :
</span>
<span
class=
"value"
><xsl:value-of
select=
"from_date"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
Old Valid Upto :
</span>
<span
class=
"value"
><xsl:value-of
select=
"valid_upto_o"
/></span>
</div>
<div
class=
"fieldBox"
>
<span
class=
"label"
>
New Valid Upto :
</span>
<span
class=
"value"
><xsl:value-of
select=
"valid_upto"
/></span>
</div>
</div>
</div>
<div
class=
"tableCard"
>
<div
class=
"tableTitle"
>
Item Details
</div>
<div
style=
"max-height:400px; overflow:auto;"
>
<table
class=
"itemTable"
>
<tr>
<th>
Item
</th>
<th>
Old Quantity
</th>
<th>
New Quantity
</th>
<th>
Old Unit Rate
</th>
<th>
New Unit Rate
</th>
</tr>
<xsl:for-each
select=
"//Detail2"
>
<tr>
<td>
<xsl:value-of
select=
"item_code"
/>
<xsl:text>
-
</xsl:text>
<xsl:value-of
select=
"item_descr"
/>
</td>
<td
class=
"right"
>
<xsl:value-of
select=
"quantity_o"
/>
</td>
<td
class=
"right"
>
<xsl:value-of
select=
"quantity"
/>
</td>
<td
class=
"right"
>
<xsl:value-of
select=
"unit__rate_o"
/>
</td>
<td
class=
"right"
>
<xsl:value-of
select=
"unit__rate"
/>
</td>
</tr>
</xsl:for-each>
</table>
</div>
</div>
</xsl:template>
</xsl:stylesheet>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment