Question about uniqueNumbersAPI

Hi, it’s possible to Use this API to get the next Line of Current Invoice Details?

i’ve tested in a new entityListener of InvoiceDetails, but starts with 1 and not restart on each document. It’s posible?

Please look at this comment: https://www.cuba-platform.com/discuss/t/using-counter-in-company-table#comment-1812