#Jasmeet - tax rate

1 messages · Page 1 of 1 (latest)

brisk drum
cursive cedar
#

Yeah, I have seen that. Is there any way to update all line items in a single API call?

#

Some of the invoices have 10s of invoice line items and we have included a feature to set a tax rate for whole invoice which should udpate tax rates for all line items.

brisk drum
cursive cedar
#

Is the only way to do this is by updating each invoice item one by one?

brisk drum
#

But not a way to specify different ones for each invoice item in 1 call

cursive cedar
#

Oh okay! Thanks

cursive cedar
brisk drum
#

Just set the default on the invoice then

#

Last link I sent

cursive cedar
#

I want to update all invoice items with a single tax rate.

Suppose I have 10 invoice items already created, I just want to tax rate for all of them.

#

Maybe I am not clear, sorry.

brisk drum
#

Does this not do what you want?

cursive cedar
#

This is the UI of my app. By changing this field I want to update tax amount of all invoice items.
Updating the default_tax_rates does not updates the tax amount of already created invoice items

#

If a user changes the tax rate, it should update the tax amount for already created line items too. So, I am asking if that can be done in a single API call as some invoices have a lot of invoice items and updating each invoice item causes a lot of latency.

brisk drum
#

So you have invoice items that already explicitly have a tax_rate set?

cursive cedar
#

No

#

Updating default_tax_rate updates the default tax rate of an invoice but it does not updates the tax amount of already created invoice items.

#

Hey, it works.

#

I was passing an empty array [] for no tax rate.

#

⤴️ This didn't give an error but it didn't removed the default tax rate also.

#

I just checked that we need to pass an empty string.

#

I am really sorry. Thanks for the help

brisk drum
#

No problem. Glad you got it