#waldeedle_invoice-lines

1 messages ¡ Page 1 of 1 (latest)

alpine solarBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215068206465810444

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

green rampart
#

this is the UI ordering for line items that I am asking about

chrome craterBOT
woeful minnow
#

Hi, we document there depending on the stage of the line items:

lines is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order.

Can you confirm which part you need clarificaiton on?

green rampart
#

invoiceitem in reverse chronological order

#

what field is being used for that order?

#

and if the time is the same is there a secondary sort as well or no?

#

I basically want to match what your UI is showing for my custom invoice but the line items are coming from stripe in an order I don't fully understand (looking at the event JSON)

woeful minnow
#

I think it's the line item created date, but I recommend that you thoroughly test this on your end in test mode.

green rampart
#

im not seeing a line item created date in the JSON object, hence my confusion lol

woeful minnow
#

I think so, I recommend that you test and confirm.

green rampart
#

thanks, will do

chrome craterBOT