1b.app
Link copied -

Display payment method by legal entity

Please make it possible to restrict the display of payment methods depending on the selected legal entity, in the same way as it was done with the display of payment accounts
Original question is available on version: ru

Answers:

Hello. To make a similar functionality on the site approximately 5 hours. Please provide a link to the box where it needs to be done - I can say more precisely
04.09.2020, 11:53
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Danilov Sergey Sergeevich
Client wrote:
Please make it possible to restrict the display of payment methods depending on the selected legal entity, in the same way as it was done with the display of payment accounts

It can be implemented through directories, but it will be necessary to duplicate the payment methods in the directory, in the BP it will be possible to configure the connection in such a way that when you select a legal entity, you will see only the payment methods that are added for legal entities. faces.
I don't think that you will have legal entities and payment methods added every day, so this option should work.
I write here only URL prefixes to links, so as not to publish links.
For this you need:
1) Here /admin/shop/custom/object/
Create 2 directories:
- reference book of legal persons /admin/shop/custom/object/12/
We add 1 field to it
- directory of communication of legal entities and payment methods /admin/shop/custom/object/11/
Add 2 fields to it (payment method and legal entity) /admin/shop/custom/object/11/field/
+ link the field "legal entity" with the directory of legal entities https://prnt.sc/ud89q3
2) Create additional fields and link them to the directory
/admin/shop/orderfield/150/ - we associate this with the first directory https://prnt.sc/ud8b3f
/admin/shop/orderfield/149/ - and this field is associated with directory 2 (where payment methods are) https://prnt.sc/ud87qq
3) Fill in the reference book with values
Here is the legal entity https://prnt.sc/ud8de8
Here are the payment methods https://prnt.sc/ud8dw7
4) Next, display these fields in the business process interface https://prnt.sc/ud8cqt
As a result, we get https://prnt.sc/ud8e68
Here is an example process /admin/customorder/issue/2828203/edit/
5) But we get values in additional fields, and these are not standard fields, so we need to copy the data into the fields:
- hide the standard fields Payment Method and Legal. face
- at the stage of the business process or better at the procedure https://prnt.sc/ud8fl5 add actions https://prnt.sc/ud8krq https://prnt.sc/ud8kxa
But there is a caveat - a legal entity can only be filled in using its id, so we return to the 1st directory and add the https://prnt.sc/ud8il3 field to it, which also needs to be filled in the directory, here is its ID https:/ /prnt.sc/ud8jjp write to the directory https://prnt.sc/ud8js6
Create an additional field https://prnt.sc/ud8kgn
Add action https://prnt.sc/ud8lol to our procedure + make changes https://prnt.sc/ud8m4r
DONE https://prnt.sc/ud8nd0
It remains only to fill out reference books and connect them for the necessary business processes
07.09.2020, 23:20
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Sukhanitsky Andrey Vladimirovich
Employee wrote:
Danilov Sergey Sergeevich The client wrote / a: Please make it possible to limit the display of payment methods depending on the selected legal entity, similarly to how it was done with the display of accounts for payment. so that when you select a legal entity, you will only see payment methods that are added for legal entities. I don’t think that you will add legal entities and payment methods every day, so this option should work. I write here only URL prefixes for links so as not to publish links. shop/custom/object/Create 2 directories: - directory of legal entities. persons /admin/shop/custom/object/12/Add 1 field to it - a directory of communication of legal entities and payment methods /admin/shop/custom/object/11/Add 2 fields to it (payment method and legal entities). person) /admin/shop/custom/object/11/field/+ link the field "legal entity" with the directory of legal entities https://prnt.sc/ud89q3 2) Create additional fields and link them to the directory /admin/ shop/orderfield/150/ - we associate this with the first directory https://prnt.sc/ud8b3f/admin/shop/orderfield/149/ - and we associate this field with directory 2 (where payment methods are) https://prnt.sc /ud87qq3) Fill in the reference book with values we get https://prnt.sc/ud8e68 Here is an example of the process /admin/customorder/issue/2828203/edit/5) But we get values in additional fields, and these are not standard fields, so you need to copy the data into the fields: - hide the standard fields Payment method and Jur. person - at the stage of the business process or better at the procedure https://prnt.sc/ud8fl5 add actions https://prnt.sc/ud8krq https://prnt.sc/ud8kxaBut there is a nuance - a legal entity can only be filled with using its id, so we return to the 1st directory and add the https://prnt.sc/ud8il3 field to it, which also needs to be filled in the directory, here we write its ID https://prnt.sc/ud8jjp to the https directory: //prnt.sc/ud8js6Create an additional field https://prnt.sc/ud8kgnAdd the action https://prnt.sc/ud8lol to our procedure + make changes https://prnt.sc/ud8m4rDONE https://prnt.sc /ud8nd0 It remains only to fill in the directories and connect them for the necessary business processes

Tried to use, the decision helped?
17.09.2020, 14:46
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