JP2020017322A - Electronic receipt management server, program, and electronic receipt system - Google Patents

Electronic receipt management server, program, and electronic receipt system Download PDF

Info

Publication number
JP2020017322A
JP2020017322A JP2019200843A JP2019200843A JP2020017322A JP 2020017322 A JP2020017322 A JP 2020017322A JP 2019200843 A JP2019200843 A JP 2019200843A JP 2019200843 A JP2019200843 A JP 2019200843A JP 2020017322 A JP2020017322 A JP 2020017322A
Authority
JP
Japan
Prior art keywords
electronic receipt
receipt data
data
electronic
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019200843A
Other languages
Japanese (ja)
Other versions
JP6794521B2 (en
Inventor
康博 荒井
Yasuhiro Arai
康博 荒井
邦由 山田
Kuniyoshi Yamada
邦由 山田
圭一 長谷川
Keiichi Hasegawa
圭一 長谷川
剛 五反田
Go Gotanda
剛 五反田
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 JP2019200843A priority Critical patent/JP6794521B2/en
Publication of JP2020017322A publication Critical patent/JP2020017322A/en
Application granted granted Critical
Publication of JP6794521B2 publication Critical patent/JP6794521B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide a commodity sales data processing device and a program that can transmit changed receipt data to a customer as electronic receipt data, and can print the changed receipt data by a printing unit.SOLUTION: A commodity sales data processing device of an embodiment includes: electronic receipt data transmission means that generates electronic receipt data from receipt data generated on the basis of transaction information on a commodity having been subjected to settlement processing, and transmits the electronic receipt data to an external device; changed receipt data generation means that, in association with a change in the transaction information, generates new changed receipt data concerning the change; and control means that, in a case where customer specification information for specifying a customer is included in the changed receipt data generated by the changed receipt data generation means, generates changed electronic receipt data from the changed receipt data for transmission to the external device, and outputs printing data based on the changed electronic receipt data to the printing unit.SELECTED DRAWING: Figure 11

Description

本発明の実施形態は、電子レシートシステムに関する。   Embodiments of the present invention relate to an electronic receipt system.

従来、POS端末における商品決済時に店舗から買物をした商品販売データを含むレシートデータを、顧客に渡されるレシートに印字して、あるいはレシートデータを電子的に顧客の携帯端末等に受け渡す電子レシートデータとして送信する仕組みが知られている。   Conventionally, receipt data including merchandise sales data purchased from a store at the time of settlement of goods at a POS terminal is printed on a receipt passed to the customer, or electronic receipt data is passed electronically to the customer's portable terminal or the like. There is known a mechanism for transmitting as.

このようにレシートデータを電子レシートデータにすることによって、家計簿も電子的に自動的に簿記ができるなど顧客にとって有益である。また、電子レシートデータを携帯端末等で受け取ることにより、レシート用紙の消費を減らすことができるため、導入店舗にとっても有益である。   By using the receipt data as the electronic receipt data in this way, it is useful for the customer that the household account book can be automatically and automatically book-held. In addition, by receiving electronic receipt data at a portable terminal or the like, consumption of receipt paper can be reduced, which is also beneficial for stores where the electronic receipt data is received.

しかしながら、従来の技術では、電子レシートデータとして顧客に送信したレシートデータは、POS端末等の印字部で印字しないように設定されている。そのため、変更されたレシートデータについても電子レシートデータとして顧客に送信しても、印字部で印字されないため、変更した店控え用のレシートが発行されず問題となっていた。   However, according to the conventional technology, the receipt data transmitted to the customer as the electronic receipt data is set so as not to be printed by the printing unit of the POS terminal or the like. Therefore, even if the changed receipt data is transmitted to the customer as electronic receipt data, the changed receipt data is not printed by the printing unit, and the changed receipt for the store copy is not issued.

本発明が解決しようとする課題は、変更されたレシートデータについても電子レシートデータとして顧客に送信するとともに、印字部でも印字可能な電子レシートシステムを提供することである。   It is an object of the present invention to provide an electronic receipt system that transmits changed receipt data to a customer as electronic receipt data and that can also print the data on a printing unit.

実施形態の電子レシートシステムは、決済処理した商品の取引情報に基づいて生成したレシートデータから電子レシートデータを生成するPOS端末と、前記電子レシートデータを外部装置に送信する電子レシート管理サーバとを備えた電子レシートシステムであって、前記POS端末は、前記外部装置に電子レシートデータを送信後に、返品する商品を特定する商品コードが入力されると、当該商品コードの商品の情報を除いた取引情報を含む訂正電子レシートデータを生成する訂正電子レシートデータ生成手段と、前記外部装置に電子レシートデータを送信後に、返品する商品を特定する商品コードが入力されると、当該商品コードの商品の情報に基づいて返品レシートデータを生成する返品レシートデータ生成手段と、前記返品レシートデータを印字部に出力する印字手段と、を備え、前記電子レシート管理サーバは、生成した前記訂正電子レシートデータを前記外部装置に送信する訂正電子レシートデータ送信手段、を備える。   The electronic receipt system according to the embodiment includes a POS terminal that generates electronic receipt data from receipt data generated based on transaction information of a product that has been settled, and an electronic receipt management server that transmits the electronic receipt data to an external device. Electronic receipt system, wherein the POS terminal, after transmitting the electronic receipt data to the external device, when a product code specifying the product to be returned is input, the transaction information excluding the product information of the product code. And a correction electronic receipt data generating means for generating correction electronic receipt data including the electronic receipt data transmitted to the external device. Return receipt data generating means for generating return receipt data based on the return receipt data; Comprising a printing means for outputting data to the printing unit, wherein the electronic receipt management server comprises correcting electronic receipt data transmission means for transmitting the generated said corrected electronic receipt data to the external device.

図1は、実施形態にかかる電子レシートシステムの構成全体を示す構成図である。FIG. 1 is a configuration diagram illustrating the entire configuration of the electronic receipt system according to the embodiment. 図2は、顧客の会員登録における画面の遷移例を示す遷移図である。FIG. 2 is a transition diagram showing an example of transition of a screen in customer member registration. 図3は、POS端末の要部構成を示すブロック図である。FIG. 3 is a block diagram illustrating a main configuration of the POS terminal. 図4は、電子レシートサーバの要部構成を示すブロック図である。FIG. 4 is a block diagram illustrating a main configuration of the electronic receipt server. 図5は、電子レシート管理サーバの要部構成を示すブロック図である。FIG. 5 is a block diagram illustrating a main configuration of the electronic receipt management server. 図6は、電子レシート管理サーバの電子レシート管理領域の一部を示すメモリマップである。FIG. 6 is a memory map showing a part of the electronic receipt management area of the electronic receipt management server. 図7は、携帯端末の要部構成を示すブロック図である。FIG. 7 is a block diagram showing a main configuration of the mobile terminal. 図8は、POS端末における電子レシート処理にかかる機能ブロック図である。FIG. 8 is a functional block diagram relating to electronic receipt processing in the POS terminal. 図9は、レシートデータの一例を模式的に示す図である。FIG. 9 is a diagram schematically illustrating an example of the receipt data. 図10は、電子レシートの一例を模式的に示す図である。FIG. 10 is a diagram schematically illustrating an example of an electronic receipt. 図11は、POS端末における電子レシート処理の流れを示すフローチャートである。FIG. 11 is a flowchart showing the flow of the electronic receipt processing in the POS terminal. 図12は、POS端末における一括取消キーが操作されたときのレシート処理の流れを示すフローチャートである。FIG. 12 is a flowchart showing the flow of the receipt process when the batch cancel key in the POS terminal is operated. 図13は、POS端末における再発行キーが操作されたときのレシート処理の流れを示すフローチャートである。FIG. 13 is a flowchart showing the flow of the receipt process when the reissue key is operated in the POS terminal. 図14は、POS端末における返品キーが操作されたときのレシート処理の流れを示すフローチャートである。FIG. 14 is a flowchart showing the flow of the receipt process when the return key in the POS terminal is operated. 図15は、返品処理後に生成された新たな電子レシートの一例を模式的に示す図である。FIG. 15 is a diagram schematically illustrating an example of a new electronic receipt generated after the return processing. 図16は、POS端末におけるレジマイナスキーが操作されたときのレシート処理の流れを示すフローチャートである。FIG. 16 is a flowchart showing the flow of the receipt process when the register minus key in the POS terminal is operated. 図17は、POS端末における一部取消キーが操作されたときのレシート処理の流れを示すフローチャートである。FIG. 17 is a flowchart showing the flow of the receipt processing when the partial cancel key in the POS terminal is operated. 図18は、電子レシートサーバにおける電子レシート管理処理及び情報送信処理の流れを示すフローチャートである。FIG. 18 is a flowchart showing the flow of the electronic receipt management process and the information transmission process in the electronic receipt server. 図19は、電子レシート管理サーバにおける電子レシート管理処理及び商品情報送信処理にかかる機能ブロック図である。FIG. 19 is a functional block diagram relating to an electronic receipt management process and a product information transmission process in the electronic receipt management server. 図20は、電子レシート管理サーバにおける電子レシート管理処理及び商品情報送信処理の流れを示すフローチャートである。FIG. 20 is a flowchart showing the flow of the electronic receipt management process and the product information transmission process in the electronic receipt management server. 図21は、電子レシート管理サーバにおける電子レシート管理処理及び商品情報送信処理の流れを示すフローチャートである。FIG. 21 is a flowchart illustrating a flow of an electronic receipt management process and a product information transmission process in the electronic receipt management server. 図22は、電子レシート管理サーバにおける電子レシート管理処理及び商品情報送信処理の流れを示すフローチャートである。FIG. 22 is a flowchart illustrating a flow of an electronic receipt management process and a product information transmission process in the electronic receipt management server. 図23は、電子レシート管理サーバにおける電子レシート管理処理及び商品情報送信処理の流れを示すフローチャートである。FIG. 23 is a flowchart illustrating a flow of an electronic receipt management process and a product information transmission process in the electronic receipt management server. 図24は、携帯端末における電子レシート受け取り処理及び電子レシート閲覧処理にかかる機能ブロック図である。FIG. 24 is a functional block diagram relating to an electronic receipt receiving process and an electronic receipt browsing process in the mobile terminal. 図25は、携帯端末における電子レシート受け取り処理及び電子レシート閲覧処理の流れを示すフローチャートである。FIG. 25 is a flowchart showing a flow of an electronic receipt receiving process and an electronic receipt browsing process in the portable terminal. 図26は、携帯端末の表示部に表示された電子レシートの一例を示す図である。FIG. 26 is a diagram illustrating an example of the electronic receipt displayed on the display unit of the mobile terminal.

以下、本実施の一形態を図面に基づいて説明する。   Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

図1は、実施形態にかかる電子レシートシステムの構成全体を示す構成図である。図1に示すように、電子レシートシステムは、POS(Point of Sales)端末1と、ストアサーバ2と、電子レシートサーバ3と、電子レシート管理サーバ4と、プロモーション設定端末5と、プロモーション管理サーバ6と、携帯端末7とを有する。   FIG. 1 is a configuration diagram illustrating the entire configuration of the electronic receipt system according to the embodiment. As shown in FIG. 1, the electronic receipt system includes a POS (Point of Sales) terminal 1, a store server 2, an electronic receipt server 3, an electronic receipt management server 4, a promotion setting terminal 5, and a promotion management server 6. And a portable terminal 7.

POS端末1とストアサーバ2とは、店舗P1内に設けられる。POS端末1とストアサーバ2とは、LAN(Local Area Network)等の店舗内ネットワークN1を介して通信可能に接続される。また、POS端末1及びストアサーバ2は、店舗内ネットワークN1に接続されたルータ等のネットワーク機器(図示せず)を介して、店舗P1と本部P2とを繋ぐネットワークN2に接続することが可能である。ここで、ネットワークN2は、例えば、インターネットやVPN(Virtual Private Network)等の専用線である。   The POS terminal 1 and the store server 2 are provided in the store P1. The POS terminal 1 and the store server 2 are communicably connected via an in-store network N1 such as a LAN (Local Area Network). The POS terminal 1 and the store server 2 can be connected to a network N2 connecting the store P1 and the headquarters P2 via a network device (not shown) such as a router connected to the in-store network N1. is there. Here, the network N2 is, for example, a dedicated line such as the Internet or a VPN (Virtual Private Network).

POS端末1は、商品販売データ処理を実行する商品販売データ処理装置である。POS端末1は、決済対象の商品の取引内容を含むレシートデータを生成し、当該レシートデータを後述する印字部13で印字することで紙レシートを出力する。また、POS端末1は、レシートデータのデータ形式を変換した電子レシートデータを、ネットワークN2を介して電子レシートサーバ3に出力(送信)する。電子レシートデータの送信方法は特に問わず、HTTPやHTTPS等の汎用プロトコルを用いてもよい。なお、店舗P1に設けられるPOS端末1の個数は特に問わず、複数台であってもよい。   The POS terminal 1 is a merchandise sales data processing device that executes merchandise sales data processing. The POS terminal 1 generates receipt data including the transaction contents of the product to be settled, and outputs the paper receipt by printing the receipt data on a printing unit 13 described later. The POS terminal 1 outputs (transmits) the electronic receipt data obtained by converting the data format of the receipt data to the electronic receipt server 3 via the network N2. The transmission method of the electronic receipt data is not particularly limited, and a general-purpose protocol such as HTTP or HTTPS may be used. The number of POS terminals 1 provided in the store P1 is not particularly limited, and a plurality of POS terminals 1 may be used.

ストアサーバ2は、POS端末1で行われる商品販売データ処理等の管理を統括的に行う。例えば、ストアサーバ2は、POS端末1の商品販売データ処理で生成された商品販売データを記憶・管理したり、商品販売データ処理に用いる商品データファイル等を記憶・管理する。   The store server 2 performs overall management of merchandise sales data processing and the like performed by the POS terminal 1. For example, the store server 2 stores and manages merchandise sales data generated in the merchandise sales data processing of the POS terminal 1, and stores and manages a merchandise data file used for the merchandise sales data processing.

なお、店舗P1に配置されるPOS端末1の個数は特に問わず、複数台であってもよい。また、本実施形態では、POS端末1が電子レシートデータを出力する構成を説明するが、これに限らず、POS端末1で生成されたレシートデータを、ストアサーバ2や図示しない変換装置がデータ形式を変換することで、電子レシートデータを電子レシートサーバ3に出力する構成としてもよい。   Note that the number of POS terminals 1 arranged in the store P1 is not particularly limited, and a plurality of POS terminals 1 may be used. Further, in the present embodiment, a configuration in which the POS terminal 1 outputs electronic receipt data will be described. However, the present invention is not limited to this, and the store server 2 and a conversion device (not shown) may convert the receipt data generated by the POS terminal 1 into a data format. , The electronic receipt data may be output to the electronic receipt server 3.

電子レシートサーバ3は、店舗またはチェーン店舗(以下、店舗という)を運営する企業の本部P2に設けられており、店舗を運営する企業毎のレシートデータを管理する企業用のレシート管理サーバとして機能する。電子レシートサーバ3は、例えば、店舗を運営する企業の売上管理、売上分析、在庫管理などの機能を有する。   The electronic receipt server 3 is provided at the headquarters P2 of a company that operates a store or a chain store (hereinafter, a store), and functions as a company receipt management server that manages receipt data for each company that operates a store. . The electronic receipt server 3 has, for example, functions such as sales management, sales analysis, and inventory management of a company operating a store.

また、電子レシートサーバ3は、POS端末1から送信された電子レシートデータを、ネットワークN2を介して受信する。また、電子レシートサーバ3は、受信した電子レシートデータを、本部P2と電子レシートセンターP3とを繋ぐネットワークN3を介して、電子レシート管理サーバ4に送信する。   The electronic receipt server 3 receives the electronic receipt data transmitted from the POS terminal 1 via the network N2. Further, the electronic receipt server 3 transmits the received electronic receipt data to the electronic receipt management server 4 via the network N3 connecting the headquarters P2 and the electronic receipt center P3.

ここで、ネットワークN3は、例えば、インターネットやVPN等の専用線である。また、電子レシートデータの送信方法は特に問わず、HTTPやHTTPS等の汎用プロトコルを用いてもよい。   Here, the network N3 is, for example, a dedicated line such as the Internet or a VPN. The transmission method of the electronic receipt data is not particularly limited, and a general-purpose protocol such as HTTP or HTTPS may be used.

電子レシート管理サーバ4は、電子レシートセンターP3に設けられる。電子レシートセンターP3は、例えば、電子レシートサーバ3でレシートデータを管理する企業以外の第三者機関である。なお、電子レシートサーバ3についても第三者機関等が管理してもよい。   The electronic receipt management server 4 is provided in the electronic receipt center P3. The electronic receipt center P3 is, for example, a third-party organization other than a company that manages receipt data in the electronic receipt server 3. The electronic receipt server 3 may be managed by a third-party organization.

電子レシート管理サーバ4は、店舗を運営する各種企業のレシートデータを一括に管理する顧客用レシート管理サーバとして機能する。電子レシート管理サーバ4は、後述する手順等により会員登録を行った各顧客(会員)の氏名や顧客コードである会員コード、電子レシートデータの送信先となる携帯端末7の送信先情報(例えばメールアドレス)等の会員データを、データベースDBに保持された会員マスタに記憶・管理する。なお、電子レシート管理サーバ4とは別に、会員データの記憶・管理を行う会員管理サーバ等を設ける構成としてもよい。   The electronic receipt management server 4 functions as a customer receipt management server that collectively manages receipt data of various companies operating stores. The electronic receipt management server 4 stores the name and the customer code of each customer (member) who has registered as a member according to a procedure described below or the like, the transmission destination information of the portable terminal 7 to which the electronic receipt data is transmitted (for example, mail). The member data such as address) is stored and managed in the member master held in the database DB. Note that a member management server or the like that stores and manages member data may be provided separately from the electronic receipt management server 4.

