This commit is contained in:
杰 朱
2021-12-02 09:40:21 +08:00
parent edc60a242d
commit e6ab4d5c0c

View File

@@ -435,12 +435,13 @@ namespace NX.ERP.U8
strSQL = $@" SELECT (CASE WHEN convert(decimal(36,3),isnull(inum,0))=0 then 0 else iMoney / iNum END) AS iPrice
from IA_Summary WHERE cWhCode='{whCode}' AND cInvCode='{cInvCode}' AND iMonth={DateTime.Today.Month - 1} and iyear ={DateTime.Today.Year}";
_cost = conn.ExecuteScalar<double>(strSQL, null, null, 10, System.Data.CommandType.Text);
}
switch (cType)
{
case "按计价方式取单价":
iInvCost = _cost;
iInvCost = Math.Max(0,_cost);
break;
case "计划单价":