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

JP5486961B2 - Money transaction program, money transaction method, and money transaction apparatus - Google Patents

Money transaction program, money transaction method, and money transaction apparatus Download PDF

Info

Publication number
JP5486961B2
JP5486961B2 JP2010047336A JP2010047336A JP5486961B2 JP 5486961 B2 JP5486961 B2 JP 5486961B2 JP 2010047336 A JP2010047336 A JP 2010047336A JP 2010047336 A JP2010047336 A JP 2010047336A JP 5486961 B2 JP5486961 B2 JP 5486961B2
Authority
JP
Japan
Prior art keywords
change
candidate
priority
deposit amount
yen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010047336A
Other languages
Japanese (ja)
Other versions
JP2011181027A (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.)
Fujitsu Frontech Ltd
Original Assignee
Fujitsu Frontech Ltd
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 Fujitsu Frontech Ltd filed Critical Fujitsu Frontech Ltd
Priority to JP2010047336A priority Critical patent/JP5486961B2/en
Publication of JP2011181027A publication Critical patent/JP2011181027A/en
Application granted granted Critical
Publication of JP5486961B2 publication Critical patent/JP5486961B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、貨幣の取引を行う貨幣取引プログラム、貨幣取引方法、及び、貨幣取引装置に関する。   The present invention relates to a money transaction program, a money transaction method, and a money transaction apparatus that perform money transactions.

顧客が商品を購入する際、顧客が支払った支払い金額に応じて、釣銭を顧客に支払う貨幣取引装置がある。貨幣取引装置としては、例えば、POS(Point Of Sales)端末がある。   2. Description of the Related Art When a customer purchases a product, there is a money transaction apparatus that pays change to the customer according to the payment amount paid by the customer. An example of the money transaction apparatus is a POS (Point Of Sales) terminal.

貨幣取引装置が支払った釣銭は、顧客の財布等の入れ物に収容されるが、顧客は、財布等の入れ物に硬貨が多く溜まってしまうことを嫌う傾向にある。
これに対して、顧客が支払いを行う際、釣銭に含まれる硬貨の枚数が少なくなる支払い金額を、表示画面に表示する等して顧客に提示する貨幣取引装置が存在する。この貨幣取引装置では、顧客は、提示された支払い金額を支払うことで、硬貨の枚数が少ない釣銭を受け取ることが可能となる。
The change paid by the money transaction apparatus is accommodated in a container such as a wallet of the customer, but the customer tends to dislike that a large amount of coins are accumulated in the wallet or the like.
On the other hand, when a customer makes a payment, there is a money transaction apparatus that presents to a customer a payment amount that reduces the number of coins included in the change on a display screen. In this money transaction apparatus, a customer can receive a change with a small number of coins by paying the presented payment amount.

例えば、顧客の購入した商品の合計金額に対する釣銭の金種枚数が一定枚数以下になるような支払い金額と釣銭の組合せパターンを作成し、支払い金額と釣銭の組合せパターンを表示装置に表示する技術が存在する(例えば、特許文献1参照)。   For example, there is a technique for creating a combination pattern of payment amount and change so that the number of denominations of the change with respect to the total amount of products purchased by the customer is a certain number or less, and displaying the combination pattern of the payment amount and change on the display device. Exists (see, for example, Patent Document 1).

また、売上額が入力される度、または、預かり金が入金される度に、過不足金額を構成する紙幣又は硬貨の枚数が少なくなるような追加投入額を算出して表示部に表示する技術が存在する(例えば、特許文献2参照)。   In addition, every time a sales amount is input or a deposit is received, a technique for calculating an additional input amount that reduces the number of bills or coins constituting the excess / deficiency amount and displaying it on the display unit (See, for example, Patent Document 2).

また、売上商品に係るデータ入力に基づいて、預かり金額の硬貨枚数よりも釣銭額の硬貨枚数が少なくなる順番に、預かり金額と釣銭額の組合せ候補を客用ディスプレイに表示する技術が存在する(例えば、特許文献3参照)。   In addition, there is a technique for displaying a combination of the deposit amount and the change amount on the customer display in the order in which the number of coins of the change amount is smaller than the number of coins of the deposit amount based on the data input related to the sales product ( For example, see Patent Document 3).

また、釣銭枚数が多くなると判断した場合、釣銭枚数が最小になる投入金額を計算し、その投入金額を精算案内画面に表示する技術が存在する(例えば、特許文献4参照)。   In addition, there is a technique for calculating an input amount that minimizes the number of change when it is determined that the number of change is increased, and displaying the input amount on a settlement guidance screen (see, for example, Patent Document 4).

特開2003−281627号公報JP 2003-281627 A 特開2009−301420号公報JP 2009-301420 A 特開2008−123123号公報JP 2008-123123 A 特開2008−176395号公報JP 2008-176395 A

しかしながら、釣銭に含まれる硬貨の枚数を少なくできたとしても、1円硬貨、又は、5円硬貨等、自動販売機等では使用できない硬貨が釣銭に含まれている場合、このような硬貨は使用される機会が少ない為、硬貨が財布等の入れ物に溜まってしまう可能性がある。   However, even if the number of coins included in the change can be reduced, if the change includes a coin that cannot be used with a vending machine, such as a 1-yen coin or a 5-yen coin, such a coin is used. Because there are few opportunities to be played, coins may accumulate in a wallet or other container.

このような点に鑑み、釣銭が顧客の財布等の入れ物に溜まってしまう可能性を低減させる支払い金額を提示する貨幣取引プログラム、貨幣取引方法、及び、貨幣取引装置を提供する。   In view of these points, a money transaction program, a money transaction method, and a money transaction apparatus that present a payment amount that reduces the possibility of change being accumulated in a container such as a wallet of a customer are provided.

上記目的を達成するために以下のような貨幣取引プログラムが提供される。
この貨幣取引プログラムは、コンピュータを、購入金額における所定の金種を含まない金種単位の各値に対応付けて第1の釣銭候補と当該第1の釣銭候補の優先順位が設定され、記憶手段に格納される第1の釣銭候補テーブルを参照し、入力された購入金額に基づき、当該購入金額に対応する第1の釣銭候補を抽出する第1の釣銭候補抽出手段、購入金額における所定の金種を含む金種単位の各値に対応付けて第2の釣銭候補と当該第2の釣銭候補の優先順位が設定され、記憶手段に格納される第2の釣銭候補テーブルを参照し、入力された購入金額に基づき、当該購入金額に対応する第2の釣銭候補を抽出する第2の釣銭候補抽出手段、第1の釣銭候補抽出手段が抽出した第1の釣銭候補に基づき、第1の預かり金額候補を算出するとともに、第2の釣銭候補抽出手段が抽出した第2の釣銭候補に基づき、第2の預かり金額候補を算出する預かり金額候補算出手段、預かり金額候補算出手段が算出した第1の預かり金額候補間の優先順位を対応する第1の釣銭候補の優先順位に基づいて設定するとともに、算出した第2の預かり金額候補間の優先順位を対応する第2の釣銭候補の優先順位に基づいて設定し、さらに、第1の預かり金額候補を、第2の預かり金額候補よりも優先順位を高くする優先順位設定手段、預かり金額候補算出手段が算出した第1の預かり金額候補及び第2の預かり金額候補を、優先順位設定手段が設定した優先順位に基づいて、表示手段に表示させる出力手段、として機能させる。
In order to achieve the above object, the following money trading program is provided.
In this money transaction program, a first change candidate and a priority order of the first change candidate are set in association with each value of a denomination unit that does not include a predetermined denomination in the purchase amount, and the storage means refers to the first change candidate table stored in, based on the input purchase amount, the first change candidate extraction means for extracting a first change candidate corresponding to the purchase amount, predetermined punching in purchase price The second change candidate and the priority of the second change candidate are set in association with each value of the denomination unit including the seed, and are input with reference to the second change candidate table stored in the storage means. It was based on the purchase amount, based on the second second change candidate extraction means for extracting a change candidate, first change candidate first change candidate extraction unit and extracted corresponding to the purchase amount, deposit first Calculate the amount candidate , Based on the second change candidate second change candidate extracting means has extracted the amount candidate calculating means Luggage and out calculate the second deposit amount candidate, Luggage first deposit between amounts candidates amount candidate calculating means is calculated Is set based on the priority order of the corresponding first change candidate, and the priority order between the calculated second deposit amount candidates is set based on the priority order of the corresponding second change candidate , Further, the priority amount setting means for setting the first deposit amount candidate to be higher in priority than the second deposit amount candidate, the first deposit amount candidate and the second deposit amount candidate calculated by the deposit amount candidate calculating means. Based on the priority order set by the priority order setting means, the display means functions as an output means.

開示の貨幣取引プログラム、貨幣取引方法、及び、貨幣取引装置によれば、釣銭が顧客の財布等の入れ物に溜まってしまう可能性を低減させる支払い金額を提示することが可能となる。   According to the disclosed monetary transaction program, monetary transaction method, and monetary transaction apparatus, it is possible to present a payment amount that reduces the possibility that change will accumulate in a container such as a customer's wallet.

第1の実施の形態に係る貨幣取引装置の一例を示す図である。It is a figure which shows an example of the money transaction apparatus which concerns on 1st Embodiment. 第2の実施の形態に係るPOSシステムの一例を示す図である。It is a figure which shows an example of the POS system which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末のハードウェアの一例を示すブロック図である。It is a block diagram which shows an example of the hardware of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の機能の一例を示すブロック図である。It is a block diagram which shows an example of the function of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の機能の一例を示すブロック図である。It is a block diagram which shows an example of the function of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第1候補テーブルの一例を示す図である。It is a figure which shows an example of the change 1st candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 3rd candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 3rd candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 3rd candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 3rd candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 3rd candidate table which concerns on 2nd Embodiment. 第2の実施の形態に係る優先順位順釣銭候補記憶手段の一例を示す図である。It is a figure which shows an example of the priority order change candidate storage means which concerns on 2nd Embodiment. 第2の実施の形態に係る優先順位順預かり金額候補記憶手段の一例を示す図である。It is a figure which shows an example of the priority order deposit amount candidate memory | storage means based on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 2nd Embodiment. 第2の実施の形態に係る表示手段の画面の一例を示す図である。It is a figure which shows an example of the screen of the display means which concerns on 2nd Embodiment. 第3の実施の形態に係る釣銭第1候補テーブル及び釣銭第3候補テーブルの一例を示す図である。It is a figure which shows an example of the change 1st candidate table and change 3rd candidate table which concern on 3rd Embodiment. 第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 3rd Embodiment. 第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 3rd Embodiment. 第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 3rd Embodiment. 第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of the POS terminal which concerns on 3rd Embodiment.

以下、実施の形態を図面を参照して説明する。
[第1の実施の形態]
図1は、第1の実施の形態に係る貨幣取引装置の一例を示す図である。
Hereinafter, embodiments will be described with reference to the drawings.
[First Embodiment]
FIG. 1 is a diagram illustrating an example of a money transaction apparatus according to the first embodiment.

貨幣取引装置10は、入力手段11と、第1の釣銭候補抽出手段12と、第2の釣銭候補抽出手段13と、預かり金額候補算出手段14と、優先順位設定手段15と、出力手段16と、表示手段17とを有する。   The money transaction apparatus 10 includes an input unit 11, a first change candidate extraction unit 12, a second change candidate extraction unit 13, a deposit amount candidate calculation unit 14, a priority setting unit 15, and an output unit 16. And display means 17.

入力手段11には、顧客が購入した商品の購入金額が入力される。
第1の釣銭候補抽出手段12は、入力手段11に入力された購入金額に基づき、所定の金種Aを含まない釣銭候補を抽出する。ここで、金種とは、貨幣の種類を指す。金種Aは、例えば、1円硬貨、又は、5円硬貨である。
In the input means 11, the purchase price of the product purchased by the customer is input.
The first change candidate extraction unit 12 extracts change candidates that do not include the predetermined denomination A based on the purchase amount input to the input unit 11. Here, the denomination refers to the type of money. The denomination A is, for example, a 1 yen coin or a 5 yen coin.

第2の釣銭候補抽出手段13は、入力手段11に入力された購入金額に基づき、金種Aを含む釣銭候補を抽出する。
預かり金額候補算出手段14は、第1の釣銭候補抽出手段12及び第2の釣銭候補抽出手段13が抽出したそれぞれの釣銭候補に基づき、預かり金額候補をそれぞれ算出する。ここで、預かり金額候補とは、顧客が支払う支払い金額の候補を指す。即ち、預かり金額候補は、購入金額に釣銭候補を足した金額に相当する。
The second change candidate extraction unit 13 extracts change candidates including the denomination A based on the purchase amount input to the input unit 11.
The deposit amount candidate calculation unit 14 calculates deposit amount candidates based on the change candidates extracted by the first change candidate extraction unit 12 and the second change candidate extraction unit 13, respectively. Here, the deposit amount candidate indicates a payment amount candidate to be paid by the customer. That is, the deposit amount candidate corresponds to an amount obtained by adding the change candidate to the purchase amount.

優先順位設定手段15は、預かり金額候補算出手段14が算出した預かり金額候補に対して優先順位を設定する。さらに、優先順位設定手段15は、釣銭に金種Aを含まない預かり金額候補を、釣銭に金種Aを含む預かり金額候補よりも優先順位を高くする。   The priority order setting unit 15 sets a priority order for the deposit amount candidates calculated by the deposit amount candidate calculation unit 14. Furthermore, the priority order setting means 15 gives higher priority to the deposit amount candidate that does not include the denomination A in the change than the deposit amount candidate that includes the denomination A in the change.

出力手段16は、預かり金額候補算出手段14が算出した預かり金額候補を、優先順位設定手段15が設定した優先順位に基づいて、表示手段17に表示させる。
表示手段17は、例えば、優先順位が高い預かり金額候補を上位に位置するように、預かり金額候補を表示する。
The output unit 16 causes the display unit 17 to display the deposit amount candidate calculated by the deposit amount candidate calculation unit 14 based on the priority order set by the priority order setting unit 15.
For example, the display unit 17 displays the deposit amount candidates so that the deposit amount candidate having a high priority is positioned at the top.

次に、貨幣取引装置10の処理手順について説明する。
入力手段11に購入金額が入力されると、処理が開始される。
まず、第1の釣銭候補抽出手段12が、入力された購入金額に基づき、金種Aを含まない釣銭候補を抽出する。
Next, the processing procedure of the money transaction apparatus 10 will be described.
When the purchase amount is input to the input means 11, the process is started.
First, the first change candidate extraction unit 12 extracts change candidates that do not include the denomination A based on the input purchase price.

次に、第2の釣銭候補抽出手段13が、入力された購入金額に基づき、金種Aを含む釣銭候補を抽出する。
次に、預かり金額候補算出手段14が、第1の釣銭候補抽出手段12及び第2の釣銭候補抽出手段13が抽出したそれぞれの釣銭候補に基づき、預かり金額候補をそれぞれ算出する。
Next, the second change candidate extraction unit 13 extracts change candidates including the denomination A based on the input purchase amount.
Next, the deposit amount candidate calculation unit 14 calculates deposit amount candidates based on the change candidates extracted by the first change candidate extraction unit 12 and the second change candidate extraction unit 13, respectively.

次に、優先順位設定手段15が、預かり金額候補算出手段14が算出した預かり金額候補に対して優先順位を設定する。ここで、優先順位設定手段15は、釣銭に金種Aを含まない預かり金額候補を、釣銭に金種Aを含む預かり金額候補よりも優先順位を高くする。   Next, the priority order setting unit 15 sets the priority order for the deposit amount candidates calculated by the deposit amount candidate calculation unit 14. Here, the priority order setting means 15 makes the deposit amount candidate not including the denomination A in the change higher in priority than the deposit amount candidate including the denomination A in the change.

次に、出力手段16が、預かり金額候補算出手段14が算出した預かり金額候補を、優先順位設定手段15が設定した優先順位に基づいて、表示手段17に表示させる。
このように、貨幣取引装置10では、釣銭に金種Aを含まない預かり金額候補を、釣銭に金種Aを含む預かり金額候補よりも優先順位を高くし、この優先順位に基づいて預かり金額候補を表示手段17に表示させる。
Next, the output unit 16 causes the display unit 17 to display the deposit amount candidate calculated by the deposit amount candidate calculation unit 14 based on the priority order set by the priority order setting unit 15.
As described above, in the money transaction apparatus 10, the deposit amount candidate that does not include the denomination A in the change is given higher priority than the deposit amount candidate that includes the denomination A in the change, and the deposit amount candidate is based on this priority. Is displayed on the display means 17.

これにより、金種Aを、例えば、自動販売機等では使用できない1円硬貨又は5円硬貨とすることで、釣銭に1円硬貨又は5円硬貨を含まない預かり金額候補を、優先順位を高くして顧客に提示することが可能となる。   Accordingly, by setting the denomination A to, for example, a 1-yen coin or a 5-yen coin that cannot be used in a vending machine or the like, a deposit amount candidate that does not include a 1-yen coin or a 5-yen coin in the change is given higher priority Can be presented to the customer.

即ち、釣銭が顧客の財布等の入れ物に溜まってしまう可能性を低減させる支払い金額を提示することが可能となる。
次に、貨幣取引装置10を、POS端末に適用した実施の形態を、第2の実施の形態として説明する。
That is, it becomes possible to present a payment amount that reduces the possibility that change will accumulate in containers such as a customer's wallet.
Next, an embodiment in which the money transaction apparatus 10 is applied to a POS terminal will be described as a second embodiment.

[第2の実施の形態]
図2は、第2の実施の形態に係るPOSシステムの一例を示す図である。
POSシステムでは、ネットワーク500に管理サーバ600と複数のPOS端末100a,100bとが接続されている。
[Second Embodiment]
FIG. 2 is a diagram illustrating an example of a POS system according to the second embodiment.
In the POS system, a management server 600 and a plurality of POS terminals 100 a and 100 b are connected to a network 500.

POS端末100a,100bでは、それぞれ、顧客が商品を購入するにあたっての貨幣の取引、即ち、精算が行われる。POS端末100a,100bには、顧客が購入した商品の種類、商品の購入金額、及び、顧客が支払った預かり金額等が入力され、さらに、POS端末100a,100bは、入力された購入金額、及び、預かり金額に基づいて釣銭の自動計算を行う。   In the POS terminals 100a and 100b, a transaction of money when a customer purchases a product, that is, settlement is performed. The POS terminals 100a and 100b are input with the type of product purchased by the customer, the purchase price of the product, the deposit amount paid by the customer, and the POS terminals 100a and 100b. , And automatically calculate change based on the deposit amount.

