From 9611b90b71db716c45d90470e1537384c8e2e810 Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 24 Nov 2019 01:27:15 -0700 Subject: [PATCH] add hilight and address --- .../contributor-yearly-report.component.css | 12 +++++++++- .../contributor-yearly-report.component.html | 22 ++++++++++--------- .../contributor-yearly-report.component.ts | 8 +++++-- 3 files changed, 29 insertions(+), 13 deletions(-) diff --git a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.css b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.css index 63b8349..3474234 100644 --- a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.css +++ b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.css @@ -7,6 +7,9 @@ @media print { :host { display: block; + margin-top: -50px; + -webkit-print-color-adjust: exact; + color-adjust: exact; } } @@ -58,6 +61,10 @@ text-align: left; } + .mt-5 { + margin-top: 5px; + } + .mt-20 { margin-top: 20px; } @@ -80,7 +87,6 @@ .hilight-yellow { background-color: yellow; - -webkit-print-color-adjust: exact; } table.borders { @@ -93,4 +99,8 @@ table.cell-padding-5 td, table.cell-padding-5 th { padding: 5px; + } + + table.highlight-even tr:nth-child(even) { + background-color: #e6ffe6; } \ No newline at end of file diff --git a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.html b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.html index 2cce1a2..96bcc6f 100644 --- a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.html +++ b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.html @@ -1,11 +1,13 @@
-

+

Old Fashion Baptist Church Contribution Report {{taxYear}}

-

+

{{contributorName}}

+

{{contributorStreet}}

+

{{contributorCity}} {{contributorState}}, {{contributorZip}}

@@ -62,7 +64,7 @@
- +
@@ -75,12 +77,12 @@ - - - - - - - + + + + + + +
Date
{{t.date}}{{t.type === 0 ? 'Cash' : 'Check'}}{{t.checkNumber}}{{t.fund === 0 ? 'General' : 'Missions'}}{{t.description}}{{t.amount | currency}}
{{t.date}}{{t.type === 0 ? 'Cash' : 'Check'}}{{t.checkNumber}}{{t.fund === 0 ? 'General' : 'Missions'}}{{t.description}}{{t.amount | currency}}
\ No newline at end of file diff --git a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts index 55cbf46..60f84f5 100644 --- a/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts +++ b/Client/src/app/components/contributor-yearly-report/contributor-yearly-report.component.ts @@ -11,6 +11,10 @@ export class ContributorYearlyReportComponent implements OnInit { public transactions: Transaction[] = []; 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 registrationCode: string = 'HDIJDHDFD*#*@'; @@ -18,7 +22,7 @@ export class ContributorYearlyReportComponent implements OnInit { ngOnInit() { const t = new Transaction(); - t.amount = 400; + t.amount = 100; t.checkNumber = '3434'; t.contributorId = 45; t.date = '2019-10-20'; @@ -38,7 +42,7 @@ export class ContributorYearlyReportComponent implements OnInit { t2.goodsOrServices = false; t2.taxYear = 2019; t2.typeId = 2; - this.transactions.push(t); + this.transactions.push(t2); } this.transactions.push(t); this.printService.setPrinting(true);