Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / Invoicing Support / invoicing file name and invoicing display field

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

invoicing file name and invoicing display field

  • hatprostudios
  • hatprostudios's Avatar Topic Author
  • Offline
  • Gold
  • Gold
More
10 years 11 months ago #4890 by hatprostudios
1. How can I change the filename of invoicing pdf to take automatic client name?
2. I want to apear at invoicing template all the field name in the left of field box, example: City: New York. Now its displaying only New York

menix
More
10 years 11 months ago #4907 by loic
Hello,

1. You can change the filename of the pdf file in '/components/com_invoicing/views/invoice/view.pdf.php.

For example, if you want to name the pdf with {username}_{invoice_number}, replace this block line 29:
$filename = sprintf(JText::_('INVOICING_INVOICE_FILENAME'),InvoicingHelperFormat::formatInvoiceNumber($invoice));
$filename = str_replace(array("/","."," "),"_",$filename);
$this->setName($filename);

By this one:
$user = JFactory::getUser();
$filename = $user->username.'_'.InvoicingHelperFormat::formatInvoiceNumber($invoice);
$filename = str_replace(array("/","."," "),"_",$filename);
$this->setName($filename);

2. You can directly modify the template you want from the administrator part of Invoicing.

Best Regards
The following user(s) said Thank You: hatprostudios
  • hatprostudios
  • hatprostudios's Avatar Topic Author
  • Offline
  • Gold
  • Gold
More
10 years 11 months ago - 10 years 11 months ago #4909 by hatprostudios
Replied by hatprostudios on topic invoicing file name and invoicing display field
1. Not working invoice29.pdf
2. I did that but at vendor fields if I add for example: [VENDOR_COMMON_NAME]: {vendor_contact_name} won't work

menix
Last edit: 10 years 11 months ago by hatprostudios.
More
10 years 11 months ago #4930 by loic
Hello,

1. What doesn't work ?

2. What exactly is the problem ? the string isn't translated ?
  • hatprostudios
  • hatprostudios's Avatar Topic Author
  • Offline
  • Gold
  • Gold
More
10 years 11 months ago #4948 by hatprostudios
Replied by hatprostudios on topic invoicing file name and invoicing display field
You can see in the attachments!

The code you gave me to replace has no effect (attachment 2), the other problem with the [VENDOR_COMMON_NAME] {vendor_contact_name} the code "[VENDOR_COMMON_NAME]" again has no effect (attachment 1).

menix
Attachments:
More
10 years 11 months ago #4987 by loic
Hello,

1. For this feature, it doesn't exist in Invoicing yet, I tried to give you a solution by modifying the code but it doesn't seems to work.

2. For the translation, if your website isn't multilanguages, you can directly write the translation in the template of the invoice or you can make a language override directly in Joomla. (By going in Extensions->language Manager and then override)

Best Regards.
The following user(s) said Thank You: hatprostudios
Time to create page: 0.151 seconds
Powered by Kunena Forum