/// <summary> /// editing the ledger on update /// </summary> public void LedgerEdit() { try { AccountLedgerInfo infoAccountLedger = new AccountLedgerInfo(); AccountLedgerSP spAccountLedger = new AccountLedgerSP(); infoAccountLedger.LedgerId = decLedgerId; infoAccountLedger.AccountGroupId = 20; infoAccountLedger.LedgerName = txtTaxName.Text; infoAccountLedger.OpeningBalance = 0; infoAccountLedger.IsDefault = false; infoAccountLedger.CrOrDr = "Cr"; infoAccountLedger.Narration = string.Empty; infoAccountLedger.MailingName = txtTaxName.Text; infoAccountLedger.Address = string.Empty; infoAccountLedger.Phone = string.Empty; infoAccountLedger.Mobile = string.Empty; infoAccountLedger.Email = string.Empty; infoAccountLedger.CreditPeriod = 0; infoAccountLedger.CreditLimit = 0; infoAccountLedger.PricinglevelId = 0; infoAccountLedger.BillByBill = false; infoAccountLedger.Tin = string.Empty; infoAccountLedger.Cst = string.Empty; infoAccountLedger.Pan = string.Empty; infoAccountLedger.RouteId = 1; infoAccountLedger.BankAccountNumber = string.Empty; infoAccountLedger.BranchCode = string.Empty; infoAccountLedger.BranchName = string.Empty; infoAccountLedger.ExtraDate = DateTime.Now; infoAccountLedger.Extra1 = string.Empty; infoAccountLedger.Extra2 = string.Empty; infoAccountLedger.AreaId = 1; spAccountLedger.AccountLedgerEdit(infoAccountLedger); } catch(Exception ex) { MessageBox.Show("TAX:13" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }