Closed (won't fix)
Project:
Commerce Invoice
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2012 at 14:53 UTC
Updated:
22 Jun 2015 at 10:40 UTC
Jump to comment: Most recent
Comments
Comment #1
c-logemannThe current "invoice number generation" is very special but also simple. If you choose "Infinite" invoice numbers you can make an offset if you change the last invoice number directly in the database to "1000". I think this should work for your needs. Try this in a test system.
Comment #2
UrmasZ commentedChanging invoice_id and invoice_number in the database does not help. It might work for the next order, but not for second order. I thing having option to change start number of counting is mush have functionality.
Comment #3
c-logemannI think the handling of invoice numbers is the core feature of this module. I am thinking of an improvement of this. Security and stability are the most important features. But a good way for customizing including a preset like you want to have is also very interesting.
Because the module is already in usage we need an upgrade path if we change the logic.
I change the issue title to "Add ability to change starting numbers of invoices" and mark it as feature request.
Comment #4
c-logemannTitle change.
Comment #5
cspitzlayI agree that making the invoice number generation more flexible would be great.
For a quick fix I think the following should work:
UPDATE commerce_invoice SET invoice_id = 1000, invoice_number = '1000' WHERE invoice_id = 1;
ALTER TABLE commerce_invoice AUTO_INCREMENT = 1001;
where invoice with 1 is a dummy invoice you've created, assuming you're starting with an empty table.
That way the first real invoice will get invoice_id 1001 and invoice_number "1001".
Comment #6
c-logemannThis feature is also discussed here: #1728106: Discuss the strategy for future invoice number handling: stability, flexibility and interface
Comment #6.0
c-logemannFound the solution for the first question
Comment #7
dwkitchen commentedClosing all Drupal 7 issues as this project will only be supported for Drupal 8