|
|
@@ -63,7 +63,7 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
$acl = ACL::getAclByNamespace("default_db/ZALICZKA/Zaliczka");
|
|
|
$schema = $acl->getSimpleSchemaTree();
|
|
|
if (!empty($args['updates'])) {
|
|
|
- throw new Exception("TODO: updates! F." . __FUNCTION__ . " L." . __LINE__);
|
|
|
+ $acl->updateItem($args['updates']);
|
|
|
}
|
|
|
|
|
|
$zaliczkaData = $acl->getItem($args['idZaliczka'], [
|
|
|
@@ -169,15 +169,25 @@ class Route_UrlAction_UserProNetMediaZaliczka extends RouteBase {// TODO: UrlAct
|
|
|
$editLink = Request::getPathUri() . "index.php?_route=UrlAction_UserProNetMediaZaliczka&idUser={$idUser}&idZaliczka={$row['ID']}";
|
|
|
$editLabel = ('ZaliczkaAktywna' == $instance) ? "Rozlicz / Podgląd" : "Podgląd";
|
|
|
$histLink = Request::getPathUri() . "index.php?_route=UrlAction_UserProNetMediaZaliczka&_task=hist&idUser={$idUser}&idZaliczka={$row['ID']}";
|
|
|
+ if (V::get('DBG', '', $_GET)) {
|
|
|
+ return [
|
|
|
+ 'Nr' => $row['ID'],
|
|
|
+ 'Status' => $row['A_STATUS'],
|
|
|
+ 'INSTANCE' => $instance,
|
|
|
+ 'L_APPOITMENT_USER' => $row['L_APPOITMENT_USER'],
|
|
|
+ 'KWOTA' => $row['KWOTA'],
|
|
|
+ 'NIEROZLICZONA_KWOTA' => $row['NIEROZLICZONA_KWOTA'],
|
|
|
+ '#' => '<a href="' . $editLink . '">' . $editLabel . '</a>',
|
|
|
+ 'DBG' => '<a href="' . $histLink . '">' . "DBG HIST" . '</a>'
|
|
|
+ ];
|
|
|
+ }
|
|
|
return [
|
|
|
'Nr' => $row['ID'],
|
|
|
- 'Status' => $row['A_STATUS'],
|
|
|
- 'INSTANCE' => $instance,
|
|
|
- 'L_APPOITMENT_USER' => $row['L_APPOITMENT_USER'],
|
|
|
- 'KWOTA' => $row['KWOTA'],
|
|
|
- 'NIEROZLICZONA_KWOTA' => $row['NIEROZLICZONA_KWOTA'],
|
|
|
+ 'Typ' => $instance,
|
|
|
+ 'Pracownik' => $row['L_APPOITMENT_USER'],
|
|
|
+ 'Kwota' => $row['KWOTA'],
|
|
|
+ 'Nierozliczona kwota' => $row['NIEROZLICZONA_KWOTA'],
|
|
|
'#' => '<a href="' . $editLink . '">' . $editLabel . '</a>',
|
|
|
- 'DBG' => '<a href="' . $histLink . '">' . "DBG HIST" . '</a>'
|
|
|
];
|
|
|
},
|
|
|
$acl->getItems([
|