Answers.Body: <p>Time flies ;) Maybe this will help you and others? I use this billing block (Smarty). It includes the employer, what is needed often.</p>
  <p>{capture assign=display_name}{contact.employer_id.display_name}{/capture}{capture assign=adresstype}{contact.location_type_id}{/capture}
  {if $adresstype eq 2} {$display_name}<br>
  {/if} {capture assign=addressee}{contact.addressee}{/capture}{if $addressee} {$addressee}<br>
  {/if} {capture assign=supplemental_address_1}{contact.supplemental_address_1}{/capture}{if $supplemental_address_1} {$supplemental_address_1}<br>
  {/if} {contact.street_address}<br>
  {contact.postal_code}{ }{contact.city}<br>
  {capture assign=country}{contact.country}{/capture}{if $country ne 'Deutschland'} {$country}{/if}</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-21T12:24:31.983Z
Answers.Text: Also I've just come across this extension, which plays into the same issue: https://civicrm.org/extensions/someone-else-pays
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-03-20T18:11:52.860Z
Answers.LastActivityDate: 2024-03-20T18:11:52.860Z
Answers.UserDisplayName: wintermoor
Body: <p>Here's my use case, which I'm guessing might be quite common:</p>
  
  <p>End user visits the site and registers for an event/membership, etc., but rather than pay themselves using their own card/Paypal a/c, etc., they want to optionally provide a purchase order reference and get an invoice that is made out to their employer (or similar), so that the employer can pay the bill.</p>
  
  <p>It feels like the billing block and the invoicing feature are close to being able to meet a need like this, but there doesn't yet seem to be any obvious way to make the required alterations.</p>
  
  <p>What I'm seeing as default behaviour is that the invoice does use the billing address, but not the billing name (it seems to ignore this and use the contact's name instead - which makes me wonder why there is an option to enter a billing name at all, especially as there's no apparent UI to edit it or indeed do anything with it.</p>
  
  <p>And then there's the billing block itself. If I could use a profile of my choosing for the billing block, then I could include the fields I want, such as employer's name, purchase order reference and/or other custom fields, etc. I see there's this Billing Block Adjustment extension (<a href="https://civicrm.org/extensions/billing-block-adjustment" rel="noreferrer">https://civicrm.org/extensions/billing-block-adjustment</a>), which might possibly do the trick. Anyone using that have any advice about what it can provide?</p>
  
  <p>And then, assuming I can get all of that doing what I want, there's the issue of getting the right fields into the invoice layout, which I assume is doable using tokens or similar?</p>
  
  <p>Am I going in the right direction with this, or is there a better way?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-14T04:35:33.713Z
Comments.Text: I hear you Graham. What outcome did you achieve?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-06-14T04:49:46.030Z
Comments.Text: IN particular I am trying to capture the name of the Billing Person without needing to create a separate contact - not sure if it makes more sense to just add a Custom Field for this, or to use the Billing Name field.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-06-07T17:14:46.173Z
Comments.Text: Nearly three years on from my original question - has there been any progress on this? I'd still like to implement the invoice functionality, but I need to be able to allow the user to specify the name and address of the organisation that will appear on the invoice.
Comments.UserDisplayName: Graham
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-16T12:34:40.107Z
Comments.Text: Five years on and this is something I was looking for as well. I'm surprised more people aren't asking for this.
Comments.UserDisplayName: Barijohn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-17T01:03:45.140Z
Comments.Text: Could you give examples of what it looks like on other systems? Where I'm from, a participant would register, and either pay with their card and submit an expense that is refunded on the next pay, or pay with their company/employee card.
Comments.UserDisplayName: bgm
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-19T15:33:31.787Z
Comments.Text: Yes, that's an option, and that's what is generally happening. fine, if you have a company card and the authorisation to spend. Not common in the public sector. I just want to give them the option to bill a third party (could be the employer, or other sponsoring org).
Comments.UserDisplayName: Graham
Tags: <invoice><billingblock>
Title: How can I use the billing block and the invoicing feature to facilitate invoicing a third party?
ThreadText: # How can I use the billing block and the invoicing feature to facilitate invoicing a third party?
  
  (Asked by: username_0 on 2016-07-17)
  
  Here's my use case, which I'm guessing might be quite common:
  
  End user visits the site and registers for an event/membership, etc., but rather than pay themselves using their own card/Paypal a/c, etc., they want to optionally provide a purchase order reference and get an invoice that is made out to their employer (or similar), so that the employer can pay the bill.
  
  It feels like the billing block and the invoicing feature are close to being able to meet a need like this, but there doesn't yet seem to be any obvious way to make the required alterations.
  
  What I'm seeing as default behaviour is that the invoice does use the billing address, but not the billing name (it seems to ignore this and use the contact's name instead - which makes me wonder why there is an option to enter a billing name at all, especially as there's no apparent UI to edit it or indeed do anything with it.
  
  And then there's the billing block itself. If I could use a profile of my choosing for the billing block, then I could include the fields I want, such as employer's name, purchase order reference and/or other custom fields, etc. I see there's this Billing Block Adjustment extension (<https://civicrm.org/extensions/billing-block-adjustment>), which might possibly do the trick. Anyone using that have any advice about what it can provide?
  
  And then, assuming I can get all of that doing what I want, there's the issue of getting the right fields into the invoice layout, which I assume is doable using tokens or similar?
  
  Am I going in the right direction with this, or is there a better way?
  
  **Tags:** invoice, billingblock
  
  > **Comments:**
  > **username_1**: I hear you username_0. What outcome did you achieve?  
  > **username_1**: IN particular I am trying to capture the name of the Billing Person without needing to create a separate contact - not sure if it makes more sense to just add a Custom Field for this, or to use the Billing Name field.  
  > **username_0**: Nearly three years on from my original question - has there been any progress on this? I'd still like to implement the invoice functionality, but I need to be able to allow the user to specify the name and address of the organisation that will appear on the invoice.  
  > **username_2**: Five years on and this is something I was looking for as well. I'm surprised more people aren't asking for this.  
  > **username_3**: Could you give examples of what it looks like on other systems? Where I'm from, a participant would register, and either pay with their card and submit an expense that is refunded on the next pay, or pay with their company/employee card.  
  > **username_0**: Yes, that's an option, and that's what is generally happening. fine, if you have a company card and the authorisation to spend. Not common in the public sector. I just want to give them the option to bill a third party (could be the employer, or other sponsoring org).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2024-03-20. Score: 1
  
  Time flies ;) Maybe this will help you and others? I use this billing block (Smarty). It includes the employer, what is needed often.
  
  {capture assign=display\_name}{contact.employer\_id.display\_name}{/capture}{capture assign=adresstype}{contact.location\_type\_id}{/capture}
  {if $adresstype eq 2} {$display\_name}  
  {/if} {capture assign=addressee}{contact.addressee}{/capture}{if $addressee} {$addressee}  
  {/if} {capture assign=supplemental\_address\_1}{contact.supplemental\_address\_1}{/capture}{if $supplemental\_address\_1} {$supplemental\_address\_1}  
  {/if} {contact.street\_address}  
  {contact.postal\_code}{ }{contact.city}  
  {capture assign=country}{contact.country}{/capture}{if $country ne 'Deutschland'} {$country}{/if}
  
  > **Comments:**
  > **username_0**: Also I've just come across this extension, which plays into the same issue: https://civicrm.org/extensions/someone-else-pays  
  
  ---
  
  