This commit is contained in:
@@ -996,7 +996,7 @@ namespace AyaNovaQBI
|
||||
|
||||
#region QB Transaction class
|
||||
//Validate any existing
|
||||
if (SetEverything == false && QDat.TransactionClass != null && QDat.TransactionClass != "")
|
||||
if (SetEverything == false && !string.IsNullOrWhiteSpace(QDat.TransactionClass))
|
||||
{
|
||||
//if something is set but there are no tr classes
|
||||
//then just clear it and move along
|
||||
@@ -1039,9 +1039,9 @@ namespace AyaNovaQBI
|
||||
if (QBClasses.Rows.Contains(QDat.TransactionClass))
|
||||
s3.SelectedQBClass = QDat.TransactionClass;
|
||||
else
|
||||
s3.SelectedQBClass = TRANSACTION_CLASS_NO_CLASS_SELECTED;
|
||||
s3.SelectedQBClass = TRANSACTION_CLASS_NO_CLASS_SELECTED;
|
||||
|
||||
if (s3.ShowDialog() == DialogResult.Cancel)
|
||||
if (s3.ShowDialog() == DialogResult.Cancel)
|
||||
{
|
||||
return pfstat.Cancel;
|
||||
|
||||
@@ -1076,7 +1076,6 @@ namespace AyaNovaQBI
|
||||
"for now it is disabled and the default invoice template will be used";
|
||||
|
||||
s3a.ShowDialog();
|
||||
|
||||
goto TRInvoiceTemplateOK;
|
||||
}
|
||||
|
||||
@@ -1132,8 +1131,7 @@ namespace AyaNovaQBI
|
||||
"for invoices. If you do not use Invoice templates or are not sure what they are\r\n" +
|
||||
"select < Use default > from the list below.\r\n\r\n" +
|
||||
"This setting is required.";
|
||||
s3b.QBInvoiceTemplates = QBInvoiceTemplates;
|
||||
|
||||
s3b.QBInvoiceTemplates = QBInvoiceTemplates;
|
||||
s3b.SelectedQBInvoiceTemplate = QDat.QBInvoiceTemplate;
|
||||
|
||||
if (s3b.ShowDialog() == DialogResult.Cancel)
|
||||
@@ -1195,7 +1193,6 @@ namespace AyaNovaQBI
|
||||
"When an invoice for a customer is created the selected terms will be applied.\r\n\r\n" +
|
||||
"This setting is required.";
|
||||
termsdialog.QBTerms = QBTerms;
|
||||
|
||||
termsdialog.SelectedQBTerm = QDat.TermsDefault;
|
||||
|
||||
if (termsdialog.ShowDialog() == DialogResult.Cancel)
|
||||
@@ -1221,10 +1218,6 @@ namespace AyaNovaQBI
|
||||
goto TBPOK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
SetToBePrinted s4 = new SetToBePrinted();
|
||||
s4.DialogTitle = "AyaNova QBI setup - Set invoice to be printed?";
|
||||
s4.OptionTitle = "Invoice to be printed";
|
||||
@@ -1257,7 +1250,6 @@ namespace AyaNovaQBI
|
||||
goto SETMEMOOK;
|
||||
}
|
||||
|
||||
|
||||
SetMemoField s5 = new SetMemoField();
|
||||
s5.DialogTitle = "AyaNova QBI setup - Set Memo field?";
|
||||
s5.OptionTitle = "Invoice memo field";
|
||||
|
||||
Reference in New Issue
Block a user