Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Auto Action that will fire ONLY on the following recurring payments but not on the first one

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #277071 by krileon

What do you think? Could it be improved?

For the invoice number I'd of just had a single query field calculate the next invoice number and used it in CBSubs > Settings > Display > Invoices as there's less chance of an existing invoice being accidentally incremented if the trigger fires in an unexpected scenario. Should be fine though as long as your tests are looking ok.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: ricco1

Please Log in or Create an account to join the conversation.

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 9 months ago - 8 years 9 months ago #277093 by ricco1

krileon wrote: For the invoice number I'd of just had a single query field calculate the next invoice number and used it in CBSubs > Settings > Display > Invoices as there's less chance of an existing invoice being accidentally incremented if the trigger fires in an unexpected scenario.


The problem is that you are not sending to PayPal the invoice number but the proforma invoice number.
Last edit: 8 years 9 months ago by ricco1.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 9 months ago #277119 by krileon
You can specify the format for both. You should be able to use substitutions in both as well. Change "Numbering of invoices" to "Proforma invoice number at order time, then different final invoice number once paid" and you can specify the per proforma invoice number format in addition to invoice number format.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 9 months ago - 8 years 9 months ago #277136 by ricco1
That option is already set as you are saying, both:

"Increment each consecutive Proforma Invoice [NUMBER] by"

AND

"Increment each consecutive Invoice [NUMBER] by"

are set to 0.

What I'm talking about is that you are sending the `proformainvoice` number to PayPal instead the `invoice` number and if I set the `proformainvoice` number to 1 every time someone creates a basket that number is changed and the wrong number is sent to PayPal.
Last edit: 8 years 9 months ago by ricco1.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 8 months ago #277180 by krileon
The below should work to allow a CB field to act as the invoice number. The CB field you'd use is a query field that calculates the invoice number. It would always need to return the next invoice number.

Proforma Invoice number format: [cb:userdata field="FIELD_NAME" /]
Invoice number format: [cb:userdata field="FIELD_NAME" /]

Please provide a screenshot of your invoice numbering format.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • ricco1
  • ricco1
  • OFFLINE
  • Posts: 310
  • Thanks: 8
  • Karma: -7
8 years 8 months ago #277190 by ricco1
Here you are:



For me it is not a problem now as I've kind of turned off your invoices numbering and made my own with the 3 UPDATE queries in the autoAction I've posted above.

Now I've noticed a bigger problem: the invoicing fields are mandatory but if the user doesn't change any of the pre-populated invoicing fields nothing gets saved in the CB invoicing fields. And because I'm including them fields in the emails with your substitutions, namely:

[cb_subs_inv_payer_business_name]
[cb_subs_inv_first_name]
[cb_subs_inv_last_name]
[cb_subs_inv_address_street]
[cb_subs_inv_address_city]
[cb_subs_inv_address_state]
[cb_subs_inv_address_zip]
[cb_subs_inv_address_country]
[cb_subs_inv_contact_phone]
[cb_subs_inv_vat_number]

I get empty results and that information is missing in my email invoices.

Could you advice how to workaround that issue please?
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum