Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6488609B2 - Accounting control method and register system - Google Patents
[go: Go Back, main page]

JP6488609B2 - Accounting control method and register system - Google Patents

Accounting control method and register system Download PDF

Info

Publication number
JP6488609B2
JP6488609B2 JP2014195172A JP2014195172A JP6488609B2 JP 6488609 B2 JP6488609 B2 JP 6488609B2 JP 2014195172 A JP2014195172 A JP 2014195172A JP 2014195172 A JP2014195172 A JP 2014195172A JP 6488609 B2 JP6488609 B2 JP 6488609B2
Authority
JP
Japan
Prior art keywords
printer
information
register
terminal device
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
JP2014195172A
Other languages
Japanese (ja)
Other versions
JP2015158899A (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
Priority to JP2014195172A priority Critical patent/JP6488609B2/en
Priority to TW104101578A priority patent/TWI545527B/en
Priority to CN201510025692.XA priority patent/CN104794833B/en
Publication of JP2015158899A publication Critical patent/JP2015158899A/en
Application granted granted Critical
Publication of JP6488609B2 publication Critical patent/JP6488609B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

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

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

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

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

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

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

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

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

しかしながら、レジスター(レジスター端末)がテスト用として備えているテスト動作モード(テスト動作プログラム)で空トランザクション(架空取引)として会計処理を行うなど、フィスカルプリンターを備えた従来のレジスターにおいても脱法行為(不正行為)を完全には防止することはできず、さらに効果的な対応技術が望まれる。   However, even with conventional registers equipped with fiscal printers, such as performing accounting processing as empty transactions (fictional transactions) in the test operation mode (test operation program) provided for testing by the register (register terminal) Act) 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-regular printer, sales data will not be recorded, or the sales data will not be sufficiently protected and altered. There is a risk of it. In this way, there is a possibility of illicit behavior by replacing the fiscal printer.

そして、上記特許文献に記載の内容では、このような課題を十分に解決できない。   And the content described in the said patent document cannot fully solve such a subject.

そこで、本発明の目的は、レジの空打ちやプリンターの置き換え等による不正行為を効果的に防止することのできる会計処理の制御方法等を提供することである。   SUMMARY OF THE INVENTION An object of the present invention is to provide a control method for accounting processing and the like that can effectively prevent fraudulent acts caused by idle registration or printer replacement.

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

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

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

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

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

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

更にまた、上記発明において、一つの好ましい態様は、更に、前記プリンターから情報を取得する取得工程を有し、前記起動・停止工程において、前記取得工程で前記プリンターから情報を取得できない場合には、前記会計処理を停止状態とする、ことを特徴とする。   Furthermore, in the above-mentioned invention, one preferable aspect further includes 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, The accounting process is stopped.

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

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

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

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

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

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

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

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

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

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

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

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

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

本発明を適用したレジスター端末装置を含むレジスターシステム及び徴税システムの第1の実施の形態例に係る機能構成図である。It is a functional lineblock diagram concerning the example of a 1st embodiment of a register system and a tax collection system including a register terminal device to which the present invention is applied. レジスター端末装置3の起動から停止までの処理手順を例示したフローチャートである。5 is a flowchart illustrating a processing procedure from starting to stopping of the register terminal device 3. 本発明を適用したプリンターを含むレジスターシステム及び徴税システムの第2の実施の形態例に係る機能構成図である。It is a functional block diagram concerning the 2nd example of a register system including a printer to which the present invention is applied, and a tax collection system. 会計処理機能の起動から停止までの処理手順を例示したフローチャートである。It is the flowchart which illustrated the processing procedure from starting 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 elements are denoted by 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. Hereinafter, a first embodiment of the present invention will be described.

図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. The register terminal device 3 indicates the consistency with the printer 4, the individual identification information of the printer 4, and the issued receipt number. 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 due to replacement of the printer 4 or the like.

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

政府サーバー1は、政府の国税局など徴税を管轄する部署によって管理されるサーバーシステム(コンピューターシステム)であり、フィスカルデータ(販売データ)を管理する。当該政府サーバー1は、予め定められた者のみが操作可能であり、そこに記録されるデータの改ざん、漏洩を防止する措置が施される。また、当該サーバーは、図示していないが、CPU、RAM、ROM、HDD、表示装置、操作装置、通信インターフェース等のハードウェアで構成される。   The government server 1 is a server system (computer system) that is 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 are taken to prevent falsification and leakage of data recorded therein. Although not shown, the server is configured by hardware such as a CPU, RAM, ROM, HDD, display device, operation 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 for issuing key information for starting / stopping each register terminal device 3 and generating a receipt number issued by each register terminal device 3. Next, the data collection unit 12 is a part that collects sales data recorded in the printer 4 of each store. The sales data recording unit 13 is a part for recording 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 describing the processing performed by the information issuing unit 11 and a CPU, RAM, and the like that execute processing according to the program. The data recording unit 13 is configured by 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 of the register terminal devices 3. For example, application software for a smartphone or a tablet terminal is downloaded. A server operated by a provider that sells and distributes.

当該レジスタープログラムは、各店舗における商品販売時に会計処理を行うためのアプリケーションプログラムであり、政府に公認されたものである。なお、本実施形態では、当該レジスタープログラムの配信を政府から民間に委託しこのような構成であるが、上述した政府サーバー1がアプリサーバー2の機能を兼ねる構成としてもよい。   The register program is an application program for performing accounting processing at the time of product sales in each store, and is approved by the government. In this embodiment, the distribution of the register program is entrusted to the private sector from the government, and such a configuration is used. However, 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 configured by hardware such as a CPU, RAM, ROM, HDD, display device, operation device, and 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 includes a program describing processing contents, 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 includes 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 said register terminal device 3 is an apparatus which bears the function of what is called a register | resistor, and is provided in each store and multiple units | sets may be provided in 1 store. The register terminal device 3 can be connected to the government server 1 and the printer 4 so as to be communicable. When the product is sold, the register terminal device 3 performs accounting processing and causes the printer 4 to output a receipt.

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

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

