JP2011186860A - Sales data processing apparatus and program - Google Patents

Sales data processing apparatus and program Download PDF

Info

Publication number
JP2011186860A
JP2011186860A JP2010052457A JP2010052457A JP2011186860A JP 2011186860 A JP2011186860 A JP 2011186860A JP 2010052457 A JP2010052457 A JP 2010052457A JP 2010052457 A JP2010052457 A JP 2010052457A JP 2011186860 A JP2011186860 A JP 2011186860A
Authority
JP
Japan
Prior art keywords
journal
transaction
withdrawal
amount
pattern information
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.)
Granted
Application number
JP2010052457A
Other languages
Japanese (ja)
Other versions
JP5526877B2 (en
Inventor
Mitsuharu Kamiya
充治 神谷
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2010052457A priority Critical patent/JP5526877B2/en
Publication of JP2011186860A publication Critical patent/JP2011186860A/en
Application granted granted Critical
Publication of JP5526877B2 publication Critical patent/JP5526877B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To automatically journalize, with a sales data processing apparatus, a transaction by account withdrawal not via a sales data processing apparatus. <P>SOLUTION: In the sales data processing apparatus 1, a storage part 14 stores a PUL setting file 141 storing a transaction item including a transaction by account withdrawal and a journalization code for identifying journalization pattern information of the transaction item in association with PUL number, and a journalization pattern information file 142 storing journalization pattern information for each transaction item and withdrawal information in a case in which the transaction item is a transaction by account withdrawal in association with the journalization code. A CPU 10 searches a record having withdrawal information with a withdrawal date before a current date from the journalization pattern information file 142, and forms, when the corresponding withdrawal information is searched, allocation journalization data in which a withdrawal amount is journalized based on the journalization pattern corresponding to the searched withdrawal information. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、売上データ処理装置及びプログラムに関する。   The present invention relates to a sales data processing apparatus and a program.

従来、商品の売上登録を行うECR(Electronic Cash Register:電子式金銭登録機)等の売上データ処理装置が知られている。売上データ処理装置では、バーコードやタッチパネルを用いて簡単な操作で商品の入力が行えるようになっている(たとえば、特許文献1参照)。   2. Description of the Related Art Conventionally, sales data processing devices such as ECR (Electronic Cash Register) for registering sales of products are known. In the sales data processing apparatus, a product can be input by a simple operation using a barcode or a touch panel (see, for example, Patent Document 1).

また、小口現金取引が中心となる小売業や飲食業などの店舗においては、売上の他、仕入、経費、振替等の数々の現金取引が売上データ処理装置を経由して頻繁に行われている。そこで、売上データ処理装置を経由して行われた現金取引の仕訳を簡単な操作で行なうことができる売上データ処理装置も提案されている。   In addition, in retail stores and restaurants, where retail cash transactions are central, many cash transactions such as purchases, expenses, and transfers are frequently made via sales data processing devices in addition to sales. . Therefore, a sales data processing apparatus has also been proposed that can perform a journal entry of a cash transaction performed via the sales data processing apparatus with a simple operation.

特開平09−245253号公報JP 09-245253 A

ところで、店舗経営者にとっては、店舗の儲け(収益)を正確に把握することが重要である。店舗の儲けは、売上データ処理装置を経由して行われる現金取引の他、売上データ処理装置を経由しない口座引落しによる取引についても加味して算出する必要がある。   By the way, it is important for the store manager to accurately grasp the profit (revenue) of the store. It is necessary to calculate the profit of the store by taking into account transactions withdrawing accounts that do not pass through the sales data processing device in addition to cash transactions performed through the sales data processing device.

しかしながら、従来の売上データ処理装置では、売上データ処理装置を経由する取引以外は管理しておらず、店舗経営者が正確な儲けを把握することが困難であるという問題があった。   However, the conventional sales data processing apparatus does not manage any transaction other than the sales data processing apparatus, and there is a problem that it is difficult for the store manager to grasp an accurate profit.

また、国税庁の税務調査においては、売上データ処理装置の実際の現金残高(金銭の額)と現金出納帳の帳簿残高とが一致することが求められる。しかし、飲食店経営など現金取引中心の小規模事業者においては、長時間労働のため、毎日閉店後に現金出納帳等各種帳簿への記帳をする作業は難しく、帳簿への記載はまとめて行われるのが現状である。そのため、実際の残高と帳簿上の残高を完璧に一致させることは非常に難しいという問題があった。   Further, in the tax examination of the National Tax Agency, it is required that the actual cash balance (amount of money) of the sales data processing device and the book balance of the cash register are the same. However, for small businesses with a focus on cash transactions such as restaurant management, it is difficult to make entries in various books such as cash accounts after closing every day because of long working hours. is the current situation. Therefore, there is a problem that it is very difficult to perfectly match the actual balance with the balance on the book.

本発明の課題は、売上データ処理装置を経由しない口座引落しによる取引についても売上データ処理装置で自動的に仕訳できるようにすることである。   It is an object of the present invention to enable a sales data processing apparatus to automatically journal a transaction based on account withdrawal without going through a sales data processing apparatus.

上記課題を解決するため、請求項1に記載の発明の売上データ処理装置は、
口座引落しによる取引を含む取引項目及び当該取引項目の仕訳パターン情報を特定するための仕訳コードを識別番号に対応付けて記憶する取引情報記憶部と、
前記取引項目の仕訳パターン情報を前記仕訳コードに対応付けて記憶し、前記取引項目が前記口座引落しによる取引である場合には、更に前記仕訳パターン情報を引落日及び引落金額を含む引落情報に対応付けて記憶する仕訳パターン情報記憶部と、
計上仕訳データを記憶する計上仕訳データ記憶部と、
精算時に、前記引落日が現在日付以前の引落情報を前記仕訳パターン情報記憶部から検索し、該当する引落情報が検索された場合は、その検索された引落情報に対応する仕訳パターン情報に基づいて引落金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部と、
を備える。
In order to solve the above-mentioned problem, the sales data processing device of the invention described in claim 1
A transaction information storage unit that stores a transaction item including a transaction by direct debit and a journal code for specifying the journal pattern information of the transaction item in association with an identification number;
The journal pattern information of the transaction item is stored in association with the journal code, and when the transaction item is a transaction by the account withdrawal, the journal pattern information is further converted into withdrawal information including a withdrawal date and a withdrawal amount. Journal pattern information storage unit that stores the associated information,
An accounting journal data storage unit for storing accounting journal data;
When the withdrawal date is searched from the journal pattern information storage unit and the corresponding withdrawal information is retrieved, the withdrawal date is retrieved based on the journal pattern information corresponding to the retrieved withdrawal information. A control unit that creates the accounting journal data journalizing the withdrawal amount and stores it in the accounting journal data storage unit;
Is provided.

請求項2に記載の発明は、請求項1に記載の発明において、
前記口座引落しによる取引には、毎月定額で口座から引落される取引が含まれる。
The invention according to claim 2 is the invention according to claim 1,
The transaction by the account withdrawal includes a transaction withdrawn from the account at a fixed amount every month.

請求項3に記載の発明は、請求項1又は2に記載の発明において、
前記口座から引落される取引には、毎月の請求により指定日に口座から引落される取引が含まれる。
The invention according to claim 3 is the invention according to claim 1 or 2,
Transactions withdrawn from the account include transactions withdrawn from the account on a designated date due to monthly billing.

請求項4に記載の発明は、請求項1〜3の何れか一項に記載の発明において、
前記仕訳パターン情報記憶部に記憶されている引落日及び引落金額を変更するための入力部を備える。
The invention according to claim 4 is the invention according to any one of claims 1 to 3,
An input unit is provided for changing the withdrawal date and the withdrawal amount stored in the journal pattern information storage unit.

請求項5に記載の発明は、請求項1〜4の何れか一項に記載の発明において、
出力部を備え、
前記制御部は、前記計上仕訳データの作成後、作成された計上仕訳データの内容を示す口座引落仕訳伝票を作成し、前記出力部に出力させる。
The invention according to claim 5 is the invention according to any one of claims 1 to 4,
With an output section,
After creating the booked journal data, the control unit creates an account withdrawal journal slip indicating the contents of the created booked journal data and causes the output unit to output it.

請求項6に記載の発明は、請求項1〜5の何れか一項に記載の発明において、
前記入力部は、仕訳対象とする取引項目の識別番号、取引金額及び取引区分を入力可能であり、
前記制御部は、前記入力部により仕訳対象の取引項目の識別番号及び取引区分が入力されると、当該入力された識別番号に対応する仕訳コードを前記取引情報記憶部から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を前記仕訳パターン情報記憶部から読み出し、前記入力部により入力された取引区分及び前記読み出された仕訳パターン情報に基づいて前記入力された取引金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させ、精算時に、前記計上仕訳データ記憶部に記憶されている、前記口座引落しによる取引を含む前記計上仕訳データに基づいて、本日及び当月累計の収益を算出し、前記出力部により出力させる。
The invention according to claim 6 is the invention according to any one of claims 1 to 5,
The input unit can input an identification number of a transaction item to be journalized, a transaction amount, and a transaction classification,
When the identification number and transaction classification of the transaction item to be journalized are input by the input unit, the control unit acquires a journal code corresponding to the input identification number from the transaction information storage unit, The journal pattern information associated with the journal code is read from the journal pattern information storage unit, and the input transaction amount is journaled based on the transaction classification input by the input unit and the read journal pattern information. The recorded journal data is created and stored in the recorded journal data storage unit, and at the time of settlement, the recorded journal data including the transaction by the account withdrawal, stored in the recorded journal data storage unit, Calculate the accumulated profit for the current month and output it by the output unit.

請求項7に記載の発明は、請求項1〜6の何れか一項に記載の発明において、
前記入力部は、前記売上データ処理装置に収納されている金銭の金額を入力可能に構成され、
前記制御部は、精算時に、前記入力部により入力された金銭の金額と、本日作成された計上仕訳データに基づいて算出された現金残高を示す値とに過不足があるか否かを判断し、過不足がある場合に、当該過不足の金額を現金過不足項目として計上した計上仕訳データを作成し、前記計上仕訳データ記憶部に記憶させる。
The invention according to claim 7 is the invention according to any one of claims 1 to 6,
The input unit is configured to be able to input the amount of money stored in the sales data processing device,
The control unit determines whether there is an excess or deficiency in the amount of money input by the input unit and the value indicating the cash balance calculated based on the recorded journal data created today at the time of settlement. When there is an excess or deficiency, the accounting journal data in which the excess or deficiency amount is recorded as a cash excess or deficiency item is created and stored in the accounting journal data storage unit.

請求項8に記載の発明のプログラムは、
売上データ処理装置に用いられるコンピュータを、
口座引落しによる取引を含む取引項目及び当該取引項目の仕訳パターン情報を特定するための仕訳コードを識別番号に対応付けて記憶する取引情報記憶部、
前記取引項目の仕訳パターン情報を前記仕訳コードに対応付けて記憶し、前記取引項目が前記口座引落しによる取引である場合には、更に前記仕訳パターン情報を引落日及び引落金額を含む引落情報に対応付けて記憶する仕訳パターン情報記憶部、
計上仕訳データを記憶する計上仕訳データ記憶部、
精算時に、前記引落日が現在日付以前の引落情報を前記仕訳パターン情報記憶部から検索し、該当する引落情報が検索された場合は、その検索された引落情報に対応する仕訳パターン情報に基づいて引落金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部、
として機能させる。
The program of the invention described in claim 8 is:
A computer used in a sales data processing device
A transaction information storage unit for storing a transaction item including a transaction by direct debit and a journal code for specifying the journal pattern information of the transaction item in association with an identification number;
The journal pattern information of the transaction item is stored in association with the journal code, and when the transaction item is a transaction by the account withdrawal, the journal pattern information is further converted into withdrawal information including a withdrawal date and a withdrawal amount. Journal pattern information storage unit for storing in association with each other,
Account journal data storage unit for storing account journal data,
When the withdrawal date is searched from the journal pattern information storage unit and the corresponding withdrawal information is retrieved, the withdrawal date is retrieved based on the journal pattern information corresponding to the retrieved withdrawal information. A control unit that creates the accounting journal data journalizing the withdrawal amount and stores it in the accounting journal data storage unit,
To function as.

本発明によれば、売上データ処理装置を経由しない口座引落しによる取引についても売上データ処理装置で自動的に仕訳することが可能となる。   According to the present invention, a transaction by direct debit without going through a sales data processing device can be automatically journalized by the sales data processing device.

本発明の実施形態における売上データ処理システムの全体構成例を示す図である。It is a figure which shows the example of whole structure of the sales data processing system in embodiment of this invention. 図1の売上データ処理装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the sales data processing apparatus of FIG. 図2の入力部の一例を示す図である。It is a figure which shows an example of the input part of FIG. 図2のPLU設定ファイルのデータ格納例を示す図である。FIG. 3 is a diagram illustrating a data storage example of the PLU setting file of FIG. 2. 図2の仕訳パターン情報ファイルのデータ格納例を示す図である。It is a figure which shows the example of data storage of the journal pattern information file of FIG. 図2の計上仕訳データファイルのデータ格納例を示す図である。It is a figure which shows the example of data storage of the accounting journal data file of FIG. 図1のサーバ装置の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of the server apparatus of FIG. 図7の認証設定ファイルのデータ格納例を示す図である。It is a figure which shows the example of data storage of the authentication setting file of FIG. 図1の売上データ処理装置においてサーバ装置から仕訳パターン情報ファイルをダウンロードする際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of downloading the journal pattern information file from a server apparatus in the sales data processing apparatus of FIG. 図2のCPUにおいて実行される仕訳処理を示すフローチャートである。It is a flowchart which shows the journalizing process performed in CPU of FIG. 図2のCPUにおいて実行される出金仕訳処理を示すフローチャートである。It is a flowchart which shows the withdrawal journalizing process performed in CPU of FIG. 図11の出金仕訳処理が終了するまでのオペレータの操作手順及び出金仕訳処理によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the withdrawal journal entry process of FIG. 11 is complete | finished, and a withdrawal journal entry process. 図2のCPUにおいて実行される入金仕訳処理を示すフローチャートである。It is a flowchart which shows the deposit journal process performed in CPU of FIG. 図13の入金仕訳処理が終了するまでのオペレータの操作手順及び入金仕訳処理によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the payment journal entry process of FIG. 13 is complete | finished, and a payment journal entry process. 図2のCPUにおいて実行される売上管理処理を示すフローチャートである。It is a flowchart which shows the sales management process performed in CPU of FIG. 図2のCPUにおいて実行される売上仕訳処理(パターン2)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 2) performed in CPU of FIG. 図16の売上仕訳処理(パターン2)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン2)によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the sales journal process (pattern 2) of FIG. 16 is complete | finished, and a sales journal process (pattern 2). 図2のCPUにおいて実行される売上仕訳処理(パターン3)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 3) performed in CPU of FIG. 図18の売上仕訳処理(パターン3)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン3)によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the sales journal process (pattern 3) of FIG. 18 is complete | finished, and a sales journal process (pattern 3). 図2のCPUにおいて実行される売上仕訳処理(パターン1)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 1) performed in CPU of FIG. 図20の売上仕訳処理(パターン1)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン1)によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the sales journal process (pattern 1) of FIG. 20 is complete | finished, and a sales journal process (pattern 1). 図2のCPUにおいて実行される売上仕訳処理(パターン4)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 4) performed in CPU of FIG. 図22の売上仕訳処理(パターン4)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン4)によって出力されるレシートの一例を示す図である。It is a figure which shows an example of the receipt output by the operation procedure of an operator until the sales journal process (pattern 4) of FIG. 22 is complete | finished, and a sales journal process (pattern 4). 図2のCPUにおいて実行される精算処理を示すフローチャートである。It is a flowchart which shows the adjustment process performed in CPU of FIG. 図24の精算処理で発行される口座引落自動仕訳控え(定額引落用)の一例を示す図である。It is a figure which shows an example of the account withdrawal automatic journal entry (for fixed amount withdrawal) issued by the adjustment process of FIG. 図24の精算処理で発行される口座引落自動仕訳控え(請求による引落用)の一例を示す図である。FIG. 25 is a diagram illustrating an example of an account withdrawal automatic journal entry (for withdrawal by billing) issued in the settlement process of FIG. 24. 図2のCPUにおいて実行される精算時の集計処理を示すフローチャートである。It is a flowchart which shows the total process at the time of the adjustment performed in CPU of FIG. 図2の記憶部に記憶される集計ファイルの一例を示す図である。It is a figure which shows an example of the total file memorize | stored in the memory | storage part of FIG. 図24の精算処理で発行される現金過不足の仕訳控えの一例を示す図である。It is a figure which shows an example of the journal overwriting of the cash excess and deficiency issued by the adjustment process of FIG. 図24の精算処理で発行される本日の商いレポートの一例を示す図である。It is a figure which shows an example of today's business report issued by the adjustment process of FIG. 図1の売上データ処理装置においてサーバ装置に計上仕訳データをアップロードする際の処理を示すフローチャートである。It is a flowchart which shows the process at the time of uploading accounting journal data to a server apparatus in the sales data processing apparatus of FIG.

以下、添付図面を参照して本発明に係る好適な実施形態を詳細に説明する。なお、本発明は、図示例に限定されるものではない。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. The present invention is not limited to the illustrated example.

(売上データ処理システム100の構成)
図1は、本実施形態に係る売上データ処理システム100の全体構成を示す図である。売上データ処理システム100は、図1に示すように、売上データ処理装置1と、サーバ装置2と、が通信ネットワークNを介してデータ送受信可能に接続されて構成されている。通信ネットワークNは、専用線や既存の公衆回線、インターネット等を利用して構築された情報通信網である。売上データ処理装置1の台数は特に限定されない。また、この実施形態で、売上データ処理装置とは、ECR(Electronic Cash Resister)等を含むものである。
(Configuration of sales data processing system 100)
FIG. 1 is a diagram showing an overall configuration of a sales data processing system 100 according to the present embodiment. As shown in FIG. 1, the sales data processing system 100 is configured by connecting a sales data processing device 1 and a server device 2 via a communication network N so that data can be transmitted and received. The communication network N is an information communication network constructed using a dedicated line, an existing public line, the Internet, or the like. The number of sales data processing apparatuses 1 is not particularly limited. In this embodiment, the sales data processing apparatus includes an ECR (Electronic Cash Register) and the like.

(売上データ処理装置1の構成)
売上データ処理装置1は、店舗に設けられ、オペレータの操作に基づいて購買された商品の登録処理、仕訳処理、精算処理等を行う。
(Configuration of sales data processing apparatus 1)
The sales data processing apparatus 1 is provided in a store, and performs registration processing, journalizing processing, checkout processing, and the like of merchandise purchased based on an operator's operation.

図2は、売上データ処理装置1の機能構成を示すブロック図である。図2に示すように、売上データ処理装置1は、CPU(Central Processing Unit)10、入力部11、表示部12、RAM(Random Access Memory)13、記憶部14、通信部15、印刷部16、ドロア17、計時部18等を備えて構成され、各部はバス19を介して接続されている。   FIG. 2 is a block diagram showing a functional configuration of the sales data processing apparatus 1. As shown in FIG. 2, the sales data processing apparatus 1 includes a CPU (Central Processing Unit) 10, an input unit 11, a display unit 12, a RAM (Random Access Memory) 13, a storage unit 14, a communication unit 15, a printing unit 16, A drawer 17, a time measuring unit 18, and the like are provided, and each unit is connected via a bus 19.

制御部としてのCPU10は、記憶部14に記憶されているシステムプログラムを読み出し、RAM13のワークエリアに展開し、該システムプログラムに従って各部を制御する。また、CPU10は、記憶部14に記憶されている処理プログラム145を読み出してワークエリアに展開し、後述する仕訳処理、精算処理を始めとする各種処理を実行する。   The CPU 10 serving as a control unit reads a system program stored in the storage unit 14, develops it in the work area of the RAM 13, and controls each unit according to the system program. Further, the CPU 10 reads out the processing program 145 stored in the storage unit 14 and develops it in the work area, and executes various processes including a journalizing process and a settlement process described later.

入力部11は、図3に示すように、テンキー111、部門キー112、フラットPLUキー113、入金キー114、出金キー115、クレジットキー116、券キー117、現金預金キー118、小計キー119、登録確認キー120、金額キー121、乗算キー122、接続キー123、在高申告キー125、客数キー126、仮締めキー127、伝票番号キー128等を備えて構成されている。   As shown in FIG. 3, the input unit 11 includes a numeric keypad 111, a department key 112, a flat PLU key 113, a deposit key 114, a withdrawal key 115, a credit key 116, a ticket key 117, a cash deposit key 118, a subtotal key 119, A registration confirmation key 120, a money amount key 121, a multiplication key 122, a connection key 123, a cash balance declaration key 125, a customer number key 126, a temporary closing key 127, a slip number key 128 and the like are provided.

