#Raamyy

1 messages · Page 1 of 1 (latest)

worthy apexBOT
coral flame
#

Hello! Why are you trying to add invoice items to an upcoming invoice? Are you just trying to guarantee that when that invoice is created in the future those invoice items will be included on it?

short crypt
#

@coral flame There is some extra charge logic through my application. So when the invoice is upcoming I query my application and calculate the extra charge that should be added to the invoice.

#

for example if the invoice is 150$, then i check that extra 5$ are needed to be added to the invoice due to his usage in our system. So I add extra invoice item with amount 5$ where the total invoice should be 155$

coral flame
#

Instead of doing that on invoice.upcoming I'd suggest doing this on invoice.created - upcomig Invoices haven't been created yet, so there's no way to add extra invoice items to them

short crypt
#

As per what I understand from the docs, It could be handled from here.. @coral flame

#

But when I check the add extra item, it adds to a price_ not an invoice