From b1790a2fe9357fc04c1d71d0f603d4ebd610afde Mon Sep 17 00:00:00 2001 From: Finn Date: Fri, 12 Jul 2019 20:47:01 +0100 Subject: [PATCH] Added meta data to transaction list --- src/app/dashboard/transaction-log.component.html | 10 ++++++++-- src/app/dashboard/transaction-log.component.ts | 4 ++++ src/app/shared/transaction-result.component.html | 5 ++++- src/app/shared/transaction-result.component.ts | 1 + 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/app/dashboard/transaction-log.component.html b/src/app/dashboard/transaction-log.component.html index 9b07ec1..d7f8aa7 100644 --- a/src/app/dashboard/transaction-log.component.html +++ b/src/app/dashboard/transaction-log.component.html @@ -101,18 +101,24 @@
Log of Outgoing Transactions This lists all purchases that have been submitted. +
- + + + + - +
SellerValueValueNet ValueSales Tax ValueGross Value Purchase Time
{{transaction.seller}} -{{transaction.value | currency:'GBP':'symbol':'1.2-2' }} +{{transaction.value | currency:'GBP':'symbol':'1.2-2' }} +{{transaction.net_value | currency:'GBP':'symbol':'1.2-2' }} +{{transaction.sales_tax_value | currency:'GBP':'symbol':'1.2-2' }} +{{transaction.gross_value | currency:'GBP':'symbol':'1.2-2' }} {{transactionDate}} diff --git a/src/app/shared/transaction-result.component.ts b/src/app/shared/transaction-result.component.ts index a293b72..97b8bd9 100644 --- a/src/app/shared/transaction-result.component.ts +++ b/src/app/shared/transaction-result.component.ts @@ -14,6 +14,7 @@ interface TransactionData { }) export class TransactionResultComponent implements OnInit { @Input() public transaction: TransactionData; + @Input() public showMeta: boolean; public transactionDate: string; ngOnInit(): void {