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 / [RESOLVED] Nom des fichiers PDF pour les factures

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.

[RESOLVED] Nom des fichiers PDF pour les factures

More
8 years 9 months ago - 8 years 9 months ago #21033 by Joomlalala
Bonjour,
Tout fonctionne bien avec adsmanager sur le site donc c'est sans doute une de mes dernières questions :)
Je n'arrive pas à modifier le nom de mes factures
--> Par mail à l'utilisateur, il est envoyé invoice+Numero.pdf
--> Sur le site dans le compte de l'utilisateur, le fichier est nommé file.pdf
c'est pas joli et surtout ça fait pas très pro .... donc c'est une question importante pour moi !

j'ai essayé de modifier le $filename dans le fichier invoice/view.pdf.php mais rien n'y fait
Merci
Cordialement,
Last edit: 8 years 9 months ago by loic.
More
8 years 9 months ago #21042 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Bonjour,

Avez vous essayer de faire un langage override de la fonction INVOICING_INVOICE_FILENAME ?

Cordialement.
More
8 years 9 months ago #21044 by Joomlalala
Replied by Joomlalala on topic Nom des fichiers PDF pour les factures
Oui, c'est ce que j'avais essayé en premier mais ça ne change rien :(
Cordialement
More
8 years 9 months ago #21047 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Bonjour,

Ok, je vais creuser dans le code pour trouver ou faire cette modification.

Cordialement.
More
8 years 9 months ago #21050 by Joomlalala
Replied by Joomlalala on topic Nom des fichiers PDF pour les factures
Merci beaucoup, mes clients ne sont que des professionnels alors les factures sont importantes
Merci
Cordialement
More
8 years 9 months ago #21057 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Bonjour,

Il y a bien une erreur dans le code concernant le nom de pdf.

Voici les étapes pour corriger ce problème.
Dans 'administrator/components/com_invoicing/helpers/pdf.php', modifiez la ligne 39 pour avoir ceci :
static function stream($data,$filename = null) {

Ensuite, il faut spécifier un nom pour le PDF, vous pouvez noter ce que vous souhaitez, le fichier à modifier est 'administrator/components/com_invoicing/assets/view.pdf.php', ligne 102 :
InvoicingHelperPDF::stream($data,$this->getName().'.pdf');

Ensuite, dans les fichiers 'administrator/components/com_invoicing/views/invoice/view.pdf.php' et 'components/com_invoicing/views/invoice/view.pdf.php', il vous suffit de modifier la variable $ filename pour changer le nom du fichier.

Je suis en train de corriger ce bug dans le composant, lorsque vous mettrez lecomposant à jour, vos modifications seront écrasées.

Cordialement.
Time to create page: 0.157 seconds
Powered by Kunena Forum