2017-10-13 00:25:45 +09:00
@model InvoiceDetailsModel
@{
2017-10-27 17:53:04 +09:00
ViewData["Title"] = "Invoice " + Model.Id;
2017-10-13 00:25:45 +09:00
}
2018-11-19 05:20:48 +01:00
@section HeaderContent{
<META NAME="robots" CONTENT="noindex,nofollow">
}
2017-10-20 17:15:25 -05:00
<style type="text/css">
2018-04-23 21:58:22 -05:00
.firstCol {
width: 140px;
}
2017-10-20 17:15:25 -05:00
</style>
2019-08-04 11:29:03 +02:00
<section class="invoice-details">
2017-10-27 17:53:04 +09:00
<div class="container">
2019-10-31 12:29:59 +09:00
@if (TempData.HasStatusMessage())
2019-06-06 18:47:31 +09:00
{
<div class="row">
<div class="col-lg-12 text-center">
2019-10-31 12:29:59 +09:00
<partial name="_StatusMessage" />
2019-06-06 18:47:31 +09:00
</div>
2017-10-27 17:53:04 +09:00
</div>
2019-06-06 18:47:31 +09:00
}
2017-10-13 00:25:45 +09:00
2017-10-27 17:53:04 +09:00
<div class="row">
2019-11-01 21:55:05 +01:00
<div class="col-lg-12 section-heading">
2020-08-26 08:19:40 +02:00
<div class="row">
<h2 class="col-xs-12 col-lg-9">@ViewData["Title"]</h2>
<div class="col-xs-12 col-lg-3 ">
<div class="d-inline-flex">
@if (Model.CanRefund)
2020-06-24 17:51:00 +09:00
{
2020-08-26 08:19:40 +02:00
<a id="refundlink" class=" btn btn-success" asp-action="Refund" asp-route-invoiceId="@this.Context.GetRouteValue("invoiceId")">Issue refund <span class="fa fa-undo"></span></a>
2020-06-24 17:51:00 +09:00
}
else
{
2020-08-26 08:19:40 +02:00
<button href="#" class="btn btn-secondary" data-toggle="tooltip" title="You can only issue refunds on invoices with confirmed payments" disabled>Issue refund <span class="fa fa-undo"></span></button>
2020-06-24 17:51:00 +09:00
}
2020-08-26 08:19:40 +02:00
<form class="p-0 ml-1" asp-action="ToggleArchive" asp-route-invoiceId="@Model.Id" method="post">
<button type="submit" class="btn @(Model.Archived ? "btn-warning" : "btn btn-danger")" id="btn-archive-toggle">
@if (Model.Archived)
{
<span data-toggle="tooltip" title="Unarchive this invoice">Archived <i class=" ml-1 fa fa-close"></i></span>
}
else
{
<span data-toggle="tooltip" title="Archive this invoice so that it does not appear in the invoice list by default">Archive <i class=" ml-1 fa fa-archive"></i></span>
}
</button>
</form>
</div>
</div>
2020-05-07 12:50:07 +02:00
</div>
2017-10-27 17:53:04 +09:00
<hr class="primary">
</div>
</div>
2017-10-13 00:25:45 +09:00
2019-04-29 22:45:33 -05:00
<div class="row">
<div class="col-md-6">
<h3>Information</h3>
2019-05-30 13:59:01 -05:00
<table class="table table-sm table-responsive-md removetopborder">
2018-11-30 18:43:43 +09:00
<tr>
2019-04-29 22:45:33 -05:00
<th>Store</th>
<td><a href="@Model.StoreLink">@Model.StoreName</a></td>
</tr>
<tr>
<th>Id</th>
<td>@Model.Id</td>
2018-11-30 18:43:43 +09:00
</tr>
<tr>
2019-04-29 22:45:33 -05:00
<th>State</th>
<td>@Model.State</td>
2018-11-30 18:43:43 +09:00
</tr>
<tr>
2019-04-29 22:45:33 -05:00
<th>Created date</th>
<td>@Model.CreatedDate.ToBrowserDate()</td>
</tr>
<tr>
<th>Expiration date</th>
<td>@Model.ExpirationDate.ToBrowserDate()</td>
</tr>
<tr>
<th>Monitoring date</th>
<td>@Model.MonitoringDate.ToBrowserDate()</td>
</tr>
<tr>
<th>Transaction speed</th>
<td>@Model.TransactionSpeed</td>
</tr>
<tr>
<th>Refund email</th>
<td><a href="mailto:@Model.RefundEmail">@Model.RefundEmail</a></td>
</tr>
<tr>
<th>Order Id</th>
<td>@Model.OrderId</td>
</tr>
<tr>
<th>Total fiat due</th>
2019-01-30 19:18:44 +09:00
<td>@Model.Fiat</td>
2018-11-30 18:43:43 +09:00
</tr>
2019-04-29 22:45:33 -05:00
<tr>
<th>Notification Url</th>
<td>@Model.NotificationUrl</td>
</tr>
<tr>
<th>Redirect Url</th>
<td><a href="@Model.RedirectUrl">@Model.RedirectUrl</a></td>
2019-01-24 20:53:29 +09:00
</tr>
2018-11-30 18:43:43 +09:00
</table>
2019-04-29 22:45:33 -05:00
</div>
2017-10-27 17:53:04 +09:00
<div class="col-md-6">
2019-04-29 22:45:33 -05:00
<h3>Buyer information</h3>
2019-05-30 13:59:01 -05:00
<table class="table table-sm table-responsive-md removetopborder">
2018-11-30 18:43:43 +09:00
<tr>
2019-04-29 22:45:33 -05:00
<th>Name</th>
<td>@Model.BuyerInformation.BuyerName</td>
2018-11-30 18:43:43 +09:00
</tr>
<tr>
2019-04-29 22:45:33 -05:00
<th>Email</th>
<td><a href="mailto:@Model.BuyerInformation.BuyerEmail">@Model.BuyerInformation.BuyerEmail</a></td>
2018-11-30 18:43:43 +09:00
</tr>
<tr>
2019-04-29 22:45:33 -05:00
<th>Phone</th>
<td>@Model.BuyerInformation.BuyerPhone</td>
2018-11-30 18:43:43 +09:00
</tr>
2019-01-24 20:53:29 +09:00
<tr>
2019-04-29 22:45:33 -05:00
<th>Address 1</th>
<td>@Model.BuyerInformation.BuyerAddress1</td>
</tr>
<tr>
<th>Address 2</th>
<td>@Model.BuyerInformation.BuyerAddress2</td>
</tr>
<tr>
<th>City</th>
<td>@Model.BuyerInformation.BuyerCity</td>
</tr>
<tr>
<th>State</th>
<td>@Model.BuyerInformation.BuyerState</td>
</tr>
<tr>
<th>Country</th>
<td>@Model.BuyerInformation.BuyerCountry</td>
</tr>
<tr>
<th>Zip</th>
<td>@Model.BuyerInformation.BuyerZip</td>
2019-01-24 20:53:29 +09:00
</tr>
2018-11-30 18:43:43 +09:00
</table>
2019-04-29 22:45:33 -05:00
@if (Model.PosData.Count == 0)
{
<h3>Product information</h3>
2019-05-30 13:59:01 -05:00
<table class="table table-sm table-responsive-md removetopborder">
2018-01-08 20:06:16 +09:00
<tr>
2019-04-29 22:45:33 -05:00
<th>Item code</th>
<td>@Model.ProductInformation.ItemCode</td>
</tr>
<tr>
<th>Item Description</th>
<td>@Model.ProductInformation.ItemDesc</td>
</tr>
<tr>
<th>Price</th>
<td>@Model.Fiat</td>
</tr>
<tr>
<th>Tax included</th>
<td>@Model.TaxIncluded</td>
2018-01-08 20:06:16 +09:00
</tr>
2018-04-18 22:27:01 +09:00
</table>
2019-04-29 22:45:33 -05:00
}
2018-01-08 20:06:16 +09:00
</div>
2019-04-29 22:45:33 -05:00
</div>
@if (Model.PosData.Count != 0)
2018-04-18 22:27:01 +09:00
{
<div class="row">
2019-04-29 22:45:33 -05:00
<div class="col-md-6">
<h3>Product information</h3>
2019-05-30 13:59:01 -05:00
<table class="table table-sm table-responsive-md removetopborder">
2019-04-29 22:45:33 -05:00
<tr>
<th>Item code</th>
<td>@Model.ProductInformation.ItemCode</td>
</tr>
<tr>
<th>Item Description</th>
<td>@Model.ProductInformation.ItemDesc</td>
</tr>
<tr>
<th>Price</th>
<td>@Model.Fiat</td>
</tr>
<tr>
<th>Tax included</th>
<td>@Model.TaxIncluded</td>
</tr>
2018-04-18 22:27:01 +09:00
</table>
</div>
2019-04-29 22:45:33 -05:00
<div class="col-md-6">
<h3>Point of Sale Data</h3>
<partial name="PosData" model="@Model.PosData" />
</div>
2018-04-18 22:27:01 +09:00
</div>
}
2018-01-14 21:48:23 +09:00
2020-03-01 19:46:05 -06:00
<partial name="ListInvoicesPaymentsPartial" model="(Model, false)" />
2020-02-28 16:58:09 -06:00
2019-04-29 22:45:33 -05:00
2018-01-14 21:48:23 +09:00
<div class="row">
<div class="col-md-12">
<h3>Events</h3>
2018-04-17 16:48:50 -05:00
<table class="table table-sm table-responsive-md">
2018-01-14 21:48:23 +09:00
<thead class="thead-inverse">
<tr>
<th>Date</th>
<th>Message</th>
</tr>
</thead>
<tbody>
2018-10-11 20:09:13 -05:00
@foreach (var evt in Model.Events)
2018-01-14 21:48:23 +09:00
{
<tr>
2018-05-26 09:35:42 -05:00
<td>@evt.Timestamp.ToBrowserDate()</td>
2018-01-14 21:48:23 +09:00
<td>@evt.Message</td>
</tr>
}
</tbody>
</table>
</div>
</div>
2017-10-27 17:53:04 +09:00
</div>
</section>