#_ravg

1 messages · Page 1 of 1 (latest)

frigid daggerBOT
terse cradle
#

👋 happy to help

#

do you mean for one-off invoices or is this for subscriptions?

blazing hound
#

It's a one-off invoice that is linked to a subscription

#

We're creating some new invoices to correct old ones

terse cradle
#

if it's linked to a subscription it wouldn't be a one-off invoice

#

oh I see what you mean

#

then you just need to specify from_invoice

#

if you're doing a revision

blazing hound
#

Would it be possible without using from_invoice? Because I already have a script that "duplicates" the invoice with the additional fix, the only thing missing is the period =/

terse cradle
#

Oh my bad 😦

You can’t revise invoices that are attached to subscriptions after finalization. For these types of invoices, the Edit invoice button is disabled.

#

other than that there's no way of passing "period" to an invoice

blazing hound
#

oh I see
I will try using field effective_at
Thanks for the help! 🙂

terse cradle
#

the effective_at could be set in the past but I'm not sure if you should do that

#

I mean based on your use-case

#

if you're giving a discount/revising an old invoice for a subscription the effective date of the invoice is when you finalize it and not when the first invoice was due

blazing hound
#

So it sounds like the only option is to use invoice_from...
I'll check invoice_from and see how easy it is to adjust my script

#

Thanks!

terse cradle
#

you might not be able to use it in subscriptions if the invoice is already finalized

#

as I mentioned

You can’t revise invoices that are attached to subscriptions after finalization. For these types of invoices, the Edit invoice button is disabled.

blazing hound
#

Oh :/
The invoices have been finalized and paid as well

terse cradle
#

yes so that's not applicable

#

why not just a negative line in the upcoming invoice?

#

or a positive one, depending on what you're trying to adjust

blazing hound
#

Some invoices from last year were missing the tax amount, and now we need to charge that amount. Some customers have multiple invoices (8 invoices in some cases), and we're creating one invoice for each old invoice to make it easier for customers to understand what they related to. And the only thing missing is the "period"

terse cradle
#

I think you can create one invoice with multiple line items and have a specific description for each line item explaining that this the tax for invoice x for the period y

blazing hound
#

Yeah I guess we'll need to change our approach for that. I'll talk to our finance dep. and check the possibilities.
Thanks once again!

terse cradle
#

sure thing, let me know if you need any more help