#moe-invoiceitem-period

1 messages ยท Page 1 of 1 (latest)

silver remnantBOT
lapis valley
#

Hi ๐Ÿ‘‹

I"m still having a little trouble understanding what you are trying to do here. How are these events added and when do you want to bill for them?

scarlet slate
#

The invoice items are added by API

The invoice is created by API

We want to bill them on the 1st of the following month

I'll use a simplified example of what is actually wanted although of course this is all made up.

#1 - Invoice item created Jan 3rd @ 00:01 UTC
#2 - Invoice item created Jan 5th @ 00:01 UTC
#3 - Invoice item created Feb 1st @ 00:01 UTC

I want to make the invoice on Feb 1st at 03:00 UTC. I want the invoice to only have "January's items" -- So only #1 and #2 .

I want the invoice to have ONLY all invoice items created from Jan 1 00:00:00.000 UTC -> Jan 31 23:59:59.999 UTC and exclude the Feb item

But there does not seem to be a way with teh API to create an invoice and then add specific invoice items to it, if the invoice items was already created ๐Ÿค”

lapis valley
#

Unfortunately I think you would need to create the Invoice before you create the February line item. You would then use pending_invoice_items_behavior parameter with include to include all those invoice items.

scarlet slate
lapis valley
#

Wait, aren't we having the same discussion in two threads?

#

I think this feature is specific to how your revenue gets calculated, not what Invoice the items are assigned to. However it might be worth a quick test

scarlet slate
#

No this is a different topic, sorry for the confusion!

#

This is a weird behaviour I'm not sure about, while the other topic I made is a general workflow question

#

omg I confused myself.

THIS topic is the one with the general workflow, the OTHER is the weird behaviour which I am not sure about

#

For this one, thanks for the tips, we might experiment with the rev recognition and I think we're good on this thread here

lapis valley
#

Okay , thanks for helping me keep it straight