Jump to content

PDF invoices according to client group


justinsmithies

Recommended Posts

Is it possible to have more than one template of pdf invoices ?

Say for example my client group "known" get sent a pdf invoice with the terms and conditions for 30 payment terms etc etc.

But any other clients not in that group would only get the basic default pdf invoice.

 

Is this possible ?

 

Cheers,

Justin Smithies

Link to comment
Share on other sites

The PDF invoice template (/templates/<templatename>/invoicepdf.tpl) is in the PHP-language, so you could just create a simple if/else statement to solve this. The only thing you'll need is the ID of the client group.

 

if ($clientsdetails["groupid"] == 1)
{
/* Code for the invoice with terms and conditions */
}
else
{
/* Code for the basic invoice */
}

 

Just replace the 1 with the ID of the client group.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated