1b.app
Link copied -

How to generate a unique lineup

http://optmaster.crm-onebox.com
There is a system field "Model range" in the product card. We use it to unload varieties on the prom.
What is the point, when creating a new product in CPM, we need to set the lineup (a set of numbers) and then set it to the rest of the goods of this lineup.
But the problem is that I can write "666666", what if there is already such a lineup? But when recording, I won’t get an error that there is already one, but I don’t understand how it already exists or not.
We need to somehow generate it automatically, but here's how to do it so that it checks if there is already one or not - I don't know, please tell me how best to do it.
Оригинальный вопрос доступен на версии: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:

Hello. And how do you initially determine which mod. number to prescribe in the product? An action can be done that checks this lineup if it has changed, for example, but it is not clear how you will change it and come up with it
15.01.2021, 18:21
Оригинальный комментарий доступен на версии: ru


Bodyako Dmitry
dev wrote:
Hello. And how do you initially determine which mod. number to prescribe in the product? An action can be done that checks this lineup if it has changed, for example, but it is not clear how you will change it and come up with it

I need boxing itself to be a general lineup, for example, I check the box for additional. the "Generate" field and after saving it generates, but so that this code is unique.
15.01.2021, 18:23
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Оригинальный комментарий доступен на версии: ru

Those. do you need to generate a code and apply it to all products of the same old model range? Let's make the action, if the "additional field" checkbox is enabled, generate a code, put down all products with the same mod. next to it and turned off the checkmark. What code do you care? Can I just make 32 digits from numbers and letters? 5h
18.01.2021, 15:46
Оригинальный комментарий доступен на версии: ru


Bodyako Dmitry
dev wrote:
Those. do you need to generate a code and apply it to all products of the same old model range? Let's make the action, if the "additional field" checkbox is enabled, generate a code, put down all products with the same mod. next to it and turned off the checkmark. What code do you care? Can I just make 32 digits from numbers and letters? 5h

I don't need it
Once again, there is field with the checkbox type "Generate model range", I put a tick, click save, in the system field Model range, in the same product, I need to generate a model range that is not yet in the CPM, how to do this?
18.01.2021, 15:48
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Оригинальный комментарий доступен на версии: ru

well i uh

Korop Vladislav Pavlovich
Employee wrote:
and then assign it to the rest of the products of this model range.

are you going to do it by hand?
18.01.2021, 15:50
Оригинальный комментарий доступен на версии: ru


Bodyako Dmitry
dev wrote:
are you going to do it by hand?

yes, by hand, you need to generate only in the 1st product
18.01.2021, 15:51
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Оригинальный комментарий доступен на версии: ru

Shouldn't the checkbox be unchecked? You can then do such an action in 2 hours. Simply, if the checkbox is enabled, it will take the product id, generate md5 from it and insert it into the mod field. row
18.01.2021, 15:53
Оригинальный комментарий доступен на версии: ru


Bodyako Dmitry
dev wrote:
Shouldn't the checkbox be unchecked? You can then do such an action in 2 hours. Simply, if the checkbox is enabled, it will take the product id, generate md5 from it and insert it into the mod field. row

We need an option without modifications, in a standard way how to set up something like this
18.01.2021, 15:57
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Оригинальный комментарий доступен на версии: ru

if I knew such, probably I would not suggest revision?
18.01.2021, 16:01
Оригинальный комментарий доступен на версии: 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