Jump to content
  • 0

Multiple order in same period bug


Ali Özen

Question

Hello,
We have a problem with the domain registrar system we are developing.
Lets assume there are two client, these are client1 and client2. They both want to buy "a.com".
client1 bought and paid the invoices.
Before the cronjob run, client2 order for "a.com" and paid the invoices.

When cronjob runs, "ProvisionPaidPendingServices" triggers. 
Run order for that task is "asc client_groups". 
I mean, if client2 is in "client_group id:1" and client1 is in "client_group id:2", client2 can get the "a.com". 
I think it should be related with invoice date_closed. Shouldn't this be in order of payment? What do you think? This is a sirius problem for us.

I have a 2nd question, related with this one.
What if we didn't wait the cronjob when invoice closed? After the payment of invoice can we trigger the module instantly? Is Invoices.setClosed event can handle this or could it occurs another problems?
 

*Also asked on discord, developers channel on 23.11.2020 12:28

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...