Example #1
0
        public virtual bool ConfirmDeletion(PXView view, string gUIFmtCode)
        {
            isCreditNote = true;

            if (gUIFmtCode != TWGUIFormatCode.vATOutCode33 && gUIFmtCode != TWGUIFormatCode.vATOutCode34 && gUIFmtCode != null)
            {
                WebDialogResult result = view.Ask(TWMessages.CfmMegOnDelete, MessageButtons.YesNo);

                isCreditNote = false;
                notBeDeleted = (result == WebDialogResult.No);
            }

            return(notBeDeleted);
        }