Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2009
    Posts
    69
    Plugin Contributions
    0

    Default Can I have secondary invoice number based on date? YYYYMMDDxxxx

    Hi.
    I need secondary invoice number beside of primary unique invoice number? It should be based on date of invoice. YYYYMMDDxxxx
    Is it possible? I can add new field to invoice table and display to screen. But I can't figure out xxxx (1,2,3,4...) auto increase every time customer place an order.
    Thank you.

  2. #2
    Join Date
    Feb 2009
    Posts
    69
    Plugin Contributions
    0

    Default Re: Can I have secondary invoice number based on date? YYYYMMDDxxxx

    No one can answer this?

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,528
    Plugin Contributions
    127

    Default Re: Can I have secondary invoice number based on date? YYYYMMDDxxxx

    Why not just use the invoice number as xxxx?
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Feb 2009
    Posts
    69
    Plugin Contributions
    0

    Default Re: Can I have secondary invoice number based on date? YYYYMMDDxxxx

    I need solution, please don't spam.

    Quote Originally Posted by swguy View Post
    Why not just use the invoice number as xxxx?

  5. #5
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Can I have secondary invoice number based on date? YYYYMMDDxxxx

    Quote Originally Posted by gsmsalers View Post
    I need solution, please don't spam.
    And you NEED to read the replies before come out with #$%*^% like that

    swguy is very well respected and very helpful on this site.

    He suggested a perfectly reasonable and relatively easy solution to the question you asked.
    Use the YYYYMMDD as you suggested then append the zen-cart allocated inv number.
    So if the allocated Invoice number is 5432
    Then your new secondary INV number would be 20131009 + 5432
    ie: 201310095432

 

 

Similar Threads

  1. v153 How Do I Specify Number of New Items on Secondary Pages?
    By DK_Scully in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 26 Mar 2015, 10:55 PM
  2. How to Change Invoice Number to YYYYMMDDxxxx?
    By iddy in forum Managing Customers and Orders
    Replies: 15
    Last Post: 1 Mar 2012, 07:03 PM
  3. v150 Can I send a new invoice? Can I collect tax ID number?
    By raf696 in forum General Questions
    Replies: 1
    Last Post: 19 Jan 2012, 07:30 PM
  4. [Not a bug] Adding date to invoice number not working
    By racinjason in forum Bug Reports
    Replies: 1
    Last Post: 17 Jan 2012, 02:45 AM
  5. customer's order invoice purchase date -- can I add the time too?
    By george_usa in forum Managing Customers and Orders
    Replies: 3
    Last Post: 7 Apr 2011, 11:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg