파트리스트에서 구매 요청 수량이 보이지 않는 현상 수정

This commit is contained in:
chi
2023-08-28 08:55:12 +09:00
parent 80613d1095
commit aff898194b
7 changed files with 149 additions and 161 deletions

View File

@@ -143,12 +143,12 @@ namespace FCOMMON
{
var sql =
" select " +
" isnull(sum(case when[state] = 'PR' then 0 when[state] = 'PO' then 0 when[state] = 'Received' then 0 when[state] = 'Cancled' then 0 else pumqty end),0) as Request," +
" isnull(sum(case when[state] = 'PR' then 0 when[state] = 'PO' then 0 when[state] = 'Received' then 0 when[state] = 'Cancled' then 0 else pumqtyReq end),0) as Request," +
" 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(case when[state] = 'Cancled' then pumqty else 0 end),0) as Cancled," +
" isnull(sum(pumqty),0) as Total_Request," +
" isnull(sum(case when[state] = 'Cancled' then pumqtyReq else 0 end),0) as Cancled," +
" isnull(sum(isnull(pumqty,pumqtyreq)),0) as Total_Request," +
" isnull(sum(inqty),0) as Total_Buy," +
" isnull(sum(pumqty) - sum(inqty),0) as Total_Remain" +
" from EETGW_PurchaseCR" +