Adempiere - Dynamic Approval in Workflow based on Organization - adempiere

I plan to implement this for Requisition document.
So, I have 8 users, each from different Organizations.
There are 3 Organization.
1. General Organization
Users :
1) G0
2) G1a
3) G1b
2. Finance Organization
Users :
1) F1
2) F2
3. Technical Organization
Users :
1) T0
2) T1a
3) T1b
Assuming that I am user G0, I have 4 Approvals. They are from :
1. G1a
2. G1b
3. F1
4. F2
And, assuming that I am user T0, I also have 4 Approvals. They are from :
1. T1a
2. T1b
3. F1
4. F2
So I need to have permission from people in my organization first (depends on who login) before the approval from people in Finance Organization.
How can I make it possible in Adempiere?

The Standard Approval in Adempiere requires the Supervisor of a User approve any value above the Approval Amount of the user's Role.
However, as you have no doubt discovered, it only allows for one supervisor approving.
To achieve what you need is a little trickier and you will need to use the Workflow functionality of Adempiere. There are a number of steps involved and they're described in this howto from the Adempiere wiki.

Related

Power automate data fetch from sharepoint and update

I am trying to automate the leave balance workflow and remove the dependency from the managers to approve it because if the leave is available its available and employees can take it.
I have created a share point where I have mentioned the date , day and leave balance(suppose at one day only 3 people can take a leave so it will be showing as 3), logic I am following, if the leave is greater than 0 in share point then employee can book the leave and an email should sent to the manager plus power automate should create an entry in the same share point that employee XX taken a leave for xyz dates.
In share point I have 3 Columns:
1: Date
2: Day
3: Leave balance
Please help me, thanks in advance
Thank you so much for your responses and this is the first time I am posting something and you guys are awesome.
Its like a train ticket system.
Suppose we have 2 categories
1: general Quota
2: Sleeper class
When a user book a ticket, user generally get if the ticket is available or not!,If the ticket is showing ( example: 30 tickets available) then user can book that ticket and its auto approved if its not available, user generally look for another day whenever the tickets are available to book the ticket.
Workflow should be: User entered the keyword "Book Ticket"--> gets all the dates when the ticket is available -> user click on book ticket -- if the ticket is available then user should able to book the ticket as the flow will be auto approved.
If the ticket is not available then user get a denial message that ticket is not available for the date and please try some other day.
In share point, I have created 3 Colum's:
1 Date
2: Days
3: Sleeper Quota
4: general quota
5: Available Tickets
I have already created the Bot by power virtual agent and now I want as soon as user selects " Book my ticket" and select General or sleeper quota, user should get the available tickets and can book it by BOT only with out any approval.

Similarities based friend recommendation algorithm

