Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invoice Template
10-13-2014, 09:18 PM,
#1
Invoice Template
Hi,

I am using portrait as invoice orientation and I want to reduce the height of the invoice. we are using continuous computer papers (Paper size -Letter). And We are using like half of the page.

I am so grateful if you can instruct me step by step how to perform this.

Thank you,

Nirosh
Reply
10-14-2014, 02:02 AM,
#2
RE: Invoice Template
Hi,

I'm using webERP ver 3.11. I couldn't find any help regarding the modifying Invoice layout. I know PrintCustTransPortriat.php and PDFTransPageHeaderPortriat.php are 2 files for this purpose. But coding for $xpos / $ypos changing size (height) too complicated for me.


I'm very much grateful if you can point out what to look for & basic way to do this.

Thanks,

Nirosh
Reply
10-14-2014, 06:54 AM,
#3
RE: Invoice Template
Inside of PrintCustTransPortrait.php
F=ind this line
$Page_Height=792;

and Update it accordingly.
792 / 72 dpi = 11 inch paper is the current setting.
If you wish to have a 8 inch page set it at 576 and so forth.

Reply
10-14-2014, 03:27 PM,
#4
RE: Invoice Template
(10-14-2014, 06:54 AM)agaluski Wrote: Inside of PrintCustTransPortrait.php
F=ind this line
$Page_Height=792;

and Update it accordingly.
792 / 72 dpi = 11 inch paper is the current setting.
If you wish to have a 8 inch page set it at 576 and so forth.

Thank you very much sir. This is so helpful. But Now I have another issue. After reducing the page height now invoice printing from middle of the page.
Not from the top.

How can I rectify this.

Thanks,

Nirosh
Reply
10-14-2014, 10:58 PM,
#5
RE: Invoice Template
That's going to require a rewrite of the logic using $ypos to start at the top and work down instead of how it does it now. There is no simple fix for that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)