JP2004302803A - Method and apparatus for automatic journalizing, journalizing program, and its recording medium - Google Patents

Method and apparatus for automatic journalizing, journalizing program, and its recording medium Download PDF

Info

Publication number
JP2004302803A
JP2004302803A JP2003094337A JP2003094337A JP2004302803A JP 2004302803 A JP2004302803 A JP 2004302803A JP 2003094337 A JP2003094337 A JP 2003094337A JP 2003094337 A JP2003094337 A JP 2003094337A JP 2004302803 A JP2004302803 A JP 2004302803A
Authority
JP
Japan
Prior art keywords
journal
condition
tree structure
journalizing
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003094337A
Other languages
Japanese (ja)
Inventor
Katsu Noji
克 野地
Kazuyoshi Suzuki
和義 鈴木
Yuji Kaneko
裕司 金子
Tomohisa Tazaki
朝久 田崎
Tadashi Ono
廉 大野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Systems and Services Ltd
Original Assignee
Hitachi Systems and Services Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Systems and Services Ltd filed Critical Hitachi Systems and Services Ltd
Priority to JP2003094337A priority Critical patent/JP2004302803A/en
Publication of JP2004302803A publication Critical patent/JP2004302803A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide techniques capable of performing journalizing works at high speed by shortening retrieving time for journalizing conditions while performing journalizing operation of slips and vouchers. <P>SOLUTION: An automatic journalizing method performing journalizing operation of the slips and vouchers comprises: a step reading a specified journalizing conditions instructing file and retaining journalizing conditions indicating conditions for journalizing operation and journalizing instructions indicating contents of journalizing operation in a memory field of a memory device in a tree structure; a step reading data of journalizing slips and vouchers from the file for journalizing slips and vouchers; a step referring to the tree structure retained in the memory field and retrieving journalizing conditions satisfied with the read data of journalizing slips and vouchers from the tree structure and obtaining journalizing instructions corresponding to the retrieved journalizing conditions; and a step executing journalizing operation of the journalizing slips and vouchers according to the journalizing instructions obtained by aforementioned retrieval. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は伝票の仕訳作業を行う自動仕訳処理装置に関し、特にコンピュータ装置を使用して会計伝票の仕訳作業を自動的に行う自動仕訳処理装置に適用して有効な技術に関するものである。
【0002】
【従来の技術】
従来、会計伝票の仕訳作業をコンピュータ装置を使って行う場合には、仕訳処理をする自動仕訳プログラムを作成し、コンピュータ装置に搭載された記憶装置に読み込ませ、コンピュータ装置に搭載されたCPU等を用いて仕訳処理を自動化している。ここで会計伝票を仕訳するには、仕訳条件と仕訳処理とが必要であるが、仕訳条件を予め作成しておき、コンピュータ装置に接続されたデータベース等の外部記憶装置に格納しておいて、自動仕訳プログラムの指示により、会計伝票(例えば、「売上伝票」)の伝票項目名(例えば、「営業店名」)と仕訳伝票の伝票項目名に記載された値(例えば、「A営業所」)とを使ってデータベース等の外部記憶装置に格納された仕訳条件を検索して、仕訳方法を示した仕訳コード(例えば、「仕訳方法01」)を取得し、自動仕訳プログラム内に記述された仕訳コードを判断する処理によって仕訳コード毎に区別された仕訳処理をしている。
【0003】
この様な自動仕訳システムの例として、企業の経済活動で発生する取引からその企業の財政状態や損益に関する情報を容易に作成するためのシステム及び方法が提供されており(例えば特許文献1参照)、データベース等の外部記憶装置を用いて仕訳コードを検索している。
【0004】
【特許文献1】
特開2000−215263号公報
【0005】
【発明が解決しようとする課題】
前記従来の技術において、仕訳方法を示した仕訳コードを取得する為には、コンピュータ装置に接続されたデータベース等の外部記憶装置に格納されている仕訳条件を検索しており、更に、取得した仕訳方法を示した仕訳コードを判断する処理及び仕訳コード毎に区別された仕訳処理が自動仕訳プログラム内に必要である為、外部記憶装置に格納された仕訳条件の件数が増大した場合に、検索に要する性能確保が難しいという問題と、仕訳コードが追加変更になった場合に自動仕訳プログラム内に仕訳処理の追加変更が必要であるという問題があった。
【0006】
本発明の目的は上記問題を解決し、伝票の仕訳作業を行う際にその仕訳条件の検索時間を短縮して仕訳処理を高速化することが可能な技術を提供することにある。
【0007】
【課題を解決するための手段】
本発明は、伝票の仕訳作業を行う自動仕訳処理装置において、記憶装置上にツリー構造で保持された仕訳条件及び仕訳指示により伝票データの仕訳処理を行うものである。
【0008】
本発明の自動仕訳処理装置では、まず、指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とをコンピュータ装置内の記憶装置上の記憶領域にツリー構造で保持する処理を行う。また、前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持しておく。
【0009】
次に、仕訳伝票ファイルから仕訳伝票データを読み込んだ後、前記記憶領域に保持したツリー構造を参照し、そのツリー構造を幹から葉に向かって辿って行くことにより、読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を末端の葉の部分から取得し、その取得した仕訳指示に従って当該仕訳伝票データの仕訳処理を実行して仕訳結果を仕訳済み伝票ファイルに出力する。
【0010】
そして、仕訳伝票ファイル中の全仕訳伝票データについて、ツリー構造中の仕訳条件の検索、仕訳指示の末端の葉の部分からの取得、その仕訳指示による仕訳処理の実行と出力を行った後、仕訳伝票ファイルを最後まで処理したら自動仕訳処理を終了する。
【0011】
また本発明の好ましい実施形態では、仕訳処理に必要な仕訳条件と仕訳処理に必要な仕訳指示とが対応し、仕訳条件には、伝票項目名とその伝票項目値を比較する条件となる仕訳条件項目名とその仕訳条件項目値とを指定し、また、仕訳指示には、仕訳方法を指定しておく。そして、仕訳条件の指定の際には、仕訳条件項目名と仕訳条件項目値とを1対とした、1対乃至複数の対を指定し、複数の対を指定した場合には、全ての対をアンド条件として条件の一致する仕訳条件の検索を行う。
【0012】
前記仕訳条件項目値として、所定の値(例えば、「100」)或いは、所定の範囲(例えば、「1から100」、若しくは、「2001/10/01から2002/03/31」)を指定することができ、所定の値であれば伝票項目値が等しいことにより、或いは、所定の範囲であれば伝票項目値がその範囲以内であることにより、仕訳条件の一致と判断する。
【0013】
本発明では、仕訳条件として1つ或いは複数の仕訳条件項目名の指定を行うものとするが、異なる仕訳条件においては、異なる仕訳条件項目名が指定されていても良い。
【0014】
前記の様に本発明の技術では、仕訳処理に必要な仕訳条件を、予めコンピュータ装置内の記憶装置に記憶しておくことで、データベース等の外部記憶装置に記憶しておいた場合よりも、仕訳処理に必要な仕訳条件を高速に検索することができ、かつ、本発明のツリー構造による記憶装置内の仕訳条件の保持方法により仕訳条件比較の回数を減らすことで更に高速に検索することができる。また本発明では、仕訳指示を仕訳方法とすることにより、仕訳方法を追加しようとした場合に自動仕訳プログラムの変更を不要とすることができる。
【0015】
以上の様に本発明の自動仕訳処理装置によれば、記憶装置上にツリー構造で保持された仕訳条件及び仕訳指示により伝票データの仕訳処理を行うので、伝票の仕訳作業を行う際にその仕訳条件の検索時間を短縮して仕訳処理を高速化することが可能である。
【0016】
【発明の実施の形態】
以下に記憶装置上にツリー構造で保持された仕訳条件及び仕訳指示により伝票データの仕訳処理を行う一実施形態の自動仕訳処理装置について説明する。
【0017】
図1は本実施形態の自動仕訳処理装置のシステム構成を示す図である。図1に示す様に本実施形態の自動仕訳処理装置は、仕訳条件指示ファイル読み込み処理部1と、仕訳伝票ファイル読み込み処理部2と、仕訳条件検索処理部3と、仕訳処理部4とを有している。
【0018】
仕訳条件指示ファイル読み込み処理部1は、指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置17上の記憶領域にツリー構造で保持する処理部であり、前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持するものである。
【0019】
仕訳伝票ファイル読み込み処理部2は、仕訳伝票ファイルから仕訳伝票データを読み込む処理部である。仕訳条件検索処理部3は、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得する処理部であり、前記ツリー構造を幹から葉に向かって辿って行くことにより前記仕訳条件を検索するものである。仕訳処理部4は、前記検索により取得した仕訳指示に従って前記仕訳伝票データの仕訳処理を実行する処理部である。
【0020】
本実施形態の自動仕訳処理装置を、仕訳条件指示ファイル読み込み処理部1、仕訳伝票ファイル読み込み処理部2、仕訳条件検索処理部3及び仕訳処理部4として機能させる為のプログラムは、CD−ROM等の記録媒体に記録され磁気ディスク等に格納された後、メモリにロードされて実行されるものとする。なお前記プログラムを記録する記録媒体はCD−ROM以外の他の記録媒体でも良い。また前記プログラムを当該記録媒体から情報処理装置にインストールして使用しても良いし、ネットワークを通じて当該記録媒体にアクセスして前記プログラムを使用するものとしても良い。
【0021】
図1の自動仕訳処理装置のコンピュータ装置16には記憶装置17及びCPU18が搭載されており、記憶装置17にはCPU18で実行するプログラムの使用する記憶領域が含まれている。また、コンピュータ装置16には外部記憶装置11〜14及び入力装置15が接続されており、コンピュータ装置16は、各外部記憶装置に格納されたファイルの入出力、及び入力装置15からの入力を処理する機能や、名称等の文字情報をソートする機能を持っている。ここで、図1は本実施形態における構成例を示したもので、他の実施形態においては、図1に示した以外の外部記憶装置があっても良く、また、次項に示す各ファイルが個別に入出力可能な状態であれば同一の外部記憶装置に格納されていても構わないものとする。
【0022】
ここで、外部記憶装置11には仕訳伝票ファイル、外部記憶装置12には仕訳条件/指示ファイル(以下、仕訳条件指示ファイル)、外部記憶装置13には仕訳済み伝票ファイル、外部記憶装置14には自動仕訳プログラムがそれぞれ格納されている。仕訳伝票ファイルには、1つまたは複数件の会計伝票データが格納されており、仕訳条件指示ファイルには、仕訳条件と仕訳指示を1対とした仕訳条件指示データが1つ乃至複数件格納されている。更に、仕訳済み伝票ファイルには、自動仕訳プログラムが処理した結果の会計伝票が1つまたは複数件出力される。
【0023】
次に、自動仕訳プログラムの処理内容について説明する。入力装置15より自動仕訳プログラムの実行開始が入力されると、自動仕訳プログラムが、外部記憶装置14から記憶装置17に読み込まれて前記各処理部が記憶装置17上に形成され、CPU18を使って各処理部の処理が実行される。ここで、入力装置15より自動仕訳プログラムの実行開始が入力される際に、仕訳伝票ファイル、仕訳条件指示ファイル、仕訳済み伝票ファイルの格納場所が同時に指定されるものとする。この格納場所は、外部記憶装置における各ファイルの位置を示す名称である。
【0024】
本実施形態の自動仕訳処理では、仕訳伝票ファイルと仕訳条件指示ファイルを、指定された格納場所から入力し、仕訳条件指示ファイルに格納されている仕訳条件指示データに従った仕訳処理をして、指定された格納場所の仕訳済み伝票ファイルに出力する。続いて、図2のフローチャート及び図3を用いて、自動仕訳処理について詳細に説明する。
【0025】
図2は本実施形態の自動仕訳処理の処理手順を示すフローチャートである。入力装置15より自動仕訳プログラムの実行開始が入力されると、仕訳条件指示ファイル読み込み処理部1は、同時に指定された仕訳条件指示ファイルを読み込み、記憶装置17上の記憶領域に、図3に示すツリー構造の仕訳条件及び仕訳指示データを保持する(ステップ21)。
【0026】
次に仕訳伝票ファイル読み込み処理部2は、仕訳伝票ファイルから仕訳伝票データを1件読み込み(ステップ22)、仕訳条件検索処理部3は、ステップ21により作成したツリー構造を参照して仕訳条件を検索し(ステップ23)、仕訳処理部4は、ステップ23で検索して得た仕訳指示データに従った仕訳処理を実行し(ステップ24)、実行した仕訳結果を仕訳済み伝票ファイルに出力する(ステップ24)。
【0027】
そして、仕訳伝票ファイルの最後まで処理したかチェックし(ステップ25)、仕訳伝票ファイルを最後まで処理していなければステップ22に戻って処理を繰り返し、仕訳伝票ファイルを最後まで処理したら自動仕訳処理を終了する。
【0028】
図3は本実施形態の記憶装置内で仕訳条件指示データを保持するツリー構造の概要を示す図である。ここで、前記ステップ21において作成するツリー構造について、図3を用いて詳細に説明する。
【0029】
図3に示すツリー構造は、名称がTOPであるノード31を先頭に、項目名1のPに示すポインタにより次のノード32にポイントし、ノード32の名称は項目名1であるので、更にノード32の値1のPに示すポインタにより次のノード33にポイントし、ノード33の名称は項目名一覧であるので、更にノード33の項目名2のPに示すポインタにより次のノード34にポイントし、ノード34の名称は項目名2であるので、更にノード34の値1のPに示すポインタにより次のノード35にポイントし、ノード35の名称は仕訳指示であって項目名及び項目名一覧ではないので、ノード35から次のノードへはポイントしていない。
【0030】
ここで、ノード33は、ノード31からノード33に至るまでに通過したノードが示す項目名及び値の条件が同一である複数の条件があることを示しており、ノード33の項目名により、ノード33より先のノードが示す項目名及び値の条件が異なる複数の条件が存在することを示している。
【0031】
前記の様に本実施形態の図3のツリー構造では、仕訳条件として指定された項目名または項目名一覧のポインタにより各ノードの位置を指し示し、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持しているものとしている。
【0032】
この為、前記の様にノードから次のノードにポイントしたときに、ポイントされたノードが項目名である場合には、該ノードの値のPに示すポインタにより更に次のノードへポイントし、ノードから次のノードにポイントしたときに、ポイントされたノードの名称が項目名一覧である場合には、該ノードの項目名のPに示すポインタにより更に次のノードへポイントしているが、ノードから次のノードにポイントしたときに、ポイントされたノードの名称が仕訳指示である場合には、該ノードから次のノードへポイントしていない。
【0033】
図3において、仕訳条件が複数の仕訳条件項目名をアンド条件とする場合、図3に示すノード31〜ノード34の様に、TOPと呼ばれるノード31から始まり仕訳条件項目名の数に応じた回数だけ次のノードへのポイントが繰り返される。また、仕訳条件が1つの仕訳条件項目名を条件とする場合、図3に示すノード36の様に、TOPと呼ばれるノード31から1回ポイントするだけのノードが作成される。
【0034】
図3のノード35に示す様なツリー構造の末端の葉の部分に位置する仕訳指示は、TOPのノード31からその直前のノードまでの仕訳条件が一致したときに、その仕訳処理に必要な仕訳指示データを保持している。
【0035】
図3において、仕訳条件項目名、仕訳条件項目値、仕訳指示を例示すれば、項目名1には、仕訳条件項目名(例えば、「営業店名」)、値1には、会計伝票の仕訳条件項目名に記載されたデータ(例えば、「A営業所」)、仕訳指示には、仕訳処理に必要な仕訳方法(例えば、「販売伝票¥5000に対して、売掛金 借方¥5000、商品 貸方¥5000、の様に借方、貸方を仕訳する方法」)を仕訳指示データとして保持する。
【0036】
ここで、図3に示すツリー構造を作成する手順について、図4〜図6のフローチャートを用いて詳細に説明する。
【0037】
図4〜図6は本実施形態の仕訳条件指示ファイル読み込み処理の処理手順を示すフローチャートである。図4〜図6に示す様に自動仕訳処理装置の仕訳条件指示ファイル読み込み処理部1は、指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置17上の記憶領域にツリー構造で保持する処理を行う。
【0038】
まず、ノード31の項目名をクリアし、ノード31に項目名を保持していない状態にする(ステップ701)。
【0039】
次に、仕訳条件指示ファイルから、仕訳条件指示データを1件読み込み(ステップ702)、仕訳条件指示データが読み込めたか、或いは仕訳条件指示ファイルの終わりに達したかをチェックする(ステップ703)。
【0040】
ステップ703において、仕訳条件指示ファイルの終わりに達した場合には、仕訳条件指示ファイルの読み込み処理を終了する。
【0041】
ステップ703において、仕訳条件指示データが読み込めた場合には、仕訳条件データ(例えば、「起票日:2001/04/01〜2001/09/30」、「営業店名:A営業所」、「支払区分:売掛」)と仕訳指示データ(例えば、「仕訳処理1」)とに分離する(ステップ704)。ここで、仕訳条件データは、仕訳条件項目名(例えば、「起票日」、「営業店名」、「支払区分」)と仕訳条件項目値(例えば、「2001/04/01〜2001/09/30」、「A営業所」、「売掛」)を含んでいるものとする。
【0042】
仕訳条件データに含まれる仕訳条件項目名をコンピュータ装置16に搭載されたソート機能を用いてソートする(ステップ705)。ここで、ソート機能については、文字コード順、或いは、数値の大小順等のソート条件は問わないが、ソート機能に組み込まれた所定の順序性をもってソートされるものとする。
【0043】
次にTOPであるノード31を着目ノードとした後(ステップ706)、仕訳条件項目名の内で1つ目の仕訳条件項目名に着目し、これを着目仕訳条件項目名とする(ステップ707)。例えば、ステップ705におけるソートの結果が、「起票日」「営業店名」「支払区分」の順であった場合、「起票日」を着目仕訳条件項目名とする。
【0044】
次に、着目ノードの項目名に、着目仕訳条件項目名に一致する項目名が含まれるか否かをチェックする(ステップ708)。
【0045】
ステップ708において、着目仕訳条件項目名に一致する項目名が含まれる場合には、項目名のPが示すポインタを取得し、該ポインタが示すノードを着目ノードとする(ステップ713)。
【0046】
ステップ708において、着目仕訳条件項目名に一致する項目名が含まれない場合には、着目仕訳条件項目名(例えば、「起票日」)を項目名とする新たなノードを作成し(ステップ709)、着目仕訳条件項目名を着目ノードの項目名に追加し(ステップ710)、該項目名のPに、該作成したノードをポイントするポインタを設定し(ステップ711)、該作成したノードを着目ノードとする(ステップ712)。
【0047】
次に、着目ノードの値に、着目仕訳条件項目名の仕訳条件項目値(例えば、「2001/04/01〜2001/09/30」)に一致する値が含まれているか否かをチェックする(ステップ714)。
【0048】
ステップ714において、仕訳条件項目値に一致する値が含まれている場合には、一致した値のPが仕訳指示のノードをポイントしているか否かをチェックする(ステップ721)。
【0049】
ステップ721において、一致した値のPが仕訳指示のノードをポイントしていない場合、着目仕訳条件項目名が仕訳条件項目名の最後が否かをチェックする(ステップ722)。
【0050】
ステップ722において、着目仕訳条件項目名が仕訳条件項目名の最後でない場合には、ステップ714において一致した値のPのポインタが示すノードを着目ノードとし(ステップ723)、着目仕訳条件項目名の次の仕訳条件項目名を着目仕訳条件項目名とし(ステップ724)、ステップ708に戻って処理を繰り返す。
【0051】
ステップ722において、着目仕訳条件項目名が仕訳条件項目名の最後であった場合には、重複する仕訳条件が存在するエラーとし(ステップ725)、自動仕訳処理をエラー終了する。
【0052】
ステップ714において、仕訳条件項目値に一致する値が含まれていない場合には、着目仕訳条件項目名の仕訳条件項目値を着目ノードの値に追加し(ステップ715)、着目仕訳条件項目名が仕訳条件項目名の最後か否かをチェックする(ステップ716)。
【0053】
ステップ716において、着目仕訳条件項目名が最後の場合には、仕訳指示ノードを作成し(ステップ717)、該仕訳指示ノードをポイントするポインタを、ステップ715で追加した値のPに設定し(ステップ717)、ステップ702に戻って次の仕訳条件指示データを読み込み、これまでの処理を繰り返す。
【0054】
ステップ716において、着目仕訳条件項目名が最後でない場合には、項目名一覧を名称とする次ノードを作成し(ステップ718)、着目ノードの値のPに該作成した次ノードをポイントするポインタを設定し(ステップ718)、該次ノードを着目ノードとし(ステップ719)、ステップ709に戻って処理を繰り返す。
【0055】
ステップ721において、一致した値のPが仕訳指示のノードをポイントしている場合には、着目仕訳条件項目名が最後の仕訳条件項目名か否かをチェックする(ステップ726)。
【0056】
ステップ726において、最後の仕訳条件項目名である場合には、同じ仕訳条件が存在するエラーとし(ステップ727)、最後の仕訳条件項目名でない場合には、重複する仕訳条件が存在するエラーとし(ステップ728)、ステップ727、ステップ728共に、自動仕訳処理をエラー終了する。
【0057】
次に、前記ステップ23における仕訳条件検索処理について、図3、図7及び図8のフローチャートを用いて詳細に説明する。
【0058】
図7及び図8は本実施形態の仕訳条件検索処理の処理手順を示すフローチャートである。図7及び図8に示す様に自動仕訳処理装置の仕訳条件検索処理部3は、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得する処理を行う。
【0059】
ステップ22において仕訳伝票ファイルから読み込んだ仕訳伝票データ(例えば、「起票日:2001/09/01」、「営業店名:A営業所」、「支払区分:売掛」)から、仕訳条件項目名と同じ伝票項目名(例えば、「起票日」、「営業店名」、「支払区分」)の伝票項目値(例えば、「2001/09/01」、「A営業所」、「売掛」)を、該当する伝票項目値全てについて抽出する(ステップ801)。
【0060】
次に、着目ノード控えスタックをクリアする(ステップ802)。ここで、着目ノード控えスタックとは、着目ノードを新たなノードに変更する際に、現着目ノード及び現着目項目名の控えを保持する先入れ後出しの、記憶装置17内に確保したステップ23の仕訳条件検索処理の間に有効な記憶領域である。
【0061】
ステップ801において、仕訳条件項目名に存在し、仕訳伝票データに、伝票項目名若しくは伝票項目値が存在しない場合には、該伝票項目名の伝票項目値にNULが記載されていたものとして扱う。ここで、NULは、便宜上、長さを持たない文字列(例えば、伝票項目名「営業店名」の伝票項目値が「」、すなわち「営業店名:」)であるものとする。
【0062】
次に、TOPノードを着目ノードとし(ステップ803)、TOPノードの1つ目の項目名を着目項目名とする(ステップ804)。そして、着目ノード控えスタックの最後尾に、現在の着目ノードを示すポインタ及び現在の着目項目名を1対として追加する(ステップ805)。
【0063】
次に、着目項目名のPのポインタの示すノードを着目ノードとし(ステップ806)、着目ノードの項目名と同じ伝票項目名の伝票項目値を取得した後(ステップ807)、着目ノードの値に伝票項目値が含まれるか否かをチェックする(ステップ808)。
【0064】
ステップ808において、伝票項目値が含まれる場合、着目ノードの該値のPの示すポインタが仕訳指示ノードをポイントするか否かをチェックする(ステップ809)。
【0065】
ステップ809において、該値のPのポインタが仕訳指示ノードをポイントする場合には、該仕訳指示ノードの保持する仕訳指示データを取得し、仕訳条件検索処理を終了する(ステップ810)。
【0066】
ステップ809において、該値のPのポインタが仕訳指示ノードをポイントしない場合には、該値のPのポイントするノードを着目ノードとして(ステップ811)、ステップ804に戻って処理を繰り返す。
【0067】
ステップ808において、伝票項目値が含まれない場合、着目ノード控えスタックの最後尾からポインタと着目項目名の1対を抜き取り、着目ノード及び着目項目名とする(ステップ812)。
【0068】
次に、着目項目名が着目ノードの最後の項目名か否かをチェックし(ステップ813)、ステップ813において、着目項目名が最後の項目名であった場合には、着目ノード控えスタックに着目ノードの控えがあるかチェックする(ステップ814)。
【0069】
ステップ814において、着目ノードの控えがあった場合には、ステップ812に戻って処理を繰り返す。またステップ814において、着目ノードの控えが無かった場合には、仕訳指示データは無いものとし(ステップ815)、仕訳条件検索処理を終了する。
【0070】
ステップ813において、着目項目名が最後の項目名でない場合には、着目ノードの次の項目名を着目項目名とし(ステップ816)、ステップ805に戻って処理を繰り返す。
【0071】
次に、前記ステップ24において処理する、仕訳指示実行処理について説明する。仕訳指示実行処理は、仕訳方法(例えば、「販売伝票¥5000に対して、売掛金 借方¥5000、商品 貸方¥5000、の様に借方、貸方を仕訳する方法」)に示される仕訳指示データに従って仕訳処理を行うものである。また、仕訳方法を示した仕訳指示データが無い場合には、伝票データをそのまま出力する。
【0072】
次に、仕訳伝票ファイルの仕訳伝票データの例を図9に、仕訳条件指示ファイルの仕訳条件指示データの例を図10に示し、ステップ21に従って図10の仕訳条件指示データを読み込み、図3に従ったツリー構造を作成した例を図11に示す。
【0073】
図9は本実施形態の仕訳伝票ファイルの仕訳伝票データの例を示す図である。図9に示す仕訳伝票データ41〜46には、起票日、営業店名、販売店、品目、数量、金額、支払区分の各項目名と、それらの値が入力されている。
【0074】
図10は本実施形態の仕訳条件指示ファイルの仕訳条件指示データの例を示す図である。図10に示す仕訳条件指示データ51〜56には、起票日、支払区分、仕訳指示等の各項目名及びそれらの値が登録されている。
【0075】
図11は本実施形態の図10の仕訳条件指示データを記憶領域内のツリー構造に変換した場合の変換例を示す図である。図3及び図4〜図6のフローチャートに示した手順に従うと、図10に示した仕訳条件指示ファイルの例では、図11に示したツリー構造が作成される。
【0076】
図11の、例えばノード64は、図10の仕訳条件指示データ51の仕訳指示を示している。また、例えばノード66は、図10の仕訳条件指示データ53の仕訳指示を示している。
【0077】
次に、ステップ22に従って図9の仕訳伝票データ41を読み込み、ステップ23に従って仕訳条件を検索すると、ノード64に示す仕訳指示データを取得し、ステップ24に従って仕訳指示を実行処理し、仕訳済み伝票ファイルに出力する。
【0078】
同じ様に、ステップ22に従って図9の仕訳伝票データ42を読み込んだときに、ステップ23に従って仕訳条件を検索すると、ノード67において「E工場」が含まれない為に、仕訳指示データ無しとなり、ステップ24に従って、仕訳処理されず該仕訳伝票データはそのまま仕訳済み伝票ファイルに出力される。
【0079】
同じ様に、ステップ22に従って図9の仕訳伝票データ43を読み込んだときに、ステップ23に従って仕訳条件を検索すると、ノード68に示す仕訳指示データを取得し、ステップ24に従って仕訳指示を実行処理し、仕訳済み伝票ファイルに出力する。
【0080】
同じ様にして、仕訳伝票データ46までを仕訳処理し、自動仕訳処理を終了する。
【0081】
前記の様に本実施形態では、自動仕訳システムに必要な仕訳条件の検索処理をツリー構造に保持すること、及び、ツリー構造の末端の葉から仕訳指示データへポイントすることで、仕訳処理に必要な仕訳条件の検索が高速に処理されるという効果が得られる。
【0082】
ここで、従来の技術において、データベース等の外部記憶装置を用いた場合の仕訳条件の検索に必要な条件比較の回数を、図10、図12を用いて説明する。
【0083】
図12は従来技術を用いて図10の仕訳条件指示データを検索する時のデータベースのデータ例を示す図である。従来の技術では、図10の仕訳条件指示データについて、図12に示す様なデータを作成してデータベース等の外部記憶装置に格納し、自動仕訳プログラムの指示により、仕訳伝票の伝票項目名と伝票項目値とを用いてデータベース等の外部記憶装置に格納した仕訳条件データを検索する。このときの条件比較の回数を求める計算式及び計算例を数1及び数2に示す。
【0084】
【数1】
仕訳伝票データ1件あたりの比較回数 =仕訳条件項目名数x(仕訳条件データ数÷2)
上の数1に数字を当てはめると、
【0085】
【数2】
4x(6÷2) = 12
となり、仕訳伝票データ1件あたり、平均して、条件値の比較を12回行うことが判る。なお、この式で、仕訳条件データ数を「÷2」とするのは、仕訳条件データを上から順に比較すると、何件目で一致するかについて、平均を求めることを意味しているからである。
【0086】
前記の様に従来技術では、図10の仕訳条件を検索するには、仕訳伝票データ1件あたり、平均して12回の比較が必要である。なお、この回数には、いずれの仕訳条件も一致しなかった場合も含まれている。
【0087】
一方、本実施形態の技術を用いた場合の仕訳条件の検索に必要な条件比較の回数を説明すると、本実施形態の技術では、図11に示した様なツリー構造としてコンピュータ装置内の記憶装置の記憶領域に格納し、これを検索しており、このとき条件比較の回数を求める計算式は以下の様になる。
【0088】
ツリー構造の条件比較の回数の平均を求める場合、項目名一覧を名称とするノードにおける条件比較回数について、以下の処理を考慮する必要がある。
【0089】
図7及び図8のステップ805〜ステップ816により、着目項目名と同じ伝票項目名の伝票項目値が着目項目名のPのポイントするノードの値に含まれる場合には1回の比較となるが、前記ノードの値に含まれない場合には、着目項目名を次の項目名に切り替えて同様の比較を繰り返す。
【0090】
この処理を考慮することにより、条件比較の回数は、最小で数3、最大で数4の様になり、その平均は数5で求めることができる。
【0091】
【数3】
項目名一覧の項目名の数(最小=1)
×その次の項目名の値の数(最小=1)×階層の深さ
=階層の深さ
【0092】
【数4】
項目名一覧の項目名の数×その次の項目名の値の数×階層の深さ
【0093】
【数5】
(階層の深さ+項目名一覧の項目名の数×その次の項目名の値の数×階層の深さ)÷2
【0094】
ここで、「項目名一覧の項目名の数」は、特定の1つの仕訳条件にのみ仕訳条件項目名が指定されていた場合、或いは、全ての仕訳条件にまたがって同じ仕訳条件項目名が指定されている場合を平均すると、一意な仕訳条件項目名が、仕訳条件全体に一様に分散していると考えられ、数6によって近似値を求めることができる。
【数6】
仕訳条件全体の一意な仕訳条件項目名の数÷仕訳条件の個数
【0095】
また、「その次の項目名の値の数」は、特定の1つの仕訳条件にのみ仕訳条件項目値が指定された場合、或いは、全ての仕訳条件にまたがって同じ仕訳条件項目名が指定されている場合を平均すると、一意な仕訳条件項目値が、仕訳条件全体に一様に分散していると考えられ、数7によって近似値を求めることができる。
【数7】
仕訳条件全体の一意な仕訳条件項目値の数÷仕訳条件の個数
【0096】
更に階層の深さは、「仕訳条件あたりの条件項目名の数の平均」によって、平均値を求めることができる。従って、条件比較の回数の平均は、数8によって近似値を求めることができる。
【数8】

