Opensourcepos: unique invoice number

Created on 14 Oct 2017  路  4Comments  路  Source: opensourcepos/opensourcepos

Got error when input "sales by invoice" said "Please enter an unique invoice number"

?

pending question

Most helpful comment

Yes, the {CO} token assigns an invoice number representing the current count of records in the ospos_sales table. Since you deleted some records that throws the count off.

If you want a quick fix then change the invoice format to {ISEQ} and set the last used invoice number to the last one that was actually assigned as the invoice.

I believe this is documented in the Wiki.

All 4 comments

This is caused by a problem with your data or a configuration issue. If you cannot figure it out for yourself and need some free support or sympathy please provide the requested environment information and some details about how you are configured related to invoices

Probably your invoice counter is not setup correctly or you changed it yourself? It tries to complete an invoice with number that is already in the db

untitled
this is my config,
I deleted some invoice sales from the "takings", is that the cause ? then how do I fix it ?

Yes, the {CO} token assigns an invoice number representing the current count of records in the ospos_sales table. Since you deleted some records that throws the count off.

If you want a quick fix then change the invoice format to {ISEQ} and set the last used invoice number to the last one that was actually assigned as the invoice.

I believe this is documented in the Wiki.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

esbyrt picture esbyrt  路  5Comments

asakpke picture asakpke  路  4Comments

AbanoubMakram picture AbanoubMakram  路  4Comments

tekkeur picture tekkeur  路  4Comments

objecttothis picture objecttothis  路  4Comments