JP6722623B2 - Receipt data management device, its program, and receipt data management method - Google Patents

Receipt data management device, its program, and receipt data management method Download PDF

Info

Publication number
JP6722623B2
JP6722623B2 JP2017151398A JP2017151398A JP6722623B2 JP 6722623 B2 JP6722623 B2 JP 6722623B2 JP 2017151398 A JP2017151398 A JP 2017151398A JP 2017151398 A JP2017151398 A JP 2017151398A JP 6722623 B2 JP6722623 B2 JP 6722623B2
Authority
JP
Japan
Prior art keywords
output
product
year
data
belonging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017151398A
Other languages
Japanese (ja)
Other versions
JP2019032574A (en
JP2019032574A5 (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.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC 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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2017151398A priority Critical patent/JP6722623B2/en
Publication of JP2019032574A publication Critical patent/JP2019032574A/en
Publication of JP2019032574A5 publication Critical patent/JP2019032574A5/en
Application granted granted Critical
Publication of JP6722623B2 publication Critical patent/JP6722623B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Description

本発明の実施形態は、レシートデータ管理装置及びコンピュータを当該レシートデータ管理装置として機能させるためのプログラムに関する。 Embodiments of the present invention relate to a receipt data management device and a program for causing a computer to function as the receipt data management device.

日本では、セルフメディケーション(自主服薬)推進のため、セルフメディケーション税制が導入されている。セルフメディケーション税制は、要指導医薬品及び一般用医薬品のうち医療用から転用された医薬品、いわゆるスイッチOTC(Over The Counter)医薬品(以下、単にOTC医薬品と称する)の購入費用について、所得控除を受けられる制度である。例えば2017年1月1日から2021年12月31日においては、OTC医薬品を一年間に一世帯で購入した金額(消費税込)の合計が12,000円を超えると、その超えた分の金額A(A=合計−12,000円:Aは、88,000円を上限とする)を、所得控除の対象とすることができる。このような税制度に対応するために、消費者はOTC医薬品を購入した際に薬局等から発行されたレシートを管理する必要がある。 In Japan, a self-medication tax system has been introduced to promote self-medication (self-medication). The self-medication tax system is subject to income deductions for the purchase costs of drugs that have been diverted from medical use, namely so-called switch OTC (Over The Counter) drugs (hereinafter simply referred to as OTC drugs), among the drugs required for guidance and OTC drugs. It is a system that can be used. For example, from January 1, 2017 to December 31, 2021, if the total amount of OTC medicines purchased by one household per year (including consumption tax) exceeds 12,000 yen, the amount of excess A (A=total-12,000 yen: A has an upper limit of 88,000 yen) can be targeted for income deduction. In order to cope with such a tax system, consumers need to manage receipts issued by pharmacies and the like when they purchase OTC drugs.

レシートの管理には、電子レシートシステムが有効である。電子レシートシステムは、消費者が購入した商品の販売データを含むレシートデータをサーバ(レシートデータ管理装置)に一定期間保存し、その間、消費者が使用する情報端末でレシート画像の閲覧を可能としたものである。このような電子レシートシステムを利用することにより、消費者は、薬局等から発行された紙媒体のレシートを管理する必要がなくなる。 An electronic receipt system is effective for managing receipts. The electronic receipt system stores receipt data including sales data of products purchased by a consumer in a server (receipt data management device) for a certain period of time, during which a receipt image can be browsed by an information terminal used by the consumer. It is a thing. By using such an electronic receipt system, the consumer does not need to manage the receipt of a paper medium issued from a pharmacy or the like.

しかしながら、現行の電子レシートシステムは、セルフメディケーション税制に対応していない。セルフメディケーション税制に対応した電子レシートシステムを構築するためには、サーバで管理されるレシートデータに基づき、消費者にセルフメディケーション税制に対応した確定申告用の帳票を提供できるようにすることが望ましい。 However, the current electronic receipt system does not support the self-medication tax system. In order to build an electronic receipt system compatible with the self-medication tax system, it is necessary to make it possible to provide consumers with a form for final tax return corresponding to the self-medication tax system based on receipt data managed by the server. desirable.

特開2014‐229072号公報JP-A-2014-229072

本発明の実施形態が解決しようとする課題は、レシートデータを基にセルフメディケーション税制等の税制に対応した確定申告用の帳票を消費者に提供できるレシートデータ管理装置及びプログラムを提供しようとするものである。 The problem to be solved by the embodiment of the present invention is to provide a receipt data management device and a program that can provide a consumer with a form for final tax return corresponding to a tax system such as a self-medication tax system based on receipt data. It is a thing.

一実施形態において、レシートデータ管理装置は、検出手段、記憶手段、集計手段、情報出力手段及び帳票出力手段を備える。検出手段は、客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出する。記憶手段は、検出手段により検出された前記商品群に属する商品の販売データを、当該販売データを含むレシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる。集計手段は、前記商品群に属する商品の販売データを年毎に集計する。情報出力手段は、客識別情報を含む閲覧要求に応答して、集計手段により記憶部で当該客識別情報と関連付けられて記憶されている販売データを年毎に集計したデータに基づき、所定の年内に売買された前記商品群に属する商品の合計金額と、前記商品群に属する商品の帳票出力を指示するための画像と、を含む画像データを、閲覧要求元の機器へと出力する。帳票出力手段は、閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、記憶部で当該帳票出力指示に含まれる客識別情報と関連付けられて記憶されている前記商品群に属する商品の販売データに基づき、所定の年内に売買された前記商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が税控除の対象商品である旨の記載を含む帳票を出力する。 In one embodiment, the receipt data management device includes a detection unit, a storage unit, a counting unit, an information output unit, and a form output unit. The detection means detects, from receipt data including sales data of products purchased by the customer, sales data of products belonging to a product group that is tax deductible when the annual purchase amount is within a predetermined amount range. The storage unit stores the sales data of the product belonging to the product group detected by the detection unit in the storage unit in association with the customer identification information associated with the receipt data including the sales data. The totaling means totals the sales data of the products belonging to the product group for each year. The information output means responds to the browsing request including the customer identification information, and based on the data obtained by adding up the sales data stored in the storage unit in association with the customer identification information by the accumulating means every year, within a predetermined year. The image data including the total price of the products sold and sold in the product group and the image for instructing the output of the form of the product belonging to the product group is output to the device that issued the browsing request. Form output unit receives the form output instruction of goods belonging to the product group from viewing the requesting device, the product group of storage unit in associated with the customer identification information contained in the form output instruction stored based on the sales data of the product belonging, trade names of products that belong to the previous Symbol commodity group that has been buying and selling in a given year, the amount, store name, the date of purchase and described the products to the effect that the subject goods of the tax deduction Output forms that include.

電子レシートシステムの概略構成図。The schematic block diagram of an electronic receipt system. レシートデータの構造を示す模式図。The schematic diagram which shows the structure of receipt data. 電子レシート管理サーバの要部回路構成を示すブロック図。FIG. 3 is a block diagram showing a circuit configuration of a main part of an electronic receipt management server. 電子レシート管理サーバの補助記憶デバイスで記憶する主要なデータファイルを示す模式図。The schematic diagram which shows the main data file memorize|stored in the auxiliary storage device of an electronic receipt management server. 会員ファイルに記憶されるデータの構造を示す模式図。The schematic diagram which shows the structure of the data memorize|stored in a member file. 店舗ファイルに記憶されるデータの構造を示す模式図。The schematic diagram which shows the structure of the data stored in a store file. 月間集計ファイルに記憶されるデータの構造を示す模式図。The schematic diagram which shows the structure of the data stored in a monthly totalization file. OTC医薬品集計ファイルに記憶されるデータの構造を示す模式図。The schematic diagram which shows the structure of the data memorize|stored in an OTC pharmaceutical summary file. 電子レシート管理サーバのCPUがレシートデータ受信時に実行する情報処理手順を示す流れ図。The flowchart which shows the information processing procedure which CPU of an electronic receipt management server performs when receiving receipt data. 図9の処理ステップ「解析」の処理手順を具体的に示す流れ図。10 is a flowchart specifically showing a processing procedure of a processing step “analysis” of FIG. 9. 電子レシート管理サーバのCPUが月間集計要求コマンド受信時に実行する情報処理手順の一部を示す流れ図。The flowchart which shows a part of information processing procedure which CPU of an electronic receipt management server performs at the time of receiving a monthly totaling request command. 電子レシート管理サーバのCPUが月間集計要求コマンド受信時に実行する情報処理手順の一部を示す流れ図。The flowchart which shows a part of information processing procedure which CPU of an electronic receipt management server performs at the time of receiving a monthly totaling request command. 電子レシート管理サーバのCPUが月間集計要求コマンド受信時に実行する情報処理手順の一部を示す流れ図。The flowchart which shows a part of information processing procedure which CPU of an electronic receipt management server performs at the time of receiving a monthly totaling request command. 電子レシート管理サーバのCPUが月間集計要求コマンド受信時に実行する情報処理手順の一部を示す流れ図。The flowchart which shows a part of information processing procedure which CPU of an electronic receipt management server performs at the time of receiving a monthly totaling request command. 情報端末の表示デバイスに表示されるホーム画面の一表示例を示す模式図。The schematic diagram which shows one display example of the home screen displayed on the display device of an information terminal. 情報端末の表示デバイスに表示されるレシート一覧画面の一表示例を示す模式図。The schematic diagram which shows one example of a display of the receipt list screen displayed on the display device of an information terminal. 情報端末の表示デバイスに表示される月間集計画面の一表示例を示す模式図。The schematic diagram which shows one display example of the monthly totalization screen displayed on the display device of an information terminal. 情報端末の表示デバイスに表示されるOTC医薬品一覧画面の一表示例を示す模式図。The schematic diagram which shows one example of a display of the OTC drug list screen displayed on the display device of an information terminal. 情報端末の表示デバイスに表示される電子レシート画面の一表示例を示す模式図。The schematic diagram which shows one example of a display of the electronic receipt screen displayed on the display device of an information terminal. 情報端末の表示デバイスに表示される出力先リスト画面の一表示例を示す模式図。The schematic diagram which shows one example of a display of an output destination list screen displayed on the display device of an information terminal. 不足メッセージを含むOTC医薬品一覧画面の一表示例を示す模式図。The schematic diagram which shows one display example of the OTC drug list screen containing a shortage message. 超過メッセージを含むOTC医薬品一覧画面の一表示例を示す模式図。The schematic diagram which shows one display example of the OTC drug list screen containing an excess message. 帳票の一印刷例を示す模式図。The schematic diagram which shows one example of printing of a form.

以下、レシートデータを基にセルフメディケーション税制等に対応した確定申告用の帳票を消費者に提供できるレシートデータ管理装置の実施形態について、図面を用いて説明する。 Hereinafter, an embodiment of a receipt data management device capable of providing a tax return form corresponding to a self-medication tax system or the like to a consumer based on receipt data will be described with reference to the drawings.

電子レシートシステム100は、図1に示すように、レシートデータ管理装置としての電子レシート管理サーバ10と、複数のPOS(Point Of Sales)システム20と、インターネット等のネットワーク30と、このネットワーク30に接続された複数の基地局40と、基地局40との間で無線通信が可能な複数の情報端末50と、を含む。電子レシート管理サーバ10は、電子レシートサービスを統括する電子レシート管理センタに構築される。POSシステム20は、電子レシートサービスに加盟する各店舗に構築される。情報端末50は、電子レシートサービスを受けるために会員登録を行った消費者が使用する。 As shown in FIG. 1, the electronic receipt system 100 includes an electronic receipt management server 10 as a receipt data management device, a plurality of POS (Point Of Sales) systems 20, a network 30 such as the Internet, and a connection to the network 30. And a plurality of information terminals 50 capable of wireless communication with the base station 40. The electronic receipt management server 10 is built in an electronic receipt management center that controls the electronic receipt service. The POS system 20 is built in each store that is a member of the electronic receipt service. The information terminal 50 is used by a consumer who has registered as a member to receive the electronic receipt service.

POSシステム20は、複数のPOS端末21とストアサーバ22とプリンタ23とを含み、これらをLAN(Local Area Network)等の通信回線24で接続してなる。POS端末21は、商取引の決済端末として機能する。ストアサーバ22は、各POS端末21で決済された商取引のデータを基に、店舗全体の売上、在庫等を管理する。プリンタ23は、種々の帳票類の印刷に対応したものである。プリンタ23は、印刷専用機であってもよいし、コピー、ファクシミリ等の多機能を備えた複合機であってもよい。 The POS system 20 includes a plurality of POS terminals 21, a store server 22, and a printer 23, which are connected by a communication line 24 such as a LAN (Local Area Network). The POS terminal 21 functions as a payment terminal for commercial transactions. The store server 22 manages sales, inventory, etc. of the entire store based on the data of the commercial transaction settled by each POS terminal 21. The printer 23 is compatible with printing various forms. The printer 23 may be a printing-only machine or a multifunction machine having multiple functions such as copying and facsimile.

POS端末21は、消費者が購入した商品の販売データを含むレシートデータを生成する。またPOS端末21は、電子レシートサービスを受けるために会員登録を行った消費者に対して発行された会員IDの入力を受け付ける。 The POS terminal 21 generates receipt data including sales data of products purchased by the consumer. Further, the POS terminal 21 receives an input of a member ID issued to a consumer who has registered as a member to receive the electronic receipt service.

POSシステム20は、POS端末21において会員IDの入力を受け付けると、その会員IDで識別される消費者に対する商取引のレシートをテキスト化してレシートデータ25(図2を参照)を作成する。そしてPOSシステム20は、そのレシートデータ25を会員IDとともにネットワーク30を介して電子レシート管理サーバ10へと出力する。レシートのテキスト化は、POS端末21が行ってもよいし、ストアサーバ22が行ってもよい。レシートのテキスト化をPOS端末21が行う場合、レシートデータ25はPOS端末21からネットワーク30を介して電子レシート管理サーバ10に直接出力されてもよいし、ストアサーバ22を経由して出力されてもよい。レシートのテキスト化をストアサーバ22が行う場合には、レシートデータ25はストアサーバ22からネットワーク30を介して電子レシート管理サーバ10に出力される。なお、レシートのテキスト化及びレシートデータ25の生成については周知の技術であるので、ここでの詳細な説明は省略する。 When the POS system 20 receives the input of the member ID at the POS terminal 21, the POS system 20 converts the receipt of the commercial transaction for the consumer identified by the member ID into text and creates the receipt data 25 (see FIG. 2). Then, the POS system 20 outputs the receipt data 25 together with the member ID to the electronic receipt management server 10 via the network 30. The receipt may be converted into text by the POS terminal 21 or the store server 22. When the POS terminal 21 converts the receipt into text, the receipt data 25 may be directly output from the POS terminal 21 to the electronic receipt management server 10 via the network 30 or may be output via the store server 22. Good. When the store server 22 converts the receipt into text, the receipt data 25 is output from the store server 22 to the electronic receipt management server 10 via the network 30. It should be noted that since converting the receipt into text and generating the receipt data 25 is a well-known technique, detailed description thereof is omitted here.

図2は、POSシステム20から電子レシート管理サーバ10へと出力されるレシートデータ25の構造を示す模式図である。レシートデータ25は、会員ID、店舗コード、取引日時、取引番号、商品販売データ及び決済データを含む。商品販売データは、商品コード、分類コード、商品名、単価、点数、価格等を含む。決済データは、決済金額、決済種別、支払情報等を含む。 FIG. 2 is a schematic diagram showing the structure of the receipt data 25 output from the POS system 20 to the electronic receipt management server 10. The receipt data 25 includes a member ID, a store code, a transaction date and time, a transaction number, merchandise sales data, and settlement data. The product sales data includes a product code, a classification code, a product name, a unit price, a score, a price, and the like. The payment data includes a payment amount, a payment type, payment information, and the like.

店舗コードは、各店舗を識別するために店舗毎に設定された一意のコードである。取引日時は、例えばPOS端末21において商取引が開始された時点又は決済された時点の日付と時刻である。商品販売データの分類コードは、各商品の属性に基づく商品分類(食料品、日用品、医療品、衣料品等)を識別するために商品分類毎に設定された一意のコードである。 The store code is a unique code set for each store to identify each store. The transaction date and time is, for example, the date and time when the commercial transaction is started or settled at the POS terminal 21. The product sales data classification code is a unique code set for each product classification in order to identify the product classification (food, daily necessities, medical products, clothing, etc.) based on the attributes of each product.

因みに本実施形態では、医療品に関してOTC医薬品とそれ以外の医薬品とを分類するために、医薬品の分類コードの下位コードとしてOTC医薬品の小分類コードとその他医薬品の小分類コードとを設定する。そしてOTC医療品の商品販売データは、医薬品の分類コードとOTC医薬品の小分類コードとを含む。OTC医薬品以外の医薬品の商品販売データは、医薬品の分類コードとその他医薬品の小分類コードとを含む。 Incidentally, in the present embodiment, in order to classify OTC drugs and other drugs with respect to medical products, the OTC drug subclass code and the other drug subclass codes are set as subordinate codes of the drug class code. The product sales data of OTC medical products includes a classification code of medicines and a small classification code of OTC medicines. The merchandise sales data of medicines other than OTC medicines includes a medicine classification code and a subclassification code of other medicines.

価格は、単価に点数を乗算して算出された金額であり、単価が消費税込みの価格である場合は税込価格となり、消費税抜きの価格である場合には税抜価格となる。決済データの決済種別は、決済金額に対する支払いの種類(現金、クレジットカード、ポイント、金券等)を特定する情報である。 The price is the amount of money calculated by multiplying the unit price by points, and the unit price is the tax-included price when the unit price includes the consumption tax, and the tax-excluded price when the unit price is the consumption tax-excluded price. The payment type of the payment data is information that specifies the type of payment (cash, credit card, points, cash voucher, etc.) for the payment amount.

図1に説明を戻す。
情報端末50は、少なくとも表示デバイスと、入力デバイスと、無線通信デバイスとを搭載する。また情報端末50は、Webブラウザを備える。そして電子レシートサービスを受ける消費者は、専用のアプリケーションプログラムである電子レシート閲覧プログラムを情報端末50にインストールする。この電子レシート閲覧プログラムを情報端末50にインストールすることで、会員登録、レシート画像の閲覧及びセルフメディケーション税制に対応した確定申告用の帳票出力等が可能となる。会員登録を行うことで、情報端末50のメモリに形成された電子レシート閲覧プログラムの管理領域に会員IDが設定される。この種の情報端末50としては、スマートフォン、携帯電話、タブレット端末、ノートパソコン等の電子機器が使用される。
Returning to FIG.
The information terminal 50 is equipped with at least a display device, an input device, and a wireless communication device. The information terminal 50 also includes a web browser. Then, the consumer who receives the electronic receipt service installs the electronic receipt browsing program, which is a dedicated application program, on the information terminal 50. By installing this electronic receipt browsing program in the information terminal 50, it becomes possible to perform member registration, browsing of receipt images, and output of forms for final tax return corresponding to the self-medication tax system. By performing member registration, the member ID is set in the management area of the electronic receipt viewing program formed in the memory of the information terminal 50. As the information terminal 50 of this type, an electronic device such as a smartphone, a mobile phone, a tablet terminal, a laptop computer or the like is used.

電子レシート管理サーバ10は、各店舗のPOSシステム20から出力されるレシートデータ25を一定期間保存する。そして電子レシート管理サーバ10は、情報端末50からの閲覧要求に応答して、レシートデータ25に基づいて作成したレシート画像のデータを、閲覧要求元の情報端末50へと送信する。 The electronic receipt management server 10 stores the receipt data 25 output from the POS system 20 of each store for a certain period. Then, in response to the browsing request from the information terminal 50, the electronic receipt management server 10 transmits the data of the receipt image created based on the receipt data 25 to the information terminal 50 that is the browsing request source.

図3は、電子レシート管理サーバ10の要部回路構成を示すブロック図である。電子レシート管理サーバ10は、CPU(Central Processing Unit)11、ROM(Read Only Memory)12、RAM(Random Access Memory)13、補助記憶デバイス14、時計部15及び通信ユニット16等を備える。CPU11と、ROM12、RAM13、補助記憶デバイス14、時計部15及び通信ユニット16とは、アドレスバス、データバス等のシステム伝送路17で接続される。 FIG. 3 is a block diagram showing a circuit configuration of essential parts of the electronic receipt management server 10. The electronic receipt management server 10 includes a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, an auxiliary storage device 14, a clock unit 15, a communication unit 16 and the like. The CPU 11, the ROM 12, the RAM 13, the auxiliary storage device 14, the clock unit 15, and the communication unit 16 are connected by a system transmission line 17 such as an address bus and a data bus.

電子レシート管理サーバ10は、CPU11、ROM12、RAM13及び補助記憶デバイス14と、これらを接続するシステム伝送路17とによってコンピュータを構成する。
CPU11は、上記コンピュータの中枢部分に相当する。CPU11は、オペレーティングシステムやアプリケーションプログラムに従って、電子レシート管理サーバ10としての各種の機能を実現するべく各部を制御する。
The electronic receipt management server 10 constitutes a computer by the CPU 11, the ROM 12, the RAM 13, the auxiliary storage device 14, and the system transmission line 17 connecting these.
The CPU 11 corresponds to the central part of the computer. The CPU 11 controls each unit to realize various functions as the electronic receipt management server 10 according to the operating system and the application program.

ROM12は、上記コンピュータの主記憶部分に相当する。ROM12は、上記のオペレーティングシステムやアプリケーションプログラムを記憶する。ROM12は、CPU11が各部を制御するための処理を実行する上で必要なデータを記憶する場合もある。 The ROM 12 corresponds to the main storage part of the computer. The ROM 12 stores the above operating system and application programs. The ROM 12 may store data necessary for the CPU 11 to execute processing for controlling each unit.

RAM13は、上記コンピュータの主記憶部分に相当する。RAM13は、CPU11が処理を実行する上で必要なデータを記憶する。またRAM13は、CPU11によって情報が適宜書き換えられるワークエリアとしても利用される。 The RAM 13 corresponds to the main storage part of the computer. The RAM 13 stores data necessary for the CPU 11 to execute processing. The RAM 13 is also used as a work area in which information is appropriately rewritten by the CPU 11.

補助記憶デバイス14は、上記コンピュータの補助記憶部分に相当する。補助記憶デバイス14は、上記のオペレーティングシステムやアプリケーションプログラムを記憶する場合がある。また補助記憶デバイス14は、CPU11が各種の処理を行う上で使用するデータ、あるいはCPU11での処理によって生成されたデータを保存する場合がある。補助記憶デバイス14としては、例えばEEPROM(Electric Erasable Programmable Read-Only Memory)、HDD(Hard Disc Drive)、あるいはSSD(Solid State Drive)等を使用できる。 The auxiliary storage device 14 corresponds to the auxiliary storage part of the computer. The auxiliary storage device 14 may store the above operating system and application programs. Further, the auxiliary storage device 14 may store data used by the CPU 11 for performing various kinds of processing or data generated by the processing of the CPU 11. As the auxiliary storage device 14, for example, an EEPROM (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disc Drive), an SSD (Solid State Drive), or the like can be used.

時計部15は、現在の日付及び時刻を計時する。
通信ユニット16は、POSシステム20または情報端末50とネットワーク30を介して所定のプロトコルによりデータ通信を行う。
The clock unit 15 measures the current date and time.
The communication unit 16 performs data communication with the POS system 20 or the information terminal 50 via the network 30 by a predetermined protocol.

かかる構成の電子レシート管理サーバ10は、図4に示すように、補助記憶デバイス14の記憶領域の一部を、会員ファイル141、店舗ファイル142、電子レシートファイル143、月間集計ファイル144、OTC医薬品設定ファイル145及びOTC医薬品集計ファイル146として使用する。 As shown in FIG. 4, the electronic receipt management server 10 having such a configuration stores a part of the storage area of the auxiliary storage device 14 in the member file 141, the store file 142, the electronic receipt file 143, the monthly totalization file 144, and the OTC drug setting. It is used as the file 145 and the OTC drug summary file 146.

会員ファイル141は、電子レシートサービスを受けるために会員登録を行った消費者毎に作成される会員データ141R(図5を参照)を記憶するための領域である。会員データ141Rは、図5に示すように、会員ID、メールアドレス、パスワード等の情報を含む。メールアドレス、パスワードは、会員IDで識別される消費者が情報端末50を操作して任意に設定した情報である。 The member file 141 is an area for storing member data 141R (see FIG. 5) created for each consumer who has registered as a member to receive the electronic receipt service. As shown in FIG. 5, the member data 141R includes information such as a member ID, a mail address and a password. The email address and password are information arbitrarily set by the consumer identified by the member ID by operating the information terminal 50.

店舗ファイル142は、電子レシートサービスに加盟する店舗毎に作成される店舗データ142R(図6を参照)を記憶するための領域である。店舗データ142Rは、図6に示すように、店舗コード、店舗名、店舗所在地、プリンタアドレス、税ステータス等の情報を含む。店舗名及び店舗所在地は、店舗コードで識別される店舗固有の情報である。プリンタアドレスは、店舗コードで識別される店舗のPOSシステム20に組み込まれたプリンタ23を特定するための通信アドレスである。プリンタ23は、セルフメディケーション税制に対応した確定申告用の帳票を印刷する機器として店舗側から指定されたものである。税ステータスは、店舗コードで識別される店舗が商品の価格を外税とする店なのか内税とする店なのかを示す情報である。外税とする店では、商品の価格は税抜価格である。内税とする店では、商品の価格は税込価格である。 The store file 142 is an area for storing store data 142R (see FIG. 6) created for each store that joins the electronic receipt service. As shown in FIG. 6, the store data 142R includes information such as store code, store name, store location, printer address, and tax status. The store name and the store location are information unique to the store identified by the store code. The printer address is a communication address for identifying the printer 23 incorporated in the POS system 20 of the store identified by the store code. The printer 23 is designated by the store as a device for printing a form for final tax return corresponding to the self-medication tax system. The tax status is information indicating whether the store identified by the store code is a store in which the price of the product is an external tax or a tax in the product. At stores where tax is excluded, the price of goods is excluding tax. At shops with tax included, the price of goods is tax included.

電子レシートファイル143は、各POSシステム20からネットワーク30を介して受信したレシートデータ25を会員ID別に一定期間記憶するための領域である。 The electronic receipt file 143 is an area for storing the receipt data 25 received from each POS system 20 via the network 30 for each member ID for a certain period.

月間集計ファイル144は、電子レシートサービスを受けるために会員登録を行った消費者毎に年月別に作成される月間集計データ144R(図7を参照)を記憶するための領域である。月間集計データ144Rは、図7に示すように、会員ID及び年月をヘッダ情報とし、このヘッダ情報に付加して、月間合計と、小分類無しの商品分類に係る情報P1と、小分類有の商品分類に係る情報P2とを記憶する。 The monthly totaling file 144 is an area for storing monthly totaling data 144R (see FIG. 7) created for each consumer who has registered as a member to receive the electronic receipt service. As shown in FIG. 7, the monthly total data 144R has a member ID and a year/month as header information, and is added to this header information to add a monthly total, information P1 related to product classification without minor classification, and minor classification present. And information P2 related to the product classification of.

月間合計は、ヘッダ情報の会員IDで識別される客が、電子レシートサービスに加盟する店舗で、同ヘッダ情報の年月で特定される一か月間に購入した商品の価格を合計した金額である。 The monthly total is the sum of the prices of products purchased by a customer identified by the header information member ID at a store that is a member of the electronic receipt service for one month specified by the year and month of the header information. ..

情報P1は、分類コード、分類名称、分類合計及び小分類数を含む。分類名称は、対応する分類コードで特定される商品分類を表す名称である。分類合計は、ヘッダ情報の会員IDで識別される消費者が、電子レシートサービスに加盟する店舗で、同ヘッダ情報の年月で特定される一か月間に購入した商品のうち、分類コードの商品分類に属する商品の価格を合計した金額である。小分類数は“0”である。 The information P1 includes a classification code, a classification name, a classification total, and a small classification number. The classification name is a name that represents the product classification specified by the corresponding classification code. The classification total is the product of the classification code among the products purchased by the consumer identified by the member ID of the header information during the month specified by the year and month of the header information at a store that is a member of the electronic receipt service. It is the sum of the prices of the products belonging to the classification. The number of small classifications is “0”.

情報P2は、分類コード、分類名称、分類合計及び小分類数に加えて、小分類の数だけ小分類コード、小分類名称及び小分類合計を含む。小分類名称は、対応する小分類コードで特定される小分類を表す名称である。小分類合計は、ヘッダ情報の会員IDで識別される消費者が、電子レシートサービスに加盟する店舗で、同ヘッダ情報の年月で特定される一か月間に購入した商品のうち、小分類コードの分類に属する商品の価格合計である。 The information P2 includes, in addition to the classification code, the classification name, the classification total, and the number of small classifications, the number of small classifications, the small classification code, the small classification name, and the small classification total. The minor category name is a name that represents the minor category specified by the corresponding minor category code. The sub-category total is the sub-category code among the products purchased by the consumer identified by the header information member ID at a store that participates in the electronic receipt service during the month specified by the year and month of the header information. It is the total price of products belonging to the category.

OTC医薬品設定ファイル145は、厚生労働省からセルフメディケーション税制の対象品目として公表された全てのOTC医薬品の商品コード(例えばJANコード)を記憶するための領域である。 The OTC drug setting file 145 is an area for storing the product codes (for example, JAN codes) of all OTC drugs announced by the Ministry of Health, Labor and Welfare as items subject to the self-medication tax system.

OTC医薬品集計ファイル146は、電子レシートサービスを受けるために会員登録を行った消費者毎に年度別に作成されるOTC医薬品集計データ146R(図8を参照)を記憶するための領域である。OTC医薬品集計データ146Rは、図8に示すように、会員ID、OTC医薬品の小分類コード及び年度をヘッダ情報とし、このヘッダ情報に付加して、年度合計金額、控除フラグ及びOTC医薬品の購入明細データD1を記憶する。購入明細データD1は、ヘッダ情報の会員IDで識別される消費者が、同ヘッダ情報の年度で特定される一年間に、電子レシートサービスに加盟する店舗で購入したOTC医薬品のデータである。購入明細データD1は、購入日時(取引日時)、店舗名、店舗所在地、取引番号、OTC医薬品の商品コード、商品名、税込価格及び発行回数を含む。発行回数は、後述する帳票に出力された回数であり、初期値は“0”である。 The OTC drug tabulation file 146 is an area for storing OTC drug tabulation data 146R (see FIG. 8) created for each year for each consumer who has registered as a member to receive the electronic receipt service. As shown in FIG. 8, the OTC drug total data 146R uses the member ID, the OTC drug subdivision code, and the year as header information, and is added to this header information to add the yearly total amount, the deduction flag, and the purchase details of the OTC drug. The data D1 is stored. The purchase specification data D1 is data of the OTC drug that the consumer identified by the member ID of the header information purchased at a store that is a member of the electronic receipt service during the year specified by the year of the header information. The purchase specification data D1 includes a purchase date/time (transaction date/time), a store name, a store location, a transaction number, an OTC drug product code, a product name, a tax-included price, and the number of times of issue. The number of times of issuance is the number of times it is output to the form described later, and the initial value is "0".

また、OTC医薬品集計データ146Rにおいて、年度合計金額は、同データ146Rに含まれる購入明細データD1の価格の合計金額である。控除フラグは、合計金額が控除対象の下限額(2017年度から導入のセルフメディケーション税制では12,000円)に達するまでは“0”にリセットされており、下限額を超えると“1”にセットされる。また控除フラグは、合計金額が控除対象の上限額(2017年度から導入のセルフメディケーション税制では100,000円)を超えると、再び“0”にリセットされる。 Further, in the OTC drug total data 146R, the yearly total amount is the total amount of the prices of the purchase specification data D1 included in the same data 146R. The deduction flag is reset to "0" until the total amount reaches the lower limit amount of the deduction target (12,000 yen under the self-medication tax system introduced from 2017), and becomes "1" when the lower limit amount is exceeded. Set. The deduction flag is reset to "0" again when the total amount exceeds the upper limit of the deduction target (100,000 yen in the self-medication tax system introduced from 2017).

次に、電子レシート管理サーバ10のCPU11が通信ユニット16を介してレシートデータ25を受信した際の動作を、図9及び図10の流れ図を用いて説明する。
図9及び図10は、CPU11が、ROM12又は補助記憶デバイス14に記憶されたアプリケーションプログラムの一種である制御プログラムにしたがって実行する情報処理の要部手順を示す流れ図である。なお、図9及び図10に示すとともに以下に説明する処理の内容は一例であって、同様な結果を得ることが可能であればその処理手順及び処理内容は特に限定されるものではない。
Next, the operation when the CPU 11 of the electronic receipt management server 10 receives the receipt data 25 via the communication unit 16 will be described with reference to the flowcharts of FIGS. 9 and 10.
9 and 10 are flowcharts showing the main procedure of information processing executed by the CPU 11 in accordance with a control program which is a type of application program stored in the ROM 12 or the auxiliary storage device 14. The contents of the process shown in FIGS. 9 and 10 and described below are examples, and the process procedure and the process contents are not particularly limited as long as the same result can be obtained.

CPU11は、通信ユニット16を介してレシートデータ25を受信すると、図9の流れ図に示す手順の情報処理を開始する。先ずCPU11は、Act1としてレシートデータ25をRAM13のワークエリアに確保されたレシートエリアに記憶させる。次いでCPU11は、Act2としてレシートデータ25から会員IDと取引日時とを検出する。そしてCPU11は、Act3として月間集計ファイル144を検索して、Act2で検出した会員IDと取引日時の年月とをヘッダ情報とした月間集計データ144Rを取得する。そしてCPU11は、Act4としてこの月間集計データ144Rの月間合計を更新する。すなわちCPU11は、月間合計に、レシートデータ25に含まれる決済データの決済金額を加算する。 When the CPU 11 receives the receipt data 25 via the communication unit 16, the CPU 11 starts information processing according to the procedure shown in the flowchart of FIG. First, the CPU 11 stores the receipt data 25 as Act 1 in the receipt area secured in the work area of the RAM 13. Next, the CPU 11 detects the member ID and the transaction date and time from the receipt data 25 as Act2. Then, the CPU 11 searches the monthly totalization file 144 as Act3, and acquires the monthly totalization data 144R with the member ID detected in Act2 and the year and month of the transaction date and time as header information. Then, the CPU 11 updates the monthly total of the monthly total data 144R as Act4. That is, the CPU 11 adds the payment amount of the payment data included in the receipt data 25 to the monthly total.

次いでCPU11は、Act5としてレシートデータ25から1つの商品販売データを検出する。そしてCPU11は、Act6としてこの商品販売データの解析を行う。解析の処理手順については後述する。 Next, the CPU 11 detects one item sales data from the receipt data 25 as Act5. Then, the CPU 11 analyzes this product sales data as Act6. The analysis processing procedure will be described later.

解析を終えると、CPU11は、Act7としてレシートデータ25に未解析の商品販売データが存在するか否かを確認する。未解析の商品販売データが存在する場合(Act7にてYES)、CPU11は、Act5の処理に戻る。すなわちCPU11は、レシートデータ25から未解析の商品販売データを検出し、解析を行う。 When the analysis is completed, the CPU 11 confirms whether or not unanalyzed product sales data exists in the receipt data 25 as Act7. When there is unanalyzed product sales data (YES in Act 7), the CPU 11 returns to the process of Act 5. That is, the CPU 11 detects unanalyzed product sales data from the receipt data 25 and analyzes it.

こうして、レシートデータ25に含まれる全ての商品販売データについて解析を行い、未解析の商品販売データが存在しないことを確認すると(Act7にてNO)、CPU11は、Act8としてレシートエリア内のレシートデータ25を電子レシートファイル143に保存させる。以上で、レシートデータ25を受信した際のCPU11の情報処理が終了する。 In this way, when all the product sales data included in the receipt data 25 is analyzed and it is confirmed that there is no unanalyzed product sales data (NO in ACT7), the CPU 11 sets ACT8 to the receipt data 25 in the receipt area. Is stored in the electronic receipt file 143. With the above, the information processing of the CPU 11 when the receipt data 25 is received is completed.

図10は、図9のAct6で実行される解析の処理手順を示す流れ図である。CPU11は先ず、Act11として解析対象の商品販売データから分類コードを検出する。このとき、商品販売データに小分類コードも含まれる場合には、CPU11は、その小分類コードも検出する。そしてCPU11は、Act12として小分類コードを検出したか否かを判断する。 FIG. 10 is a flowchart showing the processing procedure of the analysis executed in Act6 of FIG. First, the CPU 11 detects a classification code from the product sales data to be analyzed as Act 11. At this time, if the product sales data also includes a small classification code, the CPU 11 also detects the small classification code. Then, the CPU 11 determines whether or not the small classification code is detected as Act12.

小分類コードを検出していない場合(Act12にてNO)、CPU11は、Act13として、Act3の処理で取得した月間集計ファイル144の分類合計を更新する。すなわちCPU11は、Act11の処理で検出した分類コードがセットされた情報P1の分類合計に、解析対象の商品販売データに含まれる価格を加算する。以上で、CPU11は、解析を終了する。 When the small classification code is not detected (NO in Act 12), the CPU 11 updates the classification total of the monthly totalization file 144 acquired in the process of Act 3 as Act 13. That is, the CPU 11 adds the price included in the analysis target product sales data to the classification total of the information P1 in which the classification code detected in the process of Act 11 is set. With the above, the CPU 11 ends the analysis.

小分類コードを検出した場合には(Act12にてYES)、CPU11は、Act14として、Act3の処理で取得した月間集計ファイル144の分類合計及び小分類合計を更新する。すなわちCPU11は、Act11の処理で検出した分類コードがセットされた情報P2の分類合計と、その情報P2中のAct11の処理で検出した小分類コードに対する小分類合計とに、解析対象の商品販売データに含まれる価格を加算する。 When the small classification code is detected (YES in ACT12), the CPU 11 updates the total classification and the small classification total of the monthly totalization file 144 acquired in the processing of ACT3 as ACT14. That is, the CPU 11 analyzes the product sales data to be analyzed as the classification total of the information P2 in which the classification code detected by the process of Act11 is set and the small classification total for the small classification code detected by the process of Act11 in the information P2. Add the price included in.

CPU11は、Act15として解析対象の商品販売データから商品コードを検出する。そしてCPU11は、Act16としてその商品コードでOTC医薬品設定ファイル145を検索して、同一の商品コードがOTC医薬品設定ファイル145に設定されているか否かを確認する。同一の商品コードがOTC医薬品設定ファイル145に設定されていない場合(Act16にてNO)、CPU11は、解析を終了する。すなわち、解析対象の商品販売データで特定される商品がOTC医薬品でない場合、CPU11は、解析を終了する。 The CPU 11 detects the product code from the product sales data to be analyzed as Act 15. Then, the CPU 11 searches the OTC drug setting file 145 with the product code as Act 16 and confirms whether the same product code is set in the OTC drug setting file 145. When the same product code is not set in the OTC drug setting file 145 (NO in Act 16), the CPU 11 ends the analysis. That is, when the product specified by the product sales data to be analyzed is not an OTC drug, the CPU 11 ends the analysis.

同一の商品コードがOTC医薬品設定ファイル145に設定されている場合には(Act16にてYES)、CPU11は、Act17としてレシートデータ25に含まれる店舗コードで特定される店舗が商品の価格を外税とする店なのか内税とする店なのかを、店舗ファイル142の税ステータスから判定する。すなわちCPU11は、解析対象の商品販売データで特定される商品がOTC医薬品である場合、その商品の価格が税込価格なのか税抜価格なのかを判定する。 When the same product code is set in the OTC drug setting file 145 (YES in Act16), the CPU 11 causes the store specified by the store code included in the receipt data 25 as Act17 to exclude the product price from the tax. It is determined from the tax status of the store file 142 whether the store is the store for which the tax is applied or the tax is included. That is, when the product specified by the product sales data to be analyzed is an OTC drug, the CPU 11 determines whether the price of the product is the tax-included price or the tax-excluded price.

商品の価格を外税とする店の場合(Act17にてYES)、CPU11は、Act18として解析対象の商品販売データに含まれる価格を税込価格に換算する。商品の価格を内税とする店の場合には(Act17にてNO)、CPU11は、Act18の処理を実行しない。すなわちCPU11は、解析対象の商品販売データで特定される商品の税込価格を求める。 In the case of a store in which the price of the product is excluded from the tax (YES in ACT17), the CPU 11 converts the price included in the product sales data to be analyzed as ACT18 into the tax-included price. In the case of a store in which the price of the product is included in the tax (NO in Act 17), the CPU 11 does not execute the process of Act 18. That is, the CPU 11 obtains the tax-included price of the product specified by the analysis target product sales data.

CPU11は、Act19としてOTC医薬品明細データD1を生成する。OCT医薬品明細データD1は、レシートデータ25に含まれる取引日時、店舗コード及び取引番号と、解析対象の商品販売データに含まれる商品コード、商品名及び価格とを含む。なお、店舗コードは、その店舗コードで店舗ファイル142を検索して得た店舗名と店舗所在地のデータに置換される。また価格は、Act18の処理が実行された場合にはその処理で算出された税込価格となる。 The CPU 11 generates OTC drug specification data D1 as Act19. The OCT drug specification data D1 includes the transaction date and time, the store code and the transaction number included in the receipt data 25, and the product code, the product name and the price included in the analysis target product sales data. The store code is replaced with the store name and store location data obtained by searching the store file 142 with the store code. Further, the price is the tax-included price calculated by the processing of Act 18 when the processing of Act 18 is executed.

OTC医薬品明細データD1を生成すると、CPU11は、Act20としてそのOTC医薬明細データD1を、OTC医薬品集計ファイル146に保存する。すなわちCPU11は、レシートデータ25の会員番号と取引日時の年度とを含むOTC医薬品集計データ146Rに、OTC医薬品明細データD1を追加する。またCPU11は、Act21として同OTC医薬品集計データ146Rの年度合計金額を更新する。すなわちCPU11は、年度合計金額にOTC医薬品明細データD1の価格を加算する。 After generating the OTC drugs detailed data D1, CPU 11 has the OTC medicines detailed data D1 as ACT20, stores the OTC drugs summary file 146. That is, the CPU 11 adds the OTC drug specification data D1 to the OTC drug total data 146R including the member number of the receipt data 25 and the year of the transaction date and time. Further, the CPU 11 updates the yearly total amount of the OTC drug total data 146R as Act21. That is, the CPU 11 adds the price of the OTC drug specification data D1 to the yearly total amount.

CPU11は、Act22として更新後の年度合計金額が控除対象の下限額(2017年度から導入のセルフメディケーション税制では12,000円)以上であるか否かを確認する。年度合計金額が下限額以上である場合(Act22にてYES)、CPU11は、Act23として同年度合計金額が控除対象の上限額(2017年度から導入のセルフメディケーション税制では100,000円)以下であるか否かを確認する。年度合計金額が上限額以下である場合(Act23にてYES)、CPU11は、Act24として、同OTC医薬品集計データ146Rの控除フラグを“1”にセットする。これに対し、年度合計金額が下限額未満の場合(Act22にてNO)、又は年度合計金額が控除対象の上限額を超える場合には(Act23にてNO)、CPU11は、Act25として、同OTC医薬品集計データ146Rの控除フラグを“0”にリセットする。以上で、CPU11は、解析を終了する。 The CPU 11 confirms whether or not the annual total amount after renewal as Act 22 is equal to or more than the lower limit amount (12,000 yen in the self-medication tax system introduced from 2017). When the total amount of money for the fiscal year is equal to or more than the lower limit amount (YES in Act 22), the CPU 11 does not exceed the upper limit amount (100,000 yen in the self-medication tax system introduced from 2017) of the total amount of the same year as Act 23. Check if there is. When the annual total amount is less than or equal to the upper limit amount (YES in ACT23), the CPU 11 sets the deduction flag of the OTC drug tabulation data 146R to “1” as ACT24. On the other hand, when the yearly total amount is less than the lower limit amount (NO in Act 22) or when the yearly total amount exceeds the upper limit amount to be deducted (NO in Act 23), the CPU 11 sets Act 25 to the same OTC. The deduction flag of the drug data 146R is reset to "0". With the above, the CPU 11 ends the analysis.

このように、電子レシート管理サーバ10のCPU11は、POSシステム20からレシートデータ25を受信する毎に、そのレシートデータ25を電子レシートファイル143に保存する(Act8)。またCPU11は、そのレシートデータ25に含まれる会員IDと取引日時とから特定される月間集計ファイル144を更新する(Act2〜Act7、Act11〜Act14)。 As described above, the CPU 11 of the electronic receipt management server 10 saves the receipt data 25 in the electronic receipt file 143 every time it receives the receipt data 25 from the POS system 20 (Act 8). Further, the CPU 11 updates the monthly totaling file 144 specified by the member ID included in the receipt data 25 and the transaction date and time (Act2 to Act7, Act11 to Act14).

さらに、CPU11は、レシートデータ25にOTC医薬品の商品販売データが含まれているか否かを確認する(Act15〜Act16)。そしてOTC医薬品の商品販売データが含まれている場合、CPU11は、そのOTC医薬品の商品販売データに基づいて、OTC医薬品集計ファイル146を更新する。具体的には、CPU11は先ず、OTC医薬品の商品販売データが含まれている価格が税抜価格である場合、その税抜価格を税込価格に換算する(Act17〜Act18)。次いでCPU11は、レシートデータ25に含まれる会員IDと取引日時の年度とから特定されるOTC医薬品集計データ146Rに、レシートデータ25を基に生成したOTC医薬品の購入明細データD1を追加する(Act19〜Act20)。またCPU11は、同OTC医薬品集計データ146Rの年度合計金額を、当該OTC医薬品の税込価格を加算した金額に更新する(Act21)。 Further, the CPU 11 confirms whether or not the receipt data 25 includes the merchandise sales data of the OTC drug (Act15 to Act16). When the product sales data of the OTC drug is included, the CPU 11 updates the OTC drug total file 146 based on the product sales data of the OTC drug. Specifically, when the price including the product sales data of the OTC drug is the tax-excluded price, the CPU 11 first converts the tax-excluded price into the tax-included price (Act17 to Act18). Next, the CPU 11 adds the purchase detailed data D1 of the OTC drug generated based on the receipt data 25 to the OTC drug total data 146R specified by the member ID included in the receipt data 25 and the year of the transaction date and time (Act 19-). Act 20). Further, the CPU 11 updates the annual total amount of the OTC drug total data 146R to the amount of money including the tax-included price of the OTC drug (Act 21).

ここに、電子レシート管理サーバ10のCPU11は、図10のAct15〜Act16の処理を実行することにより、客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出させる機能を実現する。すなわちCPU11は、Act15〜Act16の処理により検出手段を構成する。 Here, the CPU 11 of the electronic receipt management server 10 executes the processing of Act15 to Act16 of FIG. 10 so that the annual purchase amount is within the predetermined amount range from the receipt data including the sales data of the product purchased by the customer. In this case, a function of detecting sales data of a product belonging to a product group that can receive tax deduction is realized. That is, the CPU 11 constitutes a detection unit by the processing of Act15 to Act16.

補助記憶デバイス14のOTC医薬品集計ファイル146は、検出手段により検出された商品の販売データを、当該販売データを含むレシートデータに関連付けられた客識別情報と関連付けて記憶する記憶部を構成する。記憶部は、客識別情報と関連付けて、所定期間内に売買された税控除を受けられる商品群に属する商品の合計金額をさらに記憶する。そしてCPU11は、図10のAct19〜Act20の処理を実行することにより、検出手段により検出された商品の販売データを、当該販売データを含むレシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる機能を実現する。すなわちCPU11は、Act19〜Act20の処理により記憶手段を構成する。 The OTC drug totalization file 146 of the auxiliary storage device 14 configures a storage unit that stores the sales data of the product detected by the detection unit in association with the customer identification information associated with the receipt data including the sales data. The storage unit further stores, in association with the customer identification information, the total price of the products belonging to the product group that can be tax-deducted and sold within a predetermined period. Then, the CPU 11 executes the processing of Act19 to Act20 of FIG. 10 to associate the sales data of the product detected by the detection unit with the customer identification information associated with the receipt data including the sales data, and stores the data in the storage unit. Realize the function to store. That is, the CPU 11 constitutes a storage unit by the processing of Act19 to Act20.

次に、電子レシートサービスの会員である消費者が、セルフメディケーション税制の税控除対象商品であるOTC医薬品の購買情報を、情報端末50を使用して閲覧し、さらに確定申告用の帳票を取得する場合の動作について、図11乃至図23を用いて説明する。因みに、確定申告用の帳票とは、セルフメディケーション税制の適用を受けるための確定申告の際に必要となる証明書類の1種である。この証明書類には、商品名、金額、当該商品がセルフメディケーション税制対象商品である旨、販売店名及び購入日が明記されていることが必要とされている。 Then, the consumer is a member of the electronic receiver Tosa-bis is, the purchase information of OTC drugs is a tax-deductible items of self-medication tax system, and viewed using the information terminal 50, a further form for the tax return The operation for acquiring will be described with reference to FIGS. 11 to 23. By the way, the form for final tax return is one kind of certificate required for final tax return for applying self-medication tax system. It is necessary for these certificates to clearly indicate the product name, the amount of money, that the product is subject to the self-medication tax system, the name of the store, and the date of purchase.

図11乃至図14は、電子レシート管理サーバ10のCPU11が、ROM12又は補助記憶デバイス14に記憶されたアプリケーションプログラムの一種である制御プログラムにしたがって実行する情報処理手順を示す流れ図である。また、図15乃至図22は、情報端末50の表示デバイス(タッチパネルとする)に表示される画面の遷移例である。また、図23は、確定申告用の帳票の一例である。なお、図11乃至図14に示すとともに以下に説明する処理の内容は一例であって、同様な結果を得ることが可能であればその処理手順及び処理内容は特に限定されるものではない。また、図15乃至図23に示すとともに以下に説明する画面及び帳票の内容も一例であって、情報端末50のユーザである消費者が必要な情報を得ることができるのであれば、その内容は特に限定されるものではない。 11 to 14 are flowcharts showing an information processing procedure executed by the CPU 11 of the electronic receipt management server 10 according to a control program which is a kind of application program stored in the ROM 12 or the auxiliary storage device 14. 15 to 22 are transition examples of screens displayed on the display device (which is a touch panel) of the information terminal 50. In addition, FIG. 23 is an example of a form for final tax return. Note that the contents of the processes shown in FIGS. 11 to 14 and described below are examples, and the process procedure and the process contents are not particularly limited as long as the same result can be obtained. The contents of the screens and forms shown in FIGS. 15 to 23 and described below are also examples, and if the consumer who is the user of the information terminal 50 can obtain the necessary information, the contents are It is not particularly limited.

OTC医薬品の購買情報を閲覧したい消費者は、先ず、情報端末50にインストールされている電子レシート閲覧プログラムを起動する。そうすると、情報端末50の表示デバイスにホーム画面SC1(図15を参照)が表示される。 The consumer who wants to browse the purchase information of the OTC drug first starts the electronic receipt browsing program installed in the information terminal 50. Then, the home screen SC1 (see FIG. 15) is displayed on the display device of the information terminal 50.

ホーム画面SC1の一表示例を図15に示す。図示するようにホーム画面SC1には、会員IDを表すバーコードBCが表示されている。また、ホームアイコンIC1、レシートアイコンIC2及びその他アイコンIC3が表示されている。そしてホームアイコンIC1が選択状態となっており、レシートアイコンIC2とその他アイコンIC3とが非選択状態となっている。因みに、このホーム画面SC1のバーコードBCを、POS端末21に接続されたスキャナでスキャニングすることにより、POS端末21に会員IDを入力することができる。 FIG. 15 shows a display example of the home screen SC1. As shown in the figure, a bar code BC representing the member ID is displayed on the home screen SC1. Further, a home icon IC1, a receipt icon IC2, and another icon IC3 are displayed. The home icon IC1 is in the selected state, and the receipt icon IC2 and the other icon IC3 are in the non-selected state. By scanning the barcode BC on the home screen SC1 with a scanner connected to the POS terminal 21, the member ID can be input to the POS terminal 21.

ホーム画面SC1を確認した消費者は、レシートアイコンIC2にタッチする。そうすると、情報端末50から電子レシート管理サーバ10にレシート一覧要求コマンドが送信される。このコマンドを含め、以後に説明する情報端末50からの種々のコマンドには、当該情報端末50に設定されている会員IDが含まれる。なお、必ずしもすべてのコマンドに会員IDが含まれていなくてもよい。電子レシート管理サーバ10に会員IDを知らせる必要のないコマンドには会員IDを含めなくてもよい。 The consumer who confirms the home screen SC1 touches the receipt icon IC2. Then, the information terminal 50 transmits a receipt list request command to the electronic receipt management server 10. Including this command, various commands from the information terminal 50 described below include the member ID set in the information terminal 50. Note that the member ID does not necessarily have to be included in all commands. The command that does not need to notify the electronic receipt management server 10 of the member ID may not include the member ID.

レシート一覧要求コマンドを受信した電子レシート管理サーバ10のCPU11は、電子レシートファイル143から当該コマンドに含まれる会員ID別に記憶されたレシートデータ25を検出する。そしてCPU11は、検出したレシートデータ25に基づいてレシート一覧画像を作成し、作成したレシート一覧画像をコマンド送信元の情報端末50へと送信する。かくして情報端末50では、表示デバイスの画面が、ホーム画面SC1からレシート一覧画面SC2(図16を参照)に切り替わる。 Upon receiving the receipt list request command, the CPU 11 of the electronic receipt management server 10 detects, from the electronic receipt file 143, the receipt data 25 stored for each member ID included in the command. Then, the CPU 11 creates a receipt list image based on the detected receipt data 25, and sends the created receipt list image to the information terminal 50 that is the command transmission source. Thus, in the information terminal 50, the screen of the display device is switched from the home screen SC1 to the receipt list screen SC2 (see FIG. 16).

レシート一覧画面SC2の一表示例を図16に示す。図示するように、レシート一覧画面SC2には、レシート一覧画像が表示される。また、レシートアイコンIC2が選択状態となり、ホームアイコンIC1とその他アイコンIC3とが非選択状態となる。 FIG. 16 shows a display example of the receipt list screen SC2. As illustrated, a receipt list image is displayed on the receipt list screen SC2. Further, the receipt icon IC2 is in the selected state, and the home icon IC1 and the other icon IC3 are in the non-selected state.

レシート一覧画像は、一か月分のレシートの合計金額(図16では「1月 合計金額\99,999」)と、矢印アイコンM1,M2,M3とを含む。また、月間集計ボタンBT1がレシート一覧画面SC2に表示される。矢印アイコンM1がタッチされると、一か月前のレシート一覧画像に切り替わる。矢印アイコンM2がタッチされると、一か月後のレシート一覧画像に切り替わる。矢印アイコンM3がタッチされると、その月に生成されたレシートデータ25のリストが表示される。 The receipt list image includes the total amount of receipts for one month (“January total amount ¥99,999” in FIG. 16) and arrow icons M1, M2, M3. Further, a monthly totaling button BT1 is displayed on the receipt list screen SC2. When the arrow icon M1 is touched, the receipt list image of one month ago is switched. When the arrow icon M2 is touched, the receipt list image after one month is selected. When the arrow icon M3 is touched, a list of receipt data 25 generated in that month is displayed.

レシート一覧画面SC2を確認した消費者は、月間集計ボタンBT1にタッチする。月間集計ボタンBT1がタッチされると、情報端末50から電子レシート管理サーバ10に月間集計要求コマンドが送信される。 The consumer who confirms the receipt list screen SC2 touches the monthly totaling button BT1. When the monthly totaling button BT1 is touched, the information terminal 50 sends a monthly totaling request command to the electronic receipt management server 10.

月間集計要求コマンドを受信した電子レシート管理サーバ10のCPU11は、図11乃至図14の流れ図に示す手順の情報処理を開始する。
先ずCPU11は、図11のAct31として時計部15で計時されている日時データから現時点の年月を検出する。そしてCPU11は、Act32としてその年月をRAM13のワークエリアに確保された年月エリアに書き込む。
The CPU 11 of the electronic receipt management server 10, which has received the monthly totalization request command, starts information processing of the procedure shown in the flowcharts of FIGS. 11 to 14.
First, the CPU 11 detects the current year and month from the date and time data counted by the clock unit 15 as Act 31 in FIG. Then, the CPU 11 writes the year/month as Act32 in the year/month area secured in the work area of the RAM 13.

CPU11は、Act33として月間集計ファイル144を検索して、月間集計要求コマンドに含まれる会員IDと年月エリア内の年月とをヘッダ情報とする月間集計データ144Rを検出する。そしてCPU11は、Act34としてその月間集計データ144Rに基づいて月間集計画像を生成する。CPU11は、Act35として月間集計画像をコマンド送信元の情報端末50へと送信する。かくして情報端末50では、表示デバイスの画面が、レシート一覧画面SC2から月間集計画面SC3(図17を参照)に切り替わる。 The CPU 11 searches the monthly totalization file 144 as Act 33, and detects the monthly totalization data 144R having the member ID included in the monthly totalization request command and the year/month in the year/month area as header information. And CPU11 produces|generates a monthly total image as Act34 based on the monthly total data 144R. The CPU 11 transmits the monthly totalized image as the Act 35 to the information terminal 50 which is the command transmission source. Thus, in the information terminal 50, the screen of the display device is switched from the receipt list screen SC2 to the monthly totalization screen SC3 (see FIG. 17).

月間集計画面SC3の一表示例を図17に示す。図示するように、月間集計画面SC3には、月間集計画像が表示される。レシートアイコンIC2、ホームアイコンIC1及びその他アイコンIC3の状態は変化しない。 FIG. 17 shows a display example of the monthly totalization screen SC3. As shown in the figure, a monthly total image is displayed on the monthly total screen SC3. The states of the receipt icon IC2, the home icon IC1 and the other icon IC3 do not change.

月間集計画像は、月間合計の金額(図17では「\99,999」)と、分類コード別の名称及び合計金額のリストL1と、矢印アイコンM5,M6とを含む。また、閲覧終了ボタンBT2が月間集計画面SC3に表示される。なお、リストL1において、OTC医薬品の小分類コードに対する小分類名称「OTC医薬品」には、ハイパーテキスト「一覧表示」が付されている。 The monthly total image includes a monthly total amount (“¥99,999” in FIG. 17), a name L of each classification code and a total amount list L1, and arrow icons M5 and M6. Further, the browse end button BT2 is displayed on the monthly totalization screen SC3. In the list L1, the hypertext “list display” is attached to the subclass name “OTC drug” with respect to the OTC drug subclass code.

消費者は、月間集計画像から、当月に電子レシートサービスの加盟店で購入した商品の合計金額と分類別の合計金額とを示す月間集計データを確認することができる。消費者は、前月の月間集計データを閲覧したい場合、矢印アイコンM5にタッチする。矢印アイコンM5がタッチされると、情報端末50は、電子レシート管理サーバ10に第1の年月変更コマンドを送信する。消費者は、翌月の月間集計データを閲覧したい場合、矢印アイコンM6にタッチする。矢印アイコンM6がタッチされると、情報端末50は、電子レシート管理サーバ10に第2の年月変更コマンドを送信する。なお、翌月の月間集計データ144Rが存在しない場合には、矢印アイコンM6は無効化されており、タッチしても第2の年月変更コマンドは送信されない。 From the monthly total image, the consumer can confirm the monthly total data indicating the total price of the products purchased at the member store of the electronic receipt service in the current month and the total price by category. The consumer touches the arrow icon M5 when he/she wants to browse the monthly total data of the previous month. When the arrow icon M5 is touched, the information terminal 50 sends the first receipt change command to the electronic receipt management server 10. The consumer touches the arrow icon M6 when he/she wants to browse the monthly aggregated data of the next month. When the arrow icon M6 is touched, the information terminal 50 sends the second receipt change command to the electronic receipt management server 10. If the monthly total data 144R for the next month does not exist, the arrow icon M6 is invalidated, and the second year/month change command is not transmitted even if touched.

消費者は、OTC医薬品の購買情報を閲覧したい場合、ハイパーテキスト「一覧表示」にタッチする。ハイパーテキスト「一覧表示」がタッチされると、情報端末50は、電子レシート管理サーバ10に一覧表示コマンドを送信する。 The consumer touches the hypertext “list display” when he/she wants to browse the purchase information of the OTC drug. When the hypertext “display list” is touched, the information terminal 50 sends a list display command to the electronic receipt management server 10.

消費者は、月間集計画像の閲覧を終了する場合には、閲覧終了ボタンBT2にタッチする。閲覧終了ボタンBT2がタッチされると、情報端末50は、電子レシート管理サーバ10に閲覧終了コマンドを送信する。 When ending the browsing of the monthly total image, the consumer touches the browse end button BT2. When the browse end button BT2 is touched, the information terminal 50 transmits a browse end command to the electronic receipt management server 10.

月間集計画像を送信したCPU11は、Act36として第1又は第2の年月変更コマンドを受信したか否かを判断する。第1又は第2の年月変更コマンドを受信していない場合(Act36にてNO)、CPU11は、Act37として一覧表示コマンドを受信したか否かを判断する。一覧表示コマンドを受信していない場合(Act37にてNO)、CPU11は、Act38として閲覧終了コマンドを受信したか否かを判断する。閲覧終了コマンドを受信していない場合(Act38にてNO)、CPU11は、Act36の処理に戻る。したがってCPU11は、Act36乃至Act38の処理により、第1又は第2の年月変更コマンドを受信するか、一覧表示コマンドを受信するか、閲覧終了コマンドを受信するのを待ち受ける。 The CPU 11 that has transmitted the monthly tally image determines whether or not the Act 36 receives the first or second year/month change command. When the first or second year/month change command has not been received (NO in Act 36), the CPU 11 determines whether or not the list display command has been received as Act 37. When the list display command is not received (NO in Act 37), the CPU 11 determines whether or not the browse end command is received as Act 38. When the browse end command has not been received (NO in Act 38), the CPU 11 returns to the process of Act 36. Therefore, the CPU 11 waits to receive the first or second year/month change command, the list display command, or the browse end command by the processes of Act36 to Act38.

Act36乃至Act38の待ち受け状態において、第1又は第2の年月変更コマンドを受信した場合には(Act36にてYES)、CPU11は、Act39として年月エリアの年月を更新する。具体的にはCPU11は、第1の年月変更コマンドを受信した場合には一月前の年月に更新する。CPU11は、第2の年月変更コマンドを受信した場合には一月後の年月に更新する。その後CPU11は、Act33の処理に戻る。これにより情報端末50においては、月間集計画面SC3に表示される画像が、前月又は翌月の月間集計画像に切り替わる。 When the first or second year/month change command is received in the standby state of Act36 to Act38 (YES in Act36), the CPU 11 updates the year/month of the year/month area as Act39. Specifically, when the CPU 11 receives the first year/month change command, the CPU 11 updates the year/month one month ago. When the CPU 11 receives the second year-month change command, the CPU 11 updates the date one month later. After that, the CPU 11 returns to the process of Act 33. As a result, in the information terminal 50, the image displayed on the monthly totaling screen SC3 is switched to the monthly totaling image of the previous month or the next month.

Act36乃至Act38の待ち受け状態において、一覧表示コマンドを受信した場合には(Act37にてYES)、CPU11は、Act40として、年月エリアから年度を検出し、RAM13のワークエリアに確保された年度エリアに書き込む。そしてCPU11は、Act41としてOTC医薬品集計ファイル146を検索して、月間集計要求コマンドに含まれていた会員IDと、OTC医薬品の小分類コードと、年度エリア内の年度とをヘッダ情報とするOTC医薬品集計データ146Rを検出する。 When the list display command is received in the standby state of Act36 to Act38 (YES in Act37), the CPU 11 detects the year from the year/month area as Act40, and enters the year area secured in the work area of the RAM13. Write. Then, the CPU 11 searches the OTC drug total file 146 as Act 41, and uses the member ID included in the monthly total request command, the OTC drug subclass code, and the year in the year area as header information for the OTC drug. The aggregated data 146R is detected.

CPU11は、OTC医薬品集計データ146Rを検出したならば、Act42としてそのOTC医薬品集計データ146Rに基づいてOTC医薬品一覧画像を生成する。またCPU11は、Act43としてOTC医薬品集計データ146Rの控除フラグを調べる。そして、控除フラグが“1”にセットされていた場合には(Act43にてYES)、CPU11は、Act44としてセルフメディケーション税制の控除を受けられることを消費者に報知するためのメッセージをOTC医薬品一覧画像に追加する。メッセージとしては、例えば「医療費控除対象です」、「セルフメディケーション税制による控除を受けられます」等が考えられる。控除フラグが“0”にリセットされている場合には(Act43にてNO)、CPU11は、Act44の処理を実行しない。 When detecting the OTC drug total data 146R, the CPU 11 generates an OTC drug list image based on the OTC drug total data 146R as Act42. Further, the CPU 11 checks the deduction flag of the OTC drug tabulation data 146R as Act43. Then, when the deduction flag is set to “1” (YES in Act 43 ), the CPU 11 issues a message for notifying the consumer that the deduction of the self-medication tax system is available as Act 44 to the OTC drug. Add to the list image. The message can be, for example, "subject to medical expenses deduction", "you can receive a deduction under the self-medication tax system", or the like. When the deduction flag is reset to “0” (NO in Act 43), the CPU 11 does not execute the process of Act 44.

CPU11は、Act45としてOTC医薬品一覧画像をコマンド送信元の情報端末50へと送信する。かくして情報端末50では、表示デバイスの画面が、月間集計画面SC3からOTC医薬品一覧画面SC4(図18を参照)に切り替わる。 The CPU 11 transmits the OTC drug list image as Act 45 to the information terminal 50 which is the command transmission source. Thus, in the information terminal 50, the screen of the display device is switched from the monthly totalization screen SC3 to the OTC drug list screen SC4 (see FIG. 18).

OTC医薬品一覧画面SC4の一表示例を図18に示す。図示するように、OTC医薬品一覧画面SC4には、OTC医薬品一覧画像が表示される。レシートアイコンIC2、ホームアイコンIC1及びその他アイコンIC3の状態は変化しない。 FIG. 18 shows a display example of the OTC drug list screen SC4. As shown in the figure, an OTC drug list image is displayed on the OTC drug list screen SC4. The states of the receipt icon IC2, the home icon IC1 and the other icon IC3 do not change.

OTC医薬品一覧画像は、年度合計金額(図18では「合計:\33,333」)と、OTC医薬品の明細購入リストL2と、矢印アイコンM7,M8とを含む。また、帳票ボタンB3と閲覧終了ボタンBT4とがOTC医薬品一覧画面SC4に表示される。図17のOTC医薬品一覧画面SC4は、年度合計金額が控除対象の下限額を超えている場合である。すなわち、OTC医薬品一覧画像は、メッセージMS1を含む。 The OTC drug list image includes a yearly total amount (“total: ¥33,333” in FIG. 18), a detailed purchase list L2 of OTC drug, and arrow icons M7 and M8. Further, the form button B3 and the browse end button BT4 are displayed on the OTC drug list screen SC4. The OTC drug list screen SC4 in FIG. 17 is a case where the total amount of the fiscal year exceeds the lower limit of the deduction target. That is, the OTC drug list image includes the message MS1.

明細購入リストL2は、OTC医薬品集計データ146Rに含まれる各購入明細データD1によって作成される。すなわち、1つの購入明細データD1の取引日時と商品名と税込価格とを1行(明細行と称する)で表わし、この明細行を全ての購入明細データD1の数だけ行方向に並べることで、明細購入リストL2が作成される。なお、取引日時については、図18に示すように日付のみ明細行に表示させてもよいし、時刻まで明細行に表示させてもよい。 The detailed purchase list L2 is created by each purchase detailed data D1 included in the OTC drug total data 146R. That is, the transaction date and time, the product name, and the tax-included price of one purchase detail data D1 are represented by one line (referred to as a detail line), and the detail lines are arranged in the row direction by the number of all purchase detail data D1. The detailed purchase list L2 is created. Regarding the transaction date and time, only the date may be displayed on the detail line as shown in FIG. 18, or the date and time may be displayed on the detail line.

消費者は、OTC医薬品一覧画像から、この一年間に電子レシートサービスの加盟店で購入したOTC医薬品の合計金額と個々の明細(取引日時と商品名と税込価格)とを表わすOTC医薬品購買情報を確認することができる。 From the OTC drug list image, the consumer provides OTC drug purchase information indicating the total amount of OTC drugs purchased at member stores of the electronic receipt service and individual details (transaction date and time, product name, and tax-included price) from the OTC drug list image. You can check.

消費者は、前年のOTC医薬品購買情報を閲覧したい場合、矢印アイコンM7にタッチする。矢印アイコンM7がタッチされると、情報端末50は、電子レシート管理サーバ10に第1の年度変更コマンドを送信する。翌年のOTC医薬品購買情報を閲覧したい場合、消費者は、矢印アイコンM8にタッチする。矢印アイコンM8がタッチされると、情報端末50は、電子レシート管理サーバ10に第2の年度変更コマンドを送信する。なお、翌年のOTC医薬品集計データ146Rが存在しない場合には、矢印アイコンM8は無効化されており、タッチしても第2の年度変更コマンドは送信されない。 When the consumer wants to browse the OTC drug purchase information of the previous year, the consumer touches the arrow icon M7. When the arrow icon M7 is touched, the information terminal 50 transmits the first year change command to the electronic receipt management server 10. When the consumer wants to browse the OTC drug purchase information for the next year, the consumer touches the arrow icon M8. When the arrow icon M8 is touched, the information terminal 50 transmits the second year change command to the electronic receipt management server 10. If the OTC drug total data 146R for the next year does not exist, the arrow icon M8 is invalidated, and the second year change command is not transmitted even if touched.

消費者は、OTC医薬品購買情報を購入した際のレシートを取得したい場合、所望の明細行にタッチする。明細行がタッチされると、情報端末50は、電子レシート管理サーバ10に明細選択コマンドを送信する。明細選択コマンドには、タッチされた明細行に表示されている取引日時、商品名及び税込価格が含まれる。 When the consumer wants to obtain a receipt when purchasing the OTC drug purchase information, the consumer touches a desired detail line. When the detail line is touched, the information terminal 50 sends a detail selection command to the electronic receipt management server 10. The detail selection command includes the transaction date and time, the product name, and the tax-included price displayed on the touched detail line.

消費者は、セルフメディケーション税制の適用を受けるための確定申告の際に必要な帳票を取得したい場合、帳票ボタンBT3にタッチする。帳票ボタンBT3がタッチされると、情報端末50は、電子レシート管理サーバ10に帳票要求コマンドを送信する。 The consumer touches the form button BT3 when he/she wants to obtain the form required for the tax return for applying the self-medication tax system. When the form button BT3 is touched, the information terminal 50 sends a form request command to the electronic receipt management server 10.

消費者は、OTC医薬品購買情報の閲覧を終了する場合には、閲覧終了ボタンBT4にタッチする。閲覧終了ボタンBT4がタッチされると、情報端末50は、電子レシート管理サーバ10に閲覧終了コマンドを送信する。 The consumer touches the browse end button BT4 to finish browsing the OTC drug purchase information. When the browse end button BT4 is touched, the information terminal 50 sends a browse end command to the electronic receipt management server 10.

OTC医薬品一覧画像を送信したCPU11は、図12のAct51として第1又は第2の年度変更コマンドを受信したか否かを判断する。第1又は第2の年度変更コマンドを受信していない場合(Act51にてNO)、CPU11は、Act52として明細選択コマンドを受信したか否かを判断する。明細選択コマンドを受信していない場合(Act52にてNO)、CPU11は、Act53として帳票要求コマンドを受信したか否かを判断する。帳票要求コマンドを受信していない場合(Act53にてNO)、CPU11は、Act54として閲覧終了コマンドを受信したか否かを判断する。閲覧終了コマンドを受信していない場合(Act54にてNO)、CPU11は、Act51の処理に戻る。したがってCPU11は、Act51乃至Act54の処理により、第1又は第2の年度変更コマンドを受信するか、明細選択コマンドを受信するか、帳票要求コマンドを受信するか、閲覧終了コマンドを受信するのを待ち受ける。 The CPU 11 that has transmitted the OTC drug list image determines whether or not the first or second year change command has been received as Act 51 in FIG. When the first or second year change command has not been received (NO in Act 51), the CPU 11 determines whether or not the detail selection command has been received as Act 52. When the detail selection command has not been received (NO in Act 52), the CPU 11 determines whether or not the form request command has been received as Act 53. When the form request command has not been received (NO in Act 53), the CPU 11 determines whether or not the browse end command has been received as Act 54. When the browse end command has not been received (NO in Act 54), the CPU 11 returns to the process of Act 51. Therefore, the CPU 11 waits to receive the first or second year change command, the detail selection command, the form request command, or the browse end command by the processing of Act51 to Act54. ..

Act51乃至Act54の待ち受け状態において、第1又は第2の年度変更コマンドを受信した場合には(Act51にてYES)、CPU11は、Act55として年度エリアの年度を更新する。具体的にはCPU11は、第1の年度変更コマンドを受信した場合には一年前の年度に更新する。CPU11は、第2の年度変更コマンドを受信した場合には一年後の年度に更新する。その後CPU11は、図11のAct41の処理に戻る。これにより、情報端末50においては、ディスプレイに表示されるOTC医薬品一覧画面SC4の画像が、前年又は翌年のOTC医薬品一覧画像に切り替わる。 When the first or second year change command is received in the standby state of Act51 to Act54 (YES in Act51), the CPU 11 updates the year in the year area as Act55. Specifically, when the CPU 11 receives the first year change command, the CPU 11 updates the year before one year. When the CPU 11 receives the second year change command, the CPU 11 updates the year after one year. After that, the CPU 11 returns to the process of Act 41 of FIG . Thereby, in the information terminal 50, the image of the OTC drug list screen SC4 displayed on the display is switched to the OTC drug list image of the previous year or the next year.

Act51乃至Act54の待ち受け状態において、明細選択コマンドを受信した場合には(Act52にてYES)、CPU11は、図13のAct71としてその明細選択コマンドに含まれる取引日時、商品名及び価格を含む購入明細データD1をOTC医薬品集計データ146Rから検出する。次いでCPU11は、Act72として電子レシートファイル143を検索して、当該購入明細データD1から特定される1つのレシートデータ25を検出する。そしてCPU11は、Act73としてその検出されたレシートデータ25に基づいて電子レシート画像を生成する。 When the item selection command is received in the standby state of Act51 to Act54 (YES in Act52), the CPU 11 purchase details including the transaction date and time, the product name, and the price included in the item selection command as Act71 in FIG. The data D1 is detected from the OTC drug total data 146R. Next, the CPU 11 searches the electronic receipt file 143 as Act 72, and detects one receipt data 25 specified from the purchase detail data D1. Then, the CPU 11 generates an electronic receipt image based on the detected receipt data 25 as Act 73.

電子レシート画像を生成したならば、CPU11は、Act74として電子レシート画像をコマンド送信元の情報端末50へと送信する。かくして情報端末50では、表示デバイスの画面が、OTC医薬品一覧画面SC4から電子レシート画面SC5(図19を参照)に切り替わる。 After generating the electronic receipt image, the CPU 11 transmits the electronic receipt image as Act 74 to the information terminal 50 which is the command transmission source. Thus, in the information terminal 50, the screen of the display device is switched from the OTC drug list screen SC4 to the electronic receipt screen SC5 (see FIG. 19).

電子レシート画面SC5の一表示例を図19に示す。図示するように、電子レシート画面SC5には、電子レシート画像Rが表示される。レシートアイコンIC2、ホームアイコンIC1及びその他アイコンIC3の状態は変化しない。また、送信ボタンBT5と閲覧終了ボタンBT6とが電子レシート画面SC5に表示される。 FIG. 19 shows a display example of the electronic receipt screen SC5. As shown in the figure, an electronic receipt image R is displayed on the electronic receipt screen SC5. The states of the receipt icon IC2, the home icon IC1 and the other icon IC3 do not change. Further, a send button BT5 and a browse end button BT6 are displayed on the electronic receipt screen SC5.

消費者は、電子レシート画像Rから、選択行に商品名等が表示されているOTC医薬品を購入したときに店舗から発行されたレシートを確認することができる。そのレシートを取得したい場合、消費者は、送信ボタンBT5にタッチする。送信ボタンBT5がタッチされると、情報端末50は、電子レシート管理サーバ10に送信コマンドを送信する。 From the electronic receipt image R, the consumer can confirm the receipt issued from the store when purchasing the OTC drug whose product name or the like is displayed in the selected row. To obtain the receipt, the consumer touches the send button BT5. When the send button BT5 is touched, the information terminal 50 sends a send command to the electronic receipt management server 10.

消費者は、電子レシート画像Rの閲覧を終了する場合、閲覧終了ボタンBT6にタッチする。閲覧終了ボタンBT6がタッチされると、情報端末50は電子レシート管理サーバ10に閲覧終了コマンドを送信する。 When ending the browsing of the electronic receipt image R, the consumer touches the browsing end button BT6. When the browse end button BT6 is touched, the information terminal 50 sends a browse end command to the electronic receipt management server 10.

電子レシート画像を送信したCPU11は、Act75として送信コマンドを受信したか否かを判断する。送信コマンドを受信していない場合(Act75にてNO)、CPU11は、Act76として閲覧終了コマンドを受信したか否かを判断する。閲覧終了コマンドを受信していない場合(Act76にてNO)、CPU11は、Act75の処理に戻る。したがってCPU11は、Act75及びAct76の処理により送信コマンドを受信するか、閲覧終了コマンドを受信するのを待ち受ける。 The CPU 11 that has transmitted the electronic receipt image determines whether or not a transmission command has been received as Act 75. When the transmission command is not received (NO in Act 75), the CPU 11 determines whether or not the browse end command is received in Act 76. If the browse end command has not been received (NO in Act 76), the CPU 11 returns to the process of Act 75. Therefore, the CPU 11 waits to receive the transmission command or the browse end command by the processing of Act 75 and Act 76.

Act75及びAct76の待ち受け状態において、送信コマンドを受信した場合には(Act75にてYES)、CPU11は、Act77としてその送信コマンドに含まれる会員IDで特定される会員データ141Rからメールアドレスを検出する。そしてCPU11は、Act78として、Act73の処理で生成した電子レシート画像をPDF(Portable Document Format)ファイルのデータに変換する。そしてCPU11は、Act79としてメールソフトを起動して、PDFファイルのデータに変換された電子レシート画像を添付ファイルとする電子メールを作成し、Act77の処理で取得したメールアドレス宛てに送信する。その後、CPU11は、図11のAct41の処理に戻る。これにより、情報端末50においては、表示デバイスの画面が電子レシート画面SC5からOTC医薬品一覧画面SC4に戻る。 When the transmission command is received in the standby state of Act75 and Act76 (YES in Act75), the CPU 11 detects the mail address from the member data 141R specified by the member ID included in the transmission command as Act77. Then, as Act 78, the CPU 11 converts the electronic receipt image generated in the process of Act 73 into data of a PDF (Portable Document Format) file. Then, the CPU 11 activates the e-mail software as Act 79, creates an e-mail with the electronic receipt image converted into the data of the PDF file as an attachment file, and sends the e-mail to the mail address acquired in the process of Act 77. After that, the CPU 11 returns to the process of Act 41 of FIG. As a result, in the information terminal 50, the screen of the display device returns from the electronic receipt screen SC5 to the OTC drug list screen SC4.

Act75及びAct76の待ち受け状態において、閲覧終了コマンドを受信した場合には(Act76にてYES)、CPU11は、図11のAct41の処理に戻る。これにより、情報端末50においては、表示デバイスの画面が、電子レシート画面SC5からOTC医薬品一覧画面SC4に戻る。 When the browse end command is received in the standby state of Act75 and Act76 (YES in Act76), the CPU 11 returns to the process of Act41 in FIG. As a result, in the information terminal 50, the screen of the display device returns from the electronic receipt screen SC5 to the OTC drug list screen SC4.

図12のAct51乃至Act54の待ち受け状態において、帳票要求コマンドを受信した場合には(Act53にてYES)、CPU11は、Act56として帳票要求コマンドに含まれる会員IDで特定されるOTC医薬品集計データ146Rの控除フラグを再度チェックする。そして、控除フラグが“1”にセットされていた場合(Act56にてYES)、CPU11は、Act57として出力先リスト画像をコマンド送信元の情報端末50へと送信する。かくして情報端末50では、表示デバイスの画面が、OTC医薬品一覧画面SC4から出力先リスト画面SC6(図20を参照)に切り替わる。 When the form request command is received in the standby state of Act 51 to Act 54 in FIG. 12 (YES in Act 53), the CPU 11 reads the OTC drug total data 146R specified by the member ID included in the form request command as Act 56. Check the deduction flag again. Then, when the deduction flag is set to "1" (YES in Act 56), the CPU 11 transmits the output destination list image to the information terminal 50 as the command transmission source as Act 57. Thus, in the information terminal 50, the screen of the display device is switched from the OTC drug list screen SC4 to the output destination list screen SC6 (see FIG. 20).

出力先リスト画面SC6の一表示例を図20に示す。図示するように、出力先リスト画面SC6には、第1乃至第3の選択ボックスPM1,PM2,PM3を備えた出力先リスト画像が表示される。また、直前のOTC医薬品一覧画面SC4に表示されていた年度及び合計金額と、実行ボタンBT7及び閲覧終了ボタンBT8とが、出力先リスト画面SC6に表示される。第1の選択ボックスPM1には、都道府県名がプルダウンメニューで表示される。第2の選択ボックスPM2には、第1の選択ボックスPM1で選択された都道府県の市区町村名がプルダウンメニューで表示される。第3の選択ボックスPM3には、第2の選択ボックスPM2で選択された市区町村内にある電子レシートサービス加盟店の店舗名がプルダウンメニューで表示される。 FIG. 20 shows a display example of the output destination list screen SC6. As illustrated, the output destination list screen SC6 displays the output destination list image including the first to third selection boxes PM1, PM2, PM3. Further, the year and the total amount displayed on the immediately preceding OTC drug list screen SC4, the execute button BT7, and the browse end button BT8 are displayed on the output destination list screen SC6. A prefecture name is displayed in a pull-down menu in the first selection box PM1. In the second selection box PM2, the city name of the prefecture selected in the first selection box PM1 is displayed in a pull-down menu. In the third selection box PM3, the store name of the electronic receipt service member store in the municipality selected in the second selection box PM2 is displayed in a pull-down menu.

出力先リスト画面SC6を確認した消費者は、第1乃至第3の選択ボックスPM1,PM2,PM3にそれぞれ表示されるメニューを選択操作することにより、帳票の出力先とする店舗を選択する。店舗を選択し終えると、消費者は、実行ボタンBT7にタッチする。実行ボタンBT7がタッチされると、情報端末50は、電子レシート管理サーバ10に帳票出力コマンドを送信する。帳票出力コマンドには、会員IDとともに、第1乃至第3の選択ボックスPM1,PM2,PM3で選択された店舗の店舗コードが含まれる。 The consumer who confirms the output destination list screen SC6 selects the store to be the output destination of the form by selecting the menu displayed in each of the first to third selection boxes PM1, PM2, and PM3. After finishing selecting the store, the consumer touches the execute button BT7. When the execute button BT7 is touched, the information terminal 50 sends a form output command to the electronic receipt management server 10. The form output command includes the member ID and the store code of the store selected in the first to third selection boxes PM1, PM2, PM3.

出力先リスト画像を送信した電子レシート管理サーバ10のCPU11は、帳票の出力先が指定されるのを待ち受ける(Act58)。CPU11は、出力先リスト画像を送信した情報端末50から帳票出力コマンドを受信すると、帳票の出力先が指定されたと判断する(Act58にてYES)。帳票の出力先が指定されると、CPU11は、Act59として帳票出力コマンドに含まれる店舗コードを、RAM13のワークエリアに確保された出力先エリアに書き込む。 The CPU 11 of the electronic receipt management server 10 that has transmitted the output destination list image waits for the output destination of the form to be designated (Act 58). When the form output command is received from the information terminal 50 that has transmitted the output destination list image, the CPU 11 determines that the output destination of the form has been designated (YES in Act 58). When the output destination of the form is designated, the CPU 11 writes the store code included in the form output command as Act 59 in the output destination area secured in the work area of the RAM 13.

CPU11は、Act60としてOTC医薬品集計ファイル146に記憶されたデータに基づいて帳票を生成する。具体的にはCPU11は、帳票出力コマンドに含まれる会員IDと、OTC医薬品の小分類コードと、年度エリア内の年度とをヘッダ情報とするOTC医薬品集計データ146Rを検出する。そしてCPU11は、このOTC医薬品集計データ146Rに記憶されている各購入明細データD1の取引日時、店舗名、店舗所在地、商品名、税込価格等を用いて帳票データを生成する。またCPU11は、Act61として各購入明細データD1に含まれる発行回数を+1だけ増加させる。 The CPU 11 generates a form based on the data stored in the OTC drug totalization file 146 as Act60. Specifically, the CPU 11 detects OTC drug total data 146R having header information including the member ID included in the form output command, the OTC drug subclass code, and the year in the year area. Then, the CPU 11 generates form data by using the transaction date/time, store name, store location, product name, tax-included price, etc. of each purchase specification data D1 stored in the OTC drug total data 146R. Further, the CPU 11 increases the number of issuances included in each purchase specification data D1 as Act 61 by +1.

CPU11は、Act62として出力先エリアに記憶された店舗コードで店舗ファイル142を検索し、該当する店舗データ142Rのプリンタアドレスを取得する。そしてCPU11は、Act63として通信ユニット16を制御して、プリンタアドレスで特定されるプリンタ23宛に帳票データを送信する。帳票データを送信した後、CPU11は、図11のAct41の処理に戻る。これにより、情報端末50においては、ディスプレイに表示される画像が、出力先リスト画面SC6からOTC医薬品一覧画面SC4に戻る。 The CPU 11 searches the store file 142 with the store code stored in the output destination area as Act 62, and acquires the printer address of the corresponding store data 142R. Then, the CPU 11 controls the communication unit 16 as Act 63 to transmit the form data to the printer 23 specified by the printer address. After transmitting the form data, the CPU 11 returns to the process of Act 41 of FIG. As a result, in the information terminal 50, the image displayed on the display returns from the output destination list screen SC6 to the OTC drug list screen SC4.

電子レシート管理サーバ10から送信された帳票データは、ネットワーク30を介して、プリンタアドレスで特定される店舗のプリンタ23で受信され、プリントアウトされる。この帳票データを基にプリンタ23で印刷された帳票60の一例を図23に示す。図示するように、帳票60は、セルフメディケーション税制の対象商品であるOTC医薬品の購入リスト61と、当該帳票60がセルフメディケーション税制の対象商品購入一覧であることを示すメッセージ62と、OTC医薬品の購入合計金額63と、当該帳票60の発行元及び発行日を特定する情報64とを含む。購入リスト61は、支払い年月日欄、金額(税込)欄、医薬品名欄、店舗所在地欄、店舗名欄及び備考欄が設けられており、各欄にそれぞれ該当するデータが印刷される。特に、備考欄には、発行回数が“1”以上の商品について「再発行」と印刷される。 The form data transmitted from the electronic receipt management server 10 is received by the printer 23 of the store specified by the printer address via the network 30 and printed out. FIG. 23 shows an example of the form 60 printed by the printer 23 based on this form data. As shown in the figure, the form 60 is a purchase list 61 of OTC drug products that are subject to the self-medication tax system, a message 62 that the form 60 is a list of product purchases that are subject to the self-medication tax system, and an OTC drug product. And the information 64 that specifies the issuer and issue date of the form 60. The purchase list 61 is provided with a payment date column, an amount (tax included) column, a drug name column, a store location column, a store name column, and a remarks column, and corresponding data is printed in each column. In particular, in the remarks column, "reissue" is printed for a product that has been issued "1" or more.

このように、帳票60には、消費者が購入したOTC医薬品の商品名及び税込金額と、当該商品がセルフメディケーション税制対象商品である旨のメッセージ62と、販売店名及び購入日が明記されている。したがって帳票60は、セルフメディケーション税制の適用を受けるための確定申告の際に必要となる証明書類として有効である。 As described above, the form 60 clearly indicates the product name and the tax-included amount of the OTC drug purchased by the consumer, the message 62 that the product is subject to the self-medication tax system, the store name and the purchase date. There is. Therefore, the form 60 is effective as a certificate that is required when making a tax return for applying the self-medication tax system.

図12に説明を戻す。
CPU11は、控除フラグが“0”にリセットされていた場合(Act56にてNO)、図14のAct81としてOTC医薬品の年度合計金額を取得する。具体的にはCPU11は、帳票出力コマンドに含まれる会員IDと、OTC医薬品の小分類コードと、年度エリア内の年度とをヘッダ情報とするOTC医薬品集計データ146Rを検出する。そしてCPU11は、このOTC医薬品集計データ146Rに記憶されている年度合計金額を取得する。控除フラグは、図10のAct22において、年度合計金額が控除対象の下限額(2017年度から導入のセルフメディケーション税制では12,000円未満)の場合、あるいはAct23において、年度合計金額が控除対象の上限額(2017年度から導入のセルフメディケーション税制では100,000円)を超える場合、“0”にリセットされる。したがって、Act81の処理において取得される年度合計金額は、下限額よりも少ない金額または上限額を超えた金額となる。
Returning to FIG.
When the deduction flag is reset to "0" (NO in Act56), the CPU 11 acquires the yearly total amount of the OTC drug as Act81 in FIG. Specifically, the CPU 11 detects OTC drug total data 146R having header information including the member ID included in the form output command, the OTC drug subclass code, and the year in the year area. Then, the CPU 11 acquires the yearly total amount stored in the OTC drug total data 146R. In the act 22 of FIG. 10, the deduction flag indicates that the total amount of the year is the lower limit amount of the deduction target (less than 12,000 yen in the self-medication tax system introduced from 2017), or in Act 23, the total amount of the year is the deduction target. If the maximum amount (100,000 yen under the self-medication tax system introduced in 2017) is exceeded, it will be reset to "0". Therefore, the annual total amount of money acquired in the processing of Act 81 is less than the lower limit amount or exceeds the upper limit amount.

CPU11は、Act82として年度合計金額が控除対象の下限額よりも少ない金額であるか否かを判定する。年度合計金額が控除対象の下限額よりも少ない金額の場合(Act82にてYES)、CPU11は、Act83として控除対象の下限額から年度合計金額を減算して下限額までの不足額を算出する。そしてCPU11は、Act84としてこの不足額を含む不足メッセージを作成し、情報端末50に宛てて送信する。 The CPU 11 determines whether or not the yearly total amount is less than the lower limit amount to be deducted as Act 82. When the yearly total amount is less than the lower limit amount for deduction (YES in Act 82), the CPU 11 subtracts the total yearly amount from the lower limit amount for deduction and calculates the shortage amount up to the lower limit amount as Act83. Then, the CPU 11 creates an insufficiency message including this insufficiency as Act 84 and sends it to the information terminal 50.

これに対し、年度合計金額が上限額を超えている場合には(Act82にてNO)、CPU11は、Act85として超過メッセージを作成し、情報端末50に宛てて送信する。 On the other hand, when the annual total amount exceeds the upper limit (NO in Act 82), the CPU 11 creates an excess message as Act 85 and sends it to the information terminal 50.

Act84又はAct85の処理により、情報端末50においては、ディスプレイに表示されているOTC医薬品一覧画面SC4のメッセージデータMS1が、不足メッセージMS2(図21を参照)又は超過メッセージMS3(図22を参照)に変更される。 By the processing of Act84 or Act85, in the information terminal 50, the message data MS1 of the OTC drug list screen SC4 displayed on the display becomes the shortage message MS2 (see FIG. 21) or the excess message MS3 (see FIG. 22). Be changed.

図21は、不足メッセージMS2が表示されたOTC医薬品一覧画面SC4の一表示例である。図示するように、OTC医薬品一覧画面SC4には、セルフメディケーション税制の控除を受けるための金額が不足していることとその不足額とを通知する不足メッセージMS2が表示される。また、「出力する」ボタンBT9と「出力しない」ボタンBT10とがOTC医薬品一覧画面SC4に表示される。セルフメディケーション税制の控除を受けるための金額が不足していても、電子レシート対応の店舗以外の店舗で購入したOTC医薬品によって所定金額を満たす場合がある。そこで不足メッセージMS2を確認した消費者は、帳票を発行する場合には「出力する」ボタンBT9を、帳票を発行しない場合には「出力しない」ボタンBT10をタッチする。 FIG. 21 is a display example of the OTC drug list screen SC4 in which the shortage message MS2 is displayed. As shown in the figure, the OTC drug list screen SC4 displays a shortage message MS2 notifying that the amount for receiving the deduction of the self-medication tax system is insufficient and the shortage amount. Further, a “output” button BT9 and a “not output” button BT10 are displayed on the OTC drug list screen SC4. Even if there is not enough money to receive the self-medication tax deduction, the OTC drug purchased at a store other than a store that accepts electronic receipts may meet the predetermined amount. Therefore, the consumer who confirms the shortage message MS2 touches the "output" button BT9 when issuing the form and the "not output" button BT10 when not issuing the form.

図22は、超過メッセージMS3が表示されたOTC医薬品一覧画面SC4の一表示例である。図示するように、OTC医薬品一覧画面SC4には、セルフメディケーション税制の控除金額を超えていること、通常の医療費控除を受けられることを通知する超過メッセージMS3が表示される。また、「出力する」ボタンBT9と「出力しない」ボタンBT10とがOTC医薬品一覧画面SC4に表示される。従来の医療費控除制度による控除を受けるか、セルフメディケーション税制の控除を受けるかは任意に選択可能である。ただし、セルフメディケーション税制は、医療費控除の特例という位置付けであるので、両方の控除を同時に受けることはできない。そこで超過メッセージMS3を確認した消費者は、帳票を発行する場合には「出力する」ボタンBT9を、帳票を発行しない場合には「出力しない」ボタンBT10をタッチする。 FIG. 22 is a display example of the OTC drug list screen SC4 in which the excess message MS3 is displayed. As shown in the figure, the OTC drug list screen SC4 displays an excess message MS3 notifying that the deduction amount of the self-medication tax system has been exceeded and that normal medical expense deduction can be received. Further, a “output” button BT9 and a “not output” button BT10 are displayed on the OTC drug list screen SC4. It is possible to arbitrarily select whether to receive a deduction under the conventional medical expense deduction system or a self-medication tax deduction. However, the self-medication tax system is a special case of deduction for medical expenses, so you cannot receive both deductions at the same time. Therefore, the consumer who confirms the excess message MS3 touches the "output" button BT9 when issuing the form and the "not output" button BT10 when not issuing the form.

OTC医薬品一覧画面SC4において、「出力する」ボタンBT9がタッチされた場合には、情報端末50は、電子レシート管理サーバ10に出力コマンドを送信する。「出力しない」ボタンBT9がタッチされた場合には、情報端末50は、電子レシート管理サーバ10に非出力コマンドを送信する。 When the “output” button BT9 is touched on the OTC drug list screen SC4, the information terminal 50 sends an output command to the electronic receipt management server 10. When the “not output” button BT9 is touched, the information terminal 50 sends a non-output command to the electronic receipt management server 10.

CPU11は、OTC医薬品一覧画面SC4に不足メッセージMS2又は超過メッセージMS3を表示させた後、Act86として出力コマンドを受信するか非出力コマンドを受信するのを待ち受ける。 After displaying the shortage message MS2 or the excess message MS3 on the OTC drug list screen SC4, the CPU 11 waits to receive an output command or a non-output command as Act86.

ここで、出力コマンドを受信した場合(Act86、YES)、CPU11は、Act87乃至Act93として、前述したAct57乃至Act63の処理と同様な処理を実行する。すなわちCPU11は、Act87として出力先リスト画像をコマンド送信元の情報端末50へと送信する。そしてCPU11は、Act88として帳票の出力先が指定されるのを待ち受ける。帳票の出力先が指定されると(Act88にてYES)、CPU11は、Act89として帳票出力コマンドに含まれる店舗コードを、RAM13のワークエリアに確保された出力先エリアに書き込む。 Here, when the output command is received (Act86, YES), the CPU 11 sets Act87 to Act93 and executes the same processes as the above-described Act57 to Act63. That is, the CPU 11 transmits the output destination list image as Act 87 to the information terminal 50 which is the command transmission source. Then, the CPU 11 waits until the output destination of the form is designated as Act 88. When the output destination of the form is designated (YES in Act 88), the CPU 11 writes the store code included in the form output command as Act 89 in the output destination area secured in the work area of the RAM 13.

CPU11は、Act90としてOTC医薬品集計ファイル146に記憶されたデータに基づいて帳票を生成する。またCPU11は、Act91として各購入明細データD1に含まれる発行回数を+1だけ増加させる。 The CPU 11 generates a form based on the data stored in the OTC drug tabulation file 146 as Act 90. Further, the CPU 11 increases the number of issuances included in each purchase specification data D1 as ACT91 by +1.

CPU11は、Act92として出力先エリアに記憶された店舗コードで店舗ファイル142を検索し、該当する店舗データ142Rのプリンタアドレスを取得する。そしてCPU11は、Act93として通信ユニット16を制御して、プリンタアドレスで特定されるプリンタ23宛に帳票データを送信する。帳票データを送信した後、CPU11は、図11のAct41の処理に戻る。 The CPU 11 searches the store file 142 with the store code stored in the output destination area as Act 92, and acquires the printer address of the corresponding store data 142R. Then, the CPU 11 controls the communication unit 16 as Act 93 to transmit the form data to the printer 23 specified by the printer address. After transmitting the form data, the CPU 11 returns to the process of Act 41 of FIG.

電子レシート管理サーバ10から送信された帳票データは、ネットワーク30を介して、プリンタアドレスで特定される店舗のプリンタ23で受信され、帳票60としてプリントアウトされる。 The form data transmitted from the electronic receipt management server 10 is received by the printer 23 of the store specified by the printer address via the network 30 and printed out as a form 60.

ここで、不足メッセージMS2が表示されているOTC医薬品一覧画面SC4の「出力する」ボタンBT9がタッチされた場合、帳票60に不足メッセージMS2またはそれに類似した内容のメッセージが印字されるようにしてもよい。同様に、超過メッセージMS3が表示されているOTC医薬品一覧画面SC4の「出力する」ボタンBT9がタッチされた場合、帳票60に超過メッセージMS3またはそれに類似した内容のメッセージが印字されるようにしてもよい。 Here, when the "output" button BT9 of the OTC drug list screen SC4 displaying the shortage message MS2 is touched, even if the shortage message MS2 or a message similar to it is printed on the form 60, Good. Similarly, when the "output" button BT9 of the OTC drug list screen SC4 in which the excess message MS3 is displayed is touched, even if the excess message MS3 or a message having similar content is printed on the form 60, Good.

一方、CPU11は、Act86において、非出力コマンドを受信した場合には(Act86、NO)、Act87乃至Act93の処理を行うことなく図11のAct41の処理に戻る。 On the other hand, when the non-output command is received in Act 86 (Act 86, NO), the CPU 11 returns to the process of Act 41 of FIG. 11 without performing the processes of Act 87 to Act 93.

ここに、電子レシート管理サーバ10のCPU11は、図12のAct56〜Act63の処理を実行することにより、会員ID(客識別情報)を含む帳票出力要求に応答して、OTC医薬品集計ファイル146で当該会員IDと関連付けられて記憶されている商品の販売データに基づき、所定期間内に売買された税控除を受けられる商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が税控除の対象商品である旨の記載を含む帳票60を出力する機能を実現する。すなわちCPU11は、Act56〜Act63の処理により帳票出力手段を構成する。 Here, the CPU 11 of the electronic receipt management server 10 executes the processing of Act56 to Act63 of FIG. 12 to respond to the form output request including the member ID (customer identification information), and in the OTC medicine total file 146, Based on the sales data of the product stored in association with the member ID, the product name, price, store name, purchase date, and product name of the product belonging to the product group that can be tax-deducted sold within a predetermined period are taxed. A function of outputting a form 60 including a statement that the product is a deduction target is realized. That is, the CPU 11 constitutes a form output unit by the processing of Act56 to Act63.

ここでCPU11は、帳票出力要求とともに受け取ったプリンタアドレス(出力先識別情報)で識別されるプリンタ23(出力機器)に送信出力する。またCPU11は、帳票出力要求に対して当該帳票出力要求に含まれる会員IDと関連付けてOTC医薬品集計ファイル146で記憶されている合計金額が所定金額範囲の範囲内であることを条件に帳票出力手段を動作させる。 Here, the CPU 11 transmits and outputs to the printer 23 (output device) identified by the printer address (output destination identification information) received together with the form output request. Further, the CPU 11 outputs the form output means on the condition that the total amount of money stored in the OTC drug totaling file 146 in association with the member ID included in the form output request is within a predetermined amount range. To operate.

さらにCPU11は、図14のAct81〜Act86の処理を実行することにより、帳票出力要求に対して当該帳票出力要求に含まれる会員IDと関連付けてOTC医薬品集計ファイル146で記憶されている合計金額が所定金額範囲の範囲外であるとき、帳票出力を行うか否かの選択入力を受け付ける機能を実現する。すなわちCPU11は、Act81〜Act86の処理により選択手段を構成する。この選択手段は、合計金額が所定金額範囲の下限金額未満であるとき、合計金額が下限金額に達するまでの不足額を帳票出力要求の要求元機器へと通知することを含む。 Further, the CPU 11 executes the processes of Act 81 to Act 86 in FIG. 14 so that the total amount of money stored in the OTC drug totalization file 146 is associated with the member ID included in the form output request in response to the form output request. A function for accepting a selection input as to whether or not to output a form when the amount is outside the range of the amount of money is realized. That is, the CPU 11 constitutes a selecting means by the processing of Act 81 to Act 86. The selecting means includes, when the total amount is less than the lower limit amount of the predetermined amount range, notifying the request source device of the form output request of the insufficient amount until the total amount reaches the lower limit amount.

図12に説明を戻す。
Act51乃至Act54の待ち受け状態において、閲覧終了コマンドを受信した場合(Act54にてYES)、CPU11は、図11のAct33の処理に戻る。これにより、情報端末50においては、表示デバイスの画面が、OTC医薬品一覧画面SC4から月間集計画面SC3に戻る。
Returning to FIG.
When the browse end command is received in the standby state of Act51 to Act54 (YES in Act54), the CPU 11 returns to the process of Act33 in FIG. As a result, in the information terminal 50, the screen of the display device returns from the OTC drug list screen SC4 to the monthly totalization screen SC3.

Act36乃至Act38の待ち受け状態において、閲覧終了コマンドを受信した場合には(Act38にてYES)、CPU11は、Act46としてコマンド送信元の情報端末50に対して消去コマンドを出力する。以上で、CPU11は、月間集計コマンドを受信した際の処理を終了する。因みに、消去コマンドを受信した情報端末50においては、表示デバイスの画面がホーム画面SC1に戻る。 When the browse end command is received in the standby state of Act 36 to Act 38 (YES in Act 38), the CPU 11 outputs an erase command as Act 46 to the information terminal 50 of the command transmission source. As described above, the CPU 11 ends the process when the monthly totaling command is received. Incidentally, in the information terminal 50 which has received the erase command, the screen of the display device returns to the home screen SC1.

このように本実施形態によれば、電子レシートレシートサービスの会員である消費者は、電子レシート閲覧プログラムがインストールされた情報端末50を使用することにより、セルフメディケーション税制に対応した確定申告用の帳票60を入手することができる。 As described above, according to the present embodiment, a consumer who is a member of the electronic receipt receipt service uses the information terminal 50 in which the electronic receipt browsing program is installed, and thus, the taxpayers can make a tax return corresponding to the self-medication tax system. The form 60 can be obtained.

しかも帳票60は、消費者が任意に選択した電子レシートサービス加盟店のプリンタ23からプリントアウトされる。したがって、消費者は、自身にとって都合のよい店舗から確定申告用の帳票60を入手できるメリットがある。 Moreover, the form 60 is printed out from the printer 23 of the electronic receipt service member store arbitrarily selected by the consumer. Therefore, the consumer has an advantage that he/she can obtain the form 60 for tax return from the store which is convenient for himself/herself.

また、帳票60がプリントアウトされる条件は、OTC医薬品の年間購入合計金額が控除対象の範囲内であるときに限られる。したがって、控除を受けられないときの無駄な帳票発行を未然に防ぐことができる。 Further, the condition for printing out the form 60 is limited to when the total annual purchase amount of OTC medicines is within the range of deduction. Therefore, it is possible to prevent useless issuance of the form when the deduction cannot be received.

しかも、帳票60をプリントアウトできないときには、消費者の情報端末50に帳票60を発行できない理由を示すメッセージが表示される。したがって消費者は、帳票60が発行されない理由を正確に知ることができる。 Moreover, when the form 60 cannot be printed out, a message indicating the reason why the form 60 cannot be issued is displayed on the consumer information terminal 50. Therefore, the consumer can accurately know the reason why the form 60 is not issued.

以下、他の実施形態について説明する。
前記実施形態では、消費者が一年間に電子レシートサービス加盟店で購入したOTC医薬品のリストを帳票60に印刷する場合を例示した。他の実施形態としては、消費者が指定した電子レシートサービス加盟店で購入したOTC医薬品のリストを帳票60に印刷可能とする。例えば、出力先リスト画面SC6に出力対象の店舗を指定する機能を持たせる。そして情報端末50は、電子レシート管理サーバ10に、出力先として消費者が選択した店舗の店舗コードとともに、出力対象として消費者が指定した店舗の店舗コードを含む帳票出力コマンドを送信する。電子レシート管理サーバ10のCPU11は、図12のAct60において帳票を生成する際に、OTC医薬品集計データ146Rに記憶されている各購入明細データD1のうち、出力対象として消費者が指定した店舗の店舗名を含む購入明細データD1で帳票データを生成する。こうすることにより、消費者が指定した電子レシートサービス加盟店で購入したOTC医薬品のリストが印刷された帳票60を取得することができる。
Hereinafter, other embodiments will be described.
In the above embodiment, the case where the consumer prints a list of OTC medicines purchased at the electronic receipt service member store for one year on the form 60 is illustrated. In another embodiment, a list of OTC medicines purchased at a consumer-specified electronic receipt service member store can be printed on the form 60. For example, the output destination list screen SC6 has a function of designating a store to be output. Then, the information terminal 50 transmits to the electronic receipt management server 10 a form output command including the store code of the store selected by the consumer as the output destination and the store code of the store designated by the consumer as the output target. The CPU 11 of the electronic receipt management server 10 stores the store designated by the consumer as the output target among the purchase detail data D1 stored in the OTC drug total data 146R when generating the form in Act 60 of FIG. The form data is generated with the purchase detail data D1 including the name. By doing so, it is possible to obtain the form 60 on which the list of OTC medicines purchased at the electronic receipt service member store designated by the consumer is printed.

前記実施形態では、帳票データの出力先をプリンタ23とした。他の実施形態としては、帳票データの出力先をコンビニエンスストア等に設置されているマルチメディア端末、市役所、税務署等に設置されているパーソナルコンピュータ等の情報処理装置であってもよい。この場合、情報処理装置で受信した帳票データを人為的にプリントアウトすればよい。 In the above embodiment, the output destination of the form data is the printer 23. As another embodiment, the output destination of the form data may be a multimedia terminal installed in a convenience store or the like, or an information processing device such as a personal computer installed in a city office, a tax office, or the like. In this case, the form data received by the information processing device may be artificially printed out.

前記実施形態では、電子レシート管理サーバのCPU11は、帳票要求コマンドを受信した際に控除フラグをチェックし、“0”にリセットされている場合に帳票60の作成を行わなかった。他の実施形態としては、控除フラグが“0”、すなわち年度合計金額が控除対象額の下限額未満または上限額を超える場合でも、帳票60を印刷出力するようにしてもよい。このような実施形態は、図12のAct56の処理をスキップするようにすればよい。 In the above embodiment, the CPU 11 of the electronic receipt management server checks the deduction flag when receiving the form request command, and does not create the form 60 when it is reset to "0". As another embodiment, the form 60 may be printed out even when the deduction flag is “0”, that is, when the yearly total amount is less than the lower limit amount or more than the upper limit amount of the deduction target amount. In such an embodiment, the process of Act 56 in FIG. 12 may be skipped.

不足メッセージMS2又は超過メッセージMS3の内容は、図21又は図22に示すものに限定されるものではない。不足メッセージMS2の場合、例えば、セルフメディケーション税制による所得控除を受けるためには、OTC医薬品を年間12,000円を超えて購入しなければならない旨のメッセージであってもよい。また、図21に示すメッセージと上記のメッセージとを適宜組み合わせたメッセージであってもよい。超過メッセージMS3の場合、10万円を超えた医療費の所得控除を受けるか、セルフメディケーション税制で所得控除を受けるかを選択できる旨のメッセージ、あるいは医療費控除制度とセルフメディケーション税制の両方を同時に利用することができない旨のメッセージであってもよい。また、図22に示すメッセージと上記のメッセージとを適宜組み合わせたメッセージであってもよい。さらに、セルフメディケーション税制、医療費控除に関係して記載した具体的な各金額は、あくまでも出願時点における金額を記載したものに過ぎず、これに限定されるものではない。 The contents of the shortage message MS2 or the excess message MS3 are not limited to those shown in FIG. 21 or FIG. In the case of the shortage message MS2, for example, it may be a message that the OTC drug must be purchased in excess of 12,000 yen per year in order to receive the income deduction under the self-medication tax system. Further, it may be a message in which the message shown in FIG. 21 and the above message are appropriately combined. Excess message In the case of MS3, a message saying that you can choose to receive a medical deduction for medical expenses in excess of 100,000 yen or a self-medication tax deduction, or both the medical deduction system and self-medication tax system It may be a message that the two cannot be used at the same time. Further, it may be a message in which the message shown in FIG. 22 and the above message are appropriately combined. Furthermore, each specific amount of money described in relation to the self-medication tax system and deduction of medical expenses is merely the amount described at the time of application, and is not limited thereto.

帳票50のレイアウトは、図23に示すものに限定されるものではない。確定申告の際に必要な商品名、金額、当該商品がセルフメディケーション税制対象商品である旨、販売店名及び購入日が明記されていればよい。 The layout of the form 50 is not limited to that shown in FIG. It suffices that the name of the product, the amount of money, the fact that the product is subject to the self-medication tax system, the name of the store, and the date of purchase are specified when the tax return is filed.

前記実施形態では、セルフメディケーション税制を対象とした。税制の種類は、セルフメディケーション税制に限定されるものではない。セルフメディケーション税制と同様に、特定の商品群に属する商品の年間購入額が所定金額範囲の範囲内のときに税控除を受けられる税制であれば、本実施形態の電子レシート管理サーバ(レシートデータ管理装置)10を適用することができる。 In the embodiment described above, the self-medication tax system is targeted. The type of tax system is not limited to the self-medication tax system. Similar to the self-medication tax system, if the tax system allows tax deduction when the annual purchase amount of products belonging to a specific product group is within a predetermined amount range, the electronic receipt management server (receipt data) of the present embodiment The management device) 10 can be applied.

なお、電子レシート管理サーバ10の譲渡は一般に、電子レシート閲覧プログラム等のプログラムがROM12又は補助記憶デバイス14に記憶された状態にて行われる。しかしこれに限らず、上記プログラムがROM12又は補助記憶デバイス14に記憶されていない状態で、あるいは別の制御プログラムがROM又は補助記憶ユニットに記憶された状態で譲渡されてもよい。この場合は、電子レシート管理サーバ10が備える書き込み可能な記憶デバイスに、この電子レシート管理サーバ10とは個別に譲渡された上記プログラムがユーザなどの操作に応じて書き込まれる。上記プログラムの譲渡は、リムーバブルな記録媒体に記録して、あるいはネットワークを介した通信により行うことができる。記録媒体は、CD−ROM,メモリカード等のようにプログラムを記憶でき、かつ装置が読み取り可能であれば、その形態は問わない。また、プログラムのインストールやダウンロードにより得る機能は、装置内部のOS(オペレーティング・システム)等と協働してその機能を実現させるものであってもよい。 The electronic receipt management server 10 is generally transferred while a program such as an electronic receipt browsing program is stored in the ROM 12 or the auxiliary storage device 14. However, the present invention is not limited to this, and the program may be transferred in a state in which the program is not stored in the ROM 12 or the auxiliary storage device 14, or in a state in which another control program is stored in the ROM or the auxiliary storage unit. In this case, the program transferred separately from the electronic receipt management server 10 is written in a writable storage device included in the electronic receipt management server 10 according to an operation of a user or the like. The transfer of the program can be performed by recording it on a removable recording medium or by communication via a network. The recording medium may have any form as long as it can store the program and can be read by the device, such as a CD-ROM or a memory card. Further, the function obtained by installing or downloading the program may be one that realizes the function in cooperation with an OS (operating system) inside the apparatus.

この他、本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
以下に、本願出願の当初の特許請求の範囲に記載された発明を付記する。
[1]客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出する検出手段と、前記検出手段により検出された前記商品の販売データを、当該販売データを含む前記レシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる記憶手段と、前記客識別情報を含む帳票出力要求に応答して、前記記憶部で当該客識別情報と関連付けられて記憶されている前記商品の販売データに基づき、所定期間内に売買された前記税控除を受けられる商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が前記税控除の対象商品である旨の記載を含む帳票を出力する帳票出力手段と、を具備するレシートデータ管理装置。
[2]前記帳票出力手段は、前記帳票出力要求とともに受け取った出力先識別情報で識別される出力機器に送信出力する、付記[1]記載のレシートデータ管理装置。
[3]前記記憶部は、前記客識別情報と関連付けて、所定期間内に売買された前記税控除を受けられる商品群に属する商品の合計金額をさらに記憶し、前記帳票出力要求に対して当該帳票出力要求に含まれる前記客識別情報と関連付けて前記記憶部で記憶されている合計金額が前記所定金額範囲の範囲内であることを条件に前記帳票出力手段を動作させる、付記[1]又は[2]に記載のレシートデータ管理装置。
[4]前記帳票出力要求に対して当該帳票出力要求に含まれる前記客識別情報と関連付けて前記記憶部で記憶されている合計金額が前記所定金額範囲の範囲外であるとき、帳票出力を行うか否かの選択入力を受け付ける選択手段、をさらに具備し、帳票出力を行う旨の選択入力を受け付けた場合には前記帳票出力手段を動作させる、付記[3]記載のレシートデータ管理装置。
[5]前記選択手段は、前記合計金額が前記所定金額範囲の下限金額未満であるとき、前記合計金額が前記下限金額に達するまでの不足額を前記帳票出力要求の要求元機器へと通知することを含む、付記[4]記載のレシートデータ管理装置。
[6]コンピュータに、客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出させる機能と、前記検出された前記商品の販売データを、当該販売データを含む前記レシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる機能と、前記客識別情報を含む帳票出力要求に応答して、前記記憶部で当該客識別情報と関連付けられて記憶されている前記商品の販売データに基づき、所定期間内に売買された前記税控除を受けられる商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が前記税控除の対象商品である旨の記載を含む帳票を出力させる機能と、を実現させるためのプログラム。
In addition, although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, replacements, and changes can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and gist of the invention, and are also included in the invention described in the claims and the scope of equivalents thereof.
The inventions described in the initial claims of the present application will be additionally described below.
[1] Detecting means for detecting, from receipt data including sales data of products purchased by a customer, sales data of products belonging to a product group that is tax deductible when the annual purchase amount is within a predetermined amount range, A storage unit that stores the sales data of the product detected by the detection unit in a storage unit in association with the customer identification information associated with the receipt data including the sales data; and a form output request including the customer identification information. In response to the, the product name of the product belonging to the product group that receives the tax deduction sold and sold within a predetermined period based on the sales data of the product stored in association with the customer identification information in the storage unit. A receipt data management device comprising: a form output unit that outputs a form including an amount, a store name, a purchase date, and a description that the product is a product subject to the tax deduction.
[2] The receipt data management device according to appendix [1], wherein the form output unit transmits and outputs to the output device identified by the output destination identification information received together with the form output request.
[3] The storage unit further stores, in association with the customer identification information, the total price of the products belonging to the product group that can be purchased and sold within the predetermined period and that can receive the tax deduction, and can store the total amount of the products in response to the form output request. Note [1], wherein the form output means is operated on condition that the total amount stored in the storage unit in association with the customer identification information included in the form output request is within the predetermined amount range. The receipt data management device according to [2].
[4] When the total amount of money stored in the storage unit in association with the customer output information included in the form output request is outside the range of the predetermined amount of money, form output is performed for the form output request. The receipt data management device according to appendix [3], further comprising: a selection unit that receives a selection input of whether or not to output, and when the selection input indicating that the form is to be output is received, the form output unit is operated.
[5] When the total amount is less than the lower limit amount of the predetermined amount range, the selecting means notifies the request source device of the form output request of the insufficient amount until the total amount reaches the lower limit amount. The receipt data management device according to appendix [4] including the above.
[6] Function of causing computer to detect sales data of products belonging to a product group that can receive tax deduction when annual purchase amount is within a predetermined amount range from receipt data including sales data of products purchased by a customer And a function of storing the detected sales data of the product in a storage unit in association with customer identification information associated with the receipt data including the sales data, and responding to a form output request including the customer identification information Then, based on the sales data of the product stored in the storage unit in association with the customer identification information, the product name and price of the product belonging to the product group that is sold and sold within the predetermined period and is eligible for the tax deduction. , A function of outputting a form including a store name, a purchase date, and a statement that the product is subject to the tax deduction, and a program for realizing the function.

