Generates a new invoice number.
The id of the recipient of the invoice.
The address data of the recipient of the invoice.
An optional transaction from outside to make sure any changes only apply when the transaction is committed.
Optional
nameAbbreviation: stringAn optional name abbreviation if you don't want to generate one.
A promise of the new invoice number.
Generates a temporary invoice number with the prefix "TEMP". This does not increase the number of invoices which can be helpful if you create an invoice that might not be sent out.
The id of the recipient of the invoice.
The address data of the customer.
Optional
nameAbbreviation: stringAn optional name abbreviation if you don't want to generate one.
A promise of the new temporary invoice number.
Default implementation of the invoice number service.