Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Company Name on Invoices #1277

Closed
WessleyKoop opened this issue Apr 30, 2024 · 4 comments
Closed

Company Name on Invoices #1277

WessleyKoop opened this issue Apr 30, 2024 · 4 comments

Comments

@WessleyKoop
Copy link

Can we add the company name to the invoicing script.
I have had a look at the code and I can't figure out how to pull the company name into the invoicing pages.
Any help would be greatly appreciated.
Thanks in advance.

@jennyq
Copy link
Member

jennyq commented May 1, 2024

You can pull down the template invoices/view.html, then add {{ SITE_GLOBAL_SITEDISPLAYNAME }} right above the address https://github.com/tendenci/tendenci/blob/main/tendenci/themes/t7-base/templates/invoices/view.html#L20

@WessleyKoop
Copy link
Author

Hi Jenny,

Not our company name, the members company name.
When we get a Business member signing up, we would like their company name above there member name.

Thanks for the quick reply.

@jennyq
Copy link
Member

jennyq commented May 7, 2024

To include the members company name, you can add invoice.bill_to_company field to the invoice view https://github.com/tendenci/tendenci/blob/main/tendenci/themes/t7-base/templates/invoices/view.html#L146

{% if invoice.bill_to_company %}{{ invoice.bill_to_company }}<br>{% endif %}

@WessleyKoop
Copy link
Author

Thank you Jenny.
That worked.

@jennyq jennyq closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants