Hello,
1080 is probably post_ID if the invoice object.
83592127 is invoice id for reference in payment systems or receipts etc.
There are several numbers associated with each invoice.
post_ID
The 1080 is likely the post_ID as Anton said – i.e. the number of the actual post within the database. (This is an id as per other normal posts/pages etc).
invoice_id
I think the eight digit number (invoice_id) is generated at random for each invoice and used for ‘reference in payment systems or receipts etc’.
custom_id
There is also a custom_id that can be set – this is in addition to the invoice_id and is stored with each invoice as metadata. (if its not set by user I think it gets set to invoice_id by wp-invoice).
The invoice number that you see when creating an invoice / the number that you change it too is its custom_id. The invoice_id will still be a separately generated random number per invoice (as shown in publish section). You can change the custom_id of an invoice to anything that you want, however, wp-invoice creates new invoices by searching for the highest custom_id and then adds one.
I have posted separately about a temporary fix for the %invoice_id% in emails here – custom id in emails
The %invoice_id%
Gazzamit, thanks for the help and the tips.
83592127 is invoice id for reference in payment systems or receipts etc.
Not sure why there would need to be both an invoice ID (custom_id) generated for the invoice and a separate, hidden, random invoice ID (invoice_id) for payment reference. The customer and I are both using custom_id for payment reference. The payment gateway gets the custom_id, too, right?
The invoice_id is a random number associated with an invoice that once generated cannot be changed. The custom_id can be changed at will.