Hello
Following this
topic
, we have been obliged to pay for a development with our accounting company to integrate CBsubs baskets/payments with their invoicing system.
So we have now two codes auto actions linking to their API system based on the trigger OnCPayAfterPaymentStatusUpdateEvent
1) For recurring gateways
Trigger : OnCPayAfterPaymentStatusUpdateEvent
Conditions :
[var2_payment_status] = Completed
[var2_gateway_account] is REGEX /1|2|5|6|12/ (automatic and recurring gateways)
2) For manual and offline gateways
Trigger : OnCPayAfterPaymentStatusUpdateEvent
Conditions :
[var2_payment_status] = Pending
[var2_gateway_account] is REGEX /6|7|8|9/ (offline gateways)
We retrieve the variables from the basket and add the date of payment to the invoice number for the recurring ones.
This system seems to work fine but we would need to go back to the 1st of June in order to also issue pdf invoices since the beginning of this month
Of course we cannot use the trigger for past events OnCPayAfterPaymentStatusUpdateEvent, so do you have an idea of a trigger and time conditions that we could use once in order to manually issue all the invoices from the 1st of june from the backend ?
That would be great to avoid to have to manually redo all this month invoices for our customer
If you are interested this is a very nice accounting and scanning software
ipaidthat.io
Thanks
Jean