Exemple #1
0
 /// <summary>
 /// update invoice by pass in invoice number
 /// </summary>
 /// <param name="invoiceNum"></param>
 public void updateInvoice(int invoiceNum)
 {
     try
     {
         //update invoice by passing in invoice number
         currentInvoice = dataMaster.GetInvoice(invoiceNum);
         //make line item list
         invoiceItem = dataMaster.MakeLineItemList(invoiceNum);
     }
     catch (Exception ex)
     {
         //Throw a custom-trace exception
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }