修订
This commit is contained in:
@@ -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
|
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}";
|
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);
|
_cost = conn.ExecuteScalar<double>(strSQL, null, null, 10, System.Data.CommandType.Text);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (cType)
|
switch (cType)
|
||||||
{
|
{
|
||||||
case "按计价方式取单价":
|
case "按计价方式取单价":
|
||||||
iInvCost = _cost;
|
iInvCost = Math.Max(0,_cost);
|
||||||
break;
|
break;
|
||||||
case "计划单价":
|
case "计划单价":
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user