JP6699771B2 - Accounting processing control method and register system - Google Patents

Accounting processing control method and register system Download PDF

Info

Publication number
JP6699771B2
JP6699771B2 JP2019033837A JP2019033837A JP6699771B2 JP 6699771 B2 JP6699771 B2 JP 6699771B2 JP 2019033837 A JP2019033837 A JP 2019033837A JP 2019033837 A JP2019033837 A JP 2019033837A JP 6699771 B2 JP6699771 B2 JP 6699771B2
Authority
JP
Japan
Prior art keywords
printer
information
terminal device
receipt
unit
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.)
Expired - Fee Related
Application number
JP2019033837A
Other languages
Japanese (ja)
Other versions
JP2019135649A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Publication of JP2019135649A publication Critical patent/JP2019135649A/en
Application granted granted Critical
Publication of JP6699771B2 publication Critical patent/JP6699771B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、会計処理機能の制御技術に関し、特に、会計処理の不正行為を効果的に防止することのできる会計処理の制御方法等に関する。   The present invention relates to control technology for accounting processing functions, and more particularly to a method for controlling accounting processing that can effectively prevent fraudulent acts in accounting processing.

小売販売業においては、多くの場合、商品販売時の会計用にレジスター(いわゆるレジ)が用いられており、会計の記録としてレシートが印刷されて顧客に渡される。このレシート用のプリンターは、レジと一体となって、又は、レジと接続されて設けられる。   In the retail sales business, in many cases, a register (so-called cash register) is used for accounting at the time of selling products, and a receipt is printed as a record of accounting and handed to the customer. The receipt printer is provided integrally with the cash register or connected to the cash register.

このような商品販売に係る会計の記録(売上の情報)は、納税のために正しく保管される必要があるが、国によっては、店主による脱法行為(不正行為)を防止するために、レジのプリンターとしていわゆるフィスカルプリンターを用いる場合がある。   The accounting records (sales information) related to such product sales need to be correctly stored for tax payment, but in some countries, in order to prevent illegal act (misconduct) by the owner, A so-called fiscal printer may be used as the printer.

かかるフィスカルプリンターは、各国の法令に従ってその機能や記録する情報が異なるが、通常、プリンター内に設けられた独立のメモリーにフィスカルデータ(レシートに出力した情報など売上の情報)を記録し、そこに記録された情報が後に徴税のために用いられる。   Such a fiscal printer has different functions and information to be recorded according to the laws of each country, but usually, the fiscal data (sales information such as information output on receipt) is recorded in an independent memory provided in the printer and stored in the memory. The recorded information will later be used for tax collection.

このようなフィスカルプリンターを用いても、レジの空打ちや上記メモリーに記録した情報の改ざんなど脱法行為が行われる虞があるため、従来、下記特許文献1−3に記載されたような提案がなされている。   Even if such a fiscal printer is used, there is a possibility that an illegal act such as blank cash register or falsification of information recorded in the memory may be performed. Therefore, conventionally, the proposals described in Patent Documents 1-3 below have been made. Has been done.

下記特許文献1では、フィスカルデータを記憶するフィスカルメモリーが実装された基板と他の部品が実装される基板を別個にして、フィスカルデータの改ざんを防止する発明について記載されている。また、下記特許文献2には、フィスカルデータの改ざんを防止するための基板収納ケースの発明について記載されている。   Patent Document 1 below describes an invention that prevents falsification of the fiscal data by separating the substrate on which the fiscal memory for storing the fiscal data is mounted from the substrate on which other components are mounted. Further, Patent Document 2 below describes an invention of a substrate storage case for preventing falsification of fiscal data.

また、下記特許文献3には、レシートを印刷するフィスカルプリンターから、フィスカル管理サーバーに印刷データあるいは印刷データに基づき生成した加工データを送信し、フィスカルデータの改ざん防止を行う発明について記載されている。   In addition, Patent Document 3 below describes an invention in which a fiscal printer that prints a receipt transmits print data or processed data generated based on the print data to a fiscal management server to prevent falsification of the fiscal data.

特開2008−46954号公報JP, 2008-46954, A 特開2011−140203号公報JP, 2011-140203, A 特開2009−269266号公報JP, 2009-269266, A

しかしながら、レジスター(レジスター端末)がテスト用として備えているテスト動作モード(テスト動作プログラム)で空トランザクション(架空取引)として会計処理を行うなど、フィスカルプリンターを備えた従来のレジスターにおいても脱法行為(不正行為)を完全には防止することはできず、さらに効果的な対応技術が望まれる。   However, even in a conventional register equipped with a fiscal printer, such as accounting processing as an empty transaction (fictitious transaction) in the test operation mode (test operation program) that the register (register terminal) has for testing, the illegal act (illegal) Cannot be completely prevented, and more effective response technology is desired.

また、レジスターに接続されるフィスカルプリンターが、レジスターから外されたり、正規でない別のプリンターに取りかえられた場合には、売上データの記録がなされなかったり、売上データの保護が十分でなく改竄されてしまう虞がある。このようにフィスカルプリンターの置き換えによっても脱法行為の可能性がある。   Also, if the fiscal printer connected to the register is removed from the register or replaced with another non-genuine printer, sales data will not be recorded or the sales data will not be protected sufficiently and will be tampered with. There is a risk that it will end up. In this way, even if the fiscal printer is replaced, there is a possibility of illegal act.

そして、上記特許文献に記載の内容では、このような課題を十分に解決できない。   Then, the contents described in the above patent documents cannot sufficiently solve such a problem.

そこで、本発明の目的は、レジの空打ちやプリンターの置き換え等による不正行為を効果的に防止することのできる会計処理の制御方法等を提供することである。   Therefore, an object of the present invention is to provide a control method of accounting processing, etc., which can effectively prevent fraudulent acts such as a blank checkout or replacement of a printer.

上記の目的を達成するために、本発明の一つの側面は、会計処理を実行するレジスター端末装置と、当該レジスター端末装置の指示に従ってレシートを出力するプリンターと、を備えるレジスターシステムにおける会計処理の制御方法が、認証情報を取得する取得工程と、前記取得された認証情報を記憶する記憶工程と、前記記憶された認証情報に基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断工程と、前記判断に基づいて、前記レジスター端末装置における会計処理の動作状態を制御する起動・停止工程と、を有する、ことである。   In order to achieve the above object, one aspect of the present invention is a control of accounting processing in a register system including a register terminal device that executes an accounting process and a printer that outputs a receipt according to an instruction of the register terminal device. A method includes an acquisition step of acquiring authentication information, a storage step of storing the acquired authentication information, and a determination step of determining whether or not to execute the accounting process in the register terminal device based on the stored authentication information. And a start/stop step of controlling the operating state of the accounting process in the register terminal device based on the determination.

上記の目的を達成するために、本発明の別の側面は、商品販売時に会計処理を実行しレシートをプリンターから出力させるレジスター端末装置における会計処理の制御方法が、当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶工程と、前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断工程と、前記判断の結果に基づいて、前記会計処理の動作状態を制御する起動・停止工程と、を有する、ことである。   In order to achieve the above object, another aspect of the present invention is a method of controlling accounting processing in a register terminal device which executes accounting processing at the time of selling products and outputs receipts from a printer. A storing step of storing the matching determination information, a determining step of determining the matching between the register terminal device and the printer based on the stored matching determination information, and a check process of the accounting process based on the result of the determination. A start/stop process for controlling the operating state.

更に、上記発明において、一つの好ましい態様は、更に、前記プリンターから情報を取得する取得工程を有し、当該取得工程において、前記プリンターから当該プリンターの個体識別情報を取得し、前記判断工程において、当該取得された個体識別情報が前記記憶された前記整合判断情報に含まれる個体識別情報と一致していれば整合性ありと判断し、一致していなければ不整合と判断し、前記起動・停止工程において、前記判断により整合性ありと判断した場合には、前記会計処理を動作可能状態とし、前記判断により不整合と判断された場合には、前記会計処理を停止状態とする、ことを特徴とする。   Furthermore, in the above invention, one preferable aspect further has an acquisition step of acquiring information from the printer, in the acquisition step, acquires individual identification information of the printer from the printer, in the determination step, If the acquired individual identification information matches the individual identification information included in the stored matching determination information, it is determined that there is consistency, and if they do not match, it is determined that there is inconsistency, and the start/stop In the step, when the judgment determines that there is consistency, the accounting process is set to an operable state, and when the judgment is judged to be inconsistent, the accounting process is stopped. And

更に、上記発明において、一つの好ましい態様は、前記会計処理の開始前に、前記個体識別情報を取得し、前記個体識別情報に基づいた判断を行う、ことを特徴とする。   Further, in the above invention, one preferable aspect is characterized in that the individual identification information is acquired and a judgment is made based on the individual identification information before the start of the accounting process.

また、上記発明において、一つの好ましい態様は、更に、前記プリンターから情報を取得する取得工程を有し、前記取得工程において、前記プリンターが記憶するレシート番号範囲情報を取得し、前記判断工程において、前記記憶された前記整合判断情報に含まれるレシート番号範囲情報が示すレシート番号範囲内でレシート番号を決定し、当該決定したレシート番号が前記取得されたレシート番号範囲情報が示すレシート番号範囲内であれば整合性ありと判断し、当該レシート番号範囲内でなければ不整合と判断し、前記起動・停止工程において、前記判断により整合性ありと判断された場合には、前記会計処理を動作可能状態とし、前記判断により不整合と判断された場合には、前記会計処理を停止状態とする、ことを特徴とする。   Further, in the above invention, one preferable aspect further has an acquisition step of acquiring information from the printer, in the acquisition step, acquires receipt number range information stored in the printer, and in the determination step, The receipt number is determined within the receipt number range indicated by the receipt number range information included in the stored matching determination information, and the determined receipt number may be within the receipt number range indicated by the acquired receipt number range information. If it is within the receipt number range, it is judged to be inconsistent, and if it is judged that there is consistency in the start/stop process, the accounting process can be performed. In the case where it is determined that there is inconsistency in the determination, the accounting process is stopped.

更に、上記発明において、一つの好ましい態様は、前記レシートの出力の度に、当該レシートに係る前記会計処理の前に、前記レシート番号範囲情報を取得し、前記レシート番号範囲情報に基づいた判断を行う、ことを特徴とする。   Further, in the above invention, in one preferable aspect, each time the receipt is output, the receipt number range information is acquired before the accounting process related to the receipt, and the determination based on the receipt number range information is performed. The feature is to do.

更にまた、上記発明において、一つの好ましい態様は、前記取得工程において、前記会計処理の開始前に、前記記憶されるレシート番号範囲情報を前記プリンターに記憶させる、ことを特徴とする。   Furthermore, in the above invention, in a preferred aspect, the stored receipt number range information is stored in the printer before the start of the accounting process in the acquisition step.

更にまた、上記発明において、一つの好ましい態様は、更に、前記プリンターから情報を取得する取得工程を有し、前記起動・停止工程において、前記取得工程で前記プリンターから情報を取得できない場合には、前記会計処理を停止状態とする、ことを特徴とする。   Furthermore, in the above invention, one preferable aspect further has an acquisition step of acquiring information from the printer, and in the start/stop step, when information cannot be acquired from the printer in the acquisition step, It is characterized in that the accounting process is suspended.

更に、上記発明において、一つの好ましい態様は、前記取得工程において、前記会計処理の開始前に、当該レジスター端末装置と通信可能に接続されるフィスカルデータを管理するサーバーから、前記整合判断情報を取得し、前記記憶工程において、当該情報を記憶する、ことを特徴とする。   Further, in the above invention, in a preferred aspect, in the acquisition step, the consistency determination information is acquired from a server that manages the fiscal data communicatively connected to the register terminal device before the start of the accounting process. However, in the storing step, the information is stored.

上記の目的を達成するために、本発明の更に別の側面は、商品販売時に会計処理を実行するレジスター端末装置と、当該レジスター端末装置の指示に従ってレシートを出力するプリンターを有するレジスターシステムにおいて、前記レジスター端末装置は、前記会計処理を実行し、当該会計処理に係る前記レシートを前記プリンターから出力させる会計処理部と、当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶部と、前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断部と、前記判断の結果に基づいて、前記会計処理部の動作状態を制御する起動・停止部と、を備え、前記プリンターは、個体識別情報を有し、前記レシートの印刷および前記会計処理に係るフィスカルデータの記憶を指示するフィスカル制御部を備える、ことである。   In order to achieve the above object, still another aspect of the present invention is a register system having a register terminal device for performing accounting processing at the time of selling a product and a printer for outputting a receipt according to an instruction of the register terminal device, The register terminal device executes the accounting process and outputs the receipt related to the accounting process from the printer, a storage unit that stores matching determination information of the register terminal device and the printer, and the storage. A determination unit that determines the consistency between the register terminal device and the printer based on the matching determination information, and a start/stop unit that controls the operating state of the accounting processing unit based on the result of the determination; The printer includes a fiscal control unit that has individual identification information and that instructs printing of the receipt and storage of fiscal data relating to the accounting process.

上記の目的を達成するために、本発明の更に別の側面は、フィスカルデータを管理するサーバー及び会計処理を実行するレジスター端末装置と通信可能であり、前記会計処理に係るレシートを出力するプリンターにおける会計処理の制御方法が、前記サーバーから送信される認証情報を取得する取得工程と、前記取得された認証情報を記憶する記憶工程と、前記記憶された認証情報に基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断工程と、前記判断に基づいて、前記レジスター端末装置における会計処理の動作状態を制御する起動・停止工程と、を有する、ことである。   In order to achieve the above-mentioned object, another aspect of the present invention is a printer capable of communicating with a server that manages fiscal data and a register terminal device that executes accounting processing, and a printer that outputs a receipt relating to the accounting processing. In the register terminal device, the accounting method control method includes an acquisition step of acquiring the authentication information transmitted from the server, a storage step of storing the acquired authentication information, and a storage step based on the stored authentication information. And a start/stop step of controlling the operating state of the accounting process in the register terminal device based on the determination.

更に、上記発明において、一つの好ましい態様は、前記認証情報は起動情報を含み、前記判断工程において、予め定められたルールに基づいて起動情報を生成し、当該起動情報が前記認証情報に含まれる起動情報と一致した場合に、前記起動情報を認証する、ことを特徴とする。   Furthermore, in the above invention, in one preferable aspect, the authentication information includes activation information, and in the determination step, activation information is generated based on a predetermined rule, and the activation information is included in the authentication information. It is characterized in that the start information is authenticated when it matches the start information.

更に、上記発明において、一つの好ましい態様は、前記起動情報は、当該プリンターが設けられる店舗の営業日毎に前記サーバーから送信される、ことを特徴とする。   Further, in the above invention, in a preferred aspect, the activation information is transmitted from the server every business day of a store in which the printer is installed.

更に、上記発明において、一つの好ましい態様は、前記認証情報は停止情報を含み、前記判断工程において、当該停止情報が取得された際に前記会計処理の実行を停止すると判断する、ことを特徴とする。   Further, in the above invention, in one preferable aspect, the authentication information includes suspension information, and it is determined in the determination step that the execution of the accounting process is suspended when the suspension information is acquired. To do.

更に、上記発明において、一つの好ましい態様は、前記認証情報は整合情報を含み、前記判断工程において、当該整合情報に基づいて前記レジスター端末装置と当該プリンターの整合性が認証されれば前記会計処理の実行が可能であると判断する、ことを特徴とする。   Further, in the above invention, in one preferable aspect, the authentication information includes matching information, and in the determining step, if the consistency between the register terminal device and the printer is authenticated based on the matching information, the accounting process is performed. Is determined to be possible.

更に、上記発明において、一つの好ましい態様は、前記整合情報はプリンターの識別情報を含み、前記判断工程において、当該識別情報が当該プリンターの識別情報と一致した場合、前記会計処理の実行が可能であると判断する、ことを特徴とする。   Further, in the above invention, in one preferable aspect, the matching information includes printer identification information, and in the determination step, when the identification information matches the printer identification information, the accounting process can be executed. It is characterized by determining that there is.

更に、上記発明において、一つの好ましい態様は、前記整合情報は前記レシートの番号の範囲を示す情報を含み、前記判断工程において、当該レシートの番号の範囲を示す情報及び前記レシートに付されるレシート番号に基づいて、前記会計処理の実行可否を判断する、ことを特徴とする。   Further, in the above invention, in one preferable aspect, the alignment information includes information indicating a range of numbers of the receipts, and in the determining step, information indicating a range of numbers of the receipts and a receipt attached to the receipts. Whether or not the accounting process can be executed is determined based on the number.

更に、上記発明において、一つの好ましい態様は、更に、前記レシートが出力される際に、当該レシートに係るフィスカルデータを記憶する工程を有する、ことを特徴とする。   Furthermore, in the above invention, one preferable aspect is characterized by further including a step of storing the fiscal data relating to the receipt when the receipt is output.

更に、上記発明において、一つの好ましい態様は、前記取得工程において、前記会計処理の実行が停止される際に、前記記憶されたフィスカルデータを前記サーバーへ送信する、ことを特徴とする。   Further, in the above invention, in a preferable aspect, the stored fiscal data is transmitted to the server when the execution of the accounting process is stopped in the acquisition step.

上記の目的を達成するために、本発明の更に別の側面は、会計処理を実行するレジスター端末装置と、前記会計処理に係るレシートを出力するプリンターを有するレジスターシステムにおいて、前記プリンターは、フィスカルデータを管理するサーバーから送信される認証情報を取得する取得部と、前記取得された認証情報を記憶する記憶部と、前記記憶された認証情報に基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断部と、前記判断に基づいて、前記レジスター端末装置における会計処理の動作状態を制御する起動・停止部と、を備え、前記レジスター端末装置は、前記会計処理を行う会計処理部と、前記会計処理部の起動・停止を制御する動作制御部と、を備える、ことである。   In order to achieve the above object, still another aspect of the present invention is a register system having a register terminal device for performing accounting processing and a printer for outputting a receipt relating to the accounting processing, wherein the printer is fiscal data. An acquisition unit that acquires the authentication information transmitted from the server that manages the authentication information, a storage unit that stores the acquired authentication information, and whether the accounting process can be performed in the register terminal device based on the stored authentication information. And a start/stop unit that controls the operating state of the accounting process in the register terminal device based on the determination, and the register terminal device is an accounting processing unit that performs the accounting process. And an operation control unit that controls the start/stop of the accounting processing unit.

本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。   Further objects and features of the present invention will be apparent from the embodiments of the invention described below.

本発明を適用したレジスター端末装置を含むレジスターシステム及び徴税システムの第1の実施の形態例に係る機能構成図である。It is a functional block diagram which concerns on the 1st Embodiment of the register system and tax collection system containing the register terminal device to which this invention is applied. レジスター端末装置3の起動から停止までの処理手順を例示したフローチャートである。It is a flow chart which illustrated the processing procedure from the start of register terminal device 3 to stop. 本発明を適用したプリンターを含むレジスターシステム及び徴税システムの第2の実施の形態例に係る機能構成図である。It is a functional block diagram which concerns on the 2nd Embodiment of the register system and the tax collection system containing the printer to which this invention is applied. 会計処理機能の起動から停止までの処理手順を例示したフローチャートである。It is a flow chart which illustrated the processing procedure from the start of an accounting processing function to stop.

以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。   Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar components will be described with the same reference numerals or reference symbols.

(第1の実施形態)
図1は、本発明を適用したレジスター端末装置を含むレジスターシステム及び徴税システムの第1の実施の形態例に係る機能構成図である。以下、本発明の第1の実施の形態例について説明する。
(First embodiment)
FIG. 1 is a functional configuration diagram according to a first embodiment of a register system and a tax collection system including a register terminal device to which the present invention is applied. The first embodiment of the present invention will be described below.

図1に示すレジスター端末装置3(レジスター)が本発明を適用したレジスター端末装置であり、当該レジスター端末装置3は、プリンター4との整合性を、プリンター4の個体識別情報及び発行されるレシート番号を用いてチェックし、不整合と判断された際には、レジスター端末装置3の会計処理機能を停止状態とする。これにより、プリンター4の置き換え等による不正行為を効果的に防止する。   The register terminal device 3 (register) shown in FIG. 1 is a register terminal device to which the present invention is applied, and the register terminal device 3 shows the consistency with the printer 4, individual identification information of the printer 4, and the receipt number issued. When it is determined that there is a mismatch, the accounting processing function of the register terminal device 3 is stopped. This effectively prevents fraudulent acts such as replacement of the printer 4.

図1に示すように、本実施の形態例では、政府サーバー1とネットワーク5で通信可能に接続される複数の店舗の各レジスター端末装置3及び各プリンター4によって徴税システム200が構成される。また、各店舗においては、レジスター端末装置3と通信可能に接続されるプリンター4によってレジスターシステム100が構成される。また、各レジスター端末装置3とネットワーク5を介して通信可能に接続されるアプリサーバー2は、各レジスター端末装置3にレジ用のアプリケーションソフトウェアを配信する。ネットワーク5としては、インターネットや電話回線などを用いることができる。また、レジスター端末装置3とプリンター4は、通信ケーブルや無線で通信が行われる。   As shown in FIG. 1, in this embodiment, a tax collection system 200 is configured by each register terminal device 3 and each printer 4 of a plurality of stores communicatively connected to the government server 1 via a network 5. In each store, the register system 100 is configured by the printer 4 communicably connected to the register terminal device 3. The application server 2 communicatively connected to each register terminal device 3 via the network 5 distributes cash register application software to each register terminal device 3. As the network 5, the internet or a telephone line can be used. Further, the register terminal device 3 and the printer 4 communicate with each other via a communication cable or wirelessly.

政府サーバー1は、政府の国税局など徴税を管轄する部署によって管理されるサーバーシステム(コンピューターシステム)であり、フィスカルデータ(販売データ)を管理する。当該政府サーバー1は、予め定められた者のみが操作可能であり、そこに記録されるデータの改ざん、漏洩を防止する措置が施される。また、当該サーバーは、図示していないが、CPU、RAM、ROM、HDD、表示装置、操作装置、通信インターフェース等のハードウェアで構成される。   The government server 1 is a server system (computer system) managed by a department having jurisdiction over tax collection, such as the National Tax Bureau of the government, and manages fiscal data (sales data). The government server 1 can be operated only by a predetermined person, and measures for preventing falsification and leakage of data recorded therein are taken. Although not shown, the server is configured with hardware such as a CPU, RAM, ROM, HDD, display device, operating device, and communication interface.

政府サーバー1の機能構成としては、図1に示すように、情報発行部11、データ収集部12、及び売上データ記録部13を備える。情報発行部11は、各レジスター端末装置3を起動・停止させるためのキー情報の発行、各レジスター端末装置3で発行するレシート番号の生成等を行う部分である。次に、データ収集部12は、各店舗のプリンター4に記録される売上データを収集する部分である。また、売上データ記録部13は、データ収集部12によって収集された売上データを記録する部分である。なお、情報発行部11及びデータ収集部12は、それらが行う処理を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成され、データ記録部13は、HDDなどのデータ記憶装置によって構成される。   As shown in FIG. 1, the functional configuration of the government server 1 includes an information issuing unit 11, a data collecting unit 12, and a sales data recording unit 13. The information issuing unit 11 is a part that issues key information for starting and stopping each register terminal device 3, and generates a receipt number issued by each register terminal device 3. Next, the data collection unit 12 is a unit that collects sales data recorded in the printer 4 of each store. The sales data recording unit 13 is a unit that records the sales data collected by the data collecting unit 12. The information issuing unit 11 and the data collecting unit 12 are configured by a program that describes the processes performed by them, a CPU that executes the processes according to the programs, a RAM, and the like, and the data recording unit 13 is a data storage device such as an HDD. Composed.

アプリサーバー2は、上述の通り、各レジスター端末装置3にレジスター用アプリケーションプログラム(以下、レジスタープログラムと称す)を配信するサーバーシステム(コンピューターシステム)であり、例えば、スマートフォンやタブレット端末用のアプリケーションソフトウェアを販売、配信するプロバイダーによって運営されるサーバーである。   As described above, the application server 2 is a server system (computer system) that distributes a register application program (hereinafter referred to as a register program) to each register terminal device 3, for example, application software for smartphones and tablet terminals. It is a server operated by a provider that sells and distributes.

当該レジスタープログラムは、各店舗における商品販売時に会計処理を行うためのアプリケーションプログラムであり、政府に公認されたものである。なお、本実施形態では、当該レジスタープログラムの配信を政府から民間に委託しこのような構成であるが、上述した政府サーバー1がアプリサーバー2の機能を兼ねる構成としてもよい。   The register program is an application program for accounting processing at the time of selling products at each store, and has been approved by the government. In the present embodiment, the government program outsources the distribution of the register program to the private sector, but the government server 1 described above may also function as the application server 2.

アプリサーバー2は、図示していないが、CPU、RAM、ROM、HDD、表示装置、操作装置、通信インターフェース等のハードウェアで構成され、図1に示すように、機能構成として、アプリ配信部21及びプログラム格納部22を備える。アプリ配信部21は、上述の配信処理を担う部分であり、処理内容を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。プログラム格納部22は、レジスタープログラムのほか、アプリサーバー2が配信する各プログラムを格納し、HDD等で構成される。   Although not shown, the application server 2 is composed of hardware such as a CPU, a RAM, a ROM, a HDD, a display device, an operation device, and a communication interface. As shown in FIG. And a program storage unit 22. The application distribution unit 21 is a part responsible for the above-described distribution processing, and is configured by a program describing the processing content, a CPU that executes processing according to the program, a RAM, and the like. The program storage unit 22 stores each program distributed by the application server 2 in addition to the register program, and is configured by an HDD or the like.

次に、レジスター端末装置3は、上述の通り、本発明を適用したレジスター端末であり、スマートフォン、タブレット端末装置、モバイルPCなどである。当該レジスター端末装置3は、いわゆるレジスターの機能を担う装置であり、各店舗に設けられ、また、1店舗に複数台設けられてもよい。レジスター端末装置3は、政府サーバー1及びプリンター4と通信可能に接続でき、商品販売時には、会計処理を行ってプリンター4にレシートの出力を行わせる。   Next, as described above, the register terminal device 3 is a register terminal to which the present invention is applied, and is a smartphone, a tablet terminal device, a mobile PC, or the like. The register terminal device 3 is a device having a so-called register function, and is provided in each store, or a plurality of units may be provided in one store. The register terminal device 3 can be connected to the government server 1 and the printer 4 so as to be able to communicate with each other, and when the product is sold, performs an accounting process and causes the printer 4 to output a receipt.

図示していないが、レジスター端末装置3は、ハードウェアとしては、CPU、RAM、ROM、HDD、表示装置、操作装置(入力装置)、通信インターフェース、バーコードリーダー、カードリーダー等を備え、図1に示すような機能構成を備える。   Although not shown, the register terminal device 3 includes, as hardware, a CPU, a RAM, a ROM, a HDD, a display device, an operating device (input device), a communication interface, a bar code reader, a card reader, and the like. It has a functional configuration as shown in.

レジスター制御部31は、上述したレジスタープログラムに従って動作する、レジスターの機能を担う部分であり、商品販売時の会計処理、レシート出力処理等を行う。また、図1に示されるように、レジスター制御部31は、これらのレジスター機能を担う会計処理部34と起動・停止制御部33を備える。   The register control unit 31 is a unit that operates in accordance with the above-mentioned register program and has a function of a register, and performs accounting processing at the time of selling products, receipt output processing, and the like. In addition, as shown in FIG. 1, the register control unit 31 includes an accounting processing unit 34 having these register functions and a start/stop control unit 33.

起動・停止制御部33は、本レジスター端末装置3の特徴的な部分であり、その具体的な処理内容は後述するが、政府サーバー1から受信するキー情報、レシート番号情報、及び、プリンター4の個体識別情報に基づいて、会計処理部34の動作の起動・停止を制御する。言い換えれば、会計処理部34による処理の可否を制御する。また、起動・停止制御部33は、会計処理部34の動作を停止する際に、プリンター4に記憶されている売上データを取得し、政府サーバー1へ送信する処理を実行する。   The start/stop control unit 33 is a characteristic part of the register terminal device 3, and the specific processing content thereof will be described later, but the key information, the receipt number information received from the government server 1, and the printer 4 are described. The start/stop of the operation of the accounting processing unit 34 is controlled based on the individual identification information. In other words, whether or not the accounting processing unit 34 can perform processing is controlled. Further, the start/stop control unit 33, when stopping the operation of the accounting processing unit 34, executes a process of acquiring sales data stored in the printer 4 and transmitting it to the government server 1.

また、起動・停止制御部33は、図1に示すように、記憶部331、取得部332、判断部333、及び起動・停止部334を備える。取得部332は、政府サーバー1から送信されるキー情報、レシート番号情報、及び、プリンター4の個体識別情報等を取得する部分である。記憶部331は、取得部332で取得された情報等を記憶する部分である。判断部333は、政府サーバー1から送信されるキー情報に基づいて、会計処理部34の動作状態を起動状態とするか又は停止状態にするかを判断する。また、判断部333は、上述したレシート番号情報及びプリンター4の個体識別情報に基づいて、レジスター端末装置3とプリンター4の整合性を判断し、その結果に基づいて、会計処理部34の動作状態を起動状態とするか又は停止状態にするかを判断する。起動・停止部334は、判断部333の判断に従って会計処理部34の動作状態を制御する部分である。   Further, as shown in FIG. 1, the start/stop control unit 33 includes a storage unit 331, an acquisition unit 332, a determination unit 333, and a start/stop unit 334. The acquisition unit 332 is a unit that acquires key information, receipt number information, individual identification information of the printer 4, and the like transmitted from the government server 1. The storage unit 331 is a unit that stores the information and the like acquired by the acquisition unit 332. The determination unit 333 determines whether to set the operating state of the transaction processing unit 34 to the activated state or the stopped state, based on the key information transmitted from the government server 1. Further, the determination unit 333 determines the consistency between the register terminal device 3 and the printer 4 based on the receipt number information and the individual identification information of the printer 4 described above, and based on the result, the operating state of the accounting processing unit 34. It is determined whether to set the start state or the stop state. The start/stop unit 334 is a unit that controls the operating state of the transaction processing unit 34 according to the determination of the determination unit 333.

会計処理部34は、商品販売時の会計処理等を行う。   The accounting processing unit 34 performs accounting processing at the time of selling products.

なお、レジスター制御部31は、アプリサーバー2からダウンロードしたレジスタープログラム、当該プログラムに従って処理を実行するCPU、RAM、不揮発性メモリー等で構成される。   The register control unit 31 includes a register program downloaded from the application server 2, a CPU that executes processing according to the program, a RAM, a nonvolatile memory, and the like.

また、プリンタードライバー実行部32は、プリンター4用のドライバー実行部であり、レジスター制御部31からレシートの出力指示が出た際に、レシートの印刷データをプリンター4用の形式(コマンド)で生成してプリンター4用へ送信する。なお、プリンタードライバー実行部32は、ドライバープログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。   The printer driver execution unit 32 is a driver execution unit for the printer 4, and when the register control unit 31 issues a receipt output instruction, generates print data of the receipt in a format (command) for the printer 4. And send it to the printer 4. The printer driver execution unit 32 includes a driver program, a CPU that executes processing according to the program, a RAM, and the like.

次に、プリンター4は、各レジスター端末装置3に対して設けられるレシート印刷用のプリンターであり、例えば、熱転写方式やインクジェット方式で印刷を行う。また、いわゆるフィスカルプリンターであるので、図1に示すように、一般的なプリンターとしての機能を担う印刷制御部41及び印刷実行部42のほかに、フィスカル制御部40、メモリー制御部43及びフィスカルメモリー44を備える。   Next, the printer 4 is a printer for receipt printing provided for each register terminal device 3, and performs printing by, for example, a thermal transfer system or an inkjet system. Further, since it is a so-called fiscal printer, as shown in FIG. 1, in addition to the print control unit 41 and the print execution unit 42 that function as a general printer, the fiscal control unit 40, the memory control unit 43, and the fiscal memory. 44 are provided.

フィスカル制御部40は、プリンター4のホスト装置であるレジスター端末装置3からの問い合わせに対して応答する処理、レシートの印刷データを受信した際にレシート印刷及びフィスカルデータの記憶を指示する部分である。   The fiscal control unit 40 is a unit for instructing the process of responding to an inquiry from the register terminal device 3 which is the host device of the printer 4, and the receipt printing and the storage of the fiscal data when the receipt print data is received.

印刷制御部41は、プリンターのいわゆるコントローラーであり、レジスター端末装置3から送信される印刷データに基づいて印刷実行部42にレシートの印刷を行わせる。図示していないが、印刷制御部41は、CPU、RAM、ROM、ASIC等で構成される。   The print control unit 41 is a so-called controller of the printer, and causes the print performing unit 42 to print the receipt based on the print data transmitted from the register terminal device 3. Although not shown, the print control unit 41 includes a CPU, a RAM, a ROM, an ASIC, and the like.

印刷実行部42は、レシートの印刷を実行する部分であり、印刷方式がインクジェット方式である場合には、インクを噴射するノズルを備えたヘッド、用紙の搬送装置等で構成される。   The print execution unit 42 is a unit that executes printing of receipts, and if the printing method is an inkjet method, it is configured with a head including nozzles that eject ink, a sheet conveying device, and the like.

メモリー制御部43は、フィスカルメモリー44へのデータの読み書きを専門に行う部分であり、レシートの印刷データを受ける度に、そのレシートに係る売上情報(フィスカルデータ)を暗号化してフィスカルメモリー44へ書き込む処理を行う。また、レジスター端末装置3から売上情報の取得指示があった場合には、フィスカルメモリー44に記憶されているフィスカルデータを読み出してレジスター端末装置3へ送信する処理を実行する。なお、メモリー制御部43は、CPU、RAM、ROM、ASIC等で構成される。   The memory control unit 43 is a unit that specializes in reading and writing data to and from the fiscal memory 44, and every time the receipt print data is received, the sales information (fiscal data) related to the receipt is encrypted and written to the fiscal memory 44. Perform processing. Further, when there is a sales information acquisition instruction from the register terminal device 3, a process of reading the fiscal data stored in the fiscal memory 44 and transmitting the fiscal data to the register terminal device 3 is executed. The memory control unit 43 is composed of a CPU, RAM, ROM, ASIC and the like.

フィスカルメモリー44は、上記フィスカルデータを記憶するメモリーであり、NVRAMなどの不揮発性メモリーで構成される。   The fiscal memory 44 is a memory for storing the above-mentioned fiscal data, and is composed of a nonvolatile memory such as NVRAM.

なお、プリンターIDは、プリンター4の図示していない記憶部に保存されている。   The printer ID is stored in a storage unit (not shown) of the printer 4.

なお、メモリー制御部43及びフィスカルメモリー44には、フィスカルデータの改ざんや漏えいが容易に行われないようにするためのハードウェア及びソフトウェアの従前の措置が施される。   It should be noted that the memory control unit 43 and the fiscal memory 44 are provided with conventional measures of hardware and software for preventing falsification or leakage of fiscal data from being easily performed.

なお、上記フィスカルデータ、すなわち、レシート出力毎に記録されるそのレシートの商品販売に係る売上情報は、当該徴税システム200が設けられる国の法令に則った適切な情報項目と形式で表現されるようにする。例えば、フィスカルデータは、レシートと同一内容のいわゆる電子ジャーナル情報、レシートの所定の情報、所定の情報の付加を施した後の売上情報と、することができる。   In addition, the above-mentioned fiscal data, that is, the sales information related to the sales of the receipt, which is recorded for each receipt output, is expressed in an appropriate information item and format in accordance with the law of the country where the tax collection system 200 is installed. To For example, the fiscal data can be so-called electronic journal information having the same content as the receipt, predetermined information on the receipt, and sales information after the addition of the predetermined information.

また、プリンター4から出力されるレシートは、各顧客に渡された後、所定の方法で政府が回収できることが望ましい。例えば、宝くじ付きのレシートとして出力し、当選者のレシートを回収する方法がある。回収されたレシートは、その情報が政府サーバー1に吸い上げられた情報(売上データ記録部13の情報)と照合され、脱法行為の確認に用いられる。なお、プリンター4は、テスト動作モードでは、宝くじ付きレシートは出力不能とすることができる。   Further, it is desirable that the government can collect the receipt output from the printer 4 by a predetermined method after passing it to each customer. For example, there is a method of outputting a receipt with a lottery ticket and collecting the receipt of the winner. The collected receipt is collated with the information collected by the government server 1 (information in the sales data recording unit 13) and used for confirmation of the illegal act. In the test operation mode, the printer 4 can not output the lottery receipt.

以上説明したような構成を備える本徴税システム200では、各店舗におけるレジスターの処理が以下に説明するような内容で行われる。事前作業として、各店舗では、商品販売を行うに当たって、まず、上述したレジスタープログラムをアプリサーバー2からダウンロードして、各レジスター端末装置3にインストールしておく。当該ダウンロード操作は、スマートフォンにおける一般的なアプリのダウンロードと同様の手順で行うことができる。   In the present tax collection system 200 having the above-described configuration, the processing of the register in each store is performed as described below. As a preliminary work, at each store, at the time of selling a product, first, the above-mentioned register program is downloaded from the application server 2 and installed in each register terminal device 3. The download operation can be performed in the same procedure as a general application download on a smartphone.

なお、レジスタープログラムは比較的短い間隔でアップデートされ、当該インストール操作を頻繁に行うようにすることが、脱法行為を防ぐ意味で効果的である。   The register program is updated at relatively short intervals, and it is effective to frequently perform the installation operation in order to prevent illegal activities.

ダウンロード後は、レジスター端末装置3から政府サーバー1へレジスター制御部31を用いてアクセスし、登録手続を行う。当該アクセスを受けた政府サーバー1では、情報発行部11が、アクセス元のレジスター端末装置3の識別情報(レジID)を決定し、そのレジIDをレジスター端末装置3へ返送する。レジスター制御部31では、取得部332がこのレジIDを受信して記憶部331に記憶する。一方、政府サーバー1では、当該レジスター端末装置3の情報(IPアドレス等)がレジIDと共に記録される。   After the download, the register terminal device 3 accesses the government server 1 using the register control unit 31 to perform the registration procedure. In the government server 1 that has received the access, the information issuing unit 11 determines the identification information (cash register ID) of the register terminal device 3 that is the access source, and returns the register ID to the register terminal device 3. In the register control unit 31, the acquisition unit 332 receives this cashier ID and stores it in the storage unit 331. On the other hand, in the government server 1, the information (IP address etc.) of the register terminal device 3 is recorded together with the cashier ID.

その後、取得部332は、プリンター4にプリンター4の個体識別情報(プリンターID)を問い合わせ、フィスカル制御部40から返信されるプリンターIDを記憶部331に記憶すると共に、政府サーバー1へ当該プリンターIDを本レジスター端末装置3のレジIDと共に送信する。政府サーバー1では、送信されたプリンターIDが上記記憶された当該レジスター端末装置3の情報に対応して記憶される。   After that, the acquisition unit 332 inquires of the printer 4 about the individual identification information (printer ID) of the printer 4, stores the printer ID returned from the fiscal control unit 40 in the storage unit 331, and stores the printer ID in the government server 1. It is transmitted together with the cashier ID of this register terminal device 3. In the government server 1, the transmitted printer ID is stored in correspondence with the stored information of the register terminal device 3.

以上のようにして、登録手続きが完了すると、そのレジスター端末装置3を用いた商品販売が可能となる。以下、登録手続後の処理について説明する。図2は、レジスター端末装置3の起動から停止までの処理手順を例示したフローチャートである。   When the registration procedure is completed as described above, it becomes possible to sell products using the register terminal device 3. The process after the registration procedure will be described below. FIG. 2 is a flowchart exemplifying the processing procedure from the activation to the termination of the register terminal device 3.

本実施形態のレジスター制御部31の会計処理部34は、不正行為等がなければ、その日の開店時に政府サーバー1から送信される起動キーによって起動し、その日の閉店時に政府サーバー1から送信される停止キーによって停止するように設計される。   If there is no misconduct, the accounting processing unit 34 of the register control unit 31 of this embodiment is activated by the activation key transmitted from the government server 1 when the store is opened on that day, and is transmitted from the government server 1 when the store is closed on that day. Designed to be stopped by the stop key.

このレジスター端末装置3が設けられる店舗の開店時間前に、政府サーバー1において、そのレジスター端末装置3用の起動キー等が生成されて、そのレジスター端末装置3へ送信される(図2のステップS1)。   Before the opening time of the store in which the register terminal device 3 is installed, the government server 1 generates an activation key or the like for the register terminal device 3 and transmits it to the register terminal device 3 (step S1 in FIG. 2). ).

この起動キーの生成処理のトリガーは、レジスター端末装置3毎に予め定められた時刻を記録しておき、その時刻になったことをトリガーとする。また、別法としては、店舗の店員がレジスター端末装置31を操作し、レジスター制御部31(起動・停止制御部33)を用いて起動キーを要求し、政府サーバー1がその要求を受けたことをトリガーとする。   The trigger of this activation key generation processing is to record a predetermined time for each register terminal device 3 and use that time as a trigger. Alternatively, the store clerk operates the register terminal device 31 and requests a start key using the register control unit 31 (start/stop control unit 33), and the government server 1 receives the request. Is the trigger.

また、起動キーの生成・送信処理は、情報発行部11によって行われる。起動キーは、レジスター端末装置3毎に異なり、また、同じレジスター端末装置3に対しても発行日毎に異なるように生成される。例えば、その日の日付とレジIDを所定の方法で加工して得られる情報を起動キーとする。   The information issuing unit 11 performs the activation key generation/transmission processing. The activation key is generated differently for each register terminal device 3 and also for the same register terminal device 3 differently for each issue date. For example, the information obtained by processing the date of the day and the cashier ID by a predetermined method is used as the activation key.

また、同じタイミングで、情報発行部11は、レジスター端末装置3とプリンター4の整合性、すなわち、レジスター端末装置3とプリンター4のハードウェア個体としての組み合わせが正しいか否か、を判断するための整合判断情報を生成する。なお、上述した登録手続きの際には当該ハードウェアの組み合わせが正しいものとし、また、この整合判断情報では、プリンター4が正しいものであるか否かが判断される。   Further, at the same timing, the information issuing unit 11 determines whether the register terminal device 3 and the printer 4 are consistent, that is, whether the combination of the register terminal device 3 and the printer 4 as a hardware individual is correct. Generates matching determination information. In addition, at the time of the above-described registration procedure, it is determined that the combination of the hardware is correct, and based on this matching determination information, it is determined whether the printer 4 is correct.

情報発行部11は、当該整合判断情報として、具体的には、プリンターIDとレシート番号範囲情報を生成する。プリンターIDは、上述した登録手続きの際に記憶された情報であり、そのレジスター端末装置3の情報に対応して記憶される当該情報を抽出して生成する。   The information issuing unit 11 specifically generates a printer ID and receipt number range information as the matching determination information. The printer ID is information stored during the above-described registration procedure, and the information stored corresponding to the information of the register terminal device 3 is extracted and generated.

レシート番号範囲情報は、各レジスター端末装置3でその日に発行されるレシートに付されるレシート番号の範囲を示す情報である。レジスター端末装置3から発行されるレシートは、徴税システム200内でユニークなレシート番号が付される仕様となっており、各レジスター端末装置3において発行順に連番のレシート番号が付される。従って、情報発行部11は、各レジスター端末装置3でその日に発行されるであろうレシート枚数の予測値に応じて各レジスター端末装置3のレシート番号範囲を決定する。ここでは、一例として、レジスター端末装置3に対して00000〜00200のレシート番号範囲が決定され、「00000〜00200」のレシート番号範囲情報が生成される。   The receipt number range information is information indicating a range of receipt numbers given to receipts issued on each register terminal device 3 on that day. Receipts issued from the register terminal device 3 are designed to have unique receipt numbers within the tax collection system 200, and serial receipt numbers are given in order of issuance in each register terminal device 3. Therefore, the information issuing unit 11 determines the receipt number range of each register terminal device 3 in accordance with the predicted value of the number of receipts that will be issued by each register terminal device 3 on that day. Here, as an example, a receipt number range of 00000 to 00200 is determined for the register terminal device 3, and receipt number range information of “00000 to 00200” is generated.

このようにして生成された起動キー、プリンターID、及びレシート番号範囲情報は、情報発行部11によってレジスター端末装置3にネットワーク5を介して送信される。これらは、送信前に暗号化されるのが望ましい。   The activation key, the printer ID, and the receipt number range information thus generated are transmitted by the information issuing unit 11 to the register terminal device 3 via the network 5. These are preferably encrypted before transmission.

送信された上記起動キー等は、レジスター端末装置3の起動・停止制御部33の取得部332によって受信される(図2のステップS2)。その後、記憶部331は、取得部332が受信した起動キー、プリンターID、及びレシート番号範囲情報を記憶する(図2のステップS3)。また、取得部332は、受信したレシート番号範囲情報をプリンター4へ送信し、プリンター4のフィスカル制御部40は当該レシート番号範囲情報を記憶する。   The transmitted activation key and the like are received by the acquisition unit 332 of the activation/stop control unit 33 of the register terminal device 3 (step S2 in FIG. 2). After that, the storage unit 331 stores the activation key, the printer ID, and the receipt number range information received by the acquisition unit 332 (step S3 in FIG. 2). The acquisition unit 332 also transmits the received receipt number range information to the printer 4, and the fiscal control unit 40 of the printer 4 stores the receipt number range information.

なお、この時点では、レジスター制御部31の会計処理部34は停止しており、当該レジスター端末装置3を用いた会計処理を行うことはできない。換言すれば、レジスター端末装置3はレジスターとして機能しない。   At this point, the accounting processing unit 34 of the register control unit 31 is stopped, and the accounting processing using the register terminal device 3 cannot be performed. In other words, the register terminal device 3 does not function as a register.

次に、起動・停止制御部33は、受信した起動キーの認証処理を行う(図2のステップS4)。具体的には、起動・停止制御部33の判断部333は、登録手続時に政府サーバー1より取得した情報を元に政府サーバー1の情報発行部11と同様の方法によって起動キーを生成し、それが受信した起動キーと一致していれば、受信した起動キーを正式なものとして認証する。上述の例のように、日付とレジIDを用いた方法で生成する場合には、判断部333は、上記登録手続の際に記憶したレジIDを用いて起動キーの生成を行う。   Next, the start/stop control unit 33 performs authentication processing of the received start key (step S4 in FIG. 2). Specifically, the determination unit 333 of the start/stop control unit 33 generates an activation key by the same method as the information issuing unit 11 of the government server 1 based on the information acquired from the government server 1 during the registration procedure, If the received activation key matches the received activation key, the received activation key is authenticated as the official one. In the case of generating by the method using the date and the cashier ID as in the above example, the determination unit 333 generates the activation key by using the cashier ID stored in the registration procedure.

当該認証によって、認証されなかった場合には(図2のステップS4のNG)、不正な起動キーが受信されたと判断して、起動・停止部334は、会計処理部34を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置3はレジスターとして機能しないままとなる。   If it is not authenticated by the authentication (NG in step S4 of FIG. 2), it is determined that an unauthorized activation key has been received, and the activation/stop unit 334 does not activate the accounting processing unit 34 and continues as it is. , And ends the processing. That is, the register terminal device 3 remains not functioning as a register.

一方、不正やエラーがなく政府サーバー1から発行された起動キーが受信された場合には、受信した起動キーが認証される(図2のステップS4のOK)。   On the other hand, when the activation key issued from the government server 1 is received without any illegality or error, the received activation key is authenticated (OK in step S4 in FIG. 2).

この場合には、起動・停止制御部33は、次の認証を行う。すなわち、この時点で接続されているプリンター4との整合性をチェックする。そのために、まず、取得部332は、プリンター4にプリンターIDを問い合わせ、フィスカル制御部40から返答されるプリンターIDを取得する(図2のステップS5)。   In this case, the start/stop control unit 33 performs the next authentication. That is, the consistency with the printer 4 connected at this time is checked. Therefore, first, the acquisition unit 332 inquires of the printer 4 about the printer ID, and acquires the printer ID returned from the fiscal control unit 40 (step S5 in FIG. 2).

判断部333は、当該取得されたプリンターIDと記憶部に記憶される政府サーバー1から送信された上記プリンターIDを比較し(図2のステップS6)、一致しなければその時点で接続されているプリンター4は不正なプリンターであると判断し、すなわち認証せず(図2のステップS6のNG)、起動・停止部334は、会計処理部34を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置3はレジスターとして機能しないままとなる。かかる場合は、上述した登録手続時に接続されていた正しいプリンター4が別のプリンターに置き換えられたことが推察される。このような場合には、上述の通り、レジスター端末装置3とプリンター4の整合性が認証されない。   The determination unit 333 compares the acquired printer ID with the printer ID transmitted from the government server 1 stored in the storage unit (step S6 in FIG. 2), and if they do not match, the device is connected at that time. The printer 4 determines that it is an unauthorized printer, that is, does not perform authentication (NG in step S6 of FIG. 2), and the start/stop unit 334 does not start the accounting processing unit 34 and ends the processing as it is. That is, the register terminal device 3 remains not functioning as a register. In such a case, it is surmised that the correct printer 4 connected during the above-mentioned registration procedure was replaced with another printer. In such a case, as described above, the consistency between the register terminal device 3 and the printer 4 is not authenticated.

また、上記取得部332によるプリンターIDの取得時(S5)に、プリンター4からの応答がない場合(情報を取得できない場合)にも、判断部333は、認証せず(図2のステップS6のNG)、起動・停止部334は、会計処理部34を起動せず、そのまま、当該処理を終了する。かかる場合は、プリンター4が取り外されたことが推察される。このような場合には、フィスカルデータを記憶せずに不正に会計処理がなされる虞があるので、上述の通り、認証がなされない。   Further, even when there is no response from the printer 4 when the printer ID is acquired by the acquisition unit 332 (S5) (when information cannot be acquired), the determination unit 333 does not perform authentication (step S6 of FIG. 2). NG), the start/stop unit 334 does not start the accounting processing unit 34, and ends the processing as it is. In such a case, it is inferred that the printer 4 has been removed. In such a case, there is a possibility that the accounting process is illegally performed without storing the fiscal data, so that the authentication is not performed as described above.

一方、上記、プリンター4から取得されたプリンターIDと上記政府サーバー1から送信されたプリンターIDが一致すれば、判断部333は、正しいプリンター4が接続されたと判断し、レジスター端末装置3とプリンター4の整合性を認証する(図2のステップS6のOK)。   On the other hand, if the printer ID acquired from the printer 4 and the printer ID transmitted from the government server 1 match, the determination unit 333 determines that the correct printer 4 is connected, and the register terminal device 3 and the printer 4 are connected. The consistency of is verified (OK in step S6 of FIG. 2).

このようにして、起動キーとプリンターIDによる認証が得られれば、起動・停止部334は、会計処理部34を起動させる(図2のステップS7)。これにより、レジスター機能が動作可能となり、商品販売後の会計処理ができるようになる。従って、店舗において商品の販売が開始される。   In this way, if the authentication by the activation key and the printer ID is obtained, the activation/stop unit 334 activates the accounting processing unit 34 (step S7 in FIG. 2). As a result, the register function becomes operable and the accounting process after the sale of the product becomes possible. Therefore, the sale of the product is started at the store.

その後は、プリンター4が置き換えたり取り外されたりするような不正行為が行われなければ、その商店の閉店時に会計処理部34が停止されるまで、商品販売がなされる度に、会計処理(販売計算処理)及び販売データの記録処理が行われる。   After that, unless a fraudulent act such as replacement or removal of the printer 4 is performed, accounting processing (sales calculation is performed each time a product is sold until the accounting processing unit 34 is stopped when the store is closed. Processing) and sales data recording processing.