また、電子レシート管理サーバ4は、電子レシートサーバ3から送信された電子レシートデータを、ネットワークN3を介して受信し、この電子レシートデータをデータベースDBに保持された後述する電子レシート管理領域43aに記憶・管理する。より詳細には、電子レシートデータは、商品の取引内容(商品販売データ)の他、会員コード等の要素を含み、対応する会員の会員データと対応付けて管理される。   Further, the electronic receipt management server 4 receives the electronic receipt data transmitted from the electronic receipt server 3 via the network N3, and stores the electronic receipt data in an electronic receipt management area 43a described later held in the database DB. ·to manage. More specifically, the electronic receipt data includes elements such as a member code in addition to the transaction content of the product (product sales data), and is managed in association with the member data of the corresponding member.

また、電子レシート管理サーバ4は、後述するネットワークN4を介して接続されるプロモーション設定端末5から、特定の商品のキャンペーンに係るキャンペーン情報等の付加情報を受信し、この付加情報をデータベースDBに保持された後述する付加情報管理領域43bに記憶・管理する。より詳細には、付加情報は、データベースDBに記憶された電子レシートデータが含む要素のうち、所定の条件に該当する要素に対応付けて管理される。   Further, the electronic receipt management server 4 receives additional information such as campaign information relating to a campaign for a specific product from a promotion setting terminal 5 connected via a network N4 described later, and stores this additional information in the database DB. It is stored and managed in the additional information management area 43b described later. More specifically, the additional information is managed in association with an element corresponding to a predetermined condition among the elements included in the electronic receipt data stored in the database DB.

また、電子レシート管理サーバ4は、データベースDBに電子レシートデータを記憶すると、この電子レシートデータの会員コードに対応付けされた送信先情報を参照することで、送信先(携帯端末7)を特定する。そして、電子レシート管理サーバ4は、後述するネットワークN5を介して、データベースDBに記憶した電子レシートデータをその送信先に送信する。なお、電子レシートデータに付加情報が対応付けされている場合には、この付加情報についても送信先に送信する。   Further, after storing the electronic receipt data in the database DB, the electronic receipt management server 4 specifies the transmission destination (the portable terminal 7) by referring to the transmission destination information associated with the member code of the electronic receipt data. . Then, the electronic receipt management server 4 transmits the electronic receipt data stored in the database DB to the transmission destination via a network N5 described later. When the additional information is associated with the electronic receipt data, the additional information is also transmitted to the transmission destination.

また、電子レシート管理サーバ4は、後述するネットワークN5を介して接続される携帯端末7から、会員コードを指定する電子レシート照会を受け付けると、当該会員コードに対応する電子レシートデータをデータベースDBから抽出し、携帯端末7に送信する。なお、電子レシートデータに付加情報が対応付けされている場合、この付加情報についても照会があった携帯端末7に送信する。   Further, when receiving an electronic receipt inquiry designating a member code from a portable terminal 7 connected via a network N5 described later, the electronic receipt management server 4 extracts electronic receipt data corresponding to the member code from the database DB. Then, the data is transmitted to the portable terminal 7. If additional information is associated with the electronic receipt data, this additional information is also transmitted to the portable terminal 7 that has made the inquiry.

プロモーション設定端末5とプロモーション管理サーバ6とは、消費財メーカーP4等に設けられる。プロモーション設定端末5は、PC(Personal Computer)等の端末装置であって、ネットワークN4を介して、電子レシート管理サーバ4に付加情報を送信する。ここで、ネットワークN4は、例えば、インターネットやVPN等の専用線である。また、付加情報の送信方法は特に問わず、HTTPやHTTPS等の汎用プロトコルを用いてもよい。   The promotion setting terminal 5 and the promotion management server 6 are provided in the consumer goods maker P4 and the like. The promotion setting terminal 5 is a terminal device such as a PC (Personal Computer) and transmits additional information to the electronic receipt management server 4 via the network N4. Here, the network N4 is, for example, a dedicated line such as the Internet or a VPN. Further, the transmission method of the additional information is not particularly limited, and a general-purpose protocol such as HTTP or HTTPS may be used.

携帯端末7は、本システムの利用者(顧客)が使用する、例えばスマートフォン、携帯電話機、PDA(Personal Digital Assistant)、タブレット型コンピュータ等の端末装置である。携帯端末7は、ネットワークN5上で提供される各種情報を閲覧するためのWebブラウザ等のアプリケーションを実装する。なお、携帯端末7に代えて、PC等の端末装置を適用してもよい。   The mobile terminal 7 is a terminal device such as a smartphone, a mobile phone, a PDA (Personal Digital Assistant), and a tablet computer used by a user (customer) of the system. The mobile terminal 7 implements an application such as a Web browser for browsing various information provided on the network N5. Note that a terminal device such as a PC may be applied instead of the portable terminal 7.

携帯端末7は、ネットワークN5を介して電子レシート管理サーバ4にアクセスすることで、本システムへの会員登録を行う。ここで、ネットワークN5は、インターネットや、各種公衆網である。   The mobile terminal 7 performs membership registration to the present system by accessing the electronic receipt management server 4 via the network N5. Here, the network N5 is the Internet or various public networks.

ところで、本システムでの顧客の会員登録は、例えば次のような手順で行われる。顧客は、携帯端末7からネットワークN5を介して電子レシート管理サーバ4に対して空メールを送信する。電子レシート管理サーバ4は、受信したメールアドレスに会員登録のためのページを示すURL(Uniform Resource Locator)を送信する。顧客は、携帯端末7から会員登録のためのページを示すURLにアクセスして会員登録に必要な事項(氏名、送信先情報等)を入力させる入力画面を表示させる。顧客による必要事項の入力終了後、電子レシート管理サーバ4は、会員マスタに対する会員登録を実行する。その後、電子レシート管理サーバ4は、携帯端末7に対して会員コード(顧客コード)及びパスワードを含む会員登録完了メールを配信する。これにより、会員登録が終了する。   By the way, the membership registration of the customer in the present system is performed in the following procedure, for example. The customer sends an empty mail from the portable terminal 7 to the electronic receipt management server 4 via the network N5. The electronic receipt management server 4 transmits a URL (Uniform Resource Locator) indicating a page for member registration to the received mail address. The customer accesses the URL indicating the page for member registration from the portable terminal 7 and displays an input screen for inputting items (name, destination information, etc.) necessary for member registration. After the customer completes the input of necessary items, the electronic receipt management server 4 executes member registration for the member master. After that, the electronic receipt management server 4 delivers a member registration completion mail including a member code (customer code) and a password to the mobile terminal 7. Thereby, the member registration is completed.

上述のような会員登録後、携帯端末7は、図2に示すように、顧客の会員コードをバーコードや二次元コード等のコードシンボルCSとして表示部73に表示する。顧客は、店舗P1における取引決済時に店員に対して携帯端末7に表示されたコードシンボルCSを提示する。店員は、携帯端末7に表示されたコードシンボルCSをPOS端末1に接続された例えばスキャナで構成されたコード読取部15(図3参照)で読み取る。これにより、POS端末1における商品販売データ処理による決済後に生成されるレシートデータに対して顧客の会員コードを対応付けることが可能になっている。   After the member registration as described above, the mobile terminal 7 displays the customer's member code on the display unit 73 as a code symbol CS such as a barcode or a two-dimensional code, as shown in FIG. The customer presents the code symbol CS displayed on the mobile terminal 7 to the clerk at the time of the transaction settlement at the store P1. The clerk reads the code symbol CS displayed on the portable terminal 7 by a code reading unit 15 (see FIG. 3) configured by, for example, a scanner connected to the POS terminal 1. As a result, it is possible to associate the customer member code with the receipt data generated after the settlement by the merchandise sales data processing in the POS terminal 1.

また、携帯端末7は、POS端末1での決済(取引)後、電子レシート管理サーバ4から送信される当該取引の電子レシートデータを、ネットワークN5を介して受信する。会員コードを指定する電子レシート照会を、ネットワークN5を介して電子レシート管理サーバ4に送信することで、当該会員の電子レシートデータを電子レシート管理サーバ4から受信する。また、携帯端末7は、受信した電子レシートデータを、後述する表示部73に表示する(図26参照)。   After the settlement (transaction) at the POS terminal 1, the mobile terminal 7 receives the electronic receipt data of the transaction transmitted from the electronic receipt management server 4 via the network N5. By transmitting an electronic receipt inquiry designating a member code to the electronic receipt management server 4 via the network N5, the electronic receipt data of the member is received from the electronic receipt management server 4. In addition, the mobile terminal 7 displays the received electronic receipt data on a display unit 73 described later (see FIG. 26).

さらに、携帯端末7は、受信した電子レシートデータに付加情報が対応付けられていた場合、この付加情報に基づきキャンペーンに係る企画への応募を指示するアイコン等を表示する(図26参照)。例えば、アイコンには、企画への応募先(例えば、プロモーション管理サーバ6)を示す接続先情報(URL等)を設定することができる。この場合、携帯端末7は、当該アイコンに対する操作を受け付けると、ネットワークN5を介してプロモーション管理サーバ6へアクセスし、応募に係る処理を実行する。   Further, when additional information is associated with the received electronic receipt data, the mobile terminal 7 displays an icon or the like for instructing to apply for a project related to the campaign based on the additional information (see FIG. 26). For example, in the icon, connection destination information (URL or the like) indicating the application destination (for example, the promotion management server 6) for the project can be set. In this case, when receiving the operation for the icon, the mobile terminal 7 accesses the promotion management server 6 via the network N5 and executes the process related to the application.

プロモーション管理サーバ6は、ネットワークN5を介して接続される携帯端末7からのアクセスを受け付けるサーバ装置である。プロモーション管理サーバ6は、各会員を識別するための会員コードに対応付けてキャンペーン種別毎の応募履歴を管理するエントリーマスタを有する。プロモーション管理サーバ6は、ネットワークN5を介して、携帯端末7からキャンペーンへの応募を受けると、会員コードに対応付けてキャンペーン種別毎の応募履歴を管理する。なお、携帯端末7は、プロモーション管理サーバ6へのアクセス時に、レシートデータ等に保持された自装置のユーザ(会員)に係る会員コードを送信する。   The promotion management server 6 is a server device that receives access from a mobile terminal 7 connected via the network N5. The promotion management server 6 has an entry master that manages an application history for each campaign type in association with a member code for identifying each member. Upon receiving an application for a campaign from the mobile terminal 7 via the network N5, the promotion management server 6 manages the application history for each campaign type in association with the member code. In addition, the mobile terminal 7 transmits a member code relating to the user (member) of the own device held in receipt data or the like when accessing the promotion management server 6.

係る構成の電子レシートシステムにおいては、店舗P1のPOS端末1で商品販売データ処理が行なわれて生成された取引(決済)の内容を示す電子レシートデータ(レシートデータ)が、電子レシートサーバ3を介して電子レシート管理サーバ4に伝送され、Web上に公開される。したがって、Webブラウザを実装してなる携帯端末7は、URL(Uniform Resource Locator)を指定することにより、Web上に公開されたレシートデータを携帯端末7にダウンロードしてWebブラウザで閲覧することができる。なお、携帯端末7にレシートデータを閲覧するためのアプリケーションをインストールして閲覧するようにしてもよい。   In the electronic receipt system having such a configuration, electronic receipt data (receipt data) indicating the contents of a transaction (settlement) generated by performing the merchandise sales data processing in the POS terminal 1 of the store P1 is transmitted via the electronic receipt server 3. And transmitted to the electronic receipt management server 4 and published on the Web. Therefore, the mobile terminal 7 equipped with the Web browser can download receipt data published on the Web to the mobile terminal 7 and specify the URL (Uniform Resource Locator) to view the Web browser. . Note that an application for browsing receipt data may be installed on the mobile terminal 7 and browsed.

次に、本実施形態の電子レシートシステムを構築する主要な装置の構成について説明する。   Next, a configuration of a main device that constructs the electronic receipt system of the present embodiment will be described.

まず、商品販売データ処理装置であるPOS端末1について説明する。図3は、POS端末1の構成を示すブロック図である。図3に示すように、POS端末1は、各種演算やPOS端末1の各部を統括的に制御する制御部11を備えている。制御部11は、CPU(Central Processing Unit)、各種プログラムやデータを記憶するROM(Read Only Memory)、各種プログラムを一時的に記憶したり各種データを書き換え自在に記憶するRAM(Random Access Memory)、現在の日時を計時するRTC(Real Time Clock)部等によって構成されるコンピュータである。   First, a POS terminal 1 which is a merchandise sales data processing device will be described. FIG. 3 is a block diagram illustrating a configuration of the POS terminal 1. As shown in FIG. 3, the POS terminal 1 includes a control unit 11 that controls various operations and each unit of the POS terminal 1. The control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory) for storing various programs and data, a RAM (Random Access Memory) for temporarily storing various programs and rewritably storing various data, It is a computer including an RTC (Real Time Clock) unit for measuring the current date and time.

制御部11は、バス18を介して操作部12、印字部13、表示部14及びコード読取部15に接続されている。   The control unit 11 is connected to an operation unit 12, a printing unit 13, a display unit 14, and a code reading unit 15 via a bus 18.

操作部12は、オペレータが操作入力を行うための各種の操作キーを有している。操作キーとしては、例えば、数値を入力するための置数キー、所定の項目を選択するためのカーソルキーや選択決定キー、取引における売上登録が行われる商品の合計出力を指示する小計キー、一取引の締め処理を行って代金を決済することを宣言する締めキー等が設けられている。   The operation unit 12 has various operation keys for the operator to perform operation input. The operation keys include, for example, a numeric key for inputting a numerical value, a cursor key for selecting a predetermined item and a selection determination key, a subtotal key for instructing a total output of goods for which sales registration is performed in a transaction, A closing key or the like for declaring that the closing of the transaction is performed to settle the price is provided.

操作部12は、締めキー121、一括取消キー122、再発行キー123、返品キー124、レジマイナスキー125、一部取消キー126等のキーを配置したキーボードを備えている。締めキー121は、顧客との取引を終了するときに操作するキーである。一括取消キー122は、操作の途中で当該取引を中止するときに操作するキーである。再発行キー123は、取引終了後に、当該取引の商品情報や決済情報を印字したレシートを再発行するときに操作するキーである。返品キー124は、購入した商品のすべてまたは一部について、取引終了後に返品処理するときに操作するキーである。レジマイナスキー125は、誤操作等による入力ミスがあった場合、取引終了後に当該取引を取り消すときに操作するキーである。一部取消キー126は、取引終了後に一部商品の取消をする場合に操作するキーである。   The operation unit 12 includes a keyboard on which keys such as a close key 121, a batch cancel key 122, a reissue key 123, a return key 124, a register minus key 125, and a partial cancel key 126 are arranged. The closing key 121 is a key operated when ending a transaction with a customer. The batch cancel key 122 is a key operated when the transaction is canceled during the operation. The reissue key 123 is a key that is operated after a transaction is completed to reissue a receipt printed with the product information and the settlement information of the transaction. The return key 124 is a key operated when performing a return process after the transaction is completed for all or a part of the purchased products. The register minus key 125 is a key that is operated when the transaction is canceled after the transaction is completed when there is an input error due to an erroneous operation or the like. The partial cancellation key 126 is a key operated when canceling some products after the end of the transaction.

印字部13は、レシートやジャーナル等の印字を行うプリンタ装置で構成される。印字部13は、印字の対象となるロール紙等の用紙を切断するカット機構を具備し(図示せず)、後述するカットコマンドに従い用紙を切断する。   The printing unit 13 is configured by a printer device that prints receipts, journals, and the like. The printing unit 13 includes a cutting mechanism (not shown) for cutting paper such as roll paper to be printed, and cuts the paper according to a cut command described later.

表示部14は、例えば液晶ディスプレイ等であり、販売登録された商品の品名、価格、決済が宣言された一取引の合計金額、釣銭額等の各種情報を表示する。表示部14は、キャッシャ向けに各種情報を表示するオペレータ用ディスプレイ14aと、顧客向けに各種情報を表示する客用ディスプレイ14bとを備える。なお、表示部14をタッチパネル構成としてもよく、この場合、タッチパネルは操作部12として機能する。   The display unit 14 is, for example, a liquid crystal display or the like, and displays various information such as a product name and price of a product registered for sale, a total amount of one transaction for which settlement is declared, a change amount, and the like. The display unit 14 includes an operator display 14a for displaying various information for the cashier and a customer display 14b for displaying various information for the customer. The display unit 14 may have a touch panel configuration. In this case, the touch panel functions as the operation unit 12.

コード読取部15は、例えばバーコードや二次元コード等のコードシンボルを光学的に読み取るスキャナ装置である。コード読取部15は、例えば、商品に付されたコードシンボルや、携帯端末7に表示されたコードシンボル等を読み取り、制御部11は、読み取った当該コードシンボルに保持された情報を入力する。なお、商品に付されたコードシンボルには、その商品を特定するための商品コード等が保持されているとする。また、携帯端末7に表示されるコードシンボルには、その携帯端末7を携帯する顧客を特定するための会員コード(顧客コード)等が保持されているとする。なお、会員コードは、携帯端末7に磁気的あるいは電気的に記憶されていてもよい。この場合、記憶されている会員コードを、専用の読取装置で読み取る。制御部11は、読み取った会員コードを入力する。   The code reading unit 15 is a scanner device that optically reads a code symbol such as a barcode or a two-dimensional code. The code reading unit 15 reads, for example, a code symbol attached to a product, a code symbol displayed on the mobile terminal 7, and the like, and the control unit 11 inputs information stored in the read code symbol. It is assumed that a code symbol attached to a product holds a product code or the like for specifying the product. It is also assumed that the code symbol displayed on the mobile terminal 7 holds a member code (customer code) for specifying a customer who carries the mobile terminal 7 or the like. Note that the member code may be stored in the mobile terminal 7 magnetically or electrically. In this case, the stored member code is read by a dedicated reading device. The control unit 11 inputs the read member code.

また、制御部11は、バス18を介して通信I/F(インターフェース)16に接続されており、この通信I/F16を介して店舗内ネットワークN1やネットワークN2に接続することが可能となっている。   In addition, the control unit 11 is connected to a communication I / F (interface) 16 via a bus 18 and can be connected to the in-store network N1 and the network N2 via the communication I / F 16. I have.