起動・停止制御部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 will be described in detail later. The key information received from the government server 1, receipt number information, and the printer 4 Based on the individual identification information, the start / stop of the operation of the accounting processing unit 34 is controlled. In other words, whether or not the transaction processing unit 34 can process is controlled. In addition, when the operation of the accounting processing unit 34 is stopped, the activation / deactivation control unit 33 acquires sales data stored in the printer 4 and executes a process of transmitting the sales data 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の動作状態を制御する部分である。   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, as shown in FIG. The acquisition unit 332 is a part that acquires key information, receipt number information, and individual identification information of the printer 4 transmitted from the government server 1. The storage unit 331 is a part that stores information acquired by the acquisition unit 332 and the like. Based on the key information transmitted from the government server 1, the determination unit 333 determines whether the operation state of the accounting processing unit 34 is to be activated or deactivated. 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 Is determined to be in the activated state or stopped state. The start / stop unit 334 is a part that controls the operating state of the accounting 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 product sales.

なお、レジスター制御部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 generates receipt print data in a format (command) for the printer 4 when a receipt output instruction is issued from the register control unit 31. 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 receipt printing printer provided for each of the register terminal devices 3, and performs printing by, for example, a thermal transfer method or an inkjet method. 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, a fiscal control unit 40, a memory control unit 43, and a fiscal memory 44.

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

印刷制御部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 execution unit 42 to print a receipt based on 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 part that executes printing of a receipt. When the printing method is an inkjet method, the print execution unit 42 includes a head including a nozzle that ejects ink, a paper transport device, and the like.

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

フィスカルメモリー44は、上記フィスカルデータを記憶するメモリーであり、NVRAMなどの不揮発性メモリーで構成される。   The fiscal memory 44 is a memory for storing the 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には、フィスカルデータの改ざんや漏えいが容易に行われないようにするためのハードウェア及びソフトウェアの従前の措置が施される。   The memory control unit 43 and the fiscal memory 44 are subjected to conventional measures of hardware and software so that the tampering and leakage of the fiscal data is not easily performed.

なお、上記フィスカルデータ、すなわち、レシート出力毎に記録されるそのレシートの商品販売に係る売上情報は、当該徴税システム200が設けられる国の法令に則った適切な情報項目と形式で表現されるようにする。例えば、フィスカルデータは、レシートと同一内容のいわゆる電子ジャーナル情報、レシートの所定の情報、所定の情報の付加を施した後の売上情報と、することができる。   It should be noted that the fiscal data, that is, the sales information related to the sale of the product of the receipt recorded for each receipt output is expressed in an appropriate information item and format in accordance with the laws and regulations of the country where the tax collection system 200 is provided. 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 adding the predetermined information.

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

以上説明したような構成を備える本徴税システム200では、各店舗におけるレジスターの処理が以下に説明するような内容で行われる。事前作業として、各店舗では、商品販売を行うに当たって、まず、上述したレジスタープログラムをアプリサーバー2からダウンロードして、各レジスター端末装置3にインストールしておく。当該ダウンロード操作は、スマートフォンにおける一般的なアプリのダウンロードと同様の手順で行うことができる。   In the tax collection system 200 having the configuration as described above, the register processing in each store is performed with the contents described below. As a preliminary work, in each store, in order to sell a product, first, the register program described above 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.

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

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

その後、取得部332は、プリンター4にプリンター4の個体識別情報(プリンターID)を問い合わせ、フィスカル制御部40から返信されるプリンターIDを記憶部331に記憶すると共に、政府サーバー1へ当該プリンターIDを本レジスター端末装置3のレジIDと共に送信する。政府サーバー1では、送信されたプリンターIDが上記記憶された当該レジスター端末装置3の情報に対応して記憶される。   Thereafter, the acquisition unit 332 inquires 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 sends the printer ID to the government server 1. It is transmitted together with the register ID of the 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, merchandise sales using the register terminal device 3 can be performed. The processing after the registration procedure will be described below. FIG. 2 is a flowchart illustrating a processing procedure from starting to stopping of the register terminal device 3.

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

このレジスター端末装置3が設けられる店舗の開店時間前に、政府サーバー1において、そのレジスター端末装置3用の起動キー等が生成されて、そのレジスター端末装置3へ送信される(図2のステップS1)。   Before the opening time of the store where the register terminal device 3 is provided, the government server 1 generates an activation key 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 for the activation key generation process is to record a predetermined time for each of the register terminal devices 3 and to use that time as a trigger. As another method, a store clerk operates the register terminal device 31 to request an activation key using the register control unit 31 (start / stop control unit 33), and the government server 1 receives the request. As a trigger.

また、起動キーの生成・送信処理は、情報発行部11によって行われる。起動キーは、レジスター端末装置3毎に異なり、また、同じレジスター端末装置3に対しても発行日毎に異なるように生成される。例えば、その日の日付とレジIDを所定の方法で加工して得られる情報を起動キーとする。   In addition, the activation key generation / transmission process is performed by the information issuing unit 11. The activation key is generated differently for each register terminal device 3 and different for each issuance date for the same register terminal device 3. For example, information obtained by processing the date and cash register 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 or not the consistency between the register terminal device 3 and the printer 4, that is, whether the combination of the register terminal device 3 and the printer 4 as a hardware individual is correct. Consistency determination information is generated. In the registration procedure described above, the combination of the hardware is assumed to be correct, and the consistency determination information determines whether the printer 4 is correct.

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

レシート番号範囲情報は、各レジスター端末装置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 attached to receipts issued on that day by each register terminal device 3. Receipts issued from the register terminal device 3 have a specification in which a unique receipt number is assigned in the tax collection system 200, and sequential receipt numbers are assigned in order of issue in each register terminal device 3. Therefore, the information issuing unit 11 determines the receipt number range of each register terminal device 3 according to the predicted value of the number of receipts that will be issued on that day by each register terminal device 3. Here, as an example, a receipt number range of 00000 to 00990 is determined for the register terminal device 3, and receipt number range information of “00000 to 00100” is generated.

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