具体的には、まず、起動・停止制御部33は、会計処理部34の停止条件が成立したか否かをチェックする(図2のステップS8)。ここで、会計処理部34の停止条件としては、政府サーバー1(情報発行部11)から送信される停止キーを受信した、又は、所定の時刻になった、という条件を用いることができる。また、この所定の時刻には、上記起動キーを受信した時刻から所定時間後の時刻、上記起動キーに包含される時刻、又は、予め定められた閉店時刻を用いることができる。判断部333により、当該停止条件の成立が判断され、停止条件が成立していなければ(図2のステップS8のNo)、起動・停止制御部33は、商品販売がなされて顧客がレジに来た際の処理を開始する(図2のステップS9のYes)。   Specifically, first, the start/stop control unit 33 checks whether or not the stop condition of the transaction processing unit 34 is satisfied (step S8 in FIG. 2). Here, as the stop condition of the accounting processing unit 34, a condition that the stop key transmitted from the government server 1 (information issuing unit 11) is received or a predetermined time has come can be used. Further, as the predetermined time, a time after a predetermined time from the time when the activation key is received, a time included in the activation key, or a predetermined closing time can be used. The determination unit 333 determines that the stop condition is satisfied, and if the stop condition is not satisfied (No in step S8 of FIG. 2), the start/stop control unit 33 sells the product and the customer comes to the cash register. Then, the processing is started (Yes in step S9 in FIG. 2).

この時点で、起動・停止制御部33は、会計処理毎(レシート発行毎)のプリンター4との整合性チェックを行う。当該チェックには、上述したレシート番号範囲情報を用いる。具体的には、まず、判断部333が当該会計処理に対して発行するレシートのレシート番号を決定する(図2のステップS10)。上述の通り、発行するレシートには、政府サーバー1で生成されるレシート番号範囲内であって連番のレシート番号を付すので、判断部333は、そのルールに従ってレシート番号を決定する。上述の通り、一例として「00000〜00200」のレシート番号範囲情報が政府サーバー1から送られて記憶部331に記憶されている場合には、その日の最初の顧客に対する商品販売では「00001」のレシート番号が決定される。その後、順次、「00002」、「00003」、・・・というようにレシート番号が決定される。   At this point, the start/stop control unit 33 checks the consistency with the printer 4 for each accounting process (each receipt issuance). The receipt number range information described above is used for the check. Specifically, first, the determination unit 333 determines the receipt number of the receipt issued for the accounting process (step S10 in FIG. 2). As described above, since the receipts to be issued are sequentially numbered within the receipt number range generated by the government server 1, the determination unit 333 determines the receipt numbers according to the rule. As described above, as an example, when the receipt number range information of “0000 to 00200” is sent from the government server 1 and stored in the storage unit 331, the receipt of “00001” is the receipt for the first product sale to the customer on that day. The number is determined. After that, the receipt numbers are sequentially determined as "00002", "00003",....

次に、取得部332は、プリンター4に問い合わせて、フィスカル制御部40から返答されるレシート番号範囲情報を取得する(図2のステップS11)。ここで取得されるレシート番号範囲情報は、上述したステップS3においてプリンター4に記憶されたレシート番号範囲情報である。   Next, the acquisition unit 332 inquires of the printer 4 and acquires the receipt number range information returned from the fiscal control unit 40 (step S11 of FIG. 2). The receipt number range information acquired here is the receipt number range information stored in the printer 4 in step S3 described above.

次に、判断部333は、当該取得したレシート番号範囲情報が示すレシート番号範囲内に、上記決定したレシート番号が入っているか否かを判断する(図2のステップS12)。当該判断の結果、上記レシート番号範囲内に入っていない場合には(図2のステップS12のNo)、判断部333は、プリンター4が当該処理の開始時(開店時)から別のプリンターに取りかえられたと判断し、すなわち、レジスター端末装置3とプリンター4の不整合が発生したと判断し、会計処理部34の動作を停止する処理を開始する。具体的には、処理が図2のステップS16に移行する。   Next, the determination unit 333 determines whether or not the determined receipt number is included in the receipt number range indicated by the acquired receipt number range information (step S12 in FIG. 2). As a result of the determination, if the receipt number range is not within the range (No in step S12 in FIG. 2), the determination unit 333 causes the printer 4 to switch to another printer from the start of the process (when the store is opened). It is determined that the register terminal device 3 and the printer 4 are inconsistent, and the process of stopping the operation of the accounting processing unit 34 is started. Specifically, the processing shifts to step S16 of FIG.

また、上記取得部332によるプリンター4からのレシート番号範囲情報の取得(S11)において、プリンター4からの応答がない場合(情報を取得できない場合)にも、判断部333は、上記レシート番号範囲内に入っていないと判断し(図2のステップS12のNo)、処理が図2のステップS16に移行する。かかる場合は、当該処理後、プリンター4が取り外されたことが推察される。このような場合には、フィスカルデータを記憶せずに不正に会計処理がなされる虞があるので、上述の通り、会計処理部34の動作を停止する処理が行われる。   Further, in the receipt number range information acquisition from the printer 4 by the acquisition unit 332 (S11), even when there is no response from the printer 4 (when the information cannot be acquired), the determination unit 333 determines that the receipt number range is within the receipt number range. It is determined that it has not entered (No in step S12 in FIG. 2), and the process proceeds to step S16 in FIG. In such a case, it is presumed that the printer 4 was removed after the process. In such a case, the accounting process may be illegally performed without storing the fiscal data. Therefore, the process of stopping the operation of the accounting processing unit 34 is performed as described above.

一方、上記決定したレシート番号が上記レシート番号範囲内に入っている場合には(図2のステップS12のYes)、判断部333は、当該処理の開始時(開店時)におけるレジスター端末装置3とプリンター4の整合が保たれていると判断し、当該顧客への商品販売について会計処理を行ってもよい旨の指示を会計処理部34へ出す。   On the other hand, when the determined receipt number is within the receipt number range (Yes in step S12 of FIG. 2 ), the determination unit 333 determines that the register terminal device 3 is set at the start of the process (when the store is opened). When it is determined that the printer 4 is consistent, the accounting processing unit 34 is instructed that accounting processing may be performed on the sale of the product to the customer.

当該指示受けて、会計処理部34は、会計処理を実行する(図2のステップS13)。会計処理自体は、従来のレジスターで行われている処理と同様に行われる。   Upon receiving the instruction, the accounting processing unit 34 executes accounting processing (step S13 in FIG. 2). The accounting process itself is performed in the same way as the process performed in a conventional register.

会計処理部34は、会計処理後、レシートの出力処理を行う(図2のステップS14)。具体的には、当該商品販売に係る会計情報をレシート情報としてプリンタードライバー実行部32へ渡す。プリンタードライバー実行部32はその情報を印刷データとしてプリンター4へ送信し、その印刷データに従ってプリンター4の印刷制御部41及び印刷実行部42によりレシートが印刷されて出力される。出力されたレシートは顧客に渡される。   After the accounting processing, the accounting processing unit 34 performs receipt output processing (step S14 in FIG. 2). Specifically, the accounting information related to the sale of the product is passed to the printer driver execution unit 32 as receipt information. The printer driver execution unit 32 transmits the information as print data to the printer 4, and the print control unit 41 and the print execution unit 42 of the printer 4 print a receipt according to the print data and output it. The output receipt is passed to the customer.

引き続き、プリンター4は、送信された印刷データを元に当該商品販売に係るフィスカルデータを生成し、暗号化して、フィスカルメモリー44に記録する(図2のステップS15)。当該記録処理は、フィスカル制御部40の指示によりメモリー制御部43によって行われる。   Subsequently, the printer 4 generates the fiscal data related to the sale of the product based on the transmitted print data, encrypts it, and records it in the fiscal memory 44 (step S15 in FIG. 2). The recording process is performed by the memory control unit 43 according to an instruction from the fiscal control unit 40.

その後、上述した停止条件が成立するか(図2のステップS8のYes)、上述したプリンター4との不整合が発生するまで(図2のステップS12のNo)、以上の会計処理、レシート出力処理、及び、フィスカルデータの記録処理が、商品販売の度に繰り返し実行される。   After that, until the above-described stop condition is satisfied (Yes in step S8 of FIG. 2) or until the above-described inconsistency with the printer 4 (No in step S12 of FIG. 2), the above accounting process and receipt output process are performed. , And the fiscal data recording process is repeatedly executed every time the product is sold.

そして、判断部333が、上記停止条件が成立したと判断した場合(図2のステップS8のYes)、又は、上記不整合が発生したと判断した場合(図2のステップS12のNo)には、起動・停止制御部33は、当該処理の開始時からのフィスカルデータを政府サーバー1へ送信して会計処理部34の動作を停止状態にする処理を行う。なお、政府サーバー1から送信される停止キーの受信を停止条件とする場合には、情報発行部11が所定の時刻に停止キーを生成し、レジスター端末装置3へ送信する。また、当該所定の時刻としては、上記起動キーを送信した時刻から所定時間後の時刻、又は、予め定められた閉店時刻を用いることができる。   Then, when the determining unit 333 determines that the stop condition is satisfied (Yes in step S8 of FIG. 2) or determines that the inconsistency has occurred (No in step S12 of FIG. 2). The start/stop control unit 33 performs a process of transmitting the fiscal data from the start of the process to the government server 1 to stop the operation of the accounting processing unit 34. When the reception of the stop key transmitted from the government server 1 is used as the stop condition, the information issuing unit 11 generates the stop key at a predetermined time and transmits it to the register terminal device 3. Further, as the predetermined time, a time after a predetermined time from the time when the activation key is transmitted, or a predetermined closing time can be used.

具体的には、まず、取得部332がフィスカルデータの取得処理を行う(図2のステップS16)。当該取得処理では、取得部332がプリンター4へ指示を出し、当該指示に従ってメモリー制御部43が、上記会計処理部34の起動からこれまでにフィスカルメモリー44に記録されたフィスカルデータ(販売データ)を読み出し、当該読み出されたデータがフィスカル制御部40によって返送させる。これにより、その日の商品販売に係るフィスカルデータが取得される。   Specifically, first, the acquisition unit 332 performs a process of acquiring fiscal data (step S16 in FIG. 2). In the acquisition process, the acquisition unit 332 issues an instruction to the printer 4, and the memory control unit 43 follows the instruction to transfer the fiscal data (sales data) recorded in the fiscal memory 44 from the activation of the accounting processing unit 34 to the present. The data is read and the read data is returned by the fiscal control unit 40. As a result, fiscal data related to product sales on that day is acquired.

その後、取得部332は、取得したフィスカルデータを政府サーバー1へ送信する(図2のステップS17)。これにより、その日のフィスカルデータが政府サーバー1へ吸い上げられる。   After that, the acquisition unit 332 transmits the acquired fiscal data to the government server 1 (step S17 in FIG. 2). As a result, the fiscal data of the day is downloaded to the government server 1.

送信されたフィスカルデータは、データ収集部12により受信され、売上データ記録部13に格納される(図2のステップS18)。格納されるデータは、当該レジスター端末装置3のレジIDによって読み出し可能に記憶される。   The transmitted fiscal data is received by the data collection unit 12 and stored in the sales data recording unit 13 (step S18 in FIG. 2). The stored data is stored so as to be readable by the cashier ID of the register terminal device 3.

当該データの格納処理が正常に完了すると、データ収集部12はその旨を当該レジスター端末装置3に通知し、当該通知を受信した起動・停止制御部33では、起動・停止部334が、会計処理部34を動作不能とする、すなわち、停止状態とする(図2のステップS19)。これ以降、次に起動キーを受信して起動がなされるまで、当該レジスター端末装置3の会計処理機能を使用することはできない。なお、データ収集部12が送信したフィスカルデータを受信したことが確認された時点で当該停止処理を実行するようにしてもよい。また、当該停止処理において、フィスカルメモリー44に記憶されていたフィスカルデータを消去する処理を行うようにしてもよい。   When the storage process of the data is normally completed, the data collection unit 12 notifies the register terminal device 3 to that effect, and in the start/stop control unit 33 that has received the notification, the start/stop unit 334 causes the accounting process to be performed. The section 34 is disabled, that is, brought into a stopped state (step S19 in FIG. 2). After this, the accounting processing function of the register terminal device 3 cannot be used until the next activation key is received and activated. The stop process may be executed at the time when it is confirmed that the fiscal data transmitted by the data collection unit 12 is received. Further, in the stopping process, the process of deleting the fiscal data stored in the fiscal memory 44 may be performed.

なお、上記不整合が発生したと判断した場合(図2のステップS12のNo)には、上述したフィスカルデータを政府サーバー1へ送信する処理を行わずに、会計処理部34を動作不能とする処理のみを行うようにしてもよい。不整合が発生した場合には、プリンター4が別のプリンターに取り換えられたか、あるいは、外されたことが想定されるので、正しくないフィスカルデータが送信される、あるいは、送信できない事態となるからである。   If it is determined that the inconsistency has occurred (No in step S12 in FIG. 2), the accounting processing unit 34 is disabled without performing the above-described processing of transmitting the fiscal data to the government server 1. You may make it process only. In the case of inconsistency, it is assumed that the printer 4 has been replaced with another printer or removed, so that incorrect fiscal data may be transmitted or may not be transmitted. is there.

以上説明したように、各レジスター端末装置3における処理が実行される。   As described above, the processing in each register terminal device 3 is executed.

なお、上記説明では、プリンターIDによる整合性のチェックを開店時に行ったが、会計処理34の起動後、所定の頻度で繰り返し行うようにしてもよい。当該チェックにおいて、不整合と判断された場合には、図2のステップS16以降の処理へ移行させる。   In the above description, the consistency check by the printer ID is performed at the time of opening the store, but it may be repeated at a predetermined frequency after the accounting process 34 is activated. In the check, if it is determined that there is a mismatch, the process proceeds to step S16 and subsequent steps in FIG.

また、上記説明では、レシートを発行しようとする度に、レシート番号による整合性チェックを行うが、当該チェックを毎回行わず、所定回数(例えば、10回)のレシートの発行毎に行うようにしてもよい。   Further, in the above description, the consistency check is performed by the receipt number each time a receipt is issued, but the check is not performed each time, but may be performed every time the receipt is issued a predetermined number of times (for example, 10 times). Good.

なお、上記説明では、店舗の開店時にレジスター端末装置3が使用可能になり、その日の閉店時に使用不可となる態様で、すなわち、営業日1日単位で、政府からレジの使用が許可され、政府はその日のデータをその日のうちに取得するという態様であったが、この管理期間を変更した態様(例えば、2日毎)としてもよい。   In the above description, the register terminal device 3 is enabled when the store is opened and disabled when the store is closed on that day, that is, the cashier is permitted to be used by the government on a business day-by-day basis. Has been a mode in which the data of the day is acquired within the day, but a mode in which the management period is changed (for example, every two days) may be adopted.

以上説明したように、本徴税システム200では、政府サーバー1から送付される整合判断情報(プリンターIDとレシート番号範囲情報)に基づいて、レジスター端末装置3とプリンター4の整合性がチェックされ、不整合の場合には、会計処理部34が停止状態となって会計処理を行うことができない。従って、プリンター4の置き換え等による不正行為を防止することができる。   As described above, in the tax collection system 200, the consistency between the register terminal device 3 and the printer 4 is checked based on the consistency determination information (printer ID and receipt number range information) sent from the government server 1, and the mismatch is detected. In the case of matching, the accounting processing unit 34 is in a stopped state and cannot perform accounting processing. Therefore, it is possible to prevent fraudulent acts such as replacement of the printer 4.

また、レジスター端末装置3の起動時にプリンターIDによる上記整合性のチェックがなされるので、レジスター端末装置3が使用されていないときにプリンター4が置き換えられても、その不正行為を検出することができる。   Further, since the consistency is checked by the printer ID when the register terminal device 3 is started up, even if the printer 4 is replaced when the register terminal device 3 is not used, the misconduct can be detected. ..

また、レシートの発行の際にレシート番号を用いた上記整合性のチェックがなされるので、レジスター端末装置3の起動後にプリンター4が置き換えられても、その不正行為を検出することができる。   Further, since the above-mentioned consistency is checked using the receipt number when the receipt is issued, even if the printer 4 is replaced after the register terminal device 3 is started, the fraud can be detected.

また、整合判断情報は政府サーバー1で発行されるので、整合判断情報自体の改竄も難しい。   Further, since the matching judgment information is issued by the government server 1, it is difficult to falsify the matching judgment information itself.

更に、政府サーバー1から送付されるキー情報によってレジスター端末装置3の使用が制限され、正規の時間帯以外での使用ができないため、さらに空打ちなどの不正行為も防止することができる。   Furthermore, since the use of the register terminal device 3 is restricted by the key information sent from the government server 1 and the register terminal device 3 cannot be used outside the regular time period, it is possible to further prevent fraudulent acts such as blank hits.

更に、レジスター端末装置3にインストールされるレジスタープログラムは政府に公認されたものであり、また、それを頻繁に更新することにより、不正をより効果的に防止できる。   Furthermore, the register program installed in the register terminal device 3 is officially approved by the government, and frequent updating can prevent fraud more effectively.

このように、本徴税システム200を導入することにより、脱法行為(不正行為)を効果的に防止することができる。   In this way, by introducing the tax collection system 200, it is possible to effectively prevent the illegal act (illegal act).

(第2の実施形態)
次に、本発明の第2の実施の形態例について説明する。
(Second embodiment)
Next, a second embodiment example of the present invention will be described.

