Ejemplo n.º 1
0
 public static void EndSVPayment(bool res, string CardNum, double Summ)
 {
     try
     {
         MainClass.RemoveRegCardSubscr(SVSistem.Main.GetCardFromMagReader);
         if (!res)
         {
             AlohaTSClass.DeletePayment(CurentCardEntryParams.CheckId, CurentCardEntryParams.EntryId);
         }
         else
         {
             if ((decimal)Summ != LastSumm)
             {
                 AlohaTSClass.DeletePayment(CurentCardEntryParams.CheckId, CurentCardEntryParams.EntryId);
                 string ErrStr = "";
                 AlohaTSClass.ApplySVCardPayment(CurentCardEntryParams.CheckId, (decimal)Summ, CardNum, out ErrStr);
             }
         }
     }
     catch (Exception e)
     {
         Utils.ToCardLog("[Error] EndSVSale" + e.Message);
     }
 }