Project

General

Profile

1
<p-table [value]="unhandledDataList"
2
         [autoLayout]="true"
3
         styleClass="p-datatable-gridlines"
4
         [rowHover]="true">
5
  <ng-template pTemplate="header">
6
    <tr>
7
      <th>Invoice Number</th>
8
      <th>Invoice Type</th>
9
      <th>Invoice IssueDate</th>
10
      <th>Client Name</th>
11
      <th>Supplier Name</th>
12
      <th>Total Price</th>
13
      <th>Vat Rate</th>
14
      <th>total Amount</th>
15
      <th class="two-buttons"></th>
16
    </tr>
17
  </ng-template>
18
  <ng-template pTemplate="body"
19
               let-unhandledData>
20
    <tr>
21
      <td>{{unhandledData?.record.invoiceMasterData.invoiceNumber}}</td>
22
      <td>{{unhandledData?.record.invoiceMasterData.invoiceType}}</td>
23
      <td>{{unhandledData?.record.invoiceMasterData.invoiceIssueDate}}</td>
24
      <td>{{unhandledData?.record.invoiceMasterData.customerName}}</td>
25
      <td>{{unhandledData?.record.invoiceMasterData.supplierName}}</td>
26
      <td>{{unhandledData?.record.invoiceMasterData.totalPriceBeforeVat}}</td>
27
      <td>{{unhandledData?.record.invoiceMasterData.vatRate}}</td>
28
      <td>{{unhandledData?.record.invoiceMasterData.totalAmount}}</td>
29
      <!-- Preview Icon -->
30
      <td>
31
        <p-button (click)="preview(unhandledData)"
32
                  icon="pi pi-file-o"
33
                  styleClass="p-mr-2 p-button-secondary p-button-rounded p-button-outlined">
34
        </p-button>
35
        <p-button (click)="reclassification(unhandledData)"
36
                  icon="pi pi-chart-bar"
37
                  styleClass="p-button-secondary p-button-rounded p-button-outlined">
38
        </p-button>
39
      </td>
40
    </tr>
41
  </ng-template>
42
</p-table>
43

    
(1-1/4)