mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【优化】根据用户反映,优化规格,库存可以设置为0,市场价格可设置为0,成本价格可设置为0,由用户自行控制。
This commit is contained in:
@@ -78,7 +78,7 @@ namespace CoreCms.Net.Repository
|
||||
jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
return jm;
|
||||
}
|
||||
else if (item.stock <= 0)
|
||||
else if (item.stock < 0)
|
||||
{
|
||||
jm.msg = "库存不能为0!";
|
||||
return jm;
|
||||
@@ -88,14 +88,14 @@ namespace CoreCms.Net.Repository
|
||||
jm.msg = "货品销售价格不能为0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.mktprice <= 0 || item.mktprice < item.price)
|
||||
else if (item.mktprice < 0)
|
||||
{
|
||||
jm.msg = "货品市场价格不能为0并且不能小于销售价格!";
|
||||
jm.msg = "市场价格不能小于0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.costprice <= 0 || item.costprice > item.price)
|
||||
else if (item.costprice < 0)
|
||||
{
|
||||
jm.msg = "成本价格不能为0并且不能大于销售价格!";
|
||||
jm.msg = "成本价格不能小于0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.levelOne < 0 || item.levelTwo < 0 || item.levelThree < 0)
|
||||
@@ -328,7 +328,7 @@ namespace CoreCms.Net.Repository
|
||||
jm.msg = "请键入货品货号!货号为SN英文开头";
|
||||
return jm;
|
||||
}
|
||||
else if (item.stock <= 0)
|
||||
else if (item.stock < 0)
|
||||
{
|
||||
jm.msg = "库存不能为0!";
|
||||
return jm;
|
||||
@@ -338,14 +338,14 @@ namespace CoreCms.Net.Repository
|
||||
jm.msg = "货品销售价格不能为0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.mktprice <= 0 || item.mktprice < item.price)
|
||||
else if (item.mktprice < 0)
|
||||
{
|
||||
jm.msg = "货品市场价格不能为0并且不能小于销售价格!";
|
||||
jm.msg = "市场价格不能小于0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.costprice <= 0 || item.costprice > item.price)
|
||||
else if (item.costprice < 0)
|
||||
{
|
||||
jm.msg = "成本价格不能为0并且不能大于销售价格!";
|
||||
jm.msg = "成本价格不能小于0!";
|
||||
return jm;
|
||||
}
|
||||
else if (item.levelOne < 0 || item.levelTwo < 0 || item.levelThree < 0)
|
||||
|
||||
Reference in New Issue
Block a user