Browse Source

Zaliczka wniosek add saldo, dok tak i nie

Piotr Labudda 9 năm trước cách đây
mục cha
commit
9e45d7c285

+ 1 - 0
SE/schema/gui/core/default_db.zaliczka_wniosek_info_view.php

@@ -14,6 +14,7 @@ class Schema__Core__default_db__zaliczka_wniosek_info_view extends Schema_TableB
 				'Odrzucony' => '<div class="cell-A_STATUS-OFF_HARD" style="padding:0 6px; overflow:hidden">{0}</div>',
 			]
 		];
+		$this->_types['SALDO'] = 'p5:price';
 	}
 
   public function getPrimaryKeyField() {

+ 3 - 0
SE/se-lib/Route/UrlAction/UserProNetMediaZaliczka.php

@@ -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')