|
|
@@ -545,6 +545,9 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
)
|
|
|
)
|
|
|
) as status
|
|
|
+ , (select v.saldo from ZALICZKA_USER_SALDO_VIEW v where v.ID = u.ID) as SALDO
|
|
|
+ , (select count(1) as cnt from ZALICZKA as zal where zal.L_APPOITMENT_USER = u.ADM_ACCOUNT and zal.DOKUMENTY = 'TAK') as DOKUMENTY_TAK
|
|
|
+ , (select count(1) as cnt from ZALICZKA as zal where zal.L_APPOITMENT_USER = u.ADM_ACCOUNT and zal.DOKUMENTY = 'NIE') as DOKUMENTY_NIE
|
|
|
from ZALICZKA_WNIOSEK t
|
|
|
join ADMIN_USERS u on(u.ADM_ACCOUNT = t.L_APPOITMENT_USER)
|
|
|
-- where t.A_STATUS not in ('DELETED')
|