mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 21:03:26 +08:00
【优化】取消sku货品货号必须包含【SN】的限制。
【调整】调整Sku切割方式,将小写逗号【.】,替换为【&&】;同时更新表【CoreCmsGoods】内数据,请大家执行sql脚本更新存储的sku数据。
This commit is contained in:
@@ -74,12 +74,13 @@ namespace CoreCms.Net.Repository
|
||||
//检查数据
|
||||
foreach (var item in entity.products)
|
||||
{
|
||||
if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
|
||||
{
|
||||
jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
return jm;
|
||||
}
|
||||
else if (item.stock < 0)
|
||||
//if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
|
||||
//{
|
||||
// jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
// return jm;
|
||||
//}
|
||||
//else
|
||||
if (item.stock < 0)
|
||||
{
|
||||
jm.msg = "库存不能为0!";
|
||||
return jm;
|
||||
@@ -327,12 +328,13 @@ namespace CoreCms.Net.Repository
|
||||
//检查数据
|
||||
foreach (var item in entity.products)
|
||||
{
|
||||
if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
|
||||
{
|
||||
jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
return jm;
|
||||
}
|
||||
else if (item.stock < 0)
|
||||
//if (!item.sn.Contains("sn") && !item.sn.Contains("SN"))
|
||||
//{
|
||||
// jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
// return jm;
|
||||
//}
|
||||
//else
|
||||
if (item.stock < 0)
|
||||
{
|
||||
jm.msg = "库存不能为0!";
|
||||
return jm;
|
||||
|
||||
Reference in New Issue
Block a user