diff --git a/ICSSoft.ToERP/SQL/CreateVendorInventoryPrice.cs b/ICSSoft.ToERP/SQL/CreateVendorInventoryPrice.cs index 64aac3f..bd6f318 100644 --- a/ICSSoft.ToERP/SQL/CreateVendorInventoryPrice.cs +++ b/ICSSoft.ToERP/SQL/CreateVendorInventoryPrice.cs @@ -178,7 +178,7 @@ namespace ICSSoft.ERPWMS.SQL //将上个版本的失效日期改为当前生效日期的前一天 foreach (DataRow dr in dtNew.Rows) { - UpdateSQL += " Update {0}.dbo.Ven_Inv_Price Set dDisableDate ='{1}',dEnableDate ='{1}' Where Autoid ='{2}';"; + UpdateSQL += " Update {0}.dbo.Ven_Inv_Price Set dDisableDate ='{1}' Where Autoid ='{2}';"; UpdateSQL = string.Format(UpdateSQL, WorkPoint, Convert.ToDateTime(entity.list[0].dEnableDate).AddDays(-1), dr["Autoid"].ToString()); } }