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()); + } + } } }