This commit is contained in:
@@ -866,122 +866,122 @@ namespace AyaNovaQBI
|
||||
POSTSTATUSOK:
|
||||
#endregion
|
||||
|
||||
// #region Outside service charge as
|
||||
// //Validate any existing status
|
||||
// if (SetEverything == false && QDat.OutsideServiceChargeAs != null && QDat.OutsideServiceChargeAs != "")
|
||||
// {
|
||||
// if (QBItems.Rows.Contains(QDat.OutsideServiceChargeAs))
|
||||
// goto OUTSIDESERVICECHARGEASOK;
|
||||
// else
|
||||
// {
|
||||
// MessageBox.Show("The QuickBooks Item previously set for invoicing Outside Service items\r\n" +
|
||||
// "No longer appears to be valid. You will next be prompted to re-select a valid \r\n" +
|
||||
// "QuickBooks Item.");
|
||||
// }
|
||||
// }
|
||||
#region Outside service charge as
|
||||
//Validate any existing status
|
||||
if (SetEverything == false && QDat.OutsideServiceChargeAs != null && QDat.OutsideServiceChargeAs != "")
|
||||
{
|
||||
if (QBItems.Rows.Contains(QDat.OutsideServiceChargeAs))
|
||||
goto OUTSIDESERVICECHARGEASOK;
|
||||
else
|
||||
{
|
||||
MessageBox.Show("The QuickBooks Item previously set for invoicing Outside Service items\r\n" +
|
||||
"No longer appears to be valid. You will next be prompted to re-select a valid \r\n" +
|
||||
"QuickBooks Item.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// //We've arrived here because there is no valid setting for OutsideServiceChargeAs
|
||||
// SetQBChargeAs s2 = new SetQBChargeAs();
|
||||
// s2.DialogTitle = "AyaNova QBI setup - Charge outside service as?";
|
||||
// s2.OptionTitle = "Outside service";
|
||||
// s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
// "to use when invoicing the AyaNova \"Outside service\" portion of a work order.\r\n\r\n" +
|
||||
// "Outside service is any 3rd party repair that is billable to the customer.\r\n\r\n" +
|
||||
// "This setting is mandatory / required.";
|
||||
// s2.QBItems = QBItems;
|
||||
// s2.SelectedQBItem = QDat.OutsideServiceChargeAs;
|
||||
// //s2.SelectedQBItem=QDat.PreWOStatus;
|
||||
// if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
// {
|
||||
// return pfstat.Cancel;
|
||||
//We've arrived here because there is no valid setting for OutsideServiceChargeAs
|
||||
SetQBChargeAs s2 = new SetQBChargeAs();
|
||||
s2.DialogTitle = "AyaNova QBI setup - Charge outside service as?";
|
||||
s2.OptionTitle = "Outside service";
|
||||
s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
"to use when invoicing the AyaNova \"Outside service\" portion of a work order.\r\n\r\n" +
|
||||
"Outside service is any 3rd party repair that is billable to the customer.\r\n\r\n" +
|
||||
"This setting is mandatory / required.";
|
||||
s2.QBItems = QBItems;
|
||||
s2.SelectedQBItem = QDat.OutsideServiceChargeAs;
|
||||
//s2.SelectedQBItem=QDat.PreWOStatus;
|
||||
if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
// }
|
||||
// else
|
||||
// QDat.OutsideServiceChargeAs = s2.SelectedQBItem;
|
||||
// s2.Dispose();
|
||||
// s2 = null;
|
||||
}
|
||||
else
|
||||
QDat.OutsideServiceChargeAs = s2.SelectedQBItem;
|
||||
s2.Dispose();
|
||||
s2 = null;
|
||||
|
||||
//OUTSIDESERVICECHARGEASOK:
|
||||
OUTSIDESERVICECHARGEASOK:
|
||||
|
||||
// #endregion
|
||||
#endregion
|
||||
|
||||
// #region Misc expense charge as
|
||||
// //Validate any existing
|
||||
// if (SetEverything == false && QDat.MiscExpenseChargeAs != null && QDat.MiscExpenseChargeAs != "")
|
||||
// {
|
||||
// //if(QBItems.Rows.Contains(QDat.MiscExpenseChargeAs))
|
||||
// goto MISCCHARGEASOK;
|
||||
// // 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 Misc expense charge as
|
||||
//Validate any existing
|
||||
if (SetEverything == false && QDat.MiscExpenseChargeAs != null && QDat.MiscExpenseChargeAs != "")
|
||||
{
|
||||
//if(QBItems.Rows.Contains(QDat.MiscExpenseChargeAs))
|
||||
goto MISCCHARGEASOK;
|
||||
// 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.");
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// //We've arrived here because there is no valid setting for Misc expense
|
||||
// s2 = new SetQBChargeAs();
|
||||
// s2.DialogTitle = "AyaNova QBI setup - Charge Misc. Expense as?";
|
||||
// s2.OptionTitle = "Miscellaneous expenses";
|
||||
// s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
// "to use when invoicing the AyaNova \"Miscellaneous expense\" portion of a work order.\r\n\r\n" +
|
||||
// "This setting is mandatory / required.";
|
||||
// s2.QBItems = QBItems;
|
||||
// s2.SelectedQBItem = QDat.MiscExpenseChargeAs;
|
||||
//We've arrived here because there is no valid setting for Misc expense
|
||||
s2 = new SetQBChargeAs();
|
||||
s2.DialogTitle = "AyaNova QBI setup - Charge Misc. Expense as?";
|
||||
s2.OptionTitle = "Miscellaneous expenses";
|
||||
s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
"to use when invoicing the AyaNova \"Miscellaneous expense\" portion of a work order.\r\n\r\n" +
|
||||
"This setting is mandatory / required.";
|
||||
s2.QBItems = QBItems;
|
||||
s2.SelectedQBItem = QDat.MiscExpenseChargeAs;
|
||||
|
||||
// if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
// {
|
||||
// return pfstat.Cancel;
|
||||
if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
// }
|
||||
// else
|
||||
// QDat.MiscExpenseChargeAs = s2.SelectedQBItem;
|
||||
// s2.Dispose();
|
||||
// s2 = null;
|
||||
}
|
||||
else
|
||||
QDat.MiscExpenseChargeAs = s2.SelectedQBItem;
|
||||
s2.Dispose();
|
||||
s2 = null;
|
||||
|
||||
//MISCCHARGEASOK:
|
||||
MISCCHARGEASOK:
|
||||
|
||||
// #endregion
|
||||
#endregion
|
||||
|
||||
// #region Workorder item loan charge as
|
||||
// //Validate any existing
|
||||
// if (SetEverything == false && QDat.WorkorderItemLoanChargeAs != null && QDat.WorkorderItemLoanChargeAs != "")
|
||||
// {
|
||||
// //if(QBItems.Rows.Contains(QDat.MiscExpenseChargeAs))
|
||||
// goto LOANCHARGEASOK;
|
||||
// // 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 Workorder item loan charge as
|
||||
//Validate any existing
|
||||
if (SetEverything == false && QDat.WorkorderItemLoanChargeAs != null && QDat.WorkorderItemLoanChargeAs != "")
|
||||
{
|
||||
//if(QBItems.Rows.Contains(QDat.MiscExpenseChargeAs))
|
||||
goto LOANCHARGEASOK;
|
||||
// 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.");
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
// //We've arrived here because there is no valid setting for Misc expense
|
||||
// s2 = new SetQBChargeAs();
|
||||
// s2.DialogTitle = "AyaNova QBI setup - Charge loan item as?";
|
||||
// s2.OptionTitle = "Work order loans";
|
||||
// s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
// "to use when invoicing the AyaNova \"Workorder item loan\" portion of a work order.\r\n\r\n" +
|
||||
// "This setting is mandatory / required.";
|
||||
// s2.QBItems = QBItems;
|
||||
// s2.SelectedQBItem = QDat.WorkorderItemLoanChargeAs;
|
||||
// if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
// {
|
||||
// return pfstat.Cancel;
|
||||
//We've arrived here because there is no valid setting for Misc expense
|
||||
s2 = new SetQBChargeAs();
|
||||
s2.DialogTitle = "AyaNova QBI setup - Charge loan item as?";
|
||||
s2.OptionTitle = "Work order loans";
|
||||
s2.OptionDescription = "QBI needs to know what QuickBooks Item you want \r\n" +
|
||||
"to use when invoicing the AyaNova \"Workorder item loan\" portion of a work order.\r\n\r\n" +
|
||||
"This setting is mandatory / required.";
|
||||
s2.QBItems = QBItems;
|
||||
s2.SelectedQBItem = QDat.WorkorderItemLoanChargeAs;
|
||||
if (s2.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
// }
|
||||
// else
|
||||
// QDat.WorkorderItemLoanChargeAs = s2.SelectedQBItem;
|
||||
// s2.Dispose();
|
||||
// s2 = null;
|
||||
}
|
||||
else
|
||||
QDat.WorkorderItemLoanChargeAs = s2.SelectedQBItem;
|
||||
s2.Dispose();
|
||||
s2 = null;
|
||||
|
||||
//LOANCHARGEASOK:
|
||||
LOANCHARGEASOK:
|
||||
|
||||
// #endregion
|
||||
#endregion
|
||||
|
||||
// #region QB Transaction class
|
||||
// //Validate any existing
|
||||
|
||||
Reference in New Issue
Block a user