Sfoglia il codice sorgente

Windykacja link to FVAT (closes #50)

Piotr Labudda 11 anni fa
parent
commit
e4fc7a6355
1 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 5 2
      SE/superedit-USERS2_WINDYKACJA_STATUS.php

+ 5 - 2
SE/superedit-USERS2_WINDYKACJA_STATUS.php

@@ -1719,8 +1719,11 @@ body{font-family:arial;}
 						// TODO: podglad faktury
 						//if ($h['type'] == 'FVAT') $out_tr['ID'] .= ' <a href="'."?MENU_INIT=USERS2_WINDYKACJA_STATUS&_user_id=".$user->ID."&task=view_faktura&id=".$h['ID'].'" target="_blank">'.'<img src="'."icon/search.png".'" alt="'."U".'" title="'."Podgląd faktury".'" />'.'</a>';
 					}
-					$out_tr['ID'] .= ' <code style="font-size:10px">'."(".$v_doc->get('ID').")".'</code>';// TODO: dla KP,KW: ID_BILLING_NUMBERS zamiast ID
-					$out_tr['nr'] = $v_doc->get('nr');
+					$docNr = $v_doc->get('nr');
+					if ('FVAT' == $v_doc->get_type()) {
+						$out_tr['ID'] .= ' <a href="index.php?FUNCTION_INIT=bm_show_document&ARG1_VAL=' . $docNr . '" target="_blank">'."({$docNr})".'</a>';
+					}
+					$out_tr['nr'] = $docNr;
 					$out_tr['winien'] = number_format($v_doc->get('WINIEN'), 2, ',', ' ');
 					$out_tr['ma'] = number_format($v_doc->get('MA'), 2, ',', ' ');
 					$out_tr['saldo'] = number_format($v_doc->get_saldo(), 2, ',', ' ');