Process_Invoice Approve and Decline Workflow

363 views
Skip to first unread message

kinesa Tuganadar

unread,
Oct 25, 2017, 6:16:12 AM10/25/17
to iDempiere
Hi All,

I have been configuring the Process_Invoice Workflow. I am able to submit an invoice from a user, which will then be sent to the manager for approval or declining.  Once the manager has approved or declined the invoice. I would like the user that sent the invoice to get a notice with declined or approved invoice. I know you can automatically send an email and notice , but I would prefer this to be done in the workflow. I have provided screenshots with the workflow  and additional nodes created. In terms of transitions for the nodes.

Transitions

DocApprovalPM -> DocComplete (sequence 10)
DocApprovalPM ->Decline (sequence 100)
Decline -> Notification(sequence 10)

Also why does the nodes I have created have a warning sign? Please assist would be kindly appreciated.


kind regards
Kinesa
DocApproval PM Node.PNG
Decline Node.PNG
Notification Node.PNG
Process_Invoice Workflow.PNG

Peter Shepetko

unread,
Nov 2, 2017, 6:33:45 AM11/2/17
to iDempiere
Hi Kinesa.
The Node for Approval  with setting Action=User Choice and Column=IsApproved cause Workflow State=Aborted. It is core.
You can use other field for Approve, sample  IsApproved2 and WF will go to your way. User can check yours Invoice in Workflow Activities form.
You can see as example screenshot in attachment.

Best regards,
Peter Shepetko


среда, 25 октября 2017 г., 13:16:12 UTC+3 пользователь kinesa Tuganadar написал:
WF.PNG

kinesa Tuganadar

unread,
Nov 2, 2017, 6:50:22 AM11/2/17
to idem...@googlegroups.com
Hi Peter,

The isApproved2 is it a new column that you defined or does it already exist? If it does exist than when I create the node will my action still be action= user choice and column=isApproved2. Also will the nodes for the notices be action=user window and window=Notices?

kind regards
Kinesa

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/fa92ead9-332b-41f1-b824-b047d24a137f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Peter Shepetko

unread,
Nov 2, 2017, 8:06:38 AM11/2/17
to iDempiere
Kinesa,
Yes, the isApproved2 is new field as example and you can choice this field after you added.
 Action=user window and window=Invoice (not Notices) because User can quickly select your Invoice for change or complete...
I think it's good solution for Users.
For more details see screenshot.

Best regards,
Peter

четверг, 2 ноября 2017 г., 12:50:22 UTC+2 пользователь kinesa Tuganadar написал:
Hi Peter,

The isApproved2 is it a new column that you defined or does it already exist? If it does exist than when I create the node will my action still be action= user choice and column=isApproved2. Also will the nodes for the notices be action=user window and window=Notices?

kind regards
Kinesa
On Thu, Nov 2, 2017 at 12:33 PM, Peter Shepetko <pshe...@gmail.com> wrote:
Hi Kinesa.
The Node for Approval  with setting Action=User Choice and Column=IsApproved cause Workflow State=Aborted. It is core.
You can use other field for Approve, sample  IsApproved2 and WF will go to your way. User can check yours Invoice in Workflow Activities form.
You can see as example screenshot in attachment.

Best regards,
Peter Shepetko


среда, 25 октября 2017 г., 13:16:12 UTC+3 пользователь kinesa Tuganadar написал:
Hi All,

I have been configuring the Process_Invoice Workflow. I am able to submit an invoice from a user, which will then be sent to the manager for approval or declining.  Once the manager has approved or declined the invoice. I would like the user that sent the invoice to get a notice with declined or approved invoice. I know you can automatically send an email and notice , but I would prefer this to be done in the workflow. I have provided screenshots with the workflow  and additional nodes created. In terms of transitions for the nodes.

Transitions

DocApprovalPM -> DocComplete (sequence 10)
DocApprovalPM ->Decline (sequence 100)
Decline -> Notification(sequence 10)

