#yi_code

1 messages ¡ Page 1 of 1 (latest)

steep ledgeBOT
#

👋 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.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 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/1408000408785518652

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

native field
#

hey! are you getting any errors or unexpected results when trying to use this function? do you have any example invoice IDs where this isn't working for you?

glacial root
#

No, still refactoring.

#

No deployed yet.

#

I want to know the code best practices

native field
#

your function looks correct, but I'd recommend running the code to see if it achieves the desired result

#

if you run into any problems then we can help to debug, but we don't have official best practices to share about this

glacial root
#

All right

#

And in total_taxes, what does each amount stand for? Every invoice item tax amount?

native field
#

checking now!

native field
#

ok, I unfortunately haven't been able to find the possible values for the 'total_taxes.type' property, so I'm going to create a support case directly with our team to follow up on that for you

#

you're correct that each amount within 'total_taxes' relates to the tax amounts applied to each invoice item