How to restrict products by company

SUGGESTED

Hi,

I need to restrict products by company as the title suggests.

I'm able to restrict it by user, so they cant modify / delete the product, but they are still able to invoice those products.

Any suggestions?

Thanks

  • 0
    SUGGESTED

    Hello,

    I have two answer but before a question :

    Do you want restrict GESITM ou GESITF ?

    1) For the first GESITM, I did that but it's not perfect. I use the field PLAACS and I put it in this area on the objet :

    An you can create an acess code for each compagny and put it on each product...

    2) If you want to restrict GESITF, you have to use an entry point (CT_SITE in EXEFNC), exemple :

    If you whan allow every compagny, you have to set :

    GUSRFCY(1) = "\"
    GNBAUZ = GNBSITE

    If you want to give access on 2 sites differents :

    GUSRFCY(1) = "SITE_1_CODE"

    GUSRFCY(2) = "SITE_2_CODE"
    GNBAUZ = 2

  • 0

    After you put the PLAACS on the object, you can add this action on the screen