|
@@ -366,7 +366,7 @@ public function fetchKontrahenciAjax($args) {
|
|
|
$backRefFilter['__backRef'] = [
|
|
|
'namespace' => 'default_db/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_KONTRAHENCIS_GRUPY', // TODO: nowy rejetr na grupy / filty KONTRAHENCI
|
|
|
'primaryKey' => $idGroup,
|
|
|
- 'fieldName' => 'default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_KONTRAHENCIS',
|
|
|
+ 'fieldName' => 'default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_KONTRAHENCI',
|
|
|
];
|
|
|
// TODO: Storage dodać obiekt xsd default_db/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_KONTRAHENCI_GRUPY:
|
|
|
// - ID
|
|
@@ -685,7 +685,7 @@ public function fetchGroupKontrahenciAjax() {
|
|
|
$backRefFilter['__backRef'] = [
|
|
|
'namespace' => 'default_db/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group', // TODO: nowy rejetr na grupy / filty pracowników
|
|
|
'primaryKey' => $idGroup,
|
|
|
- 'fieldName' => 'default_db__x3A__BI_audit_ENERGA_PRACOWNICY_group:BI_audit_ENERGA_PRACOWNICY_group',
|
|
|
+ 'fieldName' => 'default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY',
|
|
|
];
|
|
|
// TODO: Storage dodać obiekt xsd default_db/BI_audit_ENERGA_PRACOWNICY_group/BI_audit_ENERGA_PRACOWNICY_group:
|
|
|
// - ID
|
|
@@ -878,8 +878,8 @@ public function fetchGroupKontrahenciAjax() {
|
|
|
'f_ID_USER' => "=" . User::getID(), // szukamy dokładnie tej wartości - mysql: where ID_USER = "1"
|
|
|
'f_A_STATUS' => "!DELETED", // `A_STATUS` != 'DELETED'
|
|
|
]);
|
|
|
- if (empty($groups)) throw new Exception("Grupa nie istnieje");
|
|
|
$items = $query->getItems();
|
|
|
+ if (empty($items)) throw new AlertWarningException("Grupy nie istnieją");
|
|
|
|
|
|
$arrayGroupPracownicy = array();
|
|
|
foreach ($items as $item) {
|