JP7355570B2 - Receipt image generation device, information processing program, and receipt image generation method - Google Patents

Receipt image generation device, information processing program, and receipt image generation method Download PDF

Info

Publication number
JP7355570B2
JP7355570B2 JP2019172917A JP2019172917A JP7355570B2 JP 7355570 B2 JP7355570 B2 JP 7355570B2 JP 2019172917 A JP2019172917 A JP 2019172917A JP 2019172917 A JP2019172917 A JP 2019172917A JP 7355570 B2 JP7355570 B2 JP 7355570B2
Authority
JP
Japan
Prior art keywords
data
character string
product
mark
receipt
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019172917A
Other languages
Japanese (ja)
Other versions
JP2021051443A (en
Inventor
謙次 桜井
康博 荒井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2019172917A priority Critical patent/JP7355570B2/en
Publication of JP2021051443A publication Critical patent/JP2021051443A/en
Priority to JP2023156260A priority patent/JP2023164701A/en
Application granted granted Critical
Publication of JP7355570B2 publication Critical patent/JP7355570B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Description

本発明の実施形態は、レシート画像生成装置、情報処理プログラム及びレシート画像生成方法に関する。 Embodiments of the present invention relate to a receipt image generation device, an information processing program, and a receipt image generation method.

軽減税率制度の導入に対応して、レシートにおいて、商品名の近辺に「ケ」又は「軽」などのマークを付すことにより、軽減税率が適用された商品であることを識別可能とするなどの施策が種々考案されている。
しかしながらマークによる表示は、分かり易いとは言い難く、より有効な施策が望まれると見込まれる。
In response to the introduction of the reduced tax rate system, measures have been taken to make it easier to identify products to which the reduced tax rate has been applied by adding a mark such as "ke" or "light" near the product name on the receipt. Various measures have been devised.
However, it is difficult to say that the display using marks is easy to understand, and it is expected that more effective measures will be desired.

特開2016-15109号公報Unexamined Japanese Patent Publication No. 2016-15109

本発明が解決しようとする課題は、取引の対象となった商品のそれぞれについてどの税率が適用されたのかを容易に確認することを可能とするレシート画像生成装置、情報処理プログラム及びレシート画像生成方法を提供することである。 The problem to be solved by the present invention is a receipt image generation device, an information processing program, and a receipt image generation method that make it possible to easily confirm which tax rate has been applied to each product that is the subject of a transaction. The goal is to provide the following.

実施形態のレシート画像生成装置は、取得手段及び生成手段を備える。取得手段は、商品名を表す文字列の文字列データ及び取引金額を表す文字列の文字列データを少なくとも含む複数の文字列データを、一取引の対象となった商品のそれぞれに関して含み、かつ所定の消費税率が適用される商品に関連付けて予め定められたマークを含む交換用データを取得する。生成手段は、取得手段により取得された交換用データに含まれた文字列データが表す文字列のそれぞれを表示し、さらに交換用データに含まれたマークが関連付けられた商品に関する複数の文字列のうちの少なくとも1つの文字列の表示色を他の文字列の表示色とは異ならせたレシート画像に関する画像データを生成する。 The receipt image generation device of the embodiment includes an acquisition means and a generation means. The acquisition means includes a plurality of character string data, including at least character string data of a character string representing a product name and character string data of a character string representing a transaction amount, for each product that is the subject of one transaction, and Exchange data including a predetermined mark associated with a product to which the consumption tax rate of is applied is obtained. The generation means displays each of the character strings represented by the character string data included in the exchange data acquired by the acquisition means, and further displays a plurality of character strings related to the product associated with the mark included in the exchange data. Image data regarding a receipt image is generated in which the display color of at least one of the character strings is different from the display color of the other character strings.

一実施形態に係るPOS端末の要部回路構成を示すブロック図。FIG. 1 is a block diagram showing a main circuit configuration of a POS terminal according to an embodiment. 図1中の条件データベースに含まれるデータレコードの構成を模式的に示す図。2 is a diagram schematically showing the structure of data records included in the condition database in FIG. 1. FIG. 図1中のプロセッサによる販売処理のフローチャート。2 is a flowchart of sales processing by the processor in FIG. 1. 図1に示されるPOS端末で発行される紙レシートの一例を示す図。2 is a diagram showing an example of a paper receipt issued by the POS terminal shown in FIG. 1. FIG. 交換用データに含まれ、図4に示した紙レシートに表される文字列を表した情報を示す図。5 is a diagram showing information representing a character string included in exchange data and represented on the paper receipt shown in FIG. 4. FIG. 図1に示されるPOS端末で発行される紙レシートの一例を示す図。2 is a diagram showing an example of a paper receipt issued by the POS terminal shown in FIG. 1. FIG. 交換用データに含まれ、図6に示した紙レシートに表される文字列を表した情報を示す図。7 is a diagram showing information representing a character string included in exchange data and represented on the paper receipt shown in FIG. 6. FIG. 電子レシートエージェント処理における図1中のプロセッサの処理手順を示すフローチャート。2 is a flowchart showing the processing procedure of the processor in FIG. 1 in electronic receipt agent processing. 図1中のプロセッサが読み込むデータレコードの一例を示す図。FIG. 2 is a diagram showing an example of a data record read by the processor in FIG. 1; 図1中のプロセッサが読み込むデータレコードの一例を示す図。FIG. 2 is a diagram showing an example of a data record read by the processor in FIG. 1;

以下、実施の形態の一例について図面を用いて説明する。なお、本実施の形態では、レシート画像生成装置としての機能を備えたPOS端末を例に説明する。 An example of an embodiment will be described below with reference to the drawings. Note that in this embodiment, a POS terminal having a function as a receipt image generation device will be described as an example.

図1は本実施形態に係るPOS端末の要部回路構成を示すブロック図である。
図1は、POS端末101,102及びレシートサーバ103を含んだ電子レシートシステムを示している。POS端末101,102とレシートサーバ103とは、通信ネットワーク200を介してデータ通信が可能とされている。通信ネットワーク200としては、インターネット、VPN(virtual private network)、LAN(local area network)、公衆通信網、移動体通信網などを、単独又は適宜に組み合わせて用いることができる。
FIG. 1 is a block diagram showing the main circuit configuration of a POS terminal according to this embodiment.
FIG. 1 shows an electronic receipt system including POS terminals 101 and 102 and a receipt server 103. Data communication is possible between the POS terminals 101 and 102 and the receipt server 103 via a communication network 200. As the communication network 200, the Internet, a VPN (virtual private network), a LAN (local area network), a public communication network, a mobile communication network, etc. can be used alone or in an appropriate combination.

POS端末101,102は、商品の販売に係わる情報処理の仕様が互いに異なり、本実施形態ではそれぞれ別の小売業者(A社及びB社)により利用されることとする。ただし、図1においては、POS端末101,102の基本的な構成要素のみを示している。これら基本的な構成の多くは、取引データ処理の仕様の違いに拘わりなく共通である場合が多い。そこで図1においては、POS端末101,102の構成要素のうちの同様な機能を持った構成要素については、同一の符号を付して示している。ただし、POS端末101,102にそれぞれ含まれた同一の符号で示される要素は、互いに同一のデバイスであることを表している訳ではなく、別のデバイスが用いられる場合もある。なお、POS端末101,102は、ハードウェア構成としては同一であっても構わない。 The POS terminals 101 and 102 have different information processing specifications related to product sales, and in this embodiment, they are used by different retailers (Company A and Company B). However, in FIG. 1, only the basic components of the POS terminals 101 and 102 are shown. Many of these basic configurations are often the same regardless of differences in transaction data processing specifications. Therefore, in FIG. 1, components having similar functions among the components of the POS terminals 101 and 102 are designated with the same reference numerals. However, elements included in the POS terminals 101 and 102 and indicated by the same reference numerals do not necessarily represent the same device, and different devices may be used. Note that the POS terminals 101 and 102 may have the same hardware configuration.

POS端末101,102は、プロセッサ1、メインメモリ2、補助記憶ユニット3、時計部4、入力デバイス5、表示デバイス6、バーコードリーダ7、プリンタ8、通信インタフェース9及び伝送路10を備える。プロセッサ1、メインメモリ2、補助記憶ユニット3、時計部4、入力デバイス5、表示デバイス6、バーコードリーダ7、プリンタ8及び通信インタフェース9は、伝送路10によって接続される。 The POS terminals 101 and 102 include a processor 1, a main memory 2, an auxiliary storage unit 3, a clock section 4, an input device 5, a display device 6, a barcode reader 7, a printer 8, a communication interface 9, and a transmission path 10. The processor 1 , main memory 2 , auxiliary storage unit 3 , clock section 4 , input device 5 , display device 6 , barcode reader 7 , printer 8 , and communication interface 9 are connected by a transmission path 10 .

POS端末101,102においては、プロセッサ1、メインメモリ2及び補助記憶ユニット3が伝送路10によって接続されることにより、POS端末101,102を制御するコンピュータを構成する。
プロセッサ1は、上記コンピュータの中枢部分に相当する。プロセッサ1は、オペレーティングシステム及びアプリケーションプログラムなどの情報処理プログラムに従って、POS端末101,102としての各種の機能を実現するべく各部を制御する。
In the POS terminals 101 and 102, a processor 1, a main memory 2, and an auxiliary storage unit 3 are connected through a transmission path 10, thereby forming a computer that controls the POS terminals 101 and 102.
The processor 1 corresponds to the central part of the computer. The processor 1 controls each part to realize various functions of the POS terminals 101 and 102 according to information processing programs such as an operating system and application programs.

メインメモリ2は、上記コンピュータの主記憶部分に相当する。メインメモリ2は、不揮発性のメモリ領域と揮発性のメモリ領域とを含む。メインメモリ2は、不揮発性のメモリ領域では上記の情報処理プログラムを記憶する。またメインメモリ2は、プロセッサ1が各部を制御するための処理を実行する上で必要なデータを不揮発性又は揮発性のメモリ領域で記憶する場合もある。メインメモリ2は、揮発性のメモリ領域を、プロセッサ1によってデータが適宜書き換えられるワークエリアとして使用する。揮発性のメモリ領域には、買上商品リストを記憶する領域、いわゆる登録処理領域が含まれる。 The main memory 2 corresponds to the main memory portion of the computer. Main memory 2 includes a nonvolatile memory area and a volatile memory area. The main memory 2 stores the above information processing program in a nonvolatile memory area. Further, the main memory 2 may store data necessary for the processor 1 to execute processing for controlling each unit in a non-volatile or volatile memory area. The main memory 2 uses a volatile memory area as a work area in which data is rewritten by the processor 1 as appropriate. The volatile memory area includes an area for storing a list of purchased products, a so-called registration processing area.

補助記憶ユニット3は、上記コンピュータの補助記憶部分に相当する。補助記憶ユニット3としては、例えばEEPROM(electric erasable programmable read-only memory)、HDD(hard disc drive)、あるいはSSD(solid state drive)等の周知の記憶デバイスを用いた記憶ユニットを利用できる。補助記憶ユニット3は、プロセッサ1が各種の処理を行う上で使用するデータや、プロセッサ1での処理によって生成されたデータを保存する。補助記憶ユニット3は、上記の情報処理プログラムの一部を記憶する。 The auxiliary storage unit 3 corresponds to the auxiliary storage portion of the computer. As the auxiliary storage unit 3, a storage unit using a well-known storage device such as an EEPROM (electric erasable programmable read-only memory), an HDD (hard disc drive), or an SSD (solid state drive) can be used. The auxiliary storage unit 3 stores data used by the processor 1 to perform various processes and data generated by processing by the processor 1. The auxiliary storage unit 3 stores a part of the above information processing program.

POS端末101の補助記憶ユニット3に記憶される情報処理プログラムには、販売処理プログラムP1及びエージェントプログラムP2を含む。
販売処理プログラムP1は、アプリケーションプログラムである。販売処理プログラムP1は、商品の販売に係わる情報処理(以下、販売処理と称する)について記述している。
エージェントプログラムP2は、アプリケーションプログラムである。エージェントプログラムP2は、販売処理プログラムP1に基づく販売処理により生成される交換用データに基づいて電子レシートデータを生成し、レシートサーバ103に送信するための処理について記述している。
The information processing programs stored in the auxiliary storage unit 3 of the POS terminal 101 include a sales processing program P1 and an agent program P2.
The sales processing program P1 is an application program. The sales processing program P1 describes information processing related to product sales (hereinafter referred to as sales processing).
Agent program P2 is an application program. The agent program P2 describes a process for generating electronic receipt data based on exchange data generated by sales processing based on the sales processing program P1 and transmitting it to the receipt server 103.

POS端末102の補助記憶ユニット3に記憶されるプログラムには、販売処理プログラムP3及びエージェントプログラムP2を含む。
つまりPOS端末102において補助記憶ユニット3には、POS端末101と同一のエージェントプログラムP2を記憶するが、販売処理プログラムP1は記憶せず、代わりに販売処理プログラムP3を記憶する。
販売処理プログラムP3は、アプリケーションプログラムである。販売処理プログラムP3は、販売処理について記述している。
The programs stored in the auxiliary storage unit 3 of the POS terminal 102 include a sales processing program P3 and an agent program P2.
That is, the auxiliary storage unit 3 of the POS terminal 102 stores the same agent program P2 as the POS terminal 101, but does not store the sales processing program P1, but stores the sales processing program P3 instead.
The sales processing program P3 is an application program. The sales processing program P3 describes sales processing.

販売処理プログラムP1は、A社での店舗運営及び販売管理に適応するように任意の作成者により作成される。販売処理プログラムP3は、B社での店舗運営及び販売管理に適応するように任意の作成者により作成される。ただし、販売処理プログラムP1及び販売処理プログラムP3は、情報処理プログラムの本体は同一であり、当該情報処理プログラムに基づく各種処理のための設定が異なるのであってもよい。エージェントプログラムP2は、例えばレシートサーバ103を用いて電子レシートサービスを提供するサービス提供者の管理の下に任意の作成者により作成される。 The sales processing program P1 is created by an arbitrary creator so as to be suitable for store operation and sales management at Company A. The sales processing program P3 is created by an arbitrary creator so as to be suitable for store operation and sales management at Company B. However, the sales processing program P1 and the sales processing program P3 may have the same main body of the information processing program, but may have different settings for various processes based on the information processing program. The agent program P2 is created by an arbitrary creator under the management of a service provider who provides an electronic receipt service using the receipt server 103, for example.

POS端末101,102の譲渡は一般的に、販売処理プログラムP1,P3が補助記憶ユニット3に記憶された状態にて行われる。なお、このケースでは、販売処理プログラムP1,P3がメインメモリ2に記憶されてもよい。しかし、販売処理プログラムP1,P3がメインメモリ2又は補助記憶ユニット3に記憶されない状態で、POS端末101,102が譲渡される場合もある。この場合には、販売処理プログラムP1,P3は、磁気ディスク、光磁気ディスク、光ディスク、半導体メモリなどのようなリムーバブルな記録媒体に記録して譲渡される。あるいはネットワークを介して販売処理プログラムP1,P3が譲渡される。そして、この販売処理プログラムP1,P3が、上記の別途に譲渡されたPOS端末101,102のメインメモリ2又は補助記憶ユニット3に書き込まれてもよい。 Generally, the POS terminals 101 and 102 are transferred with the sales processing programs P1 and P3 stored in the auxiliary storage unit 3. Note that in this case, the sales processing programs P1 and P3 may be stored in the main memory 2. However, the POS terminals 101 and 102 may be transferred without the sales processing programs P1 and P3 being stored in the main memory 2 or the auxiliary storage unit 3. In this case, the sales processing programs P1 and P3 are recorded on a removable recording medium such as a magnetic disk, magneto-optical disk, optical disk, semiconductor memory, etc. and transferred. Alternatively, the sales processing programs P1 and P3 are transferred via the network. The sales processing programs P1 and P3 may be written into the main memory 2 or auxiliary storage unit 3 of the separately transferred POS terminals 101 and 102, respectively.

エージェントプログラムP2は、典型的には、POS端末101,102の譲渡時には、補助記憶ユニット3に記憶されない。エージェントプログラムP2は、例えば通信ネットワーク200を介して、レシートサーバ103又は別のサーバからPOS端末101,102にダウンロードされて補助記憶ユニット3に書き込まれる。ただし、エージェントプログラムP2は、磁気ディスク、光磁気ディスク、光ディスク、半導体メモリなどのようなリムーバブルな記録媒体に記録して譲渡されてもよい。あるいは、POS端末101,102の譲渡は、エージェントプログラムP2が補助記憶ユニット3に記憶された状態にて行われてもよい。このケースでは、エージェントプログラムP2がメインメモリ2に記憶されてもよい。 The agent program P2 is typically not stored in the auxiliary storage unit 3 when the POS terminals 101, 102 are transferred. The agent program P2 is downloaded from the receipt server 103 or another server to the POS terminals 101, 102 via the communication network 200, for example, and written into the auxiliary storage unit 3. However, the agent program P2 may be recorded on a removable recording medium such as a magnetic disk, magneto-optical disk, optical disk, semiconductor memory, etc. and transferred. Alternatively, the POS terminals 101 and 102 may be transferred while the agent program P2 is stored in the auxiliary storage unit 3. In this case, the agent program P2 may be stored in the main memory 2.

時計部4は、計時動作を常時行い、現在の日付及び時刻を表した日時情報を出力する。
入力デバイス5は、操作者による操作を受けて、その操作に応じた入力情報を出力する。入力デバイス5としては、例えばキーボード、マウス、あるいはタッチパネルなどが利用できる。
表示デバイス6は、操作者に対して提示すべき各種の情報を表した画像を表示する。表示デバイス6としては、例えばLCD(liquid crystal display)又はタッチパネルなどが利用できる。
The clock unit 4 constantly performs timekeeping operations and outputs date and time information representing the current date and time.
The input device 5 receives an operation by an operator and outputs input information according to the operation. As the input device 5, for example, a keyboard, a mouse, or a touch panel can be used.
The display device 6 displays images representing various types of information to be presented to the operator. As the display device 6, for example, an LCD (liquid crystal display) or a touch panel can be used.

バーコードリーダ7は、スマートレシートサービスの会員を識別するための会員コードを表したバーコードを読み取る。当該バーコードは、典型的には会員が所持する情報端末が搭載する表示器に表示される。バーコードリーダ7は、商品に表示され、商品を識別する商品コードを表したバーコードを読み取るためのデバイスと共用であってもよいし、そのためのデバイスがバーコードリーダ7とは別に備えられてもよい。 The barcode reader 7 reads a barcode representing a membership code for identifying a member of the smart receipt service. The barcode is typically displayed on a display mounted on an information terminal owned by the member. The barcode reader 7 may be used in common with a device for reading a barcode that is displayed on a product and represents a product code for identifying the product, or a device for that purpose may be provided separately from the barcode reader 7. Good too.

プリンタ8は、レシート用紙に対して各種の文字列及び画像などを印刷する。そしてプリンタ8は、印刷済みのレシート用紙をPOS端末101,102の外部へと排出することにより、紙レシートを発行する。プリンタ8としては、例えばサーマルプリンタ又はドットインパクトプリンタなどを利用できる。 The printer 8 prints various character strings, images, etc. on receipt paper. Then, the printer 8 issues a paper receipt by ejecting the printed receipt paper to the outside of the POS terminals 101 and 102. As the printer 8, for example, a thermal printer or a dot impact printer can be used.

通信インタフェース9は、通信ネットワーク200を介したデータ通信を行う。つまり通信インタフェース9は、通信デバイスの一例である。
伝送路10は、アドレスバス、データバス、制御信号線等を含み、接続された各部の間で授受されるデータ及び制御信号を伝送する。
Communication interface 9 performs data communication via communication network 200 . In other words, the communication interface 9 is an example of a communication device.
The transmission line 10 includes an address bus, a data bus, a control signal line, etc., and transmits data and control signals exchanged between connected parts.

なお、図1では、POS端末101,102のみを示しているが、電子レシートシステムには、典型的にはPOS端末101,102とは別の複数のPOS端末が含まれる。これらのPOS端末は、A社又はB社が利用者であってもよいし、A社及びB社とは別の小売業者が利用者であってもよい。A社により利用されるPOS端末はいずれも、補助記憶ユニット3に販売処理プログラムP1が記憶される。B社により利用されるPOS端末はいずれも、補助記憶ユニット3に販売処理プログラムP3が記憶される。A社及びB社とは別の小売業者により利用されるPOS端末は、利用者となる小売業者での店舗運営及び販売管理に適応するように任意の作成者により作成された販売処理プログラムが補助記憶ユニット3に記憶される。エージェントプログラムP2は、利用者に拘わらずに各POS端末の補助記憶ユニット3に記憶される。 Although only the POS terminals 101 and 102 are shown in FIG. 1, the electronic receipt system typically includes a plurality of POS terminals other than the POS terminals 101 and 102. The user of these POS terminals may be Company A or Company B, or a retailer other than Company A and Company B may be the user. A sales processing program P1 is stored in the auxiliary storage unit 3 of each POS terminal used by Company A. A sales processing program P3 is stored in the auxiliary storage unit 3 of each POS terminal used by Company B. The POS terminal used by a retailer other than Company A and Company B is assisted by a sales processing program created by an arbitrary creator to adapt to the store operation and sales management of the user retailer. It is stored in the storage unit 3. The agent program P2 is stored in the auxiliary storage unit 3 of each POS terminal regardless of the user.

次に以上のように構成されたPOS端末101の動作について説明する。なお、以下に説明する処理の内容は一例であって、一部の処理の順序の変更、一部の処理の省略、あるいは別の処理の追加などは適宜に可能である。 Next, the operation of the POS terminal 101 configured as above will be explained. Note that the contents of the processes described below are merely examples, and the order of some processes may be changed, some processes may be omitted, or other processes may be added as appropriate.

POS端末101の利用を開始するのに先立って、条件データベースD1及び利用者コードD2を補助記憶ユニット3に記憶させておく。条件データベースD1は例えば、エージェントプログラムP2に付帯して配布され、エージェントプログラムP2を補助記憶ユニット3に記憶させるためのインストール処理において補助記憶ユニット3に記憶される。あるいは条件データベースD1は、POS端末101の設置作業又はメンテナンス作業において、その作業者の指示の下に補助記憶ユニット3に記憶される。利用者コードD2としては、POS端末101を用いて電子レシートサービスを利用する小売業者を、電子レシートサービスの他の利用者と識別するための利用者コードが、POS端末101の設置作業等において書き込まれる。なお利用者コードは例えば、電子レシートサービスの利用契約の際に、サービス提供者の管理の下に小売業者に付与される。 Before starting to use the POS terminal 101, the condition database D1 and the user code D2 are stored in the auxiliary storage unit 3. For example, the condition database D1 is distributed along with the agent program P2, and is stored in the auxiliary storage unit 3 during an installation process for storing the agent program P2 in the auxiliary storage unit 3. Alternatively, the condition database D1 is stored in the auxiliary storage unit 3 under the instructions of an operator during installation or maintenance work of the POS terminal 101. The user code D2 is a user code that is written during the installation work of the POS terminal 101 to distinguish a retailer who uses the electronic receipt service using the POS terminal 101 from other users of the electronic receipt service. It will be done. Note that the user code is given to a retailer under the control of a service provider, for example, when signing a contract for use of an electronic receipt service.

条件データベースD1は、エージェントプログラムP2が電子レシートデータを生成するための条件を表したデータレコードの集合である。当該データレコードは、POS端末101,102、あるいはその他のPOS端末を利用する小売業者に関連付けられる。そしてデータレコードは、関連付けられた小売業者に関する条件を表す。つまり条件データベースD1は、電子レシートシステムに含まれ得るPOS端末の利用者となる小売業者のそれぞれに関連付けられ、かつ各小売業者に適応させたデータレコードを含むものとして、例えば電子レシートサービスを提供するサービス提供者の管理の下に作成される。 The condition database D1 is a collection of data records representing conditions for the agent program P2 to generate electronic receipt data. The data record is associated with a retailer utilizing a POS terminal 101, 102, or other POS terminal. The data record then represents conditions regarding the associated retailer. In other words, the condition database D1 is associated with each retailer who is a user of a POS terminal that may be included in the electronic receipt system, and includes data records adapted to each retailer, for example, for providing an electronic receipt service. Created under the control of the service provider.

図2は条件データベースD1に含まれるデータレコードDR1の構成を模式的に示す図である。
データレコードDR1は、フィールドF11,F12,F13,F14,F15を含む。フィールドF11には、関連付けられた小売業者の利用者コードがセットされる。フィールドF12には、関連付けられた小売業者が、紙レシートにおいて軽減税率が適用された商品であることを表すために使用するマーク(以下、税マークと称する)のコードがセットされる。フィールドF13には、関連付けられた小売業者が発行する紙レシートにおいて税マークが配置される位置を表す位置データがセットされる。フィールドF14には、電子レシート画像にて基本的に用いる表示色(以下、基準カラーと称する)のカラーコードが基準カラーコードとしてセットされる。フィールドF15には、軽減税率が適用された商品を電子レシート画像にて表すために用いる表示色(以下、特別カラーと称する)のカラーコードが特別カラーコードとしてセットされる。
FIG. 2 is a diagram schematically showing the structure of the data record DR1 included in the condition database D1.
Data record DR1 includes fields F11, F12, F13, F14, and F15. The user code of the associated retailer is set in field F11. The code of the mark (hereinafter referred to as tax mark) used by the associated retailer to indicate that the product is subject to a reduced tax rate on the paper receipt is set in the field F12. Field F13 is set with position data representing the position where the tax mark is placed on the paper receipt issued by the associated retailer. In the field F14, a color code of a display color (hereinafter referred to as a reference color) basically used in an electronic receipt image is set as a reference color code. In the field F15, a color code of a display color (hereinafter referred to as a special color) used to represent a product to which the reduced tax rate is applied in an electronic receipt image is set as a special color code.

POS端末102及びその他のPOS端末の補助記憶ユニット3についても、条件データベースD1及び利用者コードが同様に書き込まれる。ただし、POS端末102の補助記憶ユニット3には、B社に付与された利用者コードD3が書き込まれる。その他のPOS端末の補助記憶ユニット3に書き込まれる利用者コードは、利用者コードD2又は利用者コードD3の場合もあるし、別の利用者コードである場合もある。
かくして、条件データベースD1を記憶することで、補助記憶ユニット3は記憶手段として機能する。
The condition database D1 and user code are similarly written to the auxiliary storage unit 3 of the POS terminal 102 and other POS terminals. However, the user code D3 assigned to Company B is written in the auxiliary storage unit 3 of the POS terminal 102. The user code written in the auxiliary storage unit 3 of the other POS terminals may be the user code D2 or the user code D3, or may be another user code.
Thus, by storing the condition database D1, the auxiliary storage unit 3 functions as a storage means.

POS端末101が取引データ処理を行うべき動作モードで起動されると、プロセッサ1は、販売処理プログラムP1に従って販売処理を開始する。
図3はPOS端末101のプロセッサ1による販売処理のフローチャートである。
When the POS terminal 101 is activated in an operating mode in which transaction data processing is to be performed, the processor 1 starts sales processing according to the sales processing program P1.
FIG. 3 is a flowchart of sales processing by the processor 1 of the POS terminal 101.

ACT1としてプロセッサ1は、操作者による登録操作が開始されたか否かを確認する。そしてプロセッサ1は、該当する操作を確認できないならばNOと判定し、ACT2へと進む。
ACT2としてプロセッサ1は、会員コードがスキャンされたか否かを確認する。そしてプロセッサ1は、会員コードのスキャンが確認できないならばNOと判定し、ACT1へと戻る。
かくしてプロセッサ1はACT1及びACT2としては、登録が開始されるか、又は会員コードがスキャンされるのを待ち受ける。
In ACT1, the processor 1 checks whether the registration operation by the operator has been started. If the processor 1 cannot confirm the corresponding operation, the processor 1 determines NO and proceeds to ACT2.
In ACT2, the processor 1 checks whether the membership code has been scanned. Then, if the scanning of the membership code cannot be confirmed, the processor 1 determines NO and returns to ACT1.
Processor 1 thus waits for registration to be initiated or membership code to be scanned as ACT1 and ACT2.

操作者は、電子レシートサービスの適用を希望する取引に関する登録操作を行う前に、会員コードを表したバーコードをバーコードリーダ7に翳す。そうするとバーコードリーダ7は、バーコードをスキャンし、当該バーコードから会員コードを抽出する。これに応じてプロセッサ1はACT2にてYESと判定し、ACT3へと進む。 The operator holds a barcode representing a membership code over the barcode reader 7 before performing a registration operation for a transaction for which the electronic receipt service is desired. Then, the barcode reader 7 scans the barcode and extracts the membership code from the barcode. In response to this, the processor 1 determines YES in ACT2 and proceeds to ACT3.

ACT3としてプロセッサ1は、バーコードリーダ7により抽出された会員コードを、メインメモリ2又は補助記憶ユニット3に記憶させる。そしてこののちにプロセッサ1は、ACT1及びACT2の待ち受け状態に戻る。なお、プロセッサ1は、会員コードが再度スキャンされたことに応じてACT3へと再度進んだ場合には、メインメモリ2又は補助記憶ユニット3に記憶された会員コードを、新たに抽出された会員コードで上書きする。
このように本実施形態では、商品登録の開始前に会員コードを取得し、商品登録の開始後には会員コードを取得しない。しかしながらプロセッサ1は、商品登録を行っている最中にも、会員コードを取得してもよい。
In ACT3, the processor 1 stores the membership code extracted by the barcode reader 7 in the main memory 2 or the auxiliary storage unit 3. After this, the processor 1 returns to the standby state for ACT1 and ACT2. Note that when the processor 1 proceeds to ACT3 again in response to the membership code being scanned again, the processor 1 replaces the membership code stored in the main memory 2 or the auxiliary storage unit 3 with the newly extracted membership code. overwrite with .
As described above, in this embodiment, the member code is acquired before the start of product registration, and the member code is not acquired after the start of product registration. However, the processor 1 may acquire the membership code even during product registration.

操作者は、登録を開始するならば、取引の対象となる買上商品に関する登録操作を行う。そしてプロセッサ1は、ACT1及びACT2の待ち受け状態にあるときに登録操作が行われたならば、ACT1にてYESと判定し、ACT4へと進む。
ACT4としてプロセッサ1は、登録処理及び会計処理を行う。登録処理は、買物客が買い上げる商品を買上商品リストに登録する処理である。登録処理としては、既製のPOS端末で実施されているのと同様な処理を用いることができる。会計処理は、勘定処理及び決済処理を含む。勘定処理は、買上商品リストに登録された商品の代金を計算する処理である。決済処理は、勘定処理により計算された代金を決済する処理である。会計処理としては、既製のPOS端末で実施されているのと同様な処理を用いることができる。
When starting registration, the operator performs a registration operation regarding the purchased product to be traded. If the registration operation is performed while in the standby state of ACT1 and ACT2, the processor 1 determines YES in ACT1 and proceeds to ACT4.
As ACT4, the processor 1 performs registration processing and accounting processing. The registration process is a process for registering the products purchased by the shopper in the purchased product list. As the registration process, a process similar to that performed in an off-the-shelf POS terminal can be used. Accounting processing includes accounting processing and payment processing. The accounting process is a process of calculating the price of the products registered in the purchased product list. The payment process is a process of paying the price calculated by the account process. As the accounting process, a process similar to that performed in an off-the-shelf POS terminal can be used.

ACT5としてプロセッサ1は、トランザクションデータを生成する。トランザクションデータは、図示しないPOSサーバで収集するデータを含む。トランザクションデータに、具体的にどのようなデータを含むかは任意であり、例えば販売処理プログラムP1の設計者、あるいはPOS端末101の管理者などによって定められてよい。なおプロセッサ1は、ここで生成したトランザクションデータを即座にPOSサーバ等に送信してもよいし、補助記憶ユニット3に蓄積したトランザクションデータをその後の任意のタイミングでPOSサーバ等に送信してもよい。 As ACT5, the processor 1 generates transaction data. The transaction data includes data collected by a POS server (not shown). What specific data is included in the transaction data is arbitrary and may be determined by, for example, the designer of the sales processing program P1 or the administrator of the POS terminal 101. Note that the processor 1 may immediately send the transaction data generated here to the POS server, etc., or may send the transaction data accumulated in the auxiliary storage unit 3 to the POS server, etc. at any subsequent timing. .

ACT6としてプロセッサ1は、ジャーナルデータを生成する。ジャーナルデータは、POS端末101で処理した取引に関する履歴を確認するためのデータである。ジャーナルデータに、具体的にどのようなデータを含むかは任意であり、例えば販売処理プログラムP1の設計者、あるいはPOS端末101の管理者などによって定められてよい。ジャーナルデータは、ジャーナル用紙にプリントされて記録されてもよいし、電子データのままで保管されてもよい。電子データのままのジャーナルデータは、典型的には補助記憶ユニット3で記憶される。しかしながら当該ジャーナルデータは、POSサーバで記憶されるか、あるいは可搬型の記憶媒体に記録されてもよい。 In ACT6, the processor 1 generates journal data. Journal data is data for checking the history of transactions processed by the POS terminal 101. What specific data is included in the journal data is arbitrary and may be determined by, for example, the designer of the sales processing program P1 or the administrator of the POS terminal 101. Journal data may be printed and recorded on journal paper, or may be stored as electronic data. Journal data as electronic data is typically stored in the auxiliary storage unit 3. However, the journal data may be stored on a POS server or recorded on a portable storage medium.

ACT7としてプロセッサ1は、買物客が電子レシートサービスの会員であるか否かを確認する。そしてプロセッサ1は、メインメモリ2又は補助記憶ユニット3にACT3にて会員コードが記憶されていないならばNOと判定し、ACT8へと進む。
ACT8としてプロセッサ1は、買上商品のリスト及び会計処理の結果に基づき、取引内容を表す文字列をレシート用紙に印字するための印字データを生成する。
ACT9としてプロセッサ1は、上記の印字データをプリンタ8に送り、この印字データに応じた印字をプリンタ8に行わせることにより紙レシートを発行する。そしてプロセッサ1はこののち、図3に示す販売処理を終了する。
As ACT7, the processor 1 checks whether the shopper is a member of the electronic receipt service. Then, if the membership code is not stored in the main memory 2 or the auxiliary storage unit 3 in ACT3, the processor 1 determines NO and proceeds to ACT8.
In ACT8, the processor 1 generates print data for printing a character string representing the transaction details on the receipt paper based on the list of purchased products and the results of the accounting process.
In ACT9, the processor 1 sends the above print data to the printer 8, and issues a paper receipt by causing the printer 8 to print according to the print data. The processor 1 then ends the sales process shown in FIG.

図4はPOS端末101で発行される紙レシートRE1の一例を示す図である。
紙レシートRE1は、各種の文字列によって取引の内容に関する各種の情報を表している。
紙レシートRE1中のエリアAR1は、取引が行われた日時及びPOS端末101を識別するためのレジ番号と、POS端末101の操作者の従業員番号及び氏名を表す。なお、図4のエリアA1 中の「YYYY」「MM」「DD」「DW」「TI」「MI」「RRRR」「NNNNNNNN」及び「○○○○」には、実際には年、月、日、曜日、時、分、レジ番号、従業員番号及び氏名を表すように文字がセットされる。
FIG. 4 is a diagram showing an example of a paper receipt RE1 issued by the POS terminal 101.
The paper receipt RE1 represents various information regarding the details of the transaction using various character strings.
Area AR1 in paper receipt RE1 represents the date and time of the transaction, the cash register number for identifying POS terminal 101, and the employee number and name of the operator of POS terminal 101. Note that "YYYY", "MM", "DD", "DW", "TI", "MI", "RRRR", "NNNNNNNNNN", and "○○○○" in area A1 of Figure 4 actually indicate the year, month, Characters are set to represent the day, day of the week, hour, minute, cash register number, employee number, and name.

紙レシートRE1中のエリアAR2は、取引の対象となった買上商品に関する情報(以下、商品情報と称する)を表す。エリアAR2内では、上から2行ずつが一組をなす。そして当該1組の2行に表された文字列が、1つの商品コードで識別される商品に関しての商品情報を表している。
例えば最初の2行は、「AAAAAAA」なる商品名で、単価が100円である商品が2個、計200円で取引されたことを表す。1行目の先頭に付された「ケ」は、軽減税率が適用されたことを表す税マークである。税マークは、適用された税率を識別するための識別情報の一例である。
このようにエリアAR2は、取引対象の買上商品のリストを表す。
Area AR2 in paper receipt RE1 represents information regarding the purchased product that is the subject of the transaction (hereinafter referred to as product information). In area AR2, two rows from the top form one set. The character strings represented in one set of two lines represent product information regarding a product identified by one product code.
For example, the first two lines indicate that two products with the product name "AAAAAAA" and a unit price of 100 yen were traded for a total of 200 yen. The "ke" placed at the beginning of the first line is a tax mark indicating that the reduced tax rate has been applied. A tax mark is an example of identification information for identifying the applied tax rate.
In this way, area AR2 represents a list of purchased products to be traded.

紙レシートRE1中のエリアAR3は、税込合計額、消費税の総額、消費税のうちの標準税率を適用した額、消費税のうちの軽減税率を適用した額、レシートNo.及び店舗No.を表している。なお、図4中のエリアAR3中の「NNNN」及び「SSSS」には、実際には4桁の10進数の数値がセットされる。 Area AR3 in the paper receipt RE1 includes the total amount including tax, the total amount of consumption tax, the amount of consumption tax to which the standard tax rate is applied, the amount to which the reduced tax rate of consumption tax is applied, and the receipt number. and store no. represents. Note that "NNNN" and "SSSS" in area AR3 in FIG. 4 are actually set to four-digit decimal numbers.

一方、プロセッサ1は、メインメモリ2又は補助記憶ユニット3にACT3にて会員コードが記憶されているならばACT7にてYESと判定し、ACT10へと進む。
ACT10としてプロセッサ1は、交換用データを生成する。交換用データは、今回の取引に関して電子レシートに表すべき情報を、予め定められたフォーマットで含んだデータである。プロセッサ1は例えば、紙レシートの印字データ、ジャーナルデータ及びトランザクションデータなどの取引に関するデータから予め定められた情報を抽出し、当該情報を予め定められたフォーマットで配置することで交換用データを生成する。交換用データに含まれる情報は、主に紙レシートに表す文字列を表した文字列データである。またプロセッサ1は、メインメモリ2又は補助記憶ユニット3にACT3にて記憶された会員コードを交換用データに含める。
On the other hand, if the membership code is stored in the main memory 2 or the auxiliary storage unit 3 in ACT3, the processor 1 determines YES in ACT7, and proceeds to ACT10.
As ACT10, the processor 1 generates exchange data. The exchange data is data that includes information to be represented on the electronic receipt regarding the current transaction in a predetermined format. For example, the processor 1 extracts predetermined information from transaction data such as paper receipt print data, journal data, and transaction data, and generates exchange data by arranging the information in a predetermined format. . The information included in the exchange data is mainly character string data representing the character string represented on the paper receipt. Furthermore, the processor 1 includes the membership code stored in the main memory 2 or the auxiliary storage unit 3 in ACT3 in the exchange data.

図5は交換用データに含まれ、紙レシートRE1のエリアAR2に表される文字列を表した情報を示す図である。
図5中の1行目が、エリアAR2の最初の2行に対応している。つまり{}の中に示される情報が、1つの商品コードで識別される商品に関しての商品情報である。そしてこの1つの商品に関する商品情報は、複数の文字列のそれぞれを””で囲んで表し、かつ文字列どうしを:で区切っている。
なおプロセッサ1は、生成した交換用データを、予め定められたファイル名で補助記憶ユニット3に保存する。
FIG. 5 is a diagram showing information representing a character string included in the exchange data and represented in area AR2 of paper receipt RE1.
The first line in FIG. 5 corresponds to the first two lines of area AR2. In other words, the information shown in {} is product information regarding a product identified by one product code. Product information regarding this one product is expressed by surrounding each of a plurality of character strings with "" and separating the character strings with :.
Note that the processor 1 saves the generated exchange data in the auxiliary storage unit 3 with a predetermined file name.

ACT11としてプロセッサ1は、電子レシートエージェント処理を起動させる。そしてプロセッサ1は、図3に示す販売処理を終了する。ただしプロセッサ1は、ここで起動させた電子レシートエージェント処理が終了するのを待って、販売処理を終了してもよい。 In ACT11, the processor 1 activates electronic receipt agent processing. The processor 1 then ends the sales process shown in FIG. However, the processor 1 may wait until the electronic receipt agent processing activated here is completed and then end the sales processing.

POS端末102においてもプロセッサ1は、以上に説明した販売処理と大筋の流れとしては同様にして販売処理を実行する。ただしPOS端末102において発行される紙レシートは、図4に示す紙レシートRE1とは異なるものとされる。 Also in the POS terminal 102, the processor 1 executes the sales process in the same general flow as the sales process described above. However, the paper receipt issued at the POS terminal 102 is different from the paper receipt RE1 shown in FIG.

図6はPOS端末102にて発行される紙レシートRE2の一例である。なお図6は、紙レシートRE1に示される取引と同内容の取引に対して発行される紙レシートRE2のうちの商品リストを表したエリアのみを示している。
紙レシートRE2では、例えば最初の2行が、「AAAAAAA」なる商品名で、単価が100円である商品が2個、計200円で取引されたことを表すことは同様であるが、各情報の表記形式が一部異なっている。
FIG. 6 is an example of a paper receipt RE2 issued by the POS terminal 102. Note that FIG. 6 shows only the area representing the product list of the paper receipt RE2 issued for a transaction with the same content as the transaction shown in the paper receipt RE1.
In the paper receipt RE2, for example, the first two lines indicate that two products with the product name "AAAAAAAAA" and a unit price of 100 yen were traded for a total of 200 yen, but each information The notation format is partially different.

図7は交換用データに含まれ、紙レシートRE2の図6に示すエリアに表される文字列を表した情報を示す図である。
交換用データは、POS端末101で生成される場合と、POS端末102で生成される場合とで、示される情報の内容は互いに異なるが、フォームは共通である。
FIG. 7 is a diagram showing information representing a character string included in the exchange data and represented in the area shown in FIG. 6 of the paper receipt RE2.
Although the content of the information shown in the exchange data differs depending on whether it is generated by the POS terminal 101 or the POS terminal 102, the form is the same.

プロセッサ1は、電子レシートエージェントが起動されると、図3に示す販売処理とは別スレッドで、エージェントプログラムP2に基づく電子レシートエージェント処理を実行する。
図8は電子レシートエージェント処理におけるプロセッサ1の処理手順を示すフローチャートである。この電子レシートエージェント処理をプロセッサ1が実行することで電子レシートエージェントが実現される。
When the electronic receipt agent is activated, the processor 1 executes electronic receipt agent processing based on the agent program P2 in a thread separate from the sales processing shown in FIG.
FIG. 8 is a flowchart showing the processing procedure of the processor 1 in electronic receipt agent processing. An electronic receipt agent is realized by the processor 1 executing this electronic receipt agent processing.

ACT21としてプロセッサ1は、上述のように販売処理により生成されて補助記憶ユニット3に保存された交換用データを、メインメモリ2の電子レシートエージェント処理用のワークエリアに読み込む。なお、以降の処理においてプロセッサ1は、ここで読み込んだ交換用データを処理の対象とする。そこで以降において単に「交換用データ」と記す場合には、ここでメインメモリ2に読み込んだ交換用データを指すこととする。このようにプロセッサ1は、交換用データを取得する。かくしてエージェントプログラムP2に基づく情報処理をプロセッサ1が実行することによって、プロセッサ1を中枢部分とするコンピュータは取得手段として機能する。 As ACT 21, the processor 1 reads the exchange data generated by the sales process and stored in the auxiliary storage unit 3 as described above into the work area of the main memory 2 for electronic receipt agent processing. Note that in the subsequent processing, the processor 1 processes the exchange data read here. Therefore, when the term "exchange data" is simply used hereinafter, it refers to the exchange data read into the main memory 2. In this way, the processor 1 obtains the exchange data. Thus, by the processor 1 executing information processing based on the agent program P2, the computer having the processor 1 as a central part functions as an acquisition means.

ACT22としてプロセッサ1は、条件データベースD1に含まれるデータレコードDR1のうちの利用者に関連付けられたデータレコードDR1を、メインメモリ2の電子レシートエージェント処理用のワークエリアに読み込む。プロセッサ1は例えば、条件データベースD1に含まれるデータレコードDR1のうちから、フィールドF11にセットされている利用者コードが補助記憶ユニット3に記憶されている利用者コードと一致するデータレコードDR1を見つけ出す。つまり、POS端末101においてプロセッサ1は、A社の利用者コードD2がフィールドF11にセットされているデータレコードDR1を見つけ出す。またPOS端末102においてプロセッサ1は、B社の利用者コードD3がフィールドF11にセットされているデータレコードDR1を見つけ出す。そしてプロセッサ1は、該当するデータレコードDR1を見つけ出せたならば、それをメインメモリ2の電子レシートエージェント処理用のワークエリアに読み込む。なお、以降の処理においてプロセッサ1は、ここで読み込んだデータレコードDR2を参照する。そこで以降において単に「データレコードDR1」と記す場合には、ここでメインメモリ2に読み込んだデータレコードDR1を指すこととする。 In ACT 22, the processor 1 reads the data record DR1 associated with the user among the data records DR1 included in the condition database D1 into the work area of the main memory 2 for electronic receipt agent processing. For example, the processor 1 finds a data record DR1 whose user code set in the field F11 matches the user code stored in the auxiliary storage unit 3 from among the data records DR1 included in the condition database D1. That is, in the POS terminal 101, the processor 1 finds the data record DR1 in which the user code D2 of company A is set in the field F11. Furthermore, in the POS terminal 102, the processor 1 finds a data record DR1 in which the user code D3 of company B is set in the field F11. When the processor 1 finds the corresponding data record DR1, it reads it into the work area of the main memory 2 for electronic receipt agent processing. Note that in the subsequent processing, the processor 1 refers to the data record DR2 read here. Therefore, hereinafter, when simply writing "data record DR1", it refers to the data record DR1 read into the main memory 2.

図9はPOS端末101のプロセッサ1がACT22にて読み込むデータレコードDR1の一例を示す図である。
図9は、POS端末101の利用者であるA社の利用者コードが「0001」である場合の例である。POS端末101が発行する紙レシートRE1においては、「ケ」が税マークであり、1つの商品に関する商品情報に含まれる文字列のうちの1番目に配置されている。このためフィールドF12には「ケ」の文字コードである「8350」がセットされ、フィールドF13には「1」がセットされている。またPOS端末101で販売処理した取引に関する電子レシートにおいては、基準カラーとして「黒」が、また特別カラーとして「青」が、それぞれ設定されている例であり、フィールドF14,F15には各色の色コードである「#000000」及び「#0000ff」がそれぞれセットされている。
FIG. 9 is a diagram showing an example of the data record DR1 read by the processor 1 of the POS terminal 101 in ACT22.
FIG. 9 is an example where the user code of company A, which is the user of the POS terminal 101, is "0001". In the paper receipt RE1 issued by the POS terminal 101, "ke" is a tax mark, and is placed first among the character strings included in the product information regarding one product. Therefore, "8350", which is the character code for "ke", is set in field F12, and "1" is set in field F13. In addition, in an electronic receipt related to a transaction processed at the POS terminal 101, "black" is set as the standard color and "blue" is set as the special color, and fields F14 and F15 are filled with each color. The codes "#000000" and "#0000ff" are respectively set.

図10はPOS端末102のプロセッサ1がACT22にて読み込むデータレコードDR1の一例を示す図である。POS端末102が発行する紙レシートRE2においては、「軽」が税マークであり、1つの商品に関する商品情報に含まれる文字列のうちの4番目に配置されている。このためフィールドF12には「軽」の文字コードである「8C79」がセットされ、フィールドF13には「4」がセットされている。またPOS端末102で販売処理した取引に関する電子レシートにおいては、基準カラーとして「黒」が、また特別カラーとして「緑」が、それぞれ設定されている例であり、フィールドF14,F15には各色の色コードである「#000000」及び「#008000」がそれぞれセットされている。 FIG. 10 is a diagram showing an example of the data record DR1 read by the processor 1 of the POS terminal 102 in ACT22. In the paper receipt RE2 issued by the POS terminal 102, "light" is the tax mark, and is placed fourth in the character string included in the product information regarding one product. Therefore, "8C79", which is the character code for "light", is set in field F12, and "4" is set in field F13. In addition, in an electronic receipt related to a transaction processed at the POS terminal 102, "black" is set as the standard color and "green" is set as the special color, and fields F14 and F15 are filled with each color. Codes "#000000" and "#008000" are respectively set.

ACT23としてプロセッサ1は、交換用データ及びデータレコードDR1に基づいて、電子レシート画像のうちの商品リストよりも前の部分についての画像を表すデータとして画像データを生成する。なおプロセッサ1は、ここで生成する画像データが表すレシート画像に表される文字列については、データレコードDR1のフィールドF14にセットされたカラーコードに応じた表示色を適用する。つまり上記の具体例の場合には、POS端末101及びPOS端末102のいずれにおいても、該当の文字列の表示色は「黒」とされる。 In ACT23, the processor 1 generates image data as data representing an image of a portion of the electronic receipt image that precedes the product list, based on the exchange data and data record DR1. Note that the processor 1 applies a display color corresponding to the color code set in the field F14 of the data record DR1 to the character string represented in the receipt image represented by the image data generated here. In other words, in the above specific example, the display color of the corresponding character string is "black" in both the POS terminal 101 and the POS terminal 102.

ACT24としてプロセッサ1は、交換用データに含まれる商品データを1つ抽出する。
ACT25としてプロセッサ1は、上記の抽出した商品データに税マークが有るか否かを確認する。プロセッサ1は例えば、上記の抽出した商品データのうちのデータレコードDR1のフィールドF13にセットされた位置データが表す位置に、データレコードDR1のフィールドF12にセットされたマークコードの文字が配置されていないならば、税マークが無いと判定する。そしてプロセッサ1は、税マークが無いならばNOと判定して、ACT26へと進む。
ACT26としてプロセッサ1は、ACT24で抽出した商品データに含まれる文字列を、基準カラーで表すように画像データを更新する。
In ACT 24, the processor 1 extracts one piece of product data included in the exchange data.
In ACT 25, the processor 1 checks whether the extracted product data has a tax mark. For example, the processor 1 determines that the character of the mark code set in the field F12 of the data record DR1 is not placed at the position represented by the position data set in the field F13 of the data record DR1 in the extracted product data. If so, it is determined that there is no tax mark. If there is no tax mark, the processor 1 determines NO and proceeds to ACT26.
In ACT26, the processor 1 updates the image data so that the character string included in the product data extracted in ACT24 is represented in the standard color.

一方でプロセッサ1は、上記の位置に上記のマークコードの文字が配置されているならば、税マークが有るとしてACT25にてYESと判定し、ACT27へと進む。
ACT27としてプロセッサ1は、ACT24で抽出した商品データに含まれる文字列を、特別カラーで表すように画像データを更新する。
On the other hand, if the characters of the mark code are placed in the position, the processor 1 determines that there is a tax mark, determines YES in ACT25, and proceeds to ACT27.
In ACT27, the processor 1 updates the image data so that the character string included in the product data extracted in ACT24 is represented in a special color.

プロセッサ1は、ACT26又はACT27にて画像データを更新したならば、ACT28へと進む。
ACT28としてプロセッサ1は、交換用データの中に、ACT24にてまだ抽出していない商品データが有るか否かを確認する。そしてプロセッサ1は、未抽出の商品データが有るならばYESと判定し、ACT24以降を前述と同様に繰り返す。ただしプロセッサ1は、ACT24においては、ACT24~ACT28の処理をループする中でまだ抽出していない商品データを抽出する。
After the processor 1 updates the image data in ACT26 or ACT27, it proceeds to ACT28.
In ACT28, the processor 1 checks whether there is any product data that has not been extracted in ACT24 in the exchange data. Then, the processor 1 determines YES if there is unextracted product data, and repeats ACT24 and subsequent steps in the same manner as described above. However, in ACT24, the processor 1 extracts product data that has not been extracted yet while looping the processing of ACT24 to ACT28.

かくしてプロセッサ1は、交換用データに含まれる商品データのそれぞれに含まれる文字列を、税マークの有無に応じて基準カラー又は特別カラーで表すように画像データを順次に更新してゆく。これによりプロセッサ1は、各商品に関する文字列の表示色を、関連付けられた税マークの有無に応じて異ならせた画像を表すものとして画像データを生成する。かくしてエージェントプログラムP2に基づく情報処理をプロセッサ1が実行することによって、プロセッサ1を中枢部分とするコンピュータは生成手段として機能する。そしてプロセッサ1は、全ての商品データを抽出し終えた上でACT28へと進んだならば、NOと判定してACT29へと進む。 In this way, the processor 1 sequentially updates the image data so that the character strings included in each piece of product data included in the exchange data are represented in the standard color or special color depending on the presence or absence of the tax mark. Thereby, the processor 1 generates image data representing an image in which the display color of the character string regarding each product is changed depending on the presence or absence of the associated tax mark. Thus, by the processor 1 executing information processing based on the agent program P2, the computer having the processor 1 as a central part functions as a generating means. If the processor 1 proceeds to ACT28 after extracting all product data, the processor 1 determines NO and proceeds to ACT29.

ACT29としてプロセッサ1は、交換用データ及びデータレコードDR1に基づいて、電子レシート画像のうちの商品リストよりも後ろの部分についての画像を追加するように画像データを更新する。なおプロセッサ1は、ここで追加する画像に含まれる文字列については基準カラーを適用する。 In ACT29, the processor 1 updates the image data to add an image of the part of the electronic receipt image after the product list based on the exchange data and data record DR1. Note that the processor 1 applies the reference color to the character string included in the image to be added here.

ACT30としてプロセッサ1は、ACT29で更新された後の画像データと、交換用データに含まれた会員コードとを含んだデータとして電子レシートデータを生成する。なおプロセッサ1は、画像データ及び会員コード以外の任意のデータを電子レシートデータに含めてもよい。 In ACT30, the processor 1 generates electronic receipt data as data including the image data updated in ACT29 and the membership code included in the exchange data. Note that the processor 1 may include arbitrary data other than the image data and the membership code in the electronic receipt data.

ACT31としてプロセッサ1は、電子レシートデータをレシートサーバ103に送信する。プロセッサ1は例えば、電子レシートデータを、レシートサーバ103に宛てて、通信インタフェース9から通信ネットワーク200へと送出する。そしてプロセッサ1は、これをもって電子レシートエージェント処理を終了する。 In ACT 31, the processor 1 transmits electronic receipt data to the receipt server 103. For example, the processor 1 sends electronic receipt data to the receipt server 103 from the communication interface 9 to the communication network 200 . Processor 1 then ends the electronic receipt agent process.

電子レシートデータが、通信ネットワーク200によりレシートサーバ103へと伝送されると、レシートサーバ103は、当該電子レシートデータを含むように電子レシートデータベースを更新する。そしてレシートサーバ103は、図示しないユーザ端末から通信ネットワーク200を介して電子レシート画像の表示が要求されたならば、電子レシートデータに含まれる電子レシート画像の表示をユーザ端末に指示する。これによりユーザ端末がカラー表示器を有しているならば、電子レシート画像中の商品リストは、標準税率及び軽減税率のいずれが適用されたかに応じて、文字列の表示色が異ならせられる。これにより電子レシート画像の閲覧者は、表示色の違いにより各商品に適用された税率を容易に判断可能である。 When the electronic receipt data is transmitted to the receipt server 103 via the communication network 200, the receipt server 103 updates the electronic receipt database to include the electronic receipt data. When receiving a request to display an electronic receipt image from a user terminal (not shown) via the communication network 200, the receipt server 103 instructs the user terminal to display the electronic receipt image included in the electronic receipt data. As a result, if the user terminal has a color display, the displayed color of the character string in the product list in the electronic receipt image is changed depending on whether the standard tax rate or the reduced tax rate is applied. This allows the viewer of the electronic receipt image to easily determine the tax rate applied to each product based on the difference in display color.

またPOS端末101,102によれば、条件データベースD1にて利用者に関連付けられたデータレコードDR1に記述された条件に基づいて、税マークが商品データに含まれるか否かを判定する。これにより、図5及び図7に示すように、税マークとして用いる文字と、交換データにおける税マークの配置位置とが利用者毎で異なっていても、税マークの有無を確実に判定できる。 Furthermore, the POS terminals 101 and 102 determine whether a tax mark is included in the product data based on the conditions described in the data record DR1 associated with the user in the condition database D1. Thereby, as shown in FIGS. 5 and 7, even if the characters used as the tax mark and the placement position of the tax mark in the exchange data differ from user to user, the presence or absence of the tax mark can be reliably determined.

またPOS端末101,102によれば、条件データベースD1にて利用者に関連付けられたデータレコードDR1に記述された条件に基づいて、基準カラー及び特別カラーとして用いるカラーを決定する。これにより、標準税率及び軽減税率のいずれが適用されたかに応じた色分けを、利用者毎にカスタマイズできる。 Further, according to the POS terminals 101 and 102, colors to be used as the reference color and special color are determined based on the conditions described in the data record DR1 associated with the user in the condition database D1. This allows each user to customize the color coding depending on whether the standard tax rate or reduced tax rate is applied.

この実施形態は、次のような種々の変形実施が可能である。 This embodiment can be modified in various ways as follows.

軽減税率が適用された商品に関する商品データに含まれた文字列のうちの一部のみに特別カラーを適用してもよい。例えば、商品名を表す文字列のみに特別カラーを適用してもよい。 A special color may be applied to only part of the character strings included in product data regarding products to which the reduced tax rate is applied. For example, a special color may be applied only to the character string representing the product name.

交換用データにおいては、標準税率が適用された商品に関する商品データに税マークが含まれていてもよい。 In the exchange data, a tax mark may be included in product data regarding products to which the standard tax rate is applied.

税マークは、星印などのようなマークであってもよい。 The tax mark may be a mark such as an asterisk.

標準税率が適用された商品に関する商品データに含まれる文字列に特別カラーを適用し、軽減税率が適用された商品に関する商品データに含まれる文字列には基準カラーを適用してもよい。 A special color may be applied to character strings included in product data regarding products to which the standard tax rate is applied, and a standard color may be applied to character strings included in product data regarding products to which the reduced tax rate is applied.

基準カラーは、全ての利用者に共通としてもよい。 The reference color may be common to all users.

電子レシートエージェント処理は、レシートサーバ103で実行されてもよい。この場合には、レシートサーバ103がレシート画像生成装置としての機能を備えることになる。また電子レシートエージェント処理は、POS端末101,102及びレシートサーバ103とは別の装置で実行されてもよい。この場合、電子レシートエージェント処理を実行することを主たる機能とする独立したレシート画像生成装置として実現することもできるし、POSサーバなどの電子レシートエージェント処理を実行すること以外に主たる機能を備えた装置に、レシート画像生成装置としての機能を兼ね備えることもできる。なお、POS端末とは別の装置で電子レシートエージェント処理を実行する場合は、例えば通信ネットワーク200を介した通信によってPOS端末から交換用データを取得すればよい。 Electronic receipt agent processing may be performed by receipt server 103. In this case, the receipt server 103 will have the function of a receipt image generation device. Further, the electronic receipt agent processing may be executed by a device different from the POS terminals 101 and 102 and the receipt server 103. In this case, it can be implemented as an independent receipt image generation device whose main function is to execute electronic receipt agent processing, or it can be implemented as a device such as a POS server that has a main function other than executing electronic receipt agent processing. Additionally, it can also function as a receipt image generation device. Note that if the electronic receipt agent processing is executed by a device different from the POS terminal, exchange data may be acquired from the POS terminal by communication via the communication network 200, for example.

情報処理によりプロセッサ1が実現する各機能は、その一部又は全てをロジック回路などのようなプログラムに基づかない情報処理を実行するハードウェアにより実現することも可能である。また上記の各機能のそれぞれは、上記のロジック回路などのハードウェアにソフトウェア制御を組み合わせて実現することも可能である。 Each function realized by the processor 1 through information processing can be partially or entirely realized by hardware that executes information processing not based on a program, such as a logic circuit. Further, each of the above functions can also be realized by combining software control with hardware such as the above logic circuit.

本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態やその変形は、発明の範囲や要旨に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。 Although several embodiments of the invention have been described, these embodiments are presented by way of example and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the gist of the invention. These embodiments and their modifications are included within the scope and gist of the invention, as well as within the scope of the invention described in the claims and its equivalents.

1…プロセッサ、2…メインメモリ、3…補助記憶ユニット、4…時計部、5…入力デバイス、6…表示デバイス、7…バーコードリーダ、8…プリンタ、9…通信インタフェース、10…伝送路、101…POS端末、102…POS端末、103…レシートサーバ、200…通信ネットワーク。 DESCRIPTION OF SYMBOLS 1... Processor, 2... Main memory, 3... Auxiliary storage unit, 4... Clock part, 5... Input device, 6... Display device, 7... Barcode reader, 8... Printer, 9... Communication interface, 10... Transmission line, 101...POS terminal, 102...POS terminal, 103...Receipt server, 200...Communication network.

Claims (5)

商品名を表す文字列の文字列データ及び取引金額を表す文字列の文字列データを少なくとも含む複数の文字列データを、一取引の対象となった商品のそれぞれに関して含み、かつ所定の消費税率が適用される前記商品に関連付けて予め定められたマークを含む交換用データを取得する取得手段と
前記取得手段により取得された前記交換用データに含まれた前記文字列データが表す文字列のそれぞれを表示し、さらに前記交換用データに含まれた前記マークが関連付けられた前記商品に関する複数の文字列のうちの少なくとも1つの文字列の表示色を他の文字列の表示色とは異ならせたレシート画像に関する画像データを生成する生成手段と、
を具備したレシート画像生成装置。
Contains a plurality of character string data for each product that is the subject of one transaction, including at least character string data of a character string representing the product name and character string data of a character string representing the transaction amount, and the prescribed consumption tax rate is an acquisition means for acquiring exchange data including a predetermined mark associated with the applied product; and each of the character strings represented by the character string data included in the exchange data acquired by the acquisition means. a receipt in which at least one character string among a plurality of character strings related to the product with which the mark included in the exchange data is associated is displayed in a different color from the display color of other character strings; generation means for generating image data regarding the image;
A receipt image generation device comprising:
前記文字列に含まれ得る文字又は記号のうちの予め定められた1つを前記マークとして用い、
前記生成手段は、前記レシート画像を、前記交換用データに含まれた前記マークと、当該マークが関連付けられた前記商品に関する複数の文字列の少なくとも1つとを同一行に表した画像とする、
請求項1に記載のレシート画像生成装置。
Using a predetermined one of the characters or symbols that can be included in the character string as the mark,
The generating means generates the receipt image as an image in which the mark included in the exchange data and at least one of a plurality of character strings related to the product with which the mark is associated are expressed in the same line.
The receipt image generation device according to claim 1.
前記マークを含む位置及び含んでいる前記マークのうちの少なくとも一方が異なる複数種の前記交換用データのそれぞれに関連付けられ、当該関連付けられた前記交換用データにおいてマークを含む位置及び含んでいる前記マークのうちの少なくとも一方を表したデータレコードを記憶する記憶手段、
をさらに備え、
前記取得手段は、複数種の前記交換用データのうちの予め定められた1種を取得し、
前記生成手段は、前記取得手段が取得する前記交換用データに関連付けられた前記データレコードに基づいて前記取得手段により取得された前記交換用データに含まれるマークを検出する、
請求項1又は請求項2に記載のレシート画像生成装置。
At least one of the position including the mark and the mark is associated with each of a plurality of different types of exchange data, and the position including the mark and the mark in the associated exchange data; storage means for storing data records representing at least one of the
Furthermore,
The acquisition means acquires a predetermined one type of the plurality of types of exchange data,
The generation means detects a mark included in the exchange data acquired by the acquisition means based on the data record associated with the exchange data acquired by the acquisition means.
The receipt image generation device according to claim 1 or claim 2.
レシート画像生成装置に備えられるコンピュータを、
商品名を表す文字列の文字列データ及び取引金額を表す文字列の文字列データを少なくとも含む複数の文字列データを、一取引の対象となった商品のそれぞれに関して含み、かつ所定の消費税率が適用される前記商品に関連付けて予め定められたマークを含む交換用データを取得する取得手段と
前記取得手段により取得された前記交換用データに含まれた前記文字列データが表す文字列のそれぞれを表示し、さらに前記交換用データに含まれた前記マークが関連付けられた前記商品に関する複数の文字列のうちの少なくとも1つの文字列の表示色を他の文字列の表示色とは異ならせたレシート画像に関する画像データを生成する生成手段と、
して機能させるための情報処理プログラム。
The computer included in the receipt image generation device,
Contains a plurality of character string data for each product that is the subject of one transaction, including at least character string data of a character string representing the product name and character string data of a character string representing the transaction amount, and the prescribed consumption tax rate is an acquisition means for acquiring exchange data including a predetermined mark associated with the applied product; and each of the character strings represented by the character string data included in the exchange data acquired by the acquisition means. a receipt in which at least one character string among a plurality of character strings related to the product with which the mark included in the exchange data is associated is displayed in a different color from the display color of other character strings; generation means for generating image data regarding the image;
An information processing program that makes it work.
レシート画像生成装置に備えられるコンピュータが、
商品名を表す文字列の文字列データ及び取引金額を表す文字列の文字列データを少なくとも含む複数の文字列データを、一取引の対象となった商品のそれぞれに関して含み、かつ所定の消費税率が適用される前記商品に関連付けて予め定められたマークを含む交換用データを取得し、
取得された前記交換用データに含まれた前記文字列データが表す文字列のそれぞれを表示し、さらに前記交換用データに含まれた前記マークが関連付けられた前記商品に関する複数の文字列のうちの少なくとも1つの文字列の表示色を他の文字列の表示色とは異ならせたレシート画像に関する画像データを生成する、
レシート画像生成方法。
The computer included in the receipt image generation device is
Contains a plurality of character string data for each product that is the subject of one transaction, including at least character string data of a character string representing the product name and character string data of a character string representing the transaction amount, and the prescribed consumption tax rate is obtaining exchange data including a predetermined mark associated with the applicable product;
Displays each of the character strings represented by the character string data included in the acquired exchange data, and further displays one of a plurality of character strings related to the product with which the mark included in the exchange data is associated. generating image data regarding a receipt image in which the display color of at least one character string is different from the display color of other character strings;
Receipt image generation method.
JP2019172917A 2019-09-24 2019-09-24 Receipt image generation device, information processing program, and receipt image generation method Active JP7355570B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2019172917A JP7355570B2 (en) 2019-09-24 2019-09-24 Receipt image generation device, information processing program, and receipt image generation method
JP2023156260A JP2023164701A (en) 2019-09-24 2023-09-21 Receipt image generator, information processing program, and receipt image generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019172917A JP7355570B2 (en) 2019-09-24 2019-09-24 Receipt image generation device, information processing program, and receipt image generation method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2023156260A Division JP2023164701A (en) 2019-09-24 2023-09-21 Receipt image generator, information processing program, and receipt image generation method

Publications (2)

Publication Number Publication Date
JP2021051443A JP2021051443A (en) 2021-04-01
JP7355570B2 true JP7355570B2 (en) 2023-10-03

Family

ID=75157967

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2019172917A Active JP7355570B2 (en) 2019-09-24 2019-09-24 Receipt image generation device, information processing program, and receipt image generation method
JP2023156260A Pending JP2023164701A (en) 2019-09-24 2023-09-21 Receipt image generator, information processing program, and receipt image generation method

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2023156260A Pending JP2023164701A (en) 2019-09-24 2023-09-21 Receipt image generator, information processing program, and receipt image generation method

Country Status (1)

Country Link
JP (2) JP7355570B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016015109A (en) 2014-06-09 2016-01-28 東芝テック株式会社 Merchandise sales data processor, electronic receipt management server, printing control device, and program
JP2016206833A (en) 2015-04-20 2016-12-08 カシオ計算機株式会社 Shopping support device and shopping support method
JP2017111701A (en) 2015-12-18 2017-06-22 株式会社寺岡精工 Commodity selling data processing device, program and commodity selling data processing system
JP2017157089A (en) 2016-03-03 2017-09-07 カシオ計算機株式会社 Sales data processing device and program
JP2018166003A (en) 2013-03-01 2018-10-25 東芝テック株式会社 Electronic receipt management server, transmission method of electronic receipt, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018166003A (en) 2013-03-01 2018-10-25 東芝テック株式会社 Electronic receipt management server, transmission method of electronic receipt, and program
JP2016015109A (en) 2014-06-09 2016-01-28 東芝テック株式会社 Merchandise sales data processor, electronic receipt management server, printing control device, and program
JP2016206833A (en) 2015-04-20 2016-12-08 カシオ計算機株式会社 Shopping support device and shopping support method
JP2017111701A (en) 2015-12-18 2017-06-22 株式会社寺岡精工 Commodity selling data processing device, program and commodity selling data processing system
JP2017157089A (en) 2016-03-03 2017-09-07 カシオ計算機株式会社 Sales data processing device and program

Also Published As

Publication number Publication date
JP2023164701A (en) 2023-11-10
JP2021051443A (en) 2021-04-01

Similar Documents

Publication Publication Date Title
US11037125B2 (en) Electronic data transmission in an electronic receipt system with reduced data traffic
US20190147476A1 (en) Apparatus, system, and method for integrating point card
JP6998792B2 (en) Registration device and information processing program
JP7355570B2 (en) Receipt image generation device, information processing program, and receipt image generation method
JP6577432B2 (en) Transaction data processing device
JP2021177432A (en) Electronic receipt server and program for the same, and electronic receipt system
JP5764701B2 (en) Commerce processing apparatus and receipt details search program
JP7210678B2 (en) transaction data processor
JP6968236B2 (en) Transaction data processing device
JP6730498B2 (en) Transaction data processing device and transaction data processing method
JP7400066B2 (en) Point management system, point management device and information processing program
US10055724B2 (en) Sales processing apparatus, sales processing method and sales processing system
JP6329108B2 (en) Display device and information processing device
JP7248461B2 (en) Information processing equipment
JP6961768B2 (en) Electronic receipt server, information processing program and analysis method
JP2018120625A (en) Display and information processor
JP7126937B2 (en) Checkout system, registration device and information processing program
JP7299062B2 (en) Transaction processing device and its control program
JP7143188B2 (en) Information processing device, settlement device and information processing program
JP2017191437A (en) Information providing system and information providing method
JP2024084676A (en) Transaction processing device and information processing program
JP2014044464A (en) Service ticket processing device
JP2022043190A (en) Registration device, information processing program, and terminal device
JP2024070497A (en) Information processing device and program
JP2022083840A (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220909

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20230104

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230522

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230530

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230726

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230921

R150 Certificate of patent or registration of utility model

Ref document number: 7355570

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150