add base name in pdf feedback

This commit is contained in:
aynsix
2020-01-23 12:12:59 +03:00
parent 5b38565e1a
commit e3f596963a
2 changed files with 11 additions and 5 deletions

View File

@@ -603,6 +603,12 @@ class PDFRecords extends PDF
$this->pdf->Write(5, $rec->getRecordId());
$this->pdf->Write(6, "\n");
$this->pdf->SetFont(PhraseaPDF::FONT, 'B', 12);
$this->pdf->Write(5, $this->app->trans("print_feedback:: base name: ") . " ");
$this->pdf->SetFont(PhraseaPDF::FONT, '', 12);
$this->pdf->Write(5, $rec->getDatabox()->get_label($this->app['locale']));
$this->pdf->Write(6, "\n");
$this->pdf->SetFont(PhraseaPDF::FONT, 'B', 12);
$this->pdf->Write(5, $this->app->trans("print_feedback:: originale filename: ") . " ");
$this->pdf->SetFont(PhraseaPDF::FONT, '', 12);
@@ -698,7 +704,7 @@ class PDFRecords extends PDF
return;
}
private function formatDate(\DateTime $date)
private function formatDate(\DateTime $date)
{
$locale = $this->app['locale'];