Invoice from
@if (!string.IsNullOrEmpty(Model.StoreWebsite))
{
@Model.StoreName
}
else
{
@Model.StoreName
}
@if (Model.AmountDue > 0)
{
@Model.AmountDueFormatted
}
else
{
@Model.AmountCollectedFormatted
}
{{srvModel.status}}
(archived)
@if (Model.Status.ToLowerInvariant() != "pending")
{
@Model.Status
@if (Model.Archived)
{
(archived)
}
}
@if (Model.IsPending && Model.ExpiryDate.HasValue)
{
Due
@Model.ExpiryDate.Value.ToBrowserDate(ViewsRazor.DateDisplayFormat.Relative)
}
else
{
No due date
}
@{
var prcnt = Model.Amount == 0? 100: Model.AmountCollected / Model.Amount * 100;
}
Amount paid
@Model.AmountCollectedFormatted
Total requested
@Model.AmountFormatted
@if (Model.IsPending && !Model.Archived)
{
@if (Model.AllowCustomPaymentAmounts && !Model.AnyPendingInvoice)
{
}
else
{
Pay Invoice
if (Model.AnyPendingInvoice && !Model.PendingInvoiceHasPayments && Model.AllowCustomPaymentAmounts)
{
}
}
}
@if (!string.IsNullOrEmpty(Model.Description) && Model.Description != "
")
{
Memo
@Safe.Raw(Model.Description)
}
Payment History
No payments have been made yet.
Invoice Id
Amount
Status
{{invoice.amountFormatted}}
{{invoice.stateFormatted}}
Transaction
Paid
Payment
{{payment.paidFormatted}}
{{payment.amountFormatted}} {{payment.paymentMethod}}
@if (Model.Invoices == null || !Model.Invoices.Any())
{
No payments have been made yet.
}
else
{
@foreach (var invoice in Model.Invoices)
{
Invoice Id
Amount
Status
@invoice.AmountFormatted
@invoice.StateFormatted
@if (invoice.Payments != null && invoice.Payments.Any())
{
Transaction
Paid
Payment
@foreach (var payment in invoice.Payments)
{
@payment.PaidFormatted
@payment.AmountFormatted
}
}
}
}