Figure 2004302803
【0097】
図10の条件から値をとって、この近似値式に当てはめると、図10の条件比較の回数の平均は数9の様になる。
【数9】
図10の条件比較の回数の平均
=(1+(4×8)÷(6))×(16÷6)÷2
=2.51
よって図10の条件比較の回数の平均は、近似値で約2.5回となる。
【0098】
前記の様に本実施形態では、図10の仕訳条件を検索する際に、仕訳伝票データ1件あたり、約2.5回の比較を行えば良い。なお、この回数にはいずれの仕訳条件も一致しなかった場合も含まれている。
【0099】
これにより、本実施形態の技術を用いれば、従来技術より少ない条件比較の回数で仕訳条件の検索が可能になり、仕訳処理に必要な仕訳条件の検索が高速に処理できることになる。
【0100】
以上説明した様に本実施形態の自動仕訳処理装置によれば、記憶装置上にツリー構造で保持された仕訳条件及び仕訳指示により伝票データの仕訳処理を行うので、伝票の仕訳作業を行う際にその仕訳条件の検索時間を短縮して仕訳処理を高速化することが可能である。
【0101】
【発明の効果】
本発明によれば記憶装置上にツリー構造で保持された仕訳条件及び仕訳指示により伝票データの仕訳処理を行うので、伝票の仕訳作業を行う際にその仕訳条件の検索時間を短縮して仕訳処理を高速化することが可能である。
【図面の簡単な説明】
【図1】本実施形態の自動仕訳処理装置のシステム構成を示す図である。
【図2】本実施形態の自動仕訳処理の処理手順を示すフローチャートである。
【図3】本実施形態の記憶装置内で仕訳条件指示データを保持するツリー構造の概要を示す図である。
【図4】本実施形態の仕訳条件指示ファイル読み込み処理の処理手順を示すフローチャートである。
【図5】本実施形態の図4の続きを示す図である。
【図6】本実施形態の図4の続きを示す図である。
【図7】本実施形態の仕訳条件検索処理の処理手順を示すフローチャートである。
【図8】本実施形態の図7の続きを示す図である。
【図9】本実施形態の仕訳伝票ファイルの仕訳伝票データの例を示す図である。
【図10】本実施形態の仕訳条件指示ファイルの仕訳条件指示データの例を示す図である。
【図11】本実施形態の図10の仕訳条件指示データを記憶領域内のツリー構造に変換した場合の変換例を示す図である。
【図12】従来の術を用いて図10の仕訳条件指示データを検索する時のデータベースのデータ例を示す図である。
【符号の説明】
11〜14…外部記憶装置、15…入力装置、16…コンピュータ装置、17…記憶装置、18…CPU、1…仕訳条件指示ファイル読み込み処理部、2…仕訳伝票ファイル読み込み処理部、3…仕訳条件検索処理部、4…仕訳処理部、31〜36…ノード、41〜46…仕訳伝票データ、51〜56…仕訳条件指示データ、61〜68…ノード、91…起票日、92…支払区分、93…営業店名、94…事業所、95…仕訳指示。[0001]
TECHNICAL FIELD OF THE INVENTION
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic journal processing apparatus for performing journal entry work, and more particularly to a technique effective when applied to an automatic journal processing apparatus for automatically performing accounting journal entry work using a computer device.
[0002]
[Prior art]
Conventionally, when a journal entry operation of accounting slips is performed using a computer device, an automatic journalizing program for performing the journalizing process is created, read into a storage device mounted on the computer device, and a CPU mounted on the computer device is used. And the journalizing process is automated. Here, in order to journal accounting slips, journal conditions and journal processing are necessary, but journal conditions are created in advance and stored in an external storage device such as a database connected to a computer device. In accordance with an instruction from the automatic journalizing program, a voucher item name (for example, “business office name”) of an accounting voucher (for example, “sales voucher”) and a value described in the voucher item name of the journalizing voucher (for example, “A business office”) And a journal code stored in an external storage device such as a database is searched for, a journal code indicating the journal method (for example, "journal method 01") is obtained, and the journal described in the automatic journal program is acquired. The journalizing process is performed for each journal code by the process of determining the code.
[0003]
As an example of such an automatic journalizing system, a system and a method for easily creating information on the financial condition and profit and loss of a company from a transaction occurring in the economic activity of the company are provided (for example, see Patent Document 1). The journal code is searched using an external storage device such as a database.
[0004]
[Patent Document 1]
JP 2000-215263 A
[0005]
[Problems to be solved by the invention]
In the conventional technique, in order to obtain a journal code indicating a journal method, a journal condition stored in an external storage device such as a database connected to a computer device is searched, and the acquired journal code is further searched. The process of determining the journal code indicating the method and the journalizing process distinguished for each journal code are necessary in the automatic journal program, so when the number of journal conditions stored in the external storage device increases, There is a problem that it is difficult to secure the required performance and a problem that when a journal code is additionally changed, it is necessary to additionally change the journal processing in the automatic journal program.
[0006]
SUMMARY OF THE INVENTION It is an object of the present invention to solve the above-mentioned problem and to provide a technique capable of shortening a search time of the journal condition and speeding up the journal processing when performing a journal journaling operation.
[0007]
[Means for Solving the Problems]
The present invention relates to an automatic journal processing apparatus for performing a journal journaling operation, in which journal data is journalized according to journal conditions and journal instructions stored in a tree structure on a storage device.
[0008]
In the automatic journal processing apparatus of the present invention, first, a designated journal condition instruction file is read, and journal conditions indicating conditions for performing the journal processing and journal instructions indicating the contents of the journal processing are stored in a storage device in the computer device. A process of holding the data in a tree structure in the upper storage area is performed. When the journalizing conditions are stored in a tree structure of the storage area, a journaling instruction necessary for the journalizing process is stored in a leaf portion at the end of the tree structure.
[0009]
Next, after reading the journal voucher data from the journal voucher file, by referring to the tree structure held in the storage area and tracing the tree structure from the trunk to the leaves, the read journal voucher data is satisfied. The journal condition is searched from the tree structure, a journal instruction corresponding to the searched journal condition is obtained from a terminal leaf portion, and a journal processing of the journal slip data is executed according to the obtained journal instruction to execute the journal processing. Output the result to the journalized slip file.
[0010]
Then, for all journal voucher data in the journal voucher file, search for journal conditions in the tree structure, obtain from the end leaf portion of the journal instruction, execute and output journal processing according to the journal instruction, When the slip file has been processed to the end, the automatic journalizing process ends.
[0011]
In a preferred embodiment of the present invention, the journal conditions necessary for the journal processing correspond to the journal instructions required for the journal processing, and the journal conditions include a journal condition which is a condition for comparing the slip item name and the slip item value. An item name and its journal condition item value are specified, and a journal method is specified in the journal instruction. When specifying the journalizing conditions, one to a plurality of pairs, each having a pair of the journaling condition item name and the journalizing condition item value, are specified. When a plurality of pairs are specified, all pairs are specified. Is used as an AND condition to search for a matching journal condition.
[0012]
A predetermined value (for example, “100”) or a predetermined range (for example, “1 to 100” or “2001/10/01 to 2002/03/31”) is designated as the journal condition item value. If the value is a predetermined value, the slip item value is equal, or if the value is within a predetermined range, the slip item value is determined to be the same.
[0013]
In the present invention, one or a plurality of journal condition item names are designated as journal conditions. However, different journal condition item names may be designated in different journal conditions.
[0014]
As described above, in the technique of the present invention, by storing the journalizing conditions necessary for the journalizing process in advance in a storage device in the computer device, compared to the case where the journalizing condition is stored in an external storage device such as a database. Journal conditions necessary for journal processing can be searched at high speed, and the method for holding journal conditions in a storage device having a tree structure according to the present invention can reduce the number of times of comparison of journal conditions to perform search at higher speed. it can. Further, in the present invention, by using the journaling instruction as the journaling method, it is possible to eliminate the need to change the automatic journalizing program when adding a journaling method.
[0015]
As described above, according to the automatic journal processing device of the present invention, the journal data is journalized according to the journal conditions and the journal instructions held in a tree structure on the storage device. It is possible to shorten the condition search time and to speed up the journalizing process.
[0016]
BEST MODE FOR CARRYING OUT THE INVENTION
An automatic journal processing apparatus according to an embodiment that performs journal data processing of slip data according to journal conditions and journal instructions stored in a tree structure on a storage device will be described below.
[0017]
FIG. 1 is a diagram showing the system configuration of the automatic journal processing device of the present embodiment. As shown in FIG. 1, the automatic journal processing apparatus of the present embodiment includes a journal condition instruction file reading processor 1, a journal slip file reading processor 2, a journal condition search processor 3, and a journal processor 4. are doing.
[0018]
The journalizing condition instruction file reading processing unit 1 reads a specified journaling condition instruction file, and stores journaling conditions indicating conditions for performing the journalizing process and journaling instructions indicating the contents of the journalizing process in a storage area of the storage device 17. The processing unit holds the journalizing conditions in a tree structure in a storage area, and holds a journaling instruction necessary for the journalizing process in a leaf at the end of the tree structure.
[0019]
The journal voucher file reading processor 2 is a processor that reads journal voucher data from a journal voucher file. The journal condition search processing unit 3 refers to the tree structure stored in the storage area, searches the tree structure for journal conditions that are satisfied by the read journal slip data, and enters a journal instruction corresponding to the searched journal condition. And searches the journal condition by tracing the tree structure from the trunk toward the leaves. The journal processing unit 4 is a processing unit that executes journal processing of the journal slip data in accordance with the journal instruction acquired by the search.
[0020]
A program for causing the automatic journal processing device of the present embodiment to function as the journal condition instruction file reading processor 1, the journal slip file reading processor 2, the journal condition search processor 3, and the journal processor 4 is a CD-ROM or the like. And stored in a magnetic disk or the like, and then loaded into a memory and executed. The recording medium for recording the program may be a recording medium other than the CD-ROM. Further, the program may be installed from the recording medium to the information processing apparatus and used, or the recording medium may be accessed through a network to use the program.
[0021]
A storage device 17 and a CPU 18 are mounted on a computer device 16 of the automatic journal processing device shown in FIG. 1, and the storage device 17 includes a storage area used by a program executed by the CPU 18. Further, the external storage devices 11 to 14 and the input device 15 are connected to the computer device 16. The computer device 16 processes input / output of files stored in each external storage device and input from the input device 15. And a function for sorting character information such as names. Here, FIG. 1 shows a configuration example in the present embodiment. In other embodiments, an external storage device other than that shown in FIG. 1 may be provided. If they can be input / output to / from the same external storage device, they may be stored in the same external storage device.
[0022]
Here, a journal slip file is stored in the external storage device 11, a journal condition / instruction file (hereinafter, a journal condition instruction file) is stored in the external storage device 12, a journalized slip file is stored in the external storage device 13, and a journal slip file is stored in the external storage device 14. Automatic journalizing programs are stored respectively. The journal voucher file stores one or more accounting voucher data, and the journal condition instruction file stores one to a plurality of journal condition instruction data in which a journal condition and a journal instruction are paired. ing. Further, one or more accounting slips as a result of processing by the automatic journalizing program are output to the journalized slip file.
[0023]
Next, processing contents of the automatic journalizing program will be described. When the start of execution of the automatic journalizing program is input from the input device 15, the automatic journalizing program is read from the external storage device 14 into the storage device 17, and the respective processing units are formed on the storage device 17, and the CPU 18 is used to execute the processing. The processing of each processing unit is executed. Here, when the execution start of the automatic journalizing program is input from the input device 15, it is assumed that the storage locations of the journal entry slip file, the journal condition instruction file, and the journalized slip file are simultaneously specified. The storage location is a name indicating the location of each file in the external storage device.
[0024]
In the automatic journal processing of the present embodiment, a journal voucher file and a journal condition instruction file are input from a specified storage location, and the journal processing is performed according to the journal condition instruction data stored in the journal condition instruction file. Output to the journalized slip file in the specified storage location. Next, the automatic journalizing process will be described in detail with reference to the flowchart of FIG. 2 and FIG.
[0025]
FIG. 2 is a flowchart showing a processing procedure of the automatic journalizing processing according to the present embodiment. When the execution start of the automatic journalizing program is input from the input device 15, the journal condition instruction file read processing unit 1 simultaneously reads the designated journal condition instruction file, and stores it in the storage area of the storage device 17 as shown in FIG. The journalizing conditions and journaling instruction data in a tree structure are held (step 21).
[0026]
Next, the journal voucher file reading processor 2 reads one journal voucher data from the journal voucher file (step 22), and the journal condition search processor 3 searches the journal condition by referring to the tree structure created in step 21. (Step 23), the journal processing unit 4 executes the journal processing in accordance with the journal instruction data obtained in the step 23 (step 24), and outputs the executed journal result to a journalized slip file (step 23). 24).
[0027]
Then, it is checked whether the journal voucher file has been processed to the end (step 25). If the journal voucher file has not been processed to the end, the process returns to step 22 to repeat the processing. finish.
[0028]
FIG. 3 is a diagram showing an outline of a tree structure for holding journal condition instruction data in the storage device of the present embodiment. Here, the tree structure created in step 21 will be described in detail with reference to FIG.
[0029]
In the tree structure shown in FIG. 3, the node 31 whose name is TOP is pointed to the next node 32 by the pointer indicated by the P of the item name 1, and the name of the node 32 is the item name 1. The pointer to the next node 33 is indicated by the pointer indicated by the P of the value 1 of 32. Since the name of the node 33 is a list of item names, the pointer to the next node 34 is indicated by the pointer indicated by the P of the item name 2 of the node 33. Since the name of the node 34 is the item name 2, the pointer to the next node 35 is further pointed by the pointer indicated by P of the value 1 of the node 34, and the name of the node 35 is a journal entry instruction. Since there is no such node, it does not point from the node 35 to the next node.
[0030]
Here, the node 33 indicates that there are a plurality of conditions in which the condition of the item name and the value indicated by the node passed from the node 31 to the node 33 are the same. This indicates that there are a plurality of conditions having different item name and value conditions indicated by nodes prior to 33.
[0031]
As described above, in the tree structure of FIG. 3 of the present embodiment, the position of each node is indicated by the item name or the pointer of the item name list designated as the journalizing condition, and the journal processing is performed at the end leaf portion of the tree structure. It is assumed that necessary journaling instructions are held.
[0032]
Therefore, if the pointed node is an item name when the node is pointed to the next node as described above, the node is pointed to the next node by the pointer indicated by the value P of the node, If the name of the pointed node is a list of item names when pointing to the next node from, the pointer to the next node is indicated by the pointer indicated by the P of the item name of the node. If the name of the pointed node is a journal entry instruction when the node is pointed to the next node, the node does not point to the next node.
[0033]
In FIG. 3, when the journalizing condition has a plurality of journaling condition item names as AND conditions, like the nodes 31 to 34 shown in FIG. 3, the number of times corresponding to the number of the journalizing condition item names starts from the node 31 called TOP. Only the point to the next node is repeated. Further, when the journalizing condition is a condition of one journalizing condition item name, a node called only TOP from the node 31 called TOP is created like the node 36 shown in FIG.
[0034]
The journalizing instruction located at the end leaf portion of the tree structure as shown at the node 35 in FIG. 3 is used when journaling conditions from the TOP node 31 to the immediately preceding node match, and the journalizing process is required for the journalizing process. Holds instruction data.
[0035]
In FIG. 3, if the journal condition item name, the journal condition item value, and the journal instruction are exemplified, the item name 1 is the journal condition item name (for example, “business office name”), and the value 1 is the journal condition of the accounting voucher. The data described in the item name (for example, “A office”) and the journal instructions include the journalizing method required for journal processing (for example, “Sales slip $ 5000, Accounts receivable debit $ 5000, Merchandise credit $ 5000”). , A method of journalizing debits and credits is held as journaling instruction data.
[0036]
Here, the procedure for creating the tree structure shown in FIG. 3 will be described in detail with reference to the flowcharts in FIGS.
[0037]
4 to 6 are flowcharts showing the processing procedure of the journal condition instruction file reading process according to the present embodiment. As shown in FIGS. 4 to 6, the journal condition instruction file reading processing unit 1 of the automatic journal processing apparatus reads a specified journal condition instruction file, and shows journal conditions indicating conditions for performing the journal processing and the journal processing. A journaling instruction indicating the contents is stored in a storage area of the storage device 17 in a tree structure.
[0038]
First, the item name of the node 31 is cleared so that the node 31 does not hold the item name (step 701).
[0039]
Next, one journal condition instruction data is read from the journal condition instruction file (step 702), and it is checked whether the journal condition instruction data has been read or the end of the journal condition instruction file has been reached (step 703).
[0040]
If the end of the journal condition instruction file has been reached in step 703, the process of reading the journal condition instruction file ends.
[0041]
If the journal condition instruction data can be read in step 703, the journal condition data (for example, “Draft date: 2001/04/01 to 2001/09/30”, “Sales office name: A office”, “Payment” Classification: Accounts Receivable ") and journal instruction data (for example," journal processing 1 ") (step 704). Here, the journal condition data includes the journal condition item names (for example, “draft date”, “business office name”, and “payment category”) and the journal condition item values (for example, “2001/04/01 to 2001/09 / 30 "," Sales Office A ", and" Accounts Receivable ").
[0042]
The journalizing condition item names included in the journalizing condition data are sorted using a sorting function mounted on the computer device 16 (step 705). Here, the sorting function is not limited to a sort condition such as a character code order or a numerical value order, but it is assumed that sorting is performed in a predetermined order incorporated in the sorting function.
[0043]
Next, after the node 31 which is the TOP is set as the target node (step 706), the first journalizing condition item name among the journalizing condition item names is focused on, and this is set as the focused journalizing condition item name (step 707). . For example, when the result of the sorting in step 705 is “due date”, “business office name”, and “payment category”, “due date” is set as the noted journal entry condition item name.
[0044]
Next, it is checked whether or not the item name of the node of interest includes an item name that matches the journal entry condition item name of interest (step 708).
[0045]
In step 708, if an item name that matches the target journal condition item name is included, a pointer indicated by the item name P is acquired, and the node indicated by the pointer is set as the target node (step 713).
[0046]
In step 708, if an item name matching the target journal condition item name is not included, a new node having the target journal condition item name (for example, “draft date”) as an item name is created (step 709). ), Add the journal entry item name of interest to the item name of the node of interest (step 710), set a pointer to the created node at P of the item name (step 711), and pay attention to the created node. A node is set (step 712).
[0047]
Next, it is checked whether or not the value of the focused node includes a value that matches the journal condition item value of the focused journal condition item name (for example, “2001/04/01 to 2001/09/30”). (Step 714).
[0048]
If it is determined in step 714 that a value that matches the journal condition item value is included, it is checked whether the matching value P points to the node of the journal instruction (step 721).
[0049]
If it is determined in step 721 that the matching value P does not point to the journal instruction node, it is checked whether the target journal condition item name is the last of the journal condition item names (step 722).
[0050]
In step 722, if the target journal condition item name is not the last of the journal condition item names, the node indicated by the pointer of the P having the matched value in step 714 is set as the target node (step 723). Is set as the target journal condition item name (step 724), the process returns to step 708, and the process is repeated.
[0051]
In step 722, if the target journal condition item name is the last of the journal condition item names, it is determined that an error exists in which duplicate journal conditions exist (step 725), and the automatic journal processing is terminated with an error.
[0052]
In step 714, if a value matching the journal condition item value is not included, the journal condition item value of the noted journal condition item name is added to the value of the focused node (step 715), and the journal entry condition name of interest is changed. It is checked whether it is the last of the journalizing condition item names (step 716).
[0053]
In step 716, if the target journal condition item name is the last, a journal instruction node is created (step 717), and a pointer pointing to the journal instruction node is set to the value P added in step 715 (step 716). 717) Return to step 702 to read the next journaling condition instruction data, and repeat the processing up to this point.
[0054]
If the target journal entry condition item name is not the last in step 716, a next node having the name of the item name list is created (step 718), and a pointer pointing to the created next node is set to P of the value of the target node. The next node is set as the target node (step 719), and the process returns to step 709 to repeat the processing.
[0055]
If it is determined in step 721 that the matching value P points to the node of the journal entry instruction, it is checked whether or not the target journal entry item name is the last journal entry item name (step 726).
[0056]
In step 726, if it is the last journal condition item name, it is an error that the same journal condition exists (step 727). If it is not the last journal condition item name, it is an error that a duplicate journal condition exists ( In step 728), the automatic journalizing process ends in error in all of steps 727 and 728.
[0057]
Next, the journal condition search processing in step 23 will be described in detail with reference to the flowcharts in FIGS. 3, 7, and 8. FIG.
[0058]
FIGS. 7 and 8 are flowcharts showing the processing procedure of the journalizing condition search processing according to the present embodiment. As shown in FIGS. 7 and 8, the journal condition search processing unit 3 of the automatic journal processing device refers to the tree structure held in the storage area, and searches the tree structure for journal conditions that the read journal slip data satisfies. Then, a process of acquiring a journal instruction corresponding to the searched journal condition is performed.
[0059]
From the journal voucher data read from the journal voucher file in step 22 (eg, “Launch date: 2001/09/01”, “Office name: A office”, “Payment category: Accounts receivable”), the journal condition item name Voucher item values (for example, "2001/01/01", "A business office", "Accounts receivable") of the same voucher item names (for example, "Launch date", "Business branch name", "Payment category") Is extracted for all relevant slip item values (step 801).
[0060]
Next, the noted node reserve stack is cleared (step 802). Here, the noted node reserve stack is a first-in, first-out, last-served storage unit 17 that holds a copy of the current focused node and the current focused item name when the focused node is changed to a new node. This is a storage area effective during the journal condition search processing.
[0061]
In step 801, if the entry exists in the journal condition item name and the entry item name or entry item value does not exist in the entry entry entry data, it is treated as if the entry item value of the entry item name had described NUL. Here, for convenience, it is assumed that NUL is a character string having no length (for example, the slip item value of the slip item name “business office name” is “”, that is, “business office name:”).
[0062]
Next, the TOP node is set as the target node (step 803), and the first item name of the TOP node is set as the target item name (step 804). Then, a pointer indicating the current focused node and the current focused item name are added as a pair to the end of the focused node reserve stack (step 805).
[0063]
Next, the node indicated by the pointer P of the target item name is set as the target node (step 806), and after obtaining the slip item value of the same slip item name as the target node item name (step 807), It is checked whether or not a slip item value is included (step 808).
[0064]
If the slip item value is included in step 808, it is checked whether or not the pointer indicated by P of the value of the target node points to the journal entry instruction node (step 809).
[0065]
In step 809, when the pointer of the value P points to the journal instruction node, the journal instruction data held by the journal instruction node is acquired, and the journal condition search process ends (step 810).
[0066]
If the value P pointer does not point to the journal entry instruction node in step 809, the node to which the value P points is set as the target node (step 811), and the process returns to step 804 to repeat the processing.
[0067]
If the slip item value is not included in step 808, a pair of the pointer and the item name of interest is extracted from the tail of the node-of-interest reserve stack, and is taken as the node of interest and the item name of interest (step 812).
[0068]
Next, it is checked whether the focused item name is the last item name of the focused node (step 813). If the focused item name is the last item name in step 813, the focused node copy stack is focused. It is checked whether there is a copy of the node (step 814).
[0069]
If there is a copy of the node of interest in step 814, the process returns to step 812 to repeat the processing. If there is no copy of the node of interest in step 814, it is determined that there is no journal instruction data (step 815), and the journal condition search processing ends.
[0070]
If the target item name is not the last item name in step 813, the next item name of the target node is set as the target item name (step 816), and the process returns to step 805 to repeat the processing.
[0071]
Next, the journal instruction execution process performed in step 24 will be described. The journal instruction execution process is performed in accordance with the journal instruction data indicated in the journal method (for example, a method of journalizing a debit and a credit like a receivable debit of $ 5000 and a product credit of $ 5000 for a sales slip $ 5000). Processing is performed. If there is no journaling instruction data indicating the journalizing method, the slip data is output as it is.
[0072]
Next, FIG. 9 shows an example of the journal voucher data of the journal voucher file, and FIG. 10 shows an example of the journal condition instruction data of the journal voucher file. The journal condition instruction data of FIG. FIG. 11 shows an example of creating a tree structure according to this.
[0073]
FIG. 9 is a diagram illustrating an example of journal entry slip data of the journal entry slip file according to the present embodiment. In the journal voucher data 41 to 46 shown in FIG. 9, item names of a draft date, a branch name, a store, an item, a quantity, an amount, a payment category, and their values are input.
[0074]
FIG. 10 is a diagram illustrating an example of the journalizing condition instruction data of the journalizing condition instruction file according to the present embodiment. In the journal condition instruction data 51 to 56 shown in FIG. 10, item names such as a draft date, a payment category, and a journal instruction and their values are registered.
[0075]
FIG. 11 is a diagram showing a conversion example in a case where the journalizing condition instruction data of FIG. 10 of the present embodiment is converted into a tree structure in a storage area. According to the procedure shown in the flowcharts of FIGS. 3 and 4 to 6, the tree structure shown in FIG. 11 is created in the example of the journal condition instruction file shown in FIG.
[0076]
For example, a node 64 in FIG. 11 indicates a journalizing instruction of the journalizing condition instruction data 51 in FIG. Further, for example, a node 66 indicates a journal instruction of the journal condition instruction data 53 of FIG.
[0077]
Next, when the journal slip data 41 of FIG. 9 is read in accordance with step 22 and the journal condition is searched in accordance with step 23, the journal instruction data shown in the node 64 is obtained, the journal instruction is executed in accordance with step 24, and the journalized slip file is processed. Output to
[0078]
Similarly, when the journal voucher data 42 in FIG. 9 is read in accordance with step 22 and the journal condition is searched in accordance with step 23, no "E factory" is included in the node 67, so there is no journal instruction data. According to 24, the journalizing slip data is output to a journalized slip file without any journal processing.
[0079]
Similarly, when the journal voucher data 43 of FIG. 9 is read in accordance with step 22 and the journal condition is searched in accordance with step 23, the journal instruction data shown in the node 68 is obtained, and the journal instruction is executed in accordance with step 24. Output to the journalized slip file.
[0080]
In the same manner, the journal entry slip data 46 is subjected to journal entry processing, and the automatic journal entry processing ends.
[0081]
As described above, in the present embodiment, the search processing of the journalizing conditions necessary for the automatic journalizing system is held in a tree structure, and the journal processing is performed by pointing to the journal instruction data from the leaf at the end of the tree structure. The effect is obtained that the search for a suitable journal condition is processed at high speed.
[0082]
Here, in the related art, the number of condition comparisons required for searching for journalizing conditions when an external storage device such as a database is used will be described with reference to FIGS.
[0083]
FIG. 12 is a diagram showing a data example of a database when searching for the journal condition instruction data of FIG. 10 using the conventional technique. In the prior art, the journal condition instruction data shown in FIG. 10 is created as shown in FIG. 12 and stored in an external storage device such as a database. The journal condition data stored in an external storage device such as a database is searched using the item values. Formulas and examples of calculating the number of condition comparisons at this time are shown in Formulas 1 and 2.
[0084]
(Equation 1)
Number of comparisons per journal entry slip data = number of journaling condition item names x (number of journaling condition data / 2)
Applying the numbers to the above equation 1,
[0085]
(Equation 2)
4x (6 ÷ 2) = 12
Thus, it can be understood that the comparison of the condition values is performed 12 times on average per one journal entry slip data. In this equation, the reason why the number of journal condition data is set to “$ 2” means that, when the journal condition data is compared in order from the top, an average is obtained for the number of matches. is there.
[0086]
As described above, in the related art, in order to search the journal conditions shown in FIG. 10, it is necessary to perform an average of 12 comparisons per journal slip data. This number includes the case where none of the journalizing conditions match.
[0087]
On the other hand, the number of condition comparisons required for searching for journalizing conditions when the technique of the present embodiment is used will be described. In the technique of the present embodiment, a storage device in a computer device has a tree structure as shown in FIG. Is stored in the storage area of the above, and is searched. At this time, a calculation formula for calculating the number of times of the condition comparison is as follows.
[0088]
When obtaining the average of the number of times of the condition comparison of the tree structure, it is necessary to consider the following processing for the number of times of the condition comparison in the node having the item name list as a name.
[0089]
According to steps 805 to 816 in FIGS. 7 and 8, if the slip item value having the same slip item name as the target item name is included in the value of the node pointed to by P of the target item name, one comparison is performed. If not included in the value of the node, the target item name is switched to the next item name, and the same comparison is repeated.
[0090]
By taking this processing into account, the number of condition comparisons is as shown in Expression 3 at the minimum and Expression 4 at the maximum, and the average can be obtained by Expression 5.
[0091]
[Equation 3]
Number of item names in the item name list (minimum = 1)
× number of values of the next item name (minimum = 1) × depth of hierarchy
= Depth of hierarchy
[0092]
(Equation 4)
Number of item names in the item name list x number of values of the next item name x depth of hierarchy
[0093]
(Equation 5)
(Depth of hierarchy + number of item names in item name list × number of values of next item name × depth of hierarchy) / 2
[0094]
Here, "number of item names in the item name list" indicates that the journal condition item name is specified only for one specific journal condition, or the same journal condition item name is specified across all journal conditions. By averaging the cases, it is considered that the unique journal condition item names are uniformly dispersed throughout the entire journal condition, and an approximate value can be obtained by Expression 6.
(Equation 6)
Number of unique journal condition item names for all journal conditions 条件 Number of journal conditions
[0095]
In addition, “the number of values of the next item name” indicates that a journal condition item value is specified only for one specific journal condition or that the same journal condition item name is specified across all journal conditions. By averaging the cases, it is considered that the unique journal condition item values are uniformly distributed throughout the entire journal condition, and an approximate value can be obtained by Expression 7.
(Equation 7)
Number of unique journal condition item values for all journal conditions ÷ Number of journal conditions
[0096]
Furthermore, an average value of the depth of the hierarchy can be obtained by “average number of condition item names per journalizing condition”. Therefore, an average value of the number of times of the condition comparison can be obtained as an approximate value by Expression 8.
(Equation 8)
Figure 2004302803
[0097]
When values are taken from the conditions in FIG. 10 and applied to this approximate expression, the average of the number of condition comparisons in FIG.
(Equation 9)
Average of the number of conditions comparison in Fig. 10
= (1+ (4 × 8) ÷ (6 2 )) × (16 ÷ 6) ÷ 2
= 2.51
Therefore, the average of the number of times of the condition comparison in FIG. 10 is an approximate value of about 2.5.
[0098]
As described above, in the present embodiment, when searching the journalizing conditions in FIG. 10, it is sufficient to perform about 2.5 comparisons per journalizing slip data. This number includes the case where none of the journalizing conditions match.
[0099]
As a result, when the technique of the present embodiment is used, the search for the journal condition can be performed with a smaller number of condition comparisons than in the conventional technique, and the search for the journal condition required for the journal processing can be performed at high speed.
[0100]
As described above, according to the automatic journal processing apparatus of the present embodiment, the journal data is journalized according to the journal conditions and the journal instructions held in a tree structure on the storage device. It is possible to shorten the search time of the journal condition and to speed up the journal processing.
[0101]
【The invention's effect】
According to the present invention, the journal data is journalized according to the journal conditions and journal instructions held in a tree structure on the storage device. Therefore, when performing the journal journaling operation, the search time for the journal conditions is reduced to perform the journal processing. Can be speeded up.
[Brief description of the drawings]
FIG. 1 is a diagram showing a system configuration of an automatic journal processing device according to an embodiment.
FIG. 2 is a flowchart illustrating a procedure of an automatic journalizing process according to the embodiment.
FIG. 3 is a diagram showing an outline of a tree structure for holding journal condition instruction data in a storage device of the embodiment.
FIG. 4 is a flowchart illustrating a processing procedure of a journal condition instruction file reading process according to the embodiment;
FIG. 5 is a diagram showing a continuation of FIG. 4 of the present embodiment.
FIG. 6 is a diagram showing a continuation of FIG. 4 of the present embodiment.
FIG. 7 is a flowchart illustrating a processing procedure of journal condition search processing according to the embodiment;
FIG. 8 is a diagram showing a continuation of FIG. 7 of the present embodiment.
FIG. 9 is a diagram illustrating an example of journal entry slip data of a journal entry slip file according to the embodiment;
FIG. 10 is a diagram showing an example of journal condition instruction data of a journal condition instruction file of the embodiment.
11 is a diagram illustrating a conversion example when the journal condition instruction data of FIG. 10 according to the present embodiment is converted into a tree structure in a storage area.
FIG. 12 is a diagram showing an example of data in a database when searching the journal condition instruction data of FIG. 10 using a conventional technique.
[Explanation of symbols]
Reference numerals 11 to 14: external storage device, 15: input device, 16: computer device, 17: storage device, 18: CPU, 1: journalizing condition instruction file reading processing unit, 2: journal entry slip file reading processing unit, 3: journalizing condition Search processing unit, 4 ... journal processing unit, 31 to 36 ... node, 41 to 46 ... journal entry slip data, 51 to 56 ... journal entry condition instruction data, 61 to 68 ... node, 91 ... draft date, 92 ... payment class, 93: branch name, 94: establishment, 95: journal entry instruction.

Claims (12)

伝票の仕訳作業を行う自動仕訳処理方法において、
指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置上の記憶領域にツリー構造で保持するステップと、
仕訳伝票ファイルから仕訳伝票データを読み込むステップと、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得するステップと、前記検索により取得した仕訳指示に従って前記仕訳伝票データの仕訳処理を実行するステップとを有することを特徴とする自動仕訳方法。
In the automatic journal processing method for journal entry work,
Reading the specified journal condition instruction file, and holding journal conditions indicating conditions when performing the journal processing and journal instructions indicating the contents of the journal processing in a storage area on a storage device in a tree structure;
Reading the journal voucher data from the journal voucher file, referring to the tree structure held in the storage area, searching the tree structure for journal conditions that the read journal voucher data satisfies, An automatic journalizing method, comprising: acquiring a corresponding journal instruction; and executing a journalizing process of the journal voucher data in accordance with the journal instruction acquired by the search.
前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持することを特徴とする請求項1に記載された自動仕訳処理方法。2. The automatic journalizing process according to claim 1, wherein when the journalizing conditions are stored in a tree structure of a storage area, a journaling instruction necessary for the journalizing process is stored in a leaf portion at an end of the tree structure. Method. 前記ツリー構造を幹から葉に向かって辿って行くことにより前記仕訳条件を検索することを特徴とする請求項1または請求項2のいずれかに記載された自動仕訳処理方法。The automatic journal processing method according to claim 1, wherein the journal condition is searched by tracing the tree structure from a trunk toward a leaf. 伝票の仕訳作業を行う自動仕訳処理装置において、
指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置上の記憶領域にツリー構造で保持する仕訳条件指示ファイル読み込み処理部と、
仕訳伝票ファイルから仕訳伝票データを読み込む仕訳伝票ファイル読み込み処理部と、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得する仕訳条件検索処理部と、前記検索により取得した仕訳指示に従って前記仕訳伝票データの仕訳処理を実行する仕訳処理部とを備えることを特徴とする自動仕訳処理装置。
In an automatic journal processing unit that performs journal entry work,
Reads a specified journal condition instruction file, and stores a journal condition indicating a condition for performing the journal processing and a journal instruction indicating the content of the journal processing in a storage area of a storage device in a tree structure in a tree structure. A processing unit;
A journal voucher file reading processor for reading journal voucher data from the journal voucher file, and referring to the tree structure held in the storage area, searching the tree structure for journal conditions that the read journal voucher data satisfies; A journal condition search processing unit for acquiring a journal instruction corresponding to the selected journal condition, and a journal processing unit for executing a journal entry processing of the journal voucher data in accordance with the journal instruction acquired by the search. Processing equipment.
前記仕訳条件指示ファイル読み込み処理部は、前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持するものであることを特徴とする請求項4に記載された自動仕訳処理装置。The journal condition instruction file read processing unit, when holding the journal conditions in a tree structure of a storage area, holds a journal instruction necessary for the journal processing in a leaf portion at an end of the tree structure. The automatic journal processing device according to claim 4, wherein 前記仕訳条件検索処理部は、前記ツリー構造を幹から葉に向かって辿って行くことにより前記仕訳条件を検索するものであることを特徴とする請求項4または請求項5のいずれかに記載された自動仕訳処理装置。The method according to claim 4, wherein the journal condition search processing unit searches the journal condition by tracing the tree structure from a trunk to a leaf. Automatic journal processing equipment. 伝票の仕訳作業を行う自動仕訳処理装置としてコンピュータを機能させる為のプログラムにおいて、
指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置上の記憶領域にツリー構造で保持する仕訳条件指示ファイル読み込み処理部と、
仕訳伝票ファイルから仕訳伝票データを読み込む仕訳伝票ファイル読み込み処理部と、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得する仕訳条件検索処理部と、前記検索により取得した仕訳指示に従って前記仕訳伝票データの仕訳処理を実行する仕訳処理部としてコンピュータを機能させることを特徴とするプログラム。
In a program for causing a computer to function as an automatic journal processing device that performs journal entry work,
Reads a specified journal condition instruction file, and stores a journal condition indicating a condition for performing the journal processing and a journal instruction indicating the content of the journal processing in a storage area of a storage device in a tree structure in a tree structure. A processing unit;
A journal voucher file reading processor for reading journal voucher data from the journal voucher file, and referring to the tree structure held in the storage area, searching the tree structure for journal conditions that the read journal voucher data satisfies; A computer that functions as a journal condition search processing unit that acquires a journal instruction corresponding to the entered journal condition, and a journal processing unit that executes journal processing of the journal slip data in accordance with the journal instruction acquired by the search. program.
前記仕訳条件指示ファイル読み込み処理部は、前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持するものであることを特徴とする請求項7に記載されたプログラム。The journal condition instruction file read processing unit, when holding the journal conditions in a tree structure of a storage area, holds a journal instruction necessary for the journal processing in a leaf portion at an end of the tree structure. The program according to claim 7, wherein the program comprises: 前記仕訳条件検索処理部は、前記ツリー構造を幹から葉に向かって辿って行くことにより前記仕訳条件を検索するものであることを特徴とする請求項7または請求項8のいずれかに記載されたプログラム。9. The journal condition searching unit according to claim 7, wherein the journal condition search processing unit searches the journal condition by tracing the tree structure from a trunk toward a leaf. Program. 伝票の仕訳作業を行う自動仕訳処理装置としてコンピュータを機能させる為のプログラムを記録したコンピュータ読み取り可能な記録媒体において、
指定された仕訳条件指示ファイルを読み込み、仕訳処理を行う際の条件を示す仕訳条件とその仕訳処理の内容を示す仕訳指示とを記憶装置上の記憶領域にツリー構造で保持する仕訳条件指示ファイル読み込み処理部と、
仕訳伝票ファイルから仕訳伝票データを読み込む仕訳伝票ファイル読み込み処理部と、前記記憶領域に保持したツリー構造を参照し、前記読み込んだ仕訳伝票データが満たす仕訳条件を前記ツリー構造から検索して、その検索された仕訳条件に対応する仕訳指示を取得する仕訳条件検索処理部と、前記検索により取得した仕訳指示に従って前記仕訳伝票データの仕訳処理を実行する仕訳処理部としてコンピュータを機能させる為のプログラムを記録したことを特徴とするコンピュータ読み取り可能な記録媒体。
In a computer-readable recording medium that records a program for causing a computer to function as an automatic journal processing device that performs a journal entry operation,
Reads a specified journal condition instruction file, and stores a journal condition indicating a condition for performing the journal processing and a journal instruction indicating the content of the journal processing in a storage area of a storage device in a tree structure in a tree structure. A processing unit;
A journal voucher file reading processor for reading journal voucher data from the journal voucher file, and referring to the tree structure held in the storage area, searching the tree structure for journal conditions that the read journal voucher data satisfies; A program for causing a computer to function as a journal condition search processing unit for acquiring a journal instruction corresponding to the entered journal condition and a journal processing unit for executing the journal entry voucher data journal processing in accordance with the journal instruction acquired by the search. A computer-readable recording medium characterized by the following.
前記仕訳条件指示ファイル読み込み処理部は、前記仕訳条件を記憶領域のツリー構造で保持する際に、そのツリー構造の末端の葉の部分に仕訳処理で必要な仕訳指示を保持するものであることを特徴とする請求項10に記載されたコンピュータ読み取り可能な記録媒体。The journal condition instruction file read processing unit, when holding the journal conditions in a tree structure of a storage area, holds a journal instruction necessary for the journal processing in a leaf portion at an end of the tree structure. The computer-readable recording medium according to claim 10. 前記仕訳条件検索処理部は、前記ツリー構造を幹から葉に向かって辿って行くことにより前記仕訳条件を検索するものであることを特徴とする請求項10または請求項11のいずれかに記載されたコンピュータ読み取り可能な記録媒体。12. The journal condition search processing unit according to claim 10, wherein the journal condition is searched by tracing the tree structure from a trunk to a leaf. Computer readable recording medium.
JP2003094337A 2003-03-31 2003-03-31 Method and apparatus for automatic journalizing, journalizing program, and its recording medium Pending JP2004302803A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003094337A JP2004302803A (en) 2003-03-31 2003-03-31 Method and apparatus for automatic journalizing, journalizing program, and its recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003094337A JP2004302803A (en) 2003-03-31 2003-03-31 Method and apparatus for automatic journalizing, journalizing program, and its recording medium

Publications (1)

Publication Number Publication Date
JP2004302803A true JP2004302803A (en) 2004-10-28

Family

ID=33406923

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003094337A Pending JP2004302803A (en) 2003-03-31 2003-03-31 Method and apparatus for automatic journalizing, journalizing program, and its recording medium

Country Status (1)

Country Link
JP (1) JP2004302803A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128157A (en) * 1991-11-08 1993-05-25 Ricoh Co Ltd Document retrieval system
JPH08180123A (en) * 1994-12-26 1996-07-12 Casio Comput Co Ltd Data processor
JPH08263574A (en) * 1995-03-27 1996-10-11 Zen Aoiro:Kk Processor and method for account processing
JPH10111869A (en) * 1996-10-07 1998-04-28 Fujitsu Ltd Device and method for information classification
JP2001325299A (en) * 2000-05-16 2001-11-22 Komakkusu:Kk Device and method for retrieving data and information recording medium
JP2001338257A (en) * 2000-05-29 2001-12-07 Kawatetsu Techno-Construction Co Ltd Automatic account journalizing system
JP2001337971A (en) * 2000-05-29 2001-12-07 Ricoh Co Ltd Device and method for classifying document, and storage medium recorded with program for document classifying method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05128157A (en) * 1991-11-08 1993-05-25 Ricoh Co Ltd Document retrieval system
JPH08180123A (en) * 1994-12-26 1996-07-12 Casio Comput Co Ltd Data processor
JPH08263574A (en) * 1995-03-27 1996-10-11 Zen Aoiro:Kk Processor and method for account processing
JPH10111869A (en) * 1996-10-07 1998-04-28 Fujitsu Ltd Device and method for information classification
JP2001325299A (en) * 2000-05-16 2001-11-22 Komakkusu:Kk Device and method for retrieving data and information recording medium
JP2001338257A (en) * 2000-05-29 2001-12-07 Kawatetsu Techno-Construction Co Ltd Automatic account journalizing system
JP2001337971A (en) * 2000-05-29 2001-12-07 Ricoh Co Ltd Device and method for classifying document, and storage medium recorded with program for document classifying method

Similar Documents

Publication Publication Date Title
JP5083669B2 (en) Information extraction system, information extraction method, information extraction program, and information service system
US6728720B1 (en) Identifying preferred indexes for databases
CN1975721B (en) Method and apparatus for managing content file information
JP7000052B2 (en) Accounting equipment and programs
JP2004220215A (en) Operation guide and support system and operation guide and support method using computer
JP4896132B2 (en) Information retrieval method and apparatus reflecting information value
CN107924357A (en) Job managing apparatus, job management method and job handling routine
CN114942971A (en) Extraction method and device of structured data
JP2010061587A (en) Similar document determination device, similarity determination method and program therefor
JP2000172722A (en) Method and system for product information automatic indexing of on-line store
US7730062B2 (en) Cap-sensitive text search for documents
JP4992301B2 (en) Search processing method and apparatus
JP4938813B2 (en) Transaction data processing method, system and program
JP6355514B2 (en) File division system and method
JP6247413B1 (en) Automatic journalizing device for transaction details, automatic journalizing method, and automatic journalizing program
JP2004302803A (en) Method and apparatus for automatic journalizing, journalizing program, and its recording medium
JP2004310186A (en) Automatic journalization process, device for implementing it, its process program, and recording medium
JP2925042B2 (en) Information link generation method
JP5622049B2 (en) Batch processing system and batch processing method
JP4219125B2 (en) Full-text search device, full-text search method, program, and recording medium
JP2980067B2 (en) Document categorizing apparatus and machine-readable recording medium recording program
JP2001147923A (en) Device and method for retrieving similar document and recording medium
CN117573562B (en) Method for comparing different versions of pom file
CN108228617A (en) Ensure the method and device of database manipulation atomicity
CN109710844A (en) The method and apparatus for quick and precisely positioning file based on search engine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081020

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081028

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090210

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090409

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090526