This commit is contained in:
2022-07-01 16:55:16 +00:00
parent ecfb1189a4
commit 2ba87e8560
5 changed files with 335 additions and 24 deletions

View File

@@ -1276,36 +1276,36 @@ namespace AyaNovaQBI
#endregion
// #region SetAutoCloseField Case 7
// //No validation possible
// //so prompt only if not setup yet
// if (!SetEverything)
// {
// goto SETAUTOCLOSEOK;
#region SetAutoCloseField Case 7
//No validation possible
//so prompt only if not setup yet
if (!SetEverything)
{
goto SETAUTOCLOSEOK;
// }
}
// SetAutoClose s6 = new SetAutoClose();
// s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?";
// s6.OptionTitle = "Close work order after invoicing";
// s6.OptionDescription =
// "QBI needs to know if you want work orders that it invoices \r\n" +
// "automatically set to closed";
// s6.AutoClose = QDat.AutoClose;
SetAutoClose s6 = new SetAutoClose();
s6.DialogTitle = "AyaNova QBI setup - Close when invoiced?";
s6.OptionTitle = "Close work order after invoicing";
s6.OptionDescription =
"QBI needs to know if you want work orders that it invoices \r\n" +
"automatically set to closed";
s6.AutoClose = QDat.AutoClose;
// if (s6.ShowDialog() == DialogResult.Cancel)
// {
// return pfstat.Cancel;
if (s6.ShowDialog() == DialogResult.Cancel)
{
return pfstat.Cancel;
// }
// else
// QDat.AutoClose = s6.AutoClose;
// s6.Dispose();
// s6 = null;
}
else
QDat.AutoClose = s6.AutoClose;
s6.Dispose();
s6 = null;
//SETAUTOCLOSEOK:
SETAUTOCLOSEOK:
// #endregion
#endregion
// //Save if changes made