フラットPLUキー113は、PLU番号が対応付けられた複数のキーにより構成される。PLU番号は、商品又は取引項目(現金売上、クレジット、商品券売上等)を識別するために割り当てられた識別番号である。フラットPLUキー113のそれぞれには、図3に示すように、PLU番号に対応する商品の名称又は取引項目の名称が表示されている。例えば、PLU番号145は取引項目「現金売上」を識別する番号であるので、PLU番号145に対応するフラットPLUキー113には、「現金売上」の文字が表示されている。フラットPLUキー113の何れかが押下されると、そのフラットPLUキー113に対応するPLU番号が入力される。なお、図3において、PLU番号001〜099は、フラットPLUキー113では1〜99と表記している。
入金キー114、出金キー115、クレジットキー116、券キー117、現金預金キー118は、取引区分(出金、入金、クレジット、商品券、現金)を入力するためのキーである。
小計キー119は、商品の登録が終了し、登録された売上金額の合計の算出指示を入力するためのキーである。登録確認キー120は、次の処理への移行指示を入力するためのキーである。
金額キー121は、テンキー111で入力された数値が金額であることを入力するためのキーである。
乗算キー122は、数量を入力するためのキーである。
接続キー123は、サーバ装置2への接続指示を入力するためのキーである。
在高申告キー125は、在高申告処理の実行を指示するためのキーである。在高申告とは、ドロア17内の金銭の合計額を勘定して売上データ処理装置1に登録することである。
客数キー126は、テンキー111で入力された数値が客数である旨を入力するためのキーである。
仮締めキー127は、取引を仮締めする指示を入力するためのキーである。
伝票番号キー128は、テンキー111で入力された数値が伝票番号である旨を入力するためのキーである。
The flat PLU key 113 is composed of a plurality of keys associated with PLU numbers. The PLU number is an identification number assigned to identify a product or transaction item (cash sales, credit, gift certificate sales, etc.). Each flat PLU key 113 displays the name of a product or the name of a transaction item corresponding to the PLU number, as shown in FIG. For example, since the PLU number 145 is a number for identifying the transaction item “cash sales”, the characters “cash sales” are displayed on the flat PLU key 113 corresponding to the PLU number 145. When one of the flat PLU keys 113 is pressed, the PLU number corresponding to the flat PLU key 113 is input. In FIG. 3, PLU numbers 001 to 099 are expressed as 1 to 99 in the flat PLU key 113.
A deposit key 114, a withdrawal key 115, a credit key 116, a ticket key 117, and a cash deposit key 118 are keys for inputting a transaction classification (withdrawal, deposit, credit, gift certificate, cash).
The subtotal key 119 is a key for inputting an instruction for calculating the total of the registered sales amounts after the registration of the product is completed. The registration confirmation key 120 is a key for inputting an instruction to shift to the next process.
The amount key 121 is a key for inputting that the numerical value input with the numeric keypad 111 is an amount.
The multiplication key 122 is a key for inputting a quantity.
The connection key 123 is a key for inputting a connection instruction to the server device 2.
The cash amount declaration key 125 is a key for instructing execution of the cash balance processing. Declaring the balance is to register the total amount of money in the drawer 17 in the sales data processing apparatus 1 as an account.
The customer number key 126 is a key for inputting that the numerical value input with the numeric keypad 111 is the number of customers.
The temporary closing key 127 is a key for inputting an instruction to temporarily close the transaction.
The slip number key 128 is a key for inputting that the numerical value input by the ten key 111 is a slip number.

また、入力部11は、モードスイッチ124を備えている。モードスイッチ124は、売上データ処理装置1の動作モードを登録モード、点検モード、精算モード、設定モード、OFFモード、戻モードの何れかに切り替えるためのスイッチである。登録モードは、購買された商品の売上データの登録を行うモードである。戻しモードは、返品処理を行うモードである。精算モードは、閉店後に1日の売上データの精算処理を行うモードである。   The input unit 11 also includes a mode switch 124. The mode switch 124 is a switch for switching the operation mode of the sales data processing apparatus 1 to any one of a registration mode, an inspection mode, a checkout mode, a setting mode, an OFF mode, and a return mode. The registration mode is a mode for registering sales data of purchased commodities. The return mode is a mode for performing return processing. The payment mode is a mode in which the daily sales data is settled after the store is closed.

更に、入力部11は、商品に設けられたバーコードを読み取るバーコードリーダやバーコードスキャナ等を備える。   Furthermore, the input unit 11 includes a barcode reader, a barcode scanner, or the like that reads a barcode provided on a product.

表示部12は、LCD(Liquid Crystal Display)や有機EL(Electro-Luminescence)ディスプレイ等により構成される。表示部12には、CPU10から入力される表示信号の指示に従って、各種画面を表示する。   The display unit 12 includes an LCD (Liquid Crystal Display), an organic EL (Electro-Luminescence) display, or the like. Various screens are displayed on the display unit 12 in accordance with instructions of display signals input from the CPU 10.

RAM13は、CPU10により記憶部14から読み出されたシステムプログラムや処理プログラム145、入力データ、出力データ、パラメータ等を一時的に格納するワークエリアを有する。   The RAM 13 has a work area for temporarily storing system programs and processing programs 145 read from the storage unit 14 by the CPU 10, input data, output data, parameters, and the like.

記憶部14は、半導体の不揮発性メモリ等により構成される。記憶部14は、CPU10で実行されるシステムプログラムや処理プログラム145、これらのプログラムの実行に必要なデータ等を記憶する。処理プログラム145には、後述する仕訳処理(図10参照)、ダウンロード処理(図9参照)、精算処理(図23参照)、アップロード処理(図30参照)を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部14に格納されている。CPU10は、当該プログラムコードに従った動作を逐次実行する。
The storage unit 14 is configured by a semiconductor nonvolatile memory or the like. The storage unit 14 stores a system program executed by the CPU 10, a processing program 145, data necessary for executing these programs, and the like. The processing program 145 is used to execute various processes including a journalizing process (see FIG. 10), a download process (see FIG. 9), a settlement process (see FIG. 23), and an upload process (see FIG. 30), which will be described later. A program is included.
These programs are stored in the storage unit 14 in the form of computer-readable program codes. The CPU 10 sequentially executes operations according to the program code.

また、記憶部14は、PLU設定ファイル141(取引情報記憶部)、仕訳パターン情報ファイル142(仕訳パターン情報記憶部)、計上仕訳データファイル143(計上仕訳データ記憶部)、伝票連番記憶ファイル144を記憶している。即ち、記憶部14は、取引情報記憶部、仕訳パターン情報記憶部、計上仕訳データ記憶部として機能する。   The storage unit 14 includes a PLU setting file 141 (transaction information storage unit), a journal pattern information file 142 (journal pattern information storage unit), a recorded journal data file 143 (recorded journal data storage unit), and a slip sequential number storage file 144. Is remembered. In other words, the storage unit 14 functions as a transaction information storage unit, a journal pattern information storage unit, and a recorded journal data storage unit.

図4は、PLU設定ファイル141のデータ格納例を示す図である。図4に示すように、PLU設定ファイル141には、「PLU番号」、「名称」(商品名称又は取引項目名称)、「仕訳コード」、「単価」、「課税方式」、「品番PLU」等の項目が設けられている。即ち、PLU設定ファイル141においては、「PLU番号」に対応付けて、PLU番号により識別される商品に関する設定情報、又はPLU番号により識別される取引項目の仕訳パターン情報を特定するための仕訳コード等が格納されている。即ち、PLU番号は、商品又は取引項目を識別するために割り当てられた識別番号である。取引項目には、売上データ処理装置1を経由する取引の他、口座引落しによる取引が含まれる。
本実施形態は、PLU設定ファイル141に、PLU番号(識別番号)により識別される商品に関する設定情報と、PLU番号(識別番号)により識別される取引項目に関する仕訳パターン情報を特定する仕訳コード等とが格納されている点が特徴である。
FIG. 4 is a diagram illustrating an example of data storage in the PLU setting file 141. As shown in FIG. 4, the PLU setting file 141 includes “PLU number”, “name” (product name or transaction item name), “journal code”, “unit price”, “taxing method”, “product number PLU”, and the like. Items are provided. That is, in the PLU setting file 141, in association with the “PLU number”, setting information relating to the product identified by the PLU number, or journal code for specifying the journal pattern information of the transaction item identified by the PLU number, etc. Is stored. That is, the PLU number is an identification number assigned to identify a product or a transaction item. The transaction item includes a transaction through the sales data processing apparatus 1 and a transaction by account withdrawal.
In the present embodiment, in the PLU setting file 141, setting information relating to the product identified by the PLU number (identification number), journalizing code specifying the journal pattern information relating to the transaction item identified by the PLU number (identification number), and the like The feature is that is stored.

図4において、PLU番号001〜144のそれぞれには、そのPLU番号により識別される商品に関する設定情報が対応付けて格納されている。例えば、PLU番号001には、「メニューA」についての設定情報(「単価」、「課税方式」、「部門リンク」等)が対応付けて格納されている。また、PLU番号145以降のそれぞれには、そのPLU番号により識別される取引項目の仕訳パターン情報を特定するための仕訳コードが対応付けて格納されている。例えば、PLU番号145には、「現金売上」の仕訳パターン情報を特定するための「仕訳コード」が対応付けて格納されている。また、PLU番号209には、毎月預金口座から引落される「カラオケリース料」の仕訳パターン情報を特定するための「仕訳コード」が対応付けて格納される。
本実施形態では、売上データ処理装置1が、レストラン,喫茶店等の飲食店の店舗に設置されることを想定しているため、PLU設定ファイル141の「名称」に格納されるメニューA〜Jは、レストランにおける料理名称や飲物名称を表わすものである。
In FIG. 4, each of PLU numbers 001 to 144 stores setting information related to the product identified by the PLU number in association with each other. For example, setting information (“unit price”, “taxing method”, “department link”, etc.) for “menu A” is stored in association with PLU number 001. In addition, each of the PLU numbers 145 and later stores journal codes for specifying the journal pattern information of the transaction item identified by the PLU number. For example, in the PLU number 145, “journal code” for specifying the journal pattern information of “cash sales” is stored in association with each other. In addition, in the PLU number 209, “journal code” for specifying the journal pattern information of “karaoke lease fee” withdrawn from the deposit account every month is stored in association with each other.
In this embodiment, since it is assumed that the sales data processing device 1 is installed in a restaurant, coffee shop, or other restaurant store, the menus A to J stored in the “name” of the PLU setting file 141 are It represents the name of a dish or drink in a restaurant.

PLU設定ファイル141のデータ構造は、従来のPLU設定ファイルに「仕訳コード」の項目が追加された拡張データ構造となっている。このデータ構造により、PLU番号の入力によって指定された取引項目に対応する仕訳パターン情報を特定するための仕訳コードを取得して、仕訳パターン情報ファイル142から指定された取引項目の仕訳パターン情報を取得することが可能となっている。
なお、「品番PLU」には、品番PLUであることを示す「はい」又は品番PLUでないことを示す「いいえ」が格納される。品番PLUとは、単価を入力する際に、PLU設定ファイル141の「単価」を参照するのではなく、キーボードから直接入力することを指す。
The data structure of the PLU setting file 141 is an extended data structure in which an item “Journal code” is added to the conventional PLU setting file. With this data structure, the journal code for specifying the journal pattern information corresponding to the transaction item specified by the input of the PLU number is acquired, and the journal pattern information of the specified transaction item is acquired from the journal pattern information file 142. It is possible to do.
“Product No. PLU” stores “Yes” indicating that it is a product No. PLU or “No” indicating that it is not a product No. PLU. The product number PLU indicates that the unit price is input directly from the keyboard instead of referring to the “unit price” in the PLU setting file 141 when inputting the unit price.

図5は、仕訳パターン情報ファイル142のデータ格納例を示す図である。仕訳パターン情報ファイル142は、取引項目毎の仕訳パターン情報を記憶するファイルである。
取引が行われた際、仕訳処理を行うことによって最終的にはその取引に対して図6に示す計上仕訳データを作成する必要がある。計上仕訳データの項目の中には、取引項目毎に一義的に決まる項目がある。例えば、借方科目名称、貸方科目名称、税区分、消費税有無等の仕訳項目の内容は一義的に定まる。そこで、仕訳パターン情報ファイル142では、この取引項目毎に一義的に決まる仕訳項目を仕訳パターン情報として記憶している。
FIG. 5 is a diagram illustrating a data storage example of the journal pattern information file 142. The journal pattern information file 142 is a file that stores journal pattern information for each transaction item.
When a transaction is carried out, it is necessary to create journal entry data shown in FIG. 6 for the transaction by performing a journal process. Among the items of the accounting journal data, there are items uniquely determined for each transaction item. For example, the contents of journal items such as debit item name, credit item name, tax classification, and consumption tax are uniquely determined. Therefore, in the journal pattern information file 142, journal items uniquely determined for each transaction item are stored as journal pattern information.

図5に示すように、仕訳パターン情報ファイル142には、「仕訳コード」、「取引項目名称」、「仕訳区分」、「伝票区分」、・・・「借方科目コード」、「借方科目名称」、「借方補助科目」、「借方税区分」、「貸方科目コード」、「貸方科目名称」、「貸方補助科目」、「貸方税区分」、「摘要」、「消費税有無」等の項目が設けられている。即ち、仕訳パターン情報ファイル142には、仕訳パターン情報を特定するための「仕訳コード」に対応付けて、各取引項目の仕訳パターン情報が格納されている。
また、仕訳パターン情報ファイル142には、更に、「当月起票」、「引落区分」、「処理日」、「税込金額」、「消費税」等の引落情報の項目が設けられている。ここで、「仕訳区分」=“5:精算”は、そのレコードの取引項目が口座引落しによる取引(精算時に仕訳が必要な取引)であることを示しており、該当するレコードには、仕訳パターン情報に対応付けて「当月起票」、「引落区分」、「処理日」、「税込金額」、「消費税」等の引落情報が格納されている。「引落区分」は、定額引落であるか否かを示す区分であり、「処理日」は、引落日(指定日)を示す日付であり、「税込金額」は、引落金額(税込金額)を示す値であり、「消費税」は、引落金額の消費税を示す。口座引落しによる取引には、預金口座から毎月指定日に定額で引き落とされる取引、預金口座から毎月の請求により指定日に引き落とされる取引等が含まれる。
なお、仕訳パターン情報に含まれる仕訳項目は、会計システムとしてのサーバ装置2における会計処理等で使用される仕訳項目によって定められたものである。
As shown in FIG. 5, the journal pattern information file 142 includes “journal code”, “transaction item name”, “journal category”, “slip category”,... “Debit item code”, “debit item name”. , "Debit sub item", "Debit tax category", "Credit item code", "Credit item name", "Credit sub item", "Credit tax category", "Description", "Consumption tax" Is provided. That is, the journal pattern information file 142 stores the journal pattern information of each transaction item in association with the “journal code” for specifying the journal pattern information.
The journal pattern information file 142 further includes withdrawal information items such as “current month draft”, “withdrawal category”, “processing date”, “tax included amount”, and “consumption tax”. Here, “Journal classification” = “5: Checkout” indicates that the transaction item of the record is a transaction by direct debit (a transaction that requires journal entry at the time of checkout). In association with the pattern information, withdrawal information such as “current month draft”, “withdrawal category”, “processing date”, “tax included amount”, “consumption tax”, and the like is stored. “Withdrawal category” is a category that indicates whether or not it is a straight-line withdrawal, “Processing date” is the date that indicates the withdrawal date (designated date), and “Tax included amount” is the withdrawal amount (tax included amount) The “consumption tax” indicates the consumption tax of the withdrawal amount. Transactions by direct debit include transactions that are debited from a deposit account at a fixed date on a specified date every month, transactions that are deducted from a deposit account on a specified date by monthly billing, and the like.
The journal items included in the journal pattern information are determined by the journal items used in the accounting process or the like in the server device 2 as an accounting system.

図6は、計上仕訳データファイル143のデータ格納例を示す図である。計上仕訳データファイル143は、後述する仕訳処理によって作成された計上仕訳データが格納されるファイルである。図6に示すように、計上仕訳データファイル143には、「ECRコード」、「伝票連番」、「伝票日付」、「伝票時間」、「伝票番号」、「仕訳区分」、「引落区分」、「借方科目コード」、「借方科目名」、「借方補助科目」、「借方税区分」、「借方税込金額」、「借方消費税」、「貸方科目コード」、「貸方科目名」、「貸方補助科目」、「貸方税区分」、「貸方税込金額」、「貸方消費税」、「摘要」、「消費税有無」、「レジ担当者」、「来客数」、「買上点数」等の項目が設けられており、一つの取引に対する計上仕訳データを1レコードとして格納する。ECRコードは、売上データ処理装置1の個体を識別するための識別コードである。   FIG. 6 is a diagram illustrating a data storage example of the booked journal data file 143. The book journal data file 143 is a file in which book journal data created by journal processing described later is stored. As shown in FIG. 6, the recorded journal data file 143 includes “ECR code”, “slip serial number”, “slip date”, “slip time”, “slip number”, “journal category”, “withdrawal category”. , "Debit item code", "Debit item name", "Debit sub item", "Debit tax category", "Debit tax included amount", "Debit consumption tax", "Credit item code", "Credit item name", " "Credit Auxiliary Item", "Credit Tax Classification", "Credit Tax Amount", "Credit Consumption Tax", "Description", "Consumption Tax Existence", "Register Personnel", "Number of Visitors", "Purchase Points", etc. An item is provided, and recording journal data for one transaction is stored as one record. The ECR code is an identification code for identifying the individual sales data processing apparatus 1.

伝票連番記憶ファイル144は、ECRコード、伝票連番、伝票番号が格納されているファイルである。   The slip sequential number storage file 144 is a file in which an ECR code, slip sequential number, and slip number are stored.

更に、記憶部14は、在高申告ファイル146、集計ファイル147を記憶している。在高申告ファイル146は、後述する在高申告処理で算出される在高申告額を格納するためのファイルである。集計ファイル147は、後述する精算時の集計処理において、売上、仕入、経費、振替の集計項目別に計上仕訳データを集計するために用いられるファイルである(図27参照)   In addition, the storage unit 14 stores a balance sheet file 146 and a total file 147. The cash amount file 146 is a file for storing the cash amount calculated in the cash amount reporting process described later. The aggregation file 147 is a file used for aggregating the accounting journal data by the aggregation items of sales, purchase, expense, and transfer in the aggregation process at the time of settlement described later (see FIG. 27).

更に、記憶部14は、サーバ装置2に通信接続する際の認証用データ(ECRコード及び開設パスワード)を記憶している。   Further, the storage unit 14 stores authentication data (ECR code and opening password) for communication connection with the server device 2.

通信部15は、モデム、ルータ、ネットワークカード等により構成される。通信部15は、通信ネットワークNを介して接続されたサーバ装置2等の外部装置とのデータ送受信を行う。   The communication unit 15 includes a modem, a router, a network card, and the like. The communication unit 15 performs data transmission / reception with an external device such as the server device 2 connected via the communication network N.

出力部としての印刷部16は、例えば、サーマルプリンタ(感熱式プリンタ)であり、レシート用、ジャーナル用のロール紙(感熱紙)を有し、CPU10から入力される指示信号に従って、ロール紙に対して金額や売上データ等をプリントアウトする。   The printing unit 16 as an output unit is, for example, a thermal printer (thermal printer), and has receipt and journal roll papers (thermal paper). According to an instruction signal input from the CPU 10, Print out the amount and sales data.

ドロア17は、硬貨や紙幣等の現金を収納する引出しである。ドロア17は、CPU10の指示により、引出しが開けられる。   The drawer 17 is a drawer that stores cash such as coins and banknotes. The drawer 17 is opened by the instruction of the CPU 10.

計時部18は、RTC(Real Time Clock)等の計時回路を内蔵し、現在時刻及び現在日付を計時してCPU10に出力する。   The timer unit 18 incorporates a timer circuit such as an RTC (Real Time Clock), and measures the current time and the current date and outputs them to the CPU 10.

(サーバ装置2の構成)
サーバ装置2は、売上データ処理装置1から計上仕訳データを受信し、受信した計上仕訳データに基づいて会計処理、経営分析等を行う。
図7は、サーバ装置2の機能的構成を示すブロック図である。図7に示すように、サーバ装置2は、CPU20、入力部21、表示部22、RAM23、記憶部24、通信部25等を備えて構成され、各部はバス26を介して接続されている。以下、サーバ装置2の特徴的な構成について説明する。
(Configuration of server device 2)
The server device 2 receives the recorded journal data from the sales data processing device 1, and performs accounting processing, management analysis, and the like based on the received recorded journal data.
FIG. 7 is a block diagram illustrating a functional configuration of the server device 2. As shown in FIG. 7, the server device 2 includes a CPU 20, an input unit 21, a display unit 22, a RAM 23, a storage unit 24, a communication unit 25, and the like, and each unit is connected via a bus 26. Hereinafter, a characteristic configuration of the server device 2 will be described.

記憶部24は、HDD(Hard Disc Drive)等により構成される。記憶部24は、CPU20で実行されるシステムプログラムや処理プログラム244、これらのプログラムの実行に必要なデータ等を記憶する。処理プログラム244には、後述するダウンロード処理のサーバ装置側処理(図9参照)、アップロード処理のサーバ装置側処理(図30参照)を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部24に格納されている。CPU20は、当該プログラムコードに従った動作を逐次実行する。
The storage unit 24 is configured by an HDD (Hard Disc Drive) or the like. The storage unit 24 stores a system program executed by the CPU 20, a processing program 244, data necessary for executing these programs, and the like. The processing program 244 includes a program for executing various processes including a server apparatus side process (see FIG. 9) for a download process, which will be described later, and a server apparatus side process (see FIG. 30) for an upload process.
These programs are stored in the storage unit 24 in the form of computer-readable program codes. The CPU 20 sequentially executes operations according to the program code.

また、記憶部24は、認証設定ファイル241、仕訳パターン情報マスタDB(Data Base)242、計上仕訳DB243を記憶している。   In addition, the storage unit 24 stores an authentication setting file 241, a journal pattern information master DB (Data Base) 242, and a book journal DB 243.

図8は、認証設定ファイル241のデータ格納例を示す図である。図8に示すように、認証設定ファイル241には、「ECRコード」、「開設パスワード」等の項目が設けられており、売上データ処理装置1の端末認証を行うための認証用データを格納する。   FIG. 8 is a diagram illustrating a data storage example of the authentication setting file 241. As shown in FIG. 8, the authentication setting file 241 includes items such as “ECR code” and “opening password”, and stores authentication data for performing terminal authentication of the sales data processing apparatus 1. .

仕訳パターン情報マスタDB242は、売上データ処理装置1の仕訳パターン情報ファイル142のマスタデータを格納する。   The journal pattern information master DB 242 stores master data of the journal pattern information file 142 of the sales data processing apparatus 1.

計上仕訳DB243は、売上データ処理装置1から送信された計上仕訳データを格納する。   The accounting journal DB 243 stores the accounting journal data transmitted from the sales data processing apparatus 1.

(売上データ処理システム100の動作)
次に、売上データ処理システム100の動作について説明する。
まず、売上データ処理装置1において、サーバ装置2から仕訳パターン情報ファイル142をダウンロードする処理について説明する。
(Operation of Sales Data Processing System 100)
Next, the operation of the sales data processing system 100 will be described.
First, the process of downloading the journal pattern information file 142 from the server apparatus 2 in the sales data processing apparatus 1 will be described.

図9は、売上データ処理装置1においてサーバ装置2から仕訳パターン情報ファイル142をダウンロードする際の処理を示すフローチャートである。図9に示す処理は、売上データ処理装置1の起動時又は接続キー123が押下された際に開始される。売上データ処理装置1側の処理は、売上データ処理装置1のCPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。サーバ装置2側の処理は、サーバ装置2のCPU20と記憶部24に記憶されている処理プログラム244との協働により実行される。   FIG. 9 is a flowchart showing processing when the journal data pattern file 142 is downloaded from the server device 2 in the sales data processing device 1. The process shown in FIG. 9 is started when the sales data processing apparatus 1 is activated or when the connection key 123 is pressed. The processing on the sales data processing device 1 side is executed in cooperation with the CPU 10 of the sales data processing device 1 and the processing program 145 stored in the storage unit 14. The processing on the server device 2 side is executed in cooperation with the CPU 20 of the server device 2 and the processing program 244 stored in the storage unit 24.

まず、売上データ処理装置1において、通信部15によりサーバ装置2への通信接続要求が行われる(ステップT1)。サーバ装置2においては、通信部25により売上データ処理装置1からの通信接続要求が受け付けされる(ステップT2)。   First, in the sales data processing device 1, a communication connection request to the server device 2 is made by the communication unit 15 (step T1). In the server device 2, a communication connection request from the sales data processing device 1 is received by the communication unit 25 (step T2).

次いで、売上データ処理装置1において、記憶部14に記憶されている認証用データが読み出され(ステップT3)、読み出された認証用データが通信部15によりサーバ装置2に送信される(ステップT4)。   Next, in the sales data processing device 1, the authentication data stored in the storage unit 14 is read (step T3), and the read authentication data is transmitted to the server device 2 by the communication unit 15 (step S3). T4).

サーバ装置2においては、通信部25により認証用データが受信されると(ステップT5)、受信された認証用データと認証設定ファイル241に記憶されている認証用データとの照合が行われる(ステップT6)。そして、照合結果に基づいて認証応答データが作成される(ステップT7)。照合の結果、受信された認証用データとECRコード及び開設パスワードが一致するレコードが認証設定ファイル241に存在した場合、通信接続可能であることを示す認証応答データが作成される。受信された認証用データとECRコード及び開設パスワードが一致するレコードが認証設定ファイル241に存在しなかった場合、通信接続不可であること示す認証応答データが作成される。作成された認証応答データは通信部25により接続要求元の売上データ処理装置1に送信される(ステップT8)。なお、受信された認証用データや照合結果、作成された認証応答データ等は、RAM23に保持される。   In the server device 2, when authentication data is received by the communication unit 25 (step T5), the received authentication data is collated with the authentication data stored in the authentication setting file 241 (step S5). T6). Then, authentication response data is created based on the collation result (step T7). As a result of the collation, if there is a record in the authentication setting file 241 in which the received authentication data matches the ECR code and the opening password, authentication response data indicating that communication connection is possible is created. If there is no record in the authentication setting file 241 that matches the received authentication data with the ECR code and the opening password, authentication response data indicating that communication connection is impossible is created. The created authentication response data is transmitted to the sales data processing device 1 of the connection request source by the communication unit 25 (step T8). The received authentication data, verification result, created authentication response data, and the like are held in the RAM 23.

売上データ処理装置1においては、通信部15により認証応答データが受信されると(ステップT9)、受信された認証応答データに基づいて、サーバ装置2との通信接続可能であるか否かが判断される。サーバ装置2との通信接続が不可能であると判断されると(ステップT10;接続不可)、エラー処理が行われ(ステップT18)、通信部15によりサーバ装置2との通信が切断され(ステップT19)、売上データ処理装置1側のダウンロード処理は終了する。一方、サーバ装置2との通信接続が可能であると判断されると(ステップT10;接続可)、仕訳パターン情報ファイル142の送信要求が通信部15によりサーバ装置2に送信される(ステップT11)。   In the sales data processing device 1, when the authentication response data is received by the communication unit 15 (step T9), it is determined whether or not communication connection with the server device 2 is possible based on the received authentication response data. Is done. If it is determined that communication connection with the server device 2 is impossible (step T10; connection is impossible), error processing is performed (step T18), and communication with the server device 2 is disconnected by the communication unit 15 (step T18). T19), the download processing on the sales data processing apparatus 1 side ends. On the other hand, when it is determined that communication connection with the server device 2 is possible (step T10; connection is possible), a transmission request for the journal pattern information file 142 is transmitted to the server device 2 by the communication unit 15 (step T11). .

サーバ装置2においては、ステップT6の照合の結果、売上データ処理装置1の通信接続が可能であると判断されると(ステップT12;接続可)、売上データ処理装置1からの仕訳パターン情報ファイル142の送信要求が通信部25により受け付けられる(ステップT13)。仕訳パターン情報ファイル142の送信要求が受け付けられると、ステップT5で受信された認証用データに基づいて、仕訳パターン情報マスタDB242から送信元の売上データ処理装置1に応じた仕訳パターン情報ファイル142が読み出される(ステップT14)。そして、読み出された仕訳パターン情報ファイル142が通信部25により売上データ処理装置1に送信され(ステップT15)、サーバ装置2側の処理はステップT20に移行する。   In the server device 2, when it is determined that the communication connection of the sales data processing device 1 is possible as a result of the collation in step T 6 (step T 12; connectable), the journal pattern information file 142 from the sales data processing device 1. Is received by the communication unit 25 (step T13). When the transmission request for the journal pattern information file 142 is accepted, the journal pattern information file 142 corresponding to the sales data processing apparatus 1 as the transmission source is read from the journal pattern information master DB 242 based on the authentication data received in step T5. (Step T14). The read journal pattern information file 142 is transmitted to the sales data processing device 1 by the communication unit 25 (step T15), and the processing on the server device 2 side proceeds to step T20.

ステップT6の照合の結果、売上データ処理装置1の通信接続が不可能であると判断された場合(ステップT12;接続不可)、サーバ装置2側の処理はステップT20に移行する。   As a result of the collation in step T6, when it is determined that the communication connection of the sales data processing device 1 is impossible (step T12; connection is impossible), the processing on the server device 2 side proceeds to step T20.

ステップT20においては、通信部25により売上データ処理装置1との通信が切断される(ステップT20)。そして、RAM23に保持された情報が削除され(ステップT21)、サーバ装置2側の処理は終了する。   In step T20, communication with the sales data processing apparatus 1 is disconnected by the communication unit 25 (step T20). And the information hold | maintained at RAM23 is deleted (step T21), and the process by the server apparatus 2 side is complete | finished.

売上データ処理装置1においては、通信部15によりサーバ装置2からの仕訳パターン情報ファイル142が受信されると(ステップT16)、受信された仕訳パターン情報ファイル142が記憶部14に記憶される(ステップT17)。そして、通信部15によりサーバ装置2との通信が切断され(ステップT19)、売上データ処理装置1側のダウンロード処理は終了する。   In the sales data processing device 1, when the journal pattern information file 142 is received from the server device 2 by the communication unit 15 (step T16), the received journal pattern information file 142 is stored in the storage unit 14 (step S16). T17). Then, communication with the server device 2 is disconnected by the communication unit 15 (step T19), and the download processing on the sales data processing device 1 side ends.

上記の図9の処理により、売上データ処理装置1に仕訳パターン情報ファイル142がダウンロードされ記憶部14に記憶される。   The journal pattern information file 142 is downloaded to the sales data processing apparatus 1 and stored in the storage unit 14 by the processing of FIG.

次に、売上データ処理装置1の動作について説明する。
図10は、売上データ処理装置1において実行される仕訳処理を示すフローチャートである。仕訳処理は、モードスイッチ124が登録モード又は戻しモードに設定されている場合にCPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。
Next, the operation of the sales data processing apparatus 1 will be described.
FIG. 10 is a flowchart showing the journalizing process executed in the sales data processing apparatus 1. The journalizing process is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14 when the mode switch 124 is set to the registration mode or the return mode.

まず、モードスイッチ124が登録モードに設定されているか否かが判断される(ステップS1)。モードスイッチ124が登録モードに設定されていると判断されると(ステップS1;YES)、テンキー111が押下されることにより数値が入力されたか否かが判断される(ステップS2)。テンキー111が押下されることにより数値が入力されたと判断されると(ステップS2;YES)、入力された数値が表示部12に表示され(ステップS3)、処理はステップS4に移行する。テンキー111が押下されず、数値が入力されていないと判断されると(ステップS2;NO)、処理はステップS4に移行する。   First, it is determined whether or not the mode switch 124 is set to the registration mode (step S1). If it is determined that the mode switch 124 is set to the registration mode (step S1; YES), it is determined whether or not a numerical value has been input by pressing the numeric key 111 (step S2). If it is determined that a numeric value has been input by pressing the numeric keypad 111 (step S2; YES), the input numeric value is displayed on the display unit 12 (step S3), and the process proceeds to step S4. If it is determined that the numeric key 111 has not been pressed and no numerical value has been input (step S2; NO), the process proceeds to step S4.

ステップS4においては、入力部11からPLU番号が入力されたか否かが判断される(ステップS4)。入力部11からPLU番号が入力されていないと判断されると(ステップS4;NO)、処理はステップS12に移行する。入力部11からPLU番号が入力されたと判断されると(ステップS4;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する「名称」が表示部12に表示される。また、PLU番号に単価が対応付けられている場合は、商品点数(数量)、合計金額が加算され、表示部12に表示される(ステップS5)。
PLU番号の入力は、フラットPLUキー113によるPLU番号の指定、テンキー111によるPLU番号の入力、商品に表示されているバーコードのバーコードスキャナによる読み取り等により行うことができる。購買された商品の商品登録を行う場合は、その商品に対応するPLU番号が入力される。出金又は入金の仕訳や、口座引落し取引の金額等の変更を行う場合は、仕訳対象又は変更対象の取引項目に対応するPLU番号が入力される。
In step S4, it is determined whether a PLU number is input from the input unit 11 (step S4). If it is determined that no PLU number is input from the input unit 11 (step S4; NO), the process proceeds to step S12. If it is determined that the PLU number is input from the input unit 11 (step S4; YES), the PLU setting file 141 is referred to, and the “name” corresponding to the input PLU number is displayed on the display unit 12. When the unit price is associated with the PLU number, the product score (quantity) and the total amount are added and displayed on the display unit 12 (step S5).
The PLU number can be input by designating the PLU number with the flat PLU key 113, inputting the PLU number with the numeric keypad 111, reading the barcode displayed on the product with a barcode scanner, or the like. When registering a purchased product, a PLU number corresponding to the product is input. When making a change in a withdrawal or deposit journal or an account withdrawal transaction amount, the PLU number corresponding to the journal entry or transaction item to be changed is input.

次いで、PLU設定ファイル141が参照され、入力されたPLU番号が品番PLUであるか否かが判断される(ステップS6)。即ち、PLU設定ファイル141において、入力されたPLU番号に対応する「品番PLU」が「はい」となっているか否かかが判断される。入力されたPLU番号が品番PLUであると判断されると(ステップS6;YES)、テンキー111及び金額キー121の押下による金額の入力が待機され、金額が入力されると、入力された金額が表示部12に表示される(ステップS7)。そして、処理はステップS8に移行する。品番PLUではないと判断されると(ステップS6;NO)、処理はステップS8に移行する。   Next, the PLU setting file 141 is referred to and it is determined whether or not the input PLU number is a product number PLU (step S6). That is, it is determined whether or not “product number PLU” corresponding to the input PLU number is “yes” in the PLU setting file 141. When it is determined that the input PLU number is the product number PLU (step S6; YES), the input of the amount by pressing the numeric key 111 and the amount key 121 is waited. When the amount is input, the input amount is changed. It is displayed on the display unit 12 (step S7). Then, the process proceeds to step S8. If it is determined that it is not a product number PLU (step S6; NO), the process proceeds to step S8.

ステップS8においては、出金キー115が押下されたか否かが判断され、出金キー115が押下されたと判断されると(ステップS8;YES)、出金仕訳処理が実行される(ステップS9)。   In step S8, it is determined whether or not the withdrawal key 115 is pressed. If it is determined that the withdrawal key 115 is pressed (step S8; YES), the withdrawal journaling process is executed (step S9). .

図11は、図10のステップS9において実行される出金仕訳処理を示すフローチャートである。出金仕訳処理は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。出金仕訳処理では、出金仕訳の他、仕訳パターン情報ファイル142の「仕訳区分」=“5:精算”のレコードの「処理日」や「税込金額」を変更することが可能となっている。   FIG. 11 is a flowchart showing the withdrawal journal processing executed in step S9 of FIG. The withdrawal journal process is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14. In the withdrawal journal process, in addition to the withdrawal journal, it is possible to change the “processing date” and “tax included amount” of the record “journal classification” = “5: settlement” in the journal pattern information file 142. .

まず、登録確認キー120の押下が待機される(ステップS101)。登録確認キー120が押下されると(ステップS101;YES)、PLU設定ファイル141が参照され、図10のステップS4で入力されたPLU番号に対応する「仕訳コード」が取得される(ステップS102)。   First, the pressing of the registration confirmation key 120 is waited (step S101). When the registration confirmation key 120 is pressed (step S101; YES), the PLU setting file 141 is referred to, and the “journal code” corresponding to the PLU number input in step S4 of FIG. 10 is acquired (step S102). .

次いで、取得された仕訳コードと「仕訳コード」が一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS103)。   Next, a record in which the acquired journal code matches the “journal code” is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S103).

次いで、ステップS103で読み出されたレコードの「消費税有無」の内容がチェックされる(ステップS104)。当該読み出されたレコードの「消費税有無」の内容が消費税有である場合(ステップS104;有)、図10のステップS7で入力された金額と、読み出されたレコードの「借方税区分」、「貸方税区分」とに基づいて、借方及び貸方のそれぞれの消費税が算出される(ステップS105)。そして、処理はステップS106に移行する。一方、ステップS103で読み出されたレコードの「消費税有無」の内容が消費税無である場合(ステップS104;無)、処理はステップS106に移行する。   Next, the content of “consumption tax presence / absence” in the record read in step S103 is checked (step S104). When the content of the “consumption tax presence / absence” of the read record includes the consumption tax (step S104; present), the amount input in step S7 of FIG. 10 and the “debit tax classification” of the read record ”And“ credit tax classification ”, the consumption tax of each of the debit and the credit is calculated (step S105). Then, the process proceeds to step S106. On the other hand, when the content of “consumption tax presence / absence” in the record read in step S103 is no consumption tax (step S104; no), the process proceeds to step S106.

ステップS106においては、ステップS103で読み出されたレコードの「仕訳区分」=“5:精算”であるか否かが判断される(ステップS106)。「仕訳区分」=“5:精算”ではないと判断されると(ステップS106;NO)、RAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」の項目に図10のステップS7で入力された金額が代入される。また、算出された消費税が「借方消費税」、「貸方消費税」の項目にそれぞれ代入される(ステップS107)。   In step S106, it is determined whether or not “journal category” = “5: settlement” of the record read in step S103 (step S106). When it is determined that “journal classification” = “5: settlement” is not satisfied (step S106; NO), the steps of FIG. 10 are added to the items of “debit tax included amount” and “credit tax included amount” of the record read to the RAM 13. The amount entered in S7 is substituted. Further, the calculated consumption tax is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S107).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS108)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS109)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS110)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS103で読み出された仕訳パターン情報のレコード(ステップS107で代入された金額、消費税も含む)の対応する項目のデータや、ステップS108〜S109で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S108). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S109). Then, a new record is added to the booked journal data file 143, and booked journal data is created based on the journal pattern information record read to the RAM 13 (step S110). Specifically, each record data item added to the recorded journal data file 143 corresponds to the journal pattern information record read in step S103 (including the amount substituted in step S107 and the consumption tax). The item data and the data acquired in steps S108 to S109 are written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、計上仕訳データファイル143に追加されたレコード(計上仕訳データ)に基づいて、印刷部16によりレシートが印刷される(ステップS111)。そして、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS112)、出金仕訳処理は終了する。   When the writing of data to the booked journal data file 143 is completed, a receipt is printed by the printing unit 16 based on the record (recorded journal data) added to the booked journal data file 143 (step S111). Then, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S112), and the withdrawal journalizing process is completed.

一方、ステップS106において、ステップS103で読み出されたレコードの「仕訳区分」=“5:精算”であると判断されると(ステップS106;YES)、当該レコードの「仕訳コード」、「取引項目」、「処理日」が表示部12に表示され、入力部11のキー操作による処理日の訂正入力(変更)が受け付けられる(ステップS113)。入力部11による処理日の訂正入力後、現金預金キー118の押下が待機され、現金預金キー118が押下されると(ステップS114;YES)、当該レコードの「取引項目」、訂正後の処理日及び出金金額、算出された消費税が表示部12に表示される(ステップS115)。ここで、訂正後の出金金額とは、図10のステップS7で入力された金額である。算出された消費税とは、ステップS105で算出された消費税である。   On the other hand, if it is determined in step S106 that the “journal classification” of the record read out in step S103 is “5: settlement” (step S106; YES), the “journal code”, “transaction item” of the record is determined. ”And“ processing date ”are displayed on the display unit 12, and correction input (change) of the processing date by key operation of the input unit 11 is accepted (step S113). After the correction date of the processing date is input by the input unit 11, the cash deposit key 118 is waited to be pressed, and when the cash deposit key 118 is pressed (step S 114; YES), the “transaction item” of the record, the corrected processing date Then, the withdrawal amount and the calculated consumption tax are displayed on the display unit 12 (step S115). Here, the corrected withdrawal amount is the amount input in step S7 of FIG. The calculated consumption tax is the consumption tax calculated in step S105.

次いで、現金預金キー118の押下が待機され、現金預金キー118が押下されると(ステップS116;YES)、仕訳パターン情報ファイル142のステップS103で読み出しが行われたレコードの「処理日」にステップS113で入力された訂正後の処理日が代入され(書き換えられ)、「税込金額」に訂正後の出金金額が代入され、「消費税」にステップS105で算出された消費税が代入され(ステップS117)、出金仕訳処理は終了する。   Next, when the cash deposit key 118 is pressed down and the cash deposit key 118 is pressed (step S116; YES), the “process date” of the record read out in step S103 of the journal pattern information file 142 is set. The corrected processing date inputted in S113 is substituted (rewritten), the corrected withdrawal amount is substituted for “tax included amount”, and the consumption tax calculated in step S105 is substituted for “consumption tax” ( Step S117), the withdrawal journalizing process is completed.

図12は、上記出金仕訳処理が終了するまでのオペレータの操作手順及び出金仕訳処理によって出力されるレシートの一例を示した図である。図12では、麺を○○食品から仕入れ、その代金31500円を売上データ処理装置1から現金支払いで出金した場合のオペレータの操作手順及びレシートを図示している。図12に示すように、オペレータは、まず、仕訳対象の取引項目(仕入(麺/○○食品))に対応するフラットPLUキー113を押下してPLU番号150を入力する(図10のステップS4)。次いで、出金金額31500円を入力して金額キー121を押下する(図10のステップS7)。次いで取引区分「出金」を入力するため出金キー115を押下する(図10のステップS8)。そして、登録確認キー120を押下する(図11のステップS101)。そうすると、図11のステップS102以降の処理が実行されて出金の仕訳が自動的に行われ、図12に示すレシートが発行される(図11のステップS111)。   FIG. 12 is a diagram showing an example of an operation procedure of the operator and a receipt output by the withdrawal journal processing until the withdrawal journal processing is completed. FIG. 12 shows the operation procedure and receipt of the operator when the noodles are purchased from OO food and the price of 31500 yen is withdrawn from the sales data processing apparatus 1 by cash payment. As shown in FIG. 12, the operator first presses the flat PLU key 113 corresponding to the transaction item to be journalized (purchase (noodle / xxx food)) and inputs the PLU number 150 (step in FIG. 10). S4). Next, a withdrawal amount of 31,500 yen is input and the amount key 121 is pressed (step S7 in FIG. 10). Next, the withdrawal key 115 is pressed to input the transaction category “withdrawal” (step S8 in FIG. 10). Then, the registration confirmation key 120 is pressed (step S101 in FIG. 11). Then, the processing from step S102 onward in FIG. 11 is executed, the withdrawal journal is automatically performed, and the receipt shown in FIG. 12 is issued (step S111 in FIG. 11).

このように、売上データ処理装置1においては、オペレータが従来までの一般的な商品登録と同様の操作、即ち、PLU番号の入力、取引金額の入力、取引区分の入力の操作に加えて、登録確認キー120の押下を行うだけで、売上データ処理装置1で行われた出金取引についての出金仕訳処理が自動的に実行される。   As described above, in the sales data processing apparatus 1, in addition to the operations similar to the conventional general product registration, that is, the operator inputs the PLU number, the transaction amount, and the transaction classification, the registration is performed. By simply depressing the confirmation key 120, the withdrawal journal processing for the withdrawal transaction performed in the sales data processing apparatus 1 is automatically executed.

また、例えば、××ガスから先月分のガス料金の口座引落しの請求書(引落日15日、金額10500円)が来た場合、オペレータは、以下の操作を行うことで、請求書に応じて仕訳パターン情報ファイル142の××ガス料金の口座引落し取引についての「処理日」や「税込金額」を変更することができる。
まず、取引項目(××ガス料金)に対応するフラットPLUキー113を押下してPLU番号268を入力する(図10のステップS4)。次いで、請求された金額10500円を入力して金額キー121を押下する(図10のステップS7)。ついで、出金キー115を押下する(図10のステップS8)。そして、登録確認キー120を押下する(図11のステップS101)。更に、引落日が15日であるので、15を入力し(図11のステップS113)、現金預金キー118を押下し(図11のステップS114)、表示部12の表示を確認して現金預金キー118を押下する(図11のステップS116)。そうすると、仕訳パターン情報ファイル142における「取引項目」=“××ガス料金”のレコードの「処理日」を15に、「税込金額」を10500に、「消費税」を500に変更することができる。
なお、毎月定額で引落される取引項目の仕訳パターン情報も、上記と同様の手順で修正できる。
In addition, for example, when an invoice for debiting the gas fee for the last month from XX gas (withdrawal date 15th, amount of 10500 yen), the operator responds to the invoice by performing the following operations. The “processing date” and “tax-included amount” for the XX gas charge withdrawal transaction in the journal pattern information file 142 can be changed.
First, the flat PLU key 113 corresponding to the transaction item (xx gas charge) is pressed to input the PLU number 268 (step S4 in FIG. 10). Next, the requested amount of 10500 yen is input and the amount key 121 is pressed (step S7 in FIG. 10). Next, the withdrawal key 115 is pressed (step S8 in FIG. 10). Then, the registration confirmation key 120 is pressed (step S101 in FIG. 11). Further, since the withdrawal date is 15th, 15 is input (step S113 in FIG. 11), the cash deposit key 118 is pressed (step S114 in FIG. 11), and the display on the display unit 12 is confirmed to confirm the cash deposit key. 118 is pressed (step S116 in FIG. 11). Then, the “processing date” of the record “transaction item” = “XX gas fee” in the journal pattern information file 142 can be changed to 15, “tax included amount” to 10500, and “consumption tax” to 500. .
The journal pattern information of transaction items withdrawn at a fixed amount every month can be corrected by the same procedure as described above.

図10に戻り、ステップS8において出金キー115が押下されていないと判断され(ステップS8;NO)、入金キー114が押下されたと判断されると(ステップS10;YES)、入金仕訳処理が実行される(ステップS11)。   Returning to FIG. 10, if it is determined in step S8 that the withdrawal key 115 is not pressed (step S8; NO), and if it is determined that the deposit key 114 is pressed (step S10; YES), the deposit journaling process is executed. (Step S11).

図13は、図10のステップS11において実行される入金仕訳処理を示すフローチャートである。入金仕訳処理は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 13 is a flowchart showing the deposit journalizing process executed in step S11 of FIG. The deposit journalizing process is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、登録確認キー120の押下が待機され、登録確認キー120が押下されると(ステップS201;YES)、PLU設定ファイル141が参照され、図10のステップS4で入力されたPLU番号に対応する「仕訳コード」が取得される(ステップS202)。   First, when the registration confirmation key 120 is pressed and the registration confirmation key 120 is pressed (step S201; YES), the PLU setting file 141 is referred to and corresponds to the PLU number input in step S4 of FIG. “Journal code” is acquired (step S202).

次いで、取得された仕訳コードと「仕訳コード」が一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS203)。   Next, a record in which the acquired journal code matches the “journal code” is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S203).

次いで、ステップS203で読み出されたレコードの「仕訳区分」が仕入又は経費であるか否かが判断され、仕入又は経費であると判断されると(ステップS204;YES)、逆仕訳処理が行われる(ステップS205)。具体的には、ステップS203で読み出されたレコードの借方関連の項目(借方科目コード、借方科目名称、借方補助科目、借方税区分)と貸方関連の項目(貸方科目コード、貸方科目名称、貸方補助科目、貸方税区分)のデータの入れ替えが行われる。そして、処理はステップS206に移行する。一方、読み出されたレコードの「伝票区分」が仕入又は経費ではないと判断されると(ステップS204;NO)、処理はステップS206に移行する。   Next, it is determined whether or not the “journal classification” of the record read in step S203 is purchase or expense, and if it is determined that it is purchase or expense (step S204; YES), reverse journal processing Is performed (step S205). Specifically, items related to debit (debit item code, debit item name, debit sub item, debit tax classification) and credit-related items (credit item code, credit item name, credit) in the record read out in step S203. The data of sub-accounts and credit tax classifications is exchanged. Then, the process proceeds to step S206. On the other hand, if it is determined that the “slip classification” of the read record is not purchase or expense (step S204; NO), the process proceeds to step S206.

ステップS206においては、ステップS203で読み出されたレコードの「消費税有無」の内容がチェックされる(ステップS206)。当該読み出されたレコードの「消費税有無」の内容が消費税有である場合(ステップS206;有)、図10のステップS7で入力された金額と、読み出されたレコードの「借方税区分」、「貸方税区分」とに基づいて、借方及び貸方のそれぞれの消費税が算出される(ステップS207)。そして、処理はステップS208に移行する。一方、ステップS203で読み出されたレコードの「消費税有無」の内容が消費税無である場合(ステップS206;無)、処理はステップS208に移行する。   In step S206, the content of “consumption tax presence / absence” in the record read in step S203 is checked (step S206). When the content of “consumption tax presence / absence” of the read record has a consumption tax (step S206; yes), the amount input in step S7 of FIG. 10 and the “debit tax classification” of the read record ”And“ credit tax classification ”, the consumption tax of each of the debit and the credit is calculated (step S207). Then, the process proceeds to step S208. On the other hand, when the content of “consumption tax presence / absence” in the record read in step S203 is no consumption tax (step S206; no), the process proceeds to step S208.

ステップS208においては、RAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」の項目に図10のステップS7で入力された金額が代入される。また、算出された消費税が「借方消費税」「貸方消費税」の項目にそれぞれ代入される(ステップS208)。   In step S208, the amount input in step S7 in FIG. 10 is substituted into the items of “debit tax included amount” and “credit included amount” in the record read to the RAM 13. Further, the calculated consumption tax is assigned to the items of “debit consumption tax” and “credit consumption tax”, respectively (step S208).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS209)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS210)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS211)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS203で読み出された仕訳パターン情報のレコード(ステップS208で代入された金額、消費税も含む)の対応する項目のデータや、ステップS209〜S210で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S209). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S210). Then, a new record is added to the accounting journal data file 143, and accounting journal data is created based on the journal pattern information record read to the RAM 13 (step S211). Specifically, each record data item added to the recorded journal data file 143 corresponds to the journal pattern information record read in step S203 (including the amount substituted in step S208 and the consumption tax). The item data and the data acquired in steps S209 to S210 are written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、計上仕訳データファイル143に追加されたレコード(計上仕訳データ)に基づいて、印刷部16によりレシートが印刷される(ステップS212)。そして、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS213)、入金仕訳処理は終了する。   When the writing of data to the booked journal data file 143 is completed, a receipt is printed by the printing unit 16 based on the record (recorded journal data) added to the booked journal data file 143 (step S212). Then, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S213), and the deposit journalizing process is completed.

図14は、上記入金仕訳処理が終了するまでのオペレータの操作手順及び入金仕訳処理によって出力されるレシートの一例を示した図である。図14では、○○銀行から下ろしてきた現金100000円をレジに入金した場合のオペレータの操作手順及びレシートを図示している。図14に示すように、オペレータは、まず、仕訳対象の取引項目(レジ入金○○銀行)に対応するフラットPLUキー113を押下してPLU番号157を押下する(図10のステップS4)。次いで、入金金額100000円を入力して金額キー121を押下する(図10のステップS7)。次いで取引区分「入金」を入力するため入金キーを押下する(図10のステップS10)。そして、登録確認キー120を押下する(図13のステップS201)。そうすると、図13のステップS202以降の処理が実行されて入金の仕訳が自動的に行われ、図14に示すレシートが発行される(図13のステップS212)。   FIG. 14 is a diagram showing an example of an operator's operation procedure up to the end of the deposit journal processing and a receipt output by the deposit journal processing. FIG. 14 shows an operator's operation procedure and receipt when depositing cash 100,000 yen that has been withdrawn from the bank XX into the cash register. As shown in FIG. 14, the operator first presses the flat PLU key 113 corresponding to the transaction item to be journalized (cash deposit XX bank) and presses the PLU number 157 (step S4 in FIG. 10). Next, a deposit amount of 100,000 yen is input and the amount key 121 is pressed (step S7 in FIG. 10). Next, the deposit key is pressed to input the transaction category “deposit” (step S10 in FIG. 10). Then, the registration confirmation key 120 is pressed (step S201 in FIG. 13). If it does so, the process after step S202 of FIG. 13 will be performed, the journalizing of payment will be performed automatically, and the receipt shown in FIG. 14 will be issued (step S212 of FIG. 13).

このように、売上データ処理装置1においては、オペレータが従来までの一般的な商品登録と同様の操作、即ち、PLU番号の入力、取引金額の入力、取引区分の入力の操作に加えて、登録確認キー120の押下を行うだけで、売上データ処理装置1で行われた入金取引についての入金仕訳処理が自動的に実行される。   As described above, in the sales data processing apparatus 1, in addition to the operations similar to the conventional general product registration, that is, the operator inputs the PLU number, the transaction amount, and the transaction classification, the registration is performed. Just by depressing the confirmation key 120, the payment journal processing for the payment transaction performed in the sales data processing apparatus 1 is automatically executed.

図10に戻り、ステップS10において入金キー114が押下されていないと判断されると(ステップS10;NO)、伝票番号キー128が押下されたか否かが判断される(ステップS12)。伝票番号キー128が押下されたと判断されると(ステップS12;YES)、売上管理処理が実行される(ステップS13)。   Returning to FIG. 10, if it is determined in step S10 that the deposit key 114 has not been pressed (step S10; NO), it is determined whether or not the slip number key 128 has been pressed (step S12). If it is determined that the slip number key 128 is pressed (step S12; YES), sales management processing is executed (step S13).

図15は、図10のステップS13において実行される売上管理処理を示すフローチャートである。売上管理処理は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 15 is a flowchart showing the sales management process executed in step S13 of FIG. The sales management process is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、図10のステップS2で入力された数値が伝票番号としてRAM13に登録される(ステップS701)。ここでいう伝票番号とは、テーブルを識別するための番号、例えば、飲食店のテーブル番号であり、計上仕訳データの伝票番号とは異なる。   First, the numerical value input in step S2 of FIG. 10 is registered in the RAM 13 as a slip number (step S701). The slip number here is a number for identifying a table, for example, a table number of a restaurant, and is different from the slip number of the recorded journal data.

次いで、テンキー111が押下されることにより数値が入力されたか否かが判断される(ステップS702)。テンキー111が押下されることにより数値が入力されたと判断されると(ステップS702;YES)、入力された数値が表示部12に表示され(ステップS703)、処理はステップS704に移行する。テンキー111が押下されず、数値が入力されていないと判断されると(ステップS702;NO)、処理はステップS704に移行する。   Next, it is determined whether or not a numerical value has been input by pressing the numeric key 111 (step S702). If it is determined that a numerical value has been input by pressing the numeric key 111 (step S702; YES), the input numerical value is displayed on the display unit 12 (step S703), and the process proceeds to step S704. If it is determined that the numeric key 111 has not been pressed and no numerical value has been input (step S702; NO), the process proceeds to step S704.

ステップS704においては、入力部11からPLU番号が入力されたか否かが判断される(ステップS704)。入力部11からPLU番号が入力されていないと判断されると(ステップS704;NO)、処理はステップS708に移行する。入力部11からPLU番号が入力されたと判断されると(ステップS704;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する「名称」が表示部12に表示される。また、PLU番号に単価が対応付けられている場合は、商品点数(数量)、合計金額が加算され、表示部12に表示される(ステップS705)。   In step S704, it is determined whether a PLU number is input from the input unit 11 (step S704). If it is determined that the PLU number is not input from the input unit 11 (step S704; NO), the process proceeds to step S708. If it is determined that the PLU number has been input from the input unit 11 (step S704; YES), the PLU setting file 141 is referred to and the “name” corresponding to the input PLU number is displayed on the display unit 12. If the unit price is associated with the PLU number, the product score (quantity) and the total amount are added and displayed on the display unit 12 (step S705).

次いで、PLU設定ファイル141が参照され、入力されたPLU番号が品番PLUであるか否かが判断される(ステップS706)。即ち、PLU設定ファイル141において、入力されたPLU番号に対応する「品番PLU」が「はい」となっているか否かかが判断される。入力されたPLU番号が品番PLUであると判断されると(ステップS706;YES)、テンキー111及び金額キー121の押下による金額の入力が待機され、金額が入力されると、入力された金額が表示部12に表示される(ステップS707)。そして、処理はステップS708に移行する。入力されたPLU番号が品番PLUではないと判断されると(ステップS706;NO)、処理はステップS708に移行する。   Next, the PLU setting file 141 is referred to, and it is determined whether or not the input PLU number is a product number PLU (step S706). That is, it is determined whether or not “product number PLU” corresponding to the input PLU number is “yes” in the PLU setting file 141. When it is determined that the input PLU number is the product number PLU (step S706; YES), the input of the amount by pressing the numeric key 111 and the amount key 121 is waited. When the amount is input, the input amount is changed. It is displayed on the display unit 12 (step S707). Then, the process proceeds to step S708. If it is determined that the input PLU number is not a product number PLU (step S706; NO), the process proceeds to step S708.

ステップS708においては、客数キー126が押下されたか否かが判断される(ステップS708)。客数キー126が押下されたと判断されると(ステップS708;YES)、ステップS703で入力された数値の入力データが来客数としてRAM13に登録されるとともに、表示部12に「“客数”+入力された数値」が表示され(ステップS709)、処理はステップS710に移行する。客数キー126が押下されていないと判断されると(ステップS708;NO)、処理はステップS710に移行する。   In step S708, it is determined whether or not the customer number key 126 has been pressed (step S708). If it is determined that the number-of-customers key 126 has been pressed (step S708; YES), the numerical value input data input in step S703 is registered in the RAM 13 as the number of visitors, and “number of customers” + is input to the display unit 12. "Numeric value" is displayed (step S709), and the process proceeds to step S710. If it is determined that the number of customers key 126 has not been pressed (step S708; NO), the process proceeds to step S710.

ステップS710においては、仮締めキー127が押下されたか否かが判断される(ステップS710)。仮締めキー127が押下されていないと判断されると(ステップS710;NO)、処理はステップS702に戻り、ステップS702〜S709の処理が繰り返し実行される。   In step S710, it is determined whether or not the temporary fastening key 127 has been pressed (step S710). If it is determined that the temporary closing key 127 has not been pressed (step S710; NO), the process returns to step S702, and the processes of steps S702 to S709 are repeatedly executed.

仮締めキー127が押下されたと判断されると(ステップS710;YES)、ステップS702〜S707で登録された商品の売上合計金額、消費税が算出され、表示部12に表示されるとともに、RAM13の伝票番号、登録された商品名、金額(単価)、売上合計金額、消費税、取引項目、客数等が印刷部16によりレシートに印刷される(ステップS711)。   If it is determined that the temporary closing key 127 has been pressed (step S710; YES), the total sales amount and the consumption tax of the products registered in steps S702 to S707 are calculated and displayed on the display unit 12 and also stored in the RAM 13. The slip number, registered product name, amount (unit price), total sales amount, consumption tax, transaction item, number of customers, and the like are printed on the receipt by the printing unit 16 (step S711).

次いで、仕訳コード1001のレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS712)。なお、ここでは説明の簡略のため現金支払いの場合の仮締めについて説明しているが、クレジットカードや商品券での支払いにおいても仮締めを可能な構成としてもよい。   Next, the journal code 1001 record is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S712). In addition, although the temporary fastening in the case of cash payment is demonstrated here for the simplification of description, it is good also as a structure which can be temporarily tightened also in the payment with a credit card or a gift certificate.

次いで、ステップS712でRAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」にステップS711で算出された売上合計金額が代入される。また、「借方消費税」「貸方消費税」の項目にステップS711で算出された消費税がそれぞれ代入される(ステップS713)。   Next, the total sales amount calculated in step S711 is substituted for “debit tax included amount” and “credit including tax amount” of the record read to the RAM 13 in step S712. Further, the consumption tax calculated in step S711 is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S713).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS714)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS715)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS716)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS712で読み出された仕訳パターン情報のレコード(ステップS713で代入された金額、消費税も含む)の対応する項目のデータや、ステップS714〜S715で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S714). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S715). Then, a new record is added to the accounting journal data file 143, and accounting journal data is created based on the journal pattern information record read to the RAM 13 (step S716). Specifically, the journal pattern information record read out in step S712 (including the amount substituted in step S713 and the consumption tax) corresponds to each data item of the record added to the recorded journal data file 143. The item data and the data acquired in steps S714 to S715 are written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS717)、売上管理処理は終了する。   When the writing of the data to the recorded journal data file 143 is completed, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S717), and the sales management process is ended.

図10に戻り、ステップS12において伝票番号キー128が押下されていないと判断されると(ステップS12;NO)、在高申告キー125が押下されたか否かが判断される(ステップS14)。在高申告キー125が押下されたと判断されると(ステップS14;YES)、在高申告処理が実行される(ステップS15)。在高申告処理は、閉店後、一日の売上等の精算を行う前に、必ずオペレータの操作に応じて実行される処理である。この在高申告処理は、ドロア17内の1万円札〜1円硬貨までの金銭の個数(枚数)、並びに商品券合計金額を表示部12のガイダンスに従ってオペレータに登録させ、登録された内容に基づいて、ドロア17内に収納されている金銭の合計額(在高申告額)を算出する処理である。算出された在高申告額は、現在日付と対応付けて在高申告ファイル146に記憶される。   Returning to FIG. 10, if it is determined in step S12 that the slip number key 128 has not been pressed (step S12; NO), it is determined whether or not the cash amount declaration key 125 has been pressed (step S14). If it is determined that the cash amount declaration key 125 has been pressed (step S14; YES), the cash balance reporting process is executed (step S15). The pay-in-ahead reporting process is a process that is always executed in accordance with the operation of the operator after the store is closed and before the daily sales are settled. In the cash amount declaration process, the operator registers the number (number) of money from the 10,000 yen bill to 1 yen coin in the drawer 17 and the total amount of the gift certificate in accordance with the guidance of the display unit 12, This is a process of calculating the total amount of money stored in the drawer 17 (the amount of money reported). The calculated amount of money reported is stored in the money amount file 146 in association with the current date.

図10に戻り、ステップS14において在高申告キー125が押下されていないと判断されると(ステップS14;NO)、小計キー119が押下されたか否かが判断される(ステップS16)。小計キー119が押下されていないと判断されると(ステップS16;NO)、処理はステップS2に戻り、次の商品の登録が行われる。小計キー119が押下されたと判断されると(ステップS16;YES)、処理はステップS17に移行する。   Returning to FIG. 10, if it is determined in step S14 that the cash amount declaration key 125 is not pressed (step S14; NO), it is determined whether or not the subtotal key 119 is pressed (step S16). If it is determined that the subtotal key 119 has not been pressed (step S16; NO), the process returns to step S2 to register the next product. If it is determined that the subtotal key 119 has been pressed (step S16; YES), the process proceeds to step S17.

ステップS17においては、クレジットキー116が押下されたか否かが判断される。クレジットキー116が押下されたと判断されると(ステップS17;YES)、売上仕訳処理(パターン2)が実行される(ステップS18)。   In step S17, it is determined whether or not the credit key 116 has been pressed. If it is determined that the credit key 116 is pressed (step S17; YES), sales journal processing (pattern 2) is executed (step S18).

図16は、図10のステップS18において実行される売上仕訳処理(パターン2)を示すフローチャートである。売上仕訳処理(パターン2)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 16 is a flowchart showing the sales journal processing (pattern 2) executed in step S18 of FIG. The sales journal processing (pattern 2) is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、入力部11によりPLU番号が入力されたか否かが判断される(ステップS301)。入力部11によりPLU番号が入力されたと判断されると(ステップS301;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する仕訳コードが取得される(ステップS302)。次いで、入力部11からの登録確認キー120の押下が待機され、登録確認キー120が押下されると(ステップS303)、処理はステップS306に移行する。   First, it is determined whether or not a PLU number has been input by the input unit 11 (step S301). If it is determined that the PLU number has been input by the input unit 11 (step S301; YES), the PLU setting file 141 is referred to, and the journal code corresponding to the input PLU number is acquired (step S302). Next, pressing of the registration confirmation key 120 from the input unit 11 is waited. When the registration confirmation key 120 is pressed (step S303), the process proceeds to step S306.

一方、入力部11によりPLU番号が入力されていないと判断されると(ステップS301;NO)、登録確認キー120が押下されたか否かが判断され、登録確認キー120が押下されたと判断されると(ステップS304;YES)、仕訳コード1002が取得され(ステップS305)、処理はステップS306に移行する。売上データ処理装置1が契約しているクレジット会社が一社のみの場合はクレジットの売上に関する取引項目は一つとなるため、仕訳コードは固定(本実施形態では1002に固定)される。そのため、PLU番号を入力する必要はない。   On the other hand, if it is determined by the input unit 11 that the PLU number has not been input (step S301; NO), it is determined whether or not the registration confirmation key 120 has been pressed, and it is determined that the registration confirmation key 120 has been pressed. (Step S304; YES), the journal code 1002 is acquired (Step S305), and the process proceeds to Step S306. If there is only one credit company with which the sales data processing apparatus 1 is contracted, there is only one transaction item related to credit sales, so the journal entry code is fixed (fixed to 1002 in this embodiment). Therefore, it is not necessary to input the PLU number.

ステップS306においては、図10のステップS2〜S16で登録された商品の売上合計金額、消費税が算出され、登録された商品名、金額(単価)、売上合計金額、消費税、取引項目等が印刷部16によりレシートに印刷される(ステップS306)。   In step S306, the total sales amount and consumption tax of the products registered in steps S2 to S16 in FIG. 10 are calculated, and the registered product name, amount (unit price), total sales amount, consumption tax, transaction item, etc. The receipt is printed by the printing unit 16 (step S306).

次いで、ステップS302又はステップS304で取得された仕訳コードと「仕訳コード」が一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS307)。   Next, a record in which the journal code acquired in step S302 or S304 matches the “journal code” is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S307).

次いで、ステップS307でRAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」にステップS306で算出された売上合計金額が代入される。また、「借方消費税」「貸方消費税」の項目にステップS306で算出された消費税がそれぞれ代入される(ステップS308)。   Next, the total sales amount calculated in step S306 is substituted for “debit tax included amount” and “credit included amount” in the record read to the RAM 13 in step S307. Further, the consumption tax calculated in step S306 is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S308).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS309)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS310)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS311)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS307で読み出された仕訳パターン情報のレコード(ステップS308で代入された金額、消費税も含む)の対応する項目のデータや、ステップS309〜S310で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S309). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S310). Then, a new record is added to the accounting journal data file 143, and accounting journal data is created based on the journal pattern information record read to the RAM 13 (step S311). Specifically, each record data item added to the recorded journal data file 143 corresponds to the journal pattern information record read in step S307 (including the amount substituted in step S308 and the consumption tax). The item data and the data acquired in steps S309 to S310 are written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS312)、売上仕訳理(パターン2)は終了する。   When the writing of the data to the recorded journal data file 143 is completed, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S312), and the sales journal processing (pattern 2) is finished.

図17は、上記売上仕訳処理(パターン2)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン2)によって出力されるレシートの一例を示した図である。図17では、メニューB(700円)とメニューH(500円)の注文に対する代金がクレジット(X信販)により支払われた場合を示している。オペレータは、まず、注文された商品(メニューB、メニューH)に対応するフラットPLUキー113等を押下してPLU番号002、008を入力する(図10のステップS4)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS16)。次いで取引区分「クレジット」を入力するためクレジットキー116を押下する(図10のステップS17)。そして、いくつかのクレジット会社と契約がある場合には、取引項目(クレジット(X信販))に対応するフラットPLUキー113等を押下してPLU番号146を入力し(図16のステップS301)、登録確認キー120を押下する(図16のステップS303)。一つのクレジット会社と取引がある場合には、登録確認キーを押下する(図16のステップS304)。そうすると、図16のステップS306以降の処理が実行され、メニューB及びメニューHのクレジット売上の仕訳処理が自動的に行われる。また、図17に示すレシートが発行される(図16のステップS306)。   FIG. 17 is a diagram illustrating an example of an operation procedure of the operator until the sales journalizing process (pattern 2) is finished and a receipt output by the sales journalizing process (pattern 2). FIG. 17 shows a case where the price for the order of menu B (700 yen) and menu H (500 yen) is paid by credit (X credit sales). First, the operator presses the flat PLU key 113 or the like corresponding to the ordered product (menu B, menu H) and inputs PLU numbers 002 and 008 (step S4 in FIG. 10). Next, the subtotal key 119 indicating that the product registration is completed is pressed (step S16 in FIG. 10). Next, the credit key 116 is pressed to input the transaction category “credit” (step S17 in FIG. 10). If there are contracts with several credit companies, the PLU number 146 is entered by pressing the flat PLU key 113 corresponding to the transaction item (credit (X credit sales)) (step S301 in FIG. 16), The registration confirmation key 120 is pressed (step S303 in FIG. 16). If there is a transaction with one credit company, the registration confirmation key is pressed (step S304 in FIG. 16). Then, the process after step S306 in FIG. 16 is executed, and the credit sales journalizing process for menu B and menu H is automatically performed. In addition, a receipt shown in FIG. 17 is issued (step S306 in FIG. 16).

このように、売上データ処理装置1においては、オペレータが従来までの一般的な商品登録と同様の操作、即ち、購買された商品に対応するPLU番号の入力、取引金額の入力、取引区分の入力の操作に加えて、取引項目に対応するPLU番号及び登録確認キー120の押下を行うだけで、売上データ処理装置1で登録されたクレジットによる売上についての売上仕訳処理(パターン2)が自動的に実行される。   As described above, in the sales data processing apparatus 1, the operator performs the same operations as in conventional general merchandise registration, that is, the input of the PLU number corresponding to the purchased merchandise, the input of the transaction amount, and the input of the transaction classification. In addition to the above operations, the sales journal processing (pattern 2) for sales by credit registered in the sales data processing apparatus 1 is automatically performed by simply pressing the PLU number corresponding to the transaction item and the registration confirmation key 120. Executed.

図10に戻り、ステップS17において、クレジットキー116が押下されていないと判断されると(ステップS17;NO)、券キー117が押下されたか否かが判断される(ステップS19)。券キー117が押下されたと判断されると(ステップS19;YES)、売上仕訳処理(パターン3)が実行される(ステップS20)。   Returning to FIG. 10, if it is determined in step S17 that the credit key 116 is not pressed (step S17; NO), it is determined whether or not the ticket key 117 is pressed (step S19). If it is determined that the ticket key 117 is pressed (step S19; YES), sales journal processing (pattern 3) is executed (step S20).

図18は、図10のステップS20において実行される売上仕訳処理(パターン3)を示すフローチャートである。売上仕訳処理(パターン3)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 18 is a flowchart showing the sales journal processing (pattern 3) executed in step S20 of FIG. The sales journal processing (pattern 3) is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、入力部11からのPLU番号の入力が待機され、PLU番号が入力されたと判断されると(ステップS401;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する仕訳コードが取得される(ステップS402)。次いで、入力部11からの商品券金額の入力が待機され、商品券金額が入力されると(ステップS403;YES)、登録確認キー120の押下が待機される(ステップS404)。登録確認キー120が押下されると(ステップS404;YES)、処理はステップS405に移行する。   First, the input of the PLU number from the input unit 11 is waited, and if it is determined that the PLU number has been input (step S401; YES), the PLU setting file 141 is referred to and the journal code corresponding to the input PLU number is entered. Is acquired (step S402). Next, the input of the gift certificate amount from the input unit 11 is waited. When the gift certificate amount is input (step S403; YES), the registration confirmation key 120 is pressed (step S404). When the registration confirmation key 120 is pressed (step S404; YES), the process proceeds to step S405.

ステップS405においては、図10のステップS2〜S16で登録された商品の売上合計金額、消費税が算出され、登録された商品名、金額(単価)、売上合計金額、消費税、取引項目等が印刷部16によりレシートに印刷される(ステップS405)。   In step S405, the total sales amount and consumption tax of the products registered in steps S2 to S16 in FIG. 10 are calculated, and the registered product name, amount (unit price), total sales amount, consumption tax, transaction item, etc. The receipt is printed by the printing unit 16 (step S405).

次いで、ステップS402で取得された仕訳コードと「仕訳コード」が一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS406)。   Next, a record in which the journal code acquired in step S402 matches the “journal code” is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S406).

次いで、ステップS406においてRAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」にステップ405において算出された売上合計金額が代入される。また、「借方消費税」、「貸方消費税」の項目にステップS405で算出された消費税がそれぞれ代入される(ステップS407)。   Next, the total sales amount calculated in step 405 is substituted into “debit tax included amount” and “credit including tax amount” of the record read to the RAM 13 in step S406. Further, the consumption tax calculated in step S405 is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S407).

次いで、売上合計金額とステップS403で入力された商品券金額が比較され、売上合計金額が商品券金額より小さいと判断されると(ステップS408;YES)、借方を商品券とし、貸方を現金2(レジ)とし、借方及び貸方の税込金額を売上合計金額と商品券金額との差額金額としたデータが作成される(ステップS409)。具体的には、「借方科目名」を“商品券”、「借方科目コード」を103(商品券を示す科目コード)、「貸方科目名」を“現金2(レジ)”、「貸方科目コード」を101(現金を示す科目コード)、「借方税込金額」「貸方税込金額」を上記差額金額としたデータが作成される。そして、処理はステップS411に移行する。   Next, the total sales amount is compared with the gift certificate amount input in step S403, and if it is determined that the total sales amount is smaller than the gift certificate amount (step S408; YES), the debit is the gift certificate and the credit is cash 2 (Registry) is created, and data including the amount of tax-included debit and credit as the difference between the total sales amount and the gift certificate amount is created (step S409). Specifically, “debit item name” is “gift certificate”, “debit item code” is 103 (item code indicating gift certificate), “credit item name” is “cash 2 (register)”, “credit item code” ”Is 101 (subject code indicating cash), and“ debit tax-included amount ”and“ credit tax-included amount ”are created as the above difference amounts. Then, the process proceeds to step S411.

一方、ステップS408において、売上合計金額が商品券金額以上であると判断されると(ステップS408;NO)、仕訳パターン情報ファイル142に記憶されている現金売上(仕訳コード1001)のレコードがRAM13に読み出され、「借方税込金額」「貸方税込金額」に商品券金額と売上合計金額との差額金額が代入される(ステップS410)。そして、処理はステップS411に移行する。   On the other hand, if it is determined in step S408 that the total sales amount is equal to or greater than the gift certificate amount (step S408; NO), a record of cash sales (journal code 1001) stored in the journal pattern information file 142 is stored in the RAM 13. The difference amount between the gift certificate amount and the total sales amount is substituted for “debit tax included amount” and “credit including tax amount” (step S410). Then, the process proceeds to step S411.

ステップS411においては、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS411)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS412)。そして、計上仕訳データファイル143に新たなレコードが2行追加され、ステップS406で読み出された仕訳パターン情報のレコード等に基づいて、計上仕訳データが作成され、記憶される(ステップS413)。具体的には、追加されたレコードの1行目の各データ項目に、ステップS406で読み出された仕訳パターン情報のレコード(ステップS407で代入された金額、消費税も含む)の対応する項目のデータ及びステップS411〜S412で取得されたデータが書き込まれて記憶される。また、追加されたレコードの2行目の各データ項目に、ステップS409又はS410で作成されたデータの対応する項目のデータ及びステップS411〜S412で取得されたデータが書き込まれて記憶される(ステップS413)。   In step S411, the ECR code, the slip serial number, and the slip number are acquired from the slip sequential number storage file 144 and stored in the RAM 13 (step S411). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S412). Then, two new records are added to the accounting journal data file 143, and accounting journal data is created and stored based on the journal pattern information record read in step S406 (step S413). Specifically, for each data item on the first line of the added record, the corresponding item of the journal pattern information record (including the amount substituted in step S407 and the consumption tax) read in step S406. The data and the data acquired in steps S411 to S412 are written and stored. In addition, the data of the corresponding item of the data created in step S409 or S410 and the data acquired in steps S411 to S412 are written and stored in each data item on the second line of the added record (step S411). S413).

計上仕訳データファイル143へのデータの書き込みが終了すると、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS414)、売上仕訳理(パターン3)は終了する。   When the writing of data to the booked journal data file 143 is completed, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S414), and the sales journal processing (pattern 3) is finished.

図19は、上記売上仕訳処理(パターン3)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン3)によって出力されるレシートの一例を示した図である。図19では、メニューA(600円)の注文に対する代金が商品券により支払われた場合のオペレータの操作手順およびレシートを図示している。図19に示すように、オペレータは、まず、注文された商品(メニューA)に対応するフラットPLUキー113の押下等によりPLU番号001を入力する(図10のステップS4)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS16)。次いで取引区分「商品券」を入力するための券キー117を押下する(図10のステップS19)。次いで、取引項目(商品券売上)に対応するフラットPLUキー113の押下等によりPLU番号を入力する(図18のステップS401)。そして、商品券金額を入力し(図18のステップS403)、登録確認キーを押下する(図18のステップS404)。そうすると、図18のステップS405以降の処理が実行されて商品券で支払われたメニューAの売上についての仕訳が行われ、図19に示すレシートが発行される(図18のステップS405)。   FIG. 19 is a diagram illustrating an example of an operation procedure of the operator until the sales journalizing process (pattern 3) is completed and a receipt output by the sales journalizing process (pattern 3). FIG. 19 shows the operation procedure and receipt of the operator when the price for the order of menu A (600 yen) is paid by the gift certificate. As shown in FIG. 19, the operator first inputs the PLU number 001 by pressing the flat PLU key 113 corresponding to the ordered product (menu A) (step S4 in FIG. 10). Next, the subtotal key 119 indicating that the product registration is completed is pressed (step S16 in FIG. 10). Next, the ticket key 117 for inputting the transaction category “gift certificate” is pressed (step S19 in FIG. 10). Next, the PLU number is input by pressing the flat PLU key 113 corresponding to the transaction item (gift certificate sales) (step S401 in FIG. 18). Then, the gift certificate amount is input (step S403 in FIG. 18), and the registration confirmation key is pressed (step S404 in FIG. 18). Then, the process after step S405 in FIG. 18 is executed, and the journalizing about the sales of menu A paid by the gift certificate is performed, and the receipt shown in FIG. 19 is issued (step S405 in FIG. 18).

このように、売上データ処理装置1においては、オペレータが従来までの一般的な商品登録と同様の操作、即ち、購買された商品のPLU番号の入力、取引金額の入力、取引区分の入力の操作に加えて、取引項目に対応するPLU番号、商品券金額及び登録確認キー120の押下を行うだけで、売上データ処理装置1で登録された商品券売上についての売上仕訳処理(パターン3)が自動的に実行される。   As described above, in the sales data processing apparatus 1, the operator performs the same operations as conventional general merchandise registration, that is, the operation for inputting the PLU number of the purchased merchandise, the transaction amount, and the transaction classification. In addition, the sales journal processing (pattern 3) for the gift certificate registered in the sales data processing device 1 is automatically performed by simply pressing the PLU number, gift certificate amount and registration confirmation key 120 corresponding to the transaction item. Is executed automatically.

図10に戻り、ステップS19において、券キー117が押下されていないと判断され(ステップS19;NO)、入力部11により預かり金額の入力及び現金預金キー118の押下がされたか否かが判断される(ステップS21)。入力部11により預かり金額の入力及び現金預金キー118の押下がされていないと判断されると(ステップS21;NO)、処理はステップS17に戻る。入力部11により預かり金額の入力及び現金預金キー118の押下がされたと判断されると(ステップS21;YES)、ステップS2〜S16で登録された商品の売上合計金額、消費税が算出されて表示部12に表示される。また、登録された商品名、金額(単価)、売上合計金額、消費税、取引区分等が印刷部16によりレシートに印刷される(ステップS22)。そして、売上仕訳処理(パターン1)が実行される(ステップS23)。   Returning to FIG. 10, in step S19, it is determined that the ticket key 117 is not pressed (step S19; NO), and it is determined whether the deposit amount is input and the cash deposit key 118 is pressed by the input unit 11. (Step S21). If it is determined by the input unit 11 that the deposit amount has not been input and the cash deposit key 118 has not been pressed (step S21; NO), the process returns to step S17. If it is determined that the deposit amount is input and the cash deposit key 118 is pressed by the input unit 11 (step S21; YES), the total sales amount and the consumption tax of the products registered in steps S2 to S16 are calculated and displayed. Displayed on the unit 12. The registered product name, amount (unit price), total sales amount, consumption tax, transaction classification, and the like are printed on the receipt by the printing unit 16 (step S22). Then, sales journal processing (pattern 1) is executed (step S23).

図20は、図10のステップS23において実行される売上仕訳処理(パターン1)を示すフローチャートである。売上仕訳処理(パターン1)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 20 is a flowchart showing the sales journal processing (pattern 1) executed in step S23 of FIG. The sales journal processing (pattern 1) is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、「仕訳コード」が1001に一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS501)。ここで、本実施形態において、現金預金キー118が押下された場合の仕訳パターン情報は現金売上(仕訳コード1001)のレコードに一義的に決まるので、PLU番号を押下しなくても現金売上のレコードが読み出される。なお、PLU番号(ここでは0145)を押下する構成としてもよい。   First, a record whose “journal code” matches 1001 is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S501). Here, in this embodiment, since the journal pattern information when the cash deposit key 118 is pressed is uniquely determined by the record of cash sales (journal code 1001), the record of cash sales is not required even if the PLU number is not pressed. Is read out. Note that the PLU number (0145 in this case) may be pressed.

次いで、ステップS501でRAM13に読み出されたレコードの「借方税込金額」、「貸方税込金額」に図10のステップS22で算出された売上合計金額が代入される。また、「借方消費税」「貸方消費税」の項目に図10のステップS22で算出された消費税がそれぞれ代入される(ステップS502)。   Next, the total sales amount calculated in step S22 of FIG. 10 is substituted into “debit tax included amount” and “credit included tax amount” of the record read to the RAM 13 in step S501. Further, the consumption tax calculated in step S22 of FIG. 10 is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S502).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS503)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS504)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS505)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS501で読み出された仕訳パターン情報のレコード(代入された金額、消費税も含む)の対応する項目のデータや、ステップS503〜S504で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S503). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S504). Then, a new record is added to the booked journal data file 143, and booked journal data is created based on the journal pattern information record read to the RAM 13 (step S505). Specifically, in each data item of the record added to the recorded journal data file 143, the data of the corresponding item of the journal pattern information record (including the substituted amount and the consumption tax) read in step S501. Or, the data acquired in steps S503 to S504 is written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS506)、売上仕訳理(パターン1)は終了する。   When the writing of data to the booked journal data file 143 is completed, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S506), and the sales journal processing (pattern 1) is finished.

図21は、上記売上仕訳処理(パターン1)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン1)によって出力されるレシートの一例を示した図である。図21では、メニューB(700円)とメニューH(500円)の注文が現金により支払われた場合のオペレータの操作手順及びレシートを図示している。図21に示すように、オペレータは、まず、注文された商品の名称(メニューB、メニューH)に対応するPLU番号002、008を押下する(図10のステップS4)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS16)。次いで、預かり金額を入力し、現金預金キー118を押下する(図10のステップS21)。そうすると、図21に示すレシートが発行され(図10のステップS22)、図20の売上仕訳処理(パターン1)が自動的に実行される。   FIG. 21 is a diagram showing an example of an operation procedure of the operator until the sales journalizing process (pattern 1) is completed and a receipt output by the sales journalizing process (pattern 1). FIG. 21 illustrates an operator's operation procedure and receipt when an order for menu B (700 yen) and menu H (500 yen) is paid in cash. As shown in FIG. 21, the operator first presses the PLU numbers 002 and 008 corresponding to the names of the ordered products (menu B and menu H) (step S4 in FIG. 10). Next, the subtotal key 119 indicating that the product registration is completed is pressed (step S16 in FIG. 10). Next, the deposit amount is input and the cash deposit key 118 is pressed (step S21 in FIG. 10). Then, the receipt shown in FIG. 21 is issued (step S22 in FIG. 10), and the sales journal processing (pattern 1) in FIG. 20 is automatically executed.

図10に戻り、ステップS1において、モードスイッチ124が登録モードに設定されていないと判断されると(ステップS1;NO)、モードスイッチ124が戻しモードに設定されているか否かが判断される(ステップS24)。モードスイッチ124が戻しモードに設定されていると判断されると(ステップS24;YES)、処理はステップS25に移行する。   Returning to FIG. 10, if it is determined in step S1 that the mode switch 124 is not set to the registration mode (step S1; NO), it is determined whether or not the mode switch 124 is set to the return mode (step S1; NO). Step S24). If it is determined that the mode switch 124 is set to the return mode (step S24; YES), the process proceeds to step S25.

ステップS25においては、テンキー111が押下されることにより数値が入力されたか否かが判断される(ステップS25)。テンキー111が押下されることにより数値が入力されたと判断されると(ステップS25;YES)、入力された数値が表示部12に表示され(ステップS26)、処理はステップS27に移行する。テンキー111が押下されず、数値が入力されていないと判断されると(ステップS25;NO)、処理はステップS27に移行する。   In step S25, it is determined whether or not a numerical value has been input by pressing the numeric key 111 (step S25). If it is determined that a numerical value has been input by pressing the numeric keypad 111 (step S25; YES), the input numerical value is displayed on the display unit 12 (step S26), and the process proceeds to step S27. If it is determined that the numeric key 111 is not pressed and no numerical value is input (step S25; NO), the process proceeds to step S27.

ステップS27においては、入力部11からPLU番号が入力されたか否かが判断される(ステップS27)。ここで入力されるPLU番号は、返金対象の商品に対応するPLU番号である。入力部11からPLU番号が入力されていないと判断されると(ステップS27;NO)、処理はステップS31に移行する。入力部11からPLU番号が入力されたと判断されると(ステップS27;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する「名称」が表示部12に表示される。また、PLU番号に単価が対応付けられている場合は、商品点数(数量)、返品合計金額が加算され、表示部12に表示される(ステップS28)。   In step S27, it is determined whether or not a PLU number is input from the input unit 11 (step S27). The PLU number input here is the PLU number corresponding to the product to be refunded. If it is determined that the PLU number is not input from the input unit 11 (step S27; NO), the process proceeds to step S31. If it is determined that the PLU number is input from the input unit 11 (step S27; YES), the PLU setting file 141 is referred to, and the “name” corresponding to the input PLU number is displayed on the display unit 12. When the unit price is associated with the PLU number, the product score (quantity) and the total amount of returned goods are added and displayed on the display unit 12 (step S28).

次いで、PLU設定ファイル141が参照され、入力されたPLU番号が品番PLUであるか否かが判断される(ステップS29)。即ち、入力されたPLU番号に対応する「品番PLU」が「はい」となっているか否かかが判断される。入力されたPLU番号が品番PLUであると判断されると(ステップS29;YES)、テンキー111及び金額キー121の押下による金額の入力が待機される。金額が入力されると、入力された金額が表示部12に表示されるとともに、合計金額が加算されて表示部12に表示され(ステップS30)、処理はステップS31に移行する。品番PLUではないと判断されると(ステップS29;NO)、処理はステップS31に移行する。   Next, the PLU setting file 141 is referred to and it is determined whether or not the input PLU number is a product number PLU (step S29). That is, it is determined whether or not “product number PLU” corresponding to the input PLU number is “yes”. If it is determined that the input PLU number is the product number PLU (step S29; YES), the input of the amount by pressing the numeric key 111 and the amount key 121 is waited. When the amount is input, the input amount is displayed on the display unit 12, and the total amount is added and displayed on the display unit 12 (step S30), and the process proceeds to step S31. If it is determined that it is not a product number PLU (step S29; NO), the process proceeds to step S31.

ステップS31においては、返金対象の商品の登録終了を指示する小計キー119が押下されたか否かが判断され、小計キー119が押下されたと判断されていないと判断されると(ステップS31;NO)、処理はステップS25に戻る。小計キー119が押下されたと判断されると(ステップS31;YES)、現金預金キー118が押下されたか否かが判断され、押下されたと判断されると(ステップS32;YES)、売上仕訳処理(パターン4)が実行される(ステップS33)。   In step S31, it is determined whether or not the subtotal key 119 for instructing the end of registration of the product to be refunded is pressed, and if it is determined that the subtotal key 119 has not been pressed (step S31; NO). The process returns to step S25. If it is determined that the subtotal key 119 has been pressed (step S31; YES), it is determined whether or not the cash deposit key 118 has been pressed. If it is determined that it has been pressed (step S32; YES), sales journal processing ( Pattern 4) is executed (step S33).

図22に、図10のステップS33において実行される売上仕訳処理(パターン4)を示すフローチャートを示す。売上仕訳処理(パターン4)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 22 is a flowchart showing the sales journal processing (pattern 4) executed in step S33 of FIG. The sales journal processing (pattern 4) is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、「仕訳コード」が1001に一致するレコードが仕訳パターン情報ファイル142から検索され、検索されたレコードがRAM13に読み出される(ステップS601)。ここで、本実施形態において、戻し処理に使用される仕訳パターン情報は現金売上(仕訳コード1001)のレコードに一義的に決まるので、PLU番号を押下しなくても現金売上のレコードが読み出される。なお、PLU番号(ここでは0145)を押下する構成としてもよい。   First, a record whose “journal code” matches 1001 is retrieved from the journal pattern information file 142, and the retrieved record is read into the RAM 13 (step S601). Here, in the present embodiment, since the journal pattern information used for the return process is uniquely determined by the record of cash sales (journal code 1001), the record of cash sales is read without pressing the PLU number. Note that the PLU number (0145 in this case) may be pressed.

次いで、逆仕訳処理が行われ、ステップS601で読み出されたレコードの借方関連の項目(借方科目コード、借方科目名称、借方補助科目、借方税区分)と貸方関連の項目(貸方科目コード、貸方科目名称、貸方補助科目、貸方税区分)の入れ替えが行われ、「摘要」に“返品”が追加される(ステップS602)。   Next, the reverse journal processing is performed, and the items related to the debit (debit item code, debit item name, debit sub item, debit tax category) and the credit related items (credit item code, credit) of the record read in step S601. The subject name, credit auxiliary subject, credit tax classification) are exchanged, and “return” is added to “summary” (step S602).

次いで、図10のステップS25〜S31で登録された商品の返品合計金額及び消費税が算出される(ステップS603)。   Next, the total amount of returned goods and the consumption tax of the product registered in steps S25 to S31 in FIG. 10 are calculated (step S603).

次いでRAM13の「借方税込金額」、「貸方税込金額」の項目に返金合計金額が代入される。また、「借方消費税」「貸方消費税」の項目にステップS603で算出された消費税がそれぞれ代入される(ステップS604)。   Next, the total refund amount is assigned to the items of “debit including tax” and “credit including tax” in the RAM 13. Further, the consumption tax calculated in step S603 is assigned to the items of “debit consumption tax” and “credit consumption tax” (step S604).

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS605)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS606)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS607)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS601で読み出された仕訳パターン情報のレコード(代入された金額、消費税も含む)の対応する項目のデータや、ステップS605〜S606で取得されたデータが書き込まれて記憶される。   Next, the ECR code, the slip serial number, and the slip number are acquired from the slip sequence number storage file 144 and stored in the RAM 13 (step S605). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S606). Then, a new record is added to the accounting journal data file 143, and accounting journal data is created based on the journal pattern information record read to the RAM 13 (step S607). Specifically, the data of the item corresponding to the record of the journal pattern information (including the substituted amount and the consumption tax) read in step S601 is added to each data item of the record added to the booked journal data file 143. Alternatively, the data acquired in steps S605 to S606 is written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、計上仕訳データファイル143に追加されたレコード(計上仕訳データ)に基づいて、印刷部16によりレシートが印刷される(ステップS608)。そして、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS609)、売上仕訳処理(パターン4)は終了する。   When the writing of the data to the booked journal data file 143 is completed, a receipt is printed by the printing unit 16 based on the record (recorded journal data) added to the booked journal data file 143 (step S608). Then, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S609), and the sales journalizing process (pattern 4) is completed.

図23は、上記売上仕訳処理(パターン4)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン4)によって出力されるレシートの一例を示した図である。図23では、メニューB(700円)とメニューH(500円)の注文が取り消され、返金が行われた場合のオペレータの操作手順およびレシートを図示している。オペレータは、まず、モードスイッチ124を戻しモードに設定し、返品対象商品(メニューB、メニューH)に対応するPLU番号002、008を押下する(図10のステップS27)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS31)。次いで、現金預金キー118を押下する(図10のステップS32)。そうすると、図22の売上仕訳処理(パターン4)が自動的に実行され、図23に示すレシートが発行される(図22のステップS608)。   FIG. 23 is a diagram illustrating an example of an operation procedure of the operator until the sales journalizing process (pattern 4) ends and a receipt output by the sales journalizing process (pattern 4). FIG. 23 illustrates the operation procedure and receipt of the operator when the order for menu B (700 yen) and menu H (500 yen) is canceled and refunded. First, the operator sets the mode switch 124 to the return mode, and presses the PLU numbers 002 and 008 corresponding to the return target products (menu B and menu H) (step S27 in FIG. 10). Next, the subtotal key 119 indicating that the product registration is completed is pressed (step S31 in FIG. 10). Next, the cash deposit key 118 is pressed (step S32 in FIG. 10). Then, the sales journal processing (pattern 4) in FIG. 22 is automatically executed, and the receipt shown in FIG. 23 is issued (step S608 in FIG. 22).

このように、売上データ処理装置1においては、オペレータが従来までの一般的な返金動作と同様の操作、即ち、戻しモードへの移行、返品対象のPLU番号の入力、取引区分の入力の操作を行うだけで、売上データ処理装置1で行われた返金についての仕訳が自動的に実行される。   As described above, in the sales data processing apparatus 1, the operator performs the same operations as in the conventional general refund operation, that is, the transition to the return mode, the input of the PLU number to be returned, and the input of the transaction classification. The journal for the refund made by the sales data processing apparatus 1 is automatically executed simply by performing the process.

図10に戻り、ステップS24において、モードスイッチ124が戻しモードに設定されていないと判断されると(ステップS24;NO)、処理はステップS1に戻る。   Returning to FIG. 10, if it is determined in step S24 that the mode switch 124 is not set to the return mode (step S24; NO), the process returns to step S1.

次に、1日の店舗業務が終了した閉店後に、売上データ処理装置1において実行される精算処理について説明する。
図24は、精算処理を示すフローチャートである。精算処理は、モードスイッチ124が精算モードに設定され、登録確認キー120が押下された際に、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。
Next, the settlement process executed in the sales data processing apparatus 1 after closing the store for one day will be described.
FIG. 24 is a flowchart showing the settlement process. The settlement process is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14 when the mode switch 124 is set to the settlement mode and the registration confirmation key 120 is pressed.

まず、計時部18から現在日付が取得され、RAM13に格納される(ステップS801)。   First, the current date is acquired from the time measuring unit 18 and stored in the RAM 13 (step S801).

次いで、仕訳パターン情報ファイル142から先頭のレコードがRAM13に読み出される(ステップS802)。次いで、読み出されたレコードの「仕訳区分」=“5;精算”であるか否かが判断される(ステップS803)。読み出されたレコードの「仕訳区分」=“5;精算”でないと判断されると(ステップS803;NO)、処理はステップS812に移行する。   Next, the first record is read from the journal pattern information file 142 to the RAM 13 (step S802). Next, it is determined whether or not “journal classification” = “5; settlement” of the read record (step S803). If it is determined that the “journal classification” of the read record is not “5; settlement” (step S803; NO), the process proceeds to step S812.

一方、ステップS802において読み出されたレコードの「仕訳区分」=“5;精算”であると判断されると(ステップS803;YES)、読み出されたレコードの「当月起票」と「処理日」が取得される(ステップS804)。取得された「当月起票」が“未”ではないか又は現在日付≧「処理日」ではない場合(ステップS805;NO、ステップS806;NO)、処理はステップS812へ移行する。   On the other hand, if it is determined that “journal classification” = “5; settlement” of the record read in step S802 (step S803; YES), “current month draft” and “processing date” of the read record are determined. Is acquired (step S804). If the acquired “current month draft” is not “not yet” or the current date is not “processing date” (step S805; NO, step S806; NO), the process proceeds to step S812.

ステップS804において取得された「当月起票」が“未”であり、かつステップS801で取得された現在日付≧処理日である場合(ステップS805;YES、ステップS806;YES)、ステップS802で読み出されたレコードの「税込金額」、「消費税」、「借方科目コード」、「借方科目名称」、「貸方科目コード」、「貸方科目名称」、「摘要」の各項目のデータが取得され、RAM13に記憶される(ステップS807)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶されるとともに、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS808)。そして、計上仕訳データファイル143に新たなレコードが追加され、ステップS802で読み出された仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS809)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS802で読み出された仕訳パターン情報のレコードの対応する項目のデータや、ステップS808で取得されたデータが書き込まれて記憶される。   If the “current month draft” acquired in step S804 is “not yet” and the current date acquired in step S801 ≧ the processing date (step S805; YES, step S806; YES), read in step S802. Data of each item of “tax included amount”, “consumption tax”, “debit item code”, “debit item name”, “credit item code”, “credit item name”, “explanation” of the recorded record is acquired, It is stored in the RAM 13 (step S807). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13, and the ECR code, the slip serial number, and the slip number are acquired from the slip sequential number storage file 144 and stored in the RAM 13 (step S 808). . Then, a new record is added to the booked journal data file 143, and booked journal data is created based on the journal pattern information record read in step S802 (step S809). Specifically, the data of the corresponding item in the record of the journal pattern information read in step S802 and the data acquired in step S808 are written in each data item of the record added to the booked journal data file 143. And memorized.

計上仕訳データファイル143へのデータの書き込みが終了すると、ステップS807及びS808においてRAM13に記憶されたデータに基づいて「口座引落し自動仕訳控え」が作成され、印刷部16により印刷出力される(ステップS810)。そして、ステップS802で読み出されたレコードの「当月起票」に“済”が記憶されるとともに、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS811)、処理はステップS812に移行する。   When the writing of the data to the recorded journal data file 143 is completed, an “account withdrawal automatic journal record” is created based on the data stored in the RAM 13 in steps S807 and S808, and printed out by the printing unit 16 (step S807). S810). Then, “Done” is stored in “Draft this month” of the record read in Step S802, and the slip serial number and slip number of the slip sequential number storage file 144 are incremented by 1 (Step S811), Control goes to step S812.

図25A、図25Bは、ステップS810において印刷部16により印刷出力される「口座引落し自動仕訳控え」の例を示す図である。図25Aは、毎月預金口座から定額で引落される取引についての「口座引落し自動仕訳控え」である。図25Bは、毎月請求により指定日に預金口座から引落される取引についての「口座引落し自動仕訳控え」である。
図25A、図25Bに示す「口座引落し自動仕訳控え」は、仕訳パターン情報ファイル142に予め登録されている口座引落し取引について、上記ステップS809で自動的に仕訳が行われた場合に発行される、仕訳結果(作成された計上仕訳データの内容)が記載された口座引落仕訳伝票である。図25A、図25Bに示すように、「口座引落し自動仕訳控え」には、自動仕訳を行った日時、伝票番号、取引名(摘要)、引落金額、借方についての情報(借方科目コード、借方科目名称、借方税込金額)、貸方についての情報(貸方科目コード、貸方科目名称、貸方税込金額)等が記載される。
25A and 25B are diagrams illustrating an example of “account withdrawal automatic journal entry” printed out by the printing unit 16 in step S810. FIG. 25A is an “account withdrawal automatic journal entry” for a transaction withdrawn from a deposit account at a fixed amount every month. FIG. 25B is an “account withdrawal automatic journal entry” for a transaction withdrawn from a deposit account on a specified date by monthly billing.
“Account withdrawal automatic journal entry” shown in FIG. 25A and FIG. 25B is issued when the journal entry transaction registered in advance in the journal pattern information file 142 is automatically journalized in step S809. This is an account withdrawal journal slip in which a journal result (contents of created journal journal data) is described. As shown in FIG. 25A and FIG. 25B, “Account withdrawal automatic journal entry” includes the date and time of automatic journal entry, slip number, transaction name (summary), withdrawal amount, debit information (debit item code, debit) (Course name, debit tax included), credit information (credit item code, credit subject name, credit tax included), etc. are described.

このように、売上データ処理装置1を経由しない口座引落し取引について、引落日に自動的に仕訳が行われ、口座引落仕訳伝票としての「口座引落し自動仕訳控え」が印刷出力されるので、引落日に手作業で口座引落し取引についての起票を行う必要がなくなり、利便性が向上する。また、精算時の集計の際に、口座引落しを加味した儲けを算出することが可能となる。   In this way, for account withdrawal transactions that do not go through the sales data processing device 1, journaling is automatically performed on the withdrawal date, and "account withdrawal automatic journal entry" as an account withdrawal journal is printed out. Convenience is improved because there is no need to make a draft for the account withdrawal transaction manually on the withdrawal date. In addition, it is possible to calculate a profit taking account withdrawal into account at the time of settlement.

ステップS812においては、仕訳パターン情報ファイル142の次のレコードの読み出しが行われる(ステップS812)。次いで、次のレコードがファイルエンドであるか否かが判断される(ステップS813)。次のレコードがファイルエンドではないと判断されると(ステップS813;NO)、処理はステップS803に戻り、ファイルエンドになるまでステップS803〜S813の処理が実行される。次のレコードがファイルエンドであると判断されると(ステップS813;YES)、処理はステップS814に移行する。   In step S812, the next record in the journal pattern information file 142 is read (step S812). Next, it is determined whether or not the next record is a file end (step S813). If it is determined that the next record is not a file end (step S813; NO), the process returns to step S803, and the processes of steps S803 to S813 are executed until the file end is reached. If it is determined that the next record is a file end (step S813; YES), the process proceeds to step S814.

ステップS814においては、精算時の集計処理が実行される(ステップS814)。
図26は、ステップS814において実行される精算時の集計処理を示すフローチャートである。精算時の集計処理は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。
In step S814, an aggregation process at the time of settlement is executed (step S814).
FIG. 26 is a flowchart showing the totaling process at the time of payment executed in step S814. The totaling process at the time of payment is executed in cooperation with the CPU 10 and the processing program 145 stored in the storage unit 14.

まず、計上仕訳データファイル143から先頭の1レコードがRAM13に読み出される(ステップS901)。   First, the top one record is read from the recorded journal data file 143 to the RAM 13 (step S901).

次いで、ステップS901において読み出されたレコードの「伝票日付」が当月であるか否かが判断される(ステプS902)。「伝票日付」が当月ではないと判断されると(ステップS902;NO)、処理はステップS913に移行する。「伝票日付」が当月であると判断されると(ステップS902;YES)、ステップS901で読み出されたレコードの「仕訳区分」、「引落区分」、「借方科目名」、「借方税込金額」、「貸方科目名」、「貸方税込金額」、「来客数」の各項目のデータが取得され、RAM13に記憶される(ステップS903)。また、記憶部14から集計ファイル147(図27参照)のデータが読み出される(ステップS904)。   Next, it is determined whether or not the “slip date” of the record read in step S901 is the current month (step S902). If it is determined that the “slip date” is not the current month (step S902; NO), the process proceeds to step S913. If it is determined that the “slip date” is the current month (step S902; YES), the “journal category”, “withdrawal category”, “debit item name”, and “debit tax included” in the record read in step S901. , “Credit subject name”, “Credit tax included amount”, and “Number of visitors” are acquired and stored in the RAM 13 (step S903). Further, the data of the summary file 147 (see FIG. 27) is read from the storage unit 14 (step S904).

図27は、集計ファイル147のデータ格納例を示す図である。図27に示すように、集計ファイル147には、「売上」については現金、売掛金、商品券の集計項目別に、「仕入」については現金、買掛金の集計項目別に、「経費」については現金、定額引落、口座引落の集計項目別に、「振替」についてはレジ現金、銀行預け、事業主貸借の集計項目別に、本日合計と当月累計を集計するための領域が設けられている。なお、各集計項目の「本日合計」のデータは、読み出し時にはクリアされた状態となっている(図24のステップS822参照)。   FIG. 27 is a diagram illustrating an example of data storage in the summary file 147. As shown in FIG. 27, the total file 147 includes “sales” by cash, accounts receivable, and gift certificate total items, “purchase” by cash, accounts payable by total items, and “expenses” by cash. In addition, there are areas for summing today's total and the current month's cumulative total for cash transfer, bank deposit, and employer loan items for “transfer” by tabulation items for fixed and direct debits. Note that the “today's total” data of each tabulation item is in a cleared state at the time of reading (see step S822 in FIG. 24).

次いで、ステップS901において読み出されたレコードの「仕訳区分」=“1;売上”であるか否かが判断され、「仕訳区分」=“1;売上”であると判断されると(ステップS905;YES)、集計ファイル147の「売上」区分の、上記読み出されたレコードの「借方科目名」に対応する集計項目(現金、売掛金、又は商品券)の本日合計と当月累計の欄のそれぞれに、読み出されたレコードの「借方税込金額」が加算集計される。また、集計ファイル147の客数の集計項目に、当該レコードの「来客数」が加算集計される(ステップS906)。そして、処理はステップS913に移行する。   Next, it is determined whether or not “journal classification” = “1; sales” of the record read in step S901, and if it is determined that “journal classification” = “1; sales” (step S905). ; YES), each of the column for the total of the current day and the current month of the total item (cash, receivable, or gift certificate) corresponding to the “debit item name” of the read record in the “sales” category of the total file 147 In addition, the “debit tax included amount” of the read record is added and totaled. Further, the “number of visitors” of the record is added to the total number of customers in the total file 147 (step S906). Then, the process proceeds to step S913.

ステップS901において読み出されたレコードの「仕訳区分」=“1;売上”ではないと判断されると(ステップS905;NO)、読み出されたレコードの「仕訳区分」=“2;仕入”であるか否かが判断され、「仕訳区分」=“2;仕入”であると判断されると(ステップS907;YES)、集計ファイル147の「仕入」区分の、上記読み出されたレコードの「貸方科目名」に対応する集計項目(現金又は買掛金)の本日合計と当月累計の欄のそれぞれに、読み出されたレコードの「貸方税込金額」が加算集計される(ステップS908)。そして、処理はステップS913に移行する。   If it is determined that “journal classification” = “1; sales” of the record read in step S901 (step S905; NO), “journal classification” = “2; purchase” of the read record. If it is determined that “Journal classification” = “2; Purchase” (step S907; YES), the “purchase” classification of the aggregation file 147 is read out as described above. The total amount of items (cash or accounts payable) corresponding to the “credit item name” of the record is added to the today's total and current month's total fields, and the “credit including tax” of the read record is added and totaled (step S908). . Then, the process proceeds to step S913.

ステップS901において読み出されたレコードの「仕訳区分」=“2;仕入”ではないと判断されると(ステップS907;NO)、読み出されたレコードの「仕訳区分」=“3;経費”であるか否かが判断され、「仕訳区分」=“3;経費”であると判断されると(ステップS909;YES)、読み出されたレコードの「貸方科目名」が現金2(レジ)である場合は、集計ファイル147の「経費」区分の、集計項目=現金の本日合計と当月累計の欄のそれぞれに、読み出されたレコードの「貸方税込金額」が加算集計される。読み出されたレコードの「引落区分」=“定額”である場合は、集計項目=定額引落の本日合計と当月累計の欄のそれぞれに、読み出されたレコードの「貸方税込金額」が加算集計される。読み出されたレコードの「貸方科目名」が現金2(レジ)でなく、「引落区分」=“定額”でもない場合(即ち、請求書による引落である場合)は、集計項目=口座引落の本日合計と当月累計の欄のそれぞれに、読み出されたレコードの「貸方税込金額」が加算集計される(ステップS910)。そして、処理はステップS913に移行する。   If it is determined that “journal classification” = “2; purchase” of the record read in step S901 (step S907; NO), “journal classification” = “3; expense” of the read record. If it is determined that “Journal classification” = “3; Expense” (step S909; YES), the “credit item name” of the read record is cash 2 (registry). In this case, the “credit amount including tax” of the read record is added and totaled in the columns of “summary item = cash today total” and “current total” in the “expense” category of the total file 147. When “withdrawal category” = “fixed amount” of the read record, the “credit amount including tax” of the read record is added and totaled in the columns of total item = total deduction today and total for the current month respectively. Is done. If the “Credit item name” in the read record is not cash 2 (cash register) and “withdrawal category” = “fixed amount” (that is, withdrawing by invoice), the summation item = account withdrawal The “credit amount including tax” of the read record is added and totaled in each of the today total and current month total columns (step S910). Then, the process proceeds to step S913.

ステップS901において読み出されたレコードの「仕訳区分」=“3;経費”ではないと判断されると(ステップS908;NO)、読み出されたレコードの「仕訳区分」=“4;振替”、「伝票日付」=現在日付、かつ、借方又は貸方の科目名が“現金2(レジ)”であるか否かが判断される(ステップS911)。読み出されたレコードの「仕訳区分」=“4;振替”、「伝票日付」=現在日付、かつ、借方又は貸方の科目名が“現金2(レジ)”ではないと判断されると(ステップS911;NO)、処理はステップS913に移行する。   If it is determined that “journal classification” = “3; expense” of the record read in step S901 (step S908; NO), “journal classification” = “4; transfer” of the read record, It is determined whether “slip date” = current date and the debit or credit subject name is “cash 2 (register)” (step S911). If it is determined that “journal classification” = “4; transfer”, “slip date” = current date of the read record and the debit or credit item name is not “cash 2 (register)” (step) S911; NO), the process proceeds to step S913.

一方、読み出されたレコードの「仕訳区分」=“4;振替”、「伝票日付」=現在日付、かつ、借方又は貸方の科目名が“現金2(レジ)”であると判断されると(ステップS911;YES)、読み出されたレコードにおける相手科目の科目名に応じて、相手科目の「税込金額」が、集計ファイル147の「振替」区分のレジ現金、銀行預け、事業主貸借の何れかの集計項目に加算又は減算処理される(ステップS912)。
具体的に、相手科目が事業主借である場合は、事業主貸借の集計項目の本日合計及び当日累計に相手科目の「税込金額」が加算される。相手科目が事業主貸である場合は、事業主貸借の集計項目の本日合計及び当日累計から相手科目の「税込金額」が減算される。相手科目が預金口座(借方)である場合は、銀行預けの集計項目の本日合計及び当日累計から相手科目の「税込金額」が減算される。相手科目が預金口座(貸方)である場合は、レジ入金の集計項目の本日合計及び当日累計に相手科目の「税込金額」が加算される。そして、処理はステップS913に移行する。
On the other hand, when it is determined that “journal classification” = “4; transfer”, “slip date” = current date of the read record, and the debit or credit item name is “cash 2 (register)” (Step S911; YES) According to the subject name of the counterpart subject in the read record, the “tax-included amount” of the counterpart subject is the cash of cash, bank deposit, business owner loan of the “transfer” category of the summary file 147 Addition or subtraction processing is performed on any of the total items (step S912).
Specifically, when the counterparty is borrowed by the employer, the “tax-included amount” of the counterparty is added to the total and the current day of the total items of the borrower. When the counterpart item is an employer loan, the “tax-included amount” of the counterpart item is subtracted from the total of the loan items of the employer today and the cumulative total on the day. If the counterpart account is a deposit account (debit), the “tax-included amount” of the counterpart subject is subtracted from the total today and the total of the current day of the bank deposit total items. If the opponent's subject is a deposit account (credit), the “tax-included amount” of the opponent subject is added to the total for the cashier deposit total today and the current day total. Then, the process proceeds to step S913.

ステップS913においては、計上仕訳データファイル143の次のレコードの読み出しが行われ(ステップS913)、次のレコードがファイルエンドであるか否かが判断される(ステップS914)。次のレコードがファイルエンドではないと判断されると(ステップS914;NO)、処理はステップS902に戻り、ステップS903〜S913の処理が実行される。次のレコードがファイルエンドであると判断されると(ステップS914;YES)、精算時の集計処理は終了し、処理は図24のステップS815に移行する。   In step S913, the next record in the account journal data file 143 is read (step S913), and it is determined whether or not the next record is a file end (step S914). If it is determined that the next record is not a file end (step S914; NO), the process returns to step S902, and the processes of steps S903 to S913 are executed. If it is determined that the next record is a file end (step S914; YES), the aggregation process at the time of settlement ends, and the process proceeds to step S815 in FIG.

図24のステップS815においては、精算時の集計処理で作成された集計ファイル147の各集計項目の値に基づいて、下記の式により、下記項目(1)〜(6)の本日合計と当月累計が算出される(ステップS815)。
(1)売上計=現金+売掛金+商品券
(2)客単価=売上計÷客数
(3)仕入計=現金+買掛金
(4)経費計=現金+定期引落+口座引落
(5)粗利額=売上計−仕入計−経費計
(6)粗利率=粗利額÷売上計×100%
In step S815 of FIG. 24, based on the value of each total item of the total file 147 created by the total process at the time of settlement, the following items (1) to (6) today's total and current month total are calculated by the following formula. Is calculated (step S815).
(1) Total sales = Cash + Accounts receivable + Gift certificates (2) Unit price per customer = Total sales / Number of customers (3) Total purchase = Cash + Accounts payable (4) Total expense = Cash + Regular debit + Account debit (5) Coarse Interest = Sales total-Purchase total-Expense total (6) Gross margin = Gross profit / Sales total x 100%

次いで、在高申告ファイル146から在高申告金額が読み出され、下記の式により、下記項目(7)〜(8)が算出される(ステップS816)。
(7)現金過不足=在高申告金額−(前日のレジ残高+本日の粗利額+レジ入金+銀行預け+事業主貸借)
(8)翌日繰越=在高申告金額
Next, the amount of money to be reported is read from the cash amount file 146, and the following items (7) to (8) are calculated by the following formula (step S816).
(7) Cash surplus = Amount declared in cash-(Previous day cash register balance + Today's gross profit + Cash register deposit + Bank deposit + Employer loan)
(8) Carrying forward the next day = Amount declared

次いで、算出された現金過不足=0であるか否かが判断され、現金過不足=0であると判断されると(ステップS817;YES)、処理はステップS821に移行する。現金過不足=0ではないと判断されると(ステップS817;NO)、現金過不足が正の値(プラス)である場合は、借方を現金、貸方を現金過不足として仕訳処理が行われる。現金過不足が負の値(マイナス)である場合は、借方を現金過不足、貸方を現金として仕訳処理が行われる(ステップS818)。
具体的には、現金過不足が正の値である場合は、「借方科目名」を“現金2(レジ)”、「借方科目コード」を現金2(レジ)に対応する科目コード、「借方税込金額」及び「貸方税込金額」を現金過不足の金額、「貸方科目名」を“現金過不足”、「貸方科目コード」を現金過不足に対応する科目コード、「仕訳区分」=“4:振替”、「摘要」を“現金過不足処理”とした計上仕訳データが自動的に作成されてRAM13に記憶される。現金過不足が負の値(マイナス)である場合は、「借方科目名」を“現金過不足”、「借方科目コード」を現金過不足に対応する科目コード、「借方税込金額」及び「貸方税込金額」を現金過不足の金額、「貸方科目名」を“現金2(レジ)”、「貸方科目コード」を現金2に対応する科目コード、「仕訳区分」=“4:振替”、「摘要」を“現金過不足処理”とした計上仕訳データが自動的に作成されてRAM13に記憶される。また、計時部18から現在日付及び時刻が取得され、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得されRAM13に記憶される。そして、計上仕訳データファイル143に新たなレコードが追加され、追加されたレコードの各データ項目に、RAM13に作成された計上仕訳データ、ECRコード、現在日時、伝票番号、伝票連番が書き込まれて記憶される。
Next, it is determined whether or not the calculated cash excess / deficiency = 0, and if it is determined that cash excess / deficiency = 0 (step S817; YES), the process proceeds to step S821. If it is determined that cash excess / deficiency is not 0 (step S817; NO), if the cash excess / deficiency is a positive value (plus), the journalizing process is performed with the debit as cash and the credit as cash excess / deficiency. If the cash excess / deficiency is a negative value (minus), the journalizing process is performed with the debit as the cash excess / deficiency and the credit as the cash (step S818).
Specifically, if cash surplus or deficiency is a positive value, “Debit Item Name” is “Cash 2 (Register)”, “Debit Item Code” is the item code corresponding to Cash 2 (Register), “Debit” "Tax included amount" and "Credit tax included amount" are the amount of cash excess / deficiency, "Credit item name" is "Cash excess / deficiency", "Credit item code" is the item code corresponding to cash excess / deficiency, "Journal category" = "4 : “Transfer” and “Summary” are automatically created and stored in the RAM 13 as “cash excess / deficiency processing”. If cash deficiency is negative (minus), “debit item name” is “cash deficiency”, “debit item code” is item code corresponding to cash deficiency, “debit tax included amount” and “credit” “Tax included” is the amount of excess or shortage of cash, “Credit item name” is “Cash 2 (Register)”, “Credit item code” is the item code corresponding to Cash 2, “Journal category” = “4: Transfer”, “ The accounting journal data with “Summary” as “Cash excess / deficiency processing” is automatically created and stored in the RAM 13. In addition, the current date and time are acquired from the time measuring unit 18, and the ECR code, the slip sequential number, and the slip number are acquired from the slip sequential number storage file 144 and stored in the RAM 13. Then, a new record is added to the accounting journal data file 143, and the accounting journal data, ECR code, current date and time, slip number, and slip serial number created in the RAM 13 are written in each data item of the added record. Remembered.

計上仕訳データファイル143へのデータの書き込みが終了すると、「現金過不足の仕訳控え」が作成され、印刷部16により印刷出力される(ステップS819)。そして、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS820)、処理はステップS821に移行する。   When the writing of the data to the booked journal data file 143 is completed, a “book entry for cash shortage” is created and printed out by the printing unit 16 (step S819). Then, the slip sequence number and the slip number in the slip sequence number storage file 144 are incremented by 1 (step S820), and the process proceeds to step S821.

図28は、ステップS819において印刷部16により印刷出力される「現金過不足の仕訳控え」の例を示す図である。図28に示す「現金過不足の仕訳控え」は、現金過不足の自動仕訳が行われた場合に発行される、仕訳結果(作成された計上仕訳データの内容)が記載されたレポートである。図28に示すように、「現金過不足の仕訳控え」には、自動仕訳を行った日時、伝票番号、貸方及び借方の科目名、金額等が記載される。   FIG. 28 is a diagram illustrating an example of a “book entry for cash shortage” printed out by the printing unit 16 in step S819. 28 is a report in which journal entries (contents of recorded journal data created) are issued when an automatic journal entry for cash excess / deficiency is performed. As shown in FIG. 28, the “book entry for cash excess / deficiency” includes the date and time of automatic journal entry, the slip number, the credit and debit subject names, the amount, and the like.

このように、本実施形態における売上データ処理装置1では、毎日の精算処理において、売上データ処理装置1のドロア17に実際に収納されている金銭額が上記(7)の式により算出した値と一致するか否かを判断し、一致しない場合には、現金過不足金額を現金過不足科目として計上した計上仕訳データを自動的に作成するので、毎営業日の売上データ処理装置1の実際の現金残高と、現金出納帳の現金残高を完璧に一致させることができ、税務調査に対する帳簿の信頼性を大幅に向上させることができる。   As described above, in the sales data processing apparatus 1 according to the present embodiment, the amount of money actually stored in the drawer 17 of the sales data processing apparatus 1 in the daily checkout process is calculated using the above formula (7). Judgment is made on whether or not they match. If they do not match, the journal entry data in which the cash excess / deficiency amount is recorded as the cash excess / deficiency item is automatically created. The cash balance and the cash balance in the cash book can be perfectly matched, and the reliability of the book for tax examination can be greatly improved.

ステップS821においては、集計ファイル147の各集計項目の本日合計及び当月累計の集計結果、ステップS815〜S816において算出された項目(1)〜(8)の各項目の本日合計及び当月累計の集計結果を示す(即ち、本日の取引の集計結果を示す)「本日の商いレポート」が作成され、印刷部16により印刷出力される(ステップS821)。そして、集計ファイル147の「本日の合計」の欄がクリアされるとともに、「前日のレジ残高」の集計項目にステップS816で算出された翌日繰越額が書き込まれて記憶される(ステップS822)。そして、精算処理は終了する。   In step S821, the total of today's total and total of the current month for each total item in the total file 147, the total of today's total and the current month of each item (1) to (8) calculated in steps S815 to S816. (That is, the result of today's transaction) is created and printed out by the printing unit 16 (step S821). Then, the “total of today” column of the total file 147 is cleared, and the next day's carry-forward amount calculated in step S816 is written and stored in the total item of “previous day cash balance” (step S822). Then, the settlement process ends.

図29は、ステップS821において印刷部16により印刷出力される「本日の商いレポート」の一例を示す図である。図29に示すように、「本日の商いレポート」には、売上集計161、仕入集計162、経費集計163、収益集計164、振替集計165、在高申告166、現金過不足167、翌日繰越168等が記載されている。
売上集計161は、現金、クレジット、商品券、売上計、客数、客単価の各集計項目別に、本日合計と当月累計を集計した集計結果である。仕入集計162は、現金、買掛、仕入計の各集計項目別に、本日合計と当月累計を集計した集計結果である。経費集計163は、現金、定額引落、口座引落、経費計の各集計項目別に、本日合計と当月累計を集計した集計結果である。収益計164は粗利額、粗利率の各集計項目別に、本日合計と当月累計を集計した集計結果である。振替集計165は、レジ入金、銀行預け、事業主借の各集計項目別に、本日合計と当月累計を集計した集計結果である。在高申告166は、在高申告額である。現金過不足167は、売上データ処理装置1における現金の過不足を示す値である。翌日繰越168は、翌日に繰り越す金額である。
FIG. 29 is a diagram illustrating an example of the “today's business report” printed out by the printing unit 16 in step S821. As shown in FIG. 29, “Today's business report” includes sales total 161, purchase total 162, expense total 163, revenue total 164, transfer total 165, cash balance 166, cash surplus 167, carry forward 168 the next day. Etc. are described.
The sales summary 161 is a summary result of summing up the total for today and the current month for each summary item of cash, credit, gift certificate, sales total, number of customers, and unit price of customers. The purchase total 162 is a total result obtained by totaling the current total and the current month total for each total item of cash, accounts payable, and total purchase. The expense total 163 is a total result obtained by summing up the total for today and the current month for each total item of cash, fixed amount withdrawal, account withdrawal, and expense total. The total income 164 is a totaling result obtained by totaling the total for today and the total for the current month for each total item of gross profit and gross margin. The transfer total 165 is a total result obtained by totaling the current day total and the current month total for each of the total items of cash register deposit, bank deposit, and business owner borrowing. The cash advance declaration 166 is a cash advance declaration amount. The cash excess / deficiency 167 is a value indicating an excess / deficiency of cash in the sales data processing apparatus 1. The next day carry-over 168 is an amount carried over to the next day.

図10に示す仕訳処理及び精算処理では、売上データ処理装置1を経由しない口座引落し取引を含む取引について計上仕訳データが作成されており、この作成された計上仕訳データに基づいて図29に示す「本日の商いレポート」が作成されるので、売上データ処理装置1を経由しない口座引落し取引を加味した本日及び当月の儲け(収益)を店舗経営者が正確に把握することが可能となる。   In the journalizing process and the checkout process shown in FIG. 10, booked journal data is created for a transaction including an account withdrawal transaction that does not go through the sales data processing apparatus 1, and based on the created booked journal data, shown in FIG. Since the “today's business report” is created, it becomes possible for the store manager to accurately grasp the profits (revenue) for the current day and the current month, taking account of account withdrawal transactions that do not go through the sales data processing device 1.

次に、売上データ処理装置1において、上記仕訳処理及び精算処理により作成された計上仕訳データをサーバ装置2にアップロードする処理について説明する。   Next, a process of uploading the account journal data created by the journal process and the settlement process in the sales data processing apparatus 1 to the server apparatus 2 will be described.

図30は、売上データ処理装置1からサーバ装置2に計上仕訳データをアップロードする際の処理を示すフローチャートである。図30に示す処理は、一日の店舗業務の終了時の精算処理後に開始される。図30に示す売上データ処理装置1側の処理は、売上データ処理装置1のCPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。サーバ装置2側の処理は、サーバ装置2のCPU20と記憶部24に記憶されている処理プログラム244との協働により実行される。   FIG. 30 is a flowchart showing a process when uploading the journal entry data from the sales data processing apparatus 1 to the server apparatus 2. The process shown in FIG. 30 is started after the settlement process at the end of one day of the store business. The processing on the sales data processing device 1 side shown in FIG. 30 is executed in cooperation with the CPU 10 of the sales data processing device 1 and the processing program 145 stored in the storage unit 14. The processing on the server device 2 side is executed in cooperation with the CPU 20 of the server device 2 and the processing program 244 stored in the storage unit 24.

まず、売上データ処理装置1において、通信部15によりサーバ装置2への通信接続が行われる(ステップU1)。サーバ装置2においては、通信部25により売上データ処理装置1からの通信接続要求が受け付けられる(ステップU2)。   First, in the sales data processing device 1, communication connection to the server device 2 is performed by the communication unit 15 (step U1). In the server device 2, a communication connection request from the sales data processing device 1 is received by the communication unit 25 (step U2).

次いで、売上データ処理装置1において、記憶部14に記憶されている認証用データが読み出され(ステップU3)、読み出された認証用データが通信部15によりサーバ装置2に送信される(ステップU4)。   Next, in the sales data processing device 1, the authentication data stored in the storage unit 14 is read (step U3), and the read authentication data is transmitted to the server device 2 by the communication unit 15 (step S3). U4).

サーバ装置2においては、通信部25により認証用データが受信されると(ステップU5)、受信された認証用データと認証設定ファイル241に記憶されている認証用データとの照合が行われる(ステップU6)。そして、照合結果に基づいて認証応答データが作成される(ステップU7)。照合の結果、認証用データとECRコード及び開設パスワードが一致するレコードが認証設定ファイル241に存在した場合、通信接続可能であることを示す認証応答データが作成される。認証用データとECRコード及び開設パスワードが一致するレコードが認証設定ファイル241に存在しなかった場合、通信接続不可であること示す認証応答データが作成される。作成された認証応答データは通信部25により接続要求元の売上データ処理装置1に送信される(ステップU8)。なお、受信された認証用データや照合結果、作成された認証応答データ等は、RAM23に保持される。   In the server device 2, when authentication data is received by the communication unit 25 (step U 5), the received authentication data is collated with the authentication data stored in the authentication setting file 241 (step S 5). U6). Then, authentication response data is created based on the collation result (step U7). As a result of the collation, when a record in which the authentication data matches the ECR code and the opening password exists in the authentication setting file 241, authentication response data indicating that communication connection is possible is created. If there is no record in the authentication setting file 241 that matches the authentication data with the ECR code and the opening password, authentication response data indicating that communication connection is impossible is created. The created authentication response data is transmitted to the sales data processing device 1 of the connection request source by the communication unit 25 (step U8). The received authentication data, verification result, created authentication response data, and the like are held in the RAM 23.

売上データ処理装置1においては、通信部15により認証応答データが受信されると(ステップU9)、受信された認証応答データに基づいて、通信接続可能であるか否かが判断される。通信接続が可能であると判断されると(ステップU10;接続可)、計上仕訳データファイル143から該当するデータ(例えば、「伝票日付」が本日の計上仕訳データ)が取得され(ステップU11)、取得された計上仕訳データが通信部15によりサーバ装置2に送信され(ステップU12)、処理はステップU17に移行する。一方、通信接続が不可能であると判断されると(ステップU10;接続不可)、エラー処理が実行され(ステップS16)、処理はステップU17に移行する。   In the sales data processing apparatus 1, when the authentication response data is received by the communication unit 15 (step U9), it is determined whether communication connection is possible based on the received authentication response data. When it is determined that communication connection is possible (step U10; connection is possible), the corresponding data (for example, “slip date” is the current journal data) is acquired from the recorded journal data file 143 (step U11). The acquired journal entry data is transmitted to the server device 2 by the communication unit 15 (step U12), and the process proceeds to step U17. On the other hand, if it is determined that communication connection is impossible (step U10; connection is impossible), error processing is executed (step S16), and the process proceeds to step U17.

ステップU17においては、通信部15によりサーバ装置2との通信が切断される(ステップU17)。そして、売上データ処理装置1側のアップロード処理は終了する。   In step U17, communication with server device 2 is disconnected by communication unit 15 (step U17). Then, the upload process on the sales data processing apparatus 1 side ends.

サーバ装置2においては、売上データ処理装置1との通信接続が可能と判断され(ステップU13;接続可)、通信部25により計上仕訳データが受信されると(ステップU14)、受信された計上仕訳データが認証用データのECRコードと対応付けられて計上仕訳DB243に格納される(ステップU15)。そして、売上データ処理装置1からの通信の切断に応じて通信部25により通信が切断される(ステップU18)。また、RAM23に保持された情報が削除され(ステップU19)、サーバ装置2側の処理は終了する。   In the server device 2, it is determined that communication connection with the sales data processing device 1 is possible (step U 13; connectable), and when the journal entry data is received by the communication unit 25 (step U 14), the received journal entry is received. The data is stored in the accounting journal DB 243 in association with the ECR code of the authentication data (step U15). And communication is cut | disconnected by the communication part 25 according to the cutting | disconnection of the communication from the sales data processing apparatus 1 (step U18). Further, the information held in the RAM 23 is deleted (step U19), and the processing on the server device 2 side ends.

以上説明したように、売上データ処理装置1によれば、記憶部14は、口座引落しによる取引を含む取引項目及び当該取引項目の仕訳パターン情報を特定するための仕訳コードをPLU番号に対応付けて記憶するPLU設定ファイル141と、各取引項目の仕訳パターン情報及びその取引項目が口座引落しによる取引である場合の引落情報を仕訳コードに対応付けて記憶する仕訳パターン情報ファイル142とを記憶している。CPU10は、引落日が現在日付以前の引落情報をもつレコードを仕訳パターン情報ファイル142から検索し、該当するレコードが検索された場合は、その検索されたレコードの仕訳パターン情報に基づいて引落金額を仕訳した計上仕訳データを作成する。   As described above, according to the sales data processing apparatus 1, the storage unit 14 associates a transaction item including a transaction by account withdrawal and a journal code for identifying the journal pattern information of the transaction item with the PLU number. And a journal pattern information file 142 that stores journal pattern information of each transaction item and the journal information when the transaction item is a transaction based on account withdrawal in association with a journal code. ing. The CPU 10 searches the journal pattern information file 142 for records having withdrawal information whose withdrawal date is earlier than the current date. When a corresponding record is retrieved, the CPU 10 determines the withdrawal amount based on the journal pattern information of the retrieved record. Create journalized journal entry data.

従って、売上データ処理装置1を経由しない口座引落しによる取引についても売上データ処理装置で自動的に仕訳することが可能となる。また、口座引落しによる取引を加味した収益を算出し、店舗経営者に提供することも可能となる。口座引落しによる取引には、毎月定額で口座から引落される取引、毎月の請求により指定日に口座から引落される取引が含まれるので、毎月定額で口座から引き落される取引、或いは請求書により口座から引落される取引を売上データ処理装置1で自動的に仕訳することが可能となる。   Therefore, it is possible to automatically make a journal entry with the sales data processing device even for transactions by direct debit without going through the sales data processing device 1. In addition, it is possible to calculate the profit taking account of the account withdrawal and provide it to the store manager. Transactions by direct debit include transactions withdrawn from the account at a fixed monthly amount, transactions withdrawn from the account on a specified date due to monthly invoices, transactions that are withdrawn from the account at a fixed monthly amount, or invoice The sales data processing device 1 can automatically journal transactions withdrawn from the account.

また、仕訳パターン情報ファイル142に記憶されている引落日及び引落金額を入力部11により変更することができるので、引落日や引落金額が変更になった場合であっても、変更に応じた適切な仕訳処理を行うことが可能となる。   In addition, since the withdrawal date and the withdrawal amount stored in the journal pattern information file 142 can be changed by the input unit 11, even if the withdrawal date or the withdrawal amount is changed, an appropriate change according to the change is made. Journal entry processing can be performed.

また、口座引落しによる取引についての計上仕訳データの作成後、作成された計上仕訳データに基づいて口座引落伝票としての「口座引落し自動仕訳控え」が印刷部16等の出力部から出力されるので、売上データ処理装置1を経由しない口座引落しによる取引について、引落日に手作業で起票を行う必要がなくなり、利便性が向上する。   In addition, after creating the journal entry data for the transaction by account withdrawal, an “account withdrawal automatic journal record” as an account withdrawal slip is output from the output unit such as the printing unit 16 based on the created journal entry data. Therefore, it is not necessary to issue a draft manually on the withdrawal date for transactions by direct debit without going through the sales data processing device 1, and convenience is improved.

また、精算時には、計上仕訳データファイル143に記憶されている、口座引落しによる取引を含む取引の計上仕訳データに基づいて、本日及び当月累計の収益を算出し、印刷部16等の出力部により出力するので、売上データ処理装置1を経由しない口座引落しによる取引を加味した正確な収益を店舗経営者に提供することが可能となる。   Also, at the time of payment, the current and current month's total revenue is calculated based on the recorded journal data of transactions including account withdrawal transactions stored in the recorded journal data file 143. Since the data is output, it is possible to provide the store manager with accurate profits taking account of transactions by direct debit without going through the sales data processing device 1.

また、精算時に、入力部11により入力されたドロア17の金銭の金額と、本日作成された計上仕訳データに基づいて算出された現金残高を示す値とに過不足があるか否かを判断し、過不足がある場合に、当該過不足の金額を現金過不足項目として計上した計上仕訳データを作成し、計上仕訳データファイル143に記憶させるので、ドロア17に実際に収納されている金銭の額、即ち、現金残高と、計上仕訳データから集計される残高、即ち、現金出納帳の残高とを一致させることができる。   Further, at the time of settlement, it is determined whether there is an excess or deficiency in the amount of money of the drawer 17 input by the input unit 11 and the value indicating the cash balance calculated based on the recorded journal data created today. In the case where there is an excess or deficiency, the accounting journal data in which the surplus / deficiency amount is recorded as a cash excess / deficiency item is created and stored in the accounting journal data file 143, so the amount of money actually stored in the drawer 17 That is, the cash balance can be matched with the balance totaled from the recorded journal data, that is, the balance of the cash accounting book.

なお、上記実施形態における記述内容は、本発明に係る売上データ処理システム100の好適な一例であり、これに限定されるものではない。
例えば、上記実施形態において示したPLU設定ファイル141等の項目は一例であり、これに限定されるものではない。
In addition, the description content in the said embodiment is a suitable example of the sales data processing system 100 which concerns on this invention, and is not limited to this.
For example, the items such as the PLU setting file 141 shown in the above embodiment are merely examples, and the present invention is not limited to this.

また、上記実施形態においては、口座引落し自動仕訳控え、現金過不足の仕訳控え、本日の商いレポートは、印刷部16により印刷出力することとして説明したが、これらの電子データを通信部15によりサーバ装置2に出力する構成としてもよい。   Further, in the above-described embodiment, it has been described that the account withdrawal automatic journal entry, the cash excess / deficiency journal entry, and today's business report are printed out by the printing unit 16, but these electronic data are output by the communication unit 15. It is good also as a structure output to the server apparatus 2. FIG.

その他、売上データ処理システム100を構成する各装置の細部構成及び細部動作に関しても、発明の趣旨を逸脱することのない範囲で適宜変更可能である。   In addition, the detailed configuration and detailed operation of each device constituting the sales data processing system 100 can be changed as appropriate without departing from the spirit of the invention.

100 売上データ処理システム
1 売上データ処理装置
10 CPU
11 入力部
111 テンキー
112 部門キー
113 フラットPLUキー
114 入金キー
115 出金キー
116 クレジットキー
117 券キー
118 現金預金キー
119 小計キー
120 登録確認キー
121 金額キー
122 乗算キー
123 接続キー
124 モードスイッチ
125 在高申告キー
126 客数キー
127 仮締めキー
128 伝票番号キー
12 表示部
13 RAM
14 記憶部
141 PLU設定ファイル
142 仕訳パターン情報ファイル
143 計上仕訳データファイル
144 伝票連番記憶ファイル
145 プログラム
146 在高申告ファイル
147 集計ファイル
15 通信部
16 印刷部
17 ドロア
18 計時部
19 バス
2 サーバ装置
20 CPU
21 入力部
22 表示部
23 RAM
24 記憶部
241 認証設定ファイル
242 仕訳パターン情報マスタDB
243 計上仕訳DB
244 プログラム
25 通信部
26 バス
100 Sales data processing system
1 Sales Data Processing Device 10 CPU
11 Input section 111 Ten key 112 Department key 113 Flat PLU key 114 Deposit key 115 Withdrawal key 116 Credit key 117 Ticket key 118 Cash deposit key 119 Subtotal key 120 Registration confirmation key 121 Amount key 122 Multiplication key 123 Connection key 124 Mode switch 125 Present High declaration key 126 Number of customers key 127 Temporary closing key 128 Voucher number key 12 Display unit 13 RAM
14 storage unit 141 PLU setting file 142 journal pattern information file 143 accounting journal data file 144 slip sequential number storage file 145 program 146 inventory report file 147 total file 15 communication unit 16 printing unit 17 drawer 18 timing unit 19 bus 2 server device 20 CPU
21 Input unit 22 Display unit 23 RAM
24 Storage Unit 241 Authentication Setting File 242 Journal Pattern Information Master DB
243 Accounting Journal DB
244 Program 25 Communication unit 26 Bus

Claims (8)

口座引落しによる取引を含む取引項目及び当該取引項目の仕訳パターン情報を特定するための仕訳コードを識別番号に対応付けて記憶する取引情報記憶部と、
前記取引項目の仕訳パターン情報を前記仕訳コードに対応付けて記憶し、前記取引項目が前記口座引落しによる取引である場合には、更に前記仕訳パターン情報を引落日及び引落金額を含む引落情報に対応付けて記憶する仕訳パターン情報記憶部と、
計上仕訳データを記憶する計上仕訳データ記憶部と、
精算時に、前記引落日が現在日付以前の引落情報を前記仕訳パターン情報記憶部から検索し、該当する引落情報が検索された場合は、その検索された引落情報に対応する仕訳パターン情報に基づいて引落金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部と、
を備える売上データ処理装置。
A transaction information storage unit that stores a transaction item including a transaction by direct debit and a journal code for specifying the journal pattern information of the transaction item in association with an identification number;
The journal pattern information of the transaction item is stored in association with the journal code, and when the transaction item is a transaction by the account withdrawal, the journal pattern information is further converted into withdrawal information including a withdrawal date and a withdrawal amount. Journal pattern information storage unit that stores the associated information,
An accounting journal data storage unit for storing accounting journal data;
When the withdrawal date is searched from the journal pattern information storage unit and the corresponding withdrawal information is retrieved, the withdrawal date is retrieved based on the journal pattern information corresponding to the retrieved withdrawal information. A control unit that creates the accounting journal data journalizing the withdrawal amount and stores it in the accounting journal data storage unit;
A sales data processing apparatus.
前記口座引落しによる取引には、毎月定額で口座から引落される取引が含まれる請求項1に記載の売上データ処理装置。   The sales data processing device according to claim 1, wherein the transaction by debit includes a transaction debited from an account at a fixed amount every month. 前記口座から引落される取引には、毎月の請求により指定日に口座から引落される取引が含まれる請求項1又は2に記載の売上データ処理装置。   The sales data processing device according to claim 1, wherein the transaction withdrawn from the account includes a transaction withdrawn from the account on a specified date by a monthly charge. 前記仕訳パターン情報記憶部に記憶されている引落日及び引落金額を変更するための入力部を備える請求項1〜3の何れか一項に記載の売上データ処理装置。   The sales data processing device according to any one of claims 1 to 3, further comprising an input unit for changing a withdrawal date and a withdrawal amount stored in the journal pattern information storage unit. 出力部を備え、
前記制御部は、前記計上仕訳データの作成後、作成された計上仕訳データの内容を示す口座引落仕訳伝票を作成し、前記出力部に出力させる請求項1〜4の何れか一項に記載の売上データ処理装置。
With an output section,
5. The control unit according to claim 1, wherein after the creation of the booked journal data, the control unit creates an account withdrawal journal that indicates the content of the created booked journal data, and outputs the account withdrawal journal slip to the output unit. Sales data processing device.
前記入力部は、仕訳対象とする取引項目の識別番号、取引金額及び取引区分を入力可能であり、
前記制御部は、前記入力部により仕訳対象の取引項目の識別番号及び取引区分が入力されると、当該入力された識別番号に対応する仕訳コードを前記取引情報記憶部から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を前記仕訳パターン情報記憶部から読み出し、前記入力部により入力された取引区分及び前記読み出された仕訳パターン情報に基づいて前記入力された取引金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させ、精算時に、前記計上仕訳データ記憶部に記憶されている、前記口座引落しによる取引を含む前記計上仕訳データに基づいて、本日及び当月累計の収益を算出し、前記出力部により出力させる請求項1〜5の何れか一項に記載の売上データ処理装置。
The input unit can input an identification number of a transaction item to be journalized, a transaction amount, and a transaction classification,
When the identification number and transaction classification of the transaction item to be journalized are input by the input unit, the control unit acquires a journal code corresponding to the input identification number from the transaction information storage unit, The journal pattern information associated with the journal code is read from the journal pattern information storage unit, and the input transaction amount is journaled based on the transaction classification input by the input unit and the read journal pattern information. The recorded journal data is created and stored in the recorded journal data storage unit, and at the time of settlement, the recorded journal data including the transaction by the account withdrawal, stored in the recorded journal data storage unit, The sales data processing device according to any one of claims 1 to 5, wherein the accumulated profit for the current month is calculated and output by the output unit.
前記入力部は、前記売上データ処理装置に収納されている金銭の金額を入力可能に構成され、
前記制御部は、精算時に、前記入力部により入力された金銭の金額と、本日作成された計上仕訳データに基づいて算出された現金残高を示す値とに過不足があるか否かを判断し、過不足がある場合に、当該過不足の金額を現金過不足項目として計上した計上仕訳データを作成し、前記計上仕訳データ記憶部に記憶させる請求項1〜6の何れか一項に記載の売上データ処理装置。
The input unit is configured to be able to input the amount of money stored in the sales data processing device,
The control unit determines whether there is an excess or deficiency in the amount of money input by the input unit and the value indicating the cash balance calculated based on the recorded journal data created today at the time of settlement. When there is an excess or deficiency, recorded journal data in which the excess or deficiency amount is recorded as a cash surplus or deficit item is created and stored in the recorded journal data storage unit. Sales data processing device.
売上データ処理装置に用いられるコンピュータを、
口座引落しによる取引を含む取引項目及び当該取引項目の仕訳パターン情報を特定するための仕訳コードを識別番号に対応付けて記憶する取引情報記憶部、
前記取引項目の仕訳パターン情報を前記仕訳コードに対応付けて記憶し、前記取引項目が前記口座引落しによる取引である場合には、更に前記仕訳パターン情報を引落日及び引落金額を含む引落情報に対応付けて記憶する仕訳パターン情報記憶部、
計上仕訳データを記憶する計上仕訳データ記憶部、
精算時に、前記引落日が現在日付以前の引落情報を前記仕訳パターン情報記憶部から検索し、該当する引落情報が検索された場合は、その検索された引落情報に対応する仕訳パターン情報に基づいて引落金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部、
として機能させるためのプログラム。
A computer used in a sales data processing device
A transaction information storage unit for storing a transaction item including a transaction by direct debit and a journal code for specifying the journal pattern information of the transaction item in association with an identification number;
The journal pattern information of the transaction item is stored in association with the journal code, and when the transaction item is a transaction by the account withdrawal, the journal pattern information is further converted into withdrawal information including a withdrawal date and a withdrawal amount. Journal pattern information storage unit for storing in association with each other,
Account journal data storage unit for storing account journal data,
When the withdrawal date is searched from the journal pattern information storage unit and the corresponding withdrawal information is retrieved, the withdrawal date is retrieved based on the journal pattern information corresponding to the retrieved withdrawal information. A control unit that creates the accounting journal data journalizing the withdrawal amount and stores it in the accounting journal data storage unit,
Program to function as.
JP2010052457A 2010-03-10 2010-03-10 Sales data processing apparatus and program Active JP5526877B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010052457A JP5526877B2 (en) 2010-03-10 2010-03-10 Sales data processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010052457A JP5526877B2 (en) 2010-03-10 2010-03-10 Sales data processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2011186860A true JP2011186860A (en) 2011-09-22
JP5526877B2 JP5526877B2 (en) 2014-06-18

Family

ID=44793036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010052457A Active JP5526877B2 (en) 2010-03-10 2010-03-10 Sales data processing apparatus and program

Country Status (1)

Country Link
JP (1) JP5526877B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014206960A (en) * 2013-03-19 2014-10-30 株式会社日本デジタル研究所 Book creation system, method and program and printed voucher
JP2017195002A (en) * 2017-07-24 2017-10-26 東芝テック株式会社 Sales data processor and program
JP2018200707A (en) * 2018-08-01 2018-12-20 東芝テック株式会社 Sales data processor and program
JP2020046868A (en) * 2018-09-18 2020-03-26 株式会社オービック Accounting processing device, accounting processing method, and accounting processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3022697U (en) * 1995-09-14 1996-03-26 株式会社日本ソフトウェアシステム POS device
JPH11195073A (en) * 1997-12-26 1999-07-21 Shinei System:Kk Accounting system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3022697U (en) * 1995-09-14 1996-03-26 株式会社日本ソフトウェアシステム POS device
JPH11195073A (en) * 1997-12-26 1999-07-21 Shinei System:Kk Accounting system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014206960A (en) * 2013-03-19 2014-10-30 株式会社日本デジタル研究所 Book creation system, method and program and printed voucher
JP2017195002A (en) * 2017-07-24 2017-10-26 東芝テック株式会社 Sales data processor and program
JP2018200707A (en) * 2018-08-01 2018-12-20 東芝テック株式会社 Sales data processor and program
JP2020046868A (en) * 2018-09-18 2020-03-26 株式会社オービック Accounting processing device, accounting processing method, and accounting processing program
JP7153512B2 (en) 2018-09-18 2022-10-14 株式会社オービック ACCOUNTING PROCESSING DEVICE, ACCOUNTING PROCESSING METHOD, AND ACCOUNTING PROCESSING PROGRAM

Also Published As

Publication number Publication date
JP5526877B2 (en) 2014-06-18

Similar Documents

Publication Publication Date Title
WO2017155360A1 (en) Accounting processing method and accounting processing system, which use integrated trial balance
JP5526877B2 (en) Sales data processing apparatus and program
JP5114887B2 (en) POS register
JP2009176121A (en) Business management system
JP6513606B2 (en) Settlement system
US20140279308A1 (en) Expense information management method, expense information management system, and mobile terminal
WO2021200081A1 (en) Charging device and charging method
JP5544769B2 (en) Sales data processing apparatus and program
JP2007241693A (en) Cash register system
JP5764701B2 (en) Commerce processing apparatus and receipt details search program
JP5562913B2 (en) Merchandise sales data processing apparatus and receipt details search program
JP6975443B2 (en) Product sales data processing equipment and programs
JP6984857B2 (en) Product data processing equipment and programs
JP2016110525A (en) Selling data processing device and program
JP2007280252A (en) Pos terminal
JP6156802B2 (en) Receipt issuing device and receipt issuing method
JP7331284B1 (en) INFORMATION PROVIDING DEVICE, INFORMATION PROVIDING METHOD AND PROGRAM
JP2018166009A (en) Information processing apparatus and information processing program
JP6930764B2 (en) Checkout system, checkout equipment and programs
JPH0390994A (en) Card system for privilage and change
JP6597862B2 (en) Information output device and program
JP6382389B2 (en) Information processing apparatus and information processing program
JP3413552B2 (en) POS system
JP6138198B2 (en) Commerce processing apparatus and receipt details search program
JP3285113B2 (en) Cash register and card transaction processing method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121207

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121207

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140224

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140318

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140331

R150 Certificate of patent or registration of utility model

Ref document number: 5526877

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150