管理サーバ600は、ネットワーク500を介してPOS端末100a,100bから顧客が購入した商品の種類や、購入金額等の情報を取得し、取得した情報の集計や管理等を行う。   The management server 600 acquires information such as the type of product purchased by the customer and the purchase price from the POS terminals 100a and 100b via the network 500, and performs tabulation and management of the acquired information.

次に、POS端末について詳細に説明する。なお、POS端末100a,100bは同じ構造を備えるものであり、ここからは、これらを代表したPOS端末100について説明する。   Next, the POS terminal will be described in detail. The POS terminals 100a and 100b have the same structure, and the POS terminal 100 representing them will be described below.

まず、POS端末100のハードウェアについて説明する。図3は、第2の実施の形態に係るPOS端末のハードウェアの一例を示すブロック図である。
POS端末100は、CPU(Central Processing Unit)101によって装置全体が制御される。CPU101には、バス113を介してRAM(Random Access Memory)102、ハードディスクドライブ(HDD:Hard Disk Drive)103、ディスプレイ104、キーボード105、タッチパネル106、及び、通信インタフェース107が接続される。さらに、CPU101には、バス113を介してプリンター108、バーコードスキャナ109、カスタマディスプレイ110、ドロワ111、及び、電子多項目キーボード112が接続される。
First, the hardware of the POS terminal 100 will be described. FIG. 3 is a block diagram illustrating an example of hardware of a POS terminal according to the second embodiment.
The entire POS terminal 100 is controlled by a CPU (Central Processing Unit) 101. A random access memory (RAM) 102, a hard disk drive (HDD) 103, a display 104, a keyboard 105, a touch panel 106, and a communication interface 107 are connected to the CPU 101 via a bus 113. Further, a printer 108, a barcode scanner 109, a customer display 110, a drawer 111, and an electronic multi-item keyboard 112 are connected to the CPU 101 via a bus 113.

電子多項目キーボード112は、ディスプレイ112a、キーボード112b、タッチパネル112cを有している。電子多項目キーボード112に対しては、顧客による操作や閲覧が行われる。   The electronic multi-item keyboard 112 has a display 112a, a keyboard 112b, and a touch panel 112c. The electronic multi-item keyboard 112 is operated and browsed by the customer.

RAM102には、CPU101に実行させるOS(Operating System)のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、RAM102には、CPU101による処理に必要な各種データが格納される。HDD103には、OSやアプリケーションのプログラム、各種データが格納される。   The RAM 102 temporarily stores at least part of an OS (Operating System) program and application programs to be executed by the CPU 101. The RAM 102 stores various data necessary for processing by the CPU 101. The HDD 103 stores the OS, application programs, and various data.

ディスプレイ104、カスタマディスプレイ110、及び、ディスプレイ112aは、CPU101からの命令に従って画像を画面に表示する。キーボード105、タッチパネル106、バーコードスキャナ109、キーボード112b、及び、タッチパネル112cから入力された信号は、バス113を介してCPU101に送信される。プリンター108、及び、ドロワ111は、CPU101からの命令に従って制御される。   The display 104, the customer display 110, and the display 112a display images on the screen according to instructions from the CPU 101. Signals input from the keyboard 105, the touch panel 106, the barcode scanner 109, the keyboard 112 b, and the touch panel 112 c are transmitted to the CPU 101 via the bus 113. The printer 108 and the drawer 111 are controlled according to a command from the CPU 101.

通信インタフェース107は、ネットワーク500に接続されており、ネットワーク500を介して外部から情報を受信し、且つ、外部へ情報を送信する。通信インタフェース107が外部から受信した情報は、バス113を介して、CPU101に転送される。また、通信インタフェース107は、CPU101又はHDD103からバス113を介して転送された情報を外部へ送信する。   The communication interface 107 is connected to the network 500, receives information from the outside via the network 500, and transmits information to the outside. Information received from the outside by the communication interface 107 is transferred to the CPU 101 via the bus 113. In addition, the communication interface 107 transmits information transferred from the CPU 101 or the HDD 103 via the bus 113 to the outside.

このようなハードウェアによって、POS端末100の処理機能を実現することができる。
次に、POS端末100の機能について説明する。
The processing function of the POS terminal 100 can be realized by such hardware.
Next, functions of the POS terminal 100 will be described.

図4及び図5は、第2の実施の形態に係るPOS端末の機能の一例を示すブロック図である。まず、図4を用いて説明する。
POS端末100は、購入金額入力手段201と、合計金額算出手段202と、預かり金額候補抽出手段203と、表示手段204と、預かり金額入力手段205と、釣銭算出手段206とを有する。
4 and 5 are block diagrams illustrating an example of functions of the POS terminal according to the second embodiment. First, it demonstrates using FIG.
The POS terminal 100 includes purchase amount input means 201, total amount calculation means 202, deposit amount candidate extraction means 203, display means 204, deposit amount input means 205, and change calculation means 206.

購入金額入力手段201には、顧客が購入した商品の購入金額が入力される。
合計金額算出手段202は、購入金額入力手段201に入力された購入金額の合計を算出する。
In the purchase price input means 201, the purchase price of the product purchased by the customer is input.
The total amount calculation unit 202 calculates the total purchase amount input to the purchase amount input unit 201.

預かり金額候補抽出手段203は、合計金額算出手段202が算出した購入金額の合計に基づいて、預かり金額候補を抽出する。ここで、預かり金額候補とは、顧客が支払う支払い金額の候補を指す。即ち、預かり金額候補は、購入金額の合計に釣銭候補を足した金額に相当する。   The deposit amount candidate extraction unit 203 extracts deposit amount candidates based on the total purchase amount calculated by the total amount calculation unit 202. Here, the deposit amount candidate indicates a payment amount candidate to be paid by the customer. That is, the deposit amount candidate is equivalent to the sum of the purchase amount plus the change candidate.

預かり金額入力手段205には、顧客が実際に支払った預かり金額が入力される。
釣銭算出手段206は、預かり金額入力手段205に入力された預かり金額から、合計金額算出手段202が算出した購入金額の合計を差し引いて、釣銭を算出する。
The deposit amount input means 205 receives the deposit amount actually paid by the customer.
The change calculation unit 206 calculates the change by subtracting the total of the purchase amounts calculated by the total amount calculation unit 202 from the deposit amount input to the deposit amount input unit 205.

表示手段204は、合計金額算出手段202が算出した購入金額の合計と、預かり金額候補抽出手段203が抽出した預かり金額候補と、釣銭算出手段206が算出した釣銭を、画面に表示する。   The display unit 204 displays the total of the purchase amounts calculated by the total amount calculation unit 202, the deposit amount candidates extracted by the deposit amount candidate extraction unit 203, and the change calculated by the change calculation unit 206 on the screen.

次に、預かり金額候補抽出手段203の詳細について、図5を用いて説明する。
預かり金額候補抽出手段203は、釣銭第1候補抽出手段301と、釣銭第1候補記憶手段302と、釣銭第3候補抽出手段303と、釣銭第3候補記憶手段304と、釣銭第2候補抽出手段305とを有する。さらに、預かり金額候補抽出手段203は、優先順位順釣銭候補記憶手段306と、預かり金額候補算出手段307と、優先順位順預かり金額候補記憶手段308と、預かり金額候補出力手段309とを有する。
Next, details of the deposit amount candidate extraction means 203 will be described with reference to FIG.
The deposit amount candidate extraction unit 203 includes a change first candidate extraction unit 301, a change first candidate storage unit 302, a change third candidate extraction unit 303, a change third candidate storage unit 304, and a change second candidate extraction unit. 305. Further, the deposit amount candidate extraction unit 203 includes a priority order change candidate storage unit 306, a deposit amount candidate calculation unit 307, a priority order deposit amount candidate storage unit 308, and a deposit amount candidate output unit 309.

釣銭第1候補記憶手段302は、釣銭第1候補テーブルを記憶する。釣銭第1候補テーブルには、複数の100円単位の釣銭候補と、購入金額の合計に基づいた優先順位とが、それぞれ対応付けられて格納されている。   The change first candidate storage unit 302 stores a change first candidate table. In the change first candidate table, a plurality of change candidates in units of 100 yen and priorities based on the total purchase amount are stored in association with each other.

釣銭第3候補記憶手段304は、複数の釣銭第3候補テーブルを記憶する。釣銭第3候補テーブルの1つには、10円単位の複数の釣銭候補と、購入金額の合計に基づいた優先順位とが、それぞれ対応付けられて格納されている。釣銭第3候補テーブルの他の1つには、5円単位の複数の釣銭候補と、購入金額の合計に基づいた優先順位とが、それぞれ対応付けられて格納されている。釣銭第3候補テーブルの他の1つには、1円を含む複数の釣銭候補と、購入金額の合計に基づいた優先順位とが、それぞれ対応付けられて格納されている。   The change third candidate storage unit 304 stores a plurality of change third candidate tables. In one change third candidate table, a plurality of change candidates in units of 10 yen and a priority order based on the total purchase amount are stored in association with each other. In another one of the third change change candidate table, a plurality of change candidates in units of 5 yen and a priority order based on the total purchase amount are stored in association with each other. In another one of the third change change candidate table, a plurality of change candidates including 1 yen and a priority order based on the total purchase amount are stored in association with each other.

優先順位順釣銭候補記憶手段306は、複数の記憶領域を有する。各記憶領域には、釣銭候補が記憶される。各記憶領域は、優先順位が高い順に並べられている。また、優先順位順釣銭候補記憶手段306は、複数の連続した記憶領域をそれぞれ含む、釣銭第1候補領域と、釣銭第2候補領域と、釣銭第3候補領域とを有する。釣銭第1候補領域が先頭に位置し、次に釣銭第2候補領域が位置し、次に釣銭第3候補領域が位置する。   The priority order change candidate storage means 306 has a plurality of storage areas. In each storage area, change candidates are stored. Each storage area is arranged in descending order of priority. Further, the change order candidate storage unit 306 in order of priority includes a change first candidate area, a change second candidate area, and a change third candidate area, each including a plurality of continuous storage areas. The change first candidate area is positioned first, the change second candidate area is positioned next, and then the change third candidate area is positioned.

優先順位順預かり金額候補記憶手段308は、複数の記憶領域を有する。各記憶領域には、預かり金額候補が記憶される。各記憶領域は、優先順位が高い順に並べられている。また、優先順位順預かり金額候補記憶手段308は、複数の連続した記憶領域をそれぞれ含む、預かり金額第1候補領域と、預かり金額第2候補領域と、預かり金額第3候補領域とを有する。預かり金額第1候補領域が先頭に位置し、次に預かり金額第2候補領域が位置し、次に預かり金額第3候補領域が位置する。   The priority order deposit amount candidate storage means 308 has a plurality of storage areas. Each storage area stores deposit amount candidates. Each storage area is arranged in descending order of priority. Further, the priority order deposit amount candidate storage means 308 includes a deposit amount first candidate region, a deposit amount second candidate region, and a deposit amount third candidate region each including a plurality of continuous storage areas. The deposit amount first candidate area is positioned first, the deposit amount second candidate area is positioned next, and the deposit amount third candidate area is positioned next.

釣銭第1候補抽出手段301は、釣銭第1候補記憶手段302に格納された釣銭第1候補テーブルを参照し、入力された購入金額の合計に基づいて、優先順位の高い100円単位の釣銭候補を抽出する。さらに、釣銭第1候補抽出手段301は、抽出した100円単位の釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第1候補領域に格納する。釣銭候補が複数存在する場合は、釣銭第1候補抽出手段301は、複数の釣銭候補を釣銭第1候補領域に格納する。   The change first candidate extraction unit 301 refers to the change first candidate table stored in the change first candidate storage unit 302, and based on the total of the input purchase amount, the change candidate in units of 100 yen having a high priority. To extract. Furthermore, the change first candidate extraction means 301 stores the extracted change candidates in units of 100 yen in the change first candidate area of the priority order change change candidate storage means 306. When there are a plurality of change candidates, the change first candidate extraction unit 301 stores a plurality of change candidates in the change first candidate area.

釣銭第3候補抽出手段303は、釣銭第3候補記憶手段304に格納された10円単位の釣銭候補を格納する釣銭第3候補テーブルの1つを参照し、入力された購入金額の合計に基づいて、優先順位の高い10円単位の釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303は、抽出した釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域に格納する。釣銭候補が複数存在する場合は、釣銭第3候補抽出手段303は、複数の釣銭候補を釣銭第3候補領域に格納する。   The change third candidate extraction means 303 refers to one of the change third candidate tables storing change candidates in units of 10 yen stored in the change third candidate storage means 304, and is based on the total of the input purchase amounts. Thus, change candidates of 10 yen units with high priority are extracted. Further, the change third candidate extraction unit 303 stores the extracted change candidates in the change third candidate area of the priority order change candidate storage unit 306. If there are a plurality of change candidates, the change third candidate extraction unit 303 stores the plurality of change candidates in the change third candidate area.

さらに、釣銭第3候補抽出手段303は、釣銭第3候補記憶手段304に格納された5円単位の釣銭候補を格納する釣銭第3候補テーブルの1つを参照し、入力された購入金額の合計に基づいて、優先順位の高い5円単位の釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303は、抽出した釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域に格納する。釣銭候補が複数存在する場合は、釣銭第3候補抽出手段303は、複数の釣銭候補を釣銭第3候補領域に格納する。   Furthermore, the change third candidate extraction unit 303 refers to one of the change third candidate tables storing change candidates in units of 5 yen stored in the change third candidate storage unit 304, and inputs the total of the input purchase amounts. Based on the above, change candidates of 5 yen units with high priority are extracted. Further, the change third candidate extraction unit 303 stores the extracted change candidates in the change third candidate area of the priority order change candidate storage unit 306. If there are a plurality of change candidates, the change third candidate extraction unit 303 stores the plurality of change candidates in the change third candidate area.

さらに、釣銭第3候補抽出手段303は、釣銭第3候補記憶手段304に格納された1円を含む釣銭候補を格納する釣銭第3候補テーブルの1つを参照し、入力された購入金額の合計に基づいて、優先順位の高い1円を含む釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303は、抽出した釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域に格納する。釣銭候補が複数存在する場合は、釣銭第3候補抽出手段303は、複数の釣銭候補を釣銭第3候補領域に格納する。   Further, the change third candidate extraction unit 303 refers to one of the change third candidate tables storing the change candidates including 1 yen stored in the change third candidate storage unit 304, and inputs the total of the input purchase amounts. Based on the above, change candidates including one yen with high priority are extracted. Further, the change third candidate extraction unit 303 stores the extracted change candidates in the change third candidate area of the priority order change candidate storage unit 306. If there are a plurality of change candidates, the change third candidate extraction unit 303 stores the plurality of change candidates in the change third candidate area.

ここで、釣銭第3候補抽出手段303は、優先順位順釣銭候補記憶手段306の釣銭第3候補領域に抽出した釣銭候補を格納するにあたり、先頭の記憶領域に10円単位の釣銭候補を格納し、次の記憶領域に5円単位の釣銭候補を格納し、次の記憶領域に1円を含む釣銭候補を格納する。   Here, the change third candidate extraction unit 303 stores change candidates in units of 10 yen in the top storage area when storing the change candidates extracted in the change third candidate area of the priority order change change candidate storage unit 306. A change candidate in units of 5 yen is stored in the next storage area, and a change candidate including 1 yen is stored in the next storage area.

釣銭第2候補抽出手段305は、優先順位順釣銭候補記憶手段306から、釣銭第3候補領域に格納された釣銭候補を全て抽出する。さらに、釣銭第2候補抽出手段305は、抽出した全ての釣銭候補のそれぞれに対して、500円を加えた値を算出し、算出した値が1000円以上の場合、算出した値を釣銭候補として優先順位順釣銭候補記憶手段306の釣銭第2候補領域に格納する。ここで、釣銭第2候補抽出手段305は、算出した釣銭候補を、算出元となった釣銭候補の釣銭第3候補領域における並び順に沿って、釣銭第2候補領域に格納する。   The change second candidate extraction unit 305 extracts all change candidates stored in the change third candidate area from the priority order change candidate storage unit 306. Further, the change second candidate extraction means 305 calculates a value obtained by adding 500 yen to each of the extracted change candidates. If the calculated value is 1000 yen or more, the calculated value is used as a change candidate. The change is stored in the change second candidate area of the priority order change change candidate storage means 306. Here, the change second candidate extraction unit 305 stores the calculated change candidates in the change second candidate area in the order in which the change candidates that are the calculation source are arranged in the change third candidate area.

預かり金額候補算出手段307は、優先順位順釣銭候補記憶手段306に記憶された全ての釣銭候補のそれぞれに基づいて、預かり金額候補を算出する。さらに、預かり金額候補算出手段307は、算出した預かり金額候補を、優先順位順預かり金額候補記憶手段308に格納する。ここで、預かり金額候補算出手段307は、算出した預かり金額候補を、算出元となった釣銭候補の優先順位順釣銭候補記憶手段306における並び順に沿って、優先順位順預かり金額候補記憶手段308に格納する。   The deposit amount candidate calculation unit 307 calculates deposit amount candidates based on all the change candidates stored in the priority order change candidate storage unit 306. Furthermore, the deposit amount candidate calculation unit 307 stores the calculated deposit amount candidate in the priority order deposit amount candidate storage unit 308. Here, the deposit amount candidate calculation unit 307 stores the calculated deposit amount candidate in the priority order deposit amount candidate storage unit 308 in accordance with the arrangement order of the change candidate priority order change candidate storage unit 306 that is the calculation source. Store.

即ち、優先順位順預かり金額候補記憶手段308の預かり金額第1候補領域には、算出元となった釣銭候補が優先順位順釣銭候補記憶手段306の釣銭第1候補領域に格納されている預かり金額候補が格納される。さらに、預かり金額第2候補領域には、算出元となった釣銭候補が釣銭第2候補領域に格納されている預かり金額候補が格納される。さらに、預かり金額第3候補領域には、算出元となった釣銭候補が釣銭第3候補領域に格納されている預かり金額候補が格納される。   That is, in the first deposit area of the deposit amount candidate storage unit 308 in priority order, the change amount that is the calculation source is stored in the first change area of the change order candidate storage unit 306 in the priority order. Candidates are stored. Furthermore, in the second deposit amount candidate area, a deposit amount candidate in which the change candidate that is the calculation source is stored in the second change candidate area is stored. Further, in the third deposit amount candidate area, a deposit amount candidate in which the change candidate that is the calculation source is stored in the third change candidate area is stored.

つまり、優先順位順預かり金額候補記憶手段308には、先頭から、釣銭が100円単位となる預かり金額候補、釣銭が10円単位となる預かり金額候補、釣銭が5円単位となる預かり金額候補、及び、釣銭に1円を含む預かり金額候補が、順番に格納されている。   In other words, in the priority order deposit amount candidate storage means 308, from the top, a deposit amount candidate with change of 100 yen unit, a deposit amount candidate with change of 10 yen unit, a deposit amount candidate with change of 5 yen unit, And the deposit amount candidate including 1 yen in change is stored in order.

このようにして、預かり金額候補算出手段307は、預かり金額候補を算出するとともに、算出した預かり金額候補に対して優先順位を設定する。
預かり金額候補出力手段309は、優先順位順預かり金額候補記憶手段308に記憶された預かり金額候補を、優先順位順預かり金額候補記憶手段308における並び順に沿って、図4に示す表示手段204に出力する。
In this way, the deposit amount candidate calculation unit 307 calculates deposit amount candidates and sets priorities for the calculated deposit amount candidates.
The deposit amount candidate output unit 309 outputs the deposit amount candidates stored in the priority order deposit amount candidate storage unit 308 to the display unit 204 shown in FIG. 4 along the arrangement order in the priority sequence deposit amount candidate storage unit 308. To do.

表示手段204は、預かり金額候補出力手段309から出力された預かり金額候補を、出力された順番が早いものが上位に位置するように、画面に表示する。
即ち、表示手段204の画面には、上位から、釣銭が100円単位となる預かり金額候補、釣銭が10円単位となる預かり金額候補、釣銭が5円単位となる預かり金額候補、及び、釣銭に1円を含む預かり金額候補が、順番に表示される。
The display unit 204 displays the deposit amount candidates output from the deposit amount candidate output unit 309 on the screen so that the items with the earlier output order are positioned higher.
That is, on the screen of the display means 204, from the top, a deposit amount candidate with a change of 100 yen unit, a deposit amount candidate with a change of 10 yen unit, a change amount candidate with a change of 5 yen unit, and a change Deposit amount candidates including 1 yen are displayed in order.

次に、釣銭第1候補記憶手段302が記憶する100円単位の釣銭候補を格納する釣銭第1候補テーブルの詳細について説明する。
図6は、第2の実施の形態に係る釣銭第1候補テーブルの一例を示す図である。
Next, details of the change first candidate table for storing change candidates in units of 100 yen stored in the change first candidate storage unit 302 will be described.
FIG. 6 is a diagram illustrating an example of a change first candidate table according to the second embodiment.

釣銭第1候補テーブル302aの各値23aは、購入金額における100円単位の金額21aに対する100円単位の釣銭候補22aの優先順位を示している。
購入金額における100円単位の金額21aは、即ち、購入金額の100の位に100を掛けた金額を指す。
Each value 23a of the change first candidate table 302a indicates the priority of the change candidate 22a in units of 100 yen with respect to the amount 21a in units of 100 yen in the purchase amount.
The amount of money 21a in the unit of 100 yen in the purchase amount indicates an amount obtained by multiplying 100 to the 100th of the purchase amount.

釣銭候補22aは、100円から900円までの金額であり、この例では、100円、200円、500円、及び、600円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。300円、400円、700円、800円、及び、900円については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。   The change candidate 22a has an amount from 100 yen to 900 yen, and in this example, it is 100 yen, 200 yen, 500 yen, and 600 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. The 300 yen, 400 yen, 700 yen, 800 yen, and 900 yen are excluded from change candidates here because there are three or more coins.

優先順位「1」は、釣銭候補としての優先順位が一番高いことを示し、優先順位「2」は、次に釣銭候補としての優先順位が高いことを示している。
この例では、1000円から購入金額における100円単位の金額21aを差し引いた金額に該当する釣銭候補22aに対して、優先順位「1」が付与され、500円から購入金額における100円単位の金額21aを差し引いた金額に該当する釣銭候補22aに対して、優先順位「2」が付与されている。
The priority “1” indicates the highest priority as a change candidate, and the priority “2” indicates the next highest priority as a change candidate.
In this example, priority “1” is given to the change candidate 22a corresponding to the amount obtained by subtracting the amount 21a of 100 yen unit in the purchase amount from 1000 yen, and the amount of 100 yen unit in the purchase amount from 500 yen. The priority “2” is given to the change candidate 22a corresponding to the amount obtained by subtracting 21a.

例えば、購入金額が410円であり、購入金額における100円単位の金額21aが400円である場合、釣銭候補として、600円が優先順位「1」となり、100円が優先順位「2」となる。   For example, when the purchase amount is 410 yen and the amount 21a of 100 yen unit in the purchase amount is 400 yen, 600 yen is the priority “1” and 100 yen is the priority “2” as change candidates. .

また、優先順位「1」、「2」が付与されない釣銭候補22aに対しては、「0」が付与されている。「0」は、釣銭候補として意味のないことを示している。例えば、購入金額が110円であり、購入金額における100円単位の金額が100円となる場合、釣銭が100円となることは考えにくい。なぜなら、釣銭が100円となる場合、預かり金額は210円となるが、この金額を支払うことができるならば、購入金額である110円を釣銭なしに支払うことができるからである。   Further, “0” is assigned to the change candidates 22a to which the priority orders “1” and “2” are not assigned. “0” indicates that there is no meaning as a change candidate. For example, if the purchase amount is 110 yen and the amount of 100 yen unit in the purchase amount is 100 yen, it is unlikely that the change will be 100 yen. This is because when the change is 100 yen, the deposit amount is 210 yen, but if this amount can be paid, the purchase amount of 110 yen can be paid without change.

次に、釣銭第3候補記憶手段304が記憶する10円単位の釣銭候補を格納する釣銭第3候補テーブルの詳細について説明する。
図7は、第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。
Next, details of the change third candidate table for storing change candidates in units of 10 yen stored in the change third candidate storage unit 304 will be described.
FIG. 7 is a diagram illustrating an example of a change third candidate table according to the second embodiment.

釣銭第3候補テーブル304aの各値43aは、購入金額における10円単位の金額41aに対する10円単位の釣銭候補42aの優先順位を示している。
購入金額における10円単位の金額41aは、即ち、購入金額の10の位に10を掛けた金額を指す。
Each value 43a of the third change change candidate table 304a indicates the priority of the change candidate 42a in units of 10 yen with respect to the amount 41a in units of 10 yen in the purchase amount.
The amount 41a in units of 10 yen in the purchase amount indicates an amount obtained by multiplying the 10th place of the purchase amount by 10.

釣銭候補42aは、10円から90円までの金額であり、この例では、10円、20円、50円、及び、60円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。30円、40円、70円、80円、及び、90円については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。   The change candidates 42a are amounts from 10 yen to 90 yen, and in this example, are 10 yen, 20 yen, 50 yen, and 60 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. About 30 yen, 40 yen, 70 yen, 80 yen, and 90 yen, since there are three or more coins, they are excluded from change candidates here.

この例では、50円から購入金額における10円単位の金額41aを差し引いた金額に該当する釣銭候補42aと、購入金額における10円単位の金額41aが50円よりも大きい場合における50円の釣銭候補42aとに対して、優先順位「1」が付与されている。さらに、100円から購入金額における10円単位の金額41aを差し引いた金額に該当する釣銭候補42aに対して、優先順位「2」が付与されている。   In this example, the change candidate 42a corresponding to the amount obtained by subtracting the 10 yen unit amount 41a in the purchase amount from 50 yen, and the 50 yen change candidate in the case where the 10 yen unit amount 41a in the purchase amount is larger than 50 yen. 42a is assigned a priority “1”. Furthermore, the priority “2” is given to the change candidate 42a corresponding to the amount obtained by subtracting the amount 41a of 10 yen unit in the purchase amount from 100 yen.

なお、優先順位の順位付けは、顧客の財布等に溜まる硬貨を少なくするという目的から、例えば、次の観点に基づいて行われる。1つは、釣銭に含まれる硬貨の枚数が少ないことである。1つは、預かり金額に含まれる硬貨の枚数が多いことである。   The priority ranking is performed based on the following viewpoint, for example, for the purpose of reducing the amount of coins accumulated in the customer's wallet or the like. One is that the number of coins included in the change is small. One is that the number of coins included in the deposit amount is large.

例えば、購入金額が441円であり、購入金額における10円単位の金額41aが40円である場合、釣銭候補として、10円が優先順位「1」となり、60円が優先順位「2」となる。また、購入金額が481円であり、購入金額における10円単位の金額41aが80円である場合、釣銭候補として、50円が優先順位「1」となり、20円が優先順位「2」となる。   For example, when the purchase amount is 441 yen and the purchase amount 41a in the unit of 10 yen is 40 yen, 10 yen is the priority “1” and 60 yen is the priority “2” as the change candidate. . In addition, when the purchase amount is 481 yen and the amount 41a in 10 yen unit in the purchase amount is 80 yen, 50 yen is the priority “1” and 20 yen is the priority “2” as the change candidate. .

また、優先順位「1」、「2」が付与されない釣銭候補42aに対しては、「0」が付与されている。
次に、釣銭第3候補記憶手段304が記憶する5円単位の釣銭候補を格納する釣銭第3候補テーブルについて説明する。5円単位の釣銭候補を格納する釣銭第3候補テーブルは、2つのテーブルに分けられる。
Further, “0” is assigned to the change candidates 42a to which the priority orders “1” and “2” are not assigned.
Next, the change 3rd candidate table which stores the change candidate of 5 yen unit which the 3rd change candidate memory | storage means 304 memorize | stores is demonstrated. The change third candidate table storing change candidates in units of 5 yen is divided into two tables.

図8、図9は、第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。
図8に示す釣銭第3候補テーブル304bは、購入金額の1の位の金額が5円の場合に用いられるテーブルであり、図9に示す釣銭第3候補テーブル304cは、購入金額の1の位の金額が6円以上の場合に用いられるテーブルである。
8 and 9 are diagrams illustrating an example of the change third candidate table according to the second embodiment.
The change third candidate table 304b shown in FIG. 8 is a table used when the amount of the first place of the purchase amount is 5 yen, and the change third candidate table 304c shown in FIG. This table is used when the amount of money is 6 yen or more.

なお、購入金額の1の位の金額が4円以下の場合については、釣銭が5円単位となることは考えにくい。なぜなら、購入金額の1の位の金額が4円のとき、釣銭が5円単位となるためには、預かり金額の1の位の金額が9円となるが、この金額を支払うことができるならば、そもそも、4円を釣銭なしに支払うことができるからである。このため、購入金額の1の位の金額が4円以下の場合に対応するテーブルは用意していない。   Note that it is unlikely that the change will be in units of 5 yen when the 1st digit of the purchase price is 4 yen or less. Because when the amount of the first place of the purchase amount is 4 yen, in order for the change to be in units of 5 yen, the amount of the first place of the deposit amount is 9 yen, but if this amount can be paid In the first place, 4 yen can be paid without change. For this reason, a table corresponding to the case where the first-order amount of the purchase amount is 4 yen or less is not prepared.

まず、購入金額の1の位の金額が5円の場合に用いられる釣銭第3候補テーブル304bについて説明する。
釣銭第3候補テーブル304bの各値43bは、購入金額の下二桁の金額のうち5円単位の金額41bに対する5円単位の釣銭候補42bの優先順位を示している。
First, the change third candidate table 304b used when the one-order amount of the purchase amount is 5 yen will be described.
Each value 43b of the change third candidate table 304b indicates the priority order of the change candidate 42b in units of 5 yen with respect to the amount 41b in units of 5 yen out of the last two digits of the purchase amount.

釣銭候補42bは、5円から95円までの金額であり、この例では、5円、15円、及び、55円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。25円、35円、45円、65円、75円、85円、及び、95円については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。   The change candidate 42b is an amount of money from 5 yen to 95 yen, and in this example, it is 5 yen, 15 yen, and 55 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. 25 yen, 35 yen, 45 yen, 65 yen, 75 yen, 85 yen, and 95 yen are excluded from the change candidates because there are three or more coins.

優先順位「1」は、釣銭候補としての優先順位が一番高いことを示し、優先順位「2」は、次に釣銭候補としての優先順位が高いことを示し、優先順位「3」は、その次に釣銭候補としての優先順位が高いことを示し、優先順位「4」は、さらにその次に釣銭候補として優先順位が高いことを示している。   The priority “1” indicates that the priority as the change candidate is the highest, the priority “2” indicates that the priority as the next change candidate is the highest, and the priority “3” indicates that Next, it indicates that the priority as a change candidate is high, and the priority “4” indicates that the priority is the next highest as a change candidate.

この例では、購入金額の下二桁の金額41bが45円よりも大きく95円よりも小さい場合における55円の釣銭候補42bに対して、優先順位「1」が付与されている。さらに、5円の釣銭候補42bに対して、優先順位「2」が付与されている。さらに、100円から購入金額の下二桁の金額41bを差し引いた金額に該当する釣銭候補42bに対して、優先順位「3」が付与されている。さらに、50円から購入金額の下二桁の金額41bを差し引いた金額に該当する釣銭候補42bに対して、優先順位「4」が付与されている。   In this example, the priority “1” is given to the change candidate 42b of 55 yen when the last two-digit amount 41b of the purchase price is larger than 45 yen and smaller than 95 yen. Furthermore, the priority “2” is given to the change candidate 42b of 5 yen. Furthermore, a priority “3” is given to the change candidate 42b corresponding to the amount obtained by subtracting the last two-digit amount 41b of the purchase amount from 100 yen. Furthermore, a priority “4” is given to the change candidate 42b corresponding to the amount obtained by subtracting the last two-digit amount 41b of the purchase amount from 50 yen.

なお、優先順位の順位付けは、顧客の財布等に溜まる硬貨を少なくするという目的から、例えば、次の観点に基づいて行われる。1つは、釣銭に含まれる硬貨の枚数が少ないことである。1つは、預かり金額に含まれる硬貨の枚数が多いことである。1つは、釣銭に含まれる1円硬貨や5円硬貨の枚数が少ないことである。1つは、預かり金額に含まれる1円硬貨や5円硬貨の枚数が多いことである。   The priority ranking is performed based on the following viewpoint, for example, for the purpose of reducing the amount of coins accumulated in the customer's wallet or the like. One is that the number of coins included in the change is small. One is that the number of coins included in the deposit amount is large. One is that the number of 1-yen coins and 5-yen coins included in the change is small. One is that the number of 1-yen coins and 5-yen coins included in the deposit amount is large.

例えば、購入金額が485円であり、購入金額の下二桁の金額41bが85円である場合、釣銭候補として、55円が優先順位「1」となり、5円が優先順位「2」となり、15円が優先順位「3」となる。   For example, when the purchase amount is 485 yen and the last two-digit amount 41b of the purchase amount is 85 yen, 55 yen is a priority “1” as a change candidate, and 5 yen is a priority “2”. 15 yen becomes the priority “3”.

また、優先順位「1」〜「4」が付与されない釣銭候補42bに対しては、「0」が付与されている。
次に、購入金額の1の位の金額が6円以上の場合に用いられる釣銭第3候補テーブル304cについて説明する。
Further, “0” is assigned to the change candidates 42b to which the priority orders “1” to “4” are not assigned.
Next, the change third candidate table 304c used when the one-order amount of the purchase amount is 6 yen or more will be described.

釣銭第3候補テーブル304cの各値43cは、購入金額の下二桁の金額のうち1の位が6円以上の金額41cに対する5円単位の釣銭候補42cの優先順位を示している。
購入金額の下二桁の金額41cについて、1の位は「x」で示している。
Each value 43c in the third change change candidate table 304c indicates the priority order of the change candidate 42c in units of 5 yen with respect to the amount 41c whose first place is 6 yen or more among the last two digits of the purchase amount.
Regarding the lower two-digit amount 41c of the purchase amount, the first place is indicated by “x”.

釣銭候補42cは、5円から95円までの金額であり、この例では、5円、15円、及び、55円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。25円、35円、45円、65円、75円、85円、及び、95円については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。   The change candidate 42c is an amount of money from 5 yen to 95 yen, and in this example, it is 5 yen, 15 yen, and 55 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. 25 yen, 35 yen, 45 yen, 65 yen, 75 yen, 85 yen, and 95 yen are excluded from the change candidates because there are three or more coins.

この例では、購入金額の下二桁の金額41cが39円よりも大きく96円よりも小さい場合における55円の釣銭候補42cに対して、優先順位「1」が付与されている。さらに、5円の釣銭候補42cに対して、優先順位「2」が付与されている。さらに、100円から購入金額の下二桁の金額41cを差し引いた金額から次に大きい釣銭候補42cに対して、優先順位「3」が付与されている。さらに、50円から購入金額の下二桁の金額41cを差し引いた金額から次に大きい釣銭候補42cに対して、優先順位「4」が付与されている。   In this example, the priority “1” is given to the 55 yen change candidate 42c when the last two-digit amount 41c of the purchase amount is larger than 39 yen and smaller than 96 yen. Further, the priority “2” is given to the change candidate 42c of 5 yen. Furthermore, the priority “3” is given to the change candidate 42c that is the next largest from the amount obtained by subtracting the last two-digit amount 41c of the purchase amount from 100 yen. Furthermore, the priority “4” is given to the change candidate 42c that is the next largest from the amount obtained by subtracting the last two-digit amount 41c of the purchase amount from 50 yen.

例えば、購入金額が486円であり、購入金額の下二桁の金額41cが86円である場合、釣銭候補42cとして、55円が優先順位「1」となり、5円が優先順位「2」となり、15円が優先順位「3」となる。   For example, when the purchase amount is 486 yen and the last two-digit amount 41c of the purchase amount is 86 yen, the change candidate 42c is 55 yen with priority “1” and 5 yen with priority “2”. , 15 yen becomes the priority “3”.

また、優先順位「1」〜「4」が付与されない釣銭候補42cに対しては、「0」が付与されている。
次に、釣銭第3候補記憶手段304が記憶する1円を含む釣銭候補を格納する釣銭第3候補テーブルについて説明する。1円を含む釣銭候補を格納する釣銭第3候補テーブルは、2つのテーブルに分けられる。
Further, “0” is assigned to the change candidate 42c to which the priority orders “1” to “4” are not assigned.
Next, the change 3rd candidate table which stores the change candidate containing 1 yen which the change 3rd candidate memory | storage means 304 memorize | stores is demonstrated. The change third candidate table storing change candidates including 1 yen is divided into two tables.

図10、図11は、第2の実施の形態に係る釣銭第3候補テーブルの一例を示す図である。
図10に示す釣銭第3候補テーブル304dは、購入金額の1の位の金額が4円の場合に用いられるテーブルであり、図11に示す釣銭第3候補テーブル304eは、購入金額の1の位の金額が9円の場合に用いられるテーブルである。
10 and 11 are diagrams illustrating an example of the change third candidate table according to the second embodiment.
The change third candidate table 304d shown in FIG. 10 is a table used when the amount of the first place of the purchase amount is 4 yen, and the change third candidate table 304e shown in FIG. It is a table used when the amount of money is 9 yen.

なお、購入金額の1の位の金額が4円、又は、9円ではない場合については、釣銭が1円硬貨を2枚以上含むことになるため、釣銭候補の対象から除外している。このため、購入金額の1の位の金額が4円、又は、9円ではない場合に対応するテーブルは用意していない。   In addition, when the amount of the first place of the purchase amount is not 4 yen or 9 yen, since the change includes two or more 1 yen coins, it is excluded from the candidates for the change. For this reason, a table corresponding to the case where the first-order amount of the purchase amount is not 4 yen or 9 yen is not prepared.

まず、購入金額の1の位の金額が4円の場合に用いられる釣銭第3候補テーブル304dについて説明する。
釣銭第3候補テーブル304dの各値43dは、購入金額の下二桁の金額のうち下一桁が4円となる金額41dに対する1円を含む釣銭候補42dの優先順位を示している。
First, the change third candidate table 304d used when the one-order amount of the purchase amount is 4 yen will be described.
Each value 43d of the third change change candidate table 304d indicates the priority order of the change candidate 42d including 1 yen with respect to the amount 41d of which the last one digit is 4 yen out of the last two digits of the purchase amount.

釣銭候補42dは、1円から96円までの金額であり、この例では、1円、6円、11円、及び、51円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。その他の金額については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。   The change candidate 42d has an amount of 1 to 96 yen, and in this example, 1 yen, 6 yen, 11 yen, and 51 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. Other amounts are excluded from change candidates because there are three or more coins.

優先順位「1」は、釣銭候補としての優先順位が一番高いことを示し、優先順位「2」は、次に釣銭候補としての優先順位が高いことを示し、優先順位「3」は、その次に釣銭候補としての優先順位が高いことを示し、優先順位「4」は、さらにその次に釣銭候補として優先順位が高いことを示し、優先順位「5」は、さらにその次に釣銭候補として優先順位が高いことを示し、優先順位「6」は、さらにその次に釣銭候補として優先順位が高いことを示している。   The priority “1” indicates that the priority as the change candidate is the highest, the priority “2” indicates that the priority as the next change candidate is the highest, and the priority “3” indicates that Next, it indicates that the priority as a change candidate is high, the priority “4” indicates that the priority is the next highest as a change candidate, and the priority “5” indicates that the change is the next change candidate. The priority is high, and the priority “6” indicates that the priority is the next highest change candidate.

この例では、購入金額の下二桁の金額41dが44円よりも大きい場合における51円の釣銭候補42dに対して、優先順位「1」が付与されている。さらに、購入金額の下二桁の金額41dが94円の場合における11円の釣銭候補42dに対して、優先順位「2」が付与されている。さらに、6円の釣銭候補42dに対して、優先順位「3」が付与されている。さらに、1円の釣銭候補42dに対して、優先順位「4」が付与されている。さらに、100円から購入金額の下二桁の金額41dを差し引いた金額に該当する釣銭候補42dに対して、優先順位「5」が付与されている。さらに、50円から購入金額の下二桁の金額41dを差し引いた金額に該当する釣銭候補42dに対して、優先順位「6」が付与されている。   In this example, the priority “1” is given to the change candidate 42d of 51 yen when the last two-digit amount 41d of the purchase price is larger than 44 yen. Furthermore, the priority “2” is given to the change candidate 42d of 11 yen when the last two-digit amount 41d of the purchase price is 94 yen. Furthermore, the priority “3” is given to the 6 yen change candidate 42d. Furthermore, the priority “4” is given to the change candidate 42d of 1 yen. Furthermore, a priority “5” is given to the change candidate 42d corresponding to the amount obtained by subtracting the last two-digit amount 41d of the purchase amount from 100 yen. Furthermore, the priority “6” is given to the change candidate 42d corresponding to the amount obtained by subtracting the last two-digit amount 41d of the purchase amount from 50 yen.

例えば、購入金額が494円であり、購入金額の下二桁の金額41dが94円である場合、釣銭候補として、51円が優先順位「1」となり、11円が優先順位「2」となり、6円が優先順位「3」となり、1円が優先順位「4」となる。   For example, when the purchase amount is 494 yen and the last two-digit amount 41d of the purchase amount is 94 yen, as a change candidate, 51 yen has the priority “1” and 11 yen has the priority “2”. 6 yen becomes priority “3” and 1 yen becomes priority “4”.

また、優先順位「1」〜「6」が付与されない釣銭候補42dに対しては、「0」が付与されている。
次に、購入金額の1の位の金額が9円の場合に用いられる釣銭第3候補テーブル304eについて説明する。
Further, “0” is assigned to the change candidates 42d to which the priorities “1” to “6” are not assigned.
Next, the change 3rd candidate table 304e used when the 1st amount of the purchase amount is 9 yen will be described.

釣銭第3候補テーブル304eの各値43eは、購入金額の下二桁の金額のうち下一桁が9円となる金額41eに対する1円を含む釣銭候補42eの優先順位を示している。
釣銭候補42eは、1円から96円までの金額であり、この例では、1円、6円、11円、及び、51円である。これらは、いずれも、硬貨2枚以内で支払うことが可能な金額であり、硬貨の枚数が少ないため、釣銭候補としている。その他の金額については、硬貨が3枚以上となるため、ここでは、釣銭候補から除外している。
Each value 43e in the third change change candidate table 304e indicates the priority order of change candidates 42e including 1 yen with respect to the amount 41e of which the last one digit is 9 yen out of the last two digits of the purchase amount.
The change candidates 42e are amounts from 1 to 96 yen, and in this example, are 1 yen, 6 yen, 11 yen, and 51 yen. All of these are amounts that can be paid within two coins, and since the number of coins is small, they are considered as change candidates. Other amounts are excluded from change candidates because there are three or more coins.

この例では、購入金額の下二桁の金額41eが49円よりも大きく99円よりも小さい場合における51円の釣銭候補42eに対して、優先順位「1」が付与されている。さらに、1円の釣銭候補42eに対して、優先順位「2」が付与されている。さらに、100円から購入金額の下二桁の金額41eを差し引いた金額に該当する釣銭候補42eに対して、優先順位「3」が付与されている。さらに、50円から購入金額の下二桁の金額41eを差し引いた金額に該当する釣銭候補42eに対して、優先順位「4」が付与されている。   In this example, the priority “1” is given to the change candidate 42e of 51 yen when the last two-digit amount 41e of the purchase price is larger than 49 yen and smaller than 99 yen. Furthermore, the priority “2” is given to the 1-yen change candidate 42e. Furthermore, a priority “3” is given to the change candidate 42e corresponding to the amount obtained by subtracting the last two-digit amount 41e of the purchase amount from 100 yen. Furthermore, a priority “4” is given to the change candidate 42e corresponding to the amount obtained by subtracting the last two-digit amount 41e of the purchase amount from 50 yen.

例えば、購入金額が489円であり、購入金額の下二桁の金額41eが89円である場合、釣銭候補として、51円が優先順位「1」となり、1円が優先順位「2」となり、11円が優先順位「3」となる。   For example, when the purchase amount is 489 yen and the last two-digit amount 41e of the purchase amount is 89 yen, as a change candidate, 51 yen becomes priority “1” and 1 yen becomes priority “2”. 11 yen is the priority “3”.

また、優先順位「1」〜「6」が付与されない釣銭候補42eに対しては、「0」が付与されている。
次に、優先順位順釣銭候補記憶手段306の詳細について説明する。
Further, “0” is assigned to the change candidates 42e to which the priorities “1” to “6” are not assigned.
Next, details of the priority order change change candidate storage unit 306 will be described.

図12は、第2の実施の形態に係る優先順位順釣銭候補記憶手段の一例を示す図である。
優先順位順釣銭候補記憶手段306は、釣銭候補がそれぞれ格納される複数の記憶領域(0)〜(25)を有する。各記憶領域(0)〜(25)は、優先順位が高い順に並べられている。即ち、先頭の記憶領域(0)に記憶される釣銭候補の優先順位が一番高く、最後尾の記憶領域(25)に記憶される釣銭候補の優先順位が一番低い。
FIG. 12 is a diagram showing an example of priority order change candidate storage means according to the second embodiment.
The priority order change candidate storage means 306 has a plurality of storage areas (0) to (25) in which change candidates are stored. The storage areas (0) to (25) are arranged in descending order of priority. That is, the priority of the change candidate stored in the first storage area (0) is the highest, and the priority of the change candidate stored in the last storage area (25) is the lowest.

さらに、優先順位順釣銭候補記憶手段306は、複数の連続した記憶領域をそれぞれ含む、釣銭第1候補領域306aと、釣銭第2候補領域306bと、釣銭第3候補領域306cとを有する。釣銭第1候補領域306aが先頭に位置し、次に釣銭第2候補領域306bが位置し、次に釣銭第3候補領域306cが位置する。   Further, the priority order change candidate storage means 306 includes a change first candidate area 306a, a change second candidate area 306b, and a change third candidate area 306c, each including a plurality of continuous storage areas. The change first candidate area 306a is positioned first, the change second candidate area 306b is positioned next, and the change third candidate area 306c is positioned next.

各記憶領域(0)〜(25)に格納された釣銭候補は、記憶領域(0)から順番に読み出される。
次に、優先順位順預かり金額候補記憶手段308の詳細について説明する。
The change candidates stored in the storage areas (0) to (25) are sequentially read from the storage area (0).
Next, details of the priority order deposit amount candidate storage means 308 will be described.

図13は、第2の実施の形態に係る優先順位順預かり金額候補記憶手段の一例を示す図である。
優先順位順預かり金額候補記憶手段308は、預かり金額候補がそれぞれ格納される複数の記憶領域(0)〜(25)を有する。各記憶領域(0)〜(25)は、優先順位が高い順に並べられている。即ち、先頭の記憶領域(0)に記憶される預かり金額候補の優先順位が一番高く、最後尾の記憶領域(25)に記憶される預かり金額候補の優先順位が一番低い。
FIG. 13 is a diagram showing an example of priority order deposit amount candidate storage means according to the second embodiment.
The priority order deposit amount candidate storage means 308 has a plurality of storage areas (0) to (25) in which deposit amount candidates are stored. The storage areas (0) to (25) are arranged in descending order of priority. That is, the priority of the deposit amount candidate stored in the first storage area (0) is the highest, and the priority of the deposit amount candidate stored in the last storage area (25) is the lowest.

さらに、優先順位順預かり金額候補記憶手段308は、複数の連続した記憶領域をそれぞれ含む、預かり金額第1候補領域308aと、預かり金額第2候補領域308bと、預かり金額第3候補領域308cとを有する。預かり金額第1候補領域308aが先頭に位置し、次に預かり金額第2候補領域308bが位置し、次に預かり金額第3候補領域308cが位置する。   Furthermore, the priority order deposit amount candidate storage means 308 includes a deposit amount first candidate region 308a, a deposit amount second candidate region 308b, and a deposit amount third candidate region 308c, each including a plurality of consecutive storage areas. Have. The deposit amount first candidate area 308a is positioned first, the deposit amount second candidate area 308b is positioned next, and the deposit amount third candidate area 308c is positioned next.

各記憶領域(0)〜(25)に格納された預かり金額候補は、記憶領域(0)から順番に読み出される。
次に、POS端末100の処理手順について説明する。
The deposit amount candidates stored in the storage areas (0) to (25) are sequentially read from the storage area (0).
Next, the processing procedure of the POS terminal 100 will be described.

図14〜図20は、第2の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。まず、図14を用いて説明する。
以下の処理は、購入金額入力手段201に商品の購入金額が入力されることで開始される。
14 to 20 are flowcharts illustrating an example of a processing procedure of the POS terminal according to the second embodiment. First, it demonstrates using FIG.
The following processing is started when the purchase price of the product is input to the purchase price input means 201.

[ステップS101]合計金額算出手段202が、購入金額入力手段201から商品の購入金額を取得する。
[ステップS102]合計金額算出手段202が、ステップS101で取得した購入金額を合計する。
[Step S101] The total price calculation unit 202 acquires the purchase price of the product from the purchase price input unit 201.
[Step S102] The total amount calculation means 202 totals the purchase amount acquired in step S101.

[ステップS103]合計金額算出手段202が、全ての商品の購入金額を取得したかを判定する。合計金額算出手段202は、全ての商品の購入金額を取得した場合、処理をステップS104に進める。合計金額算出手段202は、全ての商品の購入金額を取得していない場合、処理をステップS101に進める。   [Step S103] It is determined whether the total amount calculation means 202 has acquired the purchase amounts of all the products. When the total amount calculation unit 202 acquires the purchase amount of all the products, the total amount calculation unit 202 advances the process to step S104. If the total price calculation unit 202 has not acquired the purchase price of all the products, the total price calculation unit 202 advances the processing to step S101.

[ステップS104]合計金額算出手段202が、ステップS102で算出した購入金額の合計を、表示手段204の画面に表示させる。
[ステップS105]釣銭第1候補抽出手段301が、釣銭第1候補記憶手段302に格納された釣銭第1候補テーブル302aを参照し、ステップS102で算出した購入金額の合計に基づいて、優先順位の高い100円単位の釣銭候補を抽出する。さらに、釣銭第1候補抽出手段301が、抽出した100円単位の釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第1候補領域306aの記憶領域(0)、(1)に格納する。
[Step S104] The total amount calculation unit 202 displays the total of the purchase amount calculated in step S102 on the screen of the display unit 204.
[Step S105] The change first candidate extraction unit 301 refers to the change first candidate table 302a stored in the change first candidate storage unit 302, and determines the priority order based on the total purchase amount calculated in step S102. Extract change candidates of high 100 yen unit. Furthermore, the change first candidate extraction unit 301 stores the extracted change candidates in units of 100 yen in the storage areas (0) and (1) of the change first candidate region 306a of the priority order change candidate storage unit 306.

[ステップS106]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に格納された釣銭第3候補テーブル304a〜304eを参照し、ステップS102で算出した購入金額の合計に基づいて、優先順位の高い10円単位、5円単位、及び、1円を含む釣銭候補をそれぞれ抽出する。さらに、釣銭第3候補抽出手段303が、抽出した10円単位、5円単位、及び、1円を含む釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域306cの記憶領域(14)〜(25)に格納する。   [Step S106] The change third candidate extraction unit 303 refers to the change third candidate tables 304a to 304e stored in the change third candidate storage unit 304, and based on the total purchase amount calculated in step S102, priority is given. A change candidate including 10 yen unit, 5 yen unit, and 1 yen having a high rank is extracted. Furthermore, the change candidate including the change 10 candidate unit extracted by the third change candidate extraction unit 303 includes the change candidate including the 10 yen unit, the 5-yen unit, and 1 yen in the storage area ( 14) to (25).

[ステップS107]釣銭第2候補抽出手段305が、優先順位順釣銭候補記憶手段306から、釣銭第3候補領域306cに格納された釣銭候補を全て抽出する。さらに、釣銭第2候補抽出手段305が、抽出した全ての釣銭候補のそれぞれに対して、500円を加えた値を算出し、算出した値が1000円以上の場合、算出した値を釣銭候補として優先順位順釣銭候補記憶手段306の釣銭第2候補領域306bの記憶領域(2)〜(13)に格納する。   [Step S107] The change change candidate extraction unit 305 extracts all change candidates stored in the change change candidate region 306c from the priority order change change candidate storage unit 306. Further, the change second candidate extraction unit 305 calculates a value obtained by adding 500 yen to each of the extracted change candidates. If the calculated value is 1000 yen or more, the calculated value is used as a change candidate. The change is stored in the storage areas (2) to (13) of the change second candidate area 306b of the priority order change change storage means 306.

[ステップS108]預かり金額候補算出手段307が、優先順位順釣銭候補記憶手段306の記憶領域(0)〜(25)に記憶された全ての釣銭候補のそれぞれに基づいて、預かり金額候補を算出する。さらに、預かり金額候補算出手段307が、算出した預かり金額候補を、優先順位順預かり金額候補記憶手段308に格納する。   [Step S108] The deposit amount candidate calculation unit 307 calculates deposit amount candidates based on each of all the change candidates stored in the storage areas (0) to (25) of the priority order change candidate storage unit 306. . Further, the deposit amount candidate calculation unit 307 stores the calculated deposit amount candidate in the priority order deposit amount candidate storage unit 308.

ここで、預かり金額候補算出手段307は、算出した預かり金額候補を、算出元となった釣銭候補が格納されている記憶領域の優先順位順釣銭候補記憶手段306における並び順に沿って、優先順位順預かり金額候補記憶手段308の記憶領域(0)〜(25)に格納する。例えば、優先順位順釣銭候補記憶手段306の記憶領域(0)に格納された釣銭候補に対応する預かり金額候補は、優先順位順預かり金額候補記憶手段308の記憶領域(0)に格納される。   Here, the deposit amount candidate calculation means 307 displays the calculated deposit amount candidates in the order of priority according to the arrangement order in the priority order change candidate storage means 306 of the storage area in which the change candidate that is the calculation source is stored. Stored in storage areas (0) to (25) of deposit amount candidate storage means 308. For example, the deposit amount candidate corresponding to the change candidate stored in the storage area (0) of the priority order change candidate storage means 306 is stored in the storage area (0) of the priority order deposit amount candidate storage means 308.

なお、優先順位順釣銭候補記憶手段306の記憶領域に「0」が格納されている場合は、優先順位順預かり金額候補記憶手段308の対応する記憶領域に「0」を格納する。
[ステップS109]預かり金額候補出力手段309が、優先順位順預かり金額候補記憶手段308に記憶された預かり金額候補を、優先順位順預かり金額候補記憶手段308における並び順に沿って、表示手段204の画面に表示させる。
When “0” is stored in the storage area of the priority order change candidate storage means 306, “0” is stored in the corresponding storage area of the priority order deposit amount candidate storage means 308.
[Step S109] The deposit amount candidate output unit 309 displays the deposit amount candidates stored in the priority order deposit amount candidate storage unit 308 in accordance with the arrangement order in the priority order deposit amount candidate storage unit 308. To display.

なお、預かり金額候補出力手段309は、優先順位順預かり金額候補記憶手段308の記憶領域に「0」が格納されている場合は、それを無視する。
[ステップS110]釣銭算出手段206が、預かり金額入力手段205に入力された預かり金額から合計金額算出手段202が算出した購入金額の合計を差し引いて釣銭を算出し、処理を終了する。
The deposit amount candidate output unit 309 ignores “0” stored in the storage area of the deposit amount candidate storage unit 308 in order of priority.
[Step S110] The change calculation unit 206 calculates a change by subtracting the total purchase amount calculated by the total amount calculation unit 202 from the deposit amount input to the deposit amount input unit 205, and ends the processing.

