Jump to content

Different company name on invoices


wdele

Recommended Posts

Hi,

 

I have multiple companies, registered in The Netherlands. They are registered with our chamber of commerce (KvK). I have one main name for my companies (A), hence my KvK name is A. I have the hosting company X which uses WHMCS, and is registered as a kind of 'sub-company' under A. But due to legal stuff I have to bill my clients under A. So I need the WHMCS name to be X, but on the invoices the name should be A.

 

Possible?

Link to comment
Share on other sites

wow... i'm confused with A's and X's :?:

 

are you saying that you want your company name in setup -> general settings -> general to be "X"

but on the invoices, you don't want mention of X, you want "A" used?

 

or are you saying you want to invoice some clients as X and others as A?

 

The first one. I want X to be the name for my WHMCS installation, but the invoices should have the name A.

Link to comment
Share on other sites

The first one. I want X to be the name for my WHMCS installation, but the invoices should have the name A.

 

You can modify the language in the invoice template file.

Step 1. Adding the language, follow this article: http://docs.whmcs.com/Language_Files#Usage_Instructions (or skip, see note below)

Step 2. Edit the invoice template (and PDF template) replacing the old language phrase with the newly created one

 

(Or you can skip #1 and insert your company name directly into the template)

 

The files you'd need to edit are: viewinvoice.tpl and invoicepdf.tpl

Edited by Alex - Arvixe
Link to comment
Share on other sites

just to expand a little on Alex's reply, I don't think that you need to do Step 1 as you're not really modifying any existing language settings, you're replacing a system variable with your custom name ("A") - and I assume that name is going to be the same regardless of the language used by your clients.

 

so in viewinvoice.tpl, you would replace all instances of {$companyname} with whatever "A" is... depending on your template, it might be along the lines of changing...

 

{if $logo}<p><img src="{$logo}" title="{$companyname}" /></p>{else}<h1>{$companyname}</h1>{/if}

to...

 

{if $logo}<p><img src="{$logo}" title="Wdele" /></p>{else}<h1>Wdele</h1>{/if}

it's a little more involved tweaking the invoicepdf template, so what you will probably have to do is replace the following (this might be different depending on your template)...

 

$pdf->Cell(160,6,trim($companyaddress[0]),0,1,'R');

with...

 

$pdf->Cell(160,6,'Wdele',0,1,'R');

obviously, change Wdele to whatever your "A" company name is.

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