また、制御部11は、バス18を介して、記憶部17に接続されている。記憶部17は、例えばHDD(Hard Disk Drive)やSSD(Solid State Drive)等の補助記憶装置である。記憶部17は、商品販売データ処理を含む各種のPOS業務を実行するためのプログラムを記憶する。また、記憶部17は、各商品の商品名、商品コード及び単価等の商品データを格納した商品データファイル等の商品販売データ処理に係る各種データファイルを記憶する。また、記憶部17は、商品販売データ処理やレシートデータに係る処理を行うためのレシートデータ処理プログラム17aを記憶する。   The control unit 11 is connected to the storage unit 17 via the bus 18. The storage unit 17 is an auxiliary storage device such as a hard disk drive (HDD) or a solid state drive (SSD). The storage unit 17 stores programs for executing various POS operations including merchandise sales data processing. Further, the storage unit 17 stores various data files related to the merchandise sales data processing, such as a merchandise data file storing merchandise data such as a merchandise name, a merchandise code, and a unit price of each merchandise. The storage unit 17 stores a receipt data processing program 17a for performing merchandise sales data processing and processing related to receipt data.

また、記憶部17は、自己のPOS端末1を他のPOS端末1と識別するためのPOSナンバー、企業コード(店舗を運営する企業の識別コード)、業種・業態コード、当該POS端末1が設置される店舗P1を示す店舗コード等を、識別コード管理領域17bに記憶する。ここで、業種・業態コードは、例えば、コンビニエンスストア、スーパーマーケット、百貨店、薬局、レストラン、飲食店などとして、店舗の業種・業態を区別するコード(分類コード)である。なお、このような業種・業態は、ユーザの好みによって任意に変更可能である。また、企業コード(店舗を運営する企業の識別コード)、業種・業態コードについては、電子レシートサーバ3に登録されていてもよい。   In addition, the storage unit 17 stores a POS number for identifying the own POS terminal 1 from other POS terminals 1, a company code (an identification code of a company that operates a store), an industry / business type code, and a location where the POS terminal 1 is installed. A store code or the like indicating the store P1 to be executed is stored in the identification code management area 17b. Here, the business type / business type code is a code (classification code) for distinguishing the business type / business type of a store, for example, as a convenience store, a supermarket, a department store, a pharmacy, a restaurant, a restaurant, and the like. It should be noted that such a business type / business type can be arbitrarily changed according to the user's preference. Further, the company code (the identification code of the company that operates the store) and the business type / business type code may be registered in the electronic receipt server 3.

また、記憶部17は、非構造化形式のレシートデータを、構造化形式のレシートデータ(以下、電子レシートデータという)に変換する際の、変換規則を記述したレシートデータスキーマ17cを記憶する。また、記憶部17は、商品販売データ処理をした商品販売データや、読み取った会員コードを、データ記憶部17dに記憶する。   The storage unit 17 stores a receipt data schema 17c that describes a conversion rule when converting unstructured receipt data into structured receipt data (hereinafter referred to as electronic receipt data). Further, the storage unit 17 stores the product sales data obtained by performing the product sales data processing and the read member code in the data storage unit 17d.

次に、企業用のレシート管理サーバとして機能する電子レシートサーバ3の構成を、図4のブロック図を用いて説明する。電子レシートサーバ3は、各種演算や電子レシートサーバ3の各部を統括的に制御する制御部31を備えている。制御部31は、CPU、各種プログラムやデータを記憶するROM、各種プログラムを一時的に記憶したり各種データを書き換え自在に記憶するRAM、現在の日時を計時するRTC部等によって構成されるコンピュータである。   Next, the configuration of the electronic receipt server 3 functioning as a receipt management server for a company will be described with reference to the block diagram of FIG. The electronic receipt server 3 includes a control unit 31 which controls various operations and each unit of the electronic receipt server 3. The control unit 31 is a computer including a CPU, a ROM for storing various programs and data, a RAM for temporarily storing various programs and rewritably storing various data, and an RTC unit for measuring the current date and time. is there.

制御部31は、バス34に接続された通信I/F32を介して、ネットワークN2やネットワークN3に接続することが可能となっている。また、制御部31は、バス34を介して記憶部33に接続されている。   The control unit 31 can be connected to the network N2 or the network N3 via the communication I / F 32 connected to the bus 34. Further, the control unit 31 is connected to the storage unit 33 via the bus 34.

記憶部33は、店舗を運営する企業毎の電子レシートデータを電子レシート管理領域33aに記憶する。電子レシートデータは、企業コード(店舗を運営する企業の識別コード)、業種・業態コード、店舗コード、買物客の会員コード、POS端末1のPOSナンバー、レシートナンバー、商品販売データなどを含む。   The storage unit 33 stores electronic receipt data for each company operating the store in the electronic receipt management area 33a. The electronic receipt data includes a company code (an identification code of a company that operates a store), an industry / business type code, a store code, a shopper's member code, a POS number of the POS terminal 1, a receipt number, and merchandise sales data.

また、記憶部33は、電子レシートデータを電子レシート管理領域33aで管理するための電子レシート管理プログラム33bを記憶する。また、記憶部33は、電子レシート管理領域33aに管理されているレシートデータを、電子レシート管理サーバ4へ送信するための情報送信プログラム33cを記憶する。   The storage unit 33 stores an electronic receipt management program 33b for managing electronic receipt data in the electronic receipt management area 33a. In addition, the storage unit 33 stores an information transmission program 33c for transmitting receipt data managed in the electronic receipt management area 33a to the electronic receipt management server 4.

次に、顧客用レシート管理サーバとして機能する電子レシート管理サーバ4の構成を、図5のブロック図を用いて説明する。図5に示すように、電子レシート管理サーバ4は、各種演算や電子レシート管理サーバ4の各部を統括的に制御する制御部41を備えている。制御部41は、CPU、各種プログラムやデータを記憶するROM、各種プログラムを一時的に記憶したり各種データを書き換え自在に記憶するRAM、現在の日時を計時するRTC部等によって構成されるコンピュータである。   Next, the configuration of the electronic receipt management server 4 functioning as a customer receipt management server will be described with reference to the block diagram of FIG. As shown in FIG. 5, the electronic receipt management server 4 includes a control unit 41 that comprehensively controls various operations and each unit of the electronic receipt management server 4. The control unit 41 is a computer including a CPU, a ROM for storing various programs and data, a RAM for temporarily storing various programs and rewritably storing various data, and an RTC unit for measuring the current date and time. is there.

制御部41は、バス44に接続された通信I/F42を介して、ネットワークN3、ネットワークN4及びネットワークN5に接続することが可能となっている。また、制御部41は、バス44を介して、記憶部43に接続されている。   The control unit 41 can be connected to the network N3, the network N4, and the network N5 via the communication I / F 42 connected to the bus 44. Further, the control unit 41 is connected to the storage unit 43 via the bus 44.

記憶部43には、会員マスタを記憶・管理するための会員マスタ管理領域(図示せず)の他、店舗を運営する各種企業の電子レシートデータを一括に記憶するための電子レシート管理領域43aが確保されている。より詳細には、電子レシート管理領域43aは、店舗を運営する各種企業の電子レシートデータを会員毎に管理する。   The storage unit 43 includes a member master management area (not shown) for storing and managing a member master, and an electronic receipt management area 43a for collectively storing electronic receipt data of various companies operating stores. Is secured. More specifically, the electronic receipt management area 43a manages electronic receipt data of various companies operating stores for each member.

電子レシートは、会員コード、企業コード(店舗を運営する企業の識別コード)、店舗コード、POS端末1のPOSナンバー、レシートナンバー、商品販売データ(日時データを含む)などを含んでいる。したがって、例えば消費財メーカーP4等は、当該メーカーに関連する一意な購入商品の証明情報を、この電子レシートデータから特定条件の下(例えば、店舗を運営する特定の企業限定、特定の地域限定、特定の時間限定等)に取得することが可能になる。なお、消費財メーカーP4は、食料品、飲料、衣類、化粧品、薬品、生活雑貨などのメーカーである。   The electronic receipt includes a member code, a company code (an identification code of a company that operates the store), a store code, a POS number of the POS terminal 1, a receipt number, product sales data (including date and time data), and the like. Therefore, for example, the consumer goods maker P4 or the like obtains the proof information of a unique purchased product related to the maker from the electronic receipt data under specific conditions (for example, limited to a specific company operating a store, limited to a specific region, (For a specific time only). The consumer goods maker P4 is a maker of foods, beverages, clothing, cosmetics, medicines, household goods, and the like.

また、記憶部43は、所望の商品(商品コード)、会員(会員コード)、企業(企業コード)、店舗(店舗コード)に対応付けて各種の付加情報を付加情報管理領域43bに記憶する。ここで、付加情報とは、例えば、所望の商品情報及び特定条件(例えば、店舗を運営する特定の企業、特定の地域、特定の店舗、特定の時間等)に対応付けられるキャンペーンにかかるキャンペーン情報等である。付加情報は、例えば企業のキャンペーンに関連付けられたホームページにリンクするURL、企業のCMに関連付けられたホームページにリンクするURL、企業のクーポンにリンクするURLなどのアクセス情報を含む。   The storage unit 43 stores various types of additional information in the additional information management area 43b in association with desired products (product codes), members (member codes), companies (company codes), and stores (store codes). Here, the additional information is, for example, campaign information on a campaign associated with desired product information and specific conditions (for example, a specific company operating a store, a specific region, a specific store, a specific time, and the like). And so on. The additional information includes, for example, access information such as a URL linking to a homepage associated with a corporate campaign, a URL linking to a homepage associated with a corporate CM, and a URL linking to a corporate coupon.

また、記憶部43は、会員マスタを会員マスタ領域で管理するための会員管理プログラム(図示せず)の他、各企業の電子レシートデータ及び付加情報を電子レシート管理領域43a及び付加情報管理領域43bで管理するための電子レシート管理プログラム43cを記憶する。また、記憶部43は、電子レシートデータ及び所望の商品の付加情報を携帯端末7へ送信するための情報送信プログラム43dを記憶する。なお、会員マスタ管理領域、電子レシート管理領域43a及び付加情報管理領域43bは、図1で示したデータベースDBに対応する。   The storage unit 43 stores an electronic receipt data and additional information of each company in an electronic receipt management area 43a and an additional information management area 43b, in addition to a member management program (not shown) for managing the member master in the member master area. It stores an electronic receipt management program 43c for managing the electronic receipt. The storage unit 43 stores an information transmission program 43d for transmitting electronic receipt data and additional information of a desired product to the mobile terminal 7. The member master management area, the electronic receipt management area 43a, and the additional information management area 43b correspond to the database DB shown in FIG.

次に、図6のメモリマップを用いて、電子レシート管理サーバの電子レシート管理領域43aについて説明する。   Next, the electronic receipt management area 43a of the electronic receipt management server will be described using the memory map of FIG.

図6において、電子レシート管理領域43aは、レシート番号部43a1と、各レシート番号部43a1に対応して複数の電子レシートデータ記憶部43a2〜43anを備えている。図6の例では、電子レシートデータ記憶部43a2と電子レシートデータ記憶部43a3と電子レシートデータ記憶部43a4の3個の電子レシートデータ記憶部を示している。電子レシートデータ記憶部43a2は、電子レシートデータ部43a21と表示許可フラグ部43a22を備えている。また、電子レシートデータ記憶部43a3は、電子レシートデータ部43a31と表示許可フラグ部43a32を備えている。電子レシートデータ記憶部43a4は、電子レシートデータ部43a41と表示許可フラグ部43a42を備えている。   6, the electronic receipt management area 43a includes a receipt number section 43a1 and a plurality of electronic receipt data storage sections 43a2 to 43an corresponding to the respective receipt number sections 43a1. In the example of FIG. 6, three electronic receipt data storage units, an electronic receipt data storage unit 43a2, an electronic receipt data storage unit 43a3, and an electronic receipt data storage unit 43a4, are shown. The electronic receipt data storage section 43a2 includes an electronic receipt data section 43a21 and a display permission flag section 43a22. Further, the electronic receipt data storage section 43a3 includes an electronic receipt data section 43a31 and a display permission flag section 43a32. The electronic receipt data storage section 43a4 includes an electronic receipt data section 43a41 and a display permission flag section 43a42.

レシート番号部43a1は、すでに電子レシートデータを生成したレシート番号を記憶している。まだ記憶されていないレシート番号を受信すると、レシート番号部43a1の未記憶領域に新たなレシート番号が記憶される。   The receipt number section 43a1 stores the receipt number for which the electronic receipt data has already been generated. When a receipt number not yet stored is received, a new receipt number is stored in an unstored area of the receipt number section 43a1.

電子レシートデータ部43a21と電子レシートデータ部43a31は、レシート番号部43a1に記憶されたレシート番号に対応して、それぞれ異なる電子レシートデータを記憶している。電子レシートデータ部43a31には、未だ電子レシートデータを記憶していない場合もある。   The electronic receipt data section 43a21 and the electronic receipt data section 43a31 store different electronic receipt data corresponding to the receipt numbers stored in the receipt number section 43a1. The electronic receipt data section 43a31 may not yet store electronic receipt data.

表示許可フラグ部43a22と表示許可フラグ部43a32は、電子レシートデータ部43a21と電子レシートデータ部43a31に記憶された電子レシートデータを携帯端末7に表示可能か否かを示すフラグを記憶する。記憶されたフラグが「1」の場合は、制御部41は、当該電子レシートは携帯端末7に表示可能に制御し、記憶されたフラグが「0」の場合は、制御部41は、当該電子レシートデータは携帯端末7に表示不可に制御する。   The display permission flag section 43a22 and the display permission flag section 43a32 store flags indicating whether or not the electronic receipt data stored in the electronic receipt data section 43a21 and the electronic receipt data section 43a31 can be displayed on the portable terminal 7. When the stored flag is “1”, the control unit 41 controls the electronic receipt so that the electronic receipt can be displayed on the portable terminal 7. When the stored flag is “0”, the control unit 41 controls the electronic receipt. The receipt data is controlled so as not to be displayed on the portable terminal 7.

あるレシート番号と当該レシート番号に対応した電子レシートデータを電子レシートサーバ3から受信した場合、当該レシート番号が初めてのレシート番号であると、当該レシート番号をレシート番号部43a1に記憶するとともに、受信した電子レシートデータを対応する電子レシートデータ部43a21に記憶する。そして、電子レシートデータ部43a21に対応した表示許可フラグ部43a22にフラグを「1」を記憶する。この場合、電子レシートデータ部43a21に記憶された電子レシートデータは、携帯端末7に表示可能である。   When a certain receipt number and electronic receipt data corresponding to the receipt number are received from the electronic receipt server 3, if the receipt number is the first receipt number, the receipt number is stored in the receipt number section 43a1 and received. The electronic receipt data is stored in the corresponding electronic receipt data section 43a21. Then, a flag “1” is stored in the display permission flag section 43a22 corresponding to the electronic receipt data section 43a21. In this case, the electronic receipt data stored in the electronic receipt data section 43a21 can be displayed on the portable terminal 7.

次に、同じレシート番号に対応した新たな電子レシートデータを受信した場合、表示許可フラグ部43a22に記憶されたフラグを「0」に変更するとともに、新たに受信した電子レシートデータを、当該レシート番号に対応した電子レシートデータ部43a31に記憶する。そして、電子レシートデータ部43a31に対応した表示許可フラグ部43a32にフラグを「1」を記憶する。この場合、電子レシートデータ部43a21に記憶された電子レシートデータは、携帯端末7に表示不可である。一方、電子レシートデータ部43a31に記憶された電子レシートデータは、携帯端末7に表示可能である。   Next, when new electronic receipt data corresponding to the same receipt number is received, the flag stored in the display permission flag section 43a22 is changed to “0”, and the newly received electronic receipt data is changed to the receipt number. Is stored in the electronic receipt data section 43a31 corresponding to the. Then, a flag “1” is stored in the display permission flag section 43a32 corresponding to the electronic receipt data section 43a31. In this case, the electronic receipt data stored in the electronic receipt data section 43a21 cannot be displayed on the portable terminal 7. On the other hand, the electronic receipt data stored in the electronic receipt data section 43a31 can be displayed on the portable terminal 7.

次に、携帯端末7の構成を、図7のブロック図を用いて説明する。図7に示すように、携帯端末7は、各種演算や携帯端末7の各部を統括的に制御する制御部71を備えている。制御部71は、CPU、各種プログラムやデータを記憶するROM、各種プログラムを一時的に記憶したり各種データを書き換え自在に記憶するRAM、現在の日時を計時するRTC部等によって構成されるコンピュータである。   Next, the configuration of the portable terminal 7 will be described with reference to the block diagram of FIG. As illustrated in FIG. 7, the mobile terminal 7 includes a control unit 71 that controls various operations and each unit of the mobile terminal 7. The control unit 71 is a computer including a CPU, a ROM for storing various programs and data, a RAM for temporarily storing various programs and rewritably storing various data, and an RTC unit for measuring the current date and time. is there.

操作部72は、バス76を介して表示部73に接続されている。操作部72は、ユーザ(顧客)が操作入力を行うための各種の操作キーや、ポインティングデバイスを有している。表示部73は、例えば液晶ディスプレイ等であり、後述する電子レシートデータ等の各種情報を表示する。なお、表示部73をタッチパネル構成としてもよく、この場合、タッチパネルは操作部72として機能する。   The operation unit 72 is connected to the display unit 73 via a bus 76. The operation unit 72 includes various operation keys for a user (customer) to perform an operation input, and a pointing device. The display unit 73 is, for example, a liquid crystal display or the like, and displays various information such as electronic receipt data described later. The display unit 73 may have a touch panel configuration. In this case, the touch panel functions as the operation unit 72.

また、制御部71は、バス76を介して通信I/F74に接続されており、この通信I/F74を介してネットワークN5に接続することが可能となっている。なお、通信I/F74を介して、店舗内ネットワークN1に接続可能な構成としてもよい。   The control unit 71 is connected to a communication I / F 74 via a bus 76, and can be connected to the network N5 via the communication I / F 74. In addition, the structure which can be connected to the in-store network N1 via the communication I / F74 may be sufficient.

また、制御部71は、バス76を介して、記憶部75に接続されている。記憶部75は、Web上に公開されている各種情報(コンテンツ)を閲覧するためのWebブラウザの他、電子レシート管理サーバ4から電子レシートデータを受け取るための電子レシート対応プログラム75aと、受け取ったレシートデータを閲覧するための電子レシート閲覧プログラム75bとを記憶する。   Further, the control unit 71 is connected to the storage unit 75 via a bus 76. The storage unit 75 includes a Web browser for browsing various information (contents) published on the Web, an electronic receipt correspondence program 75a for receiving electronic receipt data from the electronic receipt management server 4, and a received receipt. An electronic receipt browsing program 75b for browsing data is stored.

次に、本実施形態のシステムを構成する各部の制御処理について説明する。   Next, a control process of each unit constituting the system of the present embodiment will be described.

まず、POS端末1の制御部11がレシートデータ処理プログラム17aに従って制御することにより実行される電子レシート処理について、図8〜図16を参照しつつ説明する。   First, an electronic receipt process executed by the control unit 11 of the POS terminal 1 controlled according to the receipt data processing program 17a will be described with reference to FIGS.

図8は、POS端末1の機能構成を示す機能ブロック図である。POS端末1は、制御部11が、電子レシートデータ送信手段111、変更レシートデータ生成手段112、制御手段113、訂正レシートデータ生成手段114、判断手段115を実現する。実際のハードウェアとしては制御部11のCPUが記憶部17からレシートデータ処理プログラム17aを読み出して実行することにより、電子レシートデータ送信手段111、変更レシートデータ生成手段112、制御手段113、訂正レシートデータ生成手段114、判断手段115を実現するようになっている。   FIG. 8 is a functional block diagram illustrating a functional configuration of the POS terminal 1. In the POS terminal 1, the control unit 11 realizes an electronic receipt data transmission unit 111, a changed receipt data generation unit 112, a control unit 113, a corrected receipt data generation unit 114, and a determination unit 115. As the actual hardware, the CPU of the control unit 11 reads out the receipt data processing program 17a from the storage unit 17 and executes the same, so that the electronic receipt data transmission unit 111, the modified receipt data generation unit 112, the control unit 113, the correction receipt data The generating means 114 and the determining means 115 are realized.

電子レシートデータ送信手段111は、決済処理した商品の取引情報に基づいて生成したレシートデータから電子レシートデータを生成して外部装置である電子レシートサーバ3に送信する機能を有する。   The electronic receipt data transmission unit 111 has a function of generating electronic receipt data from receipt data generated based on transaction information of a product for which payment processing has been performed, and transmitting the generated electronic receipt data to the electronic receipt server 3 that is an external device.

変更レシートデータ生成手段112は、取引情報の変更に伴い、当該変更についての新たな変更レシートデータを生成する機能を有する。   The change receipt data generating means 112 has a function of generating new change receipt data for the change in accordance with the change of the transaction information.

制御手段113は、変更レシートデータ生成手段112によって生成された変更レシートデータに顧客を特定する顧客特定情報である会員コードが含まれている場合、変更レシートデータから変更電子レシートデータを生成して外部装置に送信するとともに、変更電子レシートデータに基づく印字データを印字部に出力する機能を有する。   When the change receipt data generated by the change receipt data generation means 112 includes the member code which is the customer specifying information for specifying the customer, the control means 113 generates the change electronic receipt data from the change receipt data, and It has a function of transmitting print data based on the changed electronic receipt data to a print unit, in addition to transmitting the print data to the device.

訂正レシートデータ生成手段114は、取引情報の変更に伴う変更後の新たな訂正レシートデータを生成する機能を有する。   The corrected receipt data generating means 114 has a function of generating new corrected receipt data after the change in accordance with the change of the transaction information.

判断手段115は、変更レシートデータに顧客特定情報である会員コードが含まれているか否かを判断する機能を有する。   The judging means 115 has a function of judging whether or not the change receipt data includes a member code as customer identification information.

図9は、レシートデータの一例を模式的に示す図である。ここで、レシートデータは、非構造化形式のテキストデータ等であって、印字部13での印字に用いられるものである。図9に示すように、レシートデータは、上述した商品販売データD1や会員コードD2の要素を含んでいる。ここで、商品販売データD1は、決済の対象となった商品の商品名(商品コード)とその金額、各商品の合計金額、顧客が支払った預かり金額、お釣り金額等を有する。   FIG. 9 is a diagram schematically illustrating an example of the receipt data. Here, the receipt data is text data or the like in an unstructured format and is used for printing in the printing unit 13. As shown in FIG. 9, the receipt data includes the above-described merchandise sales data D1 and the element of the member code D2. Here, the merchandise sales data D1 includes a merchandise name (merchandise code) of the merchandise to be settled and its amount, a total amount of each merchandise, a deposit amount paid by the customer, a change amount, and the like.

また、レシートデータは、店舗を運営する企業を示す企業コード(企業名)D3、店舗コード(店舗名)D4、店舗の電話番号D5、住所D6、取引日時D7、取引ナンバー(レシートナンバー)D8、レジナンバーD9、担当者名D10等の要素を含む。なお、レシートデータに含まれる要素は、図9の例に限らず、業種・業態コード等の他の要素を含んでもよいし、電話番号D5や住所D6等の要素を取り除いてもよい。   The receipt data includes a company code (company name) D3, a store code (store name) D4, a store phone number D5, an address D6, a transaction date and time D7, a transaction number (receipt number) D8, and a company code indicating the company that operates the store. It includes elements such as a cashier number D9 and a person in charge D10. Note that the elements included in the receipt data are not limited to the example in FIG. 9 and may include other elements such as a business type and a business type code, and elements such as a telephone number D5 and an address D6 may be removed.

また、図10は、電子レシートデータの一例を模式的に示す図である。図10に示すように、電子レシートデータは、XMLやCSV等の構造化形式のデータ(構造化文書)で構成される。なお、図10では、図9に示したレシートデータの各要素(D1〜D10)を、XML形式に変換した例を示している。   FIG. 10 is a diagram schematically illustrating an example of electronic receipt data. As shown in FIG. 10, the electronic receipt data is constituted by structured data (structured document) such as XML or CSV. FIG. 10 shows an example in which each element (D1 to D10) of the receipt data shown in FIG. 9 is converted into the XML format.

レシートデータから電子レシートデータへの変換は、レシートデータスキーマ17cに記述された変換規則に基づき行われる。具体的に、レシートデータスキーマ17cには、レシートデータを構成する所定の要素と、その要素の属性を示す属性情報(タグ等)とが定義されている。制御部11は、レシートデータの各要素を対応する属性情報を用いて構造化することで、図10に示すような構造化形式の電子レシートデータを生成する。このような、構造化形式の電子レシートデータとすることで、当該電子レシートデータに含まれる要素を効率的に利用することができるため、データ管理の上で様々な利点を得ることができる。   The conversion from the receipt data to the electronic receipt data is performed based on the conversion rules described in the receipt data schema 17c. Specifically, the receipt data schema 17c defines a predetermined element constituting the receipt data and attribute information (eg, tag) indicating the attribute of the element. The control unit 11 generates electronic receipt data in a structured format as shown in FIG. 10 by structuring each element of the receipt data using the corresponding attribute information. By using such structured electronic receipt data, the elements included in the electronic receipt data can be used efficiently, and various advantages can be obtained in data management.

図11は、POS端末1における電子レシートデータ処理の流れを示すフローチャートである。まず、POS端末1の制御部11は、コード読取部15により、商品に付されたコードシンボル(商品コード)又は携帯端末7に表示されたコードシンボル(会員コード)が読み取られたか否かを判定する(ステップS11)。   FIG. 11 is a flowchart showing the flow of the electronic receipt data processing in the POS terminal 1. First, the control unit 11 of the POS terminal 1 determines whether the code reading unit 15 has read a code symbol (product code) attached to a product or a code symbol (member code) displayed on the mobile terminal 7. (Step S11).

コードシンボルが読み取られたと判定すると(ステップS11;Yes)、制御部11は、その読み取りにより入力した情報が、商品コードかを判断する(ステップS12)。   When determining that the code symbol has been read (Step S11; Yes), the control unit 11 determines whether the information input by the reading is a product code (Step S12).

ステップS12で、商品コードであると判断された場合(ステップS12;Yes)、制御部11は、その商品コードで特定される商品について、商品データファイルから商品データを読み出すと、この商品データが含む単価に基づいて決済金額を算出する商品販売データ処理を実行する(ステップS13)。次いで、制御部11は、商品販売データ処理の際に処理された商品販売データを、データ記憶部17dに記憶する(ステップS14)。   When it is determined in step S12 that the product code is the product code (step S12; Yes), the control unit 11 reads the product data from the product data file for the product specified by the product code, and includes the product data. The merchandise sales data processing for calculating the settlement amount based on the unit price is executed (step S13). Next, the control unit 11 stores the product sales data processed during the product sales data processing in the data storage unit 17d (Step S14).

また、ステップS12で商品コードではないと判断した場合、制御部11は、会員コードが入力されたか否かを判断する(ステップS15)。会員コードの入力であると判断した場合(ステップS15;Yes)、制御部11は、その会員コードをデータ記憶部17dに記憶する(ステップS16)。なお、会員コードが入力されていないと判断した場合は(ステップS15;No)、制御部11は、ステップS12に戻って待機する。   If it is determined in step S12 that it is not a product code, the control unit 11 determines whether a member code has been input (step S15). When it is determined that the input is a member code (step S15; Yes), the control unit 11 stores the member code in the data storage unit 17d (step S16). If it is determined that the member code has not been input (Step S15; No), the control unit 11 returns to Step S12 and waits.

ここで、会員コードをPOS端末1に入力するためには、例えば、会員である顧客が携帯端末7の表示部73に会員コード等を含むコードシンボルを表示し、店員または会員である顧客自らがPOS端末1のコード読取部15で読み取る。なお、制御部11は、一取引の間に入力される会員コードが唯一となるよう排他処理等を施す形態としてもよい。   Here, in order to input the member code into the POS terminal 1, for example, a customer who is a member displays a code symbol including a member code on the display unit 73 of the mobile terminal 7, and a clerk or the customer who is a member himself The code is read by the code reading unit 15 of the POS terminal 1. Note that the control unit 11 may perform an exclusion process or the like so that the member code input during one transaction is unique.

続いて、ステップS17において、制御部11は、締めキー121の操作等により締め処理の開始が指示されたか否かを判断する(ステップS17)。締め処理の開始が指示されない場合(ステップS17;No)、ステップS11に戻る。締め処理の開始が指示された場合(ステップS17;Yes)、制御部11は、データ記憶部17dに記憶した商品販売データや会員コードに基づいて、レシートデータを生成する(ステップS18)。   Subsequently, in step S17, the control unit 11 determines whether or not the start of the closing process is instructed by operating the closing key 121 or the like (step S17). When the start of the closing process is not instructed (Step S17; No), the process returns to Step S11. When the start of the closing process is instructed (Step S17; Yes), the control unit 11 generates receipt data based on the product sales data and the member code stored in the data storage unit 17d (Step S18).

次いで制御部11は、生成したレシートデータに基づいて、ジャーナルデータを生成する(ステップS19)。また生成したジャーナルデータをデータ記憶部17dに記憶する(ステップS19)。   Next, the control unit 11 generates journal data based on the generated receipt data (step S19). The generated journal data is stored in the data storage unit 17d (step S19).

次に制御部11は、レシートデータに会員コードが含まれているか否かを判断する(ステップS20)。含まれていないと判断した場合(ステップS20;No)、制御部11は、一取引分のレシートデータを印字部13に出力することで、当該レシートデータを出力し(ステップS23)、本処理を終了する。これにより、印字部13では、レシートデータを用紙に印字した後、その用紙を切断することで、一取引分の紙レシートを印字出力する。   Next, the control unit 11 determines whether or not the receipt data includes the member code (step S20). If it is determined that it is not included (step S20; No), the control unit 11 outputs the receipt data for one transaction to the printing unit 13 to output the receipt data (step S23), and executes this processing. finish. Thus, the printing unit 13 prints out the receipt data for one transaction by printing the receipt data on the paper and then cutting the paper.

一方、レシートデータに会員コードが含まれる場合(ステップS20;Yes)、制御部11は、非構造化形式であるレシートデータのデータ形式を、構造化形式に変換することで電子レシートデータを生成する(ステップS21)。そして、制御部11(電子レシートデータ送信手段111)は、通信I/F16を介して生成した電子レシートデータを、当該レシートのレシート番号とともに電子レシートサーバ3に送信し(ステップS22)、本処理を終了する。なお、制御部11は、レシートデータを、同様にレシート番号とともに、電子レシートサーバ3に送信する。電子レシートサーバ3は、受信したレシートデータと電子レシートデータを、レシート番号に対応付けて記憶する。   On the other hand, if the receipt data includes the member code (step S20; Yes), the control unit 11 generates electronic receipt data by converting the data format of the receipt data, which is an unstructured format, into a structured format. (Step S21). Then, the control section 11 (electronic receipt data transmitting means 111) transmits the electronic receipt data generated via the communication I / F 16 to the electronic receipt server 3 together with the receipt number of the receipt (step S22), and executes this processing. finish. The control unit 11 transmits the receipt data to the electronic receipt server 3 together with the receipt number. The electronic receipt server 3 stores the received receipt data and the electronic receipt data in association with the receipt number.

また、ステップS11において、コードシンボルが読み取られていないと判断した場合は(ステップS11;No)、制御部11は、特定のキーとして、一括取消キー122、再発行キー123、返品キー124、レジマイナスキー125、一部取消キー126のいずれかのキーが操作されたか否かを判断する(ステップS24)。これらのキーが操作されたと判断する(ステップS24;Yes)と、制御部11は、各キーの特定指示コードを入力し、各キーの操作に伴う処理(図12、図13、図14、図16、図17で説明)を実行する(ステップS25)。   If it is determined in step S11 that the code symbol has not been read (step S11; No), the control unit 11 determines the specific key as a batch cancel key 122, a reissue key 123, a return key 124, It is determined whether any of the minus key 125 and the partial cancel key 126 has been operated (step S24). When it is determined that these keys have been operated (Step S24; Yes), the control unit 11 inputs a specific instruction code of each key, and performs a process associated with the operation of each key (FIG. 12, FIG. 13, FIG. 14, FIG. 16, described with reference to FIG. 17) (step S25).

図12は、制御部11が、ステップS24で一括取消キー122が操作されたと判断したときのステップS25の制御処理を詳細に示すフローチャートである。   FIG. 12 is a flowchart showing in detail the control processing in step S25 when the control unit 11 determines in step S24 that the batch cancel key 122 has been operated.

図12において、制御部11は、一括取消キー122が操作された際、一括取消キー122が操作されたことを示すキーコードである一括取消コードを入力する(ステップS41)。すると制御部11は、データ記憶部17dに商品販売データが存在するか否かを判断する(ステップS42)。商品販売データは、ステップS13で商品販売データ処理されたデータである。商品販売データが存在しないと判断した場合は(ステップS42;No)、制御部11は、一括取消キー122の操作が無効であるとしてエラー処理を実行し(ステップS49)、処理を終了する。   12, when the batch cancel key 122 is operated, the control unit 11 inputs a batch cancel code which is a key code indicating that the batch cancel key 122 is operated (step S41). Then, the control unit 11 determines whether or not merchandise sales data exists in the data storage unit 17d (step S42). The product sales data is data that has been subjected to the product sales data processing in step S13. If it is determined that the merchandise sales data does not exist (Step S42; No), the control unit 11 executes an error process assuming that the operation of the batch cancel key 122 is invalid (Step S49), and ends the process.

商品販売データが存在すると判断した場合は(ステップS42;Yes)、制御部11は、一括取消を実行するための実行キー(図示せず)が操作されたか否かを判断する(ステップS43)。操作されるまで待機し(ステップS43;No)、実行キーが操作されたと判断した場合は(ステップS43;Yes)、制御部11は、ステップS13で商品販売データ処理されたデータについて、今までの取引を中止して、なかったものとする一括取消処理を実行する(ステップS44)。そして制御部11は、一括取消した商品販売データや、データ記憶部17dに会員コードが記憶されている場合は当該会員コードに基づいて、例えば「一括取消」のヘッダー文字が含まれる一括取消レシートデータ(変更レシートデータ)を生成する(ステップS45)。   If it is determined that the merchandise sales data exists (step S42; Yes), the control unit 11 determines whether an execution key (not shown) for executing the batch cancellation has been operated (step S43). The control unit 11 waits until the operation is performed (step S43; No), and determines that the execution key is operated (step S43; Yes). The transaction is canceled and a collective cancellation process is performed to determine that there is no transaction (step S44). Then, based on the member sales code and the member code stored in the data storage unit 17d, the control unit 11 collectively cancels the collective cancellation receipt data including, for example, a header character of "batch cancellation" based on the member code. (Change receipt data) is generated (step S45).

次に制御部11は、生成した一括取消レシートデータに会員コードが含まれているか否かを判断する(ステップS46)。含まれていないと判断した場合は(ステップS46;No)、一括取消レシートデータに基づいて、印字部13で「一括取消」のヘッダー文字を印字した店控え用のレシートを発行する(ステップS47)。   Next, the control unit 11 determines whether or not the generated batch cancellation receipt data includes a member code (step S46). If it is determined that it is not included (step S46; No), a receipt for store copy with the header character of "batch cancellation" printed by the printing unit 13 is issued based on the batch cancellation receipt data (step S47). .

一方、生成した一括取消レシートデータに会員コードが含まれていると判断した場合は(ステップS46;Yes)、制御部11は、生成した一括取消レシートデータに基づいた一括取消電子レシートデータの送信を禁止する(ステップS48)。この場合、一括取消電子レシートデータを生成して、生成した一括取消電子レシートデータを送信を禁止してもよいし、一括取消電子レシートデータの生成を禁止することで一括取消電子レシートデータの送信を禁止してもよい。そして制御部11は、ステップS47を実行する。   On the other hand, if it is determined that the generated batch cancellation receipt data includes the member code (step S46; Yes), the control unit 11 transmits the batch cancellation electronic receipt data based on the generated batch cancellation receipt data. It is prohibited (step S48). In this case, batch cancellation electronic receipt data may be generated and transmission of the generated batch cancellation electronic receipt data may be prohibited, or transmission of the batch cancellation electronic receipt data may be prohibited by prohibiting generation of the batch cancellation electronic receipt data. It may be prohibited. And the control part 11 performs step S47.

実施形態では、原則処理として、会員コードがふくまれているレシートデータについて電子レシートデータを生成し、生成した電子レシートデータを電子レシートサーバ3に送信する。しかしながら、一括取消キー122が操作された場合は、一括取消レシートデータに会員コードが含まれていると判断しても、一括取消電子レシートデータの送信を禁止している。   In the embodiment, as a general process, electronic receipt data is generated for the receipt data including the member code, and the generated electronic receipt data is transmitted to the electronic receipt server 3. However, when the collective cancellation key 122 is operated, transmission of the collective cancellation electronic receipt data is prohibited even if it is determined that the member code is included in the collective cancellation receipt data.

図13は、制御部11が、ステップS24で再発行キー123が操作されたと判断したときのステップS25の制御処理を詳細に示すフローチャートである。   FIG. 13 is a flowchart showing in detail the control processing in step S25 when the control unit 11 determines in step S24 that the reissue key 123 has been operated.

図13において、制御部11は、再発行キー123が操作された際、再発行キー123が操作されたことを示すキーコードである再発行コードを入力する(ステップS51)。次に制御部11は、レシート番号が入力されたか否かを判断する(ステップS52)。レシート番号は、顧客に手渡されたレシート、または顧客端末に表示されている電子レシートデータに記載されており、店員が、このレシート番号を読み取って操作部12から入力する。   13, when the reissue key 123 is operated, the control unit 11 inputs a reissue code which is a key code indicating that the reissue key 123 has been operated (step S51). Next, the control unit 11 determines whether a receipt number has been input (step S52). The receipt number is described in the receipt handed to the customer or in the electronic receipt data displayed on the customer terminal. The clerk reads the receipt number and inputs the receipt number from the operation unit 12.

レシート番号が入力されるまで待機し(ステップS52;No)、レシート番号が入力されたと判断した場合は(ステップS52;Yes)、制御部11は、入力されたレシート番号に対応したジャーナルデータをデータ記憶部17dから読み出す(ステップS53)。次に制御部11は、再発行の処理を実行するための実行キーが操作されたか否かを判断する(ステップS54)。   The control unit 11 waits until the receipt number is input (step S52; No), and when it is determined that the receipt number is input (step S52; Yes), the control unit 11 stores the journal data corresponding to the input receipt number in the data. The data is read from the storage unit 17d (step S53). Next, the control unit 11 determines whether or not the execution key for executing the reissuing process has been operated (step S54).

操作されるまで待機し(ステップS54;No)、操作されたと判断した場合は(ステップS54;Yes)、制御部11は、読み出されたジャーナルデータに基づいて、レシートの再発行処理を実行する(ステップS55)。そして制御部11は、レシートの再発行処理に伴い、例えば「再発行」のヘッダー文字が含まれる再発行レシートデータ(変更レシートデータ)を生成する(ステップS56)。   The controller 11 waits until the operation is performed (Step S54; No), and when it is determined that the operation is performed (Step S54; Yes), the control unit 11 executes a receipt reissue process based on the read journal data. (Step S55). Then, in accordance with the receipt reissue process, the control unit 11 generates reissue receipt data (changed receipt data) including, for example, a header character of “reissue” (step S56).

次に制御部11は、生成した再発行レシートデータに会員コードが含まれているか否かを判断する(ステップS57)。含まれていないと判断した場合は(ステップS57;No)、再発行レシートデータに基づいて印字部13で、「再発行」のヘッダー文字を印字した顧客に手渡すレシートを発行する(ステップS58)。   Next, the control unit 11 determines whether or not the generated reissue receipt data includes a member code (step S57). If it is determined that it is not included (Step S57; No), the printing unit 13 issues a receipt handed to the customer who has printed the header character of "Reissue" based on the reissue receipt data (Step S58).

一方、生成した再発行レシートデータに会員コードが含まれていると判断した場合は(ステップS57;Yes)、制御部11は、生成した再発行レシートデータに基づいた再発行電子レシートデータの送信を禁止する(ステップS59)。この場合、再発行電子レシートデータを生成して、再発行電子レシートデータの送信を禁止してもよいし、再発行電子レシートデータの生成を禁止することで再発行電子レシートデータの送信を禁止してもよい。そして制御部11は、ステップS58を実行する。   On the other hand, when it is determined that the generated reissue receipt data includes the member code (step S57; Yes), the control unit 11 transmits the reissue electronic receipt data based on the generated reissue receipt data. It is prohibited (step S59). In this case, the reissued electronic receipt data may be generated to prohibit the transmission of the reissued electronic receipt data, or the generation of the reissued electronic receipt data may be prohibited to prohibit the transmission of the reissued electronic receipt data. You may. And the control part 11 performs step S58.

このように、実施形態によれば、一括取消処理やレシートの再発行処理が実行されたとき、変更されたレシートデータに会員コードが含まれている場合は、電子レシートデータの送信を禁止したため、変更されたレシートデータを電子レシートデータとして送信する必要がないレシートデータは、顧客に送信しない。   As described above, according to the embodiment, when the collective cancellation processing and the reissue processing of the receipt are executed, and the changed receipt data includes the member code, the transmission of the electronic receipt data is prohibited. Receipt data which does not need to transmit the changed receipt data as electronic receipt data is not transmitted to the customer.

また、実施形態によれば、電子レシートデータの送信を禁止したレシートデータを、印字部13で印字するため、変更したレシートデータのレシートを店控え用とすることができる。   In addition, according to the embodiment, the receipt unit in which the transmission of the electronic receipt data is prohibited is printed by the printing unit 13, so that the receipt of the changed receipt data can be used as a store copy.

また、実施形態によれば、変更されたレシートデータに会員コードが含まれている場合は、レシートデータを、印字部13で印字するため、変更したレシートデータのレシートを店控え用とすることができる。   Further, according to the embodiment, when the membership code is included in the changed receipt data, the receipt data is printed by the printing unit 13, so that the receipt of the changed receipt data may be used as a store copy. it can.

なお、上述の一括取消キー122、再発行キー123を操作以外に、例えば店控え用のレシート発行キーが操作された場合、また、店員が商品登録処理を実行し、顧客自身が決済処理を実行するハーフセルフ処理において、決済処理以前に呼び戻すキーが操作された場合も、制御部11は、同様の処理(すなわち、印字部13への出力を実行し、電子レシートデータの送信を禁止する処理)を実行する。   In addition, besides operating the above-mentioned batch cancel key 122 and reissue key 123, for example, when a receipt issuing key for store copy is operated, or the store clerk executes the product registration process, and the customer executes the settlement process. In the half-self process, the control unit 11 performs the same process (ie, executes output to the printing unit 13 and prohibits transmission of electronic receipt data) even when a key to recall before the settlement process is operated. Execute

図14は、制御部11が、ステップS24で返品キー124が操作されたと判断したときのステップS25の制御処理を詳細に示すフローチャートである。   FIG. 14 is a flowchart showing in detail the control processing in step S25 when the control unit 11 determines in step S24 that the return key 124 has been operated.

図14において、制御部11は、返品キー124が操作された際、返品キー124が操作されたことを示すキーコードである返品コードを入力する(ステップS61)。そして制御部11は、レシート番号が入力されたか否かを判断する(ステップS62)。レシート番号は、顧客に手渡されたレシート、または顧客端末に表示されている電子レシートデータに記載されており、店員が、このレシート番号を読み取って操作部12から入力する。   In FIG. 14, when the return key 124 is operated, the control unit 11 inputs a return code which is a key code indicating that the return key 124 is operated (step S61). Then, the control unit 11 determines whether a receipt number has been input (step S62). The receipt number is described in the receipt handed to the customer or in the electronic receipt data displayed on the customer terminal. The clerk reads the receipt number and inputs the receipt number from the operation unit 12.

制御部11は、レシート番号が入力されるまで待機し(ステップS62;No)、レシート番号が入力されたと判断した場合は(ステップS62;Yes)、制御部11は、入力されたレシート番号に対応したジャーナルデータをデータ記憶部17dから読み出す(ステップS63)。   The control unit 11 waits until the receipt number is input (Step S62; No), and when it is determined that the receipt number is input (Step S62; Yes), the control unit 11 responds to the input receipt number. The read journal data is read from the data storage unit 17d (step S63).

次に制御部11は、返品する商品の商品コードが入力されたか否かを判断する(ステップS65)。入力されるまで待機し(ステップS64;No)、商品コードが入力されたと判断した場合は(ステップS64;Yes)、制御部11は、入力された商品コードをデータ記憶部17dに記憶する(ステップS65)。   Next, the control unit 11 determines whether or not the product code of the product to be returned has been input (step S65). The control unit 11 waits until the product code is input (Step S64; No), and determines that the product code is input (Step S64; Yes), stores the input product code in the data storage unit 17d (Step S64). S65).

次に制御部11は、実行キーが操作されたか否かを判断する(ステップS66)。操作されていないを判断した場合は(ステップS66;No)、制御部11は、ステップS64に戻り、操作されたと判断した場合は(ステップS66;Yes)、制御部11は、読み出したジャーナルデータとステップSP65で記憶した返品する商品の商品コードとから、返品処理を実行する(ステップSP67)。   Next, the controller 11 determines whether or not the execution key has been operated (step S66). If it is determined that no operation has been performed (Step S66; No), the control unit 11 returns to Step S64, and if it is determined that an operation has been performed (Step S66; Yes), the control unit 11 transmits the read journal data A return process is executed based on the product code of the product to be returned stored in step SP65 (step SP67).

そして制御部11(訂正レシートデータ生成手段114)は、返品処理に基づいて、ステップS64で入力された商品コードの商品販売データを除く訂正レシートデータを生成する(ステップS68)。次いで制御部11(変更レシートデータ生成手段112)は、ステップS64で入力された商品コードの商品販売データに基づいて、返品する商品販売データに対応した返品レシートデータ(変更レシートデータ)を生成する(ステップS69)。   Then, the control unit 11 (corrected receipt data generating means 114) generates corrected receipt data excluding the product sales data of the product code input in step S64 based on the return processing (step S68). Next, the control unit 11 (changed receipt data generating means 112) generates returned receipt data (changed receipt data) corresponding to the returned merchandise sales data based on the merchandise sales data of the merchandise code input in step S64 (step S64). Step S69).

次に制御部11(判断手段115)は、生成した訂正レシートデータおよび返品レシートデータに、会員コードが含まれているか否かを判断する(ステップS70)。   Next, the control section 11 (determination means 115) determines whether or not the generated corrected receipt data and returned receipt data include a member code (step S70).

レシートデータに会員コードが含まれていると判断した場合(ステップS70;Yes)、制御部11(制御手段113)は、生成した訂正レシートデータに基づいて、非構造化形式であるレシートデータのデータ形式を、構造化形式に変換することで訂正電子レシートデータを生成する(ステップS71)。この際、ステップS61で入力された返品コードを付す。また制御部11(制御手段113)は、生成した返品レシートデータに基づいて、非構造化形式であるレシートデータのデータ形式を、構造化形式に変換することで返品電子レシートデータを生成する(ステップS72)。この際、ステップS61で入力された返品コードを付す。次に制御部11(制御手段113)は、生成した訂正電子レシートデータを、レシート番号を付して電子レシートサーバ3に送信する(ステップS73)。また、制御部11(制御手段113)は、生成した返品電子レシートデータを、レシート番号を付して電子レシートサーバ3に送信する(ステップS74)。   If it is determined that the member code is included in the receipt data (Step S70; Yes), the control unit 11 (the control unit 113) generates the data of the receipt data in the unstructured format based on the generated corrected receipt data. The corrected electronic receipt data is generated by converting the format into a structured format (step S71). At this time, the return code input in step S61 is attached. Further, the control unit 11 (control means 113) generates returned electronic receipt data by converting the data format of the unstructured receipt data into a structured format based on the generated returned receipt data (step S11). S72). At this time, the return code input in step S61 is attached. Next, the control section 11 (control means 113) attaches the generated corrected electronic receipt data to the receipt number and transmits it to the electronic receipt server 3 (step S73). Further, the control unit 11 (control means 113) sends the generated returned electronic receipt data to the electronic receipt server 3 with a receipt number attached (step S74).

次に制御部11(制御手段113)は、生成した返品レシートデータを印字部13に出力する(ステップS75)。このようにして制御部11は、当該返品レシートデータに基づいて返品商品の商品販売データを印字した店控え用レシートを発行する。店控え用レシートには、返品された商品の商品情報と「返品」のヘッダー文字が印字される。   Next, the control section 11 (control means 113) outputs the generated return receipt data to the printing section 13 (Step S75). In this way, the control unit 11 issues a store receipt for printing the merchandise sales data of the returned merchandise on the basis of the returned receipt data. On the store receipt, the merchandise information of the merchandise returned and the header character of "Return" are printed.

また、ステップS70において、レシートデータに会員コードが含まれていないと判断した場合は(ステップS70;No)、制御部11はステップS74の処理を実行し、当該レシートデータを印字したレシートを発行する。   If it is determined in step S70 that the membership code is not included in the receipt data (step S70; No), the control unit 11 executes the process of step S74 and issues a receipt on which the receipt data is printed. .

このように、返品キー124が操作された場合、制御部11は、返品処理を実行し、訂正レシートデータと返品レシートデータを生成する。そして、会員コードが含まれている場合は、自動的に訂正電子レシートデータと返品電子レシートデータを生成して、電子レシートサーバ3に送信し、かつ返品レシートデータに基づいて印字部13で印字した紙のレシートを発行する。   As described above, when the return key 124 is operated, the control unit 11 executes a return process, and generates corrected receipt data and returned receipt data. When the member code is included, the electronic receipt data and the returned electronic receipt data are automatically generated, transmitted to the electronic receipt server 3, and printed by the printing unit 13 based on the returned receipt data. Issue a paper receipt.

図15は、図14の返品処理によって生成された訂正電子レシートデータの一例を示す模式図である。図15の例は、図10の電子レシートデータから商品2を返品した例である。図10の電子レシートデータには、商品販売データD1として商品1、商品2、商品3を含む電子レシートデータが生成されているが、商品2が返品されたため、図15の例では、商品2は含まれない、商品1と商品3を含む新たな電子レシートデータが生成されている。   FIG. 15 is a schematic diagram showing an example of the corrected electronic receipt data generated by the return processing of FIG. The example of FIG. 15 is an example in which the merchandise 2 is returned from the electronic receipt data of FIG. In the electronic receipt data of FIG. 10, the electronic receipt data including the product 1, the product 2, and the product 3 is generated as the product sales data D1, but since the product 2 is returned, in the example of FIG. New electronic receipt data including the merchandise 1 and the merchandise 3 which are not included are generated.

図16は、制御部11が、ステップS24でレジマイナスキー125が操作されたと判断したときのステップS25の制御処理を詳細に示すフローチャートである。   FIG. 16 is a flowchart showing in detail the control processing of step S25 when the control unit 11 determines that the registration minus key 125 has been operated in step S24.

図16において、制御部11は、レジマイナスキー125が操作された際、レジマイナスキー125が操作されたことを示すキーコードであるレジマイナスコードを入力する(ステップS81)。そして制御部11は、レシート番号が入力されたか否かを判断する(ステップS82)。レシート番号は、顧客に手渡されたレシート、または顧客端末に表示されている電子レシートデータに記載されており、店員が、このレシート番号を読み取って操作部12から入力する。   In FIG. 16, when the register minus key 125 is operated, the control unit 11 inputs a register minus code which is a key code indicating that the register minus key 125 has been operated (step S81). Then, the control unit 11 determines whether a receipt number has been input (step S82). The receipt number is described in the receipt handed to the customer or in the electronic receipt data displayed on the customer terminal. The clerk reads the receipt number and inputs the receipt number from the operation unit 12.

制御部11は、レシート番号が入力されるまで待機し(ステップS82;No)、レシート番号が入力されたと判断した場合は(ステップS82;Yes)、制御部11は、入力されたレシート番号で管理されているジャーナルデータをデータ記憶部17dから読み出す(ステップS83)。   The control unit 11 waits until the receipt number is input (Step S82; No), and when it is determined that the receipt number is input (Step S82; Yes), the control unit 11 manages the received receipt number. The read journal data is read from the data storage unit 17d (step S83).

次に制御部11は、実行キーが操作されたか否かを判断する(ステップS84)。操作されるまで待機し(ステップS84;No)、操作されたと判断した場合は(ステップS84;Yes)、制御部11は、ステップS83で読み出したジャーナルデータに基づいてレジマイナス処理を実行する(ステップS85)。レジマイナス処理とは、すでに成立している取引について、当該取引をキャンセルする処理である。そして制御部11(変更レシートデータ生成手段112)は、レジマイナス処理に基づいてレジマイナスレシートデータ(変更レシートデータ)を生成する(ステップS86)。   Next, the control unit 11 determines whether or not the execution key has been operated (step S84). The controller 11 waits until the operation is performed (step S84; No), and when it is determined that the operation is performed (step S84; Yes), the controller 11 executes the register minus process based on the journal data read in step S83 (step S84). S85). The cash register minus process is a process of canceling a transaction that has already been completed. Then, the control section 11 (changed receipt data generation means 112) generates registration minus receipt data (changed receipt data) based on the registration minus process (step S86).

