Page 1 of 1

[Solved] Vendors VAT number in invoice

Posted: 26 Oct 2010, 17:13
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

[SOLVED] Re: Vendors VAT number in invoice

Posted: 29 Oct 2010, 11:02
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

Re: [Solved] Vendors VAT number in invoice

Posted: 31 Oct 2010, 19:07
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