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 #21065 by Joomlalala
Replied by Joomlalala on topic Nom des fichiers PDF pour les factures
Bonjour,

MERCI beaucoup pour avoir regardé de plus près ! :) :) :) Pour les mises à jour du composant, pas de soucis, j'ai déjà modifié un peu pour les méta et la recherche et je note tout en prévision des mises à jour ! :sick:

J'ai fait tout comme vous avez dit , et re :blink::blink: ri :blink: fié 4 fois ! :blink:

Dans les fichiers views/invoice/view.pdf.php , j'ai laissé ce qui était là :
$filename = sprintf(JText::_('INVOICING_INVOICE_FILENAME'),InvoicingHelperFormat::formatInvoiceNumber($invoice));

Voici ce que j'obtiens :

- Dans le compte utilisateur, youpi ! j'ai bien le texte de INVOICING_INVOICE_FILENAME mais pas de numéro de facture -> genre facture.pdf au lieu de "facture_071624.pdf"

- Dans le mail ... toujours invoice33.pdf (où 33 n'est PAS le numéro de facture {invoice_number} mais le numéro incrémenté dans la base ) -> je pense que c'est la facture en PJ dans le mail qui est le plus important :S

Par contre DANS le fichier PDF, tout est ok :)

Cordialement,
Bon week end
More
8 years 9 months ago #21075 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Bonjour,

Ok, je vais voir pour le numéro de facture.

Cordialement.
More
8 years 9 months ago #21083 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Ok, j'ai trouvé le problème.

Dans le front et le backend, ouvrez les fichiers 'administrator/component/com_invoicing/views/invoice/view.pdf.php' et 'component/com_invoicing/views/invoice/view.pdf.php', remplacez le bloc de code suivant :
if ($invoice->invoice_number != null)
			$content = InvoicingHelperFormat::formatInvoicePDF($invoice);
		else 
			$content = InvoicingHelperFormat::formatOrderPDF($invoice);

Par celui-ci :
if ($invoice->invoice_number != null) {
			$content = InvoicingHelperFormat::formatInvoicePDF($invoice);
            $invoiceNumber = InvoicingHelperFormat::formatInvoiceNumber($invoice);
            $filenameText = JText::_('INVOICING_INVOICE_FILENAME');
        } else { 
			$content = InvoicingHelperFormat::formatOrderPDF($invoice);
            $invoiceNumber = InvoicingHelperFormat::formatOrderNumber($invoice);
            $filenameText = JText::_('INVOICING_ORDER_FILENAME');
        }

Ensuite, remplacez la ligne :
$filename = sprintf(JText::_('INVOICING_INVOICE_FILENAME'),InvoicingHelperFormat::formatInvoiceNumber($invoice));

Par celle-ci :
$filename = sprintf($filenameText,$invoiceNumber);

Et enfin, dans les traductions rajoutez ces deux traductions comme ceci :
INVOICING_INVOICE_FILENAME="Invoice %s"
INVOICING_ORDER_FILENAME="Order %s"

Le %s sera remplacé par le numéro de commande ou de facture.

Cordialement.
More
8 years 9 months ago #21085 by Joomlalala
Replied by Joomlalala on topic Nom des fichiers PDF pour les factures
Bonjour,
Merci beaucoup ! C'est Ok (je n'ai pas pu tester encore le nom du fichier envoyé par mail mais je suppose que c'est ok aussi)
Cordialement,
More
8 years 9 months ago #21090 by loic
Replied by loic on topic Nom des fichiers PDF pour les factures
Parfait :)

Je vais ajouter la correction à la version de base.

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