Also why does the nodes I have created have a warning sign? Please assist would be kindly appreciated.


kind regards
Kinesa

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.
WF1.PNG

kinesa Tuganadar

unread,
Nov 2, 2017, 8:21:22 AM11/2/17
to idem...@googlegroups.com
Hi Peter,

Thanks that is a better solution. 

To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/27c04a1b-376e-4874-91e4-d1b6e0e5823a%40googlegroups.com.

Peter Shepetko

unread,
Nov 2, 2017, 8:25:07 AM11/2/17
to idem...@googlegroups.com
Kinesa,
You are welcome))
Out budget planning working via WF about four years.

Peter

Peter Shepetko

unread,
Nov 2, 2017, 8:29:34 AM11/2/17
to idem...@googlegroups.com
*Our budget planning working via WF about four years.

kinesa Tuganadar

unread,
Nov 2, 2017, 10:13:55 AM11/2/17
to idem...@googlegroups.com
Hi Peter,

One more question the isApproved2 column did you create it in the invoice table and configure it exactly as the isapproved or am I missing anything because I am getting a null error. I have attached the images.

isApprove2.PNG
error.PNG

Peter Shepetko

unread,
Nov 2, 2017, 11:14:00 AM11/2/17
to idem...@googlegroups.com
Kinesa,
you can see my screenshot.

Peter 

WF3.PNG

kinesa Tuganadar

unread,
Nov 2, 2017, 11:16:57 AM11/2/17
to idem...@googlegroups.com
I see now the default logic I set wrong.



kinesa Tuganadar

unread,
Nov 3, 2017, 4:35:16 AM11/3/17
to idem...@googlegroups.com
I got it working now. I just wanted to understand if a the manager declines the invoice and the user receives it can they change the invoice and resend. As I tried changing and re-send but nothing is happening.

Peter Shepetko

unread,
Nov 4, 2017, 2:32:30 AM11/4/17
to iDempiere
Hi Kinesa,
Scenario:
1) User created Invoice and Completed from Invoice Window
2) Manager didn't approve from WF Activities form
3) User click button Ok for this invoice from WF Activities form
4) User can open  Invoice,change  and Complete from Invoice Window
5) Manager  approve from WF Activities form

P.S.You can add new node for updating Docstatus field.See screenshot.

Best regards,
Peter 

пятница, 3 ноября 2017 г., 10:35:16 UTC+2 пользователь kinesa Tuganadar написал:

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "iDempiere" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/idempiere/l3xql8C-ITU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to idempiere+...@googlegroups.com.
WF4.PNG

kinesa Tuganadar

unread,
Nov 6, 2017, 5:00:36 AM11/6/17
to idem...@googlegroups.com
Hi Petro,

Unfortunately didnt want to bother you. I was able to test the updated node now. When I click the document action it says the workflow is suspended. Although the document status is updated to Not Approved so I was suppose to be able to prepare and then complete the document. I have attached the image below.

kind regards

To unsubscribe from this group and all its topics, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/b1fd38be-9709-405f-96da-aa9ea537c31b%40googlegroups.com.
WF.PNG

Peter Shepetko

unread,
Nov 6, 2017, 5:10:50 AM11/6/17
to idem...@googlegroups.com
Hi Kinesa,
I wrote   about it  in step 3.
If user didn't do it he have this message.

Peter

Scenario:
1) User created Invoice and Completed from Invoice Window
2) Manager didn't approve from WF Activities form
3) User click button Ok for this invoice from WF Activities form
4) User can open  Invoice,change  and Complete from Invoice Window
5) Manager  approve from WF Activities form

kinesa Tuganadar

unread,
Nov 6, 2017, 5:18:35 AM11/6/17
to idem...@googlegroups.com
I apologise I didn't follow the steps in that order.

Thanks I think we can close the thread.

Reply all
Reply to author
Forward
0 new messages