IDEMPIERE-1442 Additional confirmation on close and void action. Apply IsConfirmOnVoid flag to reversal as well.
This commit is contained in:
parent
0a29fdcae0
commit
c9255259cb
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue