JP5544769B2 - Sales data processing apparatus and program - Google Patents

Sales data processing apparatus and program Download PDF

Info

Publication number
JP5544769B2
JP5544769B2 JP2009166243A JP2009166243A JP5544769B2 JP 5544769 B2 JP5544769 B2 JP 5544769B2 JP 2009166243 A JP2009166243 A JP 2009166243A JP 2009166243 A JP2009166243 A JP 2009166243A JP 5544769 B2 JP5544769 B2 JP 5544769B2
Authority
JP
Japan
Prior art keywords
journal
transaction
input
sales
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.)
Active
Application number
JP2009166243A
Other languages
Japanese (ja)
Other versions
JP2011022735A (en
Inventor
充治 神谷
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 JP2009166243A priority Critical patent/JP5544769B2/en
Publication of JP2011022735A publication Critical patent/JP2011022735A/en
Application granted granted Critical
Publication of JP5544769B2 publication Critical patent/JP5544769B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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. .

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

しかしながら、売上データ処理装置においては、記録された小額、大量の取引を取引発生の単位で正確に仕訳することはできない。現状では、閉店後に売上データ処理装置において行われる精算処理で発行される日計明細をもとに、従業員が手作業で仕訳作業を行っていることが多い。この仕訳作業には、複式簿記などの知識が必要となる。しかも、仕入現金支払や各種経費支払などの売上計上以外の入出金については、入金、出金それぞれの合計金額しか日計明細に記録されないため、後で会計システムの画面で領収書等を見ながら仕訳作業をする必要があり煩雑である。   However, in the sales data processing apparatus, it is not possible to accurately translate a small amount and a large amount of recorded transactions in units of transaction occurrence. At present, employees often perform manual journaling work based on daily details issued in the settlement process performed in the sales data processing device after the store is closed. This journaling work requires knowledge such as double entry bookkeeping. In addition, with regard to deposits and withdrawals other than sales such as purchase cash payments and various expense payments, only the total amount of each deposit and withdrawal is recorded in the daily balance, so you can see receipts later on the accounting system screen. However, it is necessary to carry out journalizing work, which is complicated.

本発明の課題は、複式簿記等の知識を持たないオペレータであっても売上データ処理装置を経由した取引の仕訳を簡単な操作で行うことができるようにすることである。   An object of the present invention is to enable a journal entry of a transaction via a sales data processing apparatus to be performed by a simple operation even for an operator who does not have knowledge such as double entry bookkeeping.

上記課題を解決するため、請求項1に記載の売上データ処理装置は、
複数の識別番号に対応付けて、取引項目の仕訳パターン情報を特定する複数の仕訳コードを記憶する取引情報記憶部と、
前記複数の仕訳コードに対応付けて、前記取引項目の仕訳パターン情報を記憶する仕訳パターン情報記憶部と、
計上仕訳データを記憶する計上仕訳データ記憶部と、
前記複数の識別番号に対応付けられ仕訳対象の取引項目の識別番号を入力するための複数の識別キー及び取引金額を入力するテンキーを備え、前記識別番号及び取引金額を入力する入力部と、
前記複数の識別キーのうち何れかの識別キーにより仕訳対象の取引項目の識別番号が入力され、前記テンキーにより取引金額が入力されると、当該入力された識別番号に対応する仕訳コードを前記取引情報記憶部から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を前記仕訳パターン情報記憶部から読み出し、前記読み出された仕訳パターン情報に基づいて前記入力された取引金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部と、
を備える。
In order to solve the above problem, a sales data processing device according to claim 1 is:
A transaction information storage unit that stores a plurality of journal codes that specify journal pattern information of transaction items in association with a plurality of identification numbers;
A journal pattern information storage unit that stores journal pattern information of the transaction items in association with the plurality of journal codes;
An accounting journal data storage unit for storing accounting journal data;
Includes a numeric keypad for inputting a plurality of identification keys and transaction amount for entering the identification number of transaction items journal object associated with said plurality of identification numbers, an input unit for inputting the identification number and the transaction Amount,
When an identification number of a transaction item to be journalized is input by any one of the plurality of identification keys and a transaction amount is input by the numeric keypad , a journal code corresponding to the input identification number is displayed in the transaction obtained from the information storage unit, it reads the journal pattern information corresponding to the acquired journal code from the journal pattern information storage unit, a transaction amount, which is the input on the previous SL read journal pattern information A control unit that creates journalized journal data and stores it in the journal data storage unit;
Is provided.

本発明によれば、複式簿記等の知識を持たないオペレータであっても売上データ処理装置を経由した取引の仕訳を簡単な操作で行うことが可能となる。   According to the present invention, even an operator who does not have knowledge such as double-entry bookkeeping can perform transaction journalizing through a sales data processing device with a simple operation.

本発明の実施形態における売上データ処理システムの全体構成例を示す図である。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において実行される売上仕訳処理(パターン2)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 2) performed in CPU of FIG. 図15の売上仕訳処理(パターン2)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン2)によって出力されるレシートの一例を示す図である。FIG. 16 is a diagram illustrating an example of an operation procedure of an operator until the sales journalizing process (pattern 2) in FIG. 15 ends and a receipt output by the sales journalizing process (pattern 2). 図2のCPUにおいて実行される売上仕訳処理(パターン3)を示すフローチャートである。It is a flowchart which shows the sales journal process (pattern 3) performed in CPU of FIG. 図17の売上仕訳処理(パターン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. 17 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. 図19の売上仕訳処理(パターン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. 19 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. 図21の売上仕訳処理(パターン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. 21 is complete | finished, and a sales journal process (pattern 4). 図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, settlement processing, and the like of products 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, develops it in the work area, and executes various processes including a journalizing process described later.

入力部11は、図3に示すように、テンキー111、部門キー112、フラットPLUキー113、入金キー114、出金キー115、クレジットキー116、券キー117、現金預金キー118、小計キー119、登録確認キー120、金額キー121、乗算キー122、接続キー123等を備えて構成されている。   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, and the like are provided.

フラットPLUキー113は、PLU番号が対応付けられた複数のキーにより構成される。PLU番号は、商品又は取引項目(現金売上、クレジット、商品券売上等)を識別するために割り当てられた識別番号である。フラットPLUキー113のそれぞれには、図3に示すように、PLU番号に対応する商品の名称又は取引項目の名称が表示されている。例えば、PLU番号145は取引項目「現金売上」を識別する番号であるので、PLU番号145に対応するフラットPLUキー113には、「現金売上」の文字が表示されている。フラットPLUキー113の何れかが押下されると、そのフラットPLUキー113に対応するPLU番号が入力される。
入金キー114、出金キー115、クレジットキー116、券キー117、現金預金キー118は、取引区分(出金、入金、クレジット、商品券、現金)を入力するためのキーである。
小計キー119は、商品の登録が終了し、登録された売上金額の合計の算出指示を入力するためのキーである。登録確認キー120は、仕訳処理への移行指示を入力するためのキーである。
金額キー121は、テンキー111で入力された数値が金額であることを入力するためのキーである。
乗算キー122は、数量を入力するためのキーである。
接続キー123は、サーバ装置2への接続指示を入力するためのキーである。
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.
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 journal entry 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.

また、入力部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 payment mode is a mode in which the daily sales data is settled. The return mode is a mode for performing return processing.

更に、入力部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参照)を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部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 includes programs for executing various processes including a journal entry process (see FIG. 10), a download process (see FIG. 9), and an upload process (see FIG. 23), which will be described later.
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番号は、商品又は取引項目(現金売上、クレジット、商品券売上等)を識別するために割り当てられた識別番号である。
本実施形態は、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 transaction item (cash sales, credit, gift certificate sales, etc.).
In the present embodiment, in the PLU setting file 141, setting information related to the product identified by the PLU number (identification number) and transaction items identified by the PLU number (identification number) (cash sales, credits, gift certificate sales, etc.) This is characterized in that a journal code for specifying journal pattern information relating to the data is stored.

図4において、PLU番号001(1)〜144のそれぞれには、そのPLU番号により識別される商品に関する設定情報が対応付けて格納されている。例えば、PLU番号001(1)には、「メニューA」についての設定情報(「単価」、「課税方式」、「部門リンク」等)が対応付けて格納されている。また、PLU番号145〜160のそれぞれには、そのPLU番号により識別される取引項目の仕訳パターン情報を特定するための仕訳コードが対応付けて格納されている。例えば、PLU番号145には、「現金売上」の仕訳パターン情報を特定するための「仕訳コード」が対応付けて格納されている。
本実施形態では、売上データ処理装置1が、レストラン,喫茶店等の飲食店の店舗に設置されることを想定しているため、PLU設定ファイル141の「名称」に格納されるメニューA〜Jは、レストランにおける料理名称や飲物名称を表わすものである。
In FIG. 4, each of PLU numbers 001 (1) to 144 stores setting information relating 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 (1). Each of the PLU numbers 145 to 160 stores a journal code for specifying the journal pattern information of the transaction item identified by the PLU number in association with each other. 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 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には、仕訳パターン情報を特定するための「仕訳コード」に対応付けて、各取引項目の仕訳パターン情報が格納されている。
なお、仕訳パターン情報に含まれる仕訳項目は、会計システムとしてのサーバ装置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”. Items such as “Sub-account”, “Debit tax category”, “Credit item code”, “Credit item name”, “Credit sub-item”, “Credit tax category”, “Description”, “Consumption tax” are provided. Yes. 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 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 booked journal data file 143 includes “ECR code”, “slip serial number”, “slip date”, “slip time”, “slip number”, “journal classification”, “debit item code”. ”,“ Debit Item Name ”,“ Debit Auxiliary Item ”,“ Debit Tax Classification ”,“ Debit Tax Amount ”,“ Debit Consumption Tax ”,“ Credit Item Code ”,“ Credit Item Name ”,“ Credit Auxiliary Item ”, Items such as “Credit Tax Classification”, “Credit Tax Amount”, “Credit Consumption Tax”, “Summary”, “Consumption Tax Existence”, “Register Personnel”, “Number of Visitors”, “Number of Purchases”, etc. The account 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は、サーバ装置2に通信接続する際の認証用データ(ECRコード及び開設パスワード)を記憶している。   Furthermore, the storage unit 14 stores authentication data (ECR code and opening password) for communication connection to 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 is, for example, a thermal printer (thermal printer), and has receipt and journal roll paper (thermal paper). According to an instruction signal input from the CPU 10, the amount of money and sales for the roll paper is obtained. Print out 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参照)、アップロード処理のサーバ装置側処理(図23参照)を始めとする各種処理を実行するためのプログラムが含まれる。
これらのプログラムは、コンピュータ読み取り可能なプログラムコードの形態で記憶部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) of a download process, which will be described later, and a server apparatus side process (see FIG. 23) of 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及び乗算キー122が押下されることにより数量が入力されたか否かが判断される(ステップS2)。テンキー111及び乗算キー122が押下されることにより数量が入力されたと判断されると(ステップS2;YES)、入力された数量が表示部12に表示され(ステップS3)、処理はステップS4に移行する。テンキー111及び乗算キー122が押下されず、数量が入力されていないと判断されると(ステップ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 quantity has been input by pressing the numeric key 111 and the multiplication key 122 (step S2). . If it is determined that the quantity is input by pressing the numeric key 111 and the multiplication key 122 (step S2; YES), the input quantity is displayed on the display unit 12 (step S3), and the process proceeds to step S4. To do. If it is determined that the numeric key 111 and the multiplication key 122 are not pressed and no quantity is input (step S2; NO), the process proceeds to step S4.

ステップS4においては、入力部11からのPLU番号の入力が待機される(ステップS4)。入力部11からPLU番号が入力されると(ステップS4;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する「名称」が表示部12に表示される。また、PLU番号に単価が対応付けられている場合は、商品点数(数量)、合計金額が加算され、表示部12に表示される(ステップS5)。
PLU番号の入力は、フラットPLUキー113によるPLU番号の指定、テンキー111によるPLU番号の入力、商品に表示されているバーコードのバーコードスキャナによる読み取り等により行うことができる。購買された商品の商品登録を行う場合は、その商品に対応するPLU番号が入力される。出金又は入金の仕訳を行う場合は、仕訳対象の取引項目に対応するPLU番号が入力される。
In step S4, the input of the PLU number from the input unit 11 is waited (step S4). When 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 withdrawal or deposit journal, the PLU number corresponding to the transaction item to be journaled 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との協働により実行される。   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.

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

次いで、伝票連番記憶ファイル144からECRコード、伝票連番、伝票番号が取得され、RAM13に記憶される(ステップS107)。また、計時部18から現在日付、時刻が取得され、RAM13に記憶される(ステップS108)。そして、計上仕訳データファイル143に新たなレコードが追加され、RAM13に読み出されている仕訳パターン情報のレコードに基づいて計上仕訳データが作成される(ステップS109)。具体的には、計上仕訳データファイル143に追加されたレコードの各データ項目に、ステップS103で読み出された仕訳パターン情報のレコード(ステップS106で代入された金額、消費税も含む)の対応する項目のデータや、ステップS107〜S108で取得されたデータが書き込まれて記憶される。   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 S107). Further, the current date and time are acquired from the time measuring unit 18 and stored in the RAM 13 (step S108). 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 S109). 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 S106 and the consumption tax). The item data and the data acquired in steps S107 to S108 are written and stored.

計上仕訳データファイル143へのデータの書き込みが終了すると、計上仕訳データファイル143に追加されたレコード(計上仕訳データ)に基づいて、印刷部16によりレシートが印刷される(ステップS110)。そして、伝票連番記憶ファイル144の伝票連番及び伝票番号が1インクリメントされ(ステップS111)、出金仕訳処理は終了する。   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 S110). Then, the slip serial number and the slip number in the slip serial number storage file 144 are incremented by 1 (step S111), and 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のステップS110)。   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 S110 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.

図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) of the record read 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)、小計キー119が押下されたか否かが判断される(ステップS12)。小計キー119が押下されていないと判断されると(ステップS12;NO)、処理はステップS2に戻り、次の商品の登録が行われる。小計キー119が押下されたと判断されると(ステップ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 subtotal key 119 has been pressed (step S12). If it is determined that the subtotal key 119 has not been pressed (step S12; 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 S12; YES), the process proceeds to step S13.

ステップS13においては、クレジットキー116が押下されたか否かが判断される。クレジットキー116が押下されたと判断されると(ステップS13;YES)、売上仕訳処理(パターン2)が実行される(ステップS14)。   In step S13, 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 S13; YES), sales journal processing (pattern 2) is executed (step S14).

図15は、図10のステップS14において実行される売上仕訳処理(パターン2)を示すフローチャートである。売上仕訳処理(パターン2)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 15 is a flowchart showing the sales journal processing (pattern 2) executed in step S14 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〜S12で登録された商品の売上合計金額、消費税が算出され、登録された商品名、金額(単価)、売上合計金額、消費税、取引項目等が印刷部16によりレシートに印刷される(ステップS306)。   In step S306, the sales total amount and consumption tax of the products registered in steps S2 to S12 in FIG. 10 are calculated, and the registered product name, amount (unit price), sales total 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.

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

このように、売上データ処理装置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に戻り、ステップS13において、クレジットキー116が押下されていないと判断されると(ステップS13;NO)、券キー117が押下されたか否かが判断される(ステップS15)。券キー117が押下されたと判断されると(ステップS15;YES)、売上仕訳処理(パターン3)が実行される(ステップS16)。   Returning to FIG. 10, when it is determined in step S13 that the credit key 116 has not been pressed (step S13; NO), it is determined whether or not the ticket key 117 has been pressed (step S15). If it is determined that the ticket key 117 is pressed (step S15; YES), sales journal processing (pattern 3) is executed (step S16).

図17は、図10のステップS16において実行される売上仕訳処理(パターン3)を示すフローチャートである。売上仕訳処理(パターン3)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 17 is a flowchart showing the sales journal processing (pattern 3) executed in step S16 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〜S12で登録された商品の売上合計金額、消費税が算出され、登録された商品名、金額(単価)、売上合計金額、消費税、取引項目等が印刷部16によりレシートに印刷される(ステップS405)。   In step S405, the total sales amount and consumption tax of the products registered in steps S2 to S12 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 a gift certificate, “debit item code” is 103 (item code indicating a gift certificate), “credit item name” is cash 2 (register), and “credit item code” is 101 ( The item code indicating cash), “amount including debit tax” and “amount including credit” include 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.

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

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

図19は、図10のステップS19において実行される売上仕訳処理(パターン1)を示すフローチャートである。売上仕訳処理(パターン1)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 19 is a flowchart showing the sales journal processing (pattern 1) executed in step S19 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のステップS18で算出された売上合計金額が代入される。また、「借方消費税」「貸方消費税」の項目に図10のステップS18で算出された消費税がそれぞれ代入される(ステップS502)。   Next, the total sales amount calculated in step S18 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 S18 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.

図20は、上記売上仕訳処理(パターン1)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン1)によって出力されるレシートの一例を示した図である。図20では、メニューB(700円)とメニューH(500円)の注文が現金により支払われた場合のオペレータの操作手順及びレシートを図示している。図20に示すように、オペレータは、まず、注文された商品の名称(メニューB、メニューH)に対応するPLU番号002、008を押下する(図10のステップS4)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS12)。次いで、預かり金額を入力し、現金預金キー118を押下する(図10のステップS17)。そうすると、図20に示すレシートが発行され(図10のステップS18)、図19の売上仕訳処理(パターン1)が自動的に実行される。   FIG. 20 is a diagram illustrating 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. 20 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. 20, the operator first presses 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 S12 in FIG. 10). Next, the deposit amount is input and the cash deposit key 118 is pressed (step S17 in FIG. 10). Then, the receipt shown in FIG. 20 is issued (step S18 in FIG. 10), and the sales journal processing (pattern 1) in FIG. 19 is automatically executed.

図10に戻り、ステップS1において、モードスイッチ124が登録モードに設定されていないと判断されると(ステップS1;NO)、モードスイッチ124が戻しモードに設定されているか否かが判断される(ステップS20)。モードスイッチ124が戻しモードに設定されていると判断されると(ステップS20;YES)、処理はステップS21に移行する。   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 S20). If it is determined that the mode switch 124 is set to the return mode (step S20; YES), the process proceeds to step S21.

ステップS21においては、テンキー111及び乗算キー122が押下されることにより数量が入力されたか否かが判断される(ステップS21)。テンキー111及び乗算キー122が押下されることにより数量が入力されたと判断されると(ステップS21;YES)、入力された数量が表示部12に表示され(ステップS22)、処理はステップS23に移行する。テンキー111及び乗算キー122が押下されず、数量が入力されていないと判断されると(ステップS21;NO)、処理はステップS23に移行する。   In step S21, it is determined whether or not a quantity has been input by pressing the numeric key 111 and the multiplication key 122 (step S21). When it is determined that the quantity has been input by pressing the numeric key 111 and the multiplication key 122 (step S21; YES), the input quantity is displayed on the display unit 12 (step S22), and the process proceeds to step S23. To do. If it is determined that the numeric key 111 and the multiplication key 122 are not pressed and no quantity is input (step S21; NO), the process proceeds to step S23.

ステップS23においては、入力部11からのPLU番号の入力が待機される。ここでは、返金対象の商品に対応するPLU番号の入力が待機される。入力部11からPLU番号が入力されると(ステップS23;YES)、PLU設定ファイル141が参照され、入力されたPLU番号に対応する「名称」が表示部12に表示される。また、PLU番号に単価が対応付けられている場合は、商品点数(数量)、返品合計金額が加算され、表示部12に表示される(ステップS24)。   In step S23, the input of the PLU number from the input unit 11 is on standby. Here, input of the PLU number corresponding to the product to be refunded is awaited. When the PLU number is input from the input unit 11 (step S23; 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 return amount are added and displayed on the display unit 12 (step S24).

次いで、PLU設定ファイル141が参照され、入力されたPLU番号が品番PLUであるか否かが判断される(ステップS25)。即ち、入力されたPLU番号に対応する「品番PLU」が「はい」となっているか否かかが判断される。入力されたPLU番号が品番PLUであると判断されると(ステップS25;YES)、テンキー111及び金額キー121の押下による金額の入力が待機される。金額が入力されると、入力された金額が表示部12に表示されるとともに、合計金額が加算されて表示部12に表示され(ステップS26)、処理はステップS27に移行する。品番PLUではないと判断されると(ステップS25;NO)、処理はステップS27に移行する。   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 S25). That is, it is determined whether or not “product number PLU” corresponding to the input PLU number is “yes”. When it is determined that the input PLU number is the product number PLU (step S25; 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 S26), and the process proceeds to step S27. If it is determined that it is not a product number PLU (step S25; NO), the process proceeds to step S27.

ステップS27においては、返金対象の商品の登録終了を指示する小計キー119が押下されたか否かが判断され、小計キー119が押下されたと判断されていないと判断されると(ステップS27;NO)、処理はステップS21に戻る。小計キー119が押下されたと判断されると(ステップS27;YES)、現金預金キー118が押下されたか否かが判断され、押下されたと判断されると(ステップS28;YES)、売上仕訳処理(パターン4)が実行される(ステップS29)。   In step S27, 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 S27; NO). The process returns to step S21. If it is determined that the subtotal key 119 has been pressed (step S27; 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 S28; YES), the sales journal processing ( Pattern 4) is executed (step S29).

図21に、図10のステップS29において実行される売上仕訳処理(パターン4)を示すフローチャートを示す。売上仕訳処理(パターン4)は、CPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。   FIG. 21 is a flowchart showing the sales journal processing (pattern 4) executed in step S29 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のステップS21〜S27で登録された商品の返品合計金額及び消費税が算出される(ステップS603)。   Next, the total amount of returned goods and the consumption tax of the product registered in steps S21 to S27 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.

図22は、上記売上仕訳処理(パターン4)が終了するまでのオペレータの操作手順及び売上仕訳処理(パターン4)によって出力されるレシートの一例を示した図である。図22では、メニューB(700円)とメニューH(500円)の注文が取り消され、返金が行われた場合のオペレータの操作手順およびレシートを図示している。オペレータは、まず、モードスイッチ124を戻しモードに設定し、返品対象商品(メニューB、メニューH)に対応するPLU番号002、008を押下する(図10のステップS23)。次いで、商品登録が完了したことを示す小計キー119を押下する(図10のステップS27)。次いで、現金預金キー118を押下する(図10のステップS28)。そうすると、図21の売上仕訳処理(パターン4)が自動的に実行され、図22に示すレシートが発行される(図21のステップS608)。   FIG. 22 is a diagram showing 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. 22 shows the operation procedure and receipt of the operator when the order of 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 S23 in FIG. 10). Next, the subtotal key 119 indicating that the product registration is completed is pressed (step S27 in FIG. 10). Next, the cash deposit key 118 is pressed (step S28 in FIG. 10). Then, the sales journal processing (pattern 4) in FIG. 21 is automatically executed, and the receipt shown in FIG. 22 is issued (step S608 in FIG. 21).

このように、売上データ処理装置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に戻り、ステップS20において、モードスイッチ124が戻しモードに設定されていないと判断されると(ステップS20;NO)、処理はステップS1に戻る。   Returning to FIG. 10, if it is determined in step S20 that the mode switch 124 is not set to the return mode (step S20; NO), the process returns to step S1.

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

図23は、売上データ処理装置1からサーバ装置2に計上仕訳データをアップロードする際の処理を示すフローチャートである。図23に示す処理は、一日の店舗業務の終了時の精算時に開始される。図23に示す売上データ処理装置1側の処理は、売上データ処理装置1のCPU10と記憶部14に記憶されている処理プログラム145との協働により実行される。サーバ装置2側の処理は、サーバ装置2のCPU20と記憶部24に記憶されている処理プログラム244との協働により実行される。   FIG. 23 is a flowchart showing a process when uploading account journal data from the sales data processing apparatus 1 to the server apparatus 2. The process shown in FIG. 23 is started at the time of payment at the end of one day of store operations. The processing on the sales data processing device 1 side shown in FIG. 23 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)、処理はステップU16に移行する。一方、通信接続が不可能であると判断されると(ステップU10;接続不可)、エラー処理が実行され(ステップS15)、処理はステップU16に移行する。   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 data is transmitted to the server device 2 by the communication unit 15 (step U12), and the process proceeds to step U16. On the other hand, when it is determined that communication connection is impossible (step U10; connection is impossible), error processing is executed (step S15), and the process proceeds to step U16.

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

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

以上説明したように、売上データ処理装置1によれば、CPU10は、入力部11により仕訳対象の取引項目のPLU番号及び取引区分が入力されると、当該入力されたPLU番号に対応する仕訳コードを記憶部14のPLU設定ファイル141から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を仕訳パターン情報ファイル142から読み出し、入力部11により入力された取引区分及び読み出された仕訳パターン情報に基づいて入力された取引金額を仕訳した計上仕訳データを作成し計上仕訳データファイル143に記憶させる。   As described above, according to the sales data processing apparatus 1, when the PLU number and transaction classification of the transaction item to be journalized are input by the input unit 11, the journal code corresponding to the input PLU number. Is acquired from the PLU setting file 141 of the storage unit 14, the journal pattern information associated with the acquired journal code is read from the journal pattern information file 142, the transaction classification input by the input unit 11 and the read Recorded journal data obtained by journalizing the transaction amount input based on the journal pattern information is created and stored in the recorded journal data file 143.

従って、複式簿記等の知識を持たないオペレータであっても、仕訳対象の取引項目に対応するPLU番号の入力、取引金額、取引区分の入力という簡単な操作で売上データ処理装置を経由した取引の仕訳を行うことが可能となる。   Therefore, even an operator who does not have knowledge such as double entry bookkeeping can easily manage transactions via the sales data processing device by inputting the PLU number corresponding to the transaction item to be journalized, entering the transaction amount, and transaction classification. Journal entries can be made.

また、入力部11は、取引項目の名称が表示された複数のフラットPLUキー113を有し、フラットPLUキー113の何れかが押下されると、当該押下されたキーに対応するPLU番号を入力する。従って、オペレータは、取引項目に対応するPLU番号を知らなくてもフラットPLUキー113から仕訳対象の取引項目を選ぶことで簡単にPLU番号を入力することができる。   The input unit 11 has a plurality of flat PLU keys 113 displaying the names of transaction items. When any of the flat PLU keys 113 is pressed, the PLU number corresponding to the pressed key is input. To do. Therefore, the operator can easily input the PLU number by selecting the transaction item to be journalized from the flat PLU key 113 without knowing the PLU number corresponding to the transaction item.

また、売上データ処理装置1においては、計上仕訳データファイル143に格納された計上仕訳データを通信部15により会計システムとしてのサーバ装置2に送信するので、サーバ装置2において売上データ処理装置1で作成された計上仕訳データを使用して会計処理や経営分析等を実行することが可能となる。   In the sales data processing apparatus 1, since the accounting journal data stored in the accounting journal data file 143 is transmitted to the server apparatus 2 as an accounting system by the communication unit 15, the sales data processing apparatus 1 creates the accounting data in the server apparatus 2. Accounting processing and management analysis can be executed using the recorded journal data.

また、仕訳パターン情報に含まれる仕訳項目は、計上仕訳データの送信先となるサーバ装置2により予め定められているので、サーバ装置2において計上仕訳データを使用して会計処理や経営分析等を実行することが容易となる。   In addition, since the journal items included in the journal pattern information are predetermined by the server device 2 that is the transmission destination of the recorded journal data, the server device 2 executes accounting processing, management analysis, etc. using the recorded journal data. Easy to do.

また、入力部11により入力可能な取引区分には、現金預金、クレジット、商品券、入金、出金が含まれており、CPU10は、入力された取引区分に応じた仕訳処理を実行する。従って、現金預金、クレジット、商品券、入金、出金の各取引区分に応じた仕訳処理を自動的に行うことが可能となる。   The transaction categories that can be input by the input unit 11 include cash deposits, credits, gift certificates, deposits and withdrawals, and the CPU 10 executes a journalizing process according to the entered transaction categories. Accordingly, it is possible to automatically perform journalizing processing according to each transaction category of cash deposit, credit, gift certificate, deposit and withdrawal.

なお、上記実施形態における記述内容は、本発明に係る売上データ処理システム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.

その他、売上データ処理システム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 モードスイッチ
12 表示部
13 RAM
14 記憶部
141 PLU設定ファイル
142 仕訳パターン情報ファイル
143 計上仕訳データファイル
144 伝票連番記憶ファイル
145 プログラム
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 12 Display Part 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 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 (6)

複数の識別番号に対応付けて、複数の取引項目の仕訳パターン情報を特定する複数の仕訳コードを記憶する取引情報記憶部と、
前記複数の仕訳コードに対応付けて、前記複数の取引項目の仕訳パターン情報を記憶する仕訳パターン情報記憶部と、
計上仕訳データを記憶する計上仕訳データ記憶部と、
前記複数の識別番号に対応付けられ仕訳対象の取引項目の識別番号を入力するための複数の識別キー及び取引金額を入力するテンキーを備え、前記識別番号及び取引金額を入力する入力部と、
前記複数の識別キーのうち何れかの識別キーにより仕訳対象の取引項目の識別番号が入力され、前記テンキーにより取引金額が入力されると、当該入力された識別番号に対応する仕訳コードを前記取引情報記憶部から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を前記仕訳パターン情報記憶部から読み出し、前記読み出された仕訳パターン情報に基づいて前記入力された取引金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部と、
を備える売上データ処理装置。
A transaction information storage unit that stores a plurality of journal codes that identify journal pattern information of a plurality of transaction items in association with a plurality of identification numbers;
A journal pattern information storage unit that stores journal pattern information of the plurality of transaction items in association with the plurality of journal codes;
An accounting journal data storage unit for storing accounting journal data;
Includes a numeric keypad for inputting a plurality of identification keys and transaction amount for entering the identification number of transaction items journal object associated with said plurality of identification numbers, an input unit for inputting the identification number and the transaction Amount,
When an identification number of a transaction item to be journalized is input by any one of the plurality of identification keys and a transaction amount is input by the numeric keypad , a journal code corresponding to the input identification number is displayed in the transaction obtained from the information storage unit, it reads the journal pattern information corresponding to the acquired journal code from the journal pattern information storage unit, a transaction amount, which is the input on the previous SL read journal pattern information A control unit that creates journalized journal data and stores it in the journal data storage unit;
A sales data processing apparatus.
前記識別キーには、前記識別番号に対応付けられた前記取引項目の名称が表示されている請求項1に記載の売上データ処理装置。 The sales data processing apparatus according to claim 1, wherein a name of the transaction item associated with the identification number is displayed on the identification key . 前記計上仕訳データ記憶部に記憶された計上仕訳データを通信ネットワークを介して会計システムに送信する通信部を備える請求項1又は2に記載の売上データ処理装置。   The sales data processing apparatus according to claim 1, further comprising a communication unit that transmits the accounting journal data stored in the accounting journal data storage unit to an accounting system via a communication network. 前記仕訳パターン情報に含まれる仕訳項目は、前記計上仕訳データの送信先となる会計システムにより予め定められている請求項3に記載の売上データ処理装置。   4. The sales data processing apparatus according to claim 3, wherein the journal items included in the journal pattern information are predetermined by an accounting system as a transmission destination of the recorded journal data. 前記入力部により入力可能な取引区分には、現金預金、クレジット、商品券、入金、出金を含み、
前記制御部は、前記入力部により入力された取引区分に応じた仕訳処理を実行する請求項1〜4の何れか一項に記載の売上データ処理装置。
Transaction categories that can be entered by the input unit include cash deposits, credits, gift certificates, deposits, withdrawals,
The sales data processing apparatus according to any one of claims 1 to 4, wherein the control unit executes a journalizing process according to a transaction classification input by the input unit.
売上データ処理装置に用いられるコンピュータを、
複数の識別番号に対応付けて、複数の取引項目の仕訳パターン情報を特定するための複数の仕訳コードを記憶する取引情報記憶部、
前記複数の仕訳コードに対応付けて、前記複数の取引項目の仕訳パターン情報を記憶する仕訳パターン情報記憶部、
計上仕訳データを記憶する計上仕訳データ記憶部、
前記複数の識別番号に対応付けられ仕訳対象の取引項目の識別番号を入力するための複数の識別キー及び取引金額を入力するテンキーを備え、前記識別番号及び取引金額を入力する入力部、
前記複数の識別キーのうち何れかの識別キーにより仕訳対象の取引項目の識別番号が入力され、前記テンキーにより取引金額が入力されると、当該入力された識別番号に対応する仕訳コードを前記取引情報記憶部から取得し、この取得された仕訳コードに対応付けられた仕訳パターン情報を前記仕訳パターン情報記憶部から読み出し、前記読み出された仕訳パターン情報に基づいて前記入力された取引金額を仕訳した計上仕訳データを作成し前記計上仕訳データ記憶部に記憶させる制御部、
として機能させるためのプログラム。
A computer used in a sales data processing device
A transaction information storage unit that stores a plurality of journal codes for specifying journal pattern information of a plurality of transaction items in association with a plurality of identification numbers;
A journal pattern information storage unit that stores journal pattern information of the plurality of transaction items in association with the plurality of journal codes;
Account journal data storage unit for storing account journal data,
Input portion to which the a plurality of numeric keys for inputting a plurality of identification keys and transaction amount for entering the identification number of transaction items journal object associated with the identification number, and inputs the identification number and the transaction Amount,
When an identification number of a transaction item to be journalized is input by any one of the plurality of identification keys and a transaction amount is input by the numeric keypad , a journal code corresponding to the input identification number is displayed in the transaction obtained from the information storage unit, it reads the journal pattern information corresponding to the acquired journal code from the journal pattern information storage unit, a transaction amount, which is the input on the previous SL read journal pattern information A control unit for creating journalized journal data and storing it in the journal data storage unit,
Program to function as.
JP2009166243A 2009-07-15 2009-07-15 Sales data processing apparatus and program Active JP5544769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009166243A JP5544769B2 (en) 2009-07-15 2009-07-15 Sales data processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009166243A JP5544769B2 (en) 2009-07-15 2009-07-15 Sales data processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2011022735A JP2011022735A (en) 2011-02-03
JP5544769B2 true JP5544769B2 (en) 2014-07-09

Family

ID=43632763

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009166243A Active JP5544769B2 (en) 2009-07-15 2009-07-15 Sales data processing apparatus and program

Country Status (1)

Country Link
JP (1) JP5544769B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016167256A (en) * 2015-03-06 2016-09-15 株式会社オービック Sales information apparatus, tax calculation/journalization method, and tax calculation/journalization program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06131374A (en) * 1992-10-15 1994-05-13 Nippon Micom Hanbai Kk Buying/selling control system

Also Published As

Publication number Publication date
JP2011022735A (en) 2011-02-03

Similar Documents

Publication Publication Date Title
CN105139554B (en) Sales data processing unit and electronic billing system
CN107134089A (en) Checkout system and checkout apparatus
JP5114887B2 (en) POS register
JP5526877B2 (en) Sales data processing apparatus and program
JP7468728B2 (en) Information processing device and program
JP4762933B2 (en) Merchandise sales data processing apparatus and computer program for merchandise sales data processing
JP5544769B2 (en) Sales data processing apparatus and program
JP6476761B2 (en) Order system, management device and program
US20110004542A1 (en) Article sales data processing apparatus and capital investment increase method
JP5764701B2 (en) Commerce processing apparatus and receipt details search program
JP5562913B2 (en) Merchandise sales data processing apparatus and receipt details search program
JP2013114339A (en) Commodity sales data processor and program
JP6984857B2 (en) Product data processing equipment and programs
JP2018166009A (en) Information processing apparatus and information processing program
JP2018085147A (en) Valuable medium processing device and valuable medium processing method
JP6797264B2 (en) Product data processing equipment, programs, and product data processing methods
JP7393497B2 (en) Tax exemption processing system, information processing equipment and its program
US20220076350A1 (en) Accounting apparatus, registration apparatus, and control method
US20220129879A1 (en) Payment apparatus and receipt data creation method
JP7041233B2 (en) Product data processing equipment, programs
JP6382389B2 (en) Information processing apparatus and information processing program
JP6138198B2 (en) Commerce processing apparatus and receipt details search program
JP3413552B2 (en) POS system
JP3285113B2 (en) Cash register and card transaction processing method thereof
JP2023155312A (en) Commodity data processing device and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120625

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120625

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: 20140415

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140428

R150 Certificate of patent or registration of utility model

Ref document number: 5544769

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150