None of this has anything to do with your issue though. You're wanting invoice information to be substituted in, which we've a feature ticket to implement in addition to looking into other possible substitutions to support for the emails.
You should be able to make it a SELECT and place it in a query field then within CBSubs > Settings > Display > Invoices substitute in the query field. Not 100% sure this will work with query fields at this time, but it should.
Otherwise I'm guessing you could use onCbSubsAfterPaymentBasket trigger in CB Auto Actions or onCPayAfterPaymentBasketUpdated.
Please Log in or Create an account to join the conversation.
Your select query would be handling the entire increment process. So that's all possible depending on how you've wrote your query. I'm not sure if [FIELD_NAME] will work for it, but you can try the below usage to see if it'll substitute in the query fields value.I think that it should be an UPDATE, because my goal is to increment the ‘invoice’ number + 1 not only when the first payment status is ‘Completed’, but also when the next recurring payment status is ‘Completed’ and received, so we can follow and issue the invoices automatically. How otherwise your software, currently, will know that the invoice number has increased? You are increasing the number when the first payment is made, but not on the following.
onCbSubsAfterPaymentBasket fires after the basket is rendered. So it should exist in database and be safe to edit, but it could be unreliable. Ideally you'd need to act on a trigger that is fired only once when the basket is created, but I'm unsure if such a trigger exists. onCPayAfterPaymentBasketUpdated is fired when the basket has been updated.Could you describe the trigger and the event, please? What is the full auto action, like you’ve given thousands of examples before?
You'd use a query action on either of the triggers supplied then try to use your query in it.What is the full auto action, like you’ve given thousands of examples before?
That's something that is always handled by the payment processor. All of this information should be available through PayPal, etc.. There's also the payments database table that can be exported.I don’t know where you are, but our accountants need invoice for each payment that we receive, and I’d like to automate the process.
Please Log in or Create an account to join the conversation.
onCPayAfterPaymentBasketUpdated is fired when the basket has been updated.
Please Log in or Create an account to join the conversation.