次に制御部11(判断手段115)は、生成したレジマイナスレシートデータに会員コードが含まれているか否かを判断する(ステップS87)。含まれていると判断した場合は(ステップS87;Yes)、制御部11(制御手段113)は、レジマイナスレシートデータに基づいて、非構造化形式であるレジマイナスレシートデータのデータ形式を、構造化形式に変換することでレジマイナス電子レシートデータを生成する(ステップS88)。この際、ステップS81で入力されたレジマイナスコードを付す。そして制御部11(制御手段113)は、生成したレジマイナス電子レシートデータを、レシート番号を付して電子レシートサーバ3に送信する(ステップS89)。そして制御部11(制御手段113)は、レジマイナスレシートデータを印字部13に出力して印字処理を実行し(ステップS90)、「レジマイナス」のヘッダー文字が印字された店控え用の紙のレジマイナスレシートを発行する。   Next, the control unit 11 (determination means 115) determines whether the generated registration minus receipt data includes a member code (step S87). If it is determined that it is included (step S87; Yes), the control unit 11 (control means 113) converts the data format of the register-less receipt data, which is an unstructured format, into a structure based on the register-less receipt data. Then, the registration minus electronic receipt data is generated by converting the data into a conversion format (step S88). At this time, the register minus code input in step S81 is added. Then, the control section 11 (control means 113) attaches the generated receipt minus electronic receipt data to the electronic receipt server 3 with a receipt number attached thereto (step S89). Then, the control unit 11 (the control unit 113) outputs the registration minus receipt data to the printing unit 13 and executes the printing process (step S90), and executes the printing process for the store copy paper on which the header character “REGISION MINUS” is printed. Issue a cash register receipt.

なお、ステップS87において、レジマイナスレシートデータに会員コードが含まれていないと判断した場合は(ステップS87;No)、制御部11は、ステップS90の処理を実行する。   If it is determined in step S87 that the registration minus receipt data does not include the member code (step S87; No), the control unit 11 executes the process of step S90.

このように、レジマイナスキー125が操作された場合、制御部11は、レジマイナス処理を実行し、レジマイナスレシートデータを生成する。そして、会員コードが含まれている場合は、自動的にレジマイナス電子レシートデータを生成して、電子レシートサーバ3に送信し、かつレジマイナスレシートデータに基づいて印字部13で印字した紙のレシートを発行する。   As described above, when the register minus key 125 is operated, the control unit 11 executes a register minus process to generate register minus receipt data. When the membership code is included, the electronic receipt data is automatically generated and sent to the electronic receipt server 3, and the paper receipt printed by the printing unit 13 based on the electronic receipt data is generated. Issue

次に、図17のフローチャートを用いて、制御部11が、ステップS24で一部取消キー126が操作されたと判断したときのステップS25の制御処理について説明する。
図17において、制御部11は、一部取消キー126が操作された際、一部取消キー126が操作されたことを示すキーコードである一部取消コードを入力する(ステップS141)。そして制御部11は、レシート番号が入力されたか否かを判断する(ステップS142)。レシート番号は、顧客に手渡されたレシート、または顧客端末に表示されている電子レシートデータに記載されており、店員が、このレシート番号を読み取って操作部12から入力する。
Next, the control processing in step S25 when the control unit 11 determines that the partial cancel key 126 has been operated in step S24 will be described with reference to the flowchart in FIG.
17, when the partial cancel key 126 is operated, the control unit 11 inputs a partial cancel code which is a key code indicating that the partial cancel key 126 is operated (step S141). Then, the control unit 11 determines whether a receipt number has been input (step S142). The receipt number is described in the receipt handed to the customer or in the electronic receipt data displayed on the customer terminal. The clerk reads the receipt number and inputs the receipt number from the operation unit 12.

制御部11は、レシート番号が入力されるまで待機し(ステップS142;No)、レシート番号が入力されたと判断した場合は(ステップS1422;Yes)、制御部11は、入力されたレシート番号で管理されているジャーナルデータをデータ記憶部17dから読み出す(ステップS143)。   The control unit 11 waits until the receipt number is input (step S142; No), and when it is determined that the receipt number is input (step S1422; Yes), the control unit 11 manages with the input receipt number. The read journal data is read from the data storage unit 17d (step S143).

次に制御部11は、取消する商品の商品コードが入力されたか否かを判断する(ステップS144)。入力されるまで待機し(ステップS144;No)、商品コードが入力されたと判断した場合は(ステップS144;Yes)、制御部11は、入力された商品コードをデータ記憶部17dに記憶する(ステップS145)。   Next, the control unit 11 determines whether or not the product code of the product to be canceled has been input (step S144). The control unit 11 waits until the product code is input (Step S144; No), and determines that the product code is input (Step S144; Yes), stores the input product code in the data storage unit 17d (Step S144). S145).

次に制御部11は、実行キーが操作されたか否かを判断する(ステップS146)。操作されていないを判断した場合は(ステップS146;No)、制御部11は、ステップS144に戻り、操作されたと判断した場合は(ステップS146;Yes)、制御部11は、読み出したジャーナルデータに基づいて、レジマイナス処理を実行する(ステップSP147)。そして制御部11(変更レシートデータ生成手段112)は、レジマイナス処理に基づいたレジマイナスレシートデータ(変更レシートデータ)を生成する(ステップS148)。   Next, the control unit 11 determines whether or not the execution key has been operated (step S146). If it is determined that the operation has not been performed (step S146; No), the control unit 11 returns to step S144. If it is determined that the operation has been performed (step S146; Yes), the control unit 11 returns to the read journal data. Based on the result, a register minus process is executed (step SP147). Then, the control unit 11 (changed receipt data generation means 112) generates registration minus receipt data (changed receipt data) based on the registration minus process (step S148).

次いで制御部11は、ジャーナルデータとステップSP145で記憶した、取消された商品の商品コードとから、取消されていない商品について商品販売データ処理を実行する(ステップS149)。そして制御部11(訂正レシートデータ生成手段114)は、商品販売データ処理に基づいた訂正レシートデータを生成する(ステップS150)。   Next, the control unit 11 executes the merchandise sales data processing for the uncanceled merchandise based on the journal data and the merchandise code of the canceled merchandise stored in step SP145 (step S149). Then, the control section 11 (corrected receipt data generating means 114) generates corrected receipt data based on the merchandise sales data processing (step S150).

次に制御部11(判断手段115)は、生成したレジマイナスレシートデータおよび訂正レシートデータに会員コードが含まれているか否かを判断する(ステップS151)。   Next, the control unit 11 (determination unit 115) determines whether the generated registration minus receipt data and corrected receipt data include a member code (step S151).

含まれていると判断した場合は(ステップS151;Yes)、制御部11(制御手段113)は、レジマイナスレシートデータに基づいて、非構造化形式であるレジマイナスレシートデータのデータ形式を、構造化形式に変換することでレジマイナス電子レシートデータを生成する(ステップS152)。この際、、ステップS141で入力された一部取消コードを付す。レジマイナス電子レシートデータには、「レジマイナス」の文字データが含まれる。   If it is determined that it is included (Step S151; Yes), the control unit 11 (control means 113) converts the data format of the unstructured register minus receipt data into a structure based on the register minus receipt data. By converting the data into a conversion format, register minus electronic receipt data is generated (step S152). At this time, the partial cancellation code input in step S141 is added. The cash register minus electronic receipt data includes character data of “cash minus”.

また、制御部11(制御手段113)は、訂正レシートデータに基づいて、非構造化形式である訂正レシートデータのデータ形式を、構造化形式に変換することで訂正電子レシートデータを生成する(ステップS153)。この際、ステップS141で入力された一部取消コードを付す。そして制御部11(制御手段113)は、生成したレジマイナス電子レシートデータを電子レシートサーバ3に送信する(ステップS154)。また、制御部11(制御手段113)は、生成した訂正電子レシートデータを、レシート番号を付して電子レシートサーバ3に送信する(ステップS155)。   Further, the control unit 11 (control means 113) generates corrected electronic receipt data by converting the data format of the unstructured corrected receipt data into a structured format based on the corrected receipt data (step S1). S153). At this time, the partial cancellation code input in step S141 is added. Then, the control unit 11 (control means 113) transmits the generated cash register minus electronic receipt data to the electronic receipt server 3 (step S154). Further, the control section 11 (the control means 113) attaches the receipt number to the generated corrected electronic receipt data and transmits it to the electronic receipt server 3 (step S155).

そして制御部11(制御手段113)は、レジマイナスレシートデータを印字部13に出力して印字処理を実行し(ステップS156)、「レジマイナス」のヘッダー文字が印字された店控え用の紙のレジマイナスレシートを発行する。   Then, the control section 11 (control means 113) outputs the registration minus receipt data to the printing section 13 to execute the printing process (step S156), and executes the printing of the store copy paper on which the header character of "registration minus" is printed. Issue a cash register receipt.

一方、ステップS151において、生成したレジマイナスレシートデータおよび訂正レシートデータに会員コードが含まれていないと判断した場合は(ステップS151;No)、制御部11は、生成したレジマイナスレシートデータを印字部13に出力して印字処理を実行し(ステップS157)、「レジマイナス」のヘッダー文字が印字された店控え用の紙のレジマイナスレシートを発行する。また、制御部11は、生成した訂正レシートデータを印字部13に出力して印字処理を実行し(ステップS158)、「一部取消」の文字が印字された顧客に手渡す紙の訂正レシートを発行する。   On the other hand, when it is determined in step S151 that the generated registration minus receipt data and corrected receipt data do not include the member code (step S151; No), the control unit 11 prints the generated registration minus receipt data on the printing unit. 13 and executes a printing process (step S157), and issues a register receipt of a store copy paper on which a header character of "registration minus" is printed. Further, the control unit 11 outputs the generated corrected receipt data to the printing unit 13 and executes a printing process (step S158), and issues a correction receipt of the paper to be handed to the customer on which the character “partially canceled” is printed. I do.

なお、返品キー124、レジマイナスキー125、一部取消キー126を操作したとき以外に、例えば、収入印紙を購入変更するためのキーを操作した場合も、制御部11は、同様の処理を実行する。   The control unit 11 executes the same processing when, for example, operating a key for changing purchase of an income stamp, other than operating the return key 124, the register minus key 125, and the partial cancel key 126. I do.

このように、実施形態によれば、生成された変更レシートデータに顧客を特定する顧客特定情報が含まれている場合、前記変更レシートデータから変更電子レシートデータを生成して前記外部装置に送信するとともに、変更電子レシートデータに基づく印字データを印字部に出力するため、変更されたレシートデータについて、電子レシートデータとして顧客に送信するとともに、印字部13でも印字することができる。   As described above, according to the embodiment, when the generated change receipt data includes the customer specifying information for specifying the customer, the change electronic receipt data is generated from the change receipt data and transmitted to the external device. At the same time, since the print data based on the changed electronic receipt data is output to the printing unit, the changed receipt data can be transmitted to the customer as electronic receipt data and printed by the printing unit 13.

また、実施形態によれば、返品処理と一部取消処理が実行された場合、取引情報の変更に伴う変更後の新たな訂正レシートデータを生成するため、変更後の電子レシートデータを送信することができる。   Further, according to the embodiment, when the return processing and the partial cancellation processing are executed, the electronic receipt data after the change is transmitted in order to generate new corrected receipt data after the change in the transaction information. Can be.

また、実施形態によれば、変更レシートデータに顧客特定情報である会員コードが含まれていると判断した場合に、変更レシートデータから変更電子レシートデータを生成して外部装置に送信するとともに、変更電子レシートデータに基づく印字データを印字部13に出力するため、自動的に電子レシートデータを送信することができる。   Further, according to the embodiment, when it is determined that the change receipt data includes the member code that is the customer identification information, the change electronic receipt data is generated from the change receipt data and transmitted to the external device, and the change electronic receipt data is generated. Since the print data based on the electronic receipt data is output to the printing unit 13, the electronic receipt data can be automatically transmitted.

次に、電子レシートサーバ3の制御部31が、電子レシート管理プログラム33bに従って動作することにより実行される電子レシート管理処理及び情報送信プログラム33cに従って動作することにより実行される情報送信処理の流れを、図18に示すフローチャートを参照しつつ説明する。   Next, the flow of an electronic receipt management process executed by the control unit 31 of the electronic receipt server 3 operating according to the electronic receipt management program 33b and an information transmission process executed by operating according to the information transmission program 33c are described below. This will be described with reference to the flowchart shown in FIG.

電子レシートサーバ3の制御部31は、POS端末1から送信された電子レシートデータを通信I/F32を介して受信すると(ステップS31;Yes)、記憶部33の電子レシート管理領域33aに企業毎の電子レシートデータとして記憶する(ステップS32)。そして、電子レシートサーバ3の制御部31は、ステップS32で記憶した電子レシートデータを電子レシート管理サーバ4に送信し(ステップS33)、ステップS31に戻る。   When receiving the electronic receipt data transmitted from the POS terminal 1 via the communication I / F 32 (step S31; Yes), the control unit 31 of the electronic receipt server 3 stores the electronic receipt data in the electronic receipt management area 33a of the storage unit 33 for each company. It is stored as electronic receipt data (step S32). Then, the control unit 31 of the electronic receipt server 3 transmits the electronic receipt data stored in step S32 to the electronic receipt management server 4 (step S33), and returns to step S31.

また、電子レシートサーバ3の制御部31は、予め設定された送信タイミングになると(ステップS31;No→ステップS34;Yes)、電子レシート管理領域33aに記憶して管理されている電子レシートデータを電子レシート管理サーバ4に送信し(ステップS35)、ステップS31に戻る。このステップS35の送信により、例えばステップS33で送信の対象から漏れた電子レシートデータを、電子レシート管理サーバ4に送信することができる。なお、ステップS35では、未送信の電子レシートデータのみを送信するよう制御してもよい。   Further, at a preset transmission timing (Step S31; No → Step S34; Yes), the control unit 31 of the electronic receipt server 3 electronically stores the electronic receipt data stored and managed in the electronic receipt management area 33a. The data is transmitted to the receipt management server 4 (step S35), and the process returns to step S31. By the transmission in step S35, for example, the electronic receipt data leaked from the transmission target in step S33 can be transmitted to the electronic receipt management server 4. In step S35, control may be performed such that only untransmitted electronic receipt data is transmitted.

また、ステップS34において予め設定された送信タイミングではないと判断した場合(ステップS34;No)、制御部31は、POS端末1からレシートデータの要求があったか否かを判断する(ステップS36)。レシートデータの要求は、ステップS52、ステップS62、ステップS82でPOS端末1から送信される。   If it is determined in step S34 that the transmission timing is not the preset transmission timing (step S34; No), the control unit 31 determines whether there is a request for the receipt data from the POS terminal 1 (step S36). The request for the receipt data is transmitted from the POS terminal 1 in steps S52, S62, and S82.

レシートデータの要求があったと判断した場合は(ステップS36;Yes)、制御部31は、同時に受信したレシート番号で指定されるレシートデータをPOS端末1に送信する(ステップS37)。また、レシートデータの要求ではないと判断した場合は(ステップS36;No)、制御部31は、ステップS31に戻る。   If it is determined that the receipt data has been requested (step S36; Yes), the control unit 31 transmits the receipt data specified by the simultaneously received receipt number to the POS terminal 1 (step S37). If it is determined that the request is not a receipt data request (step S36; No), the control unit 31 returns to step S31.

次に、電子レシート管理サーバ4の制御部41が、電子レシート管理プログラム43cに従って動作することにより実行される電子レシート管理処理及び情報送信プログラム43dに従って動作することにより実行される商品情報送信処理の流れを、図19に示す機能ブロック図及び図20に示すフローチャートを参照しつつ説明する。   Next, the flow of an electronic receipt management process executed by the control unit 41 of the electronic receipt management server 4 operating according to the electronic receipt management program 43c and a product information transmission process executed by operating according to the information transmission program 43d. Will be described with reference to a functional block diagram shown in FIG. 19 and a flowchart shown in FIG.

図19に示すように、電子レシート管理サーバ4で実行される電子レシート管理プログラム43c及び情報送信プログラム43dは、電子レシートデータ記憶手段411、訂正電子レシートデータ記憶手段412、訂正電子レシートデータ送信手段413、変更電子レシートデータ記憶手段414を含むモジュール構成となっている。実際のハードウェアとしては制御部41のCPUが記憶部43から電子レシート管理プログラム43c及び情報送信プログラム43dを読み出して実行することにより、電子レシートデータ記憶手段411、訂正電子レシートデータ記憶手段412、訂正電子レシートデータ送信手段413、変更電子レシートデータ記憶手段414が実行される。   As shown in FIG. 19, the electronic receipt management program 43c and the information transmission program 43d executed by the electronic receipt management server 4 include an electronic receipt data storage unit 411, a corrected electronic receipt data storage unit 412, and a corrected electronic receipt data transmission unit 413. And a modified electronic receipt data storage means 414. As the actual hardware, the CPU of the control unit 41 reads out the electronic receipt management program 43c and the information transmission program 43d from the storage unit 43 and executes them, so that the electronic receipt data storage unit 411, the correction electronic receipt data storage unit 412, The electronic receipt data transmission means 413 and the changed electronic receipt data storage means 414 are executed.

電子レシートデータ記憶手段411は、商品販売データ処理装置1が生成した顧客との一取引に基づく電子レシートデータを閲覧可能に記憶部に記憶する機能を有する。   The electronic receipt data storage unit 411 has a function of browsably storing electronic receipt data based on one transaction with a customer generated by the product sales data processing device 1 in a storage unit.

訂正電子レシートデータ記憶手段412は、取引の変更に伴い、電子レシートデータ記憶手段411によって記憶された電子レシートデータを変更した変更後の訂正電子レシートデータを、電子レシートデータに代わって閲覧可能に記憶部に記憶する機能を有する。   The corrected electronic receipt data storage unit 412 stores the corrected corrected electronic receipt data obtained by changing the electronic receipt data stored by the electronic receipt data storage unit 411 in accordance with the change of the transaction so that the electronic receipt data can be browsed instead of the electronic receipt data. It has the function of storing in the unit.

訂正電子レシートデータ送信手段413は、端末装置7からの閲覧要求に対応して、訂正電子レシートデータ記憶手段412が記憶した訂正電子レシートデータを端末装置7に送信する機能を有する。   The correction electronic receipt data transmission unit 413 has a function of transmitting the correction electronic receipt data stored in the correction electronic receipt data storage unit 412 to the terminal device 7 in response to a browsing request from the terminal device 7.

変更電子レシートデータ記憶手段414は、取引の変更に伴い、電子レシートデータ記憶手段411によって記憶された前記電子レシートデータを変更した変更電子レシートデータを記憶部に記憶する機能を有する。   The changed electronic receipt data storage unit 414 has a function of storing, in a storage unit, changed electronic receipt data obtained by changing the electronic receipt data stored by the electronic receipt data storage unit 411 in accordance with a change in a transaction.