I'm trying to build a friend recommendation algorithm that recommends users a new friend every week. Let's say I have a database of
user A
user B
user C
...
and they have a list of hobbies
user A has interests [hobby1, hobby2, hobby3, etc...]
user B has interests [hobby3, hobby6, hobby8, etc...]
user C has interests [hobby1, hobby3, hobby4, etc...]
...
How do I build an algorithm that pairs pick a good recommendation for everyone with the catch that it should be different every week?
Week 1
user A -> user C [2 hobbies in common]
user B -> user A [1 hobby in common]
user C -> user B [1 hobby in common]
...
Week 2
user A -> user B [1 hobby in common]
user B -> user C [1 hobby in common]
user C -> user A [2 hobbies in common]
...
Because on the requirements, it sounds like it could be easy to just completely randomize all user recommendations every week. Is there anything that would be better than that threshold?
First, you need a function that takes 2 Users (A and B) and outputs a "similarity score". The simplest way to do that is to count the amount of common hobbies.
Then find the user that has the best "similarity score" with A and recommend it to A.
Keep a table containing all recommendation (let's call it t_recommendations) that have been made to a certain person, this way, the next time you need to recommend a new person to A, take the person with the highest "similarity score" that is not in t_recommendations.
Table t_recommendations would have the following columns :
recommended_to : The ID of the user that received a recommendation
recommended : The ID of the user that has been recommended to recommended_to
recommendation_date: This one is optional but could be useful if you want to start recommending people again after a while.

How to create group and assign privileges to Group in Dynamics CRM?

I am implementing a Sales process where it includes 3 set of users. Set 1 consists of Sales Analyst, Set 2 consists of Sales managers, and Set 3 consists of Sales Directors.
In my sales Process, I am using 3 different Process flows against an opportunity. If users under Set 1 logs in they only need to see views and Process assigned to Set 1 users and same in the case for other Set users (Set 2, Set 3).
Is it possible to create a group/profile and assign users to it, so that in future if I create any view or process I only need to assign that process/Views to a particular Set (Set1, Set 2, Set 3)?
Is it possible to achieve through Dynamics?
2 different things.
Business process flow: To show only BPF1 to Set1 (sales analysts), create a security role (or use existing sales analyst role which might have assigned to only Set1 users), map this role to BPF1 using “Enable Security Role” option
Catch: so far created records with BPF1 will still show it for Set2 users.
Views: To show PublicView1 only to Set1, there’s no easy way to regulate it using Team or Security roles. But you can create Personal view & share with Set1 users or a Set1Team (add all Set1 users to this team)

Best approach to design an UI for creating users and assigning them to a level

I am trying to come up with an UI design for creating a user in Account (Customer) and assigning them a to a one of the levels in hierarchy. And the hierarchy can change depending on the Account selected. I am developing this in an Ionic 2 app.
Would appreciate if you guys can suggest some best approaches in going about it. And, honestly, I am not able to come up with anything good.
Following is an example of various levels that can be setup up for different Accounts. There's going to be 10 levels but not all Accounts will use all 10 levels.
Account is the top most level. All the levels under that will have multiple values. And selecting a value at a level should show only the relevant values in the remaining levels.
Account - Store1 [A Super User having access to all features (Stores)]
|
Country - USA, Canada [User will have access to features of selected country]
|
Region - Eastern, Northern [Features only for the selected region]
|
States - CA, NY, etc.
|
City - San Francisco, San Jose, NYC, etc.
|
Store - Store1, Store2, etc.
Not all Accounts (Customers) will have all the levels. Some might have only 3 or some will have just 2 or others will have 5 and then some might have all 10 of them.
What's the best way to design the User Interface for such data.
Any ideas, suggestions, pointers will be very helpful.
Thanks.
Well , firstly i am sure you could come up with some good ideas you just need to be drinking better coffee ;) . You are a programmer .. its what we do.
Jokes aside. I have recently had to implement a similar hierarchical select structure and did it with each selection navigating to a new view. At first i didnt think this approach was the best but for my use case it actually was because each page had CRUD operations and so clearly differentiated each section.
In your case it is a bit different as they are only selects.
What i would do is show or hide a <ion-list> for each child in the selection process with the selected value at the top separated by an arrow icon.
Selection 1 -> Selection 2 -> Selection 3
Please select
item 1
item 2
item 3
item 4
So basically just show and hide with *ngIf based on the user role and where they are in the selection process with selected options at the top

How do you create unique assignments/workflows in Zoho Creator

I would like assistance in trying to figure out how to set up a somewhat unique set of workflows.
For example, say I have several accounts, each assigned to the respective Stage 1 account representative. Each account should then be able to be submitted/assigned to the next stage, e.g. Stage 2 account representative, Stage 3 account representative. Each representative should also be able to send the account back down.
So, something like this:
Jones Account: Stage 1 Jones Account Representative -> Stage 2 Jones Account Representative -> Stage 3 Jones Account Representative
Smith Account: Stage 1 Smith Account Representative -> Stage 2 Smith Account Representative -> Stage 3 Smith Account Representative
Brown Account: Stage 1 Brown Account Representative -> Stage 2 Brown Account Representative -> Stage 3 Brown Account Representative
Is there a way this can be done?
It is possible in Zoho Creator. You have to create separate form to store all the stage 1, stage2 and stage 3 representatives for each user.
When the form submitted by the user A, you have to fetch the details from the form you have created to get a stage 1 representative of the user A and vice versa.
Check out the Expense Management application published in Zoho Creator Marketplace
https://creator.zoho.com/platform/public/showAppInfo?ownername=zohodogfood&callbackUrl=expense-management
Which has the same implementation what you are expecting.

Resources