A
A
Alexander2020-10-06 10:53:57
1C-Bitrix
Alexander, 2020-10-06 10:53:57

What is the best way to implement a function that will report on orders?

Website online store editorial small business. Online food store, with delivery.
The site provides functionality that orders can be from corporate clients, when several buyers are attached to one organization and they can place orders under corporate accounts.

Corporate users in the order have the parameters ORGANIZATION_ID (organization ID), DELIVERY_ADRESS_ID (delivery address ID), TIME (the time before which employees of the organization can place orders).
That is, if a user is authorized under a corporate account and TIME - 12:15 is specified in the settings of his organization, then this means that he can only make purchases up to this period of time.

It is necessary that a general report be created at the time TIME arrives, the report will contain a list of orders for the organization that have been made by users related to it. What is the best way to implement a function that will report on orders? I had an idea to use an agent, but then I would have to make the agent run very often, with a frequency of several minutes, in order to check if there are those among the orders whose TIME has already expired. Is there any other option without the involvement of Bitrkis agents?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question