Numéro de facture non créé - non imprimé sur pdf

  • Posts: 246
  • Thank you received: 5
8 years 5 months ago #241923

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5
-- PHP version -- : 3.5.1

Bonjour,

Nous utilisons le plugin "attach_invoice" pour avoir les factures en pdf.
Nous avons réglé les paramètres pour avoir un numéro de facture spécifique (cf. snapshot)
Lorsqu'une commande est confirmée (payée par CB), la facture devrait être produite avec un numéro dédié et formaté comme indiqué. Or c'est c'est le numéro de commande qui est imprimé. Les champs de la table (order_invoice_id et order_invoice_number notamment ) restent vides ce qui empêche le code prévu de fonctionner :

<?php if(empty($order->order_invoice_number)){
		$order->order_invoice_number = $order->order_number;
	}
	if(empty($order->order_invoice_created)){
		$order->order_invoice_created = $order->order_created;
	}
	$number = ' n° ';
	if(JText::_('INVOICE_NUMBER') != 'INVOICE_NUMBER'){
	//	$number = JText::_('INVOICE_NUMBER');
	}
	
?>

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
8 years 5 months ago #241936

Bonjour,

www.hikashop.com/support/documentation/5...nfig.html#main_order

Invoice order statuses: You can set here the order status which will generate the invoice number. If "created" is listed, you will have the same invoice number than the order number.


Cordialement,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 246
  • Thank you received: 5
8 years 5 months ago #242200

Indeed.... I've missed this one !
Thanks.

Please Log in or Create an account to join the conversation.

Time to create page: 0.046 seconds
Powered by Kunena Forum