This commit is contained in:
@@ -1238,49 +1238,42 @@ namespace AyaNovaQBI
|
||||
|
||||
#endregion
|
||||
|
||||
// #region SetMemoField
|
||||
// //No validation possible
|
||||
// //so prompt only if not setup yet
|
||||
// if (!SetEverything)
|
||||
// {
|
||||
// //if(QBItems.Rows.Contains(QDat.MiscExpenseChargeAs))
|
||||
// goto SETMEMOOK;
|
||||
// // else
|
||||
// // {
|
||||
// // MessageBox.Show("The QuickBooks Item previously set for invoicing Misc. Expense items\r\n" +
|
||||
// // "No longer appears to be valid. You will next be prompted to re-select a valid \r\n" +
|
||||
// // "QuickBooks Item.");
|
||||
// // }
|
||||
// }
|
||||
#region SetMemoField
|
||||
//No validation possible
|
||||
//so prompt only if not setup yet
|
||||
if (!SetEverything)
|
||||
{
|
||||
goto SETMEMOOK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// SetMemoField s5 = new SetMemoField();
|
||||
// s5.DialogTitle = "AyaNova QBI setup - Set Memo field?";
|
||||
// s5.OptionTitle = "Invoice memo field";
|
||||
// s5.OptionDescription =
|
||||
// "QBI needs to know if you want invoices that it creates \r\n" +
|
||||
// "in QuickBooks to have their \"Memo\" field set with\r\n" +
|
||||
// "information about the work order(s) that were the basis for\r\n" +
|
||||
// "the invoice and the name of the AyaNova user who generated them.\r\n\r\n" +
|
||||
// "This may be useful as a back reference, this setting is optional";
|
||||
// s5.FillMemoField = QDat.SetMemoField;
|
||||
SetMemoField s5 = new SetMemoField();
|
||||
s5.DialogTitle = "AyaNova QBI setup - Set Memo field?";
|
||||
s5.OptionTitle = "Invoice memo field";
|
||||
s5.OptionDescription =
|
||||
"QBI needs to know if you want invoices that it creates \r\n" +
|
||||
"in QuickBooks to have their \"Memo\" field set with\r\n" +
|
||||
"information about the work order(s) that were the basis for\r\n" +
|
||||
"the invoice and the name of the AyaNova user who generated them.\r\n\r\n" +
|
||||
"This may be useful as a back reference, this setting is optional";
|
||||
s5.FillMemoField = QDat.SetMemoField;
|
||||
|
||||
// if (s5.ShowDialog() == DialogResult.Cancel)
|
||||
// {
|
||||
// return pfstat.Cancel;
|
||||
if (s5.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
// }
|
||||
// else
|
||||
// QDat.SetMemoField = s5.FillMemoField;
|
||||
// s5.Dispose();
|
||||
// s5 = null;
|
||||
}
|
||||
else
|
||||
QDat.SetMemoField = s5.FillMemoField;
|
||||
s5.Dispose();
|
||||
s5 = null;
|
||||
|
||||
//SETMEMOOK:
|
||||
SETMEMOOK:
|
||||
|
||||
// #endregion
|
||||
#endregion
|
||||
|
||||
|
||||
// #region SetAutoCloseField Case 7
|
||||
|
||||
Reference in New Issue
Block a user