Topic: How to make it Center
How to make these fields centered in invoice as per attachment?
https://ibb.co/cVyq9w
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Reporting → How to make it Center
How to make these fields centered in invoice as per attachment?
https://ibb.co/cVyq9w
If you center the amounts in the body of the invoice, they will not align correctly for the decimal places. But if you still want it, then amke line 61 of reporting/rep107.php:
$aligns = array('left', 'left', 'right', 'center', 'right', 'right', 'right');
to be:
$aligns = array('left', 'left', 'right', 'center', 'right', 'right', 'center');
The top summary table has it's elements already center aligned in the English version - see attachment. The values in it are populated in the $aux_info array in reporting/includes/doctext.inc file.
The file reporting/includes/header2.inc that the invoice report uses aligns the values in it's lines 167-175 ('C'):
foreach($aux_info as $info_header => $info_content)
{
$this->row = $iline2 - $this->lineHeight - 1;
$this->TextWrap($col, $this->row, $width, $info_header, 'C');
$this->row = $iline3 - $this->lineHeight - 1;
$this->TextWrap($col, $this->row, $width, $info_content, 'C');
$col += $width;
}
still not fixed
in English it is ok but in arabic no
Refer any report where you find a centered field and provide screenshot. We can then trace what works for alignment in Arabic.
Good Day Sir @apmuthu
Great thanks for all the assistance and support you give to the various people. I kindly request for your assistance how to align the Logo on Left and Company Address in Center. Such that they are all on the same line.
See Example: https://prnt.sc/J6uwpHS3rXI1
Your prompt assistance is highly appreciated.
Stay Safe!
Its better you can have this complete header on the top of your invoice. Which will give you better look.
Upload this image jpg to company/0/images/pdfheader.jpg
And refer header2.inc to addimage which will have x and y. And h and w. Use change that coordinates and make it aligned to fit to your invoice.
Thanks a lot Sir - though this may not be of help to me. The Logo will look well.
FrontAccounting forum → Reporting → How to make it Center
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.