From 412456b3666204d17bfce67751943890542a1d8e Mon Sep 17 00:00:00 2001 From: xiongshuai <873144595@qq.com> Date: Tue, 16 Dec 2025 09:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E5=94=AE=E5=A2=9E=E5=80=BC=E7=A8=8E?= =?UTF-8?q?=E6=99=AE=E9=80=9A=E5=8F=91=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs b/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs index 1a4822d..dccbfbd 100644 --- a/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs +++ b/Gatedge.K3.Pilot.PlugIn/BOSPlugIn/AR_SalesVATInvoice/ServicePlugIn/AfterSave.cs @@ -31,7 +31,10 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.AR_SalesVATInvoice.ServicePlugIn public override void EndOperationTransaction(EndOperationTransactionArgs e) { base.EndOperationTransaction(e); - foreach (var dataEntity in e.DataEntitys) + try + { + + foreach (var dataEntity in e.DataEntitys) { var billObj = dataEntity as DynamicObject; if (billObj == null) @@ -103,9 +106,15 @@ SET FIDD = {entryId}, WHERE FENTRYID = {entryId}"; Logger.Error($"销售增值税专用发票: {updateSql}"); DBServiceHelper.Execute(this.Context, updateSql); + } } } + catch (Exception ex) + { + Logger.Error("销售增值税专用发票出错了:", ex.Message, new Exception()); + } + } } }