1b.app
Link copied -

Checking a vendor order in a sales order

A question. Is it possible to make an order check to the supplier for each item in the sales order? It would be convenient the following, if when the "Create process to the supplier" action was triggered, the supplier setting (order to the supplier) did not appear, then throw an error and disable the transition. Or, if failed, then jump to some status. And also, set such an action to be checked once an hour, if at least one of the goods does not have an order to the supplier on a certain status, transfer the order to another status. Can this be done?
Original question is available on version: ru

Answers:


It would be convenient the following, if when the "Create process to the supplier" action was triggered, the supplier setting (order to the supplier) did not appear, then throw an error and disable the transition.

Here the logic is not clear - if there is a process for the supplier for the product of the process, then give an error? Or vice versa to issue if there is no process to the supplier created?
25.10.2021, 17:32
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:

It would be convenient the following, if when the "Create process to the supplier" action was triggered, the supplier setting (order to the supplier) did not appear, then throw an error and disable the transition.

Here the logic is not clear - if there is a process for the supplier for the product of the process, then give an error? Or vice versa to issue if there is no process to the supplier created?

If there is no order to the supplier, then throw an error. Or when it was not possible to create an order to the supplier for at least one product.
25.10.2021, 19:21
Original comment available on version: ru


If there is no order to the supplier, then throw an error. Or when it was not possible to create an order to the supplier for at least one product.

Duck here the question is whether to try to create or just check if they exist or not?
After all, if you have an error while trying to create an order, will you see it anyway?
26.10.2021, 16:25
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:

If there is no order to the supplier, then throw an error. Or when it was not possible to create an order to the supplier for at least one product.

Duck here the question is whether to try to create or just check if they exist or not?
After all, if you have an error while trying to create an order, will you see it anyway?

For example, the order to the supplier was deleted, respectively, the setting to the supplier disappears in the order to the client. Or the supplier does not have a business process or contact filled out, then they will skip it, but not create it, which is bad :)
01.11.2021, 15:31
Original comment available on version: ru


For example, the order to the supplier was deleted, respectively, the setting to the supplier disappears in the order to the client. Or the supplier does not have a business process or contact filled out, then they will skip it, but not create it, which is bad :)

This is not an answer to my question - do I need to check that there is no order and give an error, or should I still try to create it? After all, your creation is already available
01.11.2021, 16:14
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:

For example, the order to the supplier was deleted, respectively, the setting to the supplier disappears in the order to the client. Or the supplier does not have a business process or contact filled out, then they will skip it, but not create it, which is bad :)

This is not an answer to my question - do I need to check that there is no order and give an error, or should I still try to create it? After all, your creation is already available

Try to create. And if it fails, then throw an error.
01.11.2021, 16:39
Original comment available on version: ru


Try to create. And if it fails, then throw an error.

Duck and now you are not trying to create an action? And if there is an error in the process being created (for example, some action will be thrown out) - you will see it.
Describe your logic from A to Z on the example of some process (better already where there is a partial order to the supplier)
01.11.2021, 16:49
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:

Try to create. And if it fails, then throw an error.

Duck and now you are not trying to create an action? And if there is an error in the process being created (for example, some action will be thrown out) - you will see it.
Describe your logic from A to Z on the example of some process (better already where there is a partial order to the supplier)

OK. There are two situations. First, the supplier has some data not filled in, the human factor. As a result, when switching to the "Out of stock" status, where there is an action to create / update an order to the supplier, there is no order to the supplier https://monoshop.crm-onebox.com/344960/
Second. The supplier is correctly specified and has already been created after the transition (Fig. 1) https://monoshop.crm-onebox.com/344964/ , but then the product was deleted in the process for the supplier (Fig. 2) https://monoshop.crm-onebox.com/344965/
02.11.2021, 20:53
Original comment available on version: ru

OK. And what should be in this or that case?

OK. There are two situations. First, the supplier has some data not filled in, the human factor. As a result, when switching to the "Out of stock" status, where there is an action to create / update an order to the supplier, there is no order to the supplier https://monoshop.crm-onebox.com/344960/

here you need to throw an error, since we cannot create an order for the supplier for the product, because the supplier, for example, is not specified?

Second. The supplier is correctly specified and has already been created after the transition (Fig. 1) https://monoshop.crm-onebox.com/344964/ , but then in the process the product was deleted for the supplier (Fig. 2) https://monoshop.crm-onebox.com /344965/

Duck seems to add the goods again to the order to the supplier? The action looks for a non-deleted product in the order to the supplier, if not, it adds it?
03.11.2021, 15:37
Original comment available on version: ru


Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
here you need to throw an error, since we cannot create an order for the supplier for the product, because the supplier, for example, is not specified?

If the value is not specified in the "Supplier" field, it will throw an error anyway. Namely, if an order was not created due to the reason, for example, that the supplier himself has the wrong bp or there is no supplier contact.

Tyndyk Maxim Vadimovich
OneBox production
Administrator wrote:
Duck seems to add the goods again to the order to the supplier? The action looks for a non-deleted product in the order to the supplier, if not, it adds it?

If you then resave it, it will be ok, but if the order is simply not touched, then it can hang like that for a lot of time, according to the same example (rice) . And we want to avoid this.
04.11.2021, 13:15
Original comment available on version: ru


If the value is not specified in the "Supplier" field, it will throw an error anyway. Namely, if an order was not created due to the reason, for example, that the supplier himself has the wrong bp or there is no supplier contact.

If there is no contact - and so it will be an error.
To modify the error if there is no power supply - 1 hour.

If you then resave it, it will be ok, but if the order is simply not touched, then it can hang like that for a lot of time, following the same example (Fig). And we want to avoid this.

I still don't know what else to do...
04.11.2021, 13:44
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment