[Skip to main content](#vessel-content)

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

##

- **[laurent](/forum/user/268-laurent "View laurent's Profile")**
- [![laurent's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/268-laurent "View laurent's Profile") Topic Author
- [ Offline](/forum/user/268-laurent)

Less More

- Posts: 264
- Thank you received: 9
-
-
-

10 years 5 months ago [\#241923](#241923) by [laurent](/forum/user/268-laurent "View laurent's Profile")  *[Numéro de facture non créé - non imprimé sur pdf](/forum/5-support-en-francais-french-support-/884883-numero-de-facture-non-cree-non-imprime-sur-pdf#241923 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5 -- PHP version -- : 3.5.1  Bonjour,  Nous utilisons le plugin &quot;attach&#95;invoice&quot; 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&#95;invoice&#95;id et order&#95;invoice&#95;number notamment ) restent vides ce qui empêche le code prévu de fonctionner :")* was created by *[laurent](/forum/user/268-laurent "View laurent's Profile")*

-- 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 :
Code:

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

- [ ![Capture&#95;2016-06-03.jpg](/forum/attachment/31838) ](/forum/attachment/31838 "...2016-06-03.jpg") [ ](/forum/attachment/31838?download=1 "...2016-06-03.jpg")
- [ ![Capture2.jpg](/forum/attachment/31839) ](/forum/attachment/31839 "Capture2.jpg") [ ](/forum/attachment/31839?download=1 "Capture2.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg0ODgzLW51bWVyby1kZS1mYWN0dXJlLW5vbi1jcmVlLW5vbi1pbXByaW1lLXN1ci1wZGY/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 5 months ago [\#241936](#241936) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Numéro de facture non créé - non imprimé sur pdf](/forum/5-support-en-francais-french-support-/884883-numero-de-facture-non-cree-non-imprime-sur-pdf#241936 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5 -- PHP version -- : 3.5.1  Bonjour,  Nous utilisons le plugin &quot;attach&#95;invoice&quot; 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&#95;invoice&#95;id et order&#95;invoice&#95;number notamment ) restent vides ce qui empêche le code prévu de fonctionner :")*

Bonjour,

[ www.hikashop.com/support/documentation/5...nfig.html#main\_order](https://www.hikashop.com/support/documentation/54-hikashop-config.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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg0ODgzLW51bWVyby1kZS1mYWN0dXJlLW5vbi1jcmVlLW5vbi1pbXByaW1lLXN1ci1wZGY/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[laurent](/forum/user/268-laurent "View laurent's Profile")**
- [![laurent's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/268-laurent "View laurent's Profile") Topic Author
- [ Offline](/forum/user/268-laurent)

Less More

- Posts: 264
- Thank you received: 9
-
-
-

10 years 5 months ago [\#242200](#242200) by [laurent](/forum/user/268-laurent "View laurent's Profile")  Replied by *[laurent](/forum/user/268-laurent "View laurent's Profile")* on topic *[Numéro de facture non créé - non imprimé sur pdf](/forum/5-support-en-francais-french-support-/884883-numero-de-facture-non-cree-non-imprime-sur-pdf#242200 "-- HikaShop version -- : 2.6.2 -- Joomla version -- : 3.5 -- PHP version -- : 3.5.1  Bonjour,  Nous utilisons le plugin &quot;attach&#95;invoice&quot; 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&#95;invoice&#95;id et order&#95;invoice&#95;number notamment ) restent vides ce qui empêche le code prévu de fonctionner :")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODg0ODgzLW51bWVyby1kZS1mYWN0dXJlLW5vbi1jcmVlLW5vbi1pbXByaW1lLXN1ci1wZGY/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.055 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
