Thread: invoice number

Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Plugin Contributions
    0

    Idea or Suggestion invoice number

    Hi all :
    on my shop runing on 1.38 everything is going well butnow i have a small problem reguarding invoices . My fiscal conultent asked to to change the invoices number because of italian law ... on invoices here it must be relative as a year .. for example order 1 on 2009 must be 1/2009 or 1-2009 or 1.2009 or 1(2009) . for now i remake alla invoices manually but it might be a way to change the counter and rest it every year ? so how to make to invoice numer different from order number. or how to make another counter for invoices that don't depend on order number .

    Thank you all any help is very apreciated ..

  2. #2
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: invoice number

    It's easy to modify the order number shown on the invoice so that it includes the year of the order.
    For example, if you have order number xyz, ordered in 2008 and want to display it on the invoice as Invoice No. xyz-2008 you can edit the file admin/invoices.php...
    find this line of code at about line 141:
    PHP Code:
        <td class="main"><b><?php echo ENTRY_ORDER_ID $oID?></b></td>
    and replace it with this:
    PHP Code:
        <td class="main"><b><?php echo ENTRY_ORDER_ID $oID '-' date(Y,strtotime($order->info['date_purchased'])) ; ?></b></td>
    Then all your invoice numbers will include the year of the order, without ever having to update anything manually.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  3. #3
    Join Date
    Apr 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: invoice number

    as i mean i saw that after 33 order ... but i want to remake everything normaly that it will start since 34/2009

  4. #4
    Join Date
    Apr 2008
    Posts
    3
    Plugin Contributions
    0

    Default Re: invoice number

    yes but now that i have about 33 orders ' i need to rest shop ' ?

 

 

Similar Threads

  1. Getting Duplicate Invoice Number and Invoice not showing up
    By jennysack in forum General Questions
    Replies: 1
    Last Post: 19 Aug 2011, 02:53 PM
  2. Invoice number
    By hara in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 1
    Last Post: 16 Dec 2010, 08:06 PM
  3. Resetting invoice number
    By Byron Dooley in forum Customization from the Admin
    Replies: 1
    Last Post: 30 Nov 2010, 09:29 PM
  4. Invoice number
    By raf696 in forum Managing Customers and Orders
    Replies: 2
    Last Post: 15 May 2010, 08:57 AM

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