824 lines
39 KiB
Plaintext
824 lines
39 KiB
Plaintext
@model OrderModel
|
|
|
|
@using Nop.Core.Domain.Tax;
|
|
@using Nop.Core.Domain.Orders;
|
|
@using Nop.Services
|
|
|
|
@if (!Model.IsLoggedInAsVendor)
|
|
{
|
|
<script>
|
|
$(function() {
|
|
toggleChangeOrderStatus(false);
|
|
toggleOrderTotals(false);
|
|
toggleCC(false);
|
|
});
|
|
|
|
function toggleChangeOrderStatus(editmode) {
|
|
if (editmode) {
|
|
$('#pnlChangeOrderStatus').showElement();
|
|
$('#btnChangeOrderStatus').hideElement();
|
|
} else {
|
|
$('#pnlChangeOrderStatus').hideElement();
|
|
$('#btnChangeOrderStatus').showElement();
|
|
}
|
|
}
|
|
|
|
function toggleOrderTotals(editmode) {
|
|
if (editmode) {
|
|
$('#trEditOrderTotals').showElement();
|
|
$('#btnEditOrderTotals').hideElement();
|
|
$('#btnSaveOrderTotals').showElement();
|
|
$('#btnCancelOrderTotals').showElement();
|
|
} else {
|
|
$('#trEditOrderTotals').hideElement();
|
|
$('#btnEditOrderTotals').showElement();
|
|
$('#btnSaveOrderTotals').hideElement();
|
|
$('#btnCancelOrderTotals').hideElement();
|
|
}
|
|
}
|
|
|
|
function toggleCC(editmode) {
|
|
if (editmode) {
|
|
$('#lblCardType').hideElement();
|
|
$('#@Html.IdFor(model => model.CardType)').showElement();
|
|
$('#lblCardName').hideElement();
|
|
$('#@Html.IdFor(model => model.CardName)').showElement();
|
|
$('#lblCardNumber').hideElement();
|
|
$('#@Html.IdFor(model => model.CardNumber)').showElement();
|
|
$('#lblCardCvv2').hideElement();
|
|
$('#@Html.IdFor(model => model.CardCvv2)').showElement();
|
|
$('#lblCardExpirationMonth').hideElement();
|
|
$('#@Html.IdFor(model => model.CardExpirationMonth)').showElement();
|
|
$('#lblCardExpirationYear').hideElement();
|
|
$('#@Html.IdFor(model => model.CardExpirationYear)').showElement();
|
|
$('#btnEditCC').hideElement();
|
|
$('#btnSaveCC').showElement();
|
|
$('#btnCancelCC').showElement();
|
|
} else {
|
|
$('#lblCardType').showElement();
|
|
$('#@Html.IdFor(model => model.CardType)').hideElement();
|
|
$('#lblCardName').showElement();
|
|
$('#@Html.IdFor(model => model.CardName)').hideElement();
|
|
$('#lblCardNumber').showElement();
|
|
$('#@Html.IdFor(model => model.CardNumber)').hideElement();
|
|
$('#lblCardCvv2').showElement();
|
|
$('#@Html.IdFor(model => model.CardCvv2)').hideElement();
|
|
$('#lblCardExpirationMonth').showElement();
|
|
$('#@Html.IdFor(model => model.CardExpirationMonth)').hideElement();
|
|
$('#lblCardExpirationYear').showElement();
|
|
$('#@Html.IdFor(model => model.CardExpirationYear)').hideElement();
|
|
$('#btnEditCC').showElement();
|
|
$('#btnSaveCC').hideElement();
|
|
$('#btnCancelCC').hideElement();
|
|
}
|
|
}
|
|
</script>
|
|
}
|
|
<div class="card-body">
|
|
<div class="card card-default">
|
|
<div class="card-body">
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CustomOrderNumber" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.CustomOrderNumber</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CreatedOn" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.CreatedOn</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CustomerId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<a asp-controller="Customer" asp-action="Edit" asp-route-id="@Model.CustomerId">@Model.CustomerInfo</a>
|
|
</div>
|
|
</div>
|
|
@if (!Model.IsLoggedInAsVendor)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderStatus" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="input-group input-group-short">
|
|
<div class="input-group-text align-items-start">
|
|
<div class="font-weight-bold">@Model.OrderStatus</div>
|
|
</div>
|
|
<div class="input-group-btn">
|
|
@if (Model.CanCancelOrder)
|
|
{
|
|
<button type="submit" name="cancelorder" id="cancelorder" class="btn btn-danger" style="margin-right: 3px;">
|
|
@T("Admin.Orders.Fields.OrderStatus.Cancel")
|
|
</button>
|
|
<nop-action-confirmation asp-button-id="cancelorder" />
|
|
}
|
|
<button type="submit" name="btnChangeOrderStatus" onclick="toggleChangeOrderStatus(true);return false;" id="btnChangeOrderStatus" class="btn btn-primary" >
|
|
@T("Admin.Orders.Fields.OrderStatus.Change")
|
|
</button>
|
|
<div id="pnlChangeOrderStatus">
|
|
<nop-select asp-for="OrderStatusId" asp-items="@(await ((OrderStatus) Model.OrderStatusId).ToSelectListAsync())" class="mt-1"/>
|
|
<button type="submit" name="btnSaveOrderStatus" id="btnSaveOrderStatus" class="btn btn-primary mt-1 mr-1" >
|
|
@T("Admin.Common.Save")
|
|
</button>
|
|
<nop-action-confirmation asp-button-id="btnSaveOrderStatus" />
|
|
<button type="submit" name="btnCancelOrderStatus" onclick="toggleChangeOrderStatus(false);return false;" id="btnCancelOrderStatus" class="btn btn-secondary mt-1" >
|
|
@T("Admin.Common.Cancel")
|
|
</button>
|
|
<div class="input-group-btn-hint">
|
|
<em>@T("Admin.Orders.Fields.OrderStatus.Change.ForAdvancedUsers")</em>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
//vendors should see whether or order is cancelled
|
|
if (Model.OrderStatusId == (int)OrderStatus.Cancelled)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
|
|
</div>
|
|
<div class="col-md-9">
|
|
<strong>
|
|
@T("Admin.Orders.Fields.OrderStatus.CancelledNotification")
|
|
</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
@if (!Model.IsLoggedInAsVendor)
|
|
{
|
|
<div class="card card-default">
|
|
<div class="card-body">
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<div class="label-wrapper">
|
|
<label class="col-form-label">@T("Admin.Orders.Fields.OrderSubtotal")</label>
|
|
<div class="ico-help" title="@T("Admin.Orders.Fields.OrderSubtotal.Hint")">
|
|
<i class="fas fa-circle-question"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row">
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderSubtotalInclTax) <strong>@T("Admin.Orders.Fields.OrderSubtotalInclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderSubtotalExclTax) <strong>@T("Admin.Orders.Fields.OrderSubtotalExclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax) && !string.IsNullOrEmpty(Model.OrderSubTotalDiscountInclTax)) ||
|
|
((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax) && !string.IsNullOrEmpty(Model.OrderSubTotalDiscountExclTax)))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<div class="label-wrapper">
|
|
<label class="col-form-label">@T("Admin.Orders.Fields.OrderSubTotalDiscount")</label>
|
|
<div class="ico-help" title="@T("Admin.Orders.Fields.OrderSubTotalDiscount.Hint")">
|
|
<i class="fas fa-circle-question"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row">
|
|
@if ((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax) && !string.IsNullOrEmpty(Model.OrderSubTotalDiscountInclTax))
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderSubTotalDiscountInclTax) <strong>@T("Admin.Orders.Fields.OrderSubTotalDiscountInclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if ((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax) && !string.IsNullOrEmpty(Model.OrderSubTotalDiscountExclTax))
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderSubTotalDiscountExclTax) <strong>@T("Admin.Orders.Fields.OrderSubTotalDiscountExclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<div class="label-wrapper">
|
|
<label class="col-form-label">@T("Admin.Orders.Fields.OrderShipping")</label>
|
|
<div class="ico-help" title="@T("Admin.Orders.Fields.OrderShipping.Hint")">
|
|
<i class="fas fa-circle-question"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row">
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderShippingInclTax) <strong>@T("Admin.Orders.Fields.OrderShippingInclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.OrderShippingExclTax) <strong>@T("Admin.Orders.Fields.OrderShippingExclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if (((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax) && !string.IsNullOrEmpty(Model.PaymentMethodAdditionalFeeInclTax)) ||
|
|
((Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax) && !string.IsNullOrEmpty(Model.PaymentMethodAdditionalFeeExclTax)))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<div class="label-wrapper">
|
|
<label class="col-form-label">@T("Admin.Orders.Fields.PaymentMethodAdditionalFee")</label>
|
|
<div class="ico-help" title="@T("Admin.Orders.Fields.PaymentMethodAdditionalFee.Hint")">
|
|
<i class="fas fa-circle-question"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="row">
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.IncludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.PaymentMethodAdditionalFeeInclTax) <strong>@T("Admin.Orders.Fields.PaymentMethodAdditionalFeeInclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowCustomersToSelectTaxDisplayType || Model.TaxDisplayType == TaxDisplayType.ExcludingTax)
|
|
{
|
|
<div class="col-md-6">
|
|
<div class="form-text-row">
|
|
@Html.Raw(Model.PaymentMethodAdditionalFeeExclTax) <strong>@T("Admin.Orders.Fields.PaymentMethodAdditionalFeeExclTax")</strong>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.DisplayTaxRates)
|
|
{
|
|
foreach (var tr in Model.TaxRates)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="Tax" /> <span style="padding-top: 7px;margin-right: 5px;float: right;">@tr.Rate%</span>
|
|
</div>
|
|
<div class="col-md-9">
|
|
@Html.Raw(tr.Value)
|
|
</div>
|
|
</div>
|
|
}
|
|
}
|
|
@if (Model.DisplayTax)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="Tax" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Html.Raw(Model.Tax)</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.OrderTotalDiscount))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderTotalDiscount" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Html.Raw(Model.OrderTotalDiscount)</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@foreach (var gc in Model.GiftCards)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="@Model.GiftCards[0].CouponCode" />
|
|
<span style="padding-top: 7px;margin-right: 5px;float: right;">(@(gc.CouponCode))</span>
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@gc.Amount</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.RedeemedRewardPoints > 0)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="RedeemedRewardPoints" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@($"{Model.RedeemedRewardPoints} {T("Admin.Orders.Fields.RedeemedRewardPoints.Points")} {Model.RedeemedRewardPointsAmount}")</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderTotal" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Html.Raw(Model.OrderTotal)</div>
|
|
</div>
|
|
</div>
|
|
@if (!string.IsNullOrEmpty(Model.RefundedAmount))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="RefundedAmount" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.RefundedAmount</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.UsedDiscounts.Count > 0)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="UsedDiscounts" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
@for (var i = 0; i < Model.UsedDiscounts.Count; i++)
|
|
{
|
|
var discount = Model.UsedDiscounts[i];
|
|
<a asp-controller="Discount" asp-action="Edit" asp-route-id="@discount.DiscountId">@discount.DiscountName</a>
|
|
if (i != Model.UsedDiscounts.Count - 1)
|
|
{
|
|
<text>,</text>
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="Profit" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Html.Raw(Model.Profit)</div>
|
|
</div>
|
|
</div>
|
|
<div id="trEditOrderTotals">
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderSubtotalInclTaxValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="float-left margin-r-10">
|
|
@T("Admin.Orders.Fields.Edit.InclTax")
|
|
<nop-editor asp-for="OrderSubtotalInclTaxValue" />
|
|
</div>
|
|
<div class="float-left">
|
|
@T("Admin.Orders.Fields.Edit.ExclTax")
|
|
<nop-editor asp-for="OrderSubtotalExclTaxValue" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderSubTotalDiscountInclTaxValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="float-left margin-r-10">
|
|
@T("Admin.Orders.Fields.Edit.InclTax")
|
|
<nop-editor asp-for="OrderSubTotalDiscountInclTaxValue" />
|
|
</div>
|
|
<div class="float-left">
|
|
@T("Admin.Orders.Fields.Edit.ExclTax")
|
|
<nop-editor asp-for="OrderSubTotalDiscountExclTaxValue" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderShippingInclTaxValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="float-left margin-r-10">
|
|
@T("Admin.Orders.Fields.Edit.InclTax")
|
|
<nop-editor asp-for="OrderShippingInclTaxValue" />
|
|
</div>
|
|
<div class="float-left">
|
|
@T("Admin.Orders.Fields.Edit.ExclTax")
|
|
<nop-editor asp-for="OrderShippingExclTaxValue" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="PaymentMethodAdditionalFeeInclTaxValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="float-left margin-r-10">
|
|
@T("Admin.Orders.Fields.Edit.InclTax")
|
|
<nop-editor asp-for="PaymentMethodAdditionalFeeInclTaxValue" />
|
|
</div>
|
|
<div class="float-left">
|
|
@T("Admin.Orders.Fields.Edit.ExclTax")
|
|
<nop-editor asp-for="PaymentMethodAdditionalFeeExclTaxValue" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="TaxRatesValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<nop-editor asp-for="TaxRatesValue" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="TaxValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<nop-editor asp-for="TaxValue" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderTotalDiscountValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<nop-editor asp-for="OrderTotalDiscountValue" />
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderTotalValue" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<nop-editor asp-for="OrderTotalValue" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-md-9 offset-md-3">
|
|
<button type="submit" name="btnEditOrderTotals" onclick="toggleOrderTotals(true);return false;" id="btnEditOrderTotals" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.EditOrderTotals")
|
|
</button>
|
|
|
|
<button type="submit" name="btnSaveOrderTotals" id="btnSaveOrderTotals" class="btn btn-primary margin-r-5">
|
|
@T("Admin.Orders.Fields.SaveOrderTotals")
|
|
</button>
|
|
<nop-action-confirmation asp-button-id="btnSaveOrderTotals" />
|
|
|
|
<button type="submit" name="btnCancelOrderTotals" onclick="toggleOrderTotals(false);return false;" id="btnCancelOrderTotals" class="btn btn-secondary">
|
|
@T("Admin.Common.Cancel")
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardType" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardType">
|
|
<div class="form-text-row">@Model.CardType</div>
|
|
</div>
|
|
<nop-editor asp-for="CardType" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardName" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardName">
|
|
<div class="form-text-row">@Model.CardName</div>
|
|
</div>
|
|
<nop-editor asp-for="CardName" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber || !string.IsNullOrEmpty(Model.CardNumber))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardNumber" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardNumber">
|
|
<div class="form-text-row">@Model.CardNumber</div>
|
|
</div>
|
|
<nop-editor asp-for="CardNumber" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardCvv2" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardCvv2">
|
|
<div class="form-text-row">@Model.CardCvv2</div>
|
|
</div>
|
|
<nop-editor asp-for="CardCvv2" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardExpirationMonth" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardExpirationMonth">
|
|
<div class="form-text-row">@Model.CardExpirationMonth</div>
|
|
</div>
|
|
<nop-editor asp-for="CardExpirationMonth" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CardExpirationYear" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div id="lblCardExpirationYear">
|
|
<div class="form-text-row">@Model.CardExpirationYear</div>
|
|
</div>
|
|
<nop-editor asp-for="CardExpirationYear" />
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AllowStoringCreditCardNumber)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-9 offset-md-3">
|
|
<button type="submit" name="btnEditCC" onclick="toggleCC(true);return false;" id="btnEditCC" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.EditCC")
|
|
</button>
|
|
|
|
<button type="submit" name="btnSaveCC" id="btnSaveCC" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.SaveCC")
|
|
</button>
|
|
<nop-action-confirmation asp-button-id="btnSaveCC" />
|
|
|
|
<button type="submit" name="btnCancelCC" onclick="toggleCC(false);return false;" id="btnCancelCC" class="btn btn-success">
|
|
@T("Admin.Common.Cancel")
|
|
</button>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.AuthorizationTransactionId))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="AuthorizationTransactionId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.AuthorizationTransactionId</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.CaptureTransactionId))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CaptureTransactionId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.CaptureTransactionId</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.SubscriptionTransactionId))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="SubscriptionTransactionId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.SubscriptionTransactionId</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="PaymentMethod" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.PaymentMethod</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="PaymentStatus" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.PaymentStatus</div>
|
|
</div>
|
|
</div>
|
|
@if (Model.CanCapture || Model.CanMarkOrderAsPaid || Model.CanRefund || Model.CanRefundOffline ||
|
|
Model.CanPartiallyRefund || Model.CanPartiallyRefundOffline || Model.CanVoid || Model.CanVoidOffline)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-9 offset-md-3">
|
|
@if (!Model.IsLoggedInAsVendor)
|
|
{
|
|
if (Model.CanCapture)
|
|
{
|
|
<button type="submit" name="captureorder" id="captureorder" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.Capture")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="captureorder" />
|
|
}
|
|
if (Model.CanMarkOrderAsPaid)
|
|
{
|
|
<button type="submit" name="markorderaspaid" id="markorderaspaid" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.MarkAsPaid")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="markorderaspaid" />
|
|
}
|
|
if (Model.CanRefund)
|
|
{
|
|
<button type="submit" name="refundorder" id="refundorder" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.Refund")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="refundorder" />
|
|
}
|
|
if (Model.CanRefundOffline)
|
|
{
|
|
<button type="submit" name="refundorderoffline" id="refundorderoffline" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.RefundOffline")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="refundorderoffline" />
|
|
}
|
|
if (Model.CanPartiallyRefund)
|
|
{
|
|
<button type="submit" id="partiallyrefundorder" name="partiallyrefundorder" onclick="javascript:OpenWindow('@(Url.Action("PartiallyRefundOrderPopup", "Order", new {id = Model.Id, online = true, btnId = "btnRefreshPage", formId = "order-form"}))', 500, 300, true); return false;" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.PartialRefund")
|
|
</button>
|
|
<text> </text>
|
|
}
|
|
if (Model.CanPartiallyRefundOffline)
|
|
{
|
|
<button type="submit" id="partiallyrefundorderoffline" name="partiallyrefundorderoffline" onclick="javascript:OpenWindow('@(Url.Action("PartiallyRefundOrderPopup", "Order", new {id = Model.Id, online = false, btnId = "btnRefreshPage", formId = "order-form"}))', 500, 300, true); return false;" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.PartialRefundOffline")
|
|
</button>
|
|
<text> </text>
|
|
}
|
|
if (Model.CanVoid)
|
|
{
|
|
<button type="submit" name="voidorder" id="voidorder" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.Void")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="voidorder" />
|
|
}
|
|
if (Model.CanVoidOffline)
|
|
{
|
|
<button type="submit" name="voidorderoffline" id="voidorderoffline" class="btn btn-primary">
|
|
@T("Admin.Orders.Fields.VoidOffline")
|
|
</button>
|
|
<text> </text>
|
|
<nop-action-confirmation asp-button-id="voidorderoffline" />
|
|
}
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.CustomValues != null && Model.CustomValues.Count > 0)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CustomValues" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">
|
|
@foreach (var item in Model.CustomValues)
|
|
{
|
|
<ul class="common-list">
|
|
<li>
|
|
@item.Key: @(item.Value != null ? item.Value.ToString() : "")
|
|
</li>
|
|
</ul>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="card card-default">
|
|
<div class="card-body">
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="StoreName" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.StoreName</div>
|
|
</div>
|
|
</div>
|
|
@if (!Model.IsLoggedInAsVendor)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="OrderGuid" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.OrderGuid</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="CustomerIp" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.CustomerIp</div>
|
|
</div>
|
|
</div>
|
|
@if (Model.RecurringPaymentId > 0)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="RecurringPaymentId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<a asp-controller="RecurringPayment" asp-action="Edit" asp-route-id="@Model.RecurringPaymentId">@T("Admin.Common.View")</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (!string.IsNullOrEmpty(Model.VatNumber))
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="VatNumber" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<div class="form-text-row">@Model.VatNumber</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
@if (Model.AffiliateId > 0)
|
|
{
|
|
<div class="form-group row">
|
|
<div class="col-md-3">
|
|
<nop-label asp-for="AffiliateId" />
|
|
</div>
|
|
<div class="col-md-9">
|
|
<a asp-controller="Affiliate" asp-action="Edit" asp-route-id="@Model.AffiliateId">@Model.AffiliateName - @T("Admin.Common.View")</a>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|