-
Notifications
You must be signed in to change notification settings - Fork 0
/
receipt.html
103 lines (101 loc) · 3.56 KB
/
receipt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<html>
<head>
<title>Rent Receipts</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,700;1,300;1,700;&display=swap" rel="stylesheet">
<style>
@page{
size: A4;
margin-top: 50px;
margin-bottom: 50px;
}
@media print, screen {
body{
font-family: 'Roboto', sans-serif;
margin:0%;
padding:0%;
width: 210mm;
font-weight: 300;
color: rgb(87, 87, 87);
}
.receipt{
padding: 5mm;
border: 1px solid rgb(87, 87, 87);
display: flex;
flex-direction: column;
margin:1cm;
page-break-inside: avoid;
}
.header{
display: flex;
flex-direction: row;
justify-content: space-between;
}
.heading{
font-size: large;
}
.heading .title{
text-transform: capitalize;
}
.heading .date{
color: grey ;
}
.stamp{
text-align: center;
vertical-align: middle;
margin-top:3mm;
margin-bottom:3mm;
width: 15mm;
height: 15mm;
font-size: x-small;
border: 1px dotted rgb(172, 171, 171);
}
.content{
text-align: justify;
margin-top: 5mm;
}
.footer{
margin-top: 1cm;
}
.footer .name span{
color: grey;
}
b{
color: rgb(87, 87, 87);
}
}
</style>
</head>
<body>
{{range $i, $receipt := .}}
<div class="receipt">
<div class="header">
<div class="heading">
<span class="title">RENT RECEIPT</span>
<span class="date"><b>{{$receipt.ReceiptDate}}</b></span>
</div>
<div class="stamp">
Affix Rs. 1 revenue stamp
</div>
<div>
<div>Receipt No: {{$receipt.ID}}</div>
<div>Date: <b>{{$receipt.IssueDate}}</b></div>
</div>
</div>
<div class="content">
Received sum of <b>Rs.{{$receipt.Amount}}/-</b> from
<b>{{$receipt.Tenant.Name}}</b> towards the rent of property located at
<b>{{$receipt.Landlord.Address}}</b> for the period from <b>{{$receipt.StartDate}}</b> to <b>{{$receipt.EndDate}}</b>.
</div>
<div class="footer">
<div class="name"><b>{{$receipt.Landlord.Name}}</b> <span>(Landlord)</span></div>
{{if $receipt.Landlord.PAN}}
<div class="pan">PAN: <b>{{$receipt.Landlord.PAN}}</b></div>
{{end}}
</div>
<hr/>
</div>
{{end}}
</body>
</html>