|
|
@@ -1412,7 +1412,7 @@ class Windykacja_View {
|
|
|
}
|
|
|
|
|
|
$uslugi_l2 = Windykacja_StatsModel::get_uslugi_from_l2($user);
|
|
|
- $umowy_l2 = Windykacja_StatsModel::get_umowy_from_l2($user);
|
|
|
+ $umowy_l2 = Windykacja_StatsModel::getClientUmowy($user->ID);
|
|
|
|
|
|
$uslugi_l2_nieprzypisane = array();
|
|
|
foreach ($uslugi_l2 as $k_id => $h) {
|
|
|
@@ -1659,7 +1659,7 @@ class Windykacja_View {
|
|
|
$billing_docs = Windykacja_StatsModel::getBillDocsByDate($user->ID);
|
|
|
|
|
|
// add events
|
|
|
- $umowy_l2 = Windykacja_StatsModel::get_umowy_from_l2($user);
|
|
|
+ $umowy_l2 = Windykacja_StatsModel::getClientUmowy($user->ID);
|
|
|
//echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;">billing_docs ';print_r($billing_docs);echo'</pre>';
|
|
|
//echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;">billing_docs ';print_r(reset($billing_docs));echo'</pre>';
|
|
|
//echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;">umowy_l2 ';print_r($umowy_l2);echo'</pre>';
|
|
|
@@ -1673,7 +1673,7 @@ class Windykacja_View {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $user_hist_events = Windykacja_StatsHelper::get_user_hist_status_events($user);
|
|
|
+ $user_hist_events = Windykacja_StatsHelper::getUserHistStatusEvents($user->ID);
|
|
|
if (!empty($user_hist_events)) {
|
|
|
foreach ($user_hist_events as $v_hist) {
|
|
|
$bill_doc = (array)$v_hist;
|
|
|
@@ -1681,7 +1681,7 @@ class Windykacja_View {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $user_hist_events = Windykacja_StatsHelper::get_user_hist_phone_events($user);
|
|
|
+ $user_hist_events = Windykacja_StatsHelper::getUserHistPhoneEvents($user->ID);
|
|
|
if (!empty($user_hist_events)) {
|
|
|
foreach ($user_hist_events as $v_hist) {
|
|
|
$bill_doc = (array)$v_hist;
|
|
|
@@ -1689,7 +1689,7 @@ class Windykacja_View {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $user_hist_events = Windykacja_StatsHelper::get_user_bad_address_events($user);
|
|
|
+ $user_hist_events = Windykacja_StatsHelper::getUserBadAddressEvents($user->ID);
|
|
|
if (!empty($user_hist_events)) {
|
|
|
foreach ($user_hist_events as $v_hist) {
|
|
|
$bill_doc = (array)$v_hist;
|
|
|
@@ -2792,7 +2792,7 @@ class Windykacja_View {
|
|
|
* @params $id_koresp
|
|
|
*/
|
|
|
public static function task_bok_rozwiazanie_umowy_print($user, $id_koresp) {
|
|
|
- $user_hist_events = Windykacja_StatsHelper::get_user_hist_status_events($user);
|
|
|
+ $user_hist_events = Windykacja_StatsHelper::getUserHistStatusEvents($user->ID);
|
|
|
if (empty($user_hist_events)) {
|
|
|
echo '<p style="color:red">' . "Brak danych HIST" . '</p>';
|
|
|
return;
|
|
|
@@ -2927,7 +2927,7 @@ class Windykacja_View {
|
|
|
}
|
|
|
".'</script>';
|
|
|
|
|
|
- $umowy_l2 = Windykacja_StatsModel::get_umowy_from_l2($user);
|
|
|
+ $umowy_l2 = Windykacja_StatsModel::getClientUmowy($user->ID);
|
|
|
if (empty($umowy_l2)) {
|
|
|
echo '<p style="color:red">' . "Brak aktualnych umów z klientem" . '</p>';
|
|
|
return;
|