Преглед изворни кода

Poprawka nazwy pliku w JPK

Mariusz Muszyński пре 9 година
родитељ
комит
ed89517976
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      SE/se-lib/Route/UrlAction/JPK.php

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

@@ -259,9 +259,7 @@ format: 'YYYY-MM'
 				$xml = simplexml_load_string($this->JPK['OUT_MERGED']);
 				$ns = $xml->getNamespaces(true);
 				$this->validateJPK_VAT($xml);
-				$fileName = preg_replace("/[: \.]/", "_", "JPK_VAT_{$this->JPK['MONTH']}_" 
-					. str_replace('"', '', $xml->Podmiot1->IdentyfikatorPodmiotu->children($ns['etd'])->PelnaNazwa)
-					. "_" . str_replace("T", "_", $xml->Naglowek->DataWytworzeniaJPK)) . ".xml";
+				$fileName = preg_replace("/[: \.]/", "_", "JPK_VAT_{$this->JPK['MONTH']}_" . str_replace('"', '', $xml->Podmiot1->IdentyfikatorPodmiotu->children($ns['etd'])->PelnaNazwa);
 				$output = $xml->asXml();
 				header("Content-Type: application/xml");
 				header("Content-Disposition: attachment; filename={$fileName};");