-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
shanu
committed
Oct 29, 2011
1 parent
5658f7a
commit bcc099b
Showing
4 changed files
with
71 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#Grails Metadata file | ||
#Mon Oct 10 21:26:48 BRT 2011 | ||
#Sat Oct 29 10:58:59 BRST 2011 | ||
app.grails.version=1.3.4 | ||
app.name=VMS | ||
app.servlet.version=2.4 | ||
app.version=0.1 | ||
plugins.hibernate=1.3.4 | ||
plugins.jasper=1.1.6.3 | ||
plugins.jasper=1.2.2 | ||
plugins.spring-security-core=1.0.1 | ||
plugins.tomcat=1.3.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,83 @@ | ||
<html> | ||
<body> | ||
<table> | ||
<head> | ||
<style type="text/css"> | ||
#invoicePrintBlock{ | ||
padding:10px; | ||
border-width: 2px; | ||
border-style: solid; | ||
border-color: #900; | ||
} | ||
#invoicePrintHeader{ | ||
font-style:italic; | ||
font-size: 25px; | ||
padding:5px; | ||
border-bottom: 2px solid; | ||
border-color: #900; | ||
} | ||
#invoicePrintTable { | ||
width: 600px; | ||
margin:20px; | ||
} | ||
#invoicePrintTable tbody tr td{ | ||
border-bottom:1px solid; | ||
padding:3px; | ||
} | ||
#invoicePrintVoucher{ | ||
width:600px; | ||
text-align:center; | ||
} | ||
</style> | ||
<script> | ||
function printInvoice(){ | ||
window.print(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="printInvoice()"> | ||
<div id="invoicePrintBlock"> | ||
<div id="invoicePrintHeader">Invoice Report</div> | ||
<table id="invoicePrintTable" cellspacing="0"> | ||
<tbody> | ||
<tr> | ||
<td>Invoice Number</td> | ||
<td>${invoice.invoiceNumber}</td> | ||
<td>Invoice Date</td> | ||
<td>${invoice.invoiceDate}</td> | ||
<td><g:formatDate format="dd/MM/yyyy" date="${invoice.invoiceDate}"/> </td> | ||
</tr> | ||
<tr> | ||
<td>Total</td> | ||
<td>${invoice.totalAmount}</td> | ||
<td><g:formatNumber number="${invoice.totalAmount}" format="###.00" /></td> | ||
<td>Discount</td> | ||
<td>${invoice.discount}</td> | ||
<td><g:formatNumber number="${invoice.discount}" format="###.00" /></td> | ||
</tr> | ||
<tr> | ||
<td>Net total</td> | ||
<td>${invoice.netTotal}</td> | ||
<td><g:formatNumber number="${invoice.netTotal}" format="###.00" /></td> | ||
<td>Item</td> | ||
<td>${invoice.item.name}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table> | ||
<table id="invoicePrintVoucher"> | ||
<thead> | ||
<tr> | ||
<th>Voucher Seq#</th> | ||
<th>Barcode</th> | ||
<th>Company Name</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<g:each in="${invoice.vouchers}"> | ||
<tr> | ||
<td></td> | ||
<td>${it.sequenceNumber}</td> | ||
<td>${it.barcodeAlpha}</td> | ||
<td>${it.voucherRequest.client.name}</td> | ||
<td><g:formatNumber number="${it.value}" format="###.##" /></td> | ||
</tr> | ||
</g:each> | ||
</tbody> | ||
</table> | ||
</div> | ||
</body> | ||
</html> |