RFC: Orders and Invoice numbers

7 anos atrás
From what I understand so far, the Order ID is used on the invoice as an invoice number.

The problem is that when an order is deleted, the sequence of invoices is broken and you'll end up with a gap in your invoice numbering. I can tell for other countries, but in the Netherlands one of the basic rules is invoice numbering should be sequential. Tax officers frown upon deviations.

Also in situations where one is migrating from one shop (like me, from prestashop) to NopCommerce you don't want to break the sequence.

Furthermore, invoice numbers are sometimes preceeded with the current year i.e. '2014020'

Therefore I would like to suggest the following CFR:
1. Add a field 'InvoiceNumber' to the Order table
2. Create a changable setting that allows for changing the upcoming invoice number.
7 anos atrás
I agree with this...
5 anos atrás
Hi

Having a seperate invoice number is key for using Nop as Invoice platform.
Order number is not the same as Invoice number. Order date is not the same as invoice date.
An invoice can only be created only when order is complete and with his own invoice date. These are legal rules in EU.

Maybe I missed it, but is this now included as a standard feature in Nop?
if not, can you please add this

Thanks
Peter
1 mês atrás
Is there any progress on this? These regulations do apply in Belgium to and at this moment i cannot get this right because in some cases the sequantial numbering is broken..
1 mês atrás
@undersiege89 i have done this for one of my client. i have manged another parallel table where i track invoice number incremental for every month. i have update this number by picking order completed event and replace default nopCommerce invoice number with this number
1 mês atrás
There an open work items for it (on hold)
https://github.com/nopSolutions/nopCommerce/issues/2556
1 mês atrás
undersiege89 wrote:
Is there any progress on this? These regulations do apply in Belgium to and at this moment i cannot get this right because in some cases the sequantial numbering is broken..

I would be interested to see the rule that says
- you can never cancel an invoice or never issue an out of sequence invoice number or not have broken sequence.
- you can not use the order number as the invoice number

I just read on one website "A unique, sequential number" which is what nopCommerce does

What is the URL for the rules you need to comply with ?
1 mês atrás
Yidna wrote:
Is there any progress on this? These regulations do apply in Belgium to and at this moment i cannot get this right because in some cases the sequantial numbering is broken..
I would be interested to see the rule that says
- you can never cancel an invoice or never issue an out of sequence invoice number or not have broken sequence.
- you can not use the order number as the invoice number

I just read on one website "A unique, sequential number" which is what nopCommerce does

What is the URL for the rules you need to comply with ?


There is nothing like just an url to proove this. It is a basic rule in accountancy according to the Belgium law (and in extend European law) require to have unique incremented invoice numbers for which the sequence never can be broken. In nopcommerce the numbers are unique but the sequence can be broken. The most simple case: a customer places an order, which he later never pays. Therefore the order will not be fullfilled therefore the order ultimattely will be canceled. Since the unique number of the order in nopcommerce is also used for the invoice number, the number sequence will be broken. A canceled order does not have a fullfilled invoice therefore the invoice should never exist and the number should not be incremented. This is a violation of the Belgium law. The perfect solution would be a seperation between orders and invoices. Only a payed order should result in an invoice.

Ps if i rememberr correctly, prestashop, magento and opencart have these functionalities (seperate order and invoices)
1 mês atrás
Certainly the option you propose is valid to have a separate invoice generated sometime after an order is prepared ready for shipment.

But the actual requirement as detailed sounds like this is a misinterpretation of the law.
Ideally there should be a website with the information somewhere so a regular person can understand the specific requirements.
What I read so far does not indicate the exact requirements as detailed in this thread.

Of course there needs to be an increasing sequence number
But the idea that you can never have a cancelled (refunded - not paid) invoice (number) in the sequence does not seem correct.

So in this case I don’t know what a separate invoice and order could do to help
Just because the ‘order’ is paid does not change anything.

Someone creates an order then you are ready to supply the products, someone manually creates a separate invoice with a different number to the order. Later there is an issue after the invoice is created - say the products cannot be supplied or damaged in transit or whatever.
Maybe the products provided do not match the order or the customer does not like them and you provide refunds in this case.

One option is the invoice is cancelled in the accounting system and the customer is provided with a refund. So then you are left esentailly in the same situation , having a non-sequential sequence of paid invoice numbers.
If the law says required you need to record that cancelled invoice somewhere
then it is the same as having a cancelled order number recorded somewhere

Anyway this is how it works in other parts of the world maybe it is different there.

Regardless, what ever is required can easily be fixed with a plugin :)
4 semanas atrás
Yidna wrote:
Certainly the option you propose is valid to have a separate invoice generated sometime after an order is prepared ready for shipment.

But the actual requirement as detailed sounds like this is a misinterpretation of the law.
Ideally there should be a website with the information somewhere so a regular person can understand the specific requirements.
What I read so far does not indicate the exact requirements as detailed in this thread.

Of course there needs to be an increasing sequence number
But the idea that you can never have a cancelled (refunded - not paid) invoice (number) in the sequence does not seem correct.

So in this case I don’t know what a separate invoice and order could do to help
Just because the ‘order’ is paid does not change anything.

Someone creates an order then you are ready to supply the products, someone manually creates a separate invoice with a different number to the order. Later there is an issue after the invoice is created - say the products cannot be supplied or damaged in transit or whatever.
Maybe the products provided do not match the order or the customer does not like them and you provide refunds in this case.

One option is the invoice is cancelled in the accounting system and the customer is provided with a refund. So then you are left esentailly in the same situation , having a non-sequential sequence of paid invoice numbers.
If the law says required you need to record that cancelled invoice somewhere
then it is the same as having a cancelled order number recorded somewhere

Anyway this is how it works in other parts of the world maybe it is different there.

Regardless, what ever is required can easily be fixed with a plugin :)


Yidna,

The case you have as an example is also covered by accountancy law. When an invoice has been created and if there is a need to change/alter something due to cancellations, something broken, a partial refund, etc.. a credit note needs to be made. A credit note refers to the invoice and its unique number. This means that once an invoice has ben created, it can never be deleted or altered. This guarantees also that the sequence cannot ever be broken. Any modifications results in credit notess and eventually new invoices.

A shortend defintion of credit note (https://eespa.eu/glossary/credit-note/): a credit note is a commercial document issued by a seller to a buyer following the creation of the invoice in circumstances where there is a mistake or fault in goods and service delivered by the seller or where contract terms permit a refund, in effect requiring a corrective invoice The seller usually issues a credit note for the same for a lower amount than the invoice, and then repays the money to the buyer or sets it off against a balance due from other