Welcome, Guest
Username: Password: Remember me

TOPIC: moving vat number on invoice

moving vat number on invoice 8 months 3 weeks ago #23633

  • TomMrk
  • TomMrk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • 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?
The administrator has disabled public write access.

Re: moving vat number on invoice 8 months 1 week ago #23649

  • saxa
  • saxa's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 264
  • Karma: 5
Depends on the template you use. If you use a predefined pdf, see fpdf.org and learn how to move the field.
The administrator has disabled public write access.

Re:moving vat number on invoice 8 months 1 week ago #23651

  • dolifan2
  • dolifan2's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 22
  • 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.
The administrator has disabled public write access.

Re:moving vat number on invoice 8 months 2 days ago #23680

  • TomMrk
  • TomMrk's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • 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
The administrator has disabled public write access.
Time to create page: 0.072 seconds