|
|
@@ -4008,12 +4008,6 @@ class BiAuditPowiazania {
|
|
|
'p5:leadingTimeDate-To' => $to,
|
|
|
]];
|
|
|
}, explode(';', $relDateRange));
|
|
|
- // TODO
|
|
|
-// <relation_dateRangeElements>
|
|
|
-// <relation_dateRange from="2010-01-01" to="2011-01-01"/>
|
|
|
-// <relation_dateRange from="2012-01-01" to="2013-01-01"/>
|
|
|
-// <relation_dateRange from="2014-01-01" [?to=""?]/>
|
|
|
-// </relation_dateRangeElements>
|
|
|
}
|
|
|
$item_results[$xmlObject][] = $item_result;
|
|
|
|
|
|
@@ -4101,7 +4095,7 @@ class BiAuditPowiazania {
|
|
|
} else $relDateRange = '';
|
|
|
$query = "select REMOTE_TABLE, REMOTE_ID from BI_audit_ALL where ID = '{$ID}'";
|
|
|
$object = DB::getPDO()->fetchFirst($query);
|
|
|
- $idPowiazaniaRowObject = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object', ['relation_from' => $this->relationName($rel), 'dateRange' => $dateRange]);
|
|
|
+ $idPowiazaniaRowObject = DB::getPDO()->insert('BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object', ['relation_from' => $this->relationName($rel), 'dateRange' => $relDateRange]);
|
|
|
DB::getPDO()->insert($refPowiazaniaRowToPowiazaniaRowObject, ['PRIMARY_KEY' => $IdPowiazaniaRow, 'REMOTE_PRIMARY_KEY' => $idPowiazaniaRowObject]);
|
|
|
$ref = BiAuditRefTables::getRefTable('BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object', $object['REMOTE_TABLE'], true);
|
|
|
DB::getPDO()->insert($ref, ['PRIMARY_KEY' => $idPowiazaniaRowObject, 'REMOTE_PRIMARY_KEY' => $object['REMOTE_ID']]);
|