次に、上記の釣銭第1候補の抽出と格納を行うステップS105の詳細について、図15を用いて説明する。
[ステップS151]釣銭第1候補抽出手段301が、ステップS102で算出した購入金額の合計における100円単位の金額を抽出する。購入金額における100円単位の金額は、購入金額の合計の100の位に100を掛けることで求められる。
Next, the details of step S105 for extracting and storing the first change change candidate will be described with reference to FIG.
[Step S151] The change first candidate extraction unit 301 extracts an amount in units of 100 yen in the total purchase amount calculated in Step S102. The amount in units of 100 yen in the purchase amount is obtained by multiplying 100 to the 100th of the total purchase amount.

[ステップS152]釣銭第1候補抽出手段301が、釣銭第1候補記憶手段302に記憶された釣銭第1候補テーブル302aを参照する。
[ステップS153]釣銭第1候補抽出手段301が、釣銭第1候補テーブル302aを参照し、ステップS151で抽出した100円単位の金額21aに対応する優先順位「1」の釣銭候補22aがあるかを判定する。釣銭第1候補抽出手段301は、優先順位「1」の釣銭候補22aがある場合、処理をステップS154に進める。釣銭第1候補抽出手段301は、優先順位「1」の釣銭候補22aがない場合、処理をステップS155に進める。
[Step S152] The change first candidate extraction unit 301 refers to the change first candidate table 302a stored in the change first candidate storage unit 302.
[Step S153] The change first candidate extraction unit 301 refers to the change first candidate table 302a to determine whether there is a change candidate 22a with the priority “1” corresponding to the amount 21a of 100 yen unit extracted in step S151. judge. If there is a change candidate 22a with the priority “1”, the change first candidate extraction unit 301 advances the process to step S154. If there is no change candidate 22a with the priority “1”, the change first candidate extraction unit 301 advances the process to step S155.

[ステップS154]釣銭第1候補抽出手段301が、ステップS153で判定した優先順位「1」の釣銭候補22aを、優先順位順釣銭候補記憶手段306の記憶領域(0)に格納する。   [Step S154] The change first candidate extraction unit 301 stores the change candidate 22a having the priority “1” determined in step S153 in the storage area (0) of the priority order change candidate storage unit 306.

[ステップS155]釣銭第1候補抽出手段301が、釣銭第1候補テーブル302aを参照し、ステップS151で抽出した100円単位の金額21aに対応する優先順位「2」の釣銭候補22aがあるかを判定する。釣銭第1候補抽出手段301は、優先順位「2」の釣銭候補22aがある場合、処理をステップS156に進める。釣銭第1候補抽出手段301は、優先順位「2」の釣銭候補22aがない場合、処理を終了する。   [Step S155] The change first candidate extraction unit 301 refers to the change first candidate table 302a to determine whether or not there is a change candidate 22a of priority “2” corresponding to the amount 21a of 100 yen unit extracted in step S151. judge. If there is a change candidate 22a with the priority “2”, the change first candidate extraction unit 301 advances the process to step S156. If there is no change candidate 22a with the priority “2”, the change first candidate extraction unit 301 ends the process.

[ステップS156]釣銭第1候補抽出手段301が、ステップS155で判定した優先順位「2」の釣銭候補22aを、優先順位順釣銭候補記憶手段306の記憶領域(1)に格納して処理を終了する。   [Step S156] The change first candidate extraction unit 301 stores the change candidate 22a having the priority “2” determined in step S155 in the storage area (1) of the priority change change candidate storage unit 306 and ends the process. To do.

次に、上記の釣銭第3候補の抽出と格納を行うステップS106の詳細について、図16を用いて説明する。
[ステップS201]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に格納された釣銭第3候補テーブル304aを参照し、ステップS102で算出した購入金額の合計に基づいて、優先順位の高い10円単位の釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303が、抽出した10円単位の釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域306cに格納する。
Next, details of step S106 for extracting and storing the third change change candidate will be described with reference to FIG.
[Step S201] The change third candidate extraction unit 303 refers to the change third candidate table 304a stored in the change third candidate storage unit 304, and determines the priority based on the total of the purchase amounts calculated in step S102. Extract change candidates in increments of 10 yen. Further, the change third candidate extraction unit 303 stores the extracted change candidate in units of 10 yen in the change third candidate area 306c of the priority order change change candidate storage unit 306.

[ステップS202]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に格納された釣銭第3候補テーブル304b、又は、304cを参照し、ステップS102で算出した購入金額の合計に基づいて、優先順位の高い5円単位の釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303が、抽出した5円単位の釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域306cに格納する。   [Step S202] The change third candidate extraction unit 303 refers to the change third candidate table 304b or 304c stored in the change third candidate storage unit 304, and based on the total purchase amount calculated in step S102. Then, change candidates of 5 yen units with high priority are extracted. Further, the change third candidate extraction unit 303 stores the extracted change candidate in units of 5 yen in the change third candidate area 306 c of the priority order change change candidate storage unit 306.

[ステップS203]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に格納された釣銭第3候補テーブル304d、又は、304eを参照し、ステップS102で算出した購入金額の合計に基づいて、優先順位の高い1円を含む釣銭候補を抽出する。さらに、釣銭第3候補抽出手段303が、抽出した1円を含む釣銭候補を、優先順位順釣銭候補記憶手段306の釣銭第3候補領域306cに格納する。   [Step S203] The change third candidate extraction unit 303 refers to the change third candidate table 304d or 304e stored in the change third candidate storage unit 304, and based on the total purchase amount calculated in step S102. Then, change candidates including 1 yen having a high priority are extracted. Further, the change third candidate extraction unit 303 stores the change candidate including the extracted 1 yen in the change third candidate area 306 c of the priority order change candidate storage unit 306.

次に、上記の10円単位の釣銭候補の抽出と格納を行うステップS201の詳細について、図17を用いて説明する。
[ステップS251]釣銭第3候補抽出手段303が、ステップS102で算出した購入金額の合計における10円単位の金額を抽出する。購入金額における10円単位の金額は、購入金額の合計の10の位に10を掛けることで求められる。
Next, details of step S201 for extracting and storing the change candidate in units of 10 yen will be described with reference to FIG.
[Step S251] The change third candidate extraction unit 303 extracts the amount in units of 10 yen in the total purchase amount calculated in Step S102. The amount of 10 yen unit in the purchase amount is obtained by multiplying the tenth of the total purchase amount by 10.

[ステップS252]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304aを参照する。
[ステップS253]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304aを参照し、ステップS251で抽出した10円単位の金額41aに対応する優先順位「1」の釣銭候補42aがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42aがある場合、処理をステップS254に進める。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42aがない場合、処理をステップS255に進める。
[Step S252] The change third candidate extraction unit 303 refers to the change third candidate table 304a stored in the change third candidate storage unit 304.
[Step S253] The change candidate extraction means 303 refers to the change third candidate table 304a to determine whether there is a change candidate 42a of priority “1” corresponding to the amount 41a of 10 yen unit extracted in step S251. judge. If there is a change candidate 42a with the priority “1”, the third change candidate extraction unit 303 advances the process to step S254. If there is no change candidate 42a having the priority “1”, the third change candidate extraction unit 303 advances the process to step S255.

[ステップS254]釣銭第3候補抽出手段303が、ステップS253で判定した優先順位「1」の釣銭候補42aを、優先順位順釣銭候補記憶手段306の記憶領域(14)に格納する。   [Step S254] The third change candidate extraction unit 303 stores the change candidates 42a having the priority “1” determined in step S253 in the storage area (14) of the priority order change candidate storage unit 306.

[ステップS255]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304aを参照し、ステップS251で抽出した10円単位の金額41aに対応する優先順位「2」の釣銭候補42aがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42aがある場合、処理をステップS256に進める。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42aがない場合、処理を終了する。   [Step S255] The change third candidate extraction unit 303 refers to the change third candidate table 304a to determine whether or not there is a change candidate 42a of priority “2” corresponding to the amount of money 41a in 10 yen unit extracted in step S251. judge. If there is a change candidate 42a with the priority “2”, the third change candidate extraction unit 303 advances the process to step S256. If there is no change candidate 42a with the priority “2”, the third change candidate extraction unit 303 ends the process.

[ステップS256]釣銭第3候補抽出手段303が、ステップS255で判定した優先順位「2」の釣銭候補42aを、優先順位順釣銭候補記憶手段306の記憶領域(15)に格納して処理を終了する。   [Step S256] The change third candidate extraction unit 303 stores the change candidate 42a having the priority “2” determined in step S255 in the storage area (15) of the priority change change candidate storage unit 306, and ends the process. To do.

次に、上記の5円単位の釣銭候補の抽出と格納を行うステップS202の詳細について、図18を用いて説明する。
[ステップS301]釣銭第3候補抽出手段303が、ステップS102で算出した購入金額の合計の下二桁の金額を抽出する。
Next, details of step S202 for extracting and storing change candidates in units of 5 yen will be described with reference to FIG.
[Step S301] The third change candidate extraction unit 303 extracts the last two digits of the total purchase amount calculated in Step S102.

[ステップS302]釣銭第3候補抽出手段303が、ステップS301で抽出した下二桁の金額の下一桁が、「5」以上かどうかを判定する。釣銭第3候補抽出手段303は、下一桁が「5」以上の場合、処理をステップS303に進める。釣銭第3候補抽出手段303は、下一桁が「5」以上ではない場合、処理を終了する。   [Step S302] The third change candidate extraction unit 303 determines whether the last one digit of the last two digits extracted in step S301 is “5” or more. If the last digit is “5” or more, the third change candidate extraction unit 303 advances the process to step S303. The change third candidate extraction unit 303 ends the process when the last digit is not “5” or more.

[ステップS303]釣銭第3候補抽出手段303が、ステップS301で抽出した下二桁の金額の下一桁が、「5」かどうかを判定する。釣銭第3候補抽出手段303は、下一桁が「5」の場合、処理をステップS304に進める。釣銭第3候補抽出手段303は、下一桁が「5」ではない場合、処理をステップS305に進める。   [Step S303] The third change candidate extraction unit 303 determines whether the last one digit of the last two digits extracted in step S301 is “5”. If the last digit is “5”, the third change candidate extraction unit 303 advances the process to step S304. If the last digit is not “5”, the third change candidate extraction unit 303 advances the process to step S305.

[ステップS304]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304bを参照する。
[ステップS305]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304cを参照する。
[Step S304] The change third candidate extraction unit 303 refers to the change third candidate table 304b stored in the change third candidate storage unit 304.
[Step S305] The third change candidate extraction unit 303 refers to the third change candidate table 304c stored in the third change candidate storage unit 304.

[ステップS306]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304b、又は、304cを参照し、ステップS301で抽出した下二桁の金額41b,41cに対応する優先順位「1」の釣銭候補42b,42cがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42b,42cがある場合、処理をステップS307に進める。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42b,42cがない場合、処理をステップS308に進める。   [Step S306] The change change candidate extraction unit 303 refers to the change change candidate table 304b or 304c, and changes of priority “1” corresponding to the lower two-digit amounts 41b and 41c extracted in step S301. It is determined whether there are candidates 42b and 42c. If there are change candidates 42b and 42c with the priority “1”, the third change candidate extraction unit 303 advances the process to step S307. If there is no change candidate 42b, 42c with the priority “1”, the third change candidate extraction unit 303 advances the process to step S308.

[ステップS307]釣銭第3候補抽出手段303が、ステップS306で判定した優先順位「1」の釣銭候補42b,42cを、優先順位順釣銭候補記憶手段306の記憶領域(16)に格納する。   [Step S307] The change change candidate extraction unit 303 stores the change candidates 42b and 42c of the priority “1” determined in step S306 in the storage area (16) of the priority change change candidate storage unit 306.

[ステップS308]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304b、又は、304cを参照し、ステップS301で抽出した下二桁の金額41b,41cに対応する優先順位「2」の釣銭候補42b,42cがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42b,42cがある場合、処理をステップS309に進める。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42b,42cがない場合、処理をステップS310に進める。   [Step S308] The change change candidate extraction unit 303 refers to the change change candidate table 304b or 304c, and changes of priority “2” corresponding to the lower two-digit amounts 41b and 41c extracted in step S301. It is determined whether there are candidates 42b and 42c. If there are change candidates 42b and 42c with the priority “2”, the third change candidate extraction unit 303 advances the process to step S309. If there are no change candidates 42b and 42c with the priority “2”, the third change candidate extraction unit 303 advances the process to step S310.

[ステップS309]釣銭第3候補抽出手段303が、ステップS308で判定した優先順位「2」の釣銭候補42b,42cを、優先順位順釣銭候補記憶手段306の記憶領域(17)に格納する。   [Step S309] The change change candidate extraction unit 303 stores the change candidates 42b and 42c of the priority “2” determined in step S308 in the storage area (17) of the priority change change candidate storage unit 306.

[ステップS310]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304b、又は、304cを参照し、ステップS301で抽出した下二桁の金額41b,41cに対応する優先順位「3」の釣銭候補42b,42cがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「3」の釣銭候補42b,42cがある場合、処理をステップS311に進める。釣銭第3候補抽出手段303は、優先順位「3」の釣銭候補42b,42cがない場合、処理をステップS312に進める。   [Step S310] The change third candidate extraction unit 303 refers to the change third candidate table 304b or 304c and changes the priority “3” corresponding to the lower two-digit amounts 41b and 41c extracted in step S301. It is determined whether there are candidates 42b and 42c. If there are change candidates 42b and 42c with the priority “3”, the third change candidate extraction unit 303 advances the process to step S311. If there are no change candidates 42b and 42c with the priority “3”, the third change candidate extraction unit 303 advances the process to step S312.

[ステップS311]釣銭第3候補抽出手段303が、ステップS310で判定した優先順位「3」の釣銭候補42b,42cを、優先順位順釣銭候補記憶手段306の記憶領域(18)に格納する。   [Step S311] The change third candidate extraction unit 303 stores the change candidates 42b and 42c of the priority “3” determined in step S310 in the storage area (18) of the priority order change candidate storage unit 306.

[ステップS312]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304b、又は、304cを参照し、ステップS301で抽出した下二桁の金額41b,41cに対応する優先順位「4」の釣銭候補42b,42cがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「4」の釣銭候補42b,42cがある場合、処理をステップS313に進める。釣銭第3候補抽出手段303は、優先順位「4」の釣銭候補42b,42cがない場合、処理を終了する。   [Step S312] The change third candidate extraction unit 303 refers to the change third candidate table 304b or 304c and changes the priority “4” corresponding to the lower two-digit amounts 41b and 41c extracted in step S301. It is determined whether there are candidates 42b and 42c. If there are change candidates 42b and 42c with the priority “4”, the third change candidate extraction unit 303 advances the process to step S313. If there is no change candidate 42b, 42c with the priority “4”, the third change candidate extraction unit 303 ends the process.

[ステップS313]釣銭第3候補抽出手段303が、ステップS312で判定した優先順位「4」の釣銭候補42b,42cを、優先順位順釣銭候補記憶手段306の記憶領域(19)に格納して処理を終了する。   [Step S313] The third change candidate extraction unit 303 stores the change candidates 42b and 42c having the priority “4” determined in step S312 in the storage area (19) of the priority change candidate storage unit 306 for processing. Exit.

次に、上記の1円を含む釣銭候補の抽出と格納を行うステップS203の詳細について、図19を用いて説明する。
[ステップS351]釣銭第3候補抽出手段303が、ステップS102で算出した購入金額の合計の下二桁の金額を抽出する。
Next, details of step S203 for extracting and storing change candidates including one yen will be described with reference to FIG.
[Step S351] The change third candidate extraction unit 303 extracts the last two digits of the total purchase amount calculated in Step S102.

[ステップS352]釣銭第3候補抽出手段303が、ステップS351で抽出した下二桁の金額の下一桁が、「4」かどうかを判定する。釣銭第3候補抽出手段303は、下一桁が「4」の場合、処理をステップS354に進める。釣銭第3候補抽出手段303は、下一桁が「4」ではない場合、処理をステップS353に進める。   [Step S352] The third change candidate extraction unit 303 determines whether the last one digit of the last two digits extracted in step S351 is “4”. If the last digit is “4”, the third change candidate extraction unit 303 advances the process to step S354. If the last digit is not “4”, the third change candidate extraction unit 303 advances the process to step S353.

[ステップS353]釣銭第3候補抽出手段303が、ステップS351で抽出した下二桁の金額の下一桁が、「9」かどうかを判定する。釣銭第3候補抽出手段303は、下一桁が「9」の場合、処理をステップS355に進める。釣銭第3候補抽出手段303は、下一桁が「9」ではない場合、処理を終了する。   [Step S353] The third change candidate extraction unit 303 determines whether the last one digit of the last two digits extracted in Step S351 is “9”. If the last digit is “9”, the third change candidate extraction unit 303 advances the process to step S355. If the last digit is not “9”, the third change candidate extraction unit 303 ends the process.

[ステップS354]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304dを参照する。
[ステップS355]釣銭第3候補抽出手段303が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304eを参照する。
[Step S354] The third change candidate extraction unit 303 refers to the third change candidate table 304d stored in the third change candidate storage unit 304.
[Step S355] The third change candidate extraction unit 303 refers to the third change candidate table 304e stored in the third change candidate storage unit 304.

[ステップS356]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「1」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42d,42eがある場合、処理をステップS357に進める。釣銭第3候補抽出手段303は、優先順位「1」の釣銭候補42d,42eがない場合、処理をステップS358に進める。   [Step S356] The change change candidate extraction unit 303 refers to the change change 3 candidate table 304d or 304e, and changes of priority “1” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “1”, the third change candidate extraction unit 303 advances the process to step S357. If there is no change candidate 42d, 42e with the priority “1”, the third change candidate extraction unit 303 advances the process to step S358.

[ステップS357]釣銭第3候補抽出手段303が、ステップS356で判定した優先順位「1」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(20)に格納する。   [Step S357] The change change third candidate extraction unit 303 stores the change candidates 42d and 42e having the priority “1” determined in step S356 in the storage area (20) of the priority change change candidate storage unit 306.

[ステップS358]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「2」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42d,42eがある場合、処理をステップS359に進める。釣銭第3候補抽出手段303は、優先順位「2」の釣銭候補42d,42eがない場合、処理をステップS360に進める。   [Step S358] The change change candidate extraction unit 303 refers to the change change candidate table 304d or 304e, and changes of priority “2” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “2”, the third change candidate extraction unit 303 advances the process to step S359. If there are no change candidates 42d and 42e with the priority “2”, the third change candidate extraction unit 303 advances the process to step S360.

[ステップS359]釣銭第3候補抽出手段303が、ステップS358で判定した優先順位「2」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(21)に格納する。   [Step S359] The change candidate third extracting unit 303 stores the change candidates 42d and 42e having the priority “2” determined in step S358 in the storage area (21) of the priority change candidate storage unit 306.

[ステップS360]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「3」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「3」の釣銭候補42d,42eがある場合、処理をステップS361に進める。釣銭第3候補抽出手段303は、優先順位「3」の釣銭候補42d,42eがない場合、処理をステップS362に進める。   [Step S360] The change third candidate extraction unit 303 refers to the change third candidate table 304d or 304e and changes the priority “3” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “3”, the third change candidate extraction unit 303 advances the process to step S361. If there is no change candidate 42d, 42e with the priority “3”, the third change candidate extraction unit 303 advances the process to step S362.

[ステップS361]釣銭第3候補抽出手段303が、ステップS360で判定した優先順位「3」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(22)に格納する。   [Step S361] The change change candidate extraction unit 303 stores the change candidates 42d and 42e having the priority “3” determined in step S360 in the storage area (22) of the change order candidate storage unit 306 in order of priority.

[ステップS362]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「4」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「4」の釣銭候補42d,42eがある場合、処理をステップS363に進める。釣銭第3候補抽出手段303は、優先順位「4」の釣銭候補42d,42eがない場合、処理をステップS364に進める。   [Step S362] The change third candidate extraction unit 303 refers to the change third candidate table 304d or 304e and changes the priority “4” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “4”, the third change candidate extraction unit 303 advances the process to step S363. If there is no change candidate 42d, 42e with the priority “4”, the third change candidate extraction unit 303 advances the process to step S364.

[ステップS363]釣銭第3候補抽出手段303が、ステップS362で判定した優先順位「4」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(23)に格納する。   [Step S363] The change change candidate extraction unit 303 stores the change candidates 42d and 42e having the priority “4” determined in step S362 in the storage area (23) of the change order candidate storage unit 306 in order of priority.

[ステップS364]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「5」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「5」の釣銭候補42d,42eがある場合、処理をステップS365に進める。釣銭第3候補抽出手段303は、優先順位「5」の釣銭候補42d,42eがない場合、処理をステップS366に進める。   [Step S364] The change third candidate extraction means 303 refers to the change third candidate table 304d or 304e and changes the priority “5” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “5”, the third change candidate extraction unit 303 advances the process to step S365. If there is no change candidate 42d, 42e with the priority “5”, the third change candidate extraction unit 303 advances the process to step S366.

[ステップS365]釣銭第3候補抽出手段303が、ステップS364で判定した優先順位「5」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(24)に格納する。   [Step S365] The third change candidate extraction unit 303 stores the change candidates 42d and 42e having the priority “5” determined in step S364 in the storage area (24) of the priority order change candidate storage unit 306.

[ステップS366]釣銭第3候補抽出手段303が、釣銭第3候補テーブル304d、又は、304eを参照し、ステップS351で抽出した下二桁の金額41d,41eに対応する優先順位「6」の釣銭候補42d,42eがあるかを判定する。釣銭第3候補抽出手段303は、優先順位「6」の釣銭候補42d,42eがある場合、処理をステップS367に進める。釣銭第3候補抽出手段303は、優先順位「6」の釣銭候補42d,42eがない場合、処理を終了する。   [Step S366] The change third candidate extraction unit 303 refers to the change third candidate table 304d or 304e and changes the priority “6” corresponding to the lower two-digit amounts 41d and 41e extracted in step S351. It is determined whether there are candidates 42d and 42e. If there are change candidates 42d and 42e with the priority “6”, the third change candidate extraction unit 303 advances the process to step S367. If there is no change candidate 42d, 42e with the priority “6”, the third change candidate extraction unit 303 ends the process.

[ステップS367]釣銭第3候補抽出手段303が、ステップS366で判定した優先順位「6」の釣銭候補42d,42eを、優先順位順釣銭候補記憶手段306の記憶領域(25)に格納して処理を終了する。   [Step S367] The change change candidate extraction unit 303 stores the change candidates 42d and 42e having the priority “6” determined in step S366 in the storage area (25) of the priority change change candidate storage unit 306 for processing. Exit.

次に、上記の釣銭第2候補の抽出と格納を行うステップS107の詳細について、図20を用いて説明する。
[ステップS401]釣銭第2候補抽出手段305が、優先順位順釣銭候補記憶手段306の記憶領域(14)〜(25)に格納された釣銭候補を抽出する。さらに、釣銭第2候補抽出手段305は、抽出した釣銭候補のそれぞれに500円を加算した金額を、釣銭候補として、優先順位順釣銭候補記憶手段306の記憶領域(2)〜(13)に格納する。
Next, details of step S107 for extracting and storing the second change change candidate will be described with reference to FIG.
[Step S401] The second change candidate extraction unit 305 extracts the change candidates stored in the storage areas (14) to (25) of the priority order change candidate storage unit 306. Further, the change second candidate extraction unit 305 stores the amount obtained by adding 500 yen to each of the extracted change candidates as a change candidate in the storage areas (2) to (13) of the priority order change candidate storage unit 306. To do.

ここで、釣銭第2候補抽出手段305は、格納先である記憶領域(2)〜(13)における順番と、抽出元の記憶領域(14)〜(25)における順番とが同じとなるように、算出した釣銭候補を格納する。例えば、抽出元が記憶領域(14)の釣銭候補は、記憶領域(2)に格納され、抽出元が記憶領域(15)の釣銭候補は、記憶領域(3)に格納される。   Here, the change second candidate extraction means 305 is configured so that the order in the storage areas (2) to (13) as the storage destination is the same as the order in the storage areas (14) to (25) as the extraction sources. The calculated change candidate is stored. For example, change candidates whose extraction source is the storage area (14) are stored in the storage area (2), and change candidates whose extraction source is the storage area (15) are stored in the storage area (3).

[ステップS402]釣銭第2候補抽出手段305が、格納位置(A)に優先順位順釣銭候補記憶手段306の記憶領域(2)を設定する。
[ステップS403]釣銭第2候補抽出手段305が、格納位置(A)に格納されている釣銭候補の金額が1000円以上かどうかを判定する。釣銭第2候補抽出手段305は、金額が1000円以上の場合、処理をステップS405に進める。釣銭第2候補抽出手段305は、金額が1000円以上ではない場合、処理をステップS404に進める。
[Step S402] The change second candidate extraction unit 305 sets the storage area (2) of the priority change change candidate storage unit 306 in the storage position (A).
[Step S403] The second change extraction unit 305 determines whether the change candidate amount stored in the storage position (A) is 1000 yen or more. If the amount is 1000 yen or more, the change second candidate extraction unit 305 advances the process to step S405. If the amount is not 1000 yen or more, the change second candidate extraction unit 305 advances the process to step S404.

[ステップS404]釣銭第2候補抽出手段305が、格納位置(A)に「0」を格納する。
[ステップS405]釣銭第2候補抽出手段305が、格納位置(A)が記憶領域(13)かどうかを判定する。釣銭第2候補抽出手段305は、格納位置(A)が記憶領域(13)の場合、処理を終了する。釣銭第2候補抽出手段305は、格納位置(A)が記憶領域(13)ではない場合、処理をステップS406に進める。
[Step S404] The change second candidate extraction unit 305 stores “0” in the storage position (A).
[Step S405] The second change candidate extraction unit 305 determines whether the storage position (A) is the storage area (13). When the storage position (A) is the storage area (13), the change second candidate extraction unit 305 ends the process. If the storage position (A) is not the storage area (13), the change second candidate extraction unit 305 advances the process to step S406.

[ステップS406]釣銭第2候補抽出手段305が、格納位置(A)を1つ後段の記憶領域に設定して更新し、処理をステップS403に進める。
次に、預かり金額候補が表示された表示手段204の画面204aの一例について説明する。
[Step S406] The change second candidate extraction unit 305 sets and updates the storage position (A) in the next storage area, and advances the process to step S403.
Next, an example of the screen 204a of the display unit 204 on which deposit amount candidates are displayed will be described.

図21は、第2の実施の形態に係る表示手段の画面の一例を示す図である。
表示手段204は、例えば、図3に示すディスプレイ112a及びタッチパネル112cにより実現される。表示手段204の画面204aには、購入金額の合計が、お買い上げ金額31に表示される。さらに、画面204aには、預かり金額候補が、お勧めお預け金額32に表示される。ここで、預かり金額候補は、優先順位が高いものが上位に位置するように順番に表示される。さらに、画面204aには、預かり金額候補に対応した釣銭が、おつり33に表示される。
FIG. 21 is a diagram illustrating an example of the screen of the display unit according to the second embodiment.
The display unit 204 is realized by, for example, the display 112a and the touch panel 112c illustrated in FIG. On the screen 204 a of the display means 204, the total purchase price is displayed as the purchase price 31. Further, on the screen 204a, deposit amount candidates are displayed in the recommended deposit amount 32. Here, the deposit amount candidates are displayed in order so that the one with higher priority is positioned higher. Further, the change corresponding to the deposit amount candidate is displayed on the change screen 33 on the screen 204a.

さらに、画面204aには、例えば、お勧めお預け金額32に表示された預かり金額候補の順番を硬貨の枚数順に並び替えるタッチパネル式のボタン34が表示される。ボタン34に顧客が触れると、例えば、預かり金額候補出力手段309が、これを検出し、硬貨の枚数順に預かり金額候補の出力の順番を入れ替えることで、お勧めお預け金額32に表示される預かり金額候補が並び替えられる。   Furthermore, on the screen 204a, for example, a touch panel type button 34 for rearranging the order of deposit amount candidates displayed in the recommended deposit amount 32 in the order of the number of coins is displayed. When the customer touches the button 34, for example, the deposit amount candidate output means 309 detects this, and the deposit amount displayed in the recommended deposit amount 32 by changing the order of deposit amount candidate output in the order of the number of coins. Candidates are sorted.

さらに、画面204aには、例えば、お勧めお預け金額32に表示された預かり金額候補の順番を釣銭が高いものから降順となるように並び替えるタッチパネル式のボタン35が表示される。ボタン35に顧客が触れると、例えば、預かり金額候補出力手段309が、これを検出し、釣銭が高いものから降順となるように預かり金額候補の出力の順番を入れ替えることで、お勧めお預け金額32に表示される預かり金額候補が並び替えられる。   Further, on the screen 204a, for example, a touch panel type button 35 for rearranging the order of the deposit amount candidates displayed in the recommended deposit amount 32 from the highest change to the descending order is displayed. When the customer touches the button 35, for example, the deposit amount candidate output means 309 detects this, and the recommended deposit amount 32 is changed by changing the output order of the deposit amount candidates in descending order from the highest change. The deposit amount candidates displayed in are rearranged.

さらに、画面204aには、例えば、お勧めお預け金額32に表示された預かり金額候補の順番を元に戻すタッチパネル式のボタン36が表示される。ボタン36に顧客が触れると、例えば、預かり金額候補出力手段309が、これを検出し、預かり金額候補の出力の順番を元に戻すことで、お勧めお預け金額32に表示される預かり金額候補が元の並び順となる。   Furthermore, on the screen 204a, for example, a touch panel type button 36 for returning the order of deposit amount candidates displayed in the recommended deposit amount 32 is displayed. When the customer touches the button 36, for example, the deposit amount candidate output means 309 detects this, and returns the order of the deposit amount candidate output, so that the deposit amount candidate displayed in the recommended deposit amount 32 is displayed. The original order is used.

以上説明してきたように、POS端末100では、預かり金額候補抽出手段203が、釣銭が100円単位となるような釣銭に1円硬貨や5円硬貨を含まない預かり金額候補を、釣銭に1円硬貨や5円硬貨を含む預かり金額候補よりも優先順位を高くし、この優先順位に基づいて預かり金額候補を表示手段204に表示させる。   As described above, in the POS terminal 100, the deposit amount candidate extraction unit 203 converts the deposit amount candidate that does not include 1 yen coin or 5 yen coin into the change such that the change is in units of 100 yen, The priority is set higher than the deposit amount candidates including coins and 5-yen coins, and the deposit amount candidates are displayed on the display means 204 based on the priorities.

これにより、釣銭に1円硬貨又は5円硬貨を含まない預かり金額候補を、優先順位を高くして顧客に提示することが可能となる。
即ち、釣銭が顧客の財布等の入れ物に溜まってしまう可能性を低減させる支払い金額を提示することが可能となる。
As a result, it is possible to present to the customer a deposit amount candidate that does not include a 1-yen coin or a 5-yen coin in the change with a higher priority.
That is, it becomes possible to present a payment amount that reduces the possibility that change will accumulate in containers such as a customer's wallet.

さらに、POS端末100では、預かり金額候補記憶手段308が複数の記憶領域を有し、預かり金額候補算出手段307が算出した預かり金額候補は、その優先順位に基づいて対応する記憶領域に格納される。そして、各記憶領域に格納された預かり金額候補は、その記憶領域に設定された順番に基づいて、表示手段204に表示される。   Further, in the POS terminal 100, the deposit amount candidate storage unit 308 has a plurality of storage areas, and the deposit amount candidates calculated by the deposit amount candidate calculation unit 307 are stored in the corresponding storage areas based on the priority order. . Then, the deposit amount candidates stored in each storage area are displayed on the display unit 204 based on the order set in the storage area.

これによれば、釣銭に含まれる金種の優先順位を変更する場合、預かり金額候補を格納する記憶領域の位置を変更することのみで、複雑な処理を実行することなく、優先順位の変更を表示手段204に表示される預かり金額候補の並び順に反映させることが可能となる。   According to this, when changing the priority order of denominations included in change, it is possible to change the priority order only by changing the position of the storage area for storing deposit amount candidates, without performing complicated processing. It is possible to reflect the order of deposit amount candidates displayed on the display unit 204.

次に、釣銭第1、第3候補の抽出と格納に関して他の方法を用いた実施の形態を、第3の実施の形態として説明する。第3の実施の形態では、使用するテーブルの規模を縮小し、計算を主として釣銭候補の抽出と格納を行うものである。   Next, an embodiment using another method for extracting and storing the first and third candidates for change will be described as a third embodiment. In the third embodiment, the scale of a table to be used is reduced, and change candidates are extracted and stored mainly in calculation.

[第3の実施の形態]
第3の実施の形態に係るPOS端末では、第2の実施の形態に係るPOS端末100に対して、釣銭第1、第3候補記憶手段302,304が記憶するテーブル、及び、釣銭第1、第3候補抽出手段301,303における釣銭第1、第3候補の抽出と格納に関する処理手順が異なる。その他はPOS端末100と同じ構成である。
[Third Embodiment]
In the POS terminal according to the third embodiment, the change stored in the POS terminal 100 according to the second embodiment is stored in the tables stored in the first change and third candidate storage means 302 and 304, and the change first, The processing procedures relating to the extraction and storage of change first and third candidates in the third candidate extraction means 301 and 303 are different. The other configuration is the same as that of the POS terminal 100.

まず、釣銭第1、第3候補記憶手段302,304が記憶する釣銭第1、第3候補テーブルについて説明する。
図22は、第3の実施の形態に係る釣銭第1候補テーブル及び釣銭第3候補テーブルの一例を示す図である。
First, the change first and third candidate tables stored in the change first and third candidate storage means 302 and 304 will be described.
FIG. 22 is a diagram illustrating an example of a change first candidate table and a change third candidate table according to the third embodiment.

図22(A)に示されるように、釣銭第1候補テーブル302bは、100円単位の釣銭候補として、100円、200円、500円、及び、600円を格納している。
図22(B)に示されるように、釣銭第3候補テーブル304fは、10円単位の釣銭候補、5円単位の釣銭候補、及び、1円を含む釣銭候補として、1円、5円、6円、10円、11円、15円、20円、50円、51円、55円、及び、60円を格納している。
As shown in FIG. 22A, the change first candidate table 302b stores 100 yen, 200 yen, 500 yen, and 600 yen as change candidates in units of 100 yen.
As shown in FIG. 22 (B), the change third candidate table 304f includes 10 yen change candidates, 5 yen change candidates, and change candidates including 1 yen, 1 yen, 5 yen, 6 Yen, 10 yen, 11 yen, 15 yen, 20 yen, 50 yen, 51 yen, 55 yen, and 60 yen are stored.

次に、釣銭第1候補の抽出と格納の手順について説明する。
図23は、第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。
Next, the procedure for extracting and storing the first change change will be described.
FIG. 23 is a flowchart illustrating an example of a processing procedure of the POS terminal according to the third embodiment.

[ステップS451]釣銭第1候補抽出手段301が、購入金額の合計の100の位を抽出し、抽出した値を100倍して変数(A)に格納する。
[ステップS452]釣銭第1候補抽出手段301が、1000から変数(A)を引いた値を算出して変数(B)に格納する。
[Step S451] The change first candidate extraction unit 301 extracts the 100th place of the total purchase amount, multiplies the extracted value by 100, and stores it in the variable (A).
[Step S452] The change first candidate extraction unit 301 calculates a value obtained by subtracting the variable (A) from 1000 and stores it in the variable (B).

[ステップS453]釣銭第1候補抽出手段301が、変数(B)が釣銭第1候補記憶手段302に記憶された釣銭第1候補テーブル302bの釣銭第1候補の値に該当するかどうかを判定する。釣銭第1候補抽出手段301は、変数(B)が釣銭第1候補の値に該当する場合、処理をステップS454に進める。釣銭第1候補抽出手段301は、変数(B)が釣銭第1候補の値に該当しない場合、処理をステップS455に進める。   [Step S453] The change first candidate extraction unit 301 determines whether the variable (B) corresponds to the value of the change first candidate in the change first candidate table 302b stored in the change first candidate storage unit 302. . If the variable (B) corresponds to the value of the first change candidate, the change first candidate extraction unit 301 advances the process to step S454. If the variable (B) does not correspond to the value of the first change candidate, the change first candidate extraction unit 301 advances the process to step S455.

[ステップS454]釣銭第1候補抽出手段301が、変数(B)を優先順位順釣銭候補記憶手段306の記憶領域(0)に格納する。
[ステップS455]釣銭第1候補抽出手段301が、変数(A)が500未満かどうかを判定する。釣銭第1候補抽出手段301は、変数(A)が500未満の場合、処理をステップS456に進める。釣銭第1候補抽出手段301は、変数(A)が500未満ではない場合、処理を終了する。
[Step S454] The change first candidate extraction unit 301 stores the variable (B) in the storage area (0) of the priority order change change candidate storage unit 306.
[Step S455] The change first candidate extraction unit 301 determines whether the variable (A) is less than 500. If the variable (A) is less than 500, the change first candidate extraction unit 301 advances the process to step S456. If the variable (A) is not less than 500, the change first candidate extraction unit 301 ends the process.

[ステップS456]釣銭第1候補抽出手段301が、500から変数(A)を引いた値を算出して変数(C)に格納する。
[ステップS457]釣銭第1候補抽出手段301が、変数(C)が釣銭第1候補記憶手段302に記憶された釣銭第1候補テーブル302bの釣銭第1候補の値に該当するかどうかを判定する。釣銭第1候補抽出手段301は、変数(C)が釣銭第1候補の値に該当する場合、処理をステップS458に進める。釣銭第1候補抽出手段301は、変数(C)が釣銭第1候補の値に該当しない場合、処理を終了する。
[Step S456] The change first candidate extraction unit 301 calculates a value obtained by subtracting the variable (A) from 500, and stores it in the variable (C).
[Step S457] The change first candidate extraction unit 301 determines whether the variable (C) corresponds to the value of the change first candidate in the change first candidate table 302b stored in the change first candidate storage unit 302. . If the variable (C) corresponds to the value of the first change candidate, the change first candidate extraction unit 301 advances the process to step S458. The change first candidate extraction unit 301 ends the process when the variable (C) does not correspond to the value of the change first candidate.

[ステップS458]釣銭第1候補抽出手段301が、変数(C)を優先順位順釣銭候補記憶手段306の記憶領域(1)に格納して処理を終了する。
次に、釣銭第3候補の抽出と格納の手順について説明する。釣銭第3候補の抽出と格納の手順は、第2の実施の形態と同様に、図16に示されるように、10円単位の釣銭候補の抽出と格納、5円単位の釣銭候補の抽出と格納、及び、1円を含む釣銭候補の抽出と格納を含む。
[Step S458] The change first candidate extraction means 301 stores the variable (C) in the storage area (1) of the priority order change change candidate storage means 306, and ends the process.
Next, a procedure for extracting and storing the third change change candidate will be described. As shown in FIG. 16, the procedure for extracting and storing the third change change is as follows. As shown in FIG. 16, the change candidate is extracted and stored in units of 10 yen, and the change candidate is extracted in units of 5 yen. This includes storing and extracting and storing change candidates including one yen.

図24〜図26は、第3の実施の形態に係るPOS端末の処理手順の一例を示すフローチャートである。
まず、10円単位の釣銭候補の抽出と格納の手順について、図24を用いて説明する。
24 to 26 are flowcharts illustrating an example of a processing procedure of the POS terminal according to the third embodiment.
First, procedures for extracting and storing change candidates in units of 10 yen will be described with reference to FIG.

[ステップS501]釣銭第3候補抽出手段303が、購入金額の合計の10の位を抽出し、抽出した値を10倍して変数(A)に格納する。
[ステップS502]釣銭第3候補抽出手段303が、100から変数(A)を引いた値を算出して変数(B)に格納する。
[Step S501] The change change third candidate extraction unit 303 extracts the tenth place of the total purchase amount, multiplies the extracted value by 10, and stores it in the variable (A).
[Step S502] The third change candidate extraction unit 303 calculates a value obtained by subtracting the variable (A) from 100 and stores the value in the variable (B).

[ステップS503]釣銭第3候補抽出手段303が、変数(B)が釣銭第3候補記憶手段304に記憶された釣銭第1候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、変数(B)が釣銭第3候補の値に該当する場合、処理をステップS504に進める。釣銭第3候補抽出手段303は、変数(B)が釣銭第3候補の値に該当しない場合、処理をステップS505に進める。   [Step S503] The third change candidate extraction unit 303 determines whether the variable (B) corresponds to the value of the third change candidate in the change first candidate table 304f stored in the third change candidate storage unit 304. . If the variable (B) corresponds to the value of the third change candidate, the third change candidate extraction unit 303 advances the process to step S504. If the variable (B) does not correspond to the value of the third change candidate, the third change candidate extraction unit 303 advances the process to step S505.

[ステップS504]釣銭第3候補抽出手段303が、変数(B)を優先順位順釣銭候補記憶手段306の記憶領域(15)に格納する。
[ステップS505]釣銭第3候補抽出手段303が、変数(A)が50かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)が50である場合、処理を終了する。釣銭第3候補抽出手段303は、変数(A)が50ではない場合、処理をステップS506に進める。
[Step S504] The third change candidate extraction unit 303 stores the variable (B) in the storage area (15) of the priority change change candidate storage unit 306.
[Step S505] The third change candidate extraction unit 303 determines whether the variable (A) is 50 or not. If the variable (A) is 50, the third change candidate extraction unit 303 ends the process. If the variable (A) is not 50, the third change candidate extraction unit 303 advances the process to step S506.

[ステップS506]釣銭第3候補抽出手段303が、変数(A)が50未満かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)が50未満である場合、処理をステップS508に進める。釣銭第3候補抽出手段303は、変数(A)が50未満ではない場合、処理をステップS507に進める。   [Step S506] The third change candidate extraction unit 303 determines whether the variable (A) is less than 50. If the variable (A) is less than 50, the third change candidate extraction unit 303 advances the process to step S508. If the variable (A) is not less than 50, the third change candidate extraction unit 303 advances the process to step S507.

[ステップS507]釣銭第3候補抽出手段303が、「50」を優先順位順釣銭候補記憶手段306の記憶領域(14)に格納して処理を終了する。
[ステップS508]釣銭第3候補抽出手段303が、50から変数(A)を引いた値を算出して変数(C)に格納する。
[Step S507] The third change candidate extraction unit 303 stores “50” in the storage area (14) of the priority order change candidate storage unit 306 and ends the process.
[Step S508] The third change candidate extraction unit 303 calculates a value obtained by subtracting the variable (A) from 50 and stores it in the variable (C).

[ステップS509]釣銭第3候補抽出手段303が、変数(C)が釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、変数(C)が釣銭第3候補の値に該当する場合、処理をステップS510に進める。釣銭第3候補抽出手段303は、変数(C)が釣銭第3候補の値に該当しない場合、処理を終了する。   [Step S509] The third change candidate extraction unit 303 determines whether the variable (C) corresponds to the value of the third change candidate in the change third candidate table 304f stored in the third change candidate storage unit 304. . If the variable (C) corresponds to the value of the third change candidate, the third change candidate extraction unit 303 advances the process to step S510. The change third candidate extraction unit 303 ends the process when the variable (C) does not correspond to the value of the change third candidate.

[ステップS510]釣銭第3候補抽出手段303が、変数(C)を優先順位順釣銭候補記憶手段306の記憶領域(14)に格納して処理を終了する。
次に、5円単位の釣銭候補の抽出と格納の手順について、図25を用いて説明する。
[Step S510] The third change candidate extraction unit 303 stores the variable (C) in the storage area (14) of the priority change change candidate storage unit 306, and ends the process.
Next, procedures for extracting and storing change candidates in units of 5 yen will be described with reference to FIG.

[ステップS551]釣銭第3候補抽出手段303が、購入金額の合計の1の位が5以上かどうかを判定する。釣銭第3候補抽出手段303は、購入金額の合計の1の位が5以上である場合、処理をステップS552に進める。釣銭第3候補抽出手段303は、購入金額の合計の1の位が5以上ではない場合、処理を終了する。   [Step S551] The third change candidate extraction unit 303 determines whether the 1's place of the total purchase price is 5 or more. The change 3rd candidate extraction means 303 advances a process to step S552, when the one of the sum total of the purchase amount is 5 or more. The change third candidate extraction unit 303 ends the process when the 1's place of the total purchase amount is not 5 or more.

[ステップS552]釣銭第3候補抽出手段303が、「5」を優先順位順釣銭候補記憶手段306の記憶領域(17)に格納する。
[ステップS553]釣銭第3候補抽出手段303が、購入金額の合計の下二桁の値を抽出し、抽出した値を変数(A)に格納する。
[Step S552] The third change extraction unit 303 for change changes stores “5” in the storage area (17) of the change candidate storage unit 306 in order of priority.
[Step S553] The third change candidate extraction unit 303 extracts the last two digits of the total purchase amount, and stores the extracted value in the variable (A).

[ステップS554]釣銭第3候補抽出手段303が、変数(A)に55を加えた値が100超150未満かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)に55を加えた値が100超150未満である場合、処理をステップS555に進める。釣銭第3候補抽出手段303は、変数(A)に55を加えた値が100超150未満ではない場合、処理をステップS556に進める。   [Step S554] The third change candidate extraction unit 303 determines whether the value obtained by adding 55 to the variable (A) is greater than 100 and less than 150. If the value obtained by adding 55 to the variable (A) is less than 150 and less than 150, the third change candidate extracting unit 303 advances the process to step S555. If the value obtained by adding 55 to the variable (A) is not greater than 100 and less than 150, the third change candidate extraction unit 303 advances the process to step S556.

[ステップS555]釣銭第3候補抽出手段303が、「55」を優先順位順釣銭候補記憶手段306の記憶領域(16)に格納する。
[ステップS556]釣銭第3候補抽出手段303が、100から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS557に進める。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理をステップS558に進める。
[Step S555] The third change candidate extracting unit 303 stores “55” in the storage area (16) of the priority order change candidate storing unit 306.
[Step S556] The third change candidate extraction unit 303 subtracts the variable (A) from 100 to obtain the change third candidate value in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 100 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S557. If the value obtained by subtracting the variable (A) from 100 does not correspond to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S558.

[ステップS557]釣銭第3候補抽出手段303が、ステップS556で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(18)に格納する。   [Step S557] The change change candidate extraction unit 303 stores the change change value determined to correspond to the change change candidate value in step S556 in the storage area (18) of the priority order change change candidate storage unit 306.

[ステップS558]釣銭第3候補抽出手段303が、50から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS559に進める。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理を終了する。   [Step S558] The value obtained by subtracting the variable (A) from 50 by the change third candidate extraction unit 303 becomes the value of the change third candidate in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 50 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S559. If the value obtained by subtracting the variable (A) from 50 does not correspond to the value of the third change candidate, the change third candidate extraction unit 303 ends the process.

[ステップS559]釣銭第3候補抽出手段303が、ステップS558で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(19)に格納して処理を終了する。   [Step S559] The change candidate extraction unit 303 stores the change candidate value determined to correspond to the change third candidate value in step S558 in the storage area (19) of the priority order change candidate storage unit 306 for processing. Exit.

次に、1円を含む釣銭候補の抽出と格納の手順について、図26を用いて説明する。
[ステップS601]釣銭第3候補抽出手段303が、購入金額の合計の1の位が4かどうかを判定する。釣銭第3候補抽出手段303は、購入金額の合計の1の位が4である場合、処理をステップS602に進める。釣銭第3候補抽出手段303は、購入金額の合計の1の位が4ではない場合、処理をステップS612に進める。
Next, a procedure for extracting and storing change candidates including one yen will be described with reference to FIG.
[Step S601] The third change candidate extraction unit 303 determines whether the 1's place of the total purchase amount is 4. The change 3rd candidate extraction means 303 advances a process to step S602, when the 1's place of the total of the purchase amount is 4. The change third candidate extraction unit 303 advances the process to step S612 when the 1's place of the total purchase amount is not 4.

[ステップS602]釣銭第3候補抽出手段303が、「6」を優先順位順釣銭候補記憶手段306の記憶領域(22)に格納する。さらに、釣銭第3候補抽出手段303が、「1」を優先順位順釣銭候補記憶手段306の記憶領域(23)に格納する。   [Step S <b> 602] The change third candidate extraction unit 303 stores “6” in the storage area (22) of the priority change change candidate storage unit 306. Furthermore, the change third candidate extraction unit 303 stores “1” in the storage area (23) of the priority order change candidate storage unit 306.

[ステップS603]釣銭第3候補抽出手段303が、購入金額の合計の下二桁の値を抽出し、抽出した値を変数(A)に格納する。
[ステップS604]釣銭第3候補抽出手段303が、変数(A)に51を加えた値が100超かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)に51を加えた値が100超である場合、処理をステップS605に進める。釣銭第3候補抽出手段303は、変数(A)に51を加えた値が100超ではない場合、処理をステップS606に進める。
[Step S603] The third change candidate extraction unit 303 extracts the last two digits of the total purchase price, and stores the extracted value in the variable (A).
[Step S604] The third change candidate extraction unit 303 determines whether the value obtained by adding 51 to the variable (A) is greater than 100. If the value obtained by adding 51 to the variable (A) is greater than 100, the third change candidate extracting unit 303 advances the process to step S605. If the value obtained by adding 51 to the variable (A) is not more than 100, the third change candidate extracting unit 303 advances the process to step S606.

[ステップS605]釣銭第3候補抽出手段303が、「51」を優先順位順釣銭候補記憶手段306の記憶領域(20)に格納する。
[ステップS606]釣銭第3候補抽出手段303が、変数(A)に11を加えた値が100超かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)に11を加えた値が100超である場合、処理をステップS607に進める。釣銭第3候補抽出手段303は、変数(A)に11を加えた値が100超ではない場合、処理をステップS608に進める。
[Step S605] The third change candidate extraction unit 303 stores “51” in the storage area (20) of the priority change change candidate storage unit 306.
[Step S606] The third change candidate extraction unit 303 determines whether the value obtained by adding 11 to the variable (A) is greater than 100. If the value obtained by adding 11 to the variable (A) is greater than 100, the third change candidate extracting unit 303 advances the process to step S607. If the value obtained by adding 11 to the variable (A) is not greater than 100, the third change candidate extracting unit 303 advances the process to step S608.

[ステップS607]釣銭第3候補抽出手段303が、「11」を優先順位順釣銭候補記憶手段306の記憶領域(21)に格納する。
[ステップS608]釣銭第3候補抽出手段303が、100から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS609に進める。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理をステップS610に進める。
[Step S <b> 607] The third change candidate extraction unit 303 stores “11” in the storage area (21) of the priority change change candidate storage unit 306.
[Step S608] The change third candidate extraction unit 303 subtracts the variable (A) from 100 to the change third candidate value in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 100 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S609. If the value obtained by subtracting the variable (A) from 100 does not correspond to the value of the change third candidate, the change third candidate extraction unit 303 advances the process to step S610.

[ステップS609]釣銭第3候補抽出手段303が、ステップS608で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(24)に格納する。   [Step S609] The change change candidate extraction unit 303 stores the change change value determined to correspond to the change change candidate value in step S608 in the storage area (24) of the priority order change change candidate storage unit 306.

[ステップS610]釣銭第3候補抽出手段303が、50から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS611に進める。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理を終了する。   [Step S610] The third change candidate extraction unit 303 subtracts the variable (A) from 50 to obtain the change third candidate value in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 50 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S611. If the value obtained by subtracting the variable (A) from 50 does not correspond to the value of the third change candidate, the change third candidate extraction unit 303 ends the process.

[ステップS611]釣銭第3候補抽出手段303が、ステップS610で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(25)に格納して処理を終了する。   [Step S611] The change change candidate extraction unit 303 stores the change candidate value determined to correspond to the value of the change 3 candidate in step S610 in the storage area (25) of the priority change change candidate storage unit 306 for processing. Exit.

[ステップS612]釣銭第3候補抽出手段303が、購入金額の合計の1の位が9かどうかを判定する。釣銭第3候補抽出手段303は、購入金額の合計の1の位が9である場合、処理をステップS613に進める。釣銭第3候補抽出手段303は、購入金額の合計の1の位が9ではない場合、処理を終了する。   [Step S612] The third change candidate extraction unit 303 determines whether the 1's place of the total purchase price is 9. The change third candidate extraction unit 303 advances the process to step S613 when the 1's place of the total purchase amount is 9. The change third candidate extraction unit 303 ends the process when the 1's place of the total purchase price is not 9.

[ステップS613]釣銭第3候補抽出手段303が、「1」を優先順位順釣銭候補記憶手段306の記憶領域(21)に格納する。
[ステップS614]釣銭第3候補抽出手段303が、購入金額の合計の下二桁の値を抽出し、抽出した値を変数(A)に格納する。
[Step S613] The third change candidate extraction unit 303 stores “1” in the storage area (21) of the priority change change candidate storage unit 306.
[Step S614] The third change candidate extraction unit 303 extracts the last two digits of the total purchase amount, and stores the extracted value in the variable (A).

[ステップS615]釣銭第3候補抽出手段303が、変数(A)に51を加えた値が100超150未満かどうかを判定する。釣銭第3候補抽出手段303は、変数(A)に51を加えた値が100超150未満である場合、処理をステップS616に進める。釣銭第3候補抽出手段303は、変数(A)に51を加えた値が100超150未満ではない場合、処理をステップS617に進める。   [Step S615] The third change candidate extraction unit 303 determines whether the value obtained by adding 51 to the variable (A) is greater than 100 and less than 150. If the value obtained by adding 51 to the variable (A) is less than 100 and less than 150, the third change candidate extracting unit 303 advances the process to step S616. If the value obtained by adding 51 to the variable (A) is not greater than 100 and less than 150, the third change candidate extraction unit 303 advances the process to step S617.

[ステップS616]釣銭第3候補抽出手段303が、「51」を優先順位順釣銭候補記憶手段306の記憶領域(20)に格納する。
[ステップS617]釣銭第3候補抽出手段303が、100から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS618に進める。釣銭第3候補抽出手段303は、100から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理をステップS619に進める。
[Step S616] The third change candidate extraction unit 303 stores “51” in the storage area (20) of the priority change change candidate storage unit 306.
[Step S617] The change third candidate extraction unit 303 subtracts the variable (A) from 100 to the change third candidate value in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 100 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S618. If the value obtained by subtracting the variable (A) from 100 does not correspond to the value of the change third candidate, the change third candidate extraction unit 303 advances the process to step S619.

[ステップS618]釣銭第3候補抽出手段303が、ステップS617で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(22)に格納する。   [Step S618] The change change candidate extraction unit 303 stores the change change value determined to correspond to the change change candidate value in step S617 in the storage area (22) of the priority order change change candidate storage unit 306.

[ステップS619]釣銭第3候補抽出手段303が、50から変数(A)を引いた値が、釣銭第3候補記憶手段304に記憶された釣銭第3候補テーブル304fの釣銭第3候補の値に該当するかどうかを判定する。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当する場合、処理をステップS620に進める。釣銭第3候補抽出手段303は、50から変数(A)を引いた値が釣銭第3候補の値に該当しない場合、処理を終了する。   [Step S619] The value obtained by subtracting the variable (A) from the change third candidate extraction unit 303 to 50 becomes the value of the third change candidate in the change third candidate table 304f stored in the change third candidate storage unit 304. Determine if applicable. If the value obtained by subtracting the variable (A) from 50 corresponds to the value of the third change candidate, the change third candidate extraction unit 303 advances the process to step S620. If the value obtained by subtracting the variable (A) from 50 does not correspond to the value of the third change candidate, the change third candidate extraction unit 303 ends the process.

[ステップS620]釣銭第3候補抽出手段303が、ステップS619で釣銭第3候補の値に該当すると判定した釣銭候補値を優先順位順釣銭候補記憶手段306の記憶領域(23)に格納して処理を終了する。   [Step S620] The change candidate extraction unit 303 stores the change candidate value determined to correspond to the value of the third change change in step S619 in the storage area (23) of the priority change change candidate storage unit 306 for processing. Exit.

