{"action":"created","issue":{"url":"https://api.github.com/repos/metasfresh/metasfresh/issues/3890","repository_url":"https://api.github.com/repos/metasfresh/metasfresh","labels_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/3890/labels{/name}","comments_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/3890/comments","events_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/3890/events","html_url":"https://github.com/metasfresh/metasfresh/issues/3890","id":315875015,"number":3890,"title":"Role Permission for Pharma Permission and Authorization changes","user":{"login":"metas-mk","id":13365687,"avatar_url":"https://avatars0.githubusercontent.com/u/13365687?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-mk","html_url":"https://github.com/metas-mk","followers_url":"https://api.github.com/users/metas-mk/followers","following_url":"https://api.github.com/users/metas-mk/following{/other_user}","gists_url":"https://api.github.com/users/metas-mk/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-mk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-mk/subscriptions","organizations_url":"https://api.github.com/users/metas-mk/orgs","repos_url":"https://api.github.com/users/metas-mk/repos","events_url":"https://api.github.com/users/metas-mk/events{/privacy}","received_events_url":"https://api.github.com/users/metas-mk/received_events","type":"User","site_admin":false},"labels":[{"id":536706344,"url":"https://api.github.com/repos/metasfresh/metasfresh/labels/branch:master","name":"branch:master","color":"0e8a16","default":false},{"id":546012549,"url":"https://api.github.com/repos/metasfresh/metasfresh/labels/branch:release","name":"branch:release","color":"0e8a16","default":false},{"id":553540803,"url":"https://api.github.com/repos/metasfresh/metasfresh/labels/priority:high","name":"priority:high","color":"d93f0b","default":false},{"id":269476096,"url":"https://api.github.com/repos/metasfresh/metasfresh/labels/type:enhancement","name":"type:enhancement","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":{"login":"teosarca","id":1244701,"avatar_url":"https://avatars2.githubusercontent.com/u/1244701?v=4","gravatar_id":"","url":"https://api.github.com/users/teosarca","html_url":"https://github.com/teosarca","followers_url":"https://api.github.com/users/teosarca/followers","following_url":"https://api.github.com/users/teosarca/following{/other_user}","gists_url":"https://api.github.com/users/teosarca/gists{/gist_id}","starred_url":"https://api.github.com/users/teosarca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teosarca/subscriptions","organizations_url":"https://api.github.com/users/teosarca/orgs","repos_url":"https://api.github.com/users/teosarca/repos","events_url":"https://api.github.com/users/teosarca/events{/privacy}","received_events_url":"https://api.github.com/users/teosarca/received_events","type":"User","site_admin":false},"assignees":[{"login":"teosarca","id":1244701,"avatar_url":"https://avatars2.githubusercontent.com/u/1244701?v=4","gravatar_id":"","url":"https://api.github.com/users/teosarca","html_url":"https://github.com/teosarca","followers_url":"https://api.github.com/users/teosarca/followers","following_url":"https://api.github.com/users/teosarca/following{/other_user}","gists_url":"https://api.github.com/users/teosarca/gists{/gist_id}","starred_url":"https://api.github.com/users/teosarca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teosarca/subscriptions","organizations_url":"https://api.github.com/users/teosarca/orgs","repos_url":"https://api.github.com/users/teosarca/repos","events_url":"https://api.github.com/users/teosarca/events{/privacy}","received_events_url":"https://api.github.com/users/teosarca/received_events","type":"User","site_admin":false},{"login":"metas-lc","id":16001666,"avatar_url":"https://avatars1.githubusercontent.com/u/16001666?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-lc","html_url":"https://github.com/metas-lc","followers_url":"https://api.github.com/users/metas-lc/followers","following_url":"https://api.github.com/users/metas-lc/following{/other_user}","gists_url":"https://api.github.com/users/metas-lc/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-lc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-lc/subscriptions","organizations_url":"https://api.github.com/users/metas-lc/orgs","repos_url":"https://api.github.com/users/metas-lc/repos","events_url":"https://api.github.com/users/metas-lc/events{/privacy}","received_events_url":"https://api.github.com/users/metas-lc/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-04-19T13:21:10Z","updated_at":"2018-04-23T14:47:13Z","closed_at":"2018-04-23T14:47:13Z","author_association":"CONTRIBUTOR","body":"### Is this a bug or feature request?\r\nFeature Request\r\n### What is the current behavior?\r\nCurrently, it is not possible to allow the update of fields just for users of a specific role.\r\n#### Which are the steps to reproduce?\r\nOpen, try and see.\r\n### What is the expected or desired behavior?\r\nIn Window Business Partner Pharma, the setting of the following fields shall be restricted to a specific role only:\r\n- Business Partner\r\n- Manufacturing Permission\r\n- Wholesale Permission\r\n- Agent\r\n- Pharmacy Permission\r\n- Veterinary Permission\r\n  - Type A: Authorisation for all Products\r\n  - Type B: No Authorisation for Pharmaceutical Products\r\n  - Authorisation Date for \"Type A\"\r\n\r\nThe solution shall be to create 2 process/ actions (1 vendor, 1 customer) that shall be visible (if possible easily) when selecting customer and vendor subtab row and flags customer/ vendor = Y. Only the specific role will have the process permissions. Those fields shall be readonly always."},"comment":{"url":"https://api.github.com/repos/metasfresh/metasfresh/issues/comments/383601855","html_url":"https://github.com/metasfresh/metasfresh/issues/3890#issuecomment-383601855","issue_url":"https://api.github.com/repos/metasfresh/metasfresh/issues/3890","id":383601855,"user":{"login":"metas-lc","id":16001666,"avatar_url":"https://avatars1.githubusercontent.com/u/16001666?v=4","gravatar_id":"","url":"https://api.github.com/users/metas-lc","html_url":"https://github.com/metas-lc","followers_url":"https://api.github.com/users/metas-lc/followers","following_url":"https://api.github.com/users/metas-lc/following{/other_user}","gists_url":"https://api.github.com/users/metas-lc/gists{/gist_id}","starred_url":"https://api.github.com/users/metas-lc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metas-lc/subscriptions","organizations_url":"https://api.github.com/users/metas-lc/orgs","repos_url":"https://api.github.com/users/metas-lc/repos","events_url":"https://api.github.com/users/metas-lc/events{/privacy}","received_events_url":"https://api.github.com/users/metas-lc/received_events","type":"User","site_admin":false},"created_at":"2018-04-23T14:47:13Z","updated_at":"2018-04-23T14:47:13Z","author_association":"CONTRIBUTOR","body":"IT\r\n1. open Business Partner window, check actions \r\n=> there are no pharma actions OK\r\n2. open Business Partner Pharma window \r\n=> there are pharma actions: update customer pharma permissions and  update vendor pharma permissions OK\r\n3. set iscustomer and isVendor on N and check the actions again\r\n=>  update customer pharma permissions and update vendor pharma permissions are there and readonly OK\r\n4. check advance edit in customer and vendor subtabs\r\n=> \r\nPharma Manufacturer Permission, Pharma Wholesale Permission, Pharma Agent Permission, Pharmacy Permission, Veterinary Pharmacy Permission, Pharma Shipment Permission, Typ A: Lieferberechtigung für alles, Date Permission Type A\r\nAND\r\nPharma Manufacturer, Pharma Wholesale, Pharma Agent, Date Permission Type A, Pharma Receipt Permission\r\nare there and readonly OK\r\n5. run Update Customer Pharma Permissions, set some fields on Y\r\n=> the corresponding fields updated, pharma shipment permission is on A, Date Permission type A is on today OK\r\n 6. run Update Customer Pharma Permissions, set all fields on N\r\n=> all fields are on N,  pharma shipment permission is on B, Date Permission type A is null OK\r\n7. repeat the same testcase for  Update Vendor Pharma Permissions\r\n=> works the same OK\r\n8. check translations: fields are translated OK \r\nthe process doesn't have the params/title translated! NOK\r\ncreated task: https://github.com/metasfresh/metasfresh/issues/3920"}}
{"actor":{"display_login":"metas-lc"}}