Identification



Welcome, Guest
Please Login or Register.    Lost Password?

moving vat number on invoice
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: moving vat number on invoice
#23633
moving vat number on invoice 5 Months, 2 Weeks ago Karma: 0
Hello,
I would like to move VAT number on invoice from the footer to the field with firm name, address etc.
How I can do that?
TomMrk
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23649
Re: moving vat number on invoice 5 Months, 1 Week ago Karma: 5
Depends on the template you use. If you use a predefined pdf, see fpdf.org and learn how to move the field.
saxa
Gold Boarder
Posts: 263
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23651
Re:moving vat number on invoice 5 Months ago Karma: 0
FYI, all models are in htdocs/core/modules, into subdirectory propale for commercial proposals, facture for invoices, commandes for orders.

So go into core/modules/facture/doc and select your template. Usually its pdf_crabe.modules.php.
Here goto line 898: and change $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index);
appropriately to your new coordinates.
in commandes its the same principle.
dolifan2
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#23680
Re:moving vat number on invoice 4 Months, 4 Weeks ago Karma: 0
Thank you two for your answers, but I have found another solution.

I just copy pdf_crabe.modules.php to another name ( pdf_<foo>.modules.php) and make some changes as it's described in wiki, plus change the value of variable:

$carac_emetteur = $carac_emetteur."\n<text with proper name and vat number>";

in row about 1374, just before lines with:

$pdf->SetXY($posx+2,$posy);
$pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(80, 4, $carac_emetteur, 0, 'L');

In effect I have all the data, which I need in the place of the invoice author
TomMrk
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1