図20に示すように、電子レシート管理サーバ4の制御部41は、各企業の電子レシートサーバ3から送信された電子レシートデータを、通信I/F42を介して受信したか否かを判断する(ステップS101)。   As shown in FIG. 20, the control unit 41 of the electronic receipt management server 4 determines whether the electronic receipt data transmitted from the electronic receipt server 3 of each company has been received via the communication I / F 42 (see FIG. 20). Step S101).

電子レシートデータを受信したと判断した場合(ステップS101;Yes)、制御部41は、同時に受信したレシート番号がすでに存在するか否かを判断する(ステップS102)。この判断は、電子レシート管理領域43aのレシート番号部43a1に、受信したレシート番号が存在するか否かで判断する(ステップS102)。   When determining that the electronic receipt data has been received (Step S101; Yes), the control unit 41 determines whether or not the simultaneously received receipt number already exists (Step S102). This determination is made based on whether or not the received receipt number exists in the receipt number section 43a1 of the electronic receipt management area 43a (step S102).

存在しないと判断した場合は(ステップS102;No)、制御部41は、受信したレシート番号に対応させて新たな電子レシートデータを、電子レシートデータ部43a21に記憶する(ステップS103)。そして制御部41は、記憶した新たな電子レシートデータに対応して、表示許可フラグ部43a22にフラグ「1」を記憶することで、当該電子レシートデータが閲覧可能に設定する(ステップS104)。   If it is determined that the receipt number does not exist (Step S102; No), the control unit 41 stores new electronic receipt data in the electronic receipt data unit 43a21 in association with the received receipt number (Step S103). Then, the control unit 41 stores the flag “1” in the display permission flag unit 43a22 corresponding to the stored new electronic receipt data, thereby setting the electronic receipt data to be viewable (step S104).

また、受信したレシート番号が存在していると判断した場合は(ステップS102;Yes)、次に制御部41は、受信した電子レシートデータに返品コードが含まれているか否かを判断する(ステップS105)。含まれていると判断した場合は(ステップS105;Yes)、制御部41は、図21に示す返品の電子レシート処理を実行する(ステップS106)。   If it is determined that the received receipt number exists (Step S102; Yes), the control unit 41 determines whether the received electronic receipt data includes a return code (Step S102). S105). If it is determined that it is included (step S105; Yes), the control unit 41 executes the electronic receipt processing of returned goods shown in FIG. 21 (step S106).

また、受信した電子レシートデータに返品コードが含まれていないと判断した場合は(ステップS105;No)、次に制御部41は、受信した電子レシートデータにレジマイナスコードが含まれているか否かを判断する(ステップS107)。含まれていると判断した場合は(ステップS107;Yes)、制御部41は、図22に示すレジマイナスの電子レシート処理を実行する(ステップS108)。   When it is determined that the received electronic receipt data does not include the return code (step S105; No), the control unit 41 determines whether the received electronic receipt data includes the register minus code. Is determined (step S107). If it is determined that the electronic receipt is included (Step S107; Yes), the control unit 41 executes a register-minus electronic receipt process shown in FIG. 22 (Step S108).

また、受信した電子レシートデータにレジマイナスコードが含まれていないと判断した場合は(ステップS107;No)、次に制御部41は、受信した電子レシートデータに一部取消コードが含まれているか否かを判断する(ステップS109)。含まれていると判断した場合は(ステップS109;Yes)、制御部41は、図23に示す一部取消の電子レシート処理を実行する(ステップS110)。一部取消コードが含まれていないと判断した場合は(ステップS109;No)、制御部41は、ステップS101に戻って待機する。   If it is determined that the received electronic receipt data does not include the register minus code (step S107; No), then the control unit 41 determines whether the received electronic receipt data includes a partial cancellation code. It is determined whether or not it is (step S109). When it is determined that the electronic receipt is included (Step S109; Yes), the control unit 41 executes a partially canceled electronic receipt process shown in FIG. 23 (Step S110). When it is determined that the partial cancellation code is not included (Step S109; No), the control unit 41 returns to Step S101 and waits.

一方、ステップS101において、電子レシートデータを受信していないと判断した場合は(ステップS101;No)、制御部41は、携帯端末7から、電子レシートデータの照会があったか否かを判断する(ステップS121)。あったと判断した場合は(ステップS121;Yes)、制御部41は、該当する電子レシートデータを電子レシート管理領域43aから読み出す(ステップS122)。そして制御部41は、読み出した電子レシートデータを、照会があった携帯端末7に送信する(ステップS123)。   On the other hand, when it is determined in step S101 that the electronic receipt data has not been received (step S101; No), the control unit 41 determines whether the portable terminal 7 has referred to the electronic receipt data (step S101). S121). If it is determined that there is (step S121; Yes), the control unit 41 reads the corresponding electronic receipt data from the electronic receipt management area 43a (step S122). Then, the control unit 41 transmits the read electronic receipt data to the portable terminal 7 having the inquiry (step S123).

図21は、ステップS106に示す、返品の電子レシート処理を示すフローチャートである。制御部41は、受信した返品電子レシートデータを、受信したレシート番号に対応する電子レシートデータ部43a31に記憶する(ステップS161)。また、受信した訂正電子レシートデータを、受信したレシート番号に対応する電子レシートデータ部43a41に記憶する(ステップS161)。   FIG. 21 is a flowchart showing the returned electronic receipt processing shown in step S106. The control unit 41 stores the received return electronic receipt data in the electronic receipt data unit 43a31 corresponding to the received receipt number (step S161). Further, the received corrected electronic receipt data is stored in the electronic receipt data section 43a41 corresponding to the received receipt number (step S161).

次に制御部41は、表示許可フラグ部43a22のフラグを「0」にし、元の電子レシートデータを閲覧不可とする(ステップS162)。次に制御部41は、表示許可フラグ部43a32のフラグと、表示許可フラグ部43a42のフラグを「1」にし、電子レシートデータ部43a31に記憶した返品電子レシートデータと、電子レシートデータ部43a41に記憶した訂正電子レシートデータとを、閲覧可能に設定する(ステップS163)。   Next, the control unit 41 sets the flag of the display permission flag unit 43a22 to “0” and disables browsing of the original electronic receipt data (step S162). Next, the control unit 41 sets the flag of the display permission flag unit 43a32 and the flag of the display permission flag unit 43a42 to “1”, and stores the returned electronic receipt data stored in the electronic receipt data unit 43a31 and the electronic receipt data unit 43a41. The corrected electronic receipt data is set to be viewable (step S163).

次に制御部41は、返品電子レシートデータと訂正電子レシートデータとが閲覧可能であることを示すメッセージを、該当する携帯端末7に送信する(ステップS164)。   Next, the control unit 41 transmits a message indicating that the returned electronic receipt data and the corrected electronic receipt data can be viewed to the corresponding portable terminal 7 (step S164).

図22は、ステップS108に示す、レジマイナスの電子レシート処理を示すフローチャートである。制御部41は、受信したレジマイナス電子レシートデータを、受信したレシート番号に対応する電子レシートデータ部43a31に記憶する(ステップS171)。   FIG. 22 is a flowchart showing the registration minus electronic receipt processing shown in step S108. The control unit 41 stores the received cash register minus electronic receipt data in the electronic receipt data unit 43a31 corresponding to the received receipt number (step S171).

次に制御部41は、電子レシートデータ部43a31に記憶したレジマイナス電子レシートデータに基づいて、電子レシートデータ部43a21に記憶している電子レシートデータの消し込み処理を実行する(ステップS172)。そして制御部41は、表示許可フラグ部43a32のフラグを「0」にセットし、電子レシートデータ部43a31に記憶したレジマイナス電子レシートデータを、閲覧を不可とする(ステップS173)。そして制御部41は、表示許可フラグ部43a22のフラグを「0」にセットし、電子レシートデータ部43a21に記憶している元の電子レシートデータを閲覧不可とする(ステップSP174)。   Next, the control unit 41 executes an erasing process of the electronic receipt data stored in the electronic receipt data unit 43a21 based on the registration minus electronic receipt data stored in the electronic receipt data unit 43a31 (step S172). Then, the control unit 41 sets the flag of the display permission flag unit 43a32 to “0”, and disables viewing of the register minus the electronic receipt data stored in the electronic receipt data unit 43a31 (step S173). Then, the control unit 41 sets the flag of the display permission flag unit 43a22 to “0” and disables viewing of the original electronic receipt data stored in the electronic receipt data unit 43a21 (step SP174).

図23は、ステップS110に示す、一部取消電子レシート処理を示すフローチャートである。制御部41は、受信したレジマイナス電子レシートデータを、受信したレシート番号に対応する電子レシートデータ部43a31に記憶する(ステップS181)。また、受信した訂正電子レシートデータを、受信したレシート番号に対応する電子レシートデータ部43a41に記憶する(ステップS181)。   FIG. 23 is a flowchart showing the partially canceled electronic receipt processing shown in step S110. The control unit 41 stores the received cash register minus electronic receipt data in the electronic receipt data unit 43a31 corresponding to the received receipt number (step S181). Further, the received corrected electronic receipt data is stored in the electronic receipt data section 43a41 corresponding to the received receipt number (step S181).

次に制御部41は、電子レシートデータ部43a31に記憶したレジマイナス電子レシートデータに基づいて、電子レシートデータ部43a21に記憶している電子レシートデータの消し込み処理を実行する(ステップS182)。そして制御部41は、表示許可フラグ部43a32のフラグを「0」にセットし、電子レシートデータ部43a31に記憶したレジマイナス電子レシートデータを、閲覧を不可とする(ステップS183)。そして制御部41は、表示許可フラグ部43a22のフラグを「0」にセットし、電子レシートデータ部43a21に記憶している電子レシートデータを閲覧不可とする(ステップSP184)。   Next, the control unit 41 executes an erasing process of the electronic receipt data stored in the electronic receipt data unit 43a21 based on the registration minus electronic receipt data stored in the electronic receipt data unit 43a31 (step S182). Then, the control unit 41 sets the flag of the display permission flag unit 43a32 to “0”, and disables viewing of the register minus the electronic receipt data stored in the electronic receipt data unit 43a31 (step S183). Then, the control unit 41 sets the flag of the display permission flag unit 43a22 to “0”, and disables viewing of the electronic receipt data stored in the electronic receipt data unit 43a21 (step SP184).

次に制御部41は、表示許可フラグ部43a42のフラグを「1」にし、電子レシートデータ部43a41に記憶した訂正電子レシートデータとを、閲覧可能に設定する(ステップS185)。   Next, the control section 41 sets the flag of the display permission flag section 43a42 to "1", and sets the corrected electronic receipt data stored in the electronic receipt data section 43a41 to be viewable (step S185).

次に制御部41は、訂正電子レシートデータとが閲覧可能であることを示すメッセージを、該当する携帯端末7に送信する(ステップS186)。   Next, the control unit 41 transmits a message indicating that the corrected electronic receipt data can be browsed to the corresponding portable terminal 7 (step S186).

このような実施形態では、取引が終了して電子レシートデータが生成された取引について、返品処理を実行した場合、制御部41は、電子レシートサーバ3から返品電子レシートデータと訂正電子レシートデータを受信する。これらの電子レシートデータを受信した以降は、携帯端末7から電子レシートデータの閲覧照会があった場合、電子レシート管理サーバ4は、フラグが「1」の表示許可フラグ部と対応した返品電子レシートデータと訂正電子レシートデータを携帯端末7に送信する。フラグが「0」にセットされたそれ以前の電子レシートデータは送信しない。すなわち、携帯端末7は、返品処理後は、返品電子レシートデータと訂正電子レシートデータが閲覧可能であるが、元の電子レシートデータは閲覧不可である。   In such an embodiment, when a return process is performed for a transaction in which electronic receipt data has been generated after the transaction has been completed, the control unit 41 receives the returned electronic receipt data and the corrected electronic receipt data from the electronic receipt server 3. I do. After receiving these electronic receipt data, if there is a browsing inquiry of the electronic receipt data from the portable terminal 7, the electronic receipt management server 4 returns the returned electronic receipt data corresponding to the display permission flag portion whose flag is “1”. And the corrected electronic receipt data to the mobile terminal 7. The electronic receipt data before the flag is set to “0” is not transmitted. That is, after the return process, the portable terminal 7 can browse the returned electronic receipt data and the corrected electronic receipt data, but cannot browse the original electronic receipt data.

また、このような実施形態で、取引が終了して電子レシートデータが生成された取引について、レジマイナス処理を実行した場合、制御部41は、電子レシートサーバ3からレジマイナス電子レシートデータを受信する。このレジマイナス電子レシートデータを受信した以降は、携帯端末7から電子レシートデータの閲覧照会があった場合、制御部41は、携帯端末7に対して、元の電子レシートデータもレジマイナス電子レシートデータも送信しない。すなわち、携帯端末7は、元の電子レシートデータもレジマイなす電子レシートデータも、閲覧不可である。   Further, in such an embodiment, when a cash register minus process is executed for a transaction for which electronic receipt data has been generated after the transaction is completed, the control unit 41 receives cash register minus electronic receipt data from the electronic receipt server 3. . After receiving the register minus electronic receipt data, if there is a browsing inquiry of the electronic receipt data from the portable terminal 7, the control unit 41 sends the original electronic receipt data to the register minus electronic receipt data to the portable terminal 7. Also do not send. That is, the portable terminal 7 cannot view the original electronic receipt data nor the electronic receipt data that is to be registered.

また、このような実施形態で、取引が終了して電子レシートデータが生成された取引について、一部取消処理を実行した場合、制御部41は、電子レシートサーバ3からレジマイナス電子レシートデータと訂正電子レシートデータを受信する。これらの電子レシートデータを受信した以降は、携帯端末7から電子レシートデータの閲覧照会があった場合、電子レシート管理サーバ4は、フラグが「1」の表示許可フラグ部と対応した訂正電子レシートデータを携帯端末7に送信する。フラグが「0」にセットされた、レジマイナス電子レシートデータと、それ以前の電子レシートデータは送信しない。すなわち、携帯端末7は、一部取消処理後は、訂正電子レシートデータが閲覧可能であるが、レジマイナス電子レシートデータと、元の電子レシートデータは閲覧不可である。   Further, in such an embodiment, when a partial cancellation process is executed for a transaction in which the transaction has been completed and the electronic receipt data has been generated, the control unit 41 corrects the transaction from the electronic receipt server 3 to the cash register minus the electronic receipt data. Receive electronic receipt data. After receiving the electronic receipt data, if there is a browsing inquiry of the electronic receipt data from the mobile terminal 7, the electronic receipt management server 4 sets the corrected electronic receipt data corresponding to the display permission flag portion whose flag is “1”. Is transmitted to the mobile terminal 7. The register minus electronic receipt data whose flag is set to “0” and the electronic receipt data before that are not transmitted. That is, the portable terminal 7 can view the corrected electronic receipt data after the partial cancellation processing, but cannot view the register minus electronic receipt data and the original electronic receipt data.

次に、携帯端末7の制御部71が、電子レシート対応プログラム75aに従って動作することにより実行される電子レシート受け取り処理及び電子レシート閲覧プログラム75bに従って動作することにより実行される電子レシート閲覧処理の流れを、図24〜図26を参照しつつ説明する。   Next, the flow of the electronic receipt receiving process executed by the control unit 71 of the portable terminal 7 operating according to the electronic receipt corresponding program 75a and the electronic receipt viewing process executed by operating according to the electronic receipt viewing program 75b will be described. This will be described with reference to FIGS.

図24に示すように、携帯端末7で実行される電子レシート対応プログラム75a及び電子レシート閲覧プログラム75bは、会員対応付け手段711、電子レシート受信手段712、電子レシート表示手段713を含むモジュール構成となっている。実際のハードウェアとしては制御部71のCPUが記憶部75から電子レシート対応プログラム75a及び電子レシート閲覧プログラム75bを読み出して実行することにより上記各部がRAM上にロードされ、会員対応付け手段711、電子レシート受信手段712、電子レシート表示手段713がRAM上に生成されるようになっている。   As shown in FIG. 24, the electronic receipt correspondence program 75a and the electronic receipt viewing program 75b executed by the mobile terminal 7 have a module configuration including a member association unit 711, an electronic receipt reception unit 712, and an electronic receipt display unit 713. ing. As the actual hardware, the CPU of the control unit 71 reads out and executes the electronic receipt correspondence program 75a and the electronic receipt viewing program 75b from the storage unit 75, so that the above units are loaded on the RAM, and the member association unit 711, the electronic association The receipt receiving means 712 and the electronic receipt display means 713 are generated on the RAM.

会員対応付け手段711は、所定の顧客の会員コードを対応付ける。電子レシート受信手段712は、電子レシート管理サーバ4から電子レシートデータを受信する。電子レシート表示手段713は、電子レシート受信手段712により受信した電子レシートデータを表示部73に表示する。   The member association unit 711 associates a member code of a predetermined customer. The electronic receipt receiving unit 712 receives electronic receipt data from the electronic receipt management server 4. The electronic receipt display unit 713 displays the electronic receipt data received by the electronic receipt receiving unit 712 on the display unit 73.

図25に示すように、まず、携帯端末7の会員対応付け手段711は、電子レシート管理サーバ4にアクセスして会員コード及びパスワードの入力によって認証処理を実行する(ステップS131)。これにより、携帯端末7と所定の顧客の会員コードとが対応付けられる。   As shown in FIG. 25, first, the member association unit 711 of the mobile terminal 7 accesses the electronic receipt management server 4 to execute an authentication process by inputting a member code and a password (step S131). As a result, the mobile terminal 7 is associated with a predetermined customer member code.

認証後、携帯端末7の電子レシート受信手段712は、入力された当該会員コードに対応して電子レシート管理サーバ4の電子レシート管理領域43aに記憶され管理されている電子レシートデータを受信する(ステップS132)。また、電子レシートデータに付加情報が対応付けされている場合には、この付加情報についても電子レシート管理サーバ4から受信する。なお、レシートデータの受信については、電子メールによって受信するものであってもよい。   After the authentication, the electronic receipt receiving means 712 of the mobile terminal 7 receives the electronic receipt data stored and managed in the electronic receipt management area 43a of the electronic receipt management server 4 corresponding to the input member code (step). S132). When the additional information is associated with the electronic receipt data, the additional information is also received from the electronic receipt management server 4. Note that receipt data may be received by e-mail.

次に、携帯端末7の電子レシート表示手段713は、電子レシート受信手段712が受信した電子レシートデータ等を表示部73に表示し(ステップS133)、処理を終了する。   Next, the electronic receipt display means 713 of the portable terminal 7 displays the electronic receipt data and the like received by the electronic receipt receiving means 712 on the display unit 73 (Step S133), and ends the processing.

図26は、携帯端末7の表示部73に表示された電子レシートG2の一例を示す図である。電子レシートG2は、用紙に印字されるレシートと同様のレイアウトや内容で表示される。また、電子レシートG2内において、操作部72の入力に追従するカーソルにより、取引された商品を示す商品a等にフォーカスを当てることができる。また、図26では、電子レシートG2内に、店名のロゴを表示する店名ロゴ部G21や、広告等を表示するバナー表示部G22等を設けた例を示している。   FIG. 26 is a diagram illustrating an example of the electronic receipt G2 displayed on the display unit 73 of the mobile terminal 7. The electronic receipt G2 is displayed with the same layout and content as the receipt printed on the paper. Further, in the electronic receipt G2, it is possible to focus on a product a or the like indicating a traded product by using a cursor that follows an input of the operation unit 72. FIG. 26 shows an example in which a store name logo portion G21 for displaying a store name logo, a banner display portion G22 for displaying an advertisement, and the like are provided in the electronic receipt G2.

なお、レシートデータの表示形態は、必ずしも用紙に印字されるレシートのイメージに合わせる必要はない。しかしながら、レシートデータは、紙のレシートに代わるものであり、商品を購入したことを証明する電子的な商品購入証明情報となるものである。そこで、図26では、商品購入証明情報として提示する場合に使用するため、以下の情報を表示した例を示している。
・店舗名
・購入日時
・購入商品明細
・売上合計額
・預り金額
・お釣り金額
・レジナンバー
・取引ナンバー
The display form of the receipt data does not necessarily need to match the receipt image printed on the paper. However, the receipt data is a substitute for a paper receipt, and is electronic merchandise purchase proof information for proving that the merchandise has been purchased. Therefore, FIG. 26 shows an example in which the following information is displayed for use in presenting as product purchase certification information.
・ Store name ・ Date and time of purchase ・ Details of purchased items ・ Total sales ・ Deposited amount ・ Change amount ・ Checkout number ・ Transaction number

ここで、商品aの何れかに対する付加情報として、プロモーション管理サーバ6等のURL(アクセス情報)が設定されている場合には、このURLが該当する商品名にリンクされたり、このURLへのアクセスを指示するため操作子となるアイコンb等が表示される。   Here, when a URL (access information) of the promotion management server 6 or the like is set as additional information for any one of the products a, this URL is linked to a corresponding product name, or access to this URL is performed. Is displayed, for example, an icon b serving as an operation element.

例えば、URLが示すアクセス先が、所定のキャンペーンへの応募を受け付けるサーバ装置(例えば、プロモーション管理サーバ6)である場合、携帯端末7の制御部71は、アイコンb等の押下に応じてプロモーション管理サーバ6にアクセスし、応募に係る処理を実行する。アクセス先へのアクセス時に、レシートデータ等に保持された自装置の会員コードを送信する形態としてもよい。そして、プロモーション管理サーバ6では、各会員を識別するための会員コードに対応付けてキャンペーン種別毎の応募履歴を管理する。   For example, when the access destination indicated by the URL is a server device (for example, the promotion management server 6) that receives an application for a predetermined campaign, the control unit 71 of the mobile terminal 7 performs the promotion management in response to the pressing of the icon b or the like. The server 6 accesses the server 6 and executes processing related to the application. At the time of access to the access destination, the member code of the own device stored in the receipt data or the like may be transmitted. The promotion management server 6 manages the application history for each campaign type in association with a member code for identifying each member.

なお、複数のレシートデータを受信した場合には、レシートデータに含まれる購入日、企業コード等に基づいて、レシートデータの各々を選択可能な選択画面を表示してもよい。この場合、電子レシート表示手段713は、選択画面から選択されたレシートデータを表示部73に表示する。   When a plurality of receipt data are received, a selection screen for selecting each of the receipt data may be displayed based on a purchase date, a company code, and the like included in the receipt data. In this case, the electronic receipt display unit 713 displays the receipt data selected from the selection screen on the display unit 73.

以上、本発明の実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これらの実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更、組み合わせを行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。   Although the embodiments of the present invention have been described above, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in other various forms, and various omissions, replacements, changes, and combinations 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 their equivalents.

例えば、上記実施形態では、コード読取部15を用いて会員コード等を入力する形態としたが、これに限らず、他の手法を用いて会員コード等を入力してもよい。具体的には、NFC(Near Field Communication)やBluetooth(登録商標)等の近距離無線通信部をPOS端末1及び携帯端末7が備えることで、近距離無線通信により会員コード等を送受信可能な構成としてもよい。この場合、携帯端末7は、会員コード等を記憶部75や図示しないICタグ等に保持するものとする。   For example, in the above embodiment, the member code and the like are input using the code reading unit 15, but the present invention is not limited to this, and the member code and the like may be input using another method. Specifically, the POS terminal 1 and the portable terminal 7 include a short-range wireless communication unit such as NFC (Near Field Communication) or Bluetooth (registered trademark), so that a member code or the like can be transmitted and received by short-range wireless communication. It may be. In this case, the mobile terminal 7 stores the member code and the like in the storage unit 75 and an IC tag (not shown).

また、上記実施形態では、携帯端末7から会員コード等を入力する形態としたが、これに限らず、ICカードや磁気カード等の会員コードを保持することが可能な媒体から入力してもよい。なお、ICカードを用いる場合には、POS端末1は、ICカードリーダライタ等の読取/書込部を備えるものとする。また、磁気カードを用いる場合には、POS端末1は、磁気カードのカードリーダ/カードライタ等を備えるものとする。   In the above embodiment, the member code and the like are input from the mobile terminal 7. However, the present invention is not limited to this, and the member code may be input from a medium capable of holding the member code such as an IC card or a magnetic card. . When an IC card is used, the POS terminal 1 includes a reading / writing unit such as an IC card reader / writer. When a magnetic card is used, the POS terminal 1 includes a card reader / card writer for a magnetic card.

また、上記実施形態では、本部P2に電子レシートサーバ3を設ける形態としたが、これに限らず、店舗P1内に、当該店舗用の電子レシートサーバ3を設ける形態としてもよい。この場合、POS端末1は、自店舗の店舗内ネットワークN1に接続された電子レシートサーバ3に電子レシートデータを出力し、電子レシートサーバ3は、店舗内ネットワークN1及びネットワークN2を介して電子レシート管理サーバ4に電子レシートデータを送信する。   In the above embodiment, the electronic receipt server 3 is provided in the headquarters P2. However, the present invention is not limited to this, and the electronic receipt server 3 for the store may be provided in the store P1. In this case, the POS terminal 1 outputs the electronic receipt data to the electronic receipt server 3 connected to the in-store network N1 of the own store, and the electronic receipt server 3 performs the electronic receipt management via the in-store network N1 and the network N2. The electronic receipt data is transmitted to the server 4.

また、上記実施形態では、POS端末1で生成された電子レシートデータを、電子レシートサーバ3を介して電子レシート管理サーバ4に出力する形態としたが、これに限らず、POS端末1からネットワークN3を介して電子レシート管理サーバ4にアクセスすることで、電子レシート管理サーバ4に電子レシートデータを直接出力する形態としてもよい。   In the above embodiment, the electronic receipt data generated by the POS terminal 1 is output to the electronic receipt management server 4 via the electronic receipt server 3, but the present invention is not limited to this. The electronic receipt data may be directly output to the electronic receipt management server 4 by accessing the electronic receipt management server 4 via.

また、上記実施形態では、携帯端末7は、電子レシート管理サーバ4を介して電子レシートデータを受信する形態としたが、これに限らず、POS端末1から電子レシートデータを直接受信する形態としてもよい。この場合、POS端末1は、店舗内ネットワークN1や図示しない近距離無線通信部を介して接続された携帯端末7に対し、生成した電子レシートデータを出力する。また、この場合、POS端末1で認証処理を行ってもよい。   In the above embodiment, the mobile terminal 7 receives the electronic receipt data via the electronic receipt management server 4. However, the present invention is not limited to this, and the mobile terminal 7 may receive the electronic receipt data directly from the POS terminal 1. Good. In this case, the POS terminal 1 outputs the generated electronic receipt data to the in-store network N1 or the portable terminal 7 connected via the near field communication unit (not shown). In this case, the POS terminal 1 may perform the authentication process.

また、上記実施形態では、商品データファイルをPOS端末1が記憶する形態としたが、これに限らず、ストアサーバ2が、POS端末1から参照可能に商品データファイルを記憶する形態としてもよい。   Further, in the above embodiment, the POS terminal 1 stores the product data file. However, the present invention is not limited to this. The store server 2 may store the product data file so that the POS terminal 1 can refer to the product data file.

1 POS端末
3 電子レシートサーバ
4 電子レシート管理サーバ
7 携帯端末
11 制御部
12 操作部
13 印字部
14 表示部
15 コード読取部
16 通信I/F
17 記憶部
111 電子レシートデータ送信手段
112 変更レシートデータ生成手段
113 制御手段
114 訂正レシートデータ生成手段
115 判断手段
Reference Signs List 1 POS terminal 3 Electronic receipt server 4 Electronic receipt management server 7 Mobile terminal 11 Control unit 12 Operation unit 13 Printing unit 14 Display unit 15 Code reading unit 16 Communication I / F
17 Storage Unit 111 Electronic Receipt Data Transmission Unit 112 Changed Receipt Data Generation Unit 113 Control Unit 114 Corrected Receipt Data Generation Unit 115 Judgment Unit

特開2011−90375号公報JP 2011-90375 A

本発明の実施形態は、電子レシート管理サーバ、プログラムおよび電子レシートシステムに関する。 An embodiment of the present invention relates to an electronic receipt management server, a program, and an electronic receipt system.

実施形態の電子レシート管理サーバは、決済処理した商品の取引情報を含んで生成された電子レシートデータを携帯端末に送信する送信手段と、前記携帯端末前記電子レシートデータを送信後に商品が返品された場合に生成された、前記返品された商品の情報を除いた取引情報を含む訂正電子レシートデータを記憶する訂正電子レシートデータ記憶手段と、前記訂正電子レシートデータが閲覧可能であることを示すメッセージを前記携帯端末に送信するメッセージ送信手段と、を備える。 Electronic receipt management server embodiment, goods are returned and transmission means for transmitting the electronic receipt data generated include transaction information items that payment processing to the portable terminal, the electronic receipt data to the mobile terminal after transmission A corrected electronic receipt data storage unit that stores corrected electronic receipt data including transaction information excluding the returned merchandise information generated in the case where the corrected electronic receipt data is available, and a message indicating that the corrected electronic receipt data is viewable. And a message transmitting means for transmitting a message to the portable terminal .

Claims (4)

決済処理した商品の取引情報に基づいて生成したレシートデータから電子レシートデータを生成するPOS端末と、前記電子レシートデータを外部装置に送信する電子レシート管理サーバとを備えた電子レシートシステムであって、
前記POS端末は、
前記外部装置に電子レシートデータを送信後に、返品する商品を特定する商品コードが入力されると、当該商品コードの商品の情報を除いた取引情報を含む訂正電子レシートデータを生成する訂正電子レシートデータ生成手段と、
前記外部装置に電子レシートデータを送信後に、返品する商品を特定する商品コードが入力されると、当該商品コードの商品の情報に基づいて返品レシートデータを生成する返品レシートデータ生成手段と、
前記返品レシートデータを印字部に出力する印字手段と、
を備え、
前記電子レシート管理サーバは、
生成した前記訂正電子レシートデータを前記外部装置に送信する訂正電子レシートデータ送信手段、
を備えた電子レシートシステム。
An electronic receipt system comprising: a POS terminal that generates electronic receipt data from receipt data generated based on transaction information of a product that has been settled; and an electronic receipt management server that transmits the electronic receipt data to an external device.
The POS terminal,
After transmitting the electronic receipt data to the external device, when a product code specifying the product to be returned is input, the corrected electronic receipt data including the transaction information excluding the product information of the product code is generated. Generating means;
After transmitting the electronic receipt data to the external device, when a product code specifying the product to be returned is input, return receipt data generating means for generating return receipt data based on the product information of the product code,
Printing means for outputting the returned receipt data to a printing unit,
With
The electronic receipt management server,
Correction electronic receipt data transmission means for transmitting the generated correction electronic receipt data to the external device,
Electronic receipt system with.
前記印字手段は、前記返品レシートデータに、返品した商品であることを示す情報を付加して出力する、
請求項1に記載の電子レシートシステム。
The printing unit outputs the returned receipt data, with information indicating that the returned product is added,
The electronic receipt system according to claim 1.
前記POS端末は、
前記返品レシートデータを含む返品電子レシートデータを生成する返品電子レシートデータ生成手段、
を備え、
前記電子レシート管理サーバは、
生成した前記返品電子レシートデータを前記外部装置に送信する返品電子レシートデータ送信手段、
をさらに備えた請求項1または2に記載の電子レシートシステム。
The POS terminal,
Return electronic receipt data generation means for generating return electronic receipt data including the return receipt data,
With
The electronic receipt management server,
Return electronic receipt data transmitting means for transmitting the generated return electronic receipt data to the external device,
The electronic receipt system according to claim 1, further comprising:
前記POS端末は、
前記外部装置に電子レシートデータを送信後に、返品する商品を特定する商品コードが入力されると、当該商品コードの商品の情報を除いた取引情報に基づいて訂正レシートデータを生成する訂正レシートデータ生成手段、をさらに備え、
前記訂正電子レシートデータ生成手段は、生成した前記訂正レシートデータに顧客を特定する顧客特定情報が含まれていると、前記訂正レシートデータから訂正電子レシートデータを生成する、
請求項1乃至3のいずれか一に記載の電子レシートシステム。
The POS terminal,
After the electronic receipt data is transmitted to the external device, when a product code specifying the product to be returned is input, a corrected receipt data generation device generates corrected receipt data based on the transaction information excluding the product information of the product code. Means, further comprising:
The correction electronic receipt data generating means, when the generated correction receipt data includes customer identification information for specifying a customer, generates correction electronic receipt data from the correction receipt data.
The electronic receipt system according to claim 1.
JP2019200843A 2019-11-05 2019-11-05 Electronic receipt management server, program and electronic receipt system Active JP6794521B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019200843A JP6794521B2 (en) 2019-11-05 2019-11-05 Electronic receipt management server, program and electronic receipt system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019200843A JP6794521B2 (en) 2019-11-05 2019-11-05 Electronic receipt management server, program and electronic receipt system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2018152384A Division JP6618585B2 (en) 2018-08-13 2018-08-13 Electronic receipt system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2020187026A Division JP7132307B2 (en) 2020-11-10 2020-11-10 Merchandise sales data processor and program

Publications (2)

Publication Number Publication Date
JP2020017322A true JP2020017322A (en) 2020-01-30
JP6794521B2 JP6794521B2 (en) 2020-12-02

Family

ID=69580464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019200843A Active JP6794521B2 (en) 2019-11-05 2019-11-05 Electronic receipt management server, program and electronic receipt system

Country Status (1)

Country Link
JP (1) JP6794521B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023047685A1 (en) 2021-09-24 2023-03-30 東芝テック株式会社 Server device and program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10188141A (en) * 1996-12-20 1998-07-21 Nec Corp Automation system for item return processing in pos register
JP2013097657A (en) * 2011-11-02 2013-05-20 Seiko Epson Corp Receipt management device, receipt management system, and control method and program for receipt management device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10188141A (en) * 1996-12-20 1998-07-21 Nec Corp Automation system for item return processing in pos register
JP2013097657A (en) * 2011-11-02 2013-05-20 Seiko Epson Corp Receipt management device, receipt management system, and control method and program for receipt management device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023047685A1 (en) 2021-09-24 2023-03-30 東芝テック株式会社 Server device and program
KR20240021971A (en) 2021-09-24 2024-02-19 도시바 테크 가부시키가이샤 Server devices and computer-readable storage media

Also Published As

Publication number Publication date
JP6794521B2 (en) 2020-12-02

Similar Documents

Publication Publication Date Title
JP2014206790A (en) Merchandise sales data processor and program
JP6155239B2 (en) Electronic receipt management server, electronic receipt providing method and program
JP2015232775A (en) Electronic receipt management server and program
JP5778728B2 (en) Product sales data processing apparatus and program
JP5827287B2 (en) Electronic receipt management server and program
JP6794521B2 (en) Electronic receipt management server, program and electronic receipt system
JP6690037B2 (en) Sales data processor, program and electronic receipt system
JP6388688B2 (en) Server, program, and server data processing method
JP5814432B1 (en) Server, sales data processing apparatus, program, and electronic receipt transmission method
JP5814429B1 (en) Server, sales data processing apparatus, program, and electronic receipt transmission method
JP6395888B2 (en) Sales data processing apparatus and program
JP5891212B2 (en) Product sales data processing apparatus and program
JP7433387B2 (en) Electronic receipt management server and program
JP7445729B2 (en) Electronic receipt management server, program and electronic receipt system
JP2016162160A (en) Output controller, sales data processing system, sales data processing method and program
JP6618585B2 (en) Electronic receipt system
JP6921267B2 (en) Sales data processing equipment, programs and electronic receipt systems
JP6499263B2 (en) Electronic receipt management server, electronic receipt browsing method and program
JP2018045722A (en) Sales data processing apparatus and program
JP6162755B2 (en) Product sales data processing apparatus and program
JP2016170795A (en) Server, transaction data processing system and program
JP6118379B2 (en) server
JP2015167032A (en) Transaction data processing device, transaction data processing method, and program
JP2016029581A (en) Electronic receipt management server and program
JP2019016368A (en) Electronic receipt system and electronic receipt management method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191106

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191106

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200707

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200826

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201111

R150 Certificate of patent or registration of utility model

Ref document number: 6794521

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150