IDEMPIERE-1442 Additional confirmation on close and void action. Apply IsConfirmOnVoid flag to reversal as well.

This commit is contained in:
Heng Sin Low 2013-11-14 16:58:57 +08:00
parent 0a29fdcae0
commit c9255259cb
1 changed files with 3 additions and 1 deletions

View File

@ -311,7 +311,9 @@ public class WDocActionPanel extends Window implements EventListener<Event>, Dia
{
String selected = lstDocAction.getSelectedItem().getValue().toString();
if((selected.equals(org.compiere.process.DocAction.ACTION_Close) && clientInfo.isConfirmOnDocClose())
|| (selected.equals(org.compiere.process.DocAction.ACTION_Void) && clientInfo.isConfirmOnDocVoid()))
|| (selected.equals(org.compiere.process.DocAction.ACTION_Void) && clientInfo.isConfirmOnDocVoid())
|| (selected.equals(org.compiere.process.DocAction.ACTION_Reverse_Accrual) && clientInfo.isConfirmOnDocVoid())
|| (selected.equals(org.compiere.process.DocAction.ACTION_Reverse_Correct) && clientInfo.isConfirmOnDocVoid()))
{
String docAction = lstDocAction.getSelectedItem().getLabel();
MessageFormat mf = new MessageFormat(Msg.getMsg(Env.getAD_Language(Env.getCtx()), "ConfirmOnDocAction"));