Exemple #1
0
 /// <summary>
 /// delete invoice
 /// </summary>
 public void deleteInvoice()
 {
     try
     {
         //delete invoice by pass in current invoice number
         dataMaster.DeleteLineItembyInv(currentInvoice.InvoiceNum);
         //delete invoice
         dataMaster.DeleteInvoice(currentInvoice);
     }
     catch (Exception ex)
     {
         //Throw a custom-trace exception
         throw new Exception(MethodInfo.GetCurrentMethod().DeclaringType.Name + "." +
                             MethodInfo.GetCurrentMethod().Name + " -> " + ex.Message);
     }
 }