#Raamyy
1 messages · Page 1 of 1 (latest)
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?
@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$
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