This commit is contained in:
chi
2024-11-13 17:21:49 +09:00
parent a1cb35070e
commit e6f2ce845f
12 changed files with 324 additions and 264 deletions

View File

@@ -178,10 +178,10 @@ namespace FCOMMON
" isnull(sum(case when[state] = 'PR' then pumqty else 0 end),0) as PR," +
" isnull(sum(case when[state] = 'PO' then pumqty else 0 end),0) as PO," +
" isnull(sum(case when[state] = 'Received' then inqty else 0 end),0) as Received," +
" isnull(sum(isnull(pumqty,pumqtyreq)),0) as Total_Request," +
" isnull(sum(pumqtyreq),0) as Total_Request," +
" isnull(sum(inqty),0) as Total_Buy," +
" isnull(sum(isnull(pumqty,pumqtyreq)) - sum(inqty),0) as Total_Remain" +
" from EETGW_PurchaseCR" +
" isnull(sum(pumqtyreq) - sum(inqty),0) as Total_Remain" +
" from EETGW_PurchaseCR with(nolock) " +
" where gcode = @gcode and state <> 'Cancled'" +
" and projectidx = @project" +
(sid == null ? string.Empty : " and sid = @sid") +
@@ -192,10 +192,10 @@ namespace FCOMMON
" isnull(sum(case when[state] = 'PR' then pumqty else 0 end),0) as PR," +
" isnull(sum(case when[state] = 'PO' then pumqty else 0 end),0) as PO," +
" isnull(sum(case when[state] = 'Received' then inqty else 0 end),0) as Received," +
" isnull(sum(isnull(pumqty,pumqtyreq)),0) as Total_Request," +
" isnull(sum(pumqtyreq),0) as Total_Request," +
" isnull(sum(inqty),0) as Total_Buy," +
" isnull(sum(isnull(pumqty,pumqtyreq)) - sum(inqty),0) as Total_Remain" +
" from Purchase" +
" isnull(sum(pumqtyreq) - sum(inqty),0) as Total_Remain" +
" from Purchase with(nolock) " +
" where gcode = @gcode and state <> 'Cancled'" +
" and projectidx = @project" +
(sid == null ? string.Empty : " and sid = @sid") +