From 8d51197e727eb9ba22dabfaa87286c068dd79c26 Mon Sep 17 00:00:00 2001 From: gongpei Date: Wed, 15 Oct 2025 14:10:23 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YLErpWeb/Controllers/entryexitController.cs | 4 ++++ YLErpWeb/Views/entryexit/entryexitView.cshtml | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/YLErpWeb/Controllers/entryexitController.cs b/YLErpWeb/Controllers/entryexitController.cs index 3ff952e6..5c48b481 100644 --- a/YLErpWeb/Controllers/entryexitController.cs +++ b/YLErpWeb/Controllers/entryexitController.cs @@ -97,6 +97,10 @@ namespace YLErp.Web.Controllers { addWhenNotContains(directionList, "其他支出"); } + if (req.DirectionTypeList.Contains("划转")) + { + addWhenNotContains(directionList, "划转"); + } if (req.DirectionTypeList.Contains("权利金支出")) { diff --git a/YLErpWeb/Views/entryexit/entryexitView.cshtml b/YLErpWeb/Views/entryexit/entryexitView.cshtml index 59492f60..cc16acaf 100644 --- a/YLErpWeb/Views/entryexit/entryexitView.cshtml +++ b/YLErpWeb/Views/entryexit/entryexitView.cshtml @@ -67,8 +67,11 @@ @Html.MyDisplayFor(m => m.ClientName) @Html.MyDisplayFor(m => m.DirectionType) @Html.MyDisplayFor(m => m.cash_type) - @Html.MyDisplayFor(m => m.TransferOutAccount) - @Html.MyDisplayFor(m => m.TransferInAccount) + @if (Model.Direction != "入金") + { + @Html.MyDisplayFor(m => m.TransferOutAccount) + @Html.MyDisplayFor(m => m.TransferInAccount) + } @Html.MyDisplayFor(m => m.Money, (((Model.Direction == "出金" ? (-1) : 1) * Model.Money) ?? 0).ToString("N")) @Html.MyDisplayFor(m => m.CurrencyCode) @Html.MyDisplayFor(m => m.HappenDate, Utilities.ShowValidDatetime(Model.HappenDate, "yyyy-MM-dd HH:mm:ss"))