送信された上記起動キー等は、レジスター端末装置3の起動・停止制御部33の取得部332によって受信される(図2のステップS2)。その後、記憶部331は、取得部332が受信した起動キー、プリンターID、及びレシート番号範囲情報を記憶する(図2のステップS3)。また、取得部332は、受信したレシート番号範囲情報をプリンター4へ送信し、プリンター4のフィスカル制御部40は当該レシート番号範囲情報を記憶する。   The transmitted activation key or the like is received by the acquisition unit 332 of the activation / deactivation control unit 33 of the register terminal device 3 (step S2 in FIG. 2). Thereafter, the storage unit 331 stores the activation key, printer ID, and receipt number range information received by the acquisition unit 332 (step S3 in FIG. 2). The acquisition unit 332 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 time, the accounting processing unit 34 of the register control unit 31 is stopped, and the accounting process 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 activation / deactivation control unit 33 performs authentication processing of the received activation key (step S4 in FIG. 2). Specifically, the determination unit 333 of the activation / deactivation control unit 33 generates an activation key based on the information acquired from the government server 1 during the registration procedure, in the same manner as the information issuing unit 11 of the government server 1. If it matches with the received activation key, the received activation key is authenticated as authentic. As in the above-described example, when the date is generated by the method using the cash register ID, the determination unit 333 generates the activation key by using the cash register ID stored in the registration procedure.

