AWESOME, it’s works. Thanks a lot!
How can i show the name of tax in the template??
I dont want to see “Item tax” but the name of my tax
<th><?php echo lang('item_tax'); ?></th>
<td><?php echo format_currency($invoice->invoice_item_tax_total); ?> €</td>
edit:
how to add:
customer mail
customer vat
customer tax code
user mail
user vat
user tax code
to the template??? what are their ?php echo lang
codes?
thanks a lot
Hi,
did you check the default template?
<?php if ($invoice->client_vat_id) {
echo lang('vat_id_short') . ': ' . $invoice->client_vat_id . '<br/>';
} ?>
<?php if ($invoice->client_tax_code) {
echo lang('tax_code_short') . ': ' . $invoice->client_tax_code . '<br/>';
} ?>
and
<?php if ($invoice->user_vat_id) {
echo lang('vat_id_short') . ': ' . $invoice->user_vat_id . '<br/>';
} ?>
<?php if ($invoice->user_tax_code) {
echo lang('tax_code_short') . ': ' . $invoice->user_tax_code . '<br/>';
} ?>
Sorry Pitma, i didn’t see …
but i need also this
How can i show the name of tax in the template??
I dont want to see "Item tax" but the name of my tax
<th><?php echo lang('item_tax'); ?></th>
<td><?php echo format_currency($invoice->invoice_item_tax_total); ?> €</td>
My tax is “Rivalsa INPS 4%” … i want it on my template with php tag
thanks
Simply call
<pre><?php print_r($invoice); ?></pre>
at the end of the invoice template and it will create all variables that are currently available. Then just search for the information you are searching for.
Do you mean in the item table ie per item?
Else with Kovahs command you see everthing you need
Best regards
This is what the script post …
stdClass Object
(
[invoice_custom_id] =>
[invoice_id] => 1
[client_custom_id] => 1
[client_id] => 1
[user_custom_id] => 1
[user_id] => 1
[user_name] => User Name
[user_company] =>
[user_address_1] => Via adwadwad, 18
[user_address_2] =>
[user_city] => User city
[user_state] => CT
[user_zip] => 26548
[user_country] => IT
[user_phone] => 32255444445538
[user_fax] =>
[user_mobile] => 365894523344438
[user_email] => smailmail@mail.com
[user_web] =>
[user_vat_id] => 151515151151
[user_tax_code] => 5515151515
[client_date_created] => 2015-03-18 14:36:36
[client_date_modified] => 2015-03-20 15:25:28
[client_name] => Sdwdw Conndwti
[client_address_1] => Via Badwdwwdwe, 18
[client_address_2] =>
[client_city] => Ridwdwd Ttirirra
[client_state] => CT
[client_zip] => 26840
[client_country] => IT
[client_phone] => 348995564421138
[client_fax] =>
[client_mobile] => 334878965362311
[client_email] => smaila.dimaildwd@mail.com
[client_web] => www.cliente.com
[client_vat_id] => 0189236589
[client_tax_code] => cscscscscscscscsc
[client_active] => 1
[invoice_amount_id] => 1
[invoice_item_subtotal] => 335.00
[invoice_item_tax_total] => 13.40
[invoice_tax_total] => 0.00
[invoice_total] => 348.40
[invoice_paid] => 348.40
[invoice_balance] => 0.00
[invoice_sign] => 1
[is_overdue] => 0
[days_overdue] => -27
[invoice_is_recurring] => 0
[invoice_group_id] => 3
[invoice_status_id] => 4
[is_read_only] => 1
[invoice_date_created] => 2015-03-18
[invoice_date_modified] => 2015-03-21 19:19:44
[invoice_date_due] => 2015-04-17
[invoice_number] => 001
[invoice_terms] =>
[invoice_url_key] => IwyckrPL9KcO
But there is not what i want it show (see the pic)
In this case we would have to tweak the core.
But at the moment there’s simply no time for most of the feature wishes.
Sure, You think to implement this things in next releases?
Hovewer for my personal template I can put directly the name with no matters …
Thanks a lot for help =)
Where are “Pdf footer” of invoices Css’ attribs?
I want to change font etc but i can’t find it
Thanks.
Ps usefull to show also more taxes if used:
es.
item1 tax 4% 100.00
item2 tax 20% 100.00
Subtotal 200.00
item tax 4% 4.00
item tax 20% 20.00
Total 224.00
Thanks
Updates?
Thanks
Hey simxware
Look at this topic! There Kovah explains how to implement new fonts directly into the pdf. Unfortunetly this is not yet available without tweaking!
https://community2.invoiceplane.com/t/pdf-template-and-custom-webfonts/589
Have fun coding
Best regards
Hi Pitma …
I have no problems with fonts but with css field “PDF FOOTER” that you set in the options menu INVOICE.
If i write my text in this field and i can not find the field in the template and i can’t set css attribute for this …
ps: for external font I use http://www.google.com/fonts href link to implement my choice… and it works
There should be no field in the template because this is an overall footer that is displayed on all PDFs without any changes to any template.
Set anything you want in the PDF footer in the settings and it will be displayed. As stated directly below the box you are able to use HTML. This means that you can add the following to the PDF footer
<div id="pdf-footer">Any content you want, also tables or whatever..</div>
and you can style pdf-footer
in your custom.css
!
[quote=“Kovah, post:35, topic:544, full:true”]
There should be no field in the template because this is an overall footer that is displayed on all PDFs without any changes to any template.
Set anything you want in the PDF footer in the settings and it will be displayed. As stated directly below the box you are able to use HTML. This means that you can add the following to the PDF footer<div id="pdf-footer">Any content you want, also tables or whatever..</div>
and you can style
pdf-footer
in yourcustom.css
!
[/quote]
Sorry Kovah but I don’t understand.
my bills all include a statement (the same for all) and inserting it in the settings (see photo) I can not customize fonts.
I tried using:
pdf_invoice_footer
footer
in template.css or in custom.css or directly in my php template but does not work.
Even putting attributes css directly with the text (in the pdf footer text area)
How can I do? Thank You
I already said: what you enter in your PDF footer is just added to the template without anything else, without any divs, IDs or whatever. You have to add them manually.
I already gave you an example:
<div id="footer">uno due tre prova</div>
and then you are able to style the footer.
ok, I understand what you mean but it does not make sense there is a field to input the text if not then be customized by the customer and is different from the rest of template.
It would be helpful, in future versions, enter the attributes in .css
thanks anyway for all
Well I think it makes sense as anybody can enter everything he wants. I mean the footer actually is part of the template, its just inserted when the PDF is generated, nothing more.
But I don’t understand what you mean with the attributes that should be included in the CSS. Which attributes?
Maybe I explained wrong, excuse my English is not perfect.
It would be perfect if there were, for example in custom.css, the properties of the "pdf_invoice_footer"
(I found this id in the .php file in / config) so that the terms of the bill (though always the same) can be set via "invoice settings - PDF Footer "and not in any invoice (to have a custom look)
In my layout terms have this style:
font-weight: normal; font-style: italic; font-size: 85%; color: # 888
I wish I could also set the PDF Footer so that customers do not have to put it directly in any invoice or in the template .php
I explained better?