public void AddTotbl_ledgers(tbl_ledgers tbl_ledgers)
 {
     base.AddObject("tbl_ledgers", tbl_ledgers);
 }
 public static tbl_ledgers Createtbl_ledgers(int id, global::System.DateTime datefrom, global::System.DateTime dateto, string name, int owner_id, int account_period_id, bool is_open)
 {
     tbl_ledgers tbl_ledgers = new tbl_ledgers();
     tbl_ledgers.id = id;
     tbl_ledgers.datefrom = datefrom;
     tbl_ledgers.dateto = dateto;
     tbl_ledgers.name = name;
     tbl_ledgers.owner_id = owner_id;
     tbl_ledgers.account_period_id = account_period_id;
     tbl_ledgers.is_open = is_open;
     return tbl_ledgers;
 }