This commit is contained in:
mustafa.juma 2025-11-23 20:55:44 +03:00
parent 663783beb4
commit d65a459b36
2 changed files with 12 additions and 4 deletions

Binary file not shown.

View File

@ -210,15 +210,23 @@
<% }
%>
</text>);
columns.Add().Caption("Actions").Width(250).CellTemplate(@<text>
columns.Add().Caption("Actions").Width(300).CellTemplate(@<text>
<% if(data.InvoiceID != null)
{%>
<a href="@Url.Action("DownloadInvoice", "NewCOI")?invoiceId=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-primary btn-sm mr-1">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg> Invoice
</a>
<a href="@Url.Action("ProcessReceipt", "NewCOI")?ID=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-success btn-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg> Download
</a>
<% if(data.PaymentStatus == true)
{%>
<a href="@Url.Action("ProcessReceipt", "NewCOI")?ID=<%= data.InvoiceID %>" target="_blank" class="btn btn-outline-success btn-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line></svg> Download
</a>
<% }
else
{%>
<span class="badge badge-warning">Waiting Payment</span>
<% }
%>
<% }
%>
</text>);