add hilight and address
parent
f2dd59725a
commit
9611b90b71
|
|
@ -7,6 +7,9 @@
|
||||||
@media print {
|
@media print {
|
||||||
:host {
|
:host {
|
||||||
display: block;
|
display: block;
|
||||||
|
margin-top: -50px;
|
||||||
|
-webkit-print-color-adjust: exact;
|
||||||
|
color-adjust: exact;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,6 +61,10 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mt-5 {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.mt-20 {
|
.mt-20 {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
@ -80,7 +87,6 @@
|
||||||
|
|
||||||
.hilight-yellow {
|
.hilight-yellow {
|
||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
-webkit-print-color-adjust: exact;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
table.borders {
|
table.borders {
|
||||||
|
|
@ -93,4 +99,8 @@
|
||||||
|
|
||||||
table.cell-padding-5 td, table.cell-padding-5 th {
|
table.cell-padding-5 td, table.cell-padding-5 th {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.highlight-even tr:nth-child(even) {
|
||||||
|
background-color: #e6ffe6;
|
||||||
}
|
}
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
<div class="h-100 flex flex-align-center flex-justify-center flex-direction-column">
|
<div class="h-100 flex flex-align-center flex-justify-center flex-direction-column">
|
||||||
<img src="../../../assets/images/original/logo_dark.png">
|
<img src="../../../assets/images/original/logo_dark.png">
|
||||||
<p>
|
<p class="mt-5">
|
||||||
Old Fashion Baptist Church Contribution Report {{taxYear}}
|
Old Fashion Baptist Church Contribution Report {{taxYear}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p class="mt-5">
|
||||||
{{contributorName}}
|
{{contributorName}}
|
||||||
</p>
|
</p>
|
||||||
|
<p>{{contributorStreet}}</p>
|
||||||
|
<p>{{contributorCity}} {{contributorState}}, {{contributorZip}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page-break-before">
|
<div class="page-break-before">
|
||||||
|
|
@ -62,7 +64,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="page-break-before cell-padding-5 w-100 borders">
|
<table class="highlight-even cell-padding-5 w-100 borders page-break-before">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-left">Date</th>
|
<th class="text-left">Date</th>
|
||||||
|
|
@ -75,12 +77,12 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngFor="let t of transactions">
|
<tr *ngFor="let t of transactions">
|
||||||
<td nowrap>{{t.date}}</td>
|
<td nowrap>{{t.date}}</td>
|
||||||
<td nowrap>{{t.type === 0 ? 'Cash' : 'Check'}}</td>
|
<td nowrap>{{t.type === 0 ? 'Cash' : 'Check'}}</td>
|
||||||
<td nowrap>{{t.checkNumber}}</td>
|
<td nowrap>{{t.checkNumber}}</td>
|
||||||
<td nowrap>{{t.fund === 0 ? 'General' : 'Missions'}}</td>
|
<td nowrap>{{t.fund === 0 ? 'General' : 'Missions'}}</td>
|
||||||
<td width="99%">{{t.description}}</td>
|
<td width="99%">{{t.description}}</td>
|
||||||
<td nowrap>{{t.amount | currency}}</td>
|
<td nowrap>{{t.amount | currency}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -11,6 +11,10 @@ export class ContributorYearlyReportComponent implements OnInit {
|
||||||
|
|
||||||
public transactions: Transaction[] = [];
|
public transactions: Transaction[] = [];
|
||||||
public contributorName: string = 'Bob and Jill Handerson';
|
public contributorName: string = 'Bob and Jill Handerson';
|
||||||
|
public contributorStreet: string = '7878 Washington St';
|
||||||
|
public contributorCity: string = 'Butte';
|
||||||
|
public contributorState: string = 'MT';
|
||||||
|
public contributorZip: string = '59701';
|
||||||
public taxYear: number = 2019;
|
public taxYear: number = 2019;
|
||||||
public registrationCode: string = 'HDIJDHDFD*#*@';
|
public registrationCode: string = 'HDIJDHDFD*#*@';
|
||||||
|
|
||||||
|
|
@ -18,7 +22,7 @@ export class ContributorYearlyReportComponent implements OnInit {
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
const t = new Transaction();
|
const t = new Transaction();
|
||||||
t.amount = 400;
|
t.amount = 100;
|
||||||
t.checkNumber = '3434';
|
t.checkNumber = '3434';
|
||||||
t.contributorId = 45;
|
t.contributorId = 45;
|
||||||
t.date = '2019-10-20';
|
t.date = '2019-10-20';
|
||||||
|
|
@ -38,7 +42,7 @@ export class ContributorYearlyReportComponent implements OnInit {
|
||||||
t2.goodsOrServices = false;
|
t2.goodsOrServices = false;
|
||||||
t2.taxYear = 2019;
|
t2.taxYear = 2019;
|
||||||
t2.typeId = 2;
|
t2.typeId = 2;
|
||||||
this.transactions.push(t);
|
this.transactions.push(t2);
|
||||||
}
|
}
|
||||||
this.transactions.push(t);
|
this.transactions.push(t);
|
||||||
this.printService.setPrinting(true);
|
this.printService.setPrinting(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue