вторник, 12 января 2016 г.

User Permissions and Permission Sets

There are Permission Sets for different users in RTC.
Administration -> IT Administration -> General -> Users, Permission Sets

There are 3 main Sets, which already exist: Super, Super (data), Basic.

If User has no permissions, he will not open RTC. Minimum Permission Set must be Basic. Then Admin cusomizes additional Sets. Only Super does not need some more Set.

Basic allows to run RTC and to open almost all pages.

Super includes absolutely all actions in all areas. It is impossible to edit this Set.

Super (Data) - this user can manage only data area: to create/edit/delete/post/setup data. This user does not have acces only to Administration -> IT Administration. Application Setup area available for editing. It requires additionally Basic Set.

If there is no user in database, everybody can open RTC and can do any action.

You can create your own Permission Sets and customize permissions.

Let`s create Permission Set: New -> Permission Set, Name -> button Permissions -> you can choose from All Permissions or you can do it through the button New.
There are such permission types: read, insert, modify, delete, execute, security filter.
You can choose Yes or Indirect or leave empty.
* if empty - the is no permission;
* if Yes - direct acces to the object;
* if Indirect - indirect acces to the object: ex., user can not open the table, but he can see data from this table on the appropriate page (if he has permission Yes for this page);
* if you can not edit permissions by types (Yes or Indirect) on the page, you can open the table from the Object Designer and edit data in the table.
There is a list of editable/not_editable values regarding the type of object:
** Table Data: Read, Insert, Modify, Delete - editable, Execute - not, Security Filter - editable.
** тип Table: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип Report: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип Codeunit: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип XMLport: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип MenuSuite: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип Page: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип Query: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
** тип System: Read, Insert, Modify, Delete - not, Execute - editable, Security Filter - not.
* if the user has two mutually exlusive (both Yes and Indirect or empty) permissions, the priority will have the value Yes;
* Security Filter - allows to resrtict acces to the data, is active only for Object Type = Table Data (ex. it is possible to specify that the user can see information about only one Customer but not about other Customers). On every table there is it`s own set of filters;
* if the field Object ID has a value 0 (zero), permissions will be set for all of object of selected type (ex. Table, Report etc).

Function Copy Permission Set - copy the existing one, creating a new set. You can add, modify and delete permissions while creating new set with this function.

You can import excel-file with needed permissions. For this you need to have the corresponding file with mapping. I will tell about exporting, editing and importing the file.
Administration -> Application Setup -> RapidStart Services for Microsoft Dynamics NAV -> Configuration Packages.
Create new Pakage. Insert there two lines: 2000000004 Permission Set and 2000000005 Permissions.
Export: Actions -> Export to Excel.
Edit file: create Permission Set, add permissions.
Import back into the same package, of which we export.
New Permission Set is created.

You can create and edit permissions and Permission Sets in the tables - 2000000005 Permissions and 2000000004 Permission Set, which are run from Object Designer.

понедельник, 4 января 2016 г.

How to create Rental Order (addon Armada Dynamics EQM)

Rental Order is creating from Rental Contract.
Rental Contract can be created singly or it can be created from Rental Quote.
I`ll discribe the way from the Rental Quote.

(all setups for user access are configured: User Setup -> EQM User=yes)
1. New - Rental Quote (can be filled in 2 ways):
1.1. Customer No:
1.1.1. fill header fields: Quote No, Customer No - all needed data is validated.
1.1.2. fill line fields: Type (ex., Item), No - all needed fields are validated (if Item has all necessary settings; if smth is missed - set up on Item Card), Qty to Ship (automatically fills Quantity Orig.).
1.2. Customer Template Code:
1.2.1. fill header fields: Quote No, Customer Template Code, Contact No (it is important: Evaluation Status of Contact must not be For Evaluation).
1.2.2. fill line fields - see p.1.1.2.

2. Home/Actions -> Make Contract - Rental Contract is created, open it.

3. Rental Contract:
3.1. If Contract is created from Quote with Customer No (p.1.1), the field Invoice Sequence on tab Invoice Details is filled automatically (if data is filled on the Customer Card).
3.1.1. Home/Actions -> Sign Contract - we have Status=Signed.
3.1.2. after that we shoul deliver lines (before signing we can not deliver lines): Actions -> Delivary -> Deliver All/ Deliver Line - on the lines we have Entry Status = Delivered. Now the button Create Rental Order is active.
3.1.3. Home/Actions -> Create Rental Order - the butchjob is running and creating Rental Order.
3.2. If Contract is created from Quote with Customer Template Code (p.1.2.), the field Invoice Sequence on tab Invoice Details should be filled manually.
Repeate poits 3.1.1-3.1.3.

How to change Evaluation Status on Contact Card:
Contact Card -> tab Evaluation
Evaluation Status has 3 points: For Evaluation, Positive Evaluation, Negative Evaluation.
When you change status, you get error: Evaluation Status cannot be changed because there are no entries in the question list.
Navigate -> Tasks -> Evaluation -> fill Question, Answer.

So now you can change Evaluation Status.