当該認証によって、認証されなかった場合には(図2のステップS4のNG)、不正な起動キーが受信されたと判断して、起動・停止部334は、会計処理部34を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置3はレジスターとして機能しないままとなる。   If the authentication is not successful (NG in step S4 in FIG. 2), it is determined that an unauthorized activation key has been received, and the activation / deactivation unit 334 does not activate the accounting processing unit 34, and continues. Then, the process ends. 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 fraud 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 following 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). If they do not match, the determination unit 333 is connected at that time. The printer 4 is determined to be an unauthorized printer, that is, it is not authenticated (NG in step S6 in 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 inferred that the correct printer 4 connected during the registration procedure described above has been 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が取り外されたことが推察される。このような場合には、フィスカルデータを記憶せずに不正に会計処理がなされる虞があるので、上述の通り、認証がなされない。   In addition, even when there is no response from the printer 4 (when information cannot be acquired) when the acquisition unit 332 acquires the printer ID (S5), the determination unit 333 does not authenticate (in 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 assumed that the printer 4 has been removed. In such a case, there is a risk that the accounting process may be performed fraudulently without storing the fiscal data, and thus 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 matches the printer ID transmitted from the government server 1, the determination unit 333 determines that the correct printer 4 is connected, and the register terminal device 3 and the printer 4. Is verified (OK in step S6 in FIG. 2).

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

その後は、プリンター4が置き換えたり取り外されたりするような不正行為が行われなければ、その商店の閉店時に会計処理部34が停止されるまで、商品販売がなされる度に、会計処理(販売計算処理)及び販売データの記録処理が行われる。   After that, unless fraudulent actions such as replacement or removal of the printer 4 are performed, the accounting process (sales calculation) is performed every time the 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 accounting processing unit 34 is satisfied (step S8 in FIG. 2). Here, as a stop condition of the accounting processing unit 34, a condition that a stop key transmitted from the government server 1 (information issuing unit 11) has been received or a predetermined time has come can be used. The predetermined time can be 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. The determination unit 333 determines that the stop condition is satisfied, and if the stop condition is not satisfied (No in step S8 in FIG. 2), the start / stop control unit 33 sells the product and the customer comes to the cash register. 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 time, the start / stop control unit 33 performs consistency check 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 a receipt number of a receipt issued for the accounting process (step S10 in FIG. 2). As described above, since the receipts to be issued are assigned receipt numbers that are serial numbers within the receipt number range generated by the government server 1, the determination unit 333 determines the receipt number according to the rule. As described above, when the receipt number range information of “00000 to 00100” is sent from the government server 1 and stored in the storage unit 331 as an example, the receipt of “00001” is received in the product sales to the first customer of the day. A number is determined. Thereafter, receipt numbers are sequentially determined such as “00002”, “00003”,.

次に、取得部332は、プリンター4に問い合わせて、フィスカル制御部40から返答されるレシート番号範囲情報を取得する(図2のステップS11)。ここで取得されるレシート番号範囲情報は、上述したステップS3においてプリンター4に記憶されたレシート番号範囲情報である。   Next, the acquisition unit 332 inquires of the printer 4 and acquires receipt number range information returned from the fiscal control unit 40 (step S11 in 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). If the result of the determination is that the number does not fall within the receipt number range (No in step S12 in FIG. 2), the determination unit 333 replaces the printer 4 with another printer from the start of the processing (when the store is opened). That is, it is determined that a mismatch between the register terminal device 3 and the printer 4 has occurred, and processing for stopping the operation of the accounting processing unit 34 is started. Specifically, the process proceeds to step S16 in FIG.

また、上記取得部332によるプリンター4からのレシート番号範囲情報の取得(S11)において、プリンター4からの応答がない場合(情報を取得できない場合)にも、判断部333は、上記レシート番号範囲内に入っていないと判断し(図2のステップS12のNo)、処理が図2のステップS16に移行する。かかる場合は、当該処理後、プリンター4が取り外されたことが推察される。このような場合には、フィスカルデータを記憶せずに不正に会計処理がなされる虞があるので、上述の通り、会計処理部34の動作を停止する処理が行われる。   In addition, in the acquisition of receipt number range information from the printer 4 by the acquisition unit 332 (S11), even when there is no response from the printer 4 (when information cannot be acquired), the determination unit 333 determines that the receipt number range information 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 assumed that the printer 4 has been removed after the processing. In such a case, there is a risk that the accounting process may be performed illegally without storing the fiscal data, so that the process of stopping 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 falls within the receipt number range (Yes in step S12 in FIG. 2), the determination unit 333 determines whether the receipt terminal number 3 at the start of the process (at the time of opening the store) It is determined that the consistency of the printer 4 is maintained, and an instruction is issued to the accounting processing unit 34 that the accounting processing may be performed for the product sales to the customer.

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

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

引き続き、プリンター4は、送信された印刷データを元に当該商品販売に係るフィスカルデータを生成し、暗号化して、フィスカルメモリー44に記録する(図2のステップS15)。当該記録処理は、フィスカル制御部40の指示によりメモリー制御部43によって行われる。   Subsequently, the printer 4 generates fiscal data relating to the product sales 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)、以上の会計処理、レシート出力処理、及び、フィスカルデータの記録処理が、商品販売の度に繰り返し実行される。   Thereafter, until the above-described stop condition is satisfied (Yes in step S8 in FIG. 2) or until inconsistency with the above-described printer 4 occurs (No in step S12 in FIG. 2), the above accounting process, receipt output process 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へ送信する。また、当該所定の時刻としては、上記起動キーを送信した時刻から所定時間後の時刻、又は、予め定められた閉店時刻を用いることができる。   When the determination unit 333 determines that the stop condition is satisfied (Yes in step S8 in FIG. 2), or when it is determined that the inconsistency occurs (No in step S12 in FIG. 2). The start / stop control unit 33 transmits the fiscal data from the start of the processing to the government server 1 to perform the processing for stopping the operation of the accounting processing unit 34. When receiving the stop key transmitted from the government server 1 is a stop condition, the information issuing unit 11 generates the stop key at a predetermined time and transmits it to the register terminal device 3. In addition, 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 fiscal data acquisition processing (step S16 in FIG. 2). In the acquisition process, the acquisition unit 332 issues an instruction to the printer 4, and according to the instruction, the memory control unit 43 stores the fiscal data (sales data) recorded in the fiscal memory 44 from the start of the accounting processing unit 34 so far. The read data is returned by the fiscal control unit 40. Thereby, fiscal data relating to the sale of the product on that day is acquired.

その後、取得部332は、取得したフィスカルデータを政府サーバー1へ送信する(図2のステップS17)。これにより、その日のフィスカルデータが政府サーバー1へ吸い上げられる。   Thereafter, 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 register ID of the register terminal device 3.

当該データの格納処理が正常に完了すると、データ収集部12はその旨を当該レジスター端末装置3に通知し、当該通知を受信した起動・停止制御部33では、起動・停止部334が、会計処理部34を動作不能とする、すなわち、停止状態とする(図2のステップS19)。これ以降、次に起動キーを受信して起動がなされるまで、当該レジスター端末装置3の会計処理機能を使用することはできない。なお、データ収集部12が送信したフィスカルデータを受信したことが確認された時点で当該停止処理を実行するようにしてもよい。また、当該停止処理において、フィスカルメモリー44に記憶されていたフィスカルデータを消去する処理を行うようにしてもよい。   When the data storage process is normally completed, the data collection unit 12 notifies the register terminal device 3 to that effect. In the activation / deactivation control unit 33 that has received the notification, the activation / deactivation unit 334 performs an accounting process. The unit 34 is disabled, that is, is in a stopped state (step S19 in FIG. 2). Thereafter, 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 when it is confirmed that the fiscal data transmitted by the data collection unit 12 has been received. Further, in the stop process, a process of erasing 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 process of transmitting the fiscal data to the government server 1 described above. Only processing may be performed. When inconsistency occurs, it is assumed that the printer 4 has been replaced with another printer or has been removed, so that incorrect fiscal data is transmitted or cannot 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 based on 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 started. If it is determined that there is a mismatch in the check, the process proceeds to step S16 and subsequent steps in FIG.

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

なお、上記説明では、店舗の開店時にレジスター端末装置3が使用可能になり、その日の閉店時に使用不可となる態様で、すなわち、営業日1日単位で、政府からレジの使用が許可され、政府はその日のデータをその日のうちに取得するという態様であったが、この管理期間を変更した態様(例えば、2日毎)としてもよい。   In the above description, the register terminal device 3 can be used when the store is opened, and cannot be used when the store is closed, that is, the use of the cash register is permitted by the government on a business day basis. Is a mode in which 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 employed.

以上説明したように、本徴税システム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 inconsistency is determined. In the case of matching, the accounting processing unit 34 is stopped and the accounting process cannot be performed. Accordingly, it is possible to prevent an illegal act due to replacement of the printer 4 or the like.

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

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

また、整合判断情報は政府サーバー1で発行されるので、整合判断情報自体の改竄も難しい。   In addition, since the consistency determination information is issued by the government server 1, it is difficult to falsify the alignment determination 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 cannot be used outside the regular time zone, it is possible to further prevent illegal acts such as empty shots.

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

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

(第2の実施形態)
次に、本発明の第2の実施の形態例について説明する。
(Second Embodiment)
Next, a second embodiment 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 authentication information transmitted from the government server 6 that manages fiscal data. This system effectively controls fraudulent acts such as cash register emptying 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 the register terminal devices 8 and the printers 9 of a plurality of stores that are communicably connected to the government server 6 and the network 10. In each store, a register system 800 is configured by a printer 9 that is communicably connected to the register terminal device 8. Further, the application server 7 connected to each register terminal device 8 via the network 10 distributes application software for cash register to each register terminal device 8. As the network 10, the Internet, a telephone line, or the like can be used. The register terminal device 8 and the printer 9 communicate with each other by a communication cable or wirelessly. In the configuration illustrated in FIG. 3, the printer 9 is configured to communicate with the government server 6 or 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 government tax office, 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 by hardware such as a CPU, RAM, ROM, HDD, display device, operation 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 issue unit 61, a data collection unit 62, and a sales data recording unit 63. The registration unit 60 is a part that performs processing for registering the register system 800 of each store as an official register system. Note that individual identification information (referred to as a printer ID) of the printer 9 can be used as identification information used for registration.

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

なお、登録部60、情報発行部61及びデータ収集部62は、それらが行う処理を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成され、データ記録部63は、HDDなどのデータ記憶装置によって構成される。   The registration unit 60, the information issuing unit 61, and the data collection unit 62 are configured by a program that describes the processing performed by them, a CPU that executes processing according to the program, a RAM, and the like, and the data recording unit 63 is an HDD or the like. Consists 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) or the like to each of the register terminal devices 8. 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 product sales at each store, and is approved by the government. In this embodiment, the distribution of the register program is entrusted to the private sector from the government, and the above configuration is used. However, the above-described government server 6 may be configured to function as the application server 7 as well.

アプリサーバー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, RAM, ROM, HDD, display device, operation device, and 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-described distribution process, and includes a program that describes the processing content, a CPU that executes the process 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 performs accounting processing at the time of product sales at a so-called cash register, and can be implemented by 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 register terminal devices 8 may be provided in one store. The register terminal device 8 can be communicably connected to the government server 6 and the printer 9. When the product is sold to a customer, the register terminal device 8 performs an accounting process and outputs a receipt of the accounting process from the printer 9.

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

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

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

なお、レジスター制御部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 nonvolatile memory, and the like.

また、プリンタードライバー実行部82は、プリンター9用のドライバー実行部であり、レジスター制御部81からレシートの出力指示が出た際に、レシートの印刷データをプリンター9用の形式(コマンド)で生成してプリンター9用へ送信する。なお、プリンタードライバー実行部82は、ドライバープログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。なお、後述の通り、本実施の形態例におけるプリンター9は、多彩な情報処理機能を備えるいわゆるインテリジェントプリンターであるため、プリンタードライバー実行部82を備えない構成として、会計処理部84が生成するレシートのデータをそのままプリンター9に送信する構成とすることもできる。   The printer driver execution unit 82 is a driver execution unit for the printer 9 and generates receipt print data in a format (command) for the printer 9 when a receipt output instruction is issued from the register control unit 81. 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 this embodiment is a so-called intelligent printer having various information processing functions, the printer 9 is not provided with the printer driver execution unit 82. A configuration in which data is directly transmitted to the printer 9 can also be adopted.

次に、プリンター9は、各レジスター端末装置8に対して設けられるレシート印刷用のプリンターであるが、上述の通り、いわゆるインテリジェントプリンターであり、パーソナルコンピューター等に相当する情報処理機能を備えている。当該プリンター9は、図1に示すような機能構成を有しており、一般的なプリンターとしての機能を担う印刷制御部91及び印刷実行部92のほかに、フィスカル制御部90、メモリー制御部93及びフィスカルメモリー94を備えている。   Next, the printer 9 is a receipt printing printer provided for each of the register terminal devices 8. As described above, the printer 9 is a so-called intelligent printer 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 details of the processing will be described later. Key information, receipt number range information, and printer ID of the printer 9 are transmitted from the government server 6. On the basis of the above, processing for controlling activation / deactivation of the accounting processing unit 84 of the register terminal device 8 is performed. In other words, a process for controlling whether or not the transaction processing unit 84 can execute the process 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, when the operation of the accounting processing unit 84 is stopped, the fiscal control unit 90 executes processing for acquiring sales data stored in the printer 9 and transmitting it to the government server 6.

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

なお、フィスカル制御部90は、各部が行う処理を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等で構成される。また、当該フィスカル制御部90のプログラムが本発明における会計処理の制御プログラムに相当する。   The fiscal control unit 90 includes a program that describes processing performed by each unit, a CPU that executes processing according to the program, a RAM, and the like. The program of the fiscal control unit 90 corresponds to the accounting 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 printing 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 printing of a receipt. When the printing method is an inkjet method, the printing method includes a head having nozzles for ejecting ink, a paper transport device, and the like.

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

フィスカルメモリー94は、上記フィスカルデータを記憶するメモリーであり、NVRAMなどの不揮発性メモリーで構成される。   The fiscal memory 94 is a memory for storing the 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 subjected to conventional measures of hardware and software so as not to easily tamper or leak the fiscal data.

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

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

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

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

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

また、上述したフィスカル制御部90のプログラムは、上記レジスタープログラムと同様にアプリサーバー7からダウンロードしてインストールするようにしてもよいし、あるいは、プリンター9の製造者などから提供されてインストールするようにしてもよい。いずれにしても、フィスカル制御部90のプログラムは、政府に公認されたものが好ましい。   The program of the fiscal control unit 90 described above may be downloaded from the application server 7 and installed in the same manner as the register program, or may be provided and installed by the manufacturer of the printer 9 or the like. May be. In any case, it is preferable that the program of the fiscal control unit 90 be 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 program, the register terminal device 8 accesses the government server 6 using the register control unit 81, and performs a registration procedure for the register system 800. In the government server 6 that has received the access, the registration unit 60 determines the identification information (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 register 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 registration ID, and transmits the registration ID to the printer 9. Thereafter, in the fiscal control unit 90 of the printer 9, the acquisition unit 902 acquires the transmitted registration ID, and the storage unit 901 stores the registration ID. If the registration ID is a printer ID, the registration process for storing the registration ID in the printer 9 can be omitted.

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

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

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

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

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

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

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

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

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

レシート番号範囲情報は、各レジスター端末装置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 attached to receipts issued on that day by each register terminal device 8. The receipt issued from the register terminal device 8 has a specification in which a unique receipt number is assigned in the tax collection system 700, and a sequential receipt number is assigned in the order of issue in each register terminal device 8. Therefore, the information issuing unit 61 determines the receipt number range of each register terminal device 8 according to the predicted value of the number of receipts that will be issued on that day by each register terminal device 8. Here, as an example, a receipt number range of 00000 to 00990 is determined for the register terminal device 8, and receipt number range information of “00000 to 00100” is generated.

このようにして生成された起動キー、プリンターID、及びレシート番号範囲情報は、情報発行部61によってレジスター端末装置8にネットワーク10を介して送信されるが、送信前に暗号化されるのが望ましい。   The activation key, the printer ID, and the receipt number range information generated in this way are transmitted to the register terminal device 8 via the network 10 by the information issuing unit 61, 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). Thereafter, the storage unit 901 stores the activation key, printer ID, and receipt number range information received by the acquisition unit 902 (step S23 in FIG. 4). 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 time, the accounting processing unit 84 of the register control unit 81 is stopped, and 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 authentication processing of the received activation key (step S24 in FIG. 4). Specifically, the determination unit 903 generates an activation key based on the information acquired from the government server 6 during the registration procedure by the same method as that of the information issuing unit 61 of the government server 6, and matches the received activation key with the received activation key. If so, authenticate the received activation key as official. As in the above-described example, when generating by a method using a date and a cash register ID, the determination unit 903 generates an activation key using the cash register ID stored in the registration procedure.

当該認証によって、認証されなかった場合には(図4のステップS24のNG)、不正な起動キーが受信されたと判断して、起動・停止部904は、会計処理部84を起動せず、そのまま、当該処理を終了する。すなわち、レジスター端末装置8はレジスターとして機能しないままとなる。   If the authentication is not successful (NG in step S24 in FIG. 4), it is determined that an unauthorized activation key has been received, and the activation / deactivation unit 904 does not activate the accounting processing unit 84, and continues. Then, the process ends. 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 fraud 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 following authentication. That is, at this time, the consistency between the register terminal device 8 and the printer 9 is checked. For this purpose, the acquisition unit 902 first 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). The printer 9 is determined to be an unauthorized printer, that is, it is not authenticated (NG in step S26 in FIG. 4), and 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 can be inferred that the correct printer 9 connected during the registration procedure described above has been 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 matches the printer ID transmitted from the government server 6, the determination unit 903 authenticates the consistency between the register terminal device 8 and the printer 9 (OK in step S26 of FIG. 4). ).

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

その後は、プリンター9が置き換えたり取り外されたりするような不正行為が行われなければ、その商店の閉店時に会計処理部84が停止されるまで、商品販売がなされる度に、会計処理(販売計算処理)及び販売データの記録処理が行われる。   After that, unless fraudulent actions such as replacement or removal of the printer 9 are performed, the accounting process (sales calculation is performed each time the 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 accounting 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 acquisition unit 902 has received a stop key transmitted from the government server 6 (information issuing unit 61) or that a predetermined time has come is used. Can do. The predetermined time can be 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. The determination unit 903 determines that the stop condition is satisfied. If the stop condition is not satisfied (No in step S28 in FIG. 4), the register control unit 81 of the register terminal device 8 and the fiscal control unit 90 of the printer 9 The processing when the product is sold and the customer comes to the cash register 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 performs a consistency check 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 receipt number of the receipt issued by the operation control unit 83 for the accounting process is determined (step S30 in FIG. 4). As described above, since the receipt number to be issued is assigned a receipt number within the receipt number range generated by the government server 6, the operation control unit 83 determines the receipt number according to the rule. As described above, when the receipt number range information of “00000 to 00100” is sent from the government server 6 and stored as an example, the receipt number of “00001” is determined in the merchandise sales for the first customer of the day. The Thereafter, receipt numbers are sequentially determined such as “00002”, “00003”,.

次に、動作制御部83は、プリンター9に問い合わせて、フィスカル制御部90から返答されるレシート番号範囲情報を取得する(図4のステップS31)。ここで取得されるレシート番号範囲情報は、ステップS23で記憶部901に記憶されたレシート番号範囲情報である。   Next, the operation control unit 83 inquires of the printer 9 and acquires 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 within 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 is not within the range (No in step S32 in FIG. 4), the operation control unit 83 causes the printer 9 to switch to another printer from the start of the processing (at the time of opening the store). It is determined that they have been replaced, that is, it is determined that a mismatch between the register terminal device 8 and the printer 9 has occurred, and processing for stopping the operation of the accounting processing unit 84 is started. Specifically, the process proceeds to step S42 in FIG.

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

一方、上記決定したレシート番号が上記レシート番号範囲内に入っている場合には(図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 in FIG. 4), the operation control unit 83 causes the register terminal device 8 at the start of the processing (at the time of opening the store). And the printer 9 are kept consistent, and an instruction is issued to the accounting processing unit 84 that the accounting processing may be performed for the sale of the product to the customer.

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

会計処理部84は、会計処理後、レシートの出力処理を行う(図4のステップS34)。具体的には、当該商品販売に係る会計情報をレシートデータとしてプリンタードライバー実行部82へ渡す。プリンタードライバー実行部82はその情報を印刷データとしてプリンター9へ送信する。   The accounting processing unit 84 performs a receipt output process after the accounting process (step S34 in FIG. 4). Specifically, the accounting information relating to the sale of the product is transferred 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 a receipt number from the print data, and acquires 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 or not the acquired receipt number is within 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 result is not within the receipt number range (No in step S36 in FIG. 4), the determination unit 903 determines that a mismatch between the register terminal device 8 and the printer 9 has occurred, A process for stopping the operation of the processing unit 84 is started. Specifically, the process proceeds 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 in FIG. 4), the determination unit 903 determines the register terminal device 8 and the printer 9 at the start of the process (at the time of opening the store). And the receipt output process for the sale of the product to the customer is continued.

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

引き続き、フィスカル制御部90は、受信した印刷データをメモリー制御部93に渡す。メモリー制御部93は、当該印刷データを元に当該商品販売に係るフィスカルデータを生成し、暗号化して、フィスカルメモリー94に記録する(図4のステップS38)。   Subsequently, the fiscal control unit 90 passes the received print data to the memory control unit 93. The memory control unit 93 generates fiscal data relating to the product sales 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)、以上の会計処理、レシート出力処理、及び、フィスカルデータの記録処理が、商品販売の度に繰り返し実行される。   Thereafter, until the above-described stop condition is satisfied (Yes in step S28 in FIG. 4) or until inconsistency with the above-described printer 9 occurs (No in step S32 in FIG. 4), the above accounting process, receipt output process 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 when it is determined that the inconsistency occurs (No in step S36 in FIG. 4). The fiscal control unit 90 performs processing for transmitting the fiscal data from the start of the processing to the government server 6 and stopping the operation of the accounting processing unit 84. If reception of a stop key transmitted from the government server 6 is used as a stop condition, the information issuing unit 61 generates a stop key at a predetermined time and transmits it to the register system 800. In addition, 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 fiscal data acquisition processing (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 start of the accounting processing unit 84 so far. The read data is acquired by the acquisition unit 902.

その後、取得部902は、取得したフィスカルデータを政府サーバー6へ送信する(図4のステップS40)。これにより、その日のフィスカルデータが政府サーバー6へ吸い上げられる。   Thereafter, the acquisition unit 902 transmits the acquired fiscal data to the government server 6 (step S40 in FIG. 4). Thereby, the fiscal data of the day is sucked up 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 so as to be readable by the register ID of the register system 800.

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

これ以降、次に起動キーを受信して起動がなされるまで、当該レジスター端末装置8の会計処理機能を使用することはできない。なお、当該停止処理において、フィスカルメモリー94に記憶されていたフィスカルデータを消去する処理を行うようにしてもよい。   Thereafter, until the next activation key is received and activated, the accounting processing function of the register terminal device 8 cannot be used. In the stop process, a process of deleting 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回)のレシートの発行毎に行うようにしてもよい。   Further, in the above description, each time a receipt is issued, a consistency check (S32, S36) based on the receipt number is performed, but the check is not performed every time, and a receipt is issued a predetermined number of times (for example, 10 times). You may make it carry out.

なお、上記説明では、店舗の開店時にレジスターシステム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, that is, the government permits use of the cash register every business day. Although it was the aspect of acquiring the data of the day within the day, it is good also as an aspect (for example, every 2 days) which changed this management period.

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

特に、政府サーバー6から送付されるキー情報によって会計処理機能の使用時間が制限され、正規の時間帯以外での使用ができないため、空打ちなどの不正行為を効果的に防止することができる。   In particular, the usage time of the accounting processing function is limited by the key information sent from the government server 6 and cannot be used outside the regular time zone, so that illegal acts such as idling 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 activation of an illegal accounting processing function.

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

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

また、その際のデータ通信は、送信されるデータが暗号化された後に行われるので、この点でもデータの改ざんを防止できる。   In addition, since data communication at that time is performed after the transmitted data is encrypted, tampering of the data can also be prevented in this respect.

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

また、出力し顧客に渡したレシートを回収する方策を用いることにより、発生した不正行為を見つけ易くなり、かつ、不正行為を抑止することができる。   In addition, by using a method of collecting the receipt that is output and delivered to the customer, it becomes easier to find the fraud that has occurred and the fraud can be suppressed.

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

また、政府サーバー6により、各店舗の販売データが日々自動的に収集されるので、政府の徴税のための労力を削減することができる。   Moreover, since the sales data of each store is automatically collected every day by the government server 6, the labor for tax collection of the government can be reduced.

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

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 collection 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 Department, 333,903 judgment unit, 334,904 start-stop

Claims (10)

会計処理を実行する会計処理部を有するレジスター端末装置と、当該レジスター端末装置の指示に従ってレシートを出力するプリンターと、を備えるレジスターシステムにおける会計処理の制御方法であって、
認証情報を取得する取得工程と、
前記取得された認証情報を記憶する記憶工程と、
前記記憶された認証情報に含まれる起動情報と、前記レジスターシステムの識別情報に基づいて生成した起動情報と、が一致するか否かに基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断工程と、
前記判断に基づいて、前記レジスター端末装置における前記会計処理部の起動又は停止を制御する起動・停止工程と、を有する
ことを特徴とする会計処理の制御方法。
An accounting process control method in a register system comprising: a register terminal device having an accounting processing unit for executing an accounting process; and a printer that outputs a receipt according to an instruction of the register terminal device,
An acquisition process for acquiring authentication information;
A storage step of storing the acquired authentication information;
Based on whether or not the activation information included in the stored authentication information matches the activation information generated based on the identification information of the register system, it is determined whether or not the accounting process in the register terminal device can be executed. A decision process to
An accounting process control method, comprising: a start / stop process for controlling start or stop of the accounting processing unit in the register terminal device based on the determination.
フィスカルデータを管理するサーバー及び会計処理を実行する会計処理部を有するレジスター端末装置と通信可能であり、前記会計処理に係るレシートを出力するプリンターにおける会計処理の制御方法であって、
前記サーバーから送信される認証情報を取得する取得工程と、
前記取得された認証情報を記憶する記憶工程と、
前記記憶された認証情報に基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断工程と、
前記判断に基づいて、前記レジスター端末装置における前記会計処理部の起動又は停止を制御する起動・停止工程と、を有し、
前記認証情報は起動情報を含み、
前記判断工程において、前記レジスター端末装置と前記プリンターを備えるレジスターシステムの識別情報に基づいて起動情報を生成し、当該起動情報が前記認証情報に含まれる起動情報と一致した場合に、前記起動情報を認証する
ことを特徴とする会計処理の制御方法。
A control method of accounting processing in a printer that is capable of communicating with a server that manages fiscal data and a register terminal device having an accounting processing unit that executes accounting processing , and that outputs a receipt relating to the accounting processing,
An acquisition step of acquiring authentication information transmitted from the server;
A storage step of storing the acquired authentication information;
A determination step of determining whether or not to perform accounting processing in the register terminal device based on the stored authentication information;
Based on the determination, we have a, and starting and stopping step of controlling the start or stop of the accounting unit in the register terminal device,
The authentication information includes activation information,
In the determination step, activation information is generated based on identification information of a register system including the register terminal device and the printer, and the activation information is determined when the activation information matches the activation information included in the authentication information. A method of controlling accounting processing characterized by authenticating .
請求項において、
前記起動情報は、当該プリンターが設けられる店舗の営業日毎に前記サーバーから送信される
ことを特徴とする会計処理の制御方法。
In claim 2 ,
The startup information is transmitted from the server every business day of a store where the printer is provided.
請求項2または3において、
前記認証情報は停止情報を含み、
前記判断工程において、当該停止情報が取得された際に前記会計処理の実行を停止すると判断する
ことを特徴とする会計処理の制御方法。
In claim 2 or 3 ,
The authentication information includes stop information,
In the determination step, it is determined that the execution of the accounting process is stopped when the stop information is acquired.
請求項乃至のいずれか1項において、
前記認証情報は整合情報を含み、
前記判断工程において、当該整合情報に基づいて前記レジスター端末装置と当該プリンターの整合性が認証されれば前記会計処理の実行が可能であると判断する
ことを特徴とする会計処理の制御方法。
In any one of Claims 2 thru | or 4 ,
The authentication information includes matching information;
In the determining step, it is determined that the accounting process can be executed if the consistency between the register terminal device and the printer is authenticated based on the matching information.
請求項において、
前記整合情報はプリンターの識別情報を含み、
前記判断工程において、当該識別情報が当該プリンターの識別情報と一致した場合、前記会計処理の実行が可能であると判断する
ことを特徴とする会計処理の制御方法。
In claim 5 ,
The matching information includes printer identification information,
In the determination step, when the identification information matches the identification information of the printer, it is determined that the accounting process can be executed.
請求項またはにおいて、
前記整合情報は前記レシートの番号の範囲を示す情報を含み、
前記判断工程において、当該レシートの番号の範囲を示す情報及び前記レシートに付されるレシート番号に基づいて、前記会計処理の実行可否を判断する
ことを特徴とする会計処理の制御方法。
In claim 5 or 6 ,
The matching information includes information indicating a range of the receipt number,
The accounting process control method characterized in that, in the determining step, whether or not the accounting process is executable is determined based on information indicating a range of receipt numbers and a receipt number attached to the receipt.
請求項乃至のいずれか1項において、更に、
前記レシートが出力される際に、当該レシートに係るフィスカルデータを記憶する工程を有する
ことを特徴とする会計処理の制御方法。
In any one of Claims 2 thru | or 7 , Furthermore,
An accounting process control method comprising a step of storing fiscal data relating to the receipt when the receipt is output.
請求項において、
前記取得工程において、前記会計処理の実行が停止される際に、前記記憶されたフィスカルデータを前記サーバーへ送信する
ことを特徴とする会計処理の制御方法。
In claim 8 ,
In the acquisition step, when the execution of the accounting process is stopped, the stored fiscal data is transmitted to the server.
会計処理を実行するレジスター端末装置と、前記会計処理に係るレシートを出力するプリンターを有するレジスターシステムであって、
前記レジスター端末装置は、
前記会計処理を行う会計処理部と、
前記会計処理部の起動・停止を制御する動作制御部と、を備え
前記プリンターは、
フィスカルデータを管理するサーバーから送信される認証情報を取得する取得部と、
前記取得された認証情報を記憶する記憶部と、
前記記憶された認証情報に基づいて、前記レジスター端末装置における会計処理の実行可否を判断する判断部と、
前記判断に基づいて、前記レジスター端末装置における前記会計処理部の起動又は停止を制御する起動・停止部と、を備え、
前記認証情報は起動情報を含み、
前記判断部は、前記レジスターシステムの識別情報に基づいて起動情報を生成し、当該起動情報が前記認証情報に含まれる起動情報と一致した場合に、前記起動情報を認証する
ことを特徴とするレジスターシステム。
A register system having a register terminal device for executing an accounting process and a printer for outputting a receipt relating to the accounting process,
The register terminal device
An accounting processing unit for performing the accounting process;
An operation control unit for controlling the start / stop of the accounting processing unit ,
The printer is
An acquisition unit that acquires authentication information transmitted from a server that manages fiscal data;
A storage unit for storing the acquired authentication information;
Based on the stored authentication information, a determination unit that determines whether or not to perform an accounting process in the register terminal device;
A start / stop unit for controlling the start or stop of the accounting processing unit in the register terminal device based on the determination;
The authentication information includes activation information,
The determination unit generates activation information based on identification information of the register system, and authenticates the activation information when the activation information matches the activation information included in the authentication information. system.
JP2014195172A 2014-01-21 2014-09-25 Accounting control method and register system Expired - Fee Related JP6488609B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2014195172A JP6488609B2 (en) 2014-01-21 2014-09-25 Accounting control method and register system
TW104101578A TWI545527B (en) 2014-01-21 2015-01-16 Checkout method and cash register system
CN201510025692.XA CN104794833B (en) 2014-01-21 2015-01-19 Settlement processing control method and cash register system

Applications Claiming Priority (5)

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

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2019033837A Division JP6699771B2 (en) 2014-01-21 2019-02-27 Accounting processing control method and register system

Publications (2)

Publication Number Publication Date
JP2015158899A JP2015158899A (en) 2015-09-03
JP6488609B2 true JP6488609B2 (en) 2019-03-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 After (1)

Application Number Title Priority Date Filing Date
JP2019033837A Expired - Fee Related JP6699771B2 (en) 2014-01-21 2019-02-27 Accounting processing 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 Printing system, portable information terminal, 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
JP2015158899A (en) 2015-09-03
TWI545527B (en) 2016-08-11
JP2019135649A (en) 2019-08-15
JP6699771B2 (en) 2020-05-27
TW201535325A (en) 2015-09-16

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
RS51461B (en) TRAFFIC CONTROL DEVICE AND PROCEDURE
JP2002202697A (en) Genuine product discriminating method, replacement parts used, genuine product management device, genuine product correspondence device, genuine product management network system, and computer-readable recording medium recording a program for executing the genuine product discriminating method
US20150242830A1 (en) Settlement terminal and program
JP2017006316A (en) Game system, terminal device, and management device
JP6171714B2 (en) Cash management machine, checkout processing system, cash management machine control method
JP5983182B2 (en) Settlement processing system, settlement method control method, program
JP6488609B2 (en) Accounting control method and register system
CN104794833B (en) Settlement processing control method and cash register system
JP6960752B2 (en) Sales data processing equipment and programs
KR102254417B1 (en) Apparatus for Issuing Lottery and Driving Method Thereof, System for Issuing Lottery and Driving Method Thereof
US20240212462A1 (en) Merchandise sales data processing device and medium
JP2015032136A (en) Fiscal register terminal, fiscal register system, register program, and sales recording method
JP5428819B2 (en) Sales data processing system and program
JP2015152998A (en) Printer and printer control method
JP2015176415A (en) Fiscal authentication device and fiscal authentication method
JP2012155668A (en) Electronic equipment and programs
JP2001347734A (en) Printer device and image printing system using the same
JP2014044467A (en) Cash management apparatus, settlement processing system, control method of cash management apparatus, program
JP2007241338A (en) Operator monitoring apparatus and operator monitoring method
CN110399245B (en) Code pattern printing control method and device and electronic equipment
JP2007241339A (en) Operator monitoring apparatus and operator monitoring method
JP7416896B2 (en) Information processing equipment and programs
JP7001497B2 (en) Payment terminals, payment processing systems, and programs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180904

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181102

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190211

R150 Certificate of patent or registration of utility model

Ref document number: 6488609

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees