public ActionResult Receivable()
        {
            Session["Payments"] = null;
            var model =
                new ViewReceivableCreateModel
            {
                PaymentTypes     = _iCommonManager.GetAllPaymentTypes(),
                TransactionTypes = _iCommonManager.GetAllTransactionTypes()
            };

            return(View(model));
        }
        public ActionResult Receivable()
        {
            try
            {
                RemoveAll();
                CreateTempReceivableXmlFile();
                var model =
                    new ViewReceivableCreateModel
                {
                    PaymentTypes     = _iCommonManager.GetAllPaymentTypes(),
                    TransactionTypes = _iCommonManager.GetAllTransactionTypes()
                };

                return(View(model));
            }
            catch (Exception exception)
            {
                Log.WriteErrorLog(exception);
                return(PartialView("_ErrorPartial", exception));
            }
        }