X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=inline;f=reporting%2Fincludes%2Fheader2.inc;h=c76ae9f60d3161de3c0039efe610eaac88a29838;hb=668186756afd2a079edf92b541e39385c2ac9d9f;hp=5bda35c6c171c471aaffec419675abf38eada389;hpb=859b3b76ad84d15236194dd0152b821b3a2d2ca7;p=fa-stable.git diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 5bda35c6..c76ae9f6 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -61,7 +61,10 @@ } $this->LineTo($right, $iline2 ,$right, $iline4); $this->LineTo($this->leftMargin, $iline5 ,$this->leftMargin, $iline7); - $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7); + if ($this->l['a_meta_dir'] == 'rtl') // avoid line overwrite in rtl language + $this->LineTo($this->cols[$cols - 2], $iline5 ,$this->cols[$cols - 2], $iline7); + else + $this->LineTo($this->cols[$cols - 2] + 4, $iline5 ,$this->cols[$cols - 2] + 4, $iline7); $this->LineTo($right, $iline5 ,$right, $iline7); // Company Logo @@ -138,9 +141,10 @@ $this->NewLine(); $this->Text($mcol + 100, $this->formData['document_name']); $this->Text($mcol + 180, $this->formData['document_number']); - + $this->NewLine(2); + if ($this->pageNumber > 1) - $this->Text($this->endLine - 35, _("Page") . ' ' . $this->pageNumber); + $this->Text($mcol + 180, _("Page") . ' ' . $this->pageNumber); $this->row = $iline1 - $this->lineHeight; $this->fontSize -= 4; $this->Text($ccol, $Addr1['title'], $icol);