[Solved] Vendors VAT number in invoice

Before you ask about IDnR Addon see the VirtueMart - Invoice, Delivery Note and Receipt Addon
taxviper
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2010, 17:03

[Solved] Vendors VAT number in invoice

Post by taxviper »

Hi,

I have received the com_virutemart_IDnR_Email_addon.zip after donation and installed it.
It seems to work as I can email invoices :)

But I need the invoices (at least) to show the VAT number of the shop/vendor.

I found this in the faq https://www.phoca.cz/documents/18-virtue ... te-receipt:
4. How to set VAT for a vendor (store)?

If you want that in your documents (invoice, delivery note, receipt) the VAT will be displayed, you can add the information about VAT into the language file (common), e.g.

1 <?php
2 'VM_DELIVERY_VENDOR_VAT_NR1_LABEL' => 'VAT1',
3 'VM_DELIVERY_VENDOR_VAT_NR1_VALUE' => '1020304050',
4 'VM_DELIVERY_VENDOR_VAT_NR2_LABEL' => 'VAT2',
5 'VM_DELIVERY_VENDOR_VAT_NR2_VALUE' => 'EU1020304050'
6 ?>

If the values will be not empty, the vendor's VAT will be displayed in document.
So I added this to administrator/components/com_virtuemart/languages/common
danish.php
english.php
// VAT-no - start
'VM_DELIVERY_VENDOR_VAT_NR1_LABEL' => 'CVR-nummer',
'VM_DELIVERY_VENDOR_VAT_NR1_VALUE' => '12345678',
// VAT-no - end
I did NOTHING else. Should I?

It does not work? :(

Please help

- Michael
Last edited by taxviper on 29 Oct 2010, 11:54, edited 4 times in total.
taxviper
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Oct 2010, 17:03

[SOLVED] Re: Vendors VAT number in invoice

Post by taxviper »

Hi,
YES ...
I messed it up - not paying attention to the fact the linies were added already in the language files - without anything written between ''.
I added the linies again - higher up in the language files - and therefore didn't get any result.
Fixed now and work just like it should - all my own fault.
Thanks for a great component.
- Michael
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] Vendors VAT number in invoice

Post by Jan »

Hi, for now, you can add such information to header or to footer in plugin parameters, see more here:
https://www.phoca.cz/documents/18-virtue ... eipt-addon (the addon was completely rewritten to easily add information to pdf)

Jan
If you find Phoca extensions useful, please support the project
Post Reply