Custom PDF template issue

Yes okay but you can already do that. You just have to add this styling to the footer itself or the custom.css.
Let me explain this:
You add

<div id="invoice-terms">
These are the terms that will be printed on every invoice!
</div>

to the footer in the settings. Then you add

#invoice-terms {font-weight: normal; font-style: italic; font-size: 85%; color: # 888;}

to your custom.css file and the footer that is printed in every invoice should be formatted with these styles.


The custom.css will not be changed in any way as it would destroy the user’s changes with an update.

i’m already doing this …

/* FOOTER */
div.footer {position:absolute; bottom:70px; width:18cm; }
div.footer { font-weight:normal; font-style:italic; font-size:85%; color:#888 }

	<div class="footer">
	<?php if ($invoice->invoice_terms) { ?>
            <?php echo nl2br($invoice->invoice_terms); ?>
        	<?php } ?>
	</div>

But i’ve to write terms on all invoices I will do … it’s not automatic like PDF FOOTER in invoice settings … and also putting this on the template is not so USER FRIENDLY like can write term ONCE on invoice settings.

If I can use a customized PDF HTML FOOTER from invoice setting I’ve not to enter on all my customers template to personalize their terms. They can do it.

However is not URGENT but I think this is a thing to work on.
Probably we see the usefulness of this function in a different way

Oh you want to print the terms of each invoice directly into the footer!
These are two different things that are not related to each other.

The invoice terms you use are related to the invoice itself.
The PDF footer is meant to display more general information like “All prices in Euro” or “Contact: 324-555-4675 or mail@invoiceplane.com”.
What you want to achieve is not possible at the moment.

Ahm ok.

Maybe plan this for the future … it’s enought to can choose the standard font, color and weight of what mpdf generate there is not set in no one .css.

Thanks for help Kovah :v:

It don’t work no more Pitma.

It cause issue when selecting date of new invoice.

Can you help me?
I need this on invoice, like this: 14 April, 2015

Ok I’ll check this out after work!

1 Like

Hey

so, I tested the format in 1.3.1 and it worked!

Edit:

Okay you’re right! It seems there is a problem! I work on it

I think today I can’t express well…
Maybe a picture

  'd F,Y' => array(
    'setting' => 'd F,Y',
    'datepicker' => 'd.m.yyyy'
  )

is already in the file but, if selected, it works only printing invoice but I have issue when selecting date on the program (to create an invoice or a quote)
When I click a day it change the format and no action will work then.

Thanks

Okay, found the problem! Change ‘datepicker’ => ‘d MM,yyyy’

Should solve it!

Give me a short Feedback!

Best regards

Buddy you’re a PRO :smile:

It works … I will ask Kovah to implement this on public version! :wink:

Thanks a lot

IP-238 is created!

Have a nice evening