Explorar o código

Poprawka do JPK

Mariusz Muszyński %!s(int64=8) %!d(string=hai) anos
pai
achega
a421b7d635
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      SE/se-lib/Route/UrlAction/JPK.php

+ 1 - 1
SE/se-lib/Route/UrlAction/JPK.php

@@ -731,7 +731,7 @@ EOT;
 
 			$result = DB::getPDO(931)->fetchall($queryKORV);
 			foreach ($result as $row) {
-				$data[$row['BN_ID']][0]['NrKontrahenta'] = trim($row['NrKontrahenta']);
+				$data[$row['BN_ID']][0]['NrKontrahenta'] = trim(str_replace("-", "", $row['NrKontrahenta']));
 				$data[$row['BN_ID']][0]['NazwaKontrahenta'] = $row['NazwaKontrahenta'];
 				$data[$row['BN_ID']][0]['AdresKontrahenta'] = $row['AdresKontrahenta'];
 				$data[$row['BN_ID']][0]['DowodSprzedazy'] = $row['DowodSprzedazy'];