第3の実施の形態においても、第2の実施の形態と同様に、釣銭に1円硬貨又は5円硬貨を含まない預かり金額候補を、優先順位を高くして顧客に提示することが可能となる。
即ち、釣銭が顧客の財布等の入れ物に溜まってしまう可能性を低減させる支払い金額を提示することが可能となる。
Also in the third embodiment, as in the second embodiment, it is possible to present a deposit amount candidate that does not include a 1-yen coin or a 5-yen coin to the customer with higher priority, as in the change. Become.
That is, it becomes possible to present a payment amount that reduces the possibility that change will accumulate in containers such as a customer's wallet.

なお、各実施の形態で示した以上の処理は、コンピュータに所定のプログラムを実行させることで実現できる。その場合、実現すべき処理内容を記述したプログラムが提供される。処理内容を記述したプログラムは、コンピュータ読み取り可能な記録媒体に記録しておくことができる。コンピュータ読み取り可能な記録媒体には、例えば、磁気記録装置、光ディスク、光磁気記録媒体、半導体メモリがある。磁気記録装置には、ハードディスク装置、フレキシブルディスク(FD)、磁気テープ(MT)等がある。光ディスクには、DVD(Digital Versatile Disc)、DVD−RAM、CD−ROM(Compact Disc - Read Only Memory)、CD−R(Recordable)、CD−RW(ReWritable)等がある。光磁気記録媒体には、MO(Magneto-Optical disk)等がある。   Note that the processing described above in each embodiment can be realized by causing a computer to execute a predetermined program. In that case, a program describing the processing contents to be realized is provided. The program describing the processing contents can be recorded on a computer-readable recording medium. Examples of the computer-readable recording medium include a magnetic recording device, an optical disk, a magneto-optical recording medium, and a semiconductor memory. Examples of the magnetic recording device include a hard disk device, a flexible disk (FD), and a magnetic tape (MT). Optical discs include DVD (Digital Versatile Disc), DVD-RAM, CD-ROM (Compact Disc-Read Only Memory), CD-R (Recordable), CD-RW (ReWritable), and the like. Magneto-optical recording media include MO (Magneto-Optical disk).

プログラムを流通させる場合、例えば、そのプログラムが記録されたDVD、CD−ROM等の可搬型記録媒体が販売される。また、プログラムをサーバコンピュータの記憶装置に格納しておき、ネットワークを介して、サーバコンピュータから他のコンピュータにプログラムを転送することもできる。   When distributing the program, for example, a portable recording medium such as a DVD or a CD-ROM in which the program is recorded is sold. It is also possible to store the program in a storage device of a server computer and transfer the program from the server computer to another computer via a network.

プログラムを実行するコンピュータは、例えば、可搬型記録媒体に記録されたプログラム又はサーバコンピュータから転送されたプログラムを、自己の記憶装置に格納する。そして、コンピュータは、自己の記憶装置からプログラムを読み取り、プログラムに従った処理を実行する。なお、コンピュータは、可搬型記録媒体から直接プログラムを読み取り、そのプログラムに従った処理を実行することもできる。また、コンピュータは、サーバコンピュータからプログラムが転送される毎に、逐次、受け取ったプログラムに従った処理を実行することもできる。   The computer that executes the program stores, for example, the program recorded on the portable recording medium or the program transferred from the server computer in its own storage device. Then, the computer reads the program from its own storage device and executes processing according to the program. The computer can also read the program directly from the portable recording medium and execute processing according to the program. In addition, each time the program is transferred from the server computer, the computer can sequentially execute processing according to the received program.

10 貨幣取引装置
11 入力手段
12 第1の釣銭候補抽出手段
13 第2の釣銭候補抽出手段
14 預かり金額候補算出手段
15 優先順位設定手段
16 出力手段
17 表示手段
DESCRIPTION OF SYMBOLS 10 Money transaction apparatus 11 Input means 12 1st change candidate extraction means 13 2nd change candidate extraction means 14 Deposit amount candidate calculation means 15 Priority order setting means 16 Output means 17 Display means

Claims (9)

コンピュータを、
購入金額における所定の金種を含まない金種単位の各値に対応付けて第1の釣銭候補と当該第1の釣銭候補の優先順位が設定され、記憶手段に格納される第1の釣銭候補テーブルを参照し、入力された購入金額に基づき、当該購入金額に対応する前記第1の釣銭候補を抽出する第1の釣銭候補抽出手段、
前記購入金額における所定の金種を含む金種単位の各値に対応付けて第2の釣銭候補と当該第2の釣銭候補の優先順位が設定され、前記記憶手段に格納される第2の釣銭候補テーブルを参照し、前記入力された購入金額に基づき、当該購入金額に対応する前記第2の釣銭候補を抽出する第2の釣銭候補抽出手段、
前記第1の釣銭候補抽出手段が抽出した前記第1の釣銭候補に基づき、第1の預かり金額候補を算出するとともに、前記第2の釣銭候補抽出手段が抽出した前記第2の釣銭候補に基づき、第2の預かり金額候補を算出する預かり金額候補算出手段、
前記預かり金額候補算出手段が算出した前記第1の預かり金額候補間の優先順位を対応する前記第1の釣銭候補の優先順位に基づいて設定するとともに、算出した前記第2の預かり金額候補間の優先順位を対応する前記第2の釣銭候補の優先順位に基づいて設定し、さらに、前記第1の預かり金額候補を、前記第2の預かり金額候補よりも優先順位を高くする優先順位設定手段、
前記預かり金額候補算出手段が算出した前記第1の預かり金額候補及び前記第2の預かり金額候補を、前記優先順位設定手段が設定した優先順位に基づいて、表示手段に表示させる出力手段、
として機能させることを特徴とする貨幣取引プログラム。
Computer
The first change candidate and the first change candidate stored in the storage means are set with the priority of the first change candidate and the first change candidate in association with each value of the denomination unit not including the predetermined denomination in the purchase amount. A first change candidate extracting means for referring to the table and extracting the first change candidate corresponding to the purchase price based on the input purchase price;
A second change candidate and a second change change stored in the storage means are set in correspondence with each value of a denomination unit including a predetermined denomination in the purchase amount, and a priority order of the second change candidate and the second change candidate is set. A second change candidate extracting unit that refers to a candidate table and extracts the second change candidate corresponding to the purchase price based on the input purchase price;
Based on the first change candidate said first change candidate extracting means has extracted, calculates the first deposit amount candidates, based on the second change candidate said second change candidate extracting means has extracted , amounts candidate calculation means Luggage to de San a second deposit amount of money candidates,
The priority between the first deposit amount candidates calculated by the deposit amount candidate calculation means is set based on the priority order of the corresponding first change candidate, and between the calculated second deposit amount candidates Priority setting means for setting the priority based on the priority of the corresponding second change candidate , and further setting the first deposit amount candidate to be higher in priority than the second deposit amount candidate;
Output means for causing the display means to display the first deposit amount candidate and the second deposit amount candidate calculated by the deposit amount candidate calculation means based on the priority order set by the priority order setting means;
A currency trading program characterized by functioning as
前記第1の釣銭候補テーブルは、前記第1の釣銭候補のうち、当該第1の釣銭候補に含まれる硬貨の枚数が所定値を超えるものを除外して設定され、The first change candidate table is set by excluding one of the first change candidates in which the number of coins included in the first change candidate exceeds a predetermined value,
前記第2の釣銭候補テーブルは、前記第2の釣銭候補のうち、当該第2の釣銭候補に含まれる硬貨の枚数が所定値を超えるものを除外して設定される、  The second change candidate table is set by excluding one of the second change candidates whose number of coins included in the second change candidate exceeds a predetermined value.
ことを特徴とする請求項1に記載の貨幣取引プログラム。  The money transaction program according to claim 1, wherein:
前記第1の釣銭候補テーブル及び前記第2の釣銭候補テーブルは、釣銭に含まれる硬貨の枚数が少ない順に前記第1の釣銭候補の優先順位及び前記第2の釣銭候補の優先順位の順位付けを行う、In the first change candidate table and the second change candidate table, the priority of the first change candidate and the priority of the second change candidate are ranked in ascending order of the number of coins included in the change. Do,
ことを特徴とする請求項1または2に記載の貨幣取引プログラム。  The money transaction program according to claim 1 or 2.
前記第1の釣銭候補テーブル及び前記第2の釣銭候補テーブルは、預かり金に含まれる硬貨の枚数が多い順に前記第1の釣銭候補の優先順位及び前記第2の釣銭候補の優先順位の順位付けを行う、In the first change candidate table and the second change candidate table, the priorities of the first change candidates and the priorities of the second change candidates are ranked in descending order of the number of coins included in the deposit. I do,
ことを特徴とする請求項1または2に記載の貨幣取引プログラム。  The money transaction program according to claim 1 or 2.
前記優先順位設定手段は、釣銭に前記所定の金種を含まない預かり金額候補を、第1の記憶領域と第2の記憶領域とを有する預かり金額候補記憶手段の前記第1の記憶領域に格納し、且つ、釣銭に前記所定の金種を含む預かり金額候補を前記第2の記憶領域に格納し、
前記出力手段は、前記第1の記憶領域に格納された預かり金額候補を、前記第2の記憶領域に格納された預かり金額候補よりも上位に位置するように、前記表示手段に表示させることを特徴とする請求項1〜4のいずれか1項に記載の貨幣取引プログラム。
The priority order setting means stores deposit amount candidates that do not include the predetermined denomination in change in the first storage area of the deposit amount candidate storage means having a first storage area and a second storage area. And storing the deposit amount candidate including the predetermined denomination in the change in the second storage area,
The output means causes the display means to display the deposit amount candidate stored in the first storage area so as to be positioned higher than the deposit amount candidate stored in the second storage area. The money transaction program according to any one of claims 1 to 4, characterized in that:
前記所定の金種は1円硬貨を含むことを特徴とする請求項1〜のいずれか1項に記載の貨幣取引プログラム。 The money transaction program according to any one of claims 1 to 5 , wherein the predetermined denomination includes a one-yen coin. 前記所定の金種は5円硬貨を含むことを特徴とする請求項1〜のいずれか1項に記載の貨幣取引プログラム。 The money transaction program according to any one of claims 1 to 6 , wherein the predetermined denomination includes a 5-yen coin. コンピュータが、
購入金額における所定の金種を含まない金種単位の各値に対応付けて第1の釣銭候補と当該第1の釣銭候補の優先順位が設定され、記憶手段に格納される第1の釣銭候補テーブルを参照し、入力された購入金額に基づき、当該購入金額に対応する前記第1の釣銭候補を抽出し、
前記購入金額における所定の金種を含む金種単位の各値に対応付けて第2の釣銭候補と当該第2の釣銭候補の優先順位が設定され、前記記憶手段に格納される第2の釣銭候補テーブルを参照し、前記入力された購入金額に基づき、当該購入金額に対応する前記第2の釣銭候補を抽出し、
抽出した前記第1の釣銭候補に基づき、第1の預かり金額候補を算出するとともに、前記第2の釣銭候補に基づき、第2の預かり金額候補を算出し、
算出した前記第1の預かり金額候補間の優先順位を対応する前記第1の釣銭候補の優先順位に基づいて設定するとともに、算出した前記第2の預かり金額候補間の優先順位を対応する前記第2の釣銭候補の優先順位に基づいて設定し、さらに、前記第1の預かり金額候補を、前記第2の預かり金額候補よりも優先順位を高くし、
算出した前記第1の預かり金額候補及び前記第2の預かり金額候補を、設定した優先順位に基づいて、表示手段に表示させる、
ことを特徴とする貨幣取引方法。
Computer
The first change candidate and the first change candidate stored in the storage means are set with the priority of the first change candidate and the first change candidate in association with each value of the denomination unit not including the predetermined denomination in the purchase amount. With reference to the table , based on the input purchase price, extract the first change candidate corresponding to the purchase price ,
A second change candidate and a second change change stored in the storage means are set in correspondence with each value of a denomination unit including a predetermined denomination in the purchase amount, and a priority order of the second change candidate and the second change candidate is set. With reference to the candidate table , based on the input purchase price, extract the second change candidate corresponding to the purchase price ,
Based on the extracted first change candidate, it calculates the first deposit amount candidates, based on the second change candidate issues calculate the second deposit amount candidates,
The calculated priority order between the first deposit amount candidates is set based on the priority order of the corresponding first change candidate, and the calculated priority order between the second deposit amount candidates is set. 2 based on the priority of the change change candidates , and the first deposit amount candidate is set to have a higher priority than the second deposit amount candidate,
Displaying the calculated first deposit amount candidate and the second deposit amount candidate on the display unit based on the set priority order;
A currency transaction method characterized by the above.
購入金額における所定の金種を含まない金種単位の各値に対応付けて第1の釣銭候補と当該第1の釣銭候補の優先順位が設定され、記憶手段に格納される第1の釣銭候補テーブルを参照し、入力された購入金額に基づき、当該購入金額に対応する前記第1の釣銭候補を抽出する第1の釣銭候補抽出手段と、
前記購入金額における所定の金種を含む金種単位の各値に対応付けて第2の釣銭候補と当該第2の釣銭候補の優先順位が設定され、前記記憶手段に格納される第2の釣銭候補テーブルを参照し、前記入力された購入金額に基づき、当該購入金額に対応する前記第2の釣銭候補を抽出する第2の釣銭候補抽出手段と、
前記第1の釣銭候補抽出手段が抽出した前記第1の釣銭候補に基づき、第1の預かり金額候補を算出するとともに、前記第2の釣銭候補抽出手段が抽出した前記第2の釣銭候補に基づき、第2の預かり金額候補を算出する預かり金額候補算出手段と、
前記預かり金額候補算出手段が算出した前記第1の預かり金額候補間の優先順位を対応する前記第1の釣銭候補の優先順位に基づいて設定するとともに、算出した前記第2の預かり金額候補間の優先順位を対応する前記第2の釣銭候補の前記優先順位に基づいて設定し、さらに、前記第1の預かり金額候補を、前記第2の預かり金額候補よりも優先順位を高くする優先順位設定手段と、
前記預かり金額候補算出手段が算出した前記第1の預かり金額候補及び前記第2の預かり金額候補を、前記優先順位設定手段が設定した優先順位に基づいて、表示手段に表示させる出力手段と、
を有することを特徴とする貨幣取引装置。
The first change candidate and the first change candidate stored in the storage means are set with the priority of the first change candidate and the first change candidate in association with each value of the denomination unit not including the predetermined denomination in the purchase amount. A first change candidate extracting means for referring to the table and extracting the first change candidate corresponding to the purchase price based on the input purchase price;
A second change candidate and a second change change stored in the storage means are set in correspondence with each value of a denomination unit including a predetermined denomination in the purchase amount, and a priority order of the second change candidate and the second change candidate is set. A second change candidate extracting means for referring to a candidate table and extracting the second change candidate corresponding to the purchase price based on the input purchase price;
Based on the first change candidate said first change candidate extracting means has extracted, calculates the first deposit amount candidates, based on the second change candidate said second change candidate extracting means has extracted , and the amount of money a candidate calculation means Luggage to de San a second deposit amount of money candidates,
The priority between the first deposit amount candidates calculated by the deposit amount candidate calculation means is set based on the priority order of the corresponding first change candidate, and between the calculated second deposit amount candidates Priority order setting means for setting a priority order based on the priority order of the corresponding second change candidate, and for setting the first deposit amount candidate higher than the second deposit amount candidate When,
Output means for causing the display means to display the first deposit amount candidate and the second deposit amount candidate calculated by the deposit amount candidate calculation unit based on the priority set by the priority order setting unit;
A currency transaction apparatus comprising:
JP2010047336A 2010-03-04 2010-03-04 Money transaction program, money transaction method, and money transaction apparatus Expired - Fee Related JP5486961B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010047336A JP5486961B2 (en) 2010-03-04 2010-03-04 Money transaction program, money transaction method, and money transaction apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010047336A JP5486961B2 (en) 2010-03-04 2010-03-04 Money transaction program, money transaction method, and money transaction apparatus

Publications (2)

Publication Number Publication Date
JP2011181027A JP2011181027A (en) 2011-09-15
JP5486961B2 true JP5486961B2 (en) 2014-05-07

Family

ID=44692432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010047336A Expired - Fee Related JP5486961B2 (en) 2010-03-04 2010-03-04 Money transaction program, money transaction method, and money transaction apparatus

Country Status (1)

Country Link
JP (1) JP5486961B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109690638A (en) * 2016-09-05 2019-04-26 瑞可利有限公司 Checkout processing system and recording medium on which control program is recorded

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08124029A (en) * 1994-10-28 1996-05-17 Tec Corp Commodity sale register data processor
JP4988412B2 (en) * 2007-04-16 2012-08-01 東芝テック株式会社 Product sales data processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109690638A (en) * 2016-09-05 2019-04-26 瑞可利有限公司 Checkout processing system and recording medium on which control program is recorded

Also Published As

Publication number Publication date
JP2011181027A (en) 2011-09-15

Similar Documents

Publication Publication Date Title
JP5390948B2 (en) Article providing apparatus and GUI providing method using the same
JP6730077B2 (en) Product registration processing system and product registration method
JP2019003699A (en) Settlement device and settlement support method
JP2005174313A (en) Method and apparatus for calculating economic value of patent or technology
JP2020140400A (en) Electronic currencies, programs and electronic currency trading systems
JP2017117169A (en) Touch panel input device and control program
JP5486961B2 (en) Money transaction program, money transaction method, and money transaction apparatus
JP4303003B2 (en) Stock investment trust management system, stock investment trust management method, and program
JP2013069212A (en) Sales merchandise registration system and method
JP6888797B2 (en) Information processing equipment, control methods, and programs
JP2012085935A (en) Prize management device
JP6533145B2 (en) Sales data processing device
JP2018106232A (en) Money calculator
JP2003281627A (en) Payment amount display method and its program
JP4782437B2 (en) Medal lending system, medal lending method and medal lending program
JP2021168191A (en) Touch panel input device and control program
JP2020184357A (en) Product registration processing system and product registration method
JP6163953B2 (en) Cash processing equipment
EP4220528A1 (en) Processing apparatus, processing method, and program
JP6870295B2 (en) Arithmetic logic unit, calculation method and program
JP2004185367A (en) Product investment system
JP4704023B2 (en) Gift certificate issuing device
JP4841229B2 (en) Counting machine, prize management device, counting method and prize exchange processing method
JP6916341B2 (en) Touch panel input device and control program
JP6111608B2 (en) Ticketing machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121011

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140122

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140224

R150 Certificate of patent or registration of utility model

Ref document number: 5486961

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees