@model ParcelWeb.Core.Dto.CreateOrEditGltrhDto @{ ViewBag.Title = "Edit Voucher"; }
@using (Html.BeginForm("Edit", "GLTRHs", FormMethod.Post, new { @Id = "frmJournalVoucher", @class = "form form-horizontal" }))//data-resetUrl { @Html.AntiForgeryToken() @Html.HiddenFor(model => model.Id)

Edit voucher @Model.VoucherNo

@Html.LabelFor(model => model.DocDate, "Doc Date", htmlAttributes: new { @class = "control-label col-md-12" })
@Html.EditorFor(model => model.DocDate, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.DocDate, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.BookID, "GL Book", htmlAttributes: new { @class = "control-label col-md-12" })
@Html.DropDownListFor(model => model.BookID, null, htmlAttributes: new { @class = "form-control", @readonly = "readonly" }) @Html.ValidationMessageFor(model => model.BookID, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.VoucherNo, "Voucher No", htmlAttributes: new { @class = "control-label col-md-12" })
@Html.EditorFor(model => model.VoucherNo, new { htmlAttributes = new { @class = "form-control", @readonly = "readonly", @Placeholder = "XXXXX-X" } }) @Html.ValidationMessageFor(model => model.VoucherNo, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.ReferenceVNO, "Ref No", htmlAttributes: new { @class = "control-label col-md-12" })
@Html.EditorFor(model => model.ReferenceVNO, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.ReferenceVNO, "", new { @class = "text-danger" })

@Html.LabelFor(model => model.Description, "Description", htmlAttributes: new { @class = "control-label col-md-12" })
@Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })

Account Title Sub title Naration Debit Credit Action

Account @(ViewBag.TType == "Income" ? "(Income Account)" : "(Expense Account)") Subledger Narration Debit Amount Credit Amount
@Html.DropDownList("InputAccountId", ViewBag.AccountID as SelectList, "--Select Account", htmlAttributes: new { @class = "form-control" }) @Html.Editor("InputNarration", new { htmlAttributes = new { @class = "form-control", placeholder = "" } }) @Html.Editor("InputAmount", new { htmlAttributes = new { @class = "form-control AmountTxt", @type = "number", placeholder = "0.00", min = "0" } }) @Html.Editor("InputCreditAmount", new { htmlAttributes = new { @class = "form-control AmountTxt", @type = "number", placeholder = "0.00", min = "0" } })
@* *@
Total Debit
@Model.TotalDr

Total Credit
@Model.TotalCr

TOTAL

@(Model.TotalDr - Model.TotalCr)


@Html.EditorFor(model => model.TotalCr, new { htmlAttributes = new { @class = "form-control", placeholder = "" } }) @Html.EditorFor(model => model.TotalDr, new { htmlAttributes = new { @class = "form-control", placeholder = "" } })
} @section Scripts { @Scripts.Render("~/bundles/jqueryval") @* *@ }