Ver Fonte

WindykacjaPanel: add adres koresp.

Piotr Labudda há 11 anos atrás
pai
commit
0b1baa9991
1 ficheiros alterados com 25 adições e 0 exclusões
  1. 25 0
      SE/superedit-USERS2_WINDYKACJA_STATUS.php

+ 25 - 0
SE/superedit-USERS2_WINDYKACJA_STATUS.php

@@ -637,6 +637,14 @@ class WindykacjaView {
 				echo "ul. ".$user->P_ADDRESS_STREET." ".$user->P_ADDRESS_HOUSE."/".$user->P_ADDRESS_HOME.", ".$user->P_ADDRESS_POST_CODE." ".$user->P_ADDRESS_CITY;
 			echo'</td>';
 		echo'</tr>';
+		?>
+		<?php if ($user->P_ADRESS_KORESP_1282) : ?>
+			<tr>
+				<th title="Adres do korespondencji">Adres koresp.</th>
+				<td><?php echo $user->P_ADRESS_KORESP_1282; ?></td>
+			</tr>
+		<?php endif; ?>
+		<?php
 		echo'<tr>';
 			echo'<th>' . "Pesel:" . '</th>';
 			echo'<td>';
@@ -1374,6 +1382,7 @@ function frm_kontakt_add_id_koresp(frm){
 		$cols['BLOKADA'] = array('label'=>'B', 'title'=>'BLOKADA: Informacja o blokadzie');
 		$cols['P_NAME'] = array('label'=>'imie i nazwisko', 'title'=>'P_NAME');
 		$cols['P_ADDRESS_STREET'] = array('label'=>'adres', 'title'=>'P_ADDRESS_STREET');
+		$cols['P_ADDRESS_Koresp'] = array('label'=>'adres koresp.', 'title'=>'Adres do korespondencji');
 		$cols['P_PHONE'] = array('label'=>'nr telefonu', 'title'=>'P_PHONE');
 		$cols['user_mail_contact'] = array('label'=>'adres e-mail', 'title'=>'user_mail_contact');
 		$cols['A_STATUS'] = array('label'=>'status', 'title'=>'A_STATUS');
@@ -1456,6 +1465,15 @@ function frm_kontakt_add_id_koresp(frm){
 					$cell_out = "ul. " . $user->P_ADDRESS_STREET . " " . $user->P_ADDRESS_HOUSE . "/" . $user->P_ADDRESS_HOME . ", " . $user->P_ADDRESS_POST_CODE . " " . $user->P_ADDRESS_CITY;
 					echo '<i title="' . (($user->BAD_ADDRESS)? "błędny adres zameldowania: " : '') . $cell_out . '">' . ((strlen($cell_out) > 30)? mb_substr($cell_out, 0, 30, "UTF-8") . ' ...' : $cell_out) . '</i>';
 				echo'</td>';
+				?>
+				<?php if ($user->P_ADRESS_KORESP_1282) : ?>
+					<td title="Adres do korespondencji: <?php echo $user->P_ADRESS_KORESP_1282; ?>">
+						<?php echo $user->P_ADRESS_KORESP_1282; ?>
+					</td>
+				<?php else: ?>
+					<td></td>
+				<?php endif; ?>
+				<?php
 				echo '<td>' . $user->P_PHONE . '</td>';
 				echo '<td>' . $user->user_mail_contact . '</td>';
 				echo'<td>';
@@ -1571,6 +1589,7 @@ function frm_kontakt_add_id_koresp(frm){
 		$cols['BLOKADA'] = array('label'=>'B', 'title'=>'BLOKADA: Informacja o blokadzie');
 		$cols['P_NAME'] = array('label'=>'imie i nazwisko', 'title'=>'P_NAME');
 		$cols['P_ADDRESS_STREET'] = array('label'=>'adres', 'title'=>'P_ADDRESS_STREET');
+		$cols['P_ADDRESS_Koresp'] = array('label'=>'adres koresp.', 'title'=>'Adres do korespondencji');
 		$cols['P_PHONE'] = array('label'=>'nr telefonu', 'title'=>'P_PHONE');
 		$cols['user_mail_contact'] = array('label'=>'adres e-mail', 'title'=>'user_mail_contact');
 		$cols['P_PESEL'] = array('label'=>'pesel', 'title'=>'P_PESEL');
@@ -1606,6 +1625,11 @@ function frm_kontakt_add_id_koresp(frm){
 			$out_cols[] = '"' . (($user->STATUS == 9)? "Z" : "0") . '"';
 			$out_cols[] = '"' . $user->P_NAME.' '.$user->P_NAME_SECOND . '"';
 			$out_cols[] = '"' . "ul. {$user->P_ADDRESS_STREET} {$user->P_ADDRESS_HOUSE}/{$user->P_ADDRESS_HOME}, {$user->P_ADDRESS_POST_CODE} {$user->P_ADDRESS_CITY}" . '"';
+			if ($user->P_ADRESS_KORESP_1282) {
+				$out_cols[] = '"' . $user->P_ADRESS_KORESP_1282 . '"';
+			} else {
+				$out_cols[] = '""';
+			}
 			$out_cols[] = '"' . $user->P_PHONE . '"';
 			$out_cols[] = '"' . $user->user_mail_contact . '"';
 			$out_cols[] = '"' . $user->P_PESEL . '"';
@@ -4711,6 +4735,7 @@ class WindykacjaStatsModel {
 				, a.`P_OTHER_DOC`
 				, a.`user_mail_contact`
 				, a.`is_firma`
+				, a.`P_ADRESS_KORESP_1282`
 				, w.`ID` as WINDYKACJA_ID
 				, w.`ID_BILLING_USERS`
 				, w.`A_STATUS`