10…電子レシート管理サーバ、20…POSシステム、21…POS端末、22…ストアサーバ、23…プリンタ、30…通信網、40…基地局、50…情報端末、60…帳票、100…電子レシートシステム、141…会員ファイル、142…店舗ファイル、143…電子レシートファイル、144…月間集計ファイル、145…OTC医薬品設定ファイル、146…OTC医薬品集計ファイル。 10...Electronic receipt management server, 20...POS system, 21...POS terminal, 22...Store server, 23...Printer, 30...Communication network, 40...Base station, 50...Information terminal, 60...Form, 100...Electronic receipt system , 141...Member file, 142...Store file, 143...Electronic receipt file, 144...Monthly aggregate file, 145...OTC drug setting file, 146...OTC drug aggregate file.

Claims (12)

客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出する検出手段と、
前記検出手段により検出された前記商品群に属する商品の販売データを、当該販売データを含む前記レシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる記憶手段と、
前記商品群に属する商品の販売データを年毎に集計する集計手段と、
前記客識別情報を含む閲覧要求に応答して、前記集計手段により前記記憶部で当該客識別情報と関連付けられて記憶されている販売データを年毎に集計したデータに基づき、所定の年内に売買された前記商品群に属する商品の合計金額と、前記商品群に属する商品の帳票出力を指示するための画像と、を含む画像データを、閲覧要求元の機器へと出力する情報出力手段と、
前記閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、前記記憶部で当該帳票出力指示に含まれる客識別情報と関連付けられて記憶されている販売データに基づき、前記所定の年内に売買された前記商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が前記税控除の対象商品である旨の記載を含む帳票を出力する帳票出力手段と、
を具備するレシートデータ管理装置。
From receipt data including sales data of products purchased by the customer, detection means for detecting sales data of products belonging to a product group that can receive tax deduction when the annual purchase amount is within a predetermined amount range,
A storage unit that stores the sales data of the product belonging to the product group detected by the detection unit in a storage unit in association with the customer identification information associated with the receipt data including the sales data.
Aggregation means for aggregating the sales data of the products belonging to the product group every year,
In response to the browsing request including the customer identification information, based on the data obtained by summing up the sales data stored in the storage unit in association with the customer identification information in the storage unit for each year, buying and selling within a predetermined year An information output unit that outputs image data including the total amount of the products belonging to the product group, and an image for instructing the output of a form of the product belonging to the product group, to the device that requested the browsing,
Wherein when viewing from the requesting device receives the form output instruction of goods belonging to the product group, based on the sales data associated with the customer identification information contained in the form output instruction that is stored in the storage unit, the Product name of goods belonging to the previous Symbol commodity group that has been buying and selling in a given year, the amount, store name, date of purchase and form output means that the instrument will output a form that includes a description of the effect that the subject goods of the tax deduction When,
A receipt data management device comprising:
前記帳票出力手段は、前記帳票の出力先を指定するための画像データを前記閲覧要求元の機器へと出力し、前記閲覧要求元の機器から前記帳票の出力先を指定する指示を受けると、指定された出力先へと帳票を出力する、請求項1記載のレシートデータ管理装置。 The form output unit outputs image data for designating an output destination of the form to the device of the browsing request source, and receives an instruction to specify an output destination of the form from the device of the browsing request source, The receipt data management device according to claim 1, wherein the form is output to a designated output destination . 前記帳票出力手段は、前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲内であるとき、前記帳票を出力する、請求項記載のレシートデータ管理装置。 The form output unit, when the total amount of goods belonging to the product group that is traded on the predetermined year is within the range of the predetermined amount range, and outputs the form, receipt data management system of claim 1, wherein .. 前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるとき、帳票出力を行うか否かの選択入力を受け付ける選択手段、
をさらに具備し、
前記帳票出力手段は、前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるとき、前記選択手段により前記帳票出力を行う旨の選択入力を受け付けた場合に、前記帳票を出力し、
前記選択手段は、前記合計金額が前記所定金額範囲の下限金額未満であるとき、前記合計金額が前記下限金額に達するまでの不足額を前記閲覧要求元の機器へと通知することを含む、請求項記載のレシートデータ管理装置。
Selection means for accepting a selection input as to whether or not to output a form when the total price of the products belonging to the product group that has been traded within the predetermined year is outside the range of the predetermined amount of money;
Further comprising,
The form output means accepts a selection input to output the form by the selecting means when the total price of the products belonging to the product group sold within the predetermined year is out of the predetermined amount range. Output the form,
The selecting means includes, when the total amount of money is less than a lower limit amount of the predetermined amount of money, notifying the device of the browsing request source of a shortage amount until the total amount of money reaches the lower limit amount of money. Item 3. The receipt data management device according to item 3 .
客が購入した商品の販売データを含むレシートデータを取り込んで処理するコンピュータを、
客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出する検出手段
前記検出手段により検出された前記商品群に属する商品の販売データを、当該販売データを含む前記レシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させる記憶手段
前記商品群に属する商品の販売データを年毎に集計する集計手段、
前記客識別情報を含む閲覧要求に応答して、前記集計手段により前記記憶部で当該客識別情報と関連付けられて記憶されている販売データを年毎に集計したデータに基づき、所定の年内に売買された前記商品群に属する商品の合計金額と、前記商品群に属する商品の帳票出力を指示するための画像と、を含む画像データを、閲覧要求元の機器へと出力する情報出力手段、及び、
前記閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、前記記憶部で当該帳票出力指示に含まれる客識別情報と関連付けられて記憶されている販売データに基づき、前記所定の年内に売買された前記商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が前記税控除の対象商品である旨の記載を含む帳票を出力する帳票出力手段、
として機能させるためのプログラム。
A computer that captures and processes receipt data including sales data of products purchased by customers ,
From receipt data including sales data of products purchased by customers, detection means for detecting sales data of products belonging to a product group that is tax deductible when the annual purchase amount is within a predetermined amount range,
Storage means for the sales data of goods belonging to said detected product group by the detecting means, and stores associated with the customer identification information associated with the receipt data including the sales data in the storage unit,
An aggregating means for aggregating the sales data of the products belonging to the product group every year,
In response to the browsing request including the customer identification information, based on the data obtained by summing up the sales data stored in the storage unit in association with the customer identification information in the storage unit for each year, buying and selling within a predetermined year An information output unit that outputs image data including the total amount of the products belonging to the product group and an image for instructing the output of the product belonging to the product group to the device that issued the browsing request, and ,
When receiving the form output instruction of goods belonging to the product group from the browsing request source device, based on the sales data stored associated with the customer identification information contained in the form output instruction in the storage unit, the predetermined product name, price, store name, date of purchase and form output means that the instrument will output a form that includes a description of the effect that the subject goods of the tax deduction of the year of goods belonging to the previous Symbol commodity group that has been buying and selling to,
Program to function as.
前記帳票出力手段は、前記帳票の出力先を指定するための画像データを前記閲覧要求元の機器へと出力し、前記閲覧要求元の機器から前記帳票の出力先を指定する指示を受けると、指定された出力先へと帳票を出力する手段、The form output means outputs image data for designating an output destination of the form to the device of the browsing request source, and receives an instruction to designate an output destination of the form from the device of the browsing request source, A means to output the form to the specified output destination,
として機能させるための請求項5記載のプログラム。The program according to claim 5, which is caused to function as a program.
前記帳票出力手段は、前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲内であるとき、前記帳票を出力する手段、The form output means outputs the form when the total price of the products belonging to the product group traded within the predetermined year is within the predetermined amount range,
として機能させるための請求項5記載のプログラム。The program according to claim 5, which is caused to function as a program.
前記コンピュータを、The computer,
前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるとき、帳票出力を行うか否かの選択入力を受け付ける選択手段、Selection means for accepting a selection input as to whether or not to output a form when the total price of the products belonging to the product group that has been traded within the predetermined year is outside the range of the predetermined amount of money;
としてさらに機能させ、To function further as
前記帳票出力手段は、前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるとき、前記選択手段により前記帳票出力を行う旨の選択入力を受け付けた場合に、前記帳票を出力する手段、The form output means accepts a selection input to output the form by the selection means when the total price of the products belonging to the product group sold within the predetermined year is out of the predetermined amount range. Means for outputting the form when
前記選択手段は、前記合計金額が前記所定金額範囲の下限金額未満であるとき、前記合計金額が前記下限金額に達するまでの不足額を前記閲覧要求元の機器へと通知することを含む手段 The selecting means includes, when the total amount of money is less than a lower limit amount of money of the predetermined amount range, notifying the device of the browsing request source of a shortage amount until the total amount of money reaches the lower limit amount of money.
として機能させるための請求項7記載のプログラム。The program according to claim 7, which is caused to function as.
客が購入した商品の販売データを含むレシートデータを取り込んで処理するレシートデータ管理装置が、A receipt data management device that captures and processes receipt data including sales data of products purchased by customers,
客が購入した商品の販売データを含むレシートデータから、年間購入額が所定金額範囲の範囲内のときに税控除を受けられる商品群に属する商品の販売データを検出し、その検出された前記商品群に属する商品の販売データを、当該販売データを含む前記レシートデータに関連付けられた客識別情報と関連付けて記憶部に記憶させ、前記商品群に属する商品の販売データを年毎に集計すること、From the receipt data including the sales data of the product purchased by the customer, the sales data of the product belonging to the product group that is tax deductible when the annual purchase amount is within the predetermined amount range is detected, and the detected product Storing the sales data of the products belonging to the group in the storage unit in association with the customer identification information associated with the receipt data including the sales data, and collecting the sales data of the products belonging to the product group for each year,
前記客識別情報を含む閲覧要求に応答して、前記記憶部で当該客識別情報と関連付けられて記憶されている販売データを年毎に集計したデータに基づき、所定の年内に売買された前記商品群に属する商品の合計金額と、前記商品群に属する商品の帳票出力を指示するための画像と、を含む画像データを、閲覧要求元の機器へと出力すること、及び、In response to a browsing request including the customer identification information, the product sold and sold within a predetermined year based on the data obtained by collecting sales data stored in the storage unit in association with the customer identification information for each year. Outputting image data including a total price of the products belonging to the group and an image for instructing the output of the products belonging to the product group to the device of the browsing request source; and
前記閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、前記記憶部で当該帳票出力指示に含まれる客識別情報と関連付けられて記憶されている販売データに基づき、前記所定の年内に売買された前記商品群に属する商品の商品名、金額、販売店名、購入日及び当該商品が前記税控除の対象商品である旨の記載を含む帳票を出力すること、When a form output instruction of a product belonging to the product group is received from the device of the browsing request source, the predetermined number is output based on the sales data stored in the storage unit in association with the customer identification information included in the form output instruction. Outputting a form including a product name, an amount of money, a store name, a purchase date of a product belonging to the product group that has been bought and sold during the year, and a statement that the product is a product subject to the tax deduction.
を含むレシートデータ管理方法。Receipt data management method including.
前記レシートデータ管理装置は、The receipt data management device,
前記閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、前記帳票の出力先を指定するための画像データを前記閲覧要求元の機器へと出力し、前記閲覧要求元の機器から前記帳票の出力先を指定する指示を受けると、指定された出力先へと帳票を出力する、請求項9記載のレシートデータ管理方法。When receiving the form output instruction of the product belonging to the product group from the device of the browsing request source, the image data for designating the output destination of the form is output to the device of the browsing request source, 10. The receipt data management method according to claim 9, wherein upon receiving an instruction to specify an output destination of the form from a device, the form is output to the specified output destination.
前記レシートデータ管理装置は、The receipt data management device,
前記閲覧要求元の機器から前記商品群に属する商品の帳票出力指示を受けると、前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲内であるとき、前記帳票を出力する、請求項9記載のレシートデータ管理方法。When a form output instruction of a product belonging to the product group is received from the browsing request source device, when the total price of the products belonging to the product group sold within the predetermined year is within the predetermined amount range, The receipt data management method according to claim 9, wherein the form is output.
前記レシートデータ管理装置は、
前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるときには帳票出力を行うか否かの選択入力を受け付け、前記合計金額が前記所定金額範囲の下限金額未満であるときには前記合計金額が前記下限金額に達するまでの不足額を前記閲覧要求元の機器へと通知すること、
をさらに含み、
前記レシートデータ管理装置は、
前記所定の年内に売買された前記商品群に属する商品の合計金額が前記所定金額範囲の範囲外であるとき、前記帳票出力を行う旨の選択入力を受け付けると、前記帳票を出力する、請求項11記載のレシートデータ管理方法。
The receipt data management device,
When the total price of the products belonging to the product group traded within the predetermined year is outside the range of the predetermined amount of money, a selection input of whether to output a form is accepted, and the total amount of money is within the range of the predetermined amount of money. When the total amount is less than the lower limit amount, the insufficient amount until the total amount reaches the lower limit amount is notified to the browsing request source device,
Further including,
The receipt data management device,
When the total price of the products belonging to the product group traded within the predetermined year is outside the range of the predetermined amount of money, when the selection input to output the form is accepted, the form is output. 11. The receipt data management method described in 11.
JP2017151398A 2017-08-04 2017-08-04 Receipt data management device, its program, and receipt data management method Active JP6722623B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017151398A JP6722623B2 (en) 2017-08-04 2017-08-04 Receipt data management device, its program, and receipt data management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017151398A JP6722623B2 (en) 2017-08-04 2017-08-04 Receipt data management device, its program, and receipt data management method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020107019A Division JP6754915B1 (en) 2020-06-22 2020-06-22 Receipt data management device and its program, and receipt data management method

Publications (3)

Publication Number Publication Date
JP2019032574A JP2019032574A (en) 2019-02-28
JP2019032574A5 JP2019032574A5 (en) 2020-01-30
JP6722623B2 true JP6722623B2 (en) 2020-07-15

Family

ID=65524286

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017151398A Active JP6722623B2 (en) 2017-08-04 2017-08-04 Receipt data management device, its program, and receipt data management method

Country Status (1)

Country Link
JP (1) JP6722623B2 (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000306165A (en) * 1999-02-19 2000-11-02 Toshiba Tec Corp Device for issuing receipt for medical expense deduction and recording medium
JP2002099870A (en) * 2000-09-25 2002-04-05 Fuji Xerox Co Ltd Electronic document output method, electronic document output server and electronic document output system
JP2006309273A (en) * 2005-03-29 2006-11-09 Seiko Epson Corp Medical expense reduction support system
JP2013134564A (en) * 2011-12-26 2013-07-08 Hitachi Solutions Ltd Medical expense deduction application system
JP6409722B2 (en) * 2014-09-16 2018-10-24 株式会社寺岡精工 POS register
WO2017056443A1 (en) * 2015-09-30 2017-04-06 日本電気株式会社 Electronic receipt system, server, terminal, method and program
JP2017111526A (en) * 2015-12-15 2017-06-22 富士通株式会社 Information management device, information management method, and information management program
JP6662022B2 (en) * 2015-12-18 2020-03-11 富士通株式会社 Notification system, notification method, and notification program

Also Published As

Publication number Publication date
JP2019032574A (en) 2019-02-28

Similar Documents

Publication Publication Date Title
JP6670732B2 (en) Receipt data management device, its program, and receipt data management method
JP6722623B2 (en) Receipt data management device, its program, and receipt data management method
US20180144319A1 (en) Checkout system composed of registration apparatus and settlement apparatus
JP7193593B2 (en) Information terminal and its program
JP6697256B2 (en) Touch panel input device
JP6930006B2 (en) Receipt data management device and its program, and receipt data management method
JP6754915B1 (en) Receipt data management device and its program, and receipt data management method
JP6736749B2 (en) Receipt data management device, its program, and receipt data management method
JP2021168191A (en) Touch panel input device and control program
JP7339315B2 (en) Receipt data management device and its program, receipt data management method, receipt data management system
JP6808661B2 (en) Information processing equipment and programs
JP5953791B2 (en) POS system and computer program
JP2020102261A (en) Data processing device, program, and data processing method
JP6752956B2 (en) Receipt data management device and its program, and receipt data management method
JP6752987B2 (en) Receipt data management device and its program, and receipt data management method
JP6048612B2 (en) POS system and program
JP7091402B2 (en) Receipt data management device and its program and receipt data management method
JP6916341B2 (en) Touch panel input device and control program
JP7478548B2 (en) Information processing device and control program thereof
JP6646178B2 (en) Server device and its program, receipt data processing method, receipt data processing system
JP7508504B2 (en) Electronic Receipt System
JP7408762B2 (en) Information terminal and its program
JP7065155B2 (en) Information processing equipment and programs
JP6048611B2 (en) POS system and program
JP2021047777A (en) Settlement device and control program therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191111

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191210

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20191210

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20200212

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200422

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200622

R150 Certificate of patent or registration of utility model

Ref document number: 6722623

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150