show gp icons on view

deepsource-autofix-76c6eb20
Dan Gowans 2023-03-08 11:17:32 -05:00
parent ebacfd0147
commit 93bb0a4f05
1 changed files with 127 additions and 111 deletions

View File

@ -394,7 +394,23 @@
<td><%= lotOccupancyTransaction.transactionDateString %></td>
<td>
<% if (lotOccupancyTransaction.externalReceiptNumber !== '') { %>
<%= lotOccupancyTransaction.externalReceiptNumber %><br />
<%= lotOccupancyTransaction.externalReceiptNumber %>
<% if (configFunctions.getProperty('settings.dynamicsGP.integrationIsEnabled')) { %>
<% if (lotOccupancyTransaction.dynamicsGPDocument === undefined) { %>
<span data-tooltip="No Matching Document Found">
<i class="fas fa-times-circle has-text-danger" aria-label="No Matching Document Found"></i>
</span>
<% } else if (lotOccupancyTransaction.dynamicsGPDocument.documentTotal.toFixed(2) === lotOccupancyTransaction.transactionAmount.toFixed(2)) { %>
<span data-tooltip="Matching Document Found">
<i class="fas fa-check-circle has-text-success" aria-label="Matching Document Found"></i>
</span>
<% } else { %>
<span data-tooltip="Matching Document: $<%= lotOccupancyTransaction.dynamicsGPDocument.documentTotal.toFixed(2) %>">
<i class="fas fa-exclamation-triangle has-text-warning" aria-label="Matching Document: $<%= lotOccupancyTransaction.dynamicsGPDocument.documentTotal.toFixed(2) %>"></i>
</span>
<% } %>
<% } %>
<br />
<% } %>
<small><%= lotOccupancyTransaction.transactionNote %></small>
</td>