図3は、本発明を適用したプリンターを含むレジスターシステム及び徴税システムの第2の実施の形態例に係る機能構成図である。図3に示すプリンター9が本発明を適用したプリンターであり、当該プリンター9は、フィスカルデータを管理する政府サーバー6から送信される認証情報に基づいて、レジスター端末装置8(レジスター)における会計処理機能の動作を制御し、レジの空打ちや機器の置き換え等による不正行為を効果的に防止する。   FIG. 3 is a functional configuration diagram according to a second embodiment of a register system and a tax collection system including a printer to which the present invention is applied. The printer 9 shown in FIG. 3 is a printer to which the present invention is applied, and the printer 9 has an accounting processing function in the register terminal device 8 (register) based on the authentication information transmitted from the government server 6 that manages fiscal data. By controlling the operation of the above, it is possible to effectively prevent fraudulent acts such as blank cash register and equipment replacement.

図3に示すように、本実施の形態例では、政府サーバー6とネットワーク10で通信可能に接続される複数の店舗の各レジスター端末装置8及び各プリンター9によって徴税システム700が構成される。また、各店舗においては、レジスター端末装置8と通信可能に接続されるプリンター9によってレジスターシステム800が構成される。また、各レジスター端末装置8とネットワーク10を介して通信可能に接続されるアプリサーバー7は、各レジスター端末装置8にレジ用のアプリケーションソフトウェアを配信する。ネットワーク10としては、インターネットや電話回線などを用いることができる。また、レジスター端末装置8とプリンター9は、通信ケーブルや無線で通信が行われる。なお、図3に示す構成では、プリンター9は、レジスター端末装置8を介して政府サーバー6等と通信する構成となっているが、プリンター9が直接ネットワーク10と通信する構成としてもよい。   As shown in FIG. 3, in this embodiment, a tax collection system 700 is configured by each register terminal device 8 and each printer 9 of a plurality of stores communicably connected to the government server 6 and the network 10. In each store, the register system 800 is configured by the printer 9 communicatively connected to the register terminal device 8. The application server 7 communicatively connected to each register terminal device 8 via the network 10 distributes cash register application software to each register terminal device 8. As the network 10, the Internet or a telephone line can be used. Further, the register terminal device 8 and the printer 9 communicate with each other via a communication cable or wirelessly. In the configuration shown in FIG. 3, the printer 9 is configured to communicate with the government server 6 and the like via the register terminal device 8, but the printer 9 may be configured to directly communicate with the network 10.

政府サーバー6は、政府の国税局など徴税を管轄する部署によって管理されるサーバーシステム(コンピューターシステム)であり、フィスカルデータを管理する。当該政府サーバー6は、予め定められた者のみが操作可能であり、そこに記録されるデータの改ざん、漏洩を防止する措置が施されている。また、当該サーバーは、図示していないが、CPU、RAM、ROM、HDD、表示装置、操作装置、通信インターフェース等のハードウェアで構成される。   The government server 6 is a server system (computer system) managed by a department having jurisdiction over tax collection, such as the national tax bureau of the government, and manages fiscal data. The government server 6 can be operated only by a predetermined person, and measures are taken to prevent falsification and leakage of data recorded therein. Although not shown, the server is configured with hardware such as a CPU, RAM, ROM, HDD, display device, operating device, and communication interface.

政府サーバー6の機能構成としては、図3に示すように、登録部60、情報発行部61、データ収集部62、及び売上データ記録部63を備える。登録部60は、各店舗のレジスターシステム800を正式なレジスターシステムとして登録する処理を行う部分である。なお、登録の際に用いる識別情報として、プリンター9の個体識別情報(プリンターIDと称す)を用いることができる。   As shown in FIG. 3, the functional configuration of the government server 6 includes a registration unit 60, an information issuing unit 61, a data collecting unit 62, and a sales data recording unit 63. The registration unit 60 is a part that performs a process of registering the register system 800 of each store as an official register system. The identification information of the printer 9 (referred to as printer ID) can be used as the identification information used for registration.

情報発行部61は、各レジスター端末装置8の会計処理機能を起動・停止させるためのキー情報の発行、各レジスター端末装置8で発行するレシート番号の生成等を行う部分である。次に、データ収集部62は、各店舗のプリンター9に記録される売上データを収集する部分である。また、売上データ記録部63は、データ収集部62によって収集された売上データを記録する部分である。   The information issuing unit 61 is a part that issues key information for starting and stopping the accounting processing function of each register terminal device 8 and generates a receipt number issued by each register terminal device 8. Next, the data collection part 62 is a part which collects the sales data recorded on the printer 9 of each store. The sales data recording unit 63 is a part that records the sales data collected by the data collection unit 62.

なお、登録部60、情報発行部61及びデータ収集部62は、それらが行う処理を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成され、データ記録部63は、HDDなどのデータ記憶装置によって構成される。   The registration unit 60, the information issuing unit 61, and the data collecting unit 62 are configured by a program that describes the processes performed by them, a CPU that executes the processes according to the programs, a RAM, and the like, and the data recording unit 63 is an HDD or the like. It is composed of a data storage device.

アプリサーバー7は、上述の通り、各レジスター端末装置8にレジスター用アプリケーションプログラム(以下、レジスタープログラムと称す)等を配信するサーバーシステム(コンピューターシステム)であり、例えば、スマートフォンやタブレット端末用のアプリケーションソフトウェアを販売、配信するプロバイダーによって運営されるサーバーである。   As described above, the application server 7 is a server system (computer system) that distributes a register application program (hereinafter referred to as a register program) to each register terminal device 8, and for example, application software for smartphones and tablet terminals. Is a server operated by a provider that sells and distributes.

当該レジスタープログラム等は、各店舗における商品販売時に会計処理を行うためのアプリケーションプログラムであり、政府に公認されたものである。なお、本実施形態では、当該レジスタープログラムの配信を政府から民間に委託しこのような構成としているが、上述した政府サーバー6がアプリサーバー7の機能を兼ねる構成としてもよい。   The register program or the like is an application program for performing accounting processing at the time of selling products at each store, and has been approved by the government. In this embodiment, the distribution of the register program is outsourced from the government to the private sector, but the government server 6 described above may also function as the application server 7.

アプリサーバー7は、図示していないが、CPU、RAM、ROM、HDD、表示装置、操作装置、通信インターフェース等のハードウェアで構成され、図3に示すように、機能構成として、アプリ配信部71及びプログラム格納部72を備えている。アプリ配信部71は、上述の配信処理を担う部分であり、処理内容を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。プログラム格納部72は、レジスタープログラムのほか、アプリサーバー7が配信する各プログラムを格納し、HDD等で構成される。   Although not shown, the application server 7 includes hardware such as a CPU, a RAM, a ROM, a HDD, a display device, an operation device, and a communication interface. As shown in FIG. 3, the application distribution unit 71 has a functional configuration. And a program storage unit 72. The application distribution unit 71 is a part responsible for the above-mentioned distribution processing, and is configured by a program describing the processing content, a CPU that executes processing according to the program, a RAM, and the like. The program storage unit 72 stores each program distributed by the application server 7 in addition to the register program, and is configured by an HDD or the like.

次に、レジスター端末装置8は、いわゆるレジにおける商品販売時の会計処理を担う端末装置であり、スマートフォン、タブレット端末装置、モバイルPCなどで実装することができる。当該レジスター端末装置8は、各店舗に設けられ、また、1店舗に複数台設けられてもよい。レジスター端末装置8は、政府サーバー6及びプリンター9と通信可能に接続でき、顧客への商品販売時には、会計処理を行って当該会計処理のレシートをプリンター9から出力させる。   Next, the register terminal device 8 is a terminal device that is responsible for accounting processing at the time of selling products at a so-called cash register, and can be mounted on a smartphone, a tablet terminal device, a mobile PC, or the like. The register terminal device 8 is provided in each store, and a plurality of the register terminal devices 8 may be provided in one store. The register terminal device 8 can be connected to the government server 6 and the printer 9 so as to be able to communicate with each other. When the product is sold to a customer, the accounting process is performed and the receipt of the accounting process is output from the printer 9.

図示していないが、レジスター端末装置8は、ハードウェアとしては、CPU、RAM、ROM、HDD、表示装置、操作装置(入力装置)、通信インターフェース等を備え、図3に示すような機能構成を備えている。   Although not shown, the register terminal device 8 includes, as hardware, a CPU, a RAM, a ROM, a HDD, a display device, an operating device (input device), a communication interface, and the like, and has a functional configuration as shown in FIG. I have it.

レジスター制御部81は、上述したレジスタープログラムに従って動作する、会計処理の制御を担う部分であり、商品販売時の会計処理、レシート出力処理等を行う。また、図3に示されるように、レジスター制御部81は、この会計処理機能自体を担う会計処理部84と動作制御部83を備える。   The register control unit 81 is a part that operates according to the above-described register program and is responsible for controlling accounting processing, and performs accounting processing at the time of selling products, receipt output processing, and the like. In addition, as shown in FIG. 3, the register control unit 81 includes an accounting processing unit 84 that performs the accounting processing function itself and an operation control unit 83.

動作制御部83は、会計処理部84の起動・停止に係る動作状態を補助的に制御する部分である。後述するが、会計処理部84の起動・停止制御は、プリンター9のフィスカル制御部90によって主体的に行われる。なお、動作制御部83の具体的な処理内容については後述する。   The operation control unit 83 is a part that supplementarily controls the operation state related to the start/stop of the transaction processing unit 84. As will be described later, the start/stop control of the accounting processing unit 84 is mainly performed by the fiscal control unit 90 of the printer 9. Note that the specific processing content of the operation control unit 83 will be described later.

会計処理部84は、上述の通り、商品販売時の会計処理等を行う。   As described above, the accounting processing unit 84 performs accounting processing at the time of selling products.

なお、レジスター制御部81は、アプリサーバー7からダウンロードしたレジスター機能部プログラム、当該プログラムに従って処理を実行するCPU、RAM、不揮発性メモリー等で構成される。   The register control unit 81 includes a register function unit program downloaded from the application server 7, a CPU that executes processing according to the program, a RAM, a non-volatile memory, and the like.

また、プリンタードライバー実行部82は、プリンター9用のドライバー実行部であり、レジスター制御部81からレシートの出力指示が出た際に、レシートの印刷データをプリンター9用の形式(コマンド)で生成してプリンター9用へ送信する。なお、プリンタードライバー実行部82は、ドライバープログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。なお、後述の通り、本実施の形態例におけるプリンター9は、多彩な情報処理機能を備えるいわゆるインテリジェントプリンターであるため、プリンタードライバー実行部82を備えない構成として、会計処理部84が生成するレシートのデータをそのままプリンター9に送信する構成とすることもできる。   Further, the printer driver execution unit 82 is a driver execution unit for the printer 9, and when the register control unit 81 issues a receipt output instruction, generates print data of the receipt in a format (command) for the printer 9. And send it to the printer 9. The printer driver execution unit 82 includes a driver program, a CPU that executes processing according to the program, a RAM, and the like. As will be described later, since the printer 9 in the present embodiment is a so-called intelligent printer having various information processing functions, the printer 9 does not include the printer driver execution unit 82, and the receipt processing generated by the accounting processing unit 84 The data may be directly transmitted to the printer 9.

次に、プリンター9は、各レジスター端末装置8に対して設けられるレシート印刷用のプリンターであるが、上述の通り、いわゆるインテリジェントプリンターであり、パーソナルコンピューター等に相当する情報処理機能を備えている。当該プリンター9は、図1に示すような機能構成を有しており、一般的なプリンターとしての機能を担う印刷制御部91及び印刷実行部92のほかに、フィスカル制御部90、メモリー制御部93及びフィスカルメモリー94を備えている。   Next, the printer 9, which is a printer for receipt printing provided for each register terminal device 8, is a so-called intelligent printer as described above, and has an information processing function corresponding to a personal computer or the like. The printer 9 has a functional configuration as shown in FIG. 1, and in addition to a print control unit 91 and a print execution unit 92 that function as a general printer, a fiscal control unit 90 and a memory control unit 93. And a fiscal memory 94.

フィスカル制御部90は、本プリンター9の特徴的な部分であり、その具体的な処理内容は後述するが、政府サーバー6から送信されるキー情報、レシート番号範囲情報、及び、プリンター9のプリンターIDに基づいて、レジスター端末装置8の会計処理部84の起動・停止を制御する処理を行う。言い換えれば、会計処理部84による処理の実行可否を制御する処理を行う。なお、政府サーバー6から送信されるキー情報、レシート番号範囲情報、及び、プリンターIDを認証情報と称し、その中のレシート番号範囲情報及びプリンターIDを整合情報と称することにする。また、フィスカル制御部90は、会計処理部84の動作を停止する際に、プリンター9に記憶されている売上データを取得し、政府サーバー6へ送信する処理を実行する。   The fiscal control unit 90 is a characteristic part of the printer 9, and the specific processing content will be described later, but the key information, the receipt number range information, and the printer ID of the printer 9 transmitted from the government server 6. Based on the above, processing for controlling the start/stop of the accounting processing unit 84 of the register terminal device 8 is performed. In other words, processing for controlling whether or not the accounting processing unit 84 can execute the processing is performed. The key information, receipt number range information, and printer ID transmitted from the government server 6 are referred to as authentication information, and the receipt number range information and printer ID therein are referred to as matching information. Further, the fiscal control unit 90 executes a process of acquiring the sales data stored in the printer 9 and transmitting the sales data to the government server 6 when the operation of the accounting processing unit 84 is stopped.

また、フィスカル制御部90は、図3に示すように、記憶部901、取得部902、判断部903、及び起動・停止部904を備える。取得部902は、政府サーバー6から送信される認証情報等を取得する部分である。記憶部901は、取得部902で取得された情報等を記憶する部分である。判断部903は、認証情報に基づいて会計処理の実行可否を判断する。具体的には、政府サーバー6から送信されるキー情報に基づいて、会計処理部84の動作状態を起動状態とするか又は停止状態にするかを判断する。また、判断部903は、上述した整合情報に基づいて、レジスター端末装置8とプリンター9の整合性を判断し、その結果に基づいて、会計処理部84の動作状態を起動状態とするか又は停止状態にするかを判断する。起動・停止部904は、判断部903の判断に従って会計処理部84の動作状態を制御する部分である。   Further, the fiscal control unit 90 includes a storage unit 901, an acquisition unit 902, a determination unit 903, and a start/stop unit 904, as shown in FIG. The acquisition unit 902 is a unit that acquires the authentication information and the like transmitted from the government server 6. The storage unit 901 is a unit that stores the information and the like acquired by the acquisition unit 902. The determination unit 903 determines whether or not to execute the accounting process based on the authentication information. Specifically, based on the key information transmitted from the government server 6, it is determined whether the operating state of the accounting processing unit 84 is the activated state or the suspended state. Further, the determination unit 903 determines the consistency between the register terminal device 8 and the printer 9 based on the above-mentioned matching information, and based on the result, sets the operating state of the accounting processing unit 84 to the activated state or stops. Judge whether to put in the state. The start/stop unit 904 is a unit that controls the operating state of the transaction processing unit 84 according to the determination of the determination unit 903.

なお、フィスカル制御部90は、各部が行う処理を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。また、当該フィスカル制御部90のプログラムが本発明における会計処理の制御プログラムに相当する。   The fiscal control unit 90 is composed of a program that describes processing performed by each unit, a CPU that executes processing according to the program, a RAM, and the like. Further, the program of the fiscal control unit 90 corresponds to the accounting processing control program in the present invention.

印刷制御部91は、プリンターのいわゆるコントローラー部分であり、レジスター端末装置8から送信される印刷データに基づいて印刷実行部92にレシートの印刷を行わせる。図示していないが、印刷制御部91は、CPU、RAM、ROM、ASIC等で構成される。   The print control unit 91 is a so-called controller unit of the printer, and causes the print execution unit 92 to print a receipt based on print data transmitted from the register terminal device 8. Although not shown, the print control unit 91 includes a CPU, RAM, ROM, ASIC and the like.

印刷実行部92は、熱転写方式やインクジェット方式で印刷を行うプリンターの印刷機構部であり、レシートの印刷を実行する。印刷方式がインクジェット方式である場合には、インクを噴射するノズルを備えたヘッド、用紙の搬送装置等で構成される。   The print execution unit 92 is a printing mechanism unit of a printer that performs printing by a thermal transfer method or an inkjet method, and executes receipt printing. When the printing method is an ink jet method, it is composed of a head provided with nozzles for ejecting ink, a sheet conveying device and the like.

メモリー制御部93は、フィスカルメモリー94へのデータの読み書きを専門に行う部分であり、レシートの印刷データを受ける度に、そのレシートに係る売上情報(フィスカルデータ)を暗号化してフィスカルメモリー94へ書き込む処理を行う。また、取得部902から売上情報の取得指示があった場合には、フィスカルメモリー94に記憶されているフィスカルデータを読み出してフィスカル制御部90へ渡す処理を実行する。なお、メモリー制御部93は、CPU、RAM、ROM、ASIC等で構成される。   The memory control unit 93 is a unit that specializes in reading and writing data to and from the fiscal memory 94, and every time the receipt print data is received, the sales information (fiscal data) related to the receipt is encrypted and written to the fiscal memory 94. Perform processing. When the acquisition unit 902 gives an instruction to acquire sales information, the process of reading the fiscal data stored in the fiscal memory 94 and passing it to the fiscal control unit 90 is executed. The memory control unit 93 is composed of a CPU, a RAM, a ROM, an ASIC, and the like.

フィスカルメモリー94は、上記フィスカルデータを記憶するメモリーであり、NVRAMなどの不揮発性メモリーで構成される。   The fiscal memory 94 is a memory for storing the above-mentioned fiscal data, and is composed of a nonvolatile memory such as NVRAM.

なお、プリンター9のプリンターIDは、プリンター9の図示していない記憶部に保存されており、取得部902は、当該記憶部からプリンターIDを取得する。   The printer ID of the printer 9 is stored in a storage unit (not shown) of the printer 9, and the acquisition unit 902 acquires the printer ID from the storage unit.

なお、メモリー制御部93及びフィスカルメモリー94には、フィスカルデータの改ざんや漏えいが容易に行われないようにするためのハードウェア及びソフトウェアの従前の措置が施される。   The memory control unit 93 and the fiscal memory 94 are provided with conventional hardware and software measures to prevent falsification and leakage of fiscal data.

なお、上記フィスカルデータ、すなわち、レシート出力毎に記録されるそのレシートの商品販売に係る売上情報は、当該徴税システム700が設けられる国の法令に則った適切な情報項目と形式で表現されるようにする。例えば、フィスカルデータは、レシートと同一内容のいわゆる電子ジャーナル情報、レシートの所定の情報、所定の情報の付加を施した後の売上情報である。   In addition, the above-mentioned fiscal data, that is, the sales information related to the sales of the receipt, which is recorded for each receipt output, is expressed in an appropriate information item and format in accordance with the law of the country where the tax collection system 700 is installed. To For example, the fiscal data is so-called electronic journal information having the same content as the receipt, predetermined information of the receipt, and sales information after adding predetermined information.

また、プリンター9から出力されるレシートは、各顧客に渡された後、所定の方法で政府が回収できることが望ましい。例えば、宝くじ付きのレシートとして出力し、当選者のレシートを回収する方法がある。回収されたレシートは、その情報が政府サーバー6に吸い上げられた情報(売上データ記録部63の情報)と照合され、脱法行為の確認に用いられる。   Further, it is desirable that the government can collect the receipt output from the printer 9 by a predetermined method after passing it to each customer. For example, there is a method of outputting a receipt with a lottery ticket and collecting the receipt of the winner. The collected receipt is collated with the information (information of the sales data recording unit 63) sucked up by the government server 6 and used to confirm the illegal act.

また、図示されていないが、プリンター9には、バーコードリーダー、カードリーダー、顧客用モニターなどのいわゆるレジスター装置の周辺機器が接続される。   Although not shown, the printer 9 is connected with peripheral devices such as a bar code reader, a card reader, and a customer monitor, which are so-called register devices.

以上説明したような構成を備える本徴税システム700では、各店舗におけるレジでの処理が以下に説明するような内容で行われる。事前作業として、各店舗では、商品販売を行うに当たって、まず、上述したレジスタープログラムをアプリサーバー7からダウンロードして、各レジスター端末装置8にインストールしておく。当該ダウンロード操作は、一般的なアプリケーションのダウンロードと同様の手順で行うことができる。   In the tax collection system 700 having the above-described configuration, the processing at the cash register in each store is performed as described below. As a preliminary work, at each store, at the time of selling products, first, the above-mentioned register program is downloaded from the application server 7 and installed in each register terminal device 8. The download operation can be performed in the same procedure as a general application download.

なお、レジスタープログラムは比較的短い間隔でアップデートされ、当該インストール操作を頻繁に行うようにすることが、脱法行為を防ぐ意味で効果的である。   The register program is updated at relatively short intervals, and it is effective to frequently perform the installation operation in order to prevent illegal activities.

また、上述したフィスカル制御部90のプログラムは、上記レジスタープログラムと同様にアプリサーバー7からダウンロードしてインストールするようにしてもよいし、あるいは、プリンター9の製造者などから提供されてインストールするようにしてもよい。いずれにしても、フィスカル制御部90のプログラムは、政府に公認されたものが好ましい。   The program of the above-mentioned fiscal control unit 90 may be downloaded from the application server 7 and installed like the above register program, or may be provided by the manufacturer of the printer 9 or the like and installed. May be. In any case, the program of the fiscal control unit 90 is preferably approved by the government.

上記プログラムのインストール後、レジスター端末装置8から政府サーバー6へレジスター制御部81を用いてアクセスし、当該レジスターシステム800について登録手続を行う。当該アクセスを受けた政府サーバー6では、登録部60が、アクセス元のレジスターシステム800の識別情報(レジID)を決定し、そのレジIDをレジスター端末装置8へ返送する。なお、このレジIDとして、上述したプリンターIDを用いることができる。この場合には、レジスター端末装置8は、上記政府サーバー6へのアクセス時に当該プリンター9のプリンターIDを送信する。   After the installation of the above program, the register terminal device 8 accesses the government server 6 using the register control unit 81, and the registration procedure for the register system 800 is performed. In the government server 6 that has received the access, the registration unit 60 determines the identification information (cash register ID) of the register system 800 that is the access source, and returns the register ID to the register terminal device 8. The printer ID described above can be used as the cashier ID. In this case, the register terminal device 8 transmits the printer ID of the printer 9 when accessing the government server 6.

レジスター制御部81は、動作制御部83がこのレジIDを受信して記憶すると共に、当該レジIDをプリンター9に送信する。その後、プリンター9のフィスカル制御部90では、送信されたレジIDを取得部902が取得し、当該レジIDを記憶部901が記憶する。なお、レジIDがプリンターIDである場合には、プリンター9におけるレジIDの記憶処理を省略することができる。   In the register control unit 81, the operation control unit 83 receives and stores the cashier ID, and also transmits the cashier ID to the printer 9. Then, in the fiscal control unit 90 of the printer 9, the acquisition unit 902 acquires the transmitted cashier ID, and the storage unit 901 stores the cashier ID. When the cashier ID is the printer ID, the storage processing of the cashier ID in the printer 9 can be omitted.

一方、政府サーバー6では、当該レジスターシステム800の情報(IPアドレス等)がレジIDと共に記録される。   On the other hand, in the government server 6, the information (IP address etc.) of the register system 800 is recorded together with the cashier ID.

なお、レジIDとしてプリンターIDを用いない場合には、レジスター端末装置8からプリンターIDを政府サーバー1へレジIDと共に送信する。政府サーバー6は、送信されたプリンターIDを、レジIDに対応付けて、上記レジスターシステム800の情報として記憶する。   When the printer ID is not used as the cashier ID, the printer ID is transmitted from the register terminal device 8 to the government server 1 together with the cashier ID. The government server 6 stores the transmitted printer ID as information of the register system 800 in association with the cashier ID.

以上のようにして、登録手続きが完了すると、そのレジスターシステム800を用いた商品販売が可能となる。以下、登録手続後の処理について説明する。図4は、会計処理機能の起動から停止までの処理手順を例示したフローチャートである。   When the registration procedure is completed as described above, it becomes possible to sell products using the register system 800. The process after the registration procedure will be described below. FIG. 4 is a flowchart exemplifying the processing procedure from the start to the stop of the accounting processing function.

本実施形態のレジスター制御部81の会計処理部84は、不正行為等がなければ、その日の開店時に政府サーバー6から送信される起動キー(起動情報)によって起動し、その日の閉店時に政府サーバー6から送信される停止キー(停止情報)によって停止するように設計されている。   If there is no misconduct, the accounting processing unit 84 of the register control unit 81 of the present embodiment is activated by the activation key (activation information) transmitted from the government server 6 when the store is opened on that day, and is closed when the store is closed on that day. It is designed to be stopped by the stop key (stop information) sent from.

このレジスターシステム800が設けられる店舗の開店時間前に、政府サーバー6において、そのレジスターシステム800用の起動キー等が生成されて、そのレジスターシステム800へ送信される(図4のステップS21)。   Before the opening time of the store in which the register system 800 is installed, the government server 6 generates an activation key or the like for the register system 800 and transmits it to the register system 800 (step S21 in FIG. 4).

本実施形態では、レジスターシステム800毎に予め定められた時刻が記録され、その時刻になったことを、この起動キーの生成処理のトリガーとする。また、別法としては、店舗の店員がプリンター9を操作し、フィスカル制御部90の取得部902を用いて起動キー等を要求し、政府サーバー6がその要求を受けたことをトリガーとすることができる。   In this embodiment, a predetermined time is recorded for each register system 800, and the fact that the time has come is used as a trigger for this activation key generation processing. Alternatively, as another method, a store clerk operates the printer 9 and requests an activation key or the like using the acquisition unit 902 of the fiscal control unit 90, and the government server 6 receives the request as a trigger. You can

また、起動キーの生成・送信処理は、情報発行部61によって行われる。起動キーは、レジスターシステム800毎に異なり、また、同じレジスターシステム800に対しても発行日毎に異なるように生成される。例えば、その日の日付とレジIDを所定の方法で加工して得られる情報を起動キーとする。   The generation/transmission process of the activation key is performed by the information issuing unit 61. The activation key is different for each register system 800, and is also generated for the same register system 800 differently for each issuing date. For example, the information obtained by processing the date of the day and the cashier ID by a predetermined method is used as the activation key.

また、同じタイミングで、情報発行部61は、レジスター端末装置8とプリンター9の整合性、すなわち、レジスター端末装置8とプリンター9のハードウェア個体としての組み合わせが正しいか否か、を判断するための整合情報を生成する。なお、上述した登録手続きの際には当該ハードウェアの組み合わせが正しいものとする。   In addition, at the same timing, the information issuing unit 61 determines whether the register terminal device 8 and the printer 9 are consistent, that is, whether the combination of the register terminal device 8 and the printer 9 as a hardware individual is correct. Generate matching information. It is assumed that the combination of the hardware is correct in the above registration procedure.

情報発行部61は、当該整合情報として、具体的には、プリンターIDとレシート番号範囲情報を生成する。プリンターIDは、上述した登録手続きの際に記憶された情報であり、そのレジスターシステム800の情報に対応して記憶される当該情報を抽出して生成する。   The information issuing unit 61 specifically generates a printer ID and receipt number range information as the matching information. The printer ID is information stored during the above-described registration procedure, and the information stored corresponding to the information of the register system 800 is extracted and generated.

レシート番号範囲情報は、各レジスター端末装置8でその日に発行されるレシートに付されるレシート番号の範囲を示す情報である。レジスター端末装置8から発行されるレシートには、徴税システム700内でユニークなレシート番号が付される仕様となっており、各レジスター端末装置8において発行順に連番のレシート番号が付される。従って、情報発行部61は、各レジスター端末装置8でその日に発行されるであろうレシート枚数の予測値に応じて各レジスター端末装置8のレシート番号範囲を決定する。ここでは、一例として、レジスター端末装置8に対して00000〜00200のレシート番号範囲が決定され、「00000〜00200」のレシート番号範囲情報が生成される。   The receipt number range information is information indicating a range of receipt numbers given to receipts issued on each register terminal device 8 on that day. The receipt issued from the register terminal device 8 is designed to have a unique receipt number in the tax collection system 700, and each register terminal device 8 is given a serial receipt number in the order of issuance. Therefore, the information issuing unit 61 determines the receipt number range of each register terminal device 8 in accordance with the predicted value of the number of receipts that will be issued by each register terminal device 8 on that day. Here, as an example, a receipt number range of 00000 to 00200 is determined for the register terminal device 8 and receipt number range information of “00000 to 00200” is generated.

このようにして生成された起動キー、プリンターID、及びレシート番号範囲情報は、情報発行部61によってレジスター端末装置8にネットワーク10を介して送信されるが、送信前に暗号化されるのが望ましい。   The activation key, the printer ID, and the receipt number range information generated in this way are transmitted by the information issuing unit 61 to the register terminal device 8 via the network 10, but are preferably encrypted before transmission. ..

送信された上記起動キー等は、レジスター制御部81を介してプリンター9の取得部902によって受信される(図4のステップS22)。その後、記憶部901は、取得部902が受信した起動キー、プリンターID、及びレシート番号範囲情報を記憶する(図4のステップS23)。また、取得部902は、受信したレシート番号範囲情報をレジスター端末装置8へ送信し、レジスター端末装置8の動作制御部83は当該レシート番号範囲情報を記憶する。   The transmitted activation key and the like are received by the acquisition unit 902 of the printer 9 via the register control unit 81 (step S22 in FIG. 4). After that, the storage unit 901 stores the activation key, the printer ID, and the receipt number range information received by the acquisition unit 902 (step S23 in FIG. 4). Further, the acquisition unit 902 transmits the received receipt number range information to the register terminal device 8, and the operation control unit 83 of the register terminal device 8 stores the receipt number range information.

なお、この時点では、レジスター制御部81の会計処理部84は停止しており、当該レジスター端末装置8を用いた会計処理を行うことはできない。換言すれば、レジスター端末装置8はレジスターとして機能しない。   At this point, the accounting processing unit 84 of the register control unit 81 is stopped and the accounting processing using the register terminal device 8 cannot be performed. In other words, the register terminal device 8 does not function as a register.

次に、プリンター9のフィスカル制御部90は、受信した起動キーの認証処理を行う(図4のステップS24)。具体的には、判断部903が、登録手続時に政府サーバー6より取得した情報を元に政府サーバー6の情報発行部61と同様の方法によって起動キーを生成し、それが受信した起動キーと一致していれば、受信した起動キーを正式なものとして認証する。上述の例のように、日付とレジIDを用いた方法で生成する場合には、判断部903は、上記登録手続の際に記憶したレジIDを用いて起動キーの生成を行う。   Next, the fiscal control unit 90 of the printer 9 performs the authentication process of the received activation key (step S24 in FIG. 4). Specifically, the determination unit 903 generates an activation key by a method similar to that of the information issuing unit 61 of the government server 6 based on the information acquired from the government server 6 during the registration procedure, and the activation key is identical to the activation key received by the activation key. If so, the received activation key is authenticated as an official one. In the case of generating by the method using the date and the cashier ID as in the above example, the determination unit 903 generates the activation key by using the cashier ID stored in the above registration procedure.

当該認証によって、認証されなかった場合には(図4のステップS24のNG)、不正な起動キーが受信されたと判断して、起動・停止部904は、会計処理部84を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置8はレジスターとして機能しないままとなる。   If it is not authenticated by the authentication (NG in step S24 of FIG. 4), it is determined that an unauthorized activation key has been received, and the activation/stop unit 904 does not activate the accounting processing unit 84 and continues as it is. , And ends the processing. That is, the register terminal device 8 remains not functioning as a register.

一方、不正やエラーがなく政府サーバー6から発行された起動キーが受信された場合には、受信した起動キーが認証される(図4のステップS24のOK)。   On the other hand, when the activation key issued from the government server 6 is received without any illegality or error, the received activation key is authenticated (OK in step S24 in FIG. 4).

この場合には、フィスカル制御部90は、次の認証を行う。すなわち、この時点でレジスター端末装置8とプリンター9との整合性をチェックする。そのために、まず、取得部902は、当該プリンター9のプリンターIDを取得する(図4のステップS25)。   In this case, the fiscal control unit 90 performs the next authentication. That is, at this point, the consistency between the register terminal device 8 and the printer 9 is checked. Therefore, first, the acquisition unit 902 acquires the printer ID of the printer 9 (step S25 in FIG. 4).

判断部903は、当該取得されたプリンターIDと上記記憶部901に記憶される政府サーバー6から送信された上記プリンターIDを比較し(図6のステップS26)、一致しなければその時点で接続されているプリンター9は不正なプリンターであると判断し、すなわち認証せず(図4のステップS26のNG)、起動・停止部904は、会計処理部84を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置8はレジスターとして機能しないままとなる。かかる場合は、上述した登録手続時に接続されていた正しいプリンター9が同様のフィスカル制御部90を有する別のプリンターに置き換えられたことが推察される。このような場合には、上述の通り、レジスター端末装置8とプリンター9の整合性が認証されない。   The determination unit 903 compares the acquired printer ID with the printer ID transmitted from the government server 6 stored in the storage unit 901 (step S26 in FIG. 6), and if they do not match, the printer is connected at that time. It is determined that the printer 9 is an unauthorized printer, that is, it is not authenticated (NG in step S26 in FIG. 4), the start/stop unit 904 does not start the accounting processing unit 84, and ends the processing as it is. To do. That is, the register terminal device 8 remains not functioning as a register. In such a case, it is inferred that the correct printer 9 connected during the above-described registration procedure was replaced with another printer having the same fiscal control unit 90. In such a case, as described above, the consistency between the register terminal device 8 and the printer 9 is not authenticated.

一方、上記取得されたプリンターIDと上記政府サーバー6から送信されたプリンターIDが一致すれば、判断部903は、レジスター端末装置8とプリンター9の整合性を認証する(図4のステップS26のOK)。   On the other hand, if the acquired printer ID and the printer ID transmitted from the government server 6 match, the determination unit 903 authenticates the consistency between the register terminal device 8 and the printer 9 (OK in step S26 in FIG. 4). ).

このようにして、起動キーとプリンターIDによる認証が得られれば、起動・停止部904は、レジスター端末装置8のレジスター制御部81に起動コマンドを送信して会計処理部84を起動させる(図4のステップS27)。これにより、レジスター機能が動作可能となり、商品販売後の会計処理ができるようになる。従って、店舗において商品の販売が開始される。   In this way, if the activation key and the printer ID are authenticated, the start/stop unit 904 sends a start command to the register control unit 81 of the register terminal device 8 to start the accounting processing unit 84 (FIG. 4). Step S27). As a result, the register function becomes operable and the accounting process after the sale of the product becomes possible. Therefore, the sale of the product is started at the store.

その後は、プリンター9が置き換えたり取り外されたりするような不正行為が行われなければ、その商店の閉店時に会計処理部84が停止されるまで、商品販売がなされる度に、会計処理(販売計算処理)及び販売データの記録処理が行われる。   After that, unless a fraudulent act such as replacement or removal of the printer 9 is performed, accounting processing (sales calculation is performed each time a product is sold until the accounting processing unit 84 is stopped when the store is closed. Processing) and sales data recording processing.

具体的には、まず、フィスカル制御部90は、会計処理部84の停止条件が成立したか否かをチェックする(図4のステップS28)。ここで、会計処理部84の停止条件としては、政府サーバー6(情報発行部61)から送信される停止キーを取得部902が受信した、又は、所定の時刻になった、という条件を用いることができる。また、この所定の時刻には、上記起動キーを受信した時刻から所定時間後の時刻、上記起動キーに包含されている時刻、又は、予め定められた閉店時刻を用いることができる。判断部903により、当該停止条件の成立が判断され、停止条件が成立していなければ(図4のステップS28のNo)、レジスター端末装置8のレジスター制御部81とプリンター9のフィスカル制御部90は、商品販売がなされて顧客がレジに来た際の処理を開始する(図4のステップS29のYes)。   Specifically, first, the fiscal control unit 90 checks whether or not the stop condition of the transaction processing unit 84 is satisfied (step S28 in FIG. 4). Here, as the stop condition of the accounting processing unit 84, the condition that the stop key transmitted from the government server 6 (information issuing unit 61) is received by the acquisition unit 902 or the predetermined time is reached is used. You can Further, as the predetermined time, a time after a predetermined time from the time when the activation key is received, a time included in the activation key, or a predetermined closing time can be used. The determination unit 903 determines that the stop condition is satisfied, and if the stop condition is not satisfied (No in step S28 of FIG. 4), the register control unit 81 of the register terminal device 8 and the fiscal control unit 90 of the printer 9 are Then, the processing when the product is sold and the customer comes to the cashier is started (Yes in step S29 in FIG. 4).

この時点で、レジスター制御部81の動作制御部83は、会計処理毎(レシート発行毎)のプリンター9との整合性チェックを行う。当該チェックには、上述したレシート番号範囲情報を用いる。具体的には、まず、動作制御部83が当該会計処理に対して発行するレシートのレシート番号を決定する(図4のステップS30)。上述の通り、発行するレシートには、政府サーバー6で生成されるレシート番号範囲内であって連番のレシート番号を付すので、動作制御部83は、そのルールに従ってレシート番号を決定する。上述の通り、一例として「00000〜00200」のレシート番号範囲情報が政府サーバー6から送られて記憶されている場合には、その日の最初の顧客に対する商品販売では「00001」のレシート番号が決定される。その後、順次、「00002」、「00003」、・・・というようにレシート番号が決定される。   At this point, the operation control unit 83 of the register control unit 81 checks the consistency with the printer 9 for each accounting process (each receipt issuance). The receipt number range information described above is used for the check. Specifically, first, the operation control unit 83 determines the receipt number of the receipt issued for the accounting process (step S30 in FIG. 4). As described above, since the receipts to be issued are sequentially numbered within the receipt number range generated by the government server 6, the operation control unit 83 determines the receipt numbers according to the rule. As described above, as an example, when the receipt number range information of “0000 to 00200” is sent from the government server 6 and stored, the receipt number of “00001” is determined in the merchandise sales to the first customer of the day. It After that, the receipt numbers are sequentially determined as "00002", "00003",....

次に、動作制御部83は、プリンター9に問い合わせて、フィスカル制御部90から返答されるレシート番号範囲情報を取得する(図4のステップS31)。ここで取得されるレシート番号範囲情報は、ステップS23で記憶部901に記憶されたレシート番号範囲情報である。   Next, the operation control unit 83 makes an inquiry to the printer 9 and acquires the receipt number range information returned from the fiscal control unit 90 (step S31 in FIG. 4). The receipt number range information acquired here is the receipt number range information stored in the storage unit 901 in step S23.

次に、動作制御部83は、当該取得したレシート番号範囲情報が示すレシート番号範囲内に、上記決定したレシート番号が入っているか否かを判断する(図4のステップS32)。当該判断の結果、上記レシート番号範囲内に入っていない場合には(図4のステップS32のNo)、動作制御部83は、プリンター9が当該処理の開始時(開店時)から別のプリンターに取りかえられたと判断し、すなわち、レジスター端末装置8とプリンター9の不整合が発生したと判断し、会計処理部84の動作を停止する処理を開始する。具体的には、処理が図4のステップS42に移行する。   Next, the operation control unit 83 determines whether or not the determined receipt number is included in the receipt number range indicated by the acquired receipt number range information (step S32 in FIG. 4). As a result of the determination, if the receipt number range is not within the receipt number range (No in step S32 of FIG. 4), the operation control unit 83 causes the printer 9 to switch to another printer from the start of the process (when the store is opened). It is determined that the transaction has been replaced, that is, it is determined that a mismatch between the register terminal device 8 and the printer 9 has occurred, and the process of stopping the operation of the accounting processing unit 84 is started. Specifically, the processing shifts to step S42 in FIG.

また、上述したプリンター9からのレシート番号範囲情報の取得(S31)において、プリンター9からの応答がない場合(情報を取得できない場合)にも、動作制御部83は、上記レシート番号範囲内に入っていないと判断し(図4のステップS32のNo)、処理が図4のステップS42に移行する。かかる場合は、当該処理後、プリンター9が取り外されていることが推察される。このような場合には、フィスカルデータを記憶せずに不正に会計処理がなされる虞があるので、上述の通り、会計処理部84の動作を停止する処理が行われる。   Further, in the above-described receipt number range information acquisition from the printer 9 (S31), even when there is no response from the printer 9 (when information cannot be acquired), the operation control unit 83 enters the receipt number range. If not (No in step S32 in FIG. 4), the process proceeds to step S42 in FIG. In such a case, it is presumed that the printer 9 has been removed after the processing. In such a case, the accounting process may be illegally performed without storing the fiscal data, and thus the process of stopping the operation of the accounting processing unit 84 is performed as described above.

一方、上記決定したレシート番号が上記レシート番号範囲内に入っている場合には(図4のステップS32のYes)、動作制御部83は、当該処理の開始時(開店時)におけるレジスター端末装置8とプリンター9の整合が保たれていると判断し、当該顧客への商品販売について会計処理を行ってもよい旨の指示を会計処理部84へ出す。   On the other hand, when the determined receipt number is within the receipt number range (Yes in step S32 of FIG. 4), the operation control unit 83 causes the register terminal device 8 at the start of the process (when the store is opened). It is determined that the printer 9 and the printer 9 are consistent with each other, and the accounting processing unit 84 is instructed that accounting processing may be performed on the product sales to the customer.

当該指示受けて、会計処理部84は、会計処理を実行する(図4のステップS33)。会計処理自体は、従来のレジスターで行われている処理と同様に行われる。   Upon receiving the instruction, the accounting processing unit 84 executes accounting processing (step S33 in FIG. 4). The accounting process itself is performed in the same way as the process performed in a conventional register.

会計処理部84は、会計処理後、レシートの出力処理を行う(図4のステップS34)。具体的には、当該商品販売に係る会計情報をレシートデータとしてプリンタードライバー実行部82へ渡す。プリンタードライバー実行部82はその情報を印刷データとしてプリンター9へ送信する。   After the accounting processing, the accounting processing unit 84 performs receipt output processing (step S34 in FIG. 4). Specifically, the accounting information related to the product sale is passed to the printer driver execution unit 82 as receipt data. The printer driver execution unit 82 transmits the information to the printer 9 as print data.

送信された印刷データはフィスカル制御部90によって受信され、取得部902はその印刷データからレシート番号を取得し、また、記憶部901に記憶されるレシート番号範囲情報を取得する(図4のステップS35)。   The transmitted print data is received by the fiscal control unit 90, the acquisition unit 902 acquires the receipt number from the print data, and also acquires the receipt number range information stored in the storage unit 901 (step S35 in FIG. 4). ).

次に、判断部903は、当該取得したレシート番号範囲情報が示すレシート番号範囲内に、当該取得したレシート番号が入っているか否かを判断する(図4のステップS36)。当該判断の結果、上記レシート番号範囲内に入っていない場合には(図4のステップS36のNo)、判断部903は、レジスター端末装置8とプリンター9の不整合が発生したと判断し、会計処理部84の動作を停止する処理を開始する。具体的には、処理が図4のステップS39に移行する。   Next, the determination unit 903 determines whether the acquired receipt number is included in the receipt number range indicated by the acquired receipt number range information (step S36 in FIG. 4). As a result of the determination, if the receipt number range is not within the range (No in step S36 of FIG. 4), the determination unit 903 determines that the register terminal device 8 and the printer 9 are inconsistent, and the transaction is completed. The process of stopping the operation of the processing unit 84 is started. Specifically, the processing shifts to step S39 in FIG.

一方、上記レシート番号が上記レシート番号範囲内に入っている場合には(図4のステップS36のYes)、判断部903は、当該処理の開始時(開店時)におけるレジスター端末装置8とプリンター9の整合が保たれていると判断し、当該顧客への商品販売についてレシートの出力処理を続行する。   On the other hand, when the receipt number is within the receipt number range (Yes in step S36 of FIG. 4), the determination unit 903 causes the register terminal device 8 and the printer 9 at the start of the process (when the store is opened). It is judged that the consistency of the above is maintained, and the receipt output process is continued for the product sales to the customer.

そして、この場合には、上記受信した印刷データがフィスカル制御部90から印刷制御部91に渡され、その印刷データに従って印刷制御部91及び印刷実行部92によりレシートが印刷されて出力される(図4のステップS37)。出力されたレシートは顧客に渡される。   In this case, the received print data is passed from the fiscal control unit 90 to the print control unit 91, and the receipt is printed and output by the print control unit 91 and the print executing unit 92 according to the print data (Fig. 4 step S37). The output receipt is passed to the customer.

引き続き、フィスカル制御部90は、受信した印刷データをメモリー制御部93に渡す。メモリー制御部93は、当該印刷データを元に当該商品販売に係るフィスカルデータを生成し、暗号化して、フィスカルメモリー94に記録する(図4のステップS38)。   Subsequently, the fiscal control unit 90 transfers the received print data to the memory control unit 93. The memory control unit 93 generates the fiscal data related to the sale of the product based on the print data, encrypts it, and records it in the fiscal memory 94 (step S38 in FIG. 4).

その後、上述した停止条件が成立するか(図4のステップS28のYes)、上述したプリンター9との不整合が発生するまで(図4のステップS32のNo)、以上の会計処理、レシート出力処理、及び、フィスカルデータの記録処理が、商品販売の度に繰り返し実行される。   After that, until the above-described stop condition is satisfied (Yes in step S28 in FIG. 4) or the above-described inconsistency with the printer 9 occurs (No in step S32 in FIG. 4), the above accounting process and receipt output process , And the fiscal data recording process is repeatedly executed every time the product is sold.

そして、判断部903が、上記停止条件が成立したと判断した場合(図4のステップS28のYes)、又は、上記不整合が発生したと判断した場合(図4のステップS36のNo)には、フィスカル制御部90は、当該処理の開始時からのフィスカルデータを政府サーバー6へ送信して会計処理部84の動作を停止状態にする処理を行う。なお、政府サーバー6から送信される停止キーの受信を停止条件とする場合には、情報発行部61が所定の時刻に停止キーを生成し、レジスターシステム800へ送信する。また、当該所定の時刻としては、上記起動キーを送信した時刻から所定時間後の時刻、又は、予め定められた閉店時刻を用いることができる。   When the determination unit 903 determines that the stop condition is satisfied (Yes in step S28 in FIG. 4) or the mismatch is determined (No in step S36 in FIG. 4), The fiscal control unit 90 transmits the fiscal data from the start of the process to the government server 6 to stop the operation of the accounting processing unit 84. In addition, when the stop condition is to receive the stop key transmitted from the government server 6, the information issuing unit 61 generates the stop key at a predetermined time and transmits the stop key to the register system 800. Further, as the predetermined time, a time after a predetermined time from the time when the activation key is transmitted, or a predetermined closing time can be used.

具体的には、まず、取得部902がフィスカルデータの取得処理を行う(図4のステップS39)。当該取得処理では、取得部902がメモリー制御部93へ指示を出し、制御部93が、上記会計処理部84の起動からこれまでにフィスカルメモリー94に記録されたフィスカルデータ(販売データ)を読み出す。当該読み出されたデータは、取得部902によって取得される。   Specifically, first, the acquisition unit 902 performs a process of acquiring fiscal data (step S39 in FIG. 4). In the acquisition process, the acquisition unit 902 issues an instruction to the memory control unit 93, and the control unit 93 reads the fiscal data (sales data) recorded in the fiscal memory 94 from the activation of the accounting processing unit 84 until now. The read data is acquired by the acquisition unit 902.

その後、取得部902は、取得したフィスカルデータを政府サーバー6へ送信する(図4のステップS40)。これにより、その日のフィスカルデータが政府サーバー6へ吸い上げられる。   After that, the acquisition unit 902 transmits the acquired fiscal data to the government server 6 (step S40 in FIG. 4). As a result, the fiscal data of the day is downloaded to the government server 6.

送信されたフィスカルデータは、データ収集部62により受信され、売上データ記録部63に格納される(図4のステップS41)。格納されるデータは、当該レジスターシステム800のレジIDによって読み出し可能に記憶される。   The transmitted fiscal data is received by the data collection unit 62 and stored in the sales data recording unit 63 (step S41 in FIG. 4). The stored data is stored in a readable manner by the cashier ID of the register system 800.

当該データの格納処理が正常に完了すると、データ収集部62はその旨を当該レジスターシステム800に通知し、当該通知をレジスター端末装置8経由で受信したフィスカル制御部90では、起動・停止部904が、レジスター端末装置8のレジスター制御部81へ停止コマンドを送信し、会計処理部84を動作不能とさせる、すなわち、停止状態とさせる(図4のステップS42)。   When the storage process of the data is normally completed, the data collection unit 62 notifies the register system 800 of that fact, and in the fiscal control unit 90 which receives the notification via the register terminal device 8, the start/stop unit 904 is , Sends a stop command to the register control unit 81 of the register terminal device 8 to make the accounting processing unit 84 inoperable, that is, put it in a stopped state (step S42 in FIG. 4).

また、上述したステップS32において、レジスター端末装置8の動作制御部83がプリンター9と不整合であると判断した場合には(図4のステップS32のNo)、動作制御部83が会計処理部84の動作を停止する。   If the operation control unit 83 of the register terminal device 8 determines in step S32 that the printer 9 is inconsistent (No in step S32 of FIG. 4), the operation control unit 83 causes the accounting processing unit 84. Stop the operation of.

これ以降、次に起動キーを受信して起動がなされるまで、当該レジスター端末装置8の会計処理機能を使用することはできない。なお、当該停止処理において、フィスカルメモリー94に記憶されていたフィスカルデータを消去する処理を行うようにしてもよい。   After that, the accounting processing function of the register terminal device 8 cannot be used until the next activation key is received and activated. In the stop process, the process of deleting the fiscal data stored in the fiscal memory 94 may be performed.

以上説明したように、各レジスターシステム800における処理が実行される。   As described above, the processing in each register system 800 is executed.

また、上記説明では、レシートを発行しようとする度に、レシート番号による整合性チェック(S32、S36)を行うが、当該チェックを毎回行わず、所定回数(例えば、10回)のレシートの発行毎に行うようにしてもよい。   In the above description, the consistency check (S32, S36) based on the receipt number is performed each time a receipt is issued, but the check is not performed every time, and the receipt is issued a predetermined number of times (for example, 10 times). You may make it to.

なお、上記説明では、店舗の開店時にレジスターシステム800が使用可能になり、その日の閉店時に使用不可となる態様で、すなわち、営業日1日単位で、政府からレジの使用が許可され、政府はその日のデータをその日のうちに取得するという態様であったが、この管理期間を変更した態様(例えば、2日毎)としてもよい。   In the above description, the register system 800 can be used when the store is opened, and cannot be used when the store is closed on that day, that is, the cashier is permitted to be used by the government on a business day-by-day basis. Although the data of the day is acquired during the day, the management period may be changed (for example, every two days).

以上説明したように、本徴税システム700では、政府サーバー6から送付される認証情報に基づいて、インテリジェントプリンターであるプリンター9により、会計処理機能の起動・停止が制御される。従って、会計処理の不正行為を抑制できる。   As described above, in the tax collection system 700, the printer 9, which is an intelligent printer, controls the start/stop of the accounting processing function based on the authentication information sent from the government server 6. Therefore, the fraudulent act of accounting processing can be suppressed.

特に、政府サーバー6から送付されるキー情報によって会計処理機能の使用時間が制限され、正規の時間帯以外での使用ができないため、空打ちなどの不正行為を効果的に防止することができる。   In particular, the key information sent from the government server 6 limits the usage time of the accounting processing function and cannot be used outside the regular time zone, so that fraudulent activity such as blank hitting can be effectively prevented.

また、政府サーバー6から送付される起動キーは、レジスターシステム800毎に異なり、毎回変化するので、同じキー情報の生成が難しく、不正な会計処理機能の起動を防止できる。   In addition, the activation key sent from the government server 6 is different for each register system 800 and changes every time. Therefore, it is difficult to generate the same key information, and it is possible to prevent an unauthorized activation of the accounting processing function.

また、政府サーバー6から送付される整合情報(プリンターIDとレシート番号範囲情報)に基づいて、レジスター端末装置8とプリンター9の整合性がチェックされ、不整合の場合には、会計処理部84が停止状態となって会計処理を行うことができない。従って、プリンター9の置き換え等による不正行為を防止することができる。   In addition, based on the matching information (printer ID and receipt number range information) sent from the government server 6, the matching between the register terminal device 8 and the printer 9 is checked. Accounting cannot be performed due to the suspension. Therefore, it is possible to prevent fraudulent acts such as replacement of the printer 9.

また、会計処理機能を停止させる際に(例えば、毎日)、動作していた間のフィスカルデータ(販売データ)が政府サーバー6に回収されるので、データの改ざんが難しい。   Further, when the accounting processing function is stopped (for example, every day), the fiscal data (sales data) while operating is collected by the government server 6, so that it is difficult to falsify the data.

また、その際のデータ通信は、送信されるデータが暗号化された後に行われるので、この点でもデータの改ざんを防止できる。   Further, the data communication at that time is performed after the data to be transmitted is encrypted, and thus it is possible to prevent the data from being tampered with.

また、レジスター端末装置8にインストールされるレジスタープログラム等は、政府に公認されたものであり、また、頻繁に更新が必要なものとすることにより、不正をより効果的に防止できる。   Further, the register program and the like installed in the register terminal device 8 are officially approved by the government, and by requiring frequent updates, fraud can be prevented more effectively.

また、出力し顧客に渡したレシートを回収する方策を用いることにより、発生した不正行為を見つけ易くなり、かつ、不正行為を抑止することができる。   In addition, by using the policy of collecting the receipt that is output and given to the customer, it becomes easy to detect the illegal act that has occurred, and it is possible to suppress the illegal act.

さらに、レジスター端末装置8にスマートフォンなどの汎用機器を使用し、レジスタープログラムを一般的なプログラムプロバイダー又はアプリストアからダウンロードする構成としているので、導入が比較的容易である。   Furthermore, since a general-purpose device such as a smartphone is used as the register terminal device 8 and the register program is downloaded from a general program provider or an app store, the introduction is relatively easy.

また、政府サーバー6により、各店舗の販売データが日々自動的に収集されるので、政府の徴税のための労力を削減することができる。   Further, the government server 6 automatically collects the sales data of each store every day, so that it is possible to reduce the labor for collecting the tax of the government.

本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。   The protection scope of the present invention is not limited to the above-described embodiments, but extends to the inventions described in the claims and their equivalents.

1、6 政府サーバー、 2、7 アプリサーバー、 3、8 レジスター端末装置、 4、9 プリンター、 5、10 ネットワーク、 11、61 情報発行部、 12、62 データ収集部、 13、63 売上データ記録部、 21、71 アプリ配信部、 22、72 プログラム格納部、 31、81 レジスター制御部、 32、82 プリンタードライバー実行部、 33 起動・停止制御部、 34、84 会計処理部、 40、90 フィスカル制御部、 41、91 印刷制御部、 42、92 印刷実行部、 43、93 メモリー制御部、 44、94 フィスカルメモリー、 60 登録部、 83 動作制御部、 100、800 レジスターシステム、 200、700 徴税システム、 331、901 記憶部、 332、902 取得部、 333、903 判断部、 334、904 起動・停止部   1, 6 Government server, 2, 7 application server, 3, 8 register terminal device, 4, 9 printer, 5, 10 network, 11, 61 information issuing unit, 12, 62 data collecting unit, 13, 63 sales data recording unit , 21, 71 application distribution unit, 22, 72 program storage unit, 31, 81 register control unit, 32, 82 printer driver execution unit, 33 start/stop control unit, 34, 84 accounting processing unit, 40, 90 fiscal control unit , 41, 91 print control unit, 42, 92 print execution unit, 43, 93 memory control unit, 44, 94 fiscal memory, 60 registration unit, 83 operation control unit, 100, 800 register system, 200, 700 tax collection system, 331 , 901 storage unit, 332, 902 acquisition unit, 333, 903 determination unit, 334, 904 start/stop unit

Claims (9)

商品販売時に会計処理を実行しレシートをプリンターから出力させるレジスター端末装置における会計処理の制御方法であって、
当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶工程と、
前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断工程と、
前記判断の結果に基づいて、前記会計処理の動作状態を制御する起動・停止工程と、
前記プリンターから当該プリンターが記憶するレシート番号範囲情報を取得する取得工程と、を有し、
前記判断工程において、前記記憶された前記整合判断情報に含まれるレシート番号範囲情報が示すレシート番号範囲内でレシート番号を決定し、当該決定したレシート番号が前記取得されたレシート番号範囲情報が示すレシート番号範囲内であれば整合性ありと判断し、当該レシート番号範囲内でなければ不整合と判断し、
前記起動・停止工程において、前記判断により整合性ありと判断された場合には、前記会計処理を動作可能状態とし、前記判断により不整合と判断された場合には、前記会計処理を停止状態とする
ことを特徴とする会計処理の制御方法。
A method of controlling accounting processing in a register terminal device which executes accounting processing when a product is sold and outputs a receipt from a printer,
A storage step of storing the matching judgment information of the register terminal device and the printer,
A determining step of determining the consistency between the register terminal device and the printer based on the stored matching determination information;
A start/stop step of controlling the operating state of the accounting process based on the result of the determination;
Have, an acquisition step of acquiring receipt number range information which the printer is stored from the printer,
In the determining step, a receipt number is determined within the receipt number range indicated by the receipt number range information included in the stored matching determination information, and the determined receipt number is the receipt indicated by the acquired receipt number range information. If it is within the number range, it is judged that there is consistency, if it is not within the receipt number range, it is judged as inconsistent,
In the start/stop process, if the judgment determines that there is consistency, the accounting process is set to the operable state, and if the judgment is judged to be inconsistent, the accounting process is stopped. A method of controlling accounting processing characterized by:
請求項1において、
前記プリンターから当該プリンターの個体識別情報を取得する工程をさらに有し、
前記判断工程において、当該取得された個体識別情報が前記記憶された前記整合判断情報に含まれる個体識別情報と一致していれば整合性ありと判断し、一致していなければ不整合と判断し、
前記起動・停止工程において、前記判断により整合性ありと判断した場合には、前記会計処理を動作可能状態とし、前記判断により不整合と判断された場合には、前記会計処理を停止状態とする
ことを特徴とする会計処理の制御方法。
In claim 1,
Further comprising the step of acquiring individual identification information of the printer from the printer,
In the determination step, if the acquired individual identification information matches the individual identification information included in the stored matching determination information, it is determined that there is consistency, and if they do not match, it is determined that there is inconsistency. ,
In the start/stop process, if the judgment determines that there is consistency, the accounting process is set to the operable state, and if the judgment is judged to be inconsistent, the accounting process is stopped. A method for controlling accounting processing characterized by the above.
請求項2において、
前記会計処理の開始前に、
前記個体識別情報を取得し、前記個体識別情報に基づいた判断を行う
ことを特徴とする会計処理の制御方法。
In claim 2,
Before the start of the accounting process,
A method for controlling accounting processing, characterized in that the individual identification information is acquired and a judgment is made based on the individual identification information.
請求項1において、
前記レシートの出力の度に、当該レシートに係る前記会計処理の前に、
前記レシート番号範囲情報を取得し、前記レシート番号範囲情報に基づいた判断を行う ことを特徴とする会計処理の制御方法。
In claim 1,
Each time the receipt is output, before the accounting process for the receipt,
A method of controlling an accounting process, characterized in that the receipt number range information is acquired and a judgment is made based on the receipt number range information.
請求項1または4において、
前記取得工程において、前記会計処理の開始前に、前記記憶されるレシート番号範囲情報を前記プリンターに記憶させる
ことを特徴とする会計処理の制御方法。
In claim 1 or 4,
In the acquisition step, the stored receipt number range information is stored in the printer before the start of the accounting process.
請求項1において、
更に、前記プリンターから情報を取得する取得工程を有し、
前記起動・停止工程において、前記取得工程で前記プリンターから情報を取得できない場合には、前記会計処理を停止状態とする
ことを特徴とする会計処理の制御方法。
In claim 1,
Furthermore, it has an acquisition step of acquiring information from the printer,
In the start/stop process, when the information cannot be acquired from the printer in the acquisition process, the accounting process is stopped.
商品販売時に会計処理を実行しレシートをプリンターから出力させるレジスター端末装置における会計処理の制御方法であって、
当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶工程と、
前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断工程と、
前記判断の結果に基づいて、前記会計処理の動作状態を制御する起動・停止工程と、
前記会計処理の開始前に、当該レジスター端末装置と通信可能に接続されるフィスカルデータを管理するサーバーから、前記整合判断情報を取得する取得工程と、を有し、前記記憶工程において、前記取得された整合判断情報を記憶する
ことを特徴とする会計処理の制御方法。
A method of controlling accounting processing in a register terminal device which executes accounting processing when a product is sold and outputs a receipt from a printer,
A storage step of storing the matching judgment information of the register terminal device and the printer,
A determining step of determining the consistency between the register terminal device and the printer based on the stored matching determination information;
A start/stop step of controlling the operating state of the accounting process based on the result of the determination;
An acquisition step of acquiring the matching determination information from a server that manages fiscal data communicatively connected to the register terminal device before starting the accounting process; A method of controlling accounting processing, characterized in that the matching judgment information is stored.
商品販売時に会計処理を実行するレジスター端末装置と、当該レジスター端末装置の指示に従ってレシートを出力するプリンターを有するレジスターシステムであって、
前記レジスター端末装置は、
前記会計処理を実行し、当該会計処理に係る前記レシートを前記プリンターから出力させる会計処理部と、
当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶部と、
前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断部と、
前記判断の結果に基づいて、前記会計処理部の動作状態を制御する起動・停止部と、を備え、
前記プリンターは、個体識別情報を有し、前記レシートの印刷および前記会計処理に係るフィスカルデータの記憶を指示するフィスカル制御部を備え、
前記レジスター端末装置は、
前記プリンターから当該プリンターが記憶するレシート番号範囲情報を取得する取得部をさらに備え、
前記判断部は、前記記憶された前記整合判断情報に含まれるレシート番号範囲情報が示すレシート番号範囲内でレシート番号を決定し、当該決定したレシート番号が前記取得されたレシート番号範囲情報が示すレシート番号範囲内であれば整合性ありと判断し、当該レシート番号範囲内でなければ不整合と判断し、
前記起動・停止部は、前記判断により整合性ありと判断された場合には、前記会計処理を動作可能状態とし、前記判断により不整合と判断された場合には、前記会計処理を停止状態とする
ことを特徴とするレジスターシステム。
A register system having a register terminal device for performing accounting processing when a product is sold, and a printer for outputting a receipt according to an instruction of the register terminal device,
The register terminal device,
An accounting processing unit that executes the accounting process and outputs the receipt relating to the accounting process from the printer;
A storage unit for storing the matching judgment information of the register terminal device and the printer;
A judgment unit for judging the consistency between the register terminal device and the printer based on the stored matching judgment information;
A start/stop unit that controls the operating state of the accounting processing unit based on the result of the determination;
The printer includes a fiscal control unit that has individual identification information and that instructs printing of the receipt and storage of fiscal data related to the accounting process.
The register terminal device,
Further comprising: an obtaining unit obtaining a receipt number range information which the printer is stored from the printer,
The determination unit determines a receipt number within a receipt number range indicated by the receipt number range information included in the stored matching determination information, and the determined receipt number is a receipt indicated by the acquired receipt number range information. If it is within the number range, it is judged that there is consistency, if it is not within the receipt number range, it is judged as inconsistent,
The start/stop unit sets the accounting process to an operable state when it is determined that there is consistency in the determination, and sets the accounting process to be in a stopped state when it is determined to be inconsistent in the determination. A register system characterized by:
商品販売時に会計処理を実行するレジスター端末装置と、当該レジスター端末装置の指示に従ってレシートを出力するプリンターを有するレジスターシステムであって、
前記レジスター端末装置は、
前記会計処理を実行し、当該会計処理に係る前記レシートを前記プリンターから出力させる会計処理部と、
当該レジスター端末装置と前記プリンターの整合判断情報を記憶する記憶部と、
前記記憶される整合判断情報に基づいて、当該レジスター端末装置と前記プリンターの整合性を判断する判断部と、
前記判断の結果に基づいて、前記会計処理部の動作状態を制御する起動・停止部と、を備え、
前記プリンターは、個体識別情報を有し、前記レシートの印刷および前記会計処理に係るフィスカルデータの記憶を指示するフィスカル制御部を備え、
前記レジスター端末装置は、
前記会計処理の開始前に、当該レジスター端末装置と通信可能に接続されるフィスカルデータを管理するサーバーから、前記整合判断情報を取得する取得部をさらに備え、
前記記憶部は、前記取得された整合判断情報を記憶する
ことを特徴とするレジスターシステム。
A register system having a register terminal device for performing accounting processing when a product is sold, and a printer for outputting a receipt according to an instruction of the register terminal device,
The register terminal device,
An accounting processing unit that executes the accounting process and outputs the receipt related to the accounting process from the printer;
A storage unit for storing the matching judgment information of the register terminal device and the printer;
A judgment unit for judging the consistency between the register terminal device and the printer based on the stored matching judgment information;
A start/stop unit that controls the operating state of the accounting processing unit based on the result of the determination;
The printer includes a fiscal control unit having individual identification information and instructing printing of the receipt and storage of fiscal data relating to the accounting process,
The register terminal device,
Before starting the accounting process, further comprising an acquisition unit for acquiring the matching determination information from a server that manages fiscal data communicatively connected to the register terminal device,
The register system, wherein the storage unit stores the acquired matching determination information.
JP2019033837A 2014-01-21 2019-02-27 Accounting processing control method and register system Expired - Fee Related JP6699771B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2014008464 2014-01-21
JP2014008464 2014-01-21
JP2014009253 2014-01-22
JP2014009253 2014-01-22

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014195172A Division JP6488609B2 (en) 2014-01-21 2014-09-25 Accounting control method and register system

Publications (2)

Publication Number Publication Date
JP2019135649A JP2019135649A (en) 2019-08-15
JP6699771B2 true JP6699771B2 (en) 2020-05-27

Family

ID=54182813

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2014195172A Expired - Fee Related JP6488609B2 (en) 2014-01-21 2014-09-25 Accounting control method and register system
JP2019033837A Expired - Fee Related JP6699771B2 (en) 2014-01-21 2019-02-27 Accounting processing control method and register system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2014195172A Expired - Fee Related JP6488609B2 (en) 2014-01-21 2014-09-25 Accounting control method and register system

Country Status (2)

Country Link
JP (2) JP6488609B2 (en)
TW (1) TWI545527B (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005115678A (en) * 2003-10-08 2005-04-28 Seiko Epson Corp Print system, personal digital assistance, mobile printer, program, and combination control method
JP2006350687A (en) * 2005-06-16 2006-12-28 Seiko Epson Corp Pos device, printer, credit processing terminal, and pos processing method

Also Published As

Publication number Publication date
JP6488609B2 (en) 2019-03-27
TWI545527B (en) 2016-08-11
JP2015158899A (en) 2015-09-03
TW201535325A (en) 2015-09-16
JP2019135649A (en) 2019-08-15

Similar Documents

Publication Publication Date Title
JP5310318B2 (en) Receipt printing apparatus, receipt printing apparatus control method, and program
JP5799757B2 (en) Receipt management device, receipt management system, and receipt management device control method
JP2002202697A (en) Method for discriminating genuine article, replacement part used therefor, genuine article managing device, genuine article handling device, genuine article managing network system, and computer-readable recording medium with program for executing the method for discriminating genuine article recorded thereon
JP6699771B2 (en) Accounting processing control method and register system
JP6171714B2 (en) Cash management machine, checkout processing system, cash management machine control method
JP5983182B2 (en) Settlement processing system, settlement method control method, program
JP2005301826A (en) Pos system and printer
JP2023014284A (en) Information processing apparatus and program
JP5756432B2 (en) Credit processing apparatus and program thereof
JP2007241338A (en) Operator monitoring device and operator monitoring method
CN109284997A (en) Server, system and control method
JP5428819B2 (en) Sales data processing system and program
JP2015005135A (en) Reading device, reading method, program and authentication system
JP2015032136A (en) Fiscal register terminal, fiscal register system, program for register, and sale recording method
CN104794833B (en) The control method and cash register system of settlement process
JP2007241339A (en) Operator monitoring device and operator monitoring method
JP6960752B2 (en) Sales data processing equipment and programs
JP6781999B2 (en) Product sales data processing equipment and programs
JP2015152998A (en) Printer and control method of the same
JP2008168067A (en) Commodity trading mediation system, commodity trading mediation method, and computer program
CN110399245B (en) Code pattern printing control method and device and electronic equipment
JP7001497B2 (en) Payment terminals, payment processing systems, and programs
JP2015176415A (en) Fiscal authentication device and fiscal authentication method
JP6194332B2 (en) Sales data processing apparatus and program
KR102254417B1 (en) Apparatus for Issuing Lottery and Driving Method Thereof, System for Issuing Lottery and Driving Method Thereof

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190320

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190320

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191210

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200121

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200226

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200413

R150 Certificate of patent or registration of utility model

Ref document number: 6699771

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees