/// <summary>
 /// Tax gridfill function
 /// </summary>
 public void taxGridFill()
 {
     try
     {
         TaxBll bllTax = new TaxBll();
         List<DataTable> ListObj = new List<DataTable>();
         ListObj = bllTax.TaxViewAllByVoucherTypeId(DecSalesInvoiceVoucherTypeId);
         dgvSalesInvoiceTax.DataSource = ListObj[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show("SI: 11" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill the Tax grid
 /// </summary>
 public void taxGridFill()
 {
     try
     {
         TaxBll bllTax = new TaxBll();
         List<DataTable> ListObj = new List<DataTable>();
         SalesInvoiceBll BllSalesInvoice = new SalesInvoiceBll();
         ListObj = bllTax.TaxViewAllByVoucherTypeId(DecPOSVoucherTypeId);
         dgvPOSTax.DataSource = ListObj[0];
         this.dgvPOSTax.Columns["dgvtxtTaxAmt"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.TopRight;
     }
     catch (Exception ex)
     {
         MessageBox.Show("POS:20" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 /// <summary>
 /// Function to fill DataGridView PurcahseReturnTax
 /// </summary>
 public void DGVPurchaseReturnTaxFill()
 {
     try
     {
         TaxBll bllTax = new TaxBll();
         List<DataTable> ListObj = new List<DataTable>();
         ListObj = bllTax.TaxViewAllByVoucherTypeId(decPurchaseReturnVoucherTypeId);
         dgvPurchaseReturnTax.DataSource = ListObj[0];
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR:15" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }