Numéro de facture

  • Posts: 37
  • Thank you received: 0
10 years 1 month ago #146987

Bonjour à tous,

Je viens vers vous concernant les numéros de facture qui se génère automatiquement car je ne parvient pas à avoir ce que je souhaite.
Enfaite je souhaite avoir un format de ce style : F2014-0001 puis 0002 ...

Toute aide est la bienvenue !
Merci

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
10 years 1 month ago #147053

Bonjour,

www.hikashop.com/support/support/documen...nfig.html#main_order

Order number format : This option enables you to set the format of order numbers. It is only available in commercial versions of HikaShop. By default, the order number uses letters and numbers interleaved together. this is represented here with the tag {automatic_code}. If you want to use the order number directly, you can use the tag {id}. In the tag id, you can specify the number of numbers with the size attribute. For example, {id size="5"} will result in 00123 for the order with the id 123. You can also use the date tag in order to insert date information. For example, {date format="m/Y"} will result in 02/11 for an order made in February 2011. You can combine them to generate pretty advanced order numbers like the format RE-{id size="5"}/{date format="m/Y"} used for German accounting which will result in RE-00123/02/11 for the order 123 made on February 2011.


Je dirais donc:
F20{date format="Y"}-{id size="4"}

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: 37
  • Thank you received: 0
10 years 1 month ago #147489

Merci c'était presque ça (pas besoin du 20). :)

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

Time to create page: 0.060 seconds
Powered by Kunena Forum