JP7353890B2 - Product sales data processing device and control program - Google Patents

Product sales data processing device and control program Download PDF

Info

Publication number
JP7353890B2
JP7353890B2 JP2019170786A JP2019170786A JP7353890B2 JP 7353890 B2 JP7353890 B2 JP 7353890B2 JP 2019170786 A JP2019170786 A JP 2019170786A JP 2019170786 A JP2019170786 A JP 2019170786A JP 7353890 B2 JP7353890 B2 JP 7353890B2
Authority
JP
Japan
Prior art keywords
tax
payment
amount
data
category
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019170786A
Other languages
Japanese (ja)
Other versions
JP2021047726A (en
Inventor
好恭 岩崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2019170786A priority Critical patent/JP7353890B2/en
Publication of JP2021047726A publication Critical patent/JP2021047726A/en
Application granted granted Critical
Publication of JP7353890B2 publication Critical patent/JP7353890B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明の実施形態は、商品販売データ処理装置及びコンピュータを当該装置として機能させるための制御プログラムに関する。 Embodiments of the present invention relate to a product sales data processing device and a control program for causing a computer to function as the device.

我が国でも、商品の消費に対して税が課せられる税制に関して、飲料品又は食料品等のように生活に直接関与する商品の税率を他の商品よりも低く抑える、いわゆる軽減税率制度が導入される。軽減税率制度では、軽減税率の対象となる商品に対する税率は、対象とならない商品に対する通常税率よりも低くなる。このため、消費者が複数の商品をまとめて購入した場合、通常税率が適用される商品と軽減税率が適用される商品とが混在する場合があり得る。 In Japan, a so-called reduced tax rate system will be introduced with regard to the tax system in which taxes are levied on the consumption of products, which will lower the tax rate on products directly related to daily life, such as beverages and foodstuffs, than on other products. . Under the reduced tax rate system, the tax rate on products eligible for the reduced tax rate is lower than the regular tax rate on products that are not eligible. Therefore, when a consumer purchases multiple products at once, there may be a mix of products to which the normal tax rate is applied and products to which the reduced tax rate is applied.

一方、消費者による代金の支払方法には、現金、クレジットカード、電子マネー、商品券等が広く知られている。また、店舗若しくはその店舗を運営する企業体が発行した金券も支払方法の1つとなり得る。この種の金券としては、消費者が支払った対価に応じてポイントを付与するポイントサービス制度を導入している店舗又は企業体において、累積されたポイントと交換に発行される金券がある。この種の金券は、累積ポイントに応じた金額を額面金額として、商品券と同様に代金の支払いに充当できる。ただし、この種の金券は、税法上、店舗又は企業体の販促費として計上される。 On the other hand, cash, credit cards, electronic money, gift certificates, and the like are widely known as payment methods by consumers. Further, a cash voucher issued by the store or the corporate entity that operates the store may also be one of the payment methods. Examples of this type of coupon include coupons issued in exchange for accumulated points at stores or corporate entities that have introduced a point service system in which points are awarded according to the price paid by consumers. The face value of this type of gift certificate is an amount corresponding to the accumulated points, and it can be applied to payment in the same way as a gift certificate. However, for tax purposes, this type of coupon is recorded as a promotional expense for a store or corporate entity.

軽減税率制度が導入されるにあたり、特に、販促費として計上される支払方法については、通常税率対象の商品に対する支払金額の割合と軽減税率対象の商品に対する支払金額の割合とを求めることが望まれている。店舗又は企業体では、少なくとも販促費として計上される支払方法について、商品に課せられる税の種類毎に支払金額の割合を求めることにより、税管理が容易となるメリットがある。 When the reduced tax rate system is introduced, it is desirable to calculate the ratio of the payment amount for products subject to the normal tax rate and the ratio of the payment amount for products subject to the reduced tax rate, especially for payment methods recorded as sales promotion expenses. ing. For stores or corporate entities, there is an advantage in that tax management is facilitated by determining the proportion of the payment amount for each type of tax imposed on products, at least for payment methods recorded as sales promotion expenses.

特開2019-040442号公報JP2019-040442A

本発明の実施形態が解決しようとする課題は、少なくとも特定の支払方法について、商品に課せられる税の種類毎に支払金額の割合を求めることができる商品販売データ処理装置を提供しようとするものである。 The problem to be solved by the embodiments of the present invention is to provide a product sales data processing device that can calculate the proportion of the payment amount for each type of tax imposed on the product, at least for a specific payment method. be.

一実施形態において、商品販売データ処理装置は、合計手段と、金額取得手段と、計算手段と、算出手段と、出力手段と、データ取得手段とを備える。合計手段は、商品に課せられる税の種類を分類する税区分毎に商品の金額を合計する。金額取得手段は、商品に対する支払金額を取得する。計算手段は、合計手段により税区分毎に合計された金額の比で支払金額を計算する。算出手段は、計算手段により税区分毎に計算された支払金額からその税区分で特定される税の種類の税額を算出する。出力手段は、計算手段により税区分毎に計算された支払金額、または、算出手段により税区分毎に算出された税額の少なくとも一方を出力する。データ取得手段は、支払方法を分類する支払区分毎に、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータを記憶した記憶部から、金額取得手段により取得した支払金額に対する支払区分のデータを取得する。データ取得手段により取得したデータが特定の支払方法であることを示すデータである場合、その特定の支払方法による支払金額に対して、計算手段による計算処理と算出手段により算出処理とを実行する。
In one embodiment, the product sales data processing device includes a summation means, an amount acquisition means, a calculation means, a calculation means, an output means , and a data acquisition means . The summing means totals the amount of goods for each tax category that classifies the type of tax imposed on the goods. The amount acquisition means acquires the amount paid for the product. The calculation means calculates the payment amount based on the ratio of the amounts summed up for each tax category by the totalization means. The calculation means calculates the tax amount for the type of tax specified in the tax classification from the payment amount calculated for each tax classification by the calculation means. The output means outputs at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means. The data acquisition means acquires the data from a storage unit that stores data that identifies whether or not the payment method is a specific payment method for determining the percentage of the payment amount for each tax category for each payment category that classifies the payment method. Obtain payment classification data for payment amount. When the data acquired by the data acquisition means is data indicating a particular payment method, the calculation means performs a calculation process and the calculation means performs a calculation process on the payment amount by the particular payment method.

一実施形態に係るPOS端末の要部回路構成を示すブロック図。FIG. 1 is a block diagram showing a main circuit configuration of a POS terminal according to an embodiment. 商品ファイルに保存される商品レコードのデータ構造を示す模式図。A schematic diagram showing the data structure of a product record stored in a product file. 支払管理テーブルのデータ構造を示す模式図。A schematic diagram showing the data structure of a payment management table. POS端末のメインメモリに形成される主要なデータエリアを示す模式図。FIG. 2 is a schematic diagram showing main data areas formed in the main memory of a POS terminal. 登録商品テーブルエリアのデータ構造を示す模式図。A schematic diagram showing the data structure of a registered product table area. 支払い明細テーブルエリアのデータ構造を示す模式図。A schematic diagram showing the data structure of a payment details table area. プロセッサが制御プログラムに従って実行する1取引の主要な処理手順を示す流れ図。1 is a flowchart showing the main processing procedure of one transaction executed by a processor according to a control program. プロセッサが制御プログラムに従って実行する1取引の主要な処理手順を示す流れ図。1 is a flowchart showing the main processing procedure of one transaction executed by a processor according to a control program. 主要なデータエリアに記憶されるデータの一例を示す模式図。FIG. 3 is a schematic diagram showing an example of data stored in a main data area. レシートの一発行例を示す模式図。A schematic diagram showing an example of issuing a receipt.

以下、少なくとも特定の支払方法について、商品に課せられる税の種類毎に支払金額の割合を求めることができる商品販売データ処理装置の実施形態について、図面を用いて説明する。
なお、この実施形態では、食料品等の一部の商品に対しては軽減税率8%が適用され、その他の商品に対しては通常税率10%が適用される税制が導入された場合を例示する。そして、税額を含まない価格で販売される外税商品と、税額を含んだ価格で販売される内税商品とを混在して販売している店舗のPOS(Point Of Sales)端末を、商品販売データ処理装置の一態様とする。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a product sales data processing device that can calculate the proportion of the payment amount for each type of tax imposed on a product, at least for a specific payment method, will be described below with reference to the drawings.
In addition, this embodiment exemplifies the case where a tax system is introduced in which a reduced tax rate of 8% is applied to some products such as foodstuffs, and a regular tax rate of 10% is applied to other products. do. Then, POS (Point Of Sales) terminals of stores that sell a mix of tax-exclusive products sold at prices that do not include tax and tax-inclusive products that are sold at prices that include tax are used to sell products. This is one aspect of a data processing device.

図1は、本実施形態に係るPOS端末10の要部回路構成を示すブロック図である。POS端末10は、プロセッサ101、メインメモリ102、補助記憶デバイス103、時計104、釣銭機インターフェース105、通信インターフェース106、キーボード107、スキャナ108、第1ディスプレイ109、第2ディスプレイ110、プリンタ111及びシステム伝送路112を備える。システム伝送路112は、アドレスバス、データバス、制御信号線等を含む。システム伝送路112は、プロセッサ101と、メインメモリ102、補助記憶デバイス103、時計104、釣銭機インターフェース105、通信インターフェース106、キーボード107、スキャナ108、第1ディスプレイ109、第2ディスプレイ110及びプリンタ111とを相互に接続する。プロセッサ101、メインメモリ102及び補助記憶デバイス103がシステム伝送路112で接続されることにより、POS端末10のコンピュータが構成される。 FIG. 1 is a block diagram showing the main circuit configuration of a POS terminal 10 according to this embodiment. The POS terminal 10 includes a processor 101, main memory 102, auxiliary storage device 103, clock 104, change machine interface 105, communication interface 106, keyboard 107, scanner 108, first display 109, second display 110, printer 111, and system transmission. A path 112 is provided. The system transmission line 112 includes an address bus, a data bus, a control signal line, and the like. The system transmission path 112 connects the processor 101, main memory 102, auxiliary storage device 103, clock 104, change machine interface 105, communication interface 106, keyboard 107, scanner 108, first display 109, second display 110, and printer 111. connect each other. The computer of the POS terminal 10 is configured by connecting the processor 101, main memory 102, and auxiliary storage device 103 through a system transmission path 112.

プロセッサ101は、上記コンピュータの中枢部分に相当する。プロセッサ101は、オペレーティングシステム又はアプリケーションプログラムに従って、POS端末10としての各種の機能を実現するべく各部を制御する。プロセッサ101は、例えばCPU(Central Processing Unit)である。 Processor 101 corresponds to the central part of the computer. The processor 101 controls each part to realize various functions of the POS terminal 10 according to an operating system or an application program. The processor 101 is, for example, a CPU (Central Processing Unit).

メインメモリ102は、上記コンピュータの主記憶部分に相当する。メインメモリ102は、不揮発性のメモリエリアと揮発性のメモリエリアとを含む。メインメモリ102は、不揮発性のメモリエリアではオペレーティングシステム又はアプリケーションプログラムを記憶する。メインメモリ102は、プロセッサ101が各部を制御するための処理を実行する上で必要なデータを不揮発性又は揮発性のメモリエリアで記憶する場合もある。メインメモリ102は、揮発性のメモリエリアを、プロセッサ101によってデータが適宜書き換えられるワークエリアとして使用する。不揮発性のメモリエリアは、例えばROM(Read Only Memory)である。揮発性のメモリエリアは、例えばRAM(Random Access Memory)である。 Main memory 102 corresponds to the main memory portion of the computer. Main memory 102 includes a nonvolatile memory area and a volatile memory area. Main memory 102 is a nonvolatile memory area that stores an operating system or application programs. The main memory 102 may store data necessary for the processor 101 to execute processing for controlling each unit in a non-volatile or volatile memory area. The main memory 102 uses a volatile memory area as a work area in which data is appropriately rewritten by the processor 101. The nonvolatile memory area is, for example, a ROM (Read Only Memory). The volatile memory area is, for example, RAM (Random Access Memory).

補助記憶デバイス103は、上記コンピュータの補助記憶部分に相当する。例えばEEPROM(Electric Erasable Programmable Read-Only Memory)、HDD(Hard Disk Drive)、あるいはSSD(Solid State Drive)等が補助記憶デバイス103となり得る。補助記憶デバイス103は、プロセッサ101が各種の処理を行う上で使用するデータ、プロセッサ101での処理によって作成されたデータ等を保存する。補助記憶デバイス103は、上記のアプリケーションプログラムを記憶する場合もある。 The auxiliary storage device 103 corresponds to the auxiliary storage portion of the computer. For example, the auxiliary storage device 103 may be an EEPROM (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disk Drive), or an SSD (Solid State Drive). The auxiliary storage device 103 stores data used by the processor 101 in performing various processes, data created by processing by the processor 101, and the like. The auxiliary storage device 103 may also store the above application program.

メインメモリ102又は補助記憶デバイス103に記憶されるアプリケーションプログラムには、POS端末10で実行される情報処理に関して記述した制御プログラムが含まれる。制御プログラムをメインメモリ102又は補助記憶デバイス103にインストールする方法は特に限定されるものではない。リムーバブルな記録媒体に制御プログラムを記録して、あるいはネットワークを介した通信により制御プログラムを配信して、メインメモリ102又は補助記憶デバイス103にインストールすることができる。記録媒体は、CD-ROM,メモリカード等のようにプログラムを記憶でき、かつ装置が読み取り可能であれば、その形態は問わない。 The application programs stored in the main memory 102 or the auxiliary storage device 103 include control programs written regarding information processing executed by the POS terminal 10. The method of installing the control program into the main memory 102 or the auxiliary storage device 103 is not particularly limited. The control program can be recorded on a removable recording medium or distributed by communication via a network and installed in the main memory 102 or the auxiliary storage device 103. The recording medium may be in any form as long as it can store the program and is readable by the device, such as a CD-ROM or a memory card.

時計104は、POS端末10の時刻情報源として機能する。プロセッサ101は、時計104によって計時される時刻情報を基に、現在の日付及び時間を計時する。 The clock 104 functions as a time information source for the POS terminal 10. The processor 101 measures the current date and time based on time information measured by the clock 104.

釣銭機インターフェース105は、自動釣銭機との間でデータ通信を行う。釣銭機インターフェース105は、自動釣銭機から投入金額のデータ、貨幣収納枚数のデータ等を受信する。釣銭機インターフェース105は、釣銭データを自動釣銭機へと送信する。 The change machine interface 105 performs data communication with an automatic change machine. The change machine interface 105 receives data on the amount inserted, data on the number of coins stored, etc. from the automatic change machine. The change machine interface 105 transmits change data to an automatic change machine.

通信インターフェース106は、有線LAN(Local Area Network)又は無線LAN等のネットワークを介して接続される店舗サーバ20との間でデータ通信を行う。店舗サーバ20は、商品ファイル21及び支払管理テーブル22を備える。商品ファイル21及び支払管理テーブル22は、店舗サーバ20が内蔵する記憶装置に形成されていてもよいし、店舗サーバ20の外部に接続された記憶装置に形成されていてもよい。 The communication interface 106 performs data communication with the store server 20 connected via a network such as a wired LAN (Local Area Network) or a wireless LAN. The store server 20 includes a product file 21 and a payment management table 22. The product file 21 and the payment management table 22 may be formed in a storage device built into the store server 20, or may be formed in a storage device connected to the outside of the store server 20.

商品ファイル21は、商品レコード21R(図2を参照)を保存する。商品レコード21Rは、商品毎に作成される。商品レコード21Rの主要なデータ構造を図2の模式図で表す。図2に示すように、商品レコード21Rは、商品コード、商品名、単価、税区分、属性等の項目のデータを含む。 The product file 21 stores product records 21R (see FIG. 2). The product record 21R is created for each product. The main data structure of the product record 21R is shown in the schematic diagram of FIG. As shown in FIG. 2, the product record 21R includes data on items such as a product code, product name, unit price, tax classification, and attributes.

商品コードは、各商品を識別するために商品毎に設定された固有のコードである。通常、各商品には、商品コードをバーコード化したバーコードシンボル、若しくは二次元コード化した二次元コードシンボルが付されている。あるいは、商品コードを記憶したRFID(Radio Frequency Identification)タグが付されていてもよい。POS端末10は、上記のバーコードシンボル、2次元コードシンボル又はRFIDタグのデータを読取装置で読み取ることで、商品の販売データを登録処理することができる。 The product code is a unique code set for each product to identify each product. Usually, each product is attached with a barcode symbol that is a barcode of a product code, or a two-dimensional code symbol that is a two-dimensional code. Alternatively, an RFID (Radio Frequency Identification) tag storing a product code may be attached. The POS terminal 10 can register product sales data by reading the data of the barcode symbol, two-dimensional code symbol, or RFID tag with a reading device.

商品名及び単価は、商品コードで識別される商品の名称及び1点当たりの価格である。以下、商品コードで識別される商品を当該商品と表す。 The product name and unit price are the name of the product identified by the product code and the price per item. Hereinafter, the product identified by the product code will be referred to as the product.

税区分は、当該商品に課せられる税の種類を分類する値である。税の種類には、外税8%、外税10%、内税8%、及び内税10%がある。外税8%は、軽減税率8%が適用された外税商品の区分であり、本実施形態では、その税区分を“1”とする。外税10%は、通常税率10%が適用された外税商品の区分であり、本実施形態では、その税区分を“2”とする。内税8%は、軽減税率8%が適用された内税商品の区分であり、本実施形態では、その税区分を“3”とする。内税10%は、通常税率10%が適用された内税商品の区分であり、本実施形態では、その税区分を“4”とする。 The tax classification is a value that classifies the type of tax imposed on the product. The types of taxes include 8% exclusive tax, 10% exclusive tax, 8% inclusive tax, and 10% inclusive tax. 8% excluding tax is a classification of tax-excluded products to which a reduced tax rate of 8% is applied, and in this embodiment, the tax classification is set to "1". 10% non-tax is a classification of non-tax products to which the normal tax rate of 10% is applied, and in this embodiment, the tax classification is "2". 8% tax included is a category of tax-inclusive products to which a reduced tax rate of 8% is applied, and in this embodiment, the tax category is "3". 10% tax included is a category of tax-inclusive products to which the normal tax rate of 10% is applied, and in this embodiment, the tax category is "4".

属性は、軽減税率制度の対象となる商品なのか否かを識別する情報である。本実施形態の場合、飲料品又は食料品が軽減税率制度の対象となる。このため、飲料品又は食料品の属性は、軽減税率制度の対象となる商品であることを示す情報となる。その他の商品の属性は、軽減税率制度の対象とならない商品であることを示す情報となる。 The attribute is information that identifies whether or not the product is subject to the reduced tax rate system. In the case of this embodiment, beverages or foods are subject to the reduced tax rate system. Therefore, the attributes of a beverage or food item are information indicating that the item is subject to the reduced tax rate system. Other product attributes are information indicating that the product is not subject to the reduced tax rate system.

支払管理テーブル22は、図3に示すように、代金の支払方法を分類する支払区分毎に、支払名称と特定フラグの情報が記憶されたデータテーブルである。本実施形態では、支払方法として、現金、クレジットカード、電子マネー、商品券、第1買物券、第2買物券の6種類を例示する。そして、現金に対する支払区分を“1”、クレジットカードに対する支払区分を“2”、電子マネーに対する支払区分を“3”、商品券に対する支払区分を“4”、第1買物券に対する支払区分を“5”、第2買物券に対する支払区分を“6”とする。因みに、第1買物券とは、累積ポイントに応じた金額を額面金額とした金券である。第2買物券とは、優良顧客に対して店舗又はその店舗を運営する企業体から発行される一定金額の金券である。なお、第1買物券及び第2買物券の定義については、これに限定されるものではない。税法上、券の発行元である店舗又は企業体において、販促費として計上される金券であればよい。 As shown in FIG. 3, the payment management table 22 is a data table that stores information on payment names and specific flags for each payment category that classifies payment methods. In this embodiment, six types of payment methods are illustrated: cash, credit card, electronic money, gift certificate, first shopping ticket, and second shopping ticket. Then, the payment classification for cash is "1", the payment classification for credit card is "2", the payment classification for electronic money is "3", the payment classification for gift certificate is "4", and the payment classification for the first shopping ticket is "". 5”, and the payment classification for the second shopping ticket is “6”. Incidentally, the first shopping ticket is a cash ticket whose face value is an amount corresponding to accumulated points. The second shopping ticket is a cash voucher for a certain amount of money issued to a good customer by a store or a corporate entity that operates the store. Note that the definitions of the first shopping ticket and the second shopping ticket are not limited to these. Under tax law, any gift certificate can be used as long as it is recorded as a promotional expense by the store or corporate entity that issued the certificate.

支払名称は、対応する支払区分で分類される支払方法を表す名称である。
特定フラグは、対応する支払区分で分類される支払方法が、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するための1ビットデータである。例示した6種目の支払方法のうち、第1買物券又は第2買物券のように販促費として計上される金券は、税区分別に支払金額の割合を求めることが望まれている。すなわち第1買物券又は第2買物券は、特定の支払方法に相当する。本実施形態では、特定の支払方法を示す特定フラグを“1”とし、特定の支払方法以外を示す特定フラグを“0”とする。
The payment name is a name representing the payment method classified by the corresponding payment category.
The specific flag is 1-bit data for identifying whether the payment method classified by the corresponding payment category is a specific payment method for calculating the proportion of the payment amount for each tax category. Among the six types of payment methods illustrated, it is desirable to calculate the proportion of the payment amount by tax category for cash vouchers that are recorded as sales promotion expenses, such as the first shopping ticket or the second shopping ticket. That is, the first shopping ticket or the second shopping ticket corresponds to a specific payment method. In this embodiment, a specific flag indicating a specific payment method is set to "1", and a specific flag indicating a payment method other than the specific payment method is set to "0".

図1の説明に戻る。
キーボード107は、点数、金額等の数値を置数するための置数キーの他、乗算キー、小計キー、締めキー等の種々のファンクションキーを配設した専用の入力デバイスである。キーボード107は、汎用のキーボードの任意のキーに、POS端末10で必要な機能を割り付けたものであってもよい。締めキーは、支払方法別に設けられている。すなわち、現金に対応した第1締めキー、クレジットカードに対応した第2締めキー、電子マネーに対応した第3締めキー、商品券に対応した第4締めキー、第1買物券に対応した第5締めキー、及び、第2買物券に対応した第6締めキーがキーボード107に配設されている。
Returning to the explanation of FIG.
The keyboard 107 is a dedicated input device that is provided with various function keys such as a multiplication key, a subtotal key, and a closing key in addition to a number key for entering numerical values such as points and amounts. The keyboard 107 may be a general-purpose keyboard with functions necessary for the POS terminal 10 assigned to arbitrary keys. Closing keys are provided for each payment method. That is, the first closing key corresponds to cash, the second closing key corresponds to credit card, the third closing key corresponds to electronic money, the fourth closing key corresponds to gift certificate, and the fifth closing key corresponds to first shopping ticket. A closing key and a sixth closing key corresponding to the second shopping ticket are arranged on the keyboard 107.

スキャナ108は、バーコード、二次元コード等のコードシンボルを読み取る読取装置の一例である。スキャナ108は、レーザ光の走査によりコードシンボルを読み取るタイプであってもよいし、撮像デバイスで撮像した画像からコードシンボルを読み取るタイプであってもよい。キーボード107及びスキャナ108は、POS端末10の入力デバイスとして機能する。 The scanner 108 is an example of a reading device that reads code symbols such as barcodes and two-dimensional codes. The scanner 108 may be of a type that reads code symbols by scanning with laser light, or may be of a type that reads code symbols from an image captured by an imaging device. The keyboard 107 and scanner 108 function as input devices for the POS terminal 10.

第1ディスプレイ109は、オペレータである店員に対して情報の表示を行う。第2ディスプレイ110は、客である消費者に対して情報の表示を行う。この種の表示デバイスとしては、例えば液晶ディスプレイ、有機EL(Electroluminescence)ディスプレイ等を利用できる。第1ディスプレイ109又は第2ディスプレイ110の少なくとも一方は、タッチパネルであってもよい。第1ディスプレイ109及び第2ディスプレイ110は、POS端末10の表示デバイスとして機能する。 The first display 109 displays information to a store clerk who is an operator. The second display 110 displays information to consumers who are customers. As this type of display device, for example, a liquid crystal display, an organic EL (Electroluminescence) display, etc. can be used. At least one of the first display 109 and the second display 110 may be a touch panel. The first display 109 and the second display 110 function as display devices of the POS terminal 10.

プリンタ111は、レシート用紙に対して各種の文字列又は画像等を印刷することにより、レシートを発行する。この種のプリンタ111としては、例えばサーマルプリンタ又はドットインパクトプリンタ等を利用できる。プリンタ111は、POS端末10の印刷デバイスとして機能する。 The printer 111 issues a receipt by printing various character strings or images on receipt paper. As this type of printer 111, for example, a thermal printer or a dot impact printer can be used. The printer 111 functions as a printing device for the POS terminal 10.

図4は、メインメモリ102に形成される主要なデータエリアを示す模式図である。データエリアは、登録商品テーブルエリア31、税区分テーブルエリア32、税込み合計金額エリア33、支払い明細テーブルエリア34、及び、支払合計金額エリア35を含む。各データエリアは、揮発性のメモリエリアに確保されている。 FIG. 4 is a schematic diagram showing main data areas formed in the main memory 102. The data area includes a registered product table area 31, a tax classification table area 32, a total amount including tax area 33, a payment details table area 34, and a total payment amount area 35. Each data area is secured in a volatile memory area.

登録商品テーブルエリア31は、1取引として売り上げる商品の明細データを記述するためのエリアである。登録商品テーブルエリア31は、図5に示すように、一連の登録番号と関連付けて、商品コード、商品名、単価、税区分及び属性を含む商品データを記述するためのエリアと、販売点数P(P1,P2,P3,…)及び販売金額Q(Q1,Q2,Q3,…)を記述するためのエリアとを有する。また、登録商品テーブルエリア31は、1取引として売り上げる商品の販売点数Pを合算した合計点数P0を記述するためのエリアと、同商品の販売金額Qを合算した合計金額Q0を記述するためのエリアと、を有する。 The registered product table area 31 is an area for describing detailed data of products sold as one transaction. As shown in FIG. 5, the registered product table area 31 includes an area for describing product data including a product code, product name, unit price, tax classification, and attributes in association with a series of registration numbers, and an area for describing product data including a product code, product name, unit price, tax classification, and attributes, and a sales number P( P1, P2, P3,...) and an area for writing the sales amount Q (Q1, Q2, Q3,...). Additionally, the registered product table area 31 includes an area for writing the total score P0 that is the sum of the sales numbers P of products sold as one transaction, and an area for writing the total amount Q0 that is the sum of the sales amount Q of the same product. and has.

税区分テーブルエリア32は、1取引として売り上げる商品の販売金額Qをその商品に課せられる税の税区分別に集計するためのエリアである。税区分テーブルエリア32は、税区分“1”,“2”,“3”,“4”毎に合計金額A1,A2,A3,A4と税額B1,B2,B,B3,B4とを記述するためのエリアを有する。 The tax classification table area 32 is an area for tabulating the sales amount Q of products sold in one transaction by tax classification of tax imposed on the products. The tax classification table area 32 describes total amounts A1, A2, A3, A4 and tax amounts B1, B2, B, B3, B4 for each tax classification "1", "2", "3", "4". It has an area for

税込み合計金額エリア33は、1取引として売り上げる商品の税込み合計金額Cを記述するための領域である。税込み合計金額Cは、1取引として売り上げる商品の合計金額Q0と、当該商品のうち外税商品に課せられる税の税額とを合算して算出される。 The tax-inclusive total amount area 33 is an area for describing the tax-inclusive total amount C of products sold as one transaction. The total amount including tax C is calculated by adding up the total amount Q0 of products sold in one transaction and the amount of tax imposed on tax-excluded products among the products.

支払い明細テーブルエリア34は、1取引に対する支払データを記述するためのエリアである。支払い明細テーブルエリア34は、図6に示すように、“1”~“6”の支払区分毎に、支払金額E1~E6と、税区分“1”~“4”毎の金額G11~G41、G21~G42、G13~G43、G14~G44、G15~G45、G16~G46、及び、税額H11~H41、H21~H42、H13~H43、H14~H44、H15~H45、H16~H46とを記述するためのエリアを有する。 The payment details table area 34 is an area for describing payment data for one transaction. As shown in FIG. 6, the payment details table area 34 includes payment amounts E1 to E6 for each payment classification from "1" to "6", amounts G11 to G41 for each tax classification from "1" to "4", and Describe G21-G42, G13-G43, G14-G44, G15-G45, G16-G46, and tax amount H11-H41, H21-H42, H13-H43, H14-H44, H15-H45, H16-H46 It has an area for

支払合計金額エリア35は、1取引に対する支払方法が1種類の場合には、その支払金額が支払合計金額Dとして記述され、支払方法が2種類以上の場合には、各支払金額の合計額が支払合計金額Dとして記述されるエリアである。 In the total payment amount area 35, if there is one type of payment method for one transaction, the payment amount is described as the total payment amount D, and if there are two or more payment methods, the total amount of each payment amount is described. This is an area described as the total payment amount D.

図7及び図8は、プロセッサ101が制御プログラムに従って実行する1取引の主要な処理手順を示す流れ図である。以下、各図を用いてPOS端末10の主要な動作について説明する。なお、以下に説明する動作の内容は一例である。同様な結果が得られるのであればその処理手順などは特に限定されるものではない。 7 and 8 are flowcharts showing the main processing steps of one transaction executed by the processor 101 according to the control program. Hereinafter, the main operations of the POS terminal 10 will be explained using each figure. Note that the content of the operation described below is an example. The processing procedure is not particularly limited as long as similar results can be obtained.

1取引の商品登録を開始するに先立ち、プロセッサ101は、ACT1として初期化を行う。この初期化により、登録商品テーブルエリア31、税区分テーブルエリア32、税込み合計金額エリア33、支払い明細テーブルエリア34及び支払合計金額エリア35がクリアされる。 Prior to starting product registration for one transaction, the processor 101 performs initialization as ACT1. By this initialization, the registered product table area 31, tax category table area 32, total amount including tax area 33, payment details table area 34, and total amount paid area 35 are cleared.

初期化を終えると、プロセッサ101は、ACT2として1取引として売り上げる商品の商品コードが入力されるのを待ち受ける。そして、キーボード107又はスキャナ108の入力デバイスを介して商品コードが入力されると、プロセッサ101は、ACT2においてYESと判定し、ACT3へと進む。プロセッサ101は、ACT3としてその商品コードで識別される商品の商品データを取得する。すなわちプロセッサ101は、店舗サーバ20に対して商品データの問合せを行う。この問合せにより、店舗サーバ20では、商品ファイル21が検索される。そして、当該商品コードを含む商品レコード21Rに記述された商品データが、問合せ元のPOS端末10へと送信される。かくしてプロセッサ101は、商品データを取得することができる。商品データには、商品コード、商品名、単価、税区分、属性等が含まれている。 When the initialization is completed, the processor 101 waits for the product code of the product to be sold as one transaction to be input in ACT2. Then, when the product code is input via the input device of the keyboard 107 or the scanner 108, the processor 101 determines YES in ACT2 and proceeds to ACT3. The processor 101 obtains product data of the product identified by the product code as ACT3. That is, the processor 101 makes an inquiry to the store server 20 regarding product data. Based on this inquiry, the store server 20 searches the product file 21. Then, the product data described in the product record 21R including the product code is transmitted to the POS terminal 10 that is the inquiry source. In this way, the processor 101 can acquire product data. The product data includes a product code, product name, unit price, tax classification, attributes, etc.

商品データを取得したプロセッサ101は、ACT4としてその商品データに基づいて商品販売データを生成する。すなわちプロセッサ101は、商品データに含まれる単価に販売点数Pを乗算して販売金額Qを算出する。販売点数Pは、商品コードが入力される直前にキーボード107のテンキーと乗算キーとによって乗数が入力されている場合にはその乗数とし、乗数が入力されていない場合には“1”とする。そしてプロセッサ101は、商品データの商品コード、商品名、単価、税区分、属性に、販売点数P及び販売金額Qを付加して、商品販売データを生成する。 The processor 101 that has acquired the product data generates product sales data based on the product data as ACT4. That is, the processor 101 calculates the sales amount Q by multiplying the unit price included in the product data by the number of sales items P. The number of sales items P is set to the multiplier when the multiplier is input using the ten keys and the multiplication key of the keyboard 107 immediately before the product code is input, and is set to "1" when the multiplier is not input. Then, the processor 101 adds the number of sales P and the sales amount Q to the product code, product name, unit price, tax category, and attributes of the product data to generate product sales data.

商品販売データを生成し終えると、プロセッサ101は、ACT5としてその商品販売データを登録商品テーブルエリア31に登録する。このときプロセッサ101は、登録番号の小さい順に商品販売データを登録する。 After generating the product sales data, the processor 101 registers the product sales data in the registered product table area 31 as ACT5. At this time, the processor 101 registers the product sales data in descending order of registration number.

商品販売データの登録を終えると、プロセッサ101は、ACT6としてその商品販売データから税区分mと販売金額Qとを取得する。そしてプロセッサ101は、ACT7として税区分テーブルエリア32の当該税区分mに対応した合計金額Amに、販売金額Qを加算する。 After completing the registration of the product sales data, the processor 101 obtains the tax category m and the sales amount Q from the product sales data in ACT6. Then, in ACT7, the processor 101 adds the sales amount Q to the total amount Am corresponding to the tax category m in the tax category table area 32.

その後、プロセッサ101は、ACT8として次の商品コードが入力されたか否かを確認する。商品コードが入力されていない場合、プロセッサ101は、ACT8においてNOと判定し、ACT9へと進む。プロセッサ101は、ACT9として小計キーが入力されたか否かを確認する。小計キーが入力されていない場合、プロセッサ101は、ACT9においてNOと判定し、ACT8へと戻る。ここにプロセッサ101は、ACT8又はACT9として商品コードが入力されるか小計キーが入力されるのを待ち受ける。 Thereafter, the processor 101 checks whether the next product code has been input in ACT8. If the product code has not been input, the processor 101 determines NO in ACT8, and proceeds to ACT9. The processor 101 checks whether the subtotal key has been input in ACT9. If the subtotal key has not been input, the processor 101 determines NO in ACT9 and returns to ACT8. Here, the processor 101 waits for a product code to be input or a subtotal key to be input in ACT8 or ACT9.

ACT8又はACT9の待ち受け状態において、商品コードが入力されると、プロセッサ101は、ACT8においてYESと判定し、ACT3へと戻る。以後、プロセッサ101は、ACT3乃至ACT7の処理を前述したのと同様に実行する。そしてプロセッサ101は、ACT8又はACT9の待ち受け状態に戻る。 When a product code is input in the standby state of ACT8 or ACT9, the processor 101 determines YES in ACT8 and returns to ACT3. Thereafter, the processor 101 executes the processes of ACT3 to ACT7 in the same manner as described above. The processor 101 then returns to the standby state in ACT8 or ACT9.

ACT8又はACT9の待ち受け状態において、小計キーが入力された場合には、プロセッサ101は、ACT9においてYESと判定し、ACT10へと進む。プロセッサ101は、ACT10として税区分テーブルエリア32の税額B1~B4を、以下の(1)~(4)式により算出する。なお、小数点以下は四捨五入する。 If the subtotal key is input in the standby state of ACT8 or ACT9, the processor 101 determines YES in ACT9 and proceeds to ACT10. As ACT10, the processor 101 calculates the tax amounts B1 to B4 in the tax category table area 32 using the following equations (1) to (4). Note that numbers below the decimal point are rounded off.

B1=A1*0.08 …(1)
B2=A2*0.1 …(2)
B3=A3-(A3/1.08) …(3)
B4=A4-(A4/1.1) …(4)
税額B1~B4を算出し終えると、プロセッサ101は、ACT11として税込み合計金額Cを、以下の(5)式により算出する。
B1=A1*0.08…(1)
B2=A2*0.1…(2)
B3=A3-(A3/1.08)...(3)
B4=A4-(A4/1.1)...(4)
After calculating the tax amounts B1 to B4, the processor 101 calculates the total tax-included amount C as ACT11 using the following equation (5).

C=Q0+B1+B2 …(5)
税込み合計金額Cを算出し終えると、プロセッサ101は、その税込み合計金額Cを第1ディスプレイ109及び第2ディスプレイ110に表示する。
C=Q0+B1+B2...(5)
After calculating the total amount C including tax, the processor 101 displays the total amount C including tax on the first display 109 and the second display 110.

その後、プロセッサ101は、ACT13として商品コードが入力されたか否かを確認する。商品コードが入力されていない場合、プロセッサ101は、ACT13においてNOと判定し、ACT14へと進む。プロセッサ101は、ACT14として支払いデータが入力されたか否かを確認する。支払いデータが入力されていない場合、プロセッサ101は、ACT14においてNOと判定し、ACT13へと戻る。ここにプロセッサ101は、ACT13又はACT14として商品コードが入力されるか支払いデータが入力されるのを待ち受ける。 Thereafter, the processor 101 checks whether a product code has been input in ACT13. If the product code has not been input, the processor 101 determines NO in ACT13, and proceeds to ACT14. The processor 101 checks whether payment data has been input in ACT14. If payment data has not been input, the processor 101 determines NO in ACT14 and returns to ACT13. Here, the processor 101 waits for a product code to be input or payment data to be input in ACT13 or ACT14.

ACT13又はACT14の待ち受け状態において、商品コードが入力されると、プロセッサ101は、ACT13においてYESと判定し、ACT3へと戻る。以後、プロセッサ101は、ACT3乃至ACT7の処理を前述したのと同様に実行する。そしてプロセッサ101は、ACT8又はACT9の待ち受け状態に戻る。 When a product code is input in the standby state of ACT13 or ACT14, the processor 101 determines YES in ACT13 and returns to ACT3. Thereafter, the processor 101 executes the processes of ACT3 to ACT7 in the same manner as described above. The processor 101 then returns to the standby state in ACT8 or ACT9.

ACT13又はACT14の待ち受け状態において、いずれかの締めキーが操作されて支払方法と支払金額とを含む支払いデータが入力されると、プロセッサ101は、ACT14においてYESと判定し、図8のACT21へと進む。プロセッサ101は、ACT21としてその支払方法に対応した支払区分nと、支払金額Enとを取得する。そしてプロセッサ101は、ACT22として支払い明細テーブルエリア34の、当該支払区分nに対応した支払金額エリアに支払金額Enを記述する。またプロセッサ101は、ACT23としてその支払金額Enを支払合計金額エリア35に加算して、支払合計金額Dを算出する。 In the standby state of ACT13 or ACT14, when any closing key is operated and payment data including the payment method and payment amount is input, the processor 101 determines YES in ACT14 and proceeds to ACT21 in FIG. move on. The processor 101 obtains the payment category n and the payment amount En corresponding to the payment method as ACT21. Then, the processor 101 writes the payment amount En in the payment amount area corresponding to the payment category n in the payment details table area 34 as ACT22. Further, the processor 101 adds the payment amount En to the payment total amount area 35 in ACT 23 to calculate the payment total amount D.

プロセッサ101は、ACT24として支払合計金額Dが税込み合計金額C以上になったか否かを確認する。支払合計金額Dが税込み合計金額C未満の場合、支払いは完了していない。プロセッサ101は、ACT24においてNOと判定し、ACT25へと進む。プロセッサ101は、税込み合計金額Cから支払合計金額Dを減額して得られる残金を第1ディスプレイ109及び第2ディスプレイ110に表示する。そしてプロセッサ101は、ACT26として支払いデータが入力されるのを待ち受ける。 In ACT 24, the processor 101 checks whether the total payment amount D is equal to or greater than the tax-included total amount C. If the total payment amount D is less than the tax-included total amount C, the payment has not been completed. The processor 101 determines NO in ACT24, and proceeds to ACT25. The processor 101 displays the remaining amount obtained by subtracting the total payment amount D from the total amount C including tax on the first display 109 and the second display 110. The processor 101 then waits for payment data to be input as ACT26.

支払いデータが入力されると、プロセッサ101は、ACT26においてYESと判定し、ACT21へと戻る。そしてプロセッサ101は、ACT21乃至ACT24の処理を前述したのと同様に実行する。 When the payment data is input, the processor 101 determines YES in ACT26 and returns to ACT21. The processor 101 then executes the processes ACT21 to ACT24 in the same manner as described above.

支払合計金額Dが税込み合計金額C以上になると、支払いは完了となる。プロセッサ101はACT24においてYESと判定し、ACT27へと進む。プロセッサ101は、ACT27としてカウンタrを“0”にリセットする。カウンタrは、例えばメインメモリ102の揮発性エリアに形成されている。次いで、プロセッサ101は、ACT28としてカウンタrを“1”だけカウントアップする。そしてプロセッサ101は、ACT29としてカウンタrが最大値Rを超えたか否かを確認する。最大値Rは、支払方法の種類数である。本実施形態では、最大値Rは“6”である。 When the total payment amount D becomes equal to or greater than the tax-included total amount C, the payment is completed. The processor 101 determines YES in ACT24, and proceeds to ACT27. The processor 101 resets the counter r to "0" as ACT27. The counter r is formed in a volatile area of the main memory 102, for example. Next, the processor 101 increments the counter r by "1" in ACT28. Then, the processor 101 checks whether the counter r exceeds the maximum value R in ACT29. The maximum value R is the number of types of payment methods. In this embodiment, the maximum value R is "6".

カウンタrが最大値Rを超えていない場合、プロセッサ101は、ACT29においてNOと判定し、ACT30へと進む。プロセッサ101は、ACT30として支払い明細テーブルエリア34を検索して、カウンタrの値を支払区分とする支払金額Erが“0”よりも大きいか否かを確認する。支払金額Erが“0”の場合、支払区分rで識別される支払方法での支払いはない。プロセッサ101は、ACT30においてNOと判定し、ACT28へと戻る。プロセッサ101は、カウンタrをさらに“1”だけカウントアップする。そしてプロセッサ101は、カウンタrが最大値Rを超えたか否かを確認する。 If the counter r does not exceed the maximum value R, the processor 101 determines NO in ACT29 and proceeds to ACT30. In ACT 30, the processor 101 searches the payment details table area 34 to check whether the payment amount Er whose payment classification is the value of the counter r is greater than "0". When the payment amount Er is "0", there is no payment using the payment method identified by the payment classification r. The processor 101 determines NO in ACT30, and returns to ACT28. The processor 101 further increments the counter r by "1". The processor 101 then checks whether the counter r has exceeded the maximum value R.

一方、支払金額Erが“0”よりも大きい場合には、支払区分rで識別される支払方法での支払いがある。プロセッサ101は、ACT30においてYESと判定し、ACT31へと進む。プロセッサ101は、ACT31として当該支払区分rに対する特定フラグFrを取得する。すなわちプロセッサ101は、店舗サーバ20に対して当該支払区分rに対する特定フラグFrを問い合わせる。この問合せにより、店舗サーバ20では、支払管理テーブル22が検索されて、当該支払区分rに対する特定フラグFrが読み出され、問合せ元のPOS端末10へと送信される。かくしてプロセッサ101は、特定フラグFrを取得する。 On the other hand, if the payment amount Er is larger than "0", there is a payment using the payment method identified by the payment classification r. The processor 101 determines YES in ACT30, and proceeds to ACT31. The processor 101 obtains the specific flag Fr for the payment category r in ACT31. That is, the processor 101 inquires of the store server 20 about the specific flag Fr for the payment category r. In response to this inquiry, the store server 20 searches the payment management table 22, reads out the specific flag Fr for the payment category r, and sends it to the POS terminal 10 that is the source of the inquiry. In this way, the processor 101 obtains the specific flag Fr.

特定フラグFrを取得したプロセッサ101は、ACT32としてその特定フラグFrが“1”であるか否かを確認する。特定フラグFrが“1”でない場合、当該支払区分rの支払方法は、税区分別に支払金額の割合を求める特定の支払方法ではない。プロセッサ101は、ACT32においてNOと判定し、ACT28へと戻る。 The processor 101 that has acquired the specific flag Fr checks whether the specific flag Fr is "1" in ACT32. If the specific flag Fr is not "1", the payment method for the payment category r is not a specific payment method that calculates the proportion of the payment amount for each tax category. The processor 101 determines NO in ACT32, and returns to ACT28.

これに対し、特定フラグFrが“1”である場合には、当該支払区分rの支払方法は、税区分別に支払金額の割合を求める特定の支払方法である。プロセッサ101は、ACT32においてYESと判定し、ACT33へと進む。プロセッサ101は、ACT33として当該支払区分rによる支払金額の税区分“1”~“4”毎の割合、すなわち金額G1r~G4rを、以下の(6)~(9)式により算出する。なお、小数点以下は四捨五入する。 On the other hand, when the specific flag Fr is "1", the payment method for the payment category r is a specific payment method that calculates the proportion of the payment amount for each tax category. The processor 101 determines YES in ACT32, and proceeds to ACT33. As ACT 33, the processor 101 calculates the ratio of the payment amount according to the payment category r for each tax category "1" to "4", that is, the amounts G1r to G4r using the following equations (6) to (9). Note that numbers below the decimal point are rounded off.

G1r=Er*(A1/C) …(6)
G2r=Er*(A2/C) …(7)
G3r=Er*(A3/C) …(8)
G4r=Er*(A4/C) …(9)
税区分“1”~“4”毎の金額G1r~G4rを算出し終えると、プロセッサ101は、ACT34としてその金額G1r~G4rを支払い明細テーブルエリア34の当該支払区分rに対応した税区分“1”~“4”毎の金額エリアに記述する。
G1r=Er*(A1/C)...(6)
G2r=Er*(A2/C)...(7)
G3r=Er*(A3/C)...(8)
G4r=Er*(A4/C)...(9)
When the processor 101 finishes calculating the amounts G1r to G4r for each tax category "1" to "4", the processor 101 transfers the amounts G1r to G4r to the tax category "1" corresponding to the payment category r in the payment detail table area 34 as ACT34. ” to “4” in each amount area.

次いでプロセッサ101は、ACT35として当該支払区分rに対する税区分“1”~“4”毎の税額H1r~H4rを、以下の(10)~(13)式により算出する。なお、小数点以下は四捨五入する。 Next, in ACT 35, the processor 101 calculates the tax amounts H1r to H4r for each tax category "1" to "4" for the payment category r using the following equations (10) to (13). Note that numbers below the decimal point are rounded off.

H1r=G1r*0.08 …(10)
H2r=G2r*0.1 …(11)
H3r=G3r-(G3r/1.08) …(12)
H4r=G4r-(G4r/1.1) …(13)
税区分“1”~“4”毎の税額H1r~H4rを算出し終えると、プロセッサ101は、ACT36としてその税額H1r~H4rを支払い明細テーブルエリア34の当該支払区分rに対応した税区分“1”~“4”毎の税額エリアに記述する。
H1r=G1r*0.08…(10)
H2r=G2r*0.1...(11)
H3r=G3r-(G3r/1.08)...(12)
H4r=G4r-(G4r/1.1)...(13)
After calculating the tax amounts H1r to H4r for each tax category “1” to “4”, the processor 101 stores the tax amounts H1r to H4r in the tax category “1” corresponding to the payment category r in the payment detail table area 34 as ACT 36. ” to “4” in each tax amount area.

ACT36の処理を終えると、プロセッサ101は、ACT28へと戻る。プロセッサ101は、カウンタrをさらに“1”だけカウントアップする。そしてプロセッサ101は、カウンタrが最大値Rを超えたか否かを確認する。カウンタrが最大値Rを超えていない場合、プロセッサ101は、ACT30乃至ACT36の処理を前述したのと同様に実行する。 After completing the processing in ACT36, the processor 101 returns to ACT28. The processor 101 further increments the counter r by "1". The processor 101 then checks whether the counter r has exceeded the maximum value R. If the counter r does not exceed the maximum value R, the processor 101 executes the processes in ACT30 to ACT36 in the same manner as described above.

カウンタrが最大値Rを超えたならば、プロセッサ101は、ACT29においてYE判定し、ACT37へと進む。プロセッサ101は、ACT37として取引データを作成する。取引データは、登録商品テーブルエリア31、税区分テーブルエリア32、税込み合計金額エリア33、支払い明細テーブルエリア34、及び、支払合計金額エリア35にそれぞれ記述されているデータで構成される。取引データは、上述したデータ以外に、時計104によって計時されている現在日時(取引日時)と、一連の取引番号(レシート番号)と、POS端末10に対して設定された固有のレジ番号と、を含む。取引データは、そのほかのデータを含んでいてもよい。 If the counter r exceeds the maximum value R, the processor 101 makes a YE determination in ACT29, and proceeds to ACT37. Processor 101 creates transaction data as ACT37. The transaction data is composed of data described in a registered product table area 31, a tax classification table area 32, a total amount including tax area 33, a payment details table area 34, and a total payment amount area 35, respectively. In addition to the above-mentioned data, the transaction data includes the current date and time (transaction date and time) kept by the clock 104, a series of transaction numbers (receipt numbers), and a unique cash register number set for the POS terminal 10. including. Transaction data may also include other data.

プロセッサ101は、ACT38として取引データを基にレシートデータを作成する。そしてプロセッサ101は、ACT39としてレシートデータをプリンタ111に出力して、レシートを印字するようにプリンタ111を制御する。また、プロセッサ101は、ACT40として取引データを店舗サーバ20へと送信するように通信インターフェース106を制御する。この制御により、取引データはネットワークを介して店舗サーバ20へと送信される。 The processor 101 creates receipt data based on the transaction data as ACT38. Then, the processor 101 outputs the receipt data to the printer 111 as ACT 39, and controls the printer 111 to print the receipt. Further, the processor 101 controls the communication interface 106 to transmit transaction data to the store server 20 as ACT 40. Under this control, transaction data is transmitted to the store server 20 via the network.

以上で、プロセッサ101は、1取引の処理を終了する。そしてプロセッサ101は、ACT1へと戻り、次の取引の商品登録を待ち受ける。 With this, the processor 101 ends the processing of one transaction. The processor 101 then returns to ACT1 and waits for product registration for the next transaction.

ここに、コンピュータの主体であるプロセッサ101は、制御プログラムに従って図7のACT2乃至ACT5の処理を実行することにより、処理手段を構成する。すなわちプロセッサ101は、取引として売り上げる商品の販売データ、つまりは商品コード、商品名、単価、税区分、属性、販売点数、販売金額等の項目データを、登録商品テーブルエリア31に登録処理する。 Here, the processor 101, which is the main body of the computer, constitutes a processing means by executing the processes of ACT2 to ACT5 in FIG. 7 according to the control program. That is, the processor 101 registers sales data of products to be sold as transactions, that is, item data such as product code, product name, unit price, tax category, attributes, number of sales items, sales amount, etc., in the registered product table area 31.

またプロセッサ101は、図7のACT6及びACT7の処理を実行することにより、合計手段を構成する。すなわちプロセッサ101は、税区分テーブルエリア32を利用して、商品に課せられる税の種類を分類する税区分m毎に商品の金額Qを合計する。 Further, the processor 101 constitutes a summation means by executing the processes of ACT6 and ACT7 in FIG. That is, the processor 101 uses the tax category table area 32 to total the amount Q of the product for each tax category m that classifies the type of tax imposed on the product.

またプロセッサ101は、図8のACT28及びAC30の処理を実行することにより、金額取得手段を構成する。すなわちプロセッサ101は、支払い明細テーブルエリア34を利用して、支払区分r毎に商品に対する支払金額Erを取得する。 Further, the processor 101 constitutes an amount acquisition means by executing the processes of ACT28 and AC30 in FIG. That is, the processor 101 uses the payment details table area 34 to obtain the payment amount Er for the product for each payment category r.

またプロセッサ101は、図8のACT31及びAC32の処理を実行することにより、データ取得手段を構成する。すなわちプロセッサ101は、記憶部である支払管理テーブル22から、支払金額Erに対する特定フラグFrを取得する。特定フラグFrは、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータである。 Further, the processor 101 constitutes a data acquisition means by executing the processes of ACT31 and AC32 in FIG. That is, the processor 101 obtains the specific flag Fr for the payment amount Er from the payment management table 22, which is a storage unit. The specific flag Fr is data that identifies whether or not the payment method is a specific payment method that calculates the proportion of the payment amount for each tax category.

またプロセッサ101は、図8のACT33及びACT34の処理を実行することにより、計算手段を構成する。すなわちプロセッサ101は、税区分テーブルエリア32を利用して、税区分毎に合計された金額A1~A4の比で支払金額Erを按分することによって計算する。そしてプロセッサ101は、税区分毎に計算された支払金額G1r~G4rを支払い明細テーブルエリア34で記憶する。 Furthermore, the processor 101 constitutes a calculation means by executing the processes of ACT33 and ACT34 in FIG. That is, the processor 101 uses the tax classification table area 32 to calculate the payment amount Er by proportionally dividing the total amount A1 to A4 for each tax classification. The processor 101 then stores the payment amounts G1r to G4r calculated for each tax category in the payment details table area 34.

またプロセッサ101は、図8のACT35及びACT36の処理を実行することにより、算出手段を構成する。すなわちプロセッサ101は、税区分毎に計算された支払金額G1r~G4rからその税区分で特定される税の種類の税額H1r~H4rを算出する。そしてプロセッサ101は、税区分毎に計算された税額H1r~H4rを支払い明細テーブルエリア34で記憶する。 Further, the processor 101 constitutes a calculation means by executing the processes of ACT35 and ACT36 in FIG. That is, the processor 101 calculates the tax amounts H1r to H4r for the type of tax specified in the tax category from the payment amounts G1r to G4r calculated for each tax category. The processor 101 then stores the tax amounts H1r to H4r calculated for each tax category in the payment details table area 34.

さらにプロセッサ101は、図8のACT39の処理を実行することにより、出力手段を構成する。すなわちプロセッサ101は、レシートデータをプリンタ111に出力する。そしてプリンタ111は、発行手段を構成する。すなわちプリンタ111は、レシートデータを受けて一取引のデータが記録されたレシートを発行する。レシートには、支払金額G1r~G4r及び税額H1r~H4rが出力される。 Furthermore, the processor 101 constitutes an output means by executing the process of ACT39 in FIG. That is, the processor 101 outputs receipt data to the printer 111. The printer 111 constitutes issuing means. That is, the printer 111 receives the receipt data and issues a receipt on which data of one transaction is recorded. The payment amounts G1r to G4r and the tax amounts H1r to H4r are output on the receipt.

また通信インターフェース106は、1取引のデータを収集する店舗サーバ20とデータ通信を行う通信手段を構成する。そしてプロセッサ101は、図8のACT36及びACT40の処理により、第2の出力手段を構成する。すなわちプロセッサ101は、1取引のデータに支払金額G1r~G4r及び税額H1r~H4rを含ませて店舗サーバ20へと送信出力する。 Further, the communication interface 106 constitutes a communication means that performs data communication with the store server 20 that collects data of one transaction. Then, the processor 101 configures a second output means by processing ACT36 and ACT40 in FIG. That is, the processor 101 includes the payment amounts G1r to G4r and the tax amounts H1r to H4r in the data of one transaction, and transmits the data to the store server 20.

図9は、1取引において、税区分テーブルエリア32、税込み合計金額エリア33、支払い明細テーブルエリア34、及び、支払合計金額エリア35にそれぞれ記述されたデータの一例である。すなわち図9は、税区分が“1”で価格が1000円の外税8%商品と、税区分が“2”で価格が2000円の外税10%商品と、税区分が“3”で価格が3000円の内税8%商品と、税区分が“4”で価格が4000円の内税10%商品とをそれぞれ1品目ずつ計4点を購入した消費者との取引を例示する。そして消費者は、支払区分が“5”の第1買物券で5000円を支払い、支払区分が“1”の現金で6000円を支払った場合である。ここで、支払区分が“1”の現金は特定の支払方法ではないが、支払区分が“5”の第1買物券は特定の支払方法であると仮定する。 FIG. 9 is an example of data written in the tax category table area 32, tax-included total amount area 33, payment details table area 34, and payment total amount area 35 in one transaction. In other words, Figure 9 shows an 8% non-tax product with a tax category of "1" and a price of 1,000 yen, a 10% non-tax product with a tax category of "2" and a price of 2,000 yen, and a product with a tax category of "3". An example of a transaction with a consumer who purchased a total of four items, one each of a product with a price of 3,000 yen with 8% tax included and a product with tax category "4" and a price of 4,000 yen with 10% tax included is illustrated. Then, the consumer pays 5,000 yen with the first shopping ticket whose payment classification is "5" and pays 6,000 yen with cash whose payment classification is "1". Here, it is assumed that cash with a payment classification of "1" is not a specific payment method, but the first shopping ticket with a payment classification of "5" is a specific payment method.

この場合、支払区分が“1”の現金については、支払金額E1が6000円なので、図8のACT30においてYESと判定され、ACT31へと進む。ただし、ACT31において店舗サーバ20から取得した特定フラグF1が“0”であり、ACT32においてNOと判定されるので、ACT33乃至ACT36の処理は実行されない。 In this case, since the payment amount E1 for cash with the payment category "1" is 6000 yen, YES is determined in ACT30 of FIG. 8, and the process proceeds to ACT31. However, since the specific flag F1 acquired from the store server 20 in ACT31 is "0" and the determination is NO in ACT32, the processes in ACT33 to ACT36 are not executed.

また、支払区分“2”のクレジットカード、支払区分“3”の電子マネー、支払区分“4”の商品券及び支払区分“6”の第2買物券については、支払金額E2,E3,E4,E6が0円なので、ACT30においてNOと判定される。したがって、ACT31乃至ACT36の処理は実行されない。 In addition, for credit cards with payment class "2", electronic money with payment class "3", gift certificates with payment class "4", and second shopping vouchers with payment class "6", payment amounts E2, E3, E4, Since E6 is 0 yen, the determination in ACT30 is NO. Therefore, the processes in ACT31 to ACT36 are not executed.

一方、支払区分“5”の第1買物券については、支払金額E5が5000円なので、ACT30においてYESと判定され、ACT31へと進む。そして、ACT31において店舗サーバ20から取得した特定フラグF5が“1”であり、ACT32においてYESと判定されるので、ACT33乃至ACT36の処理が実行される。すなわち、以下の(6a)~(9a)式により、税区分“1”~“4”毎の金額G15、G25、G35、G45が算出される。 On the other hand, for the first shopping ticket with payment classification "5", the payment amount E5 is 5000 yen, so the determination is YES in ACT30, and the process proceeds to ACT31. Then, in ACT31, the specific flag F5 acquired from the store server 20 is "1", and in ACT32, it is determined as YES, so the processes in ACT33 to ACT36 are executed. That is, the amounts G15, G25, G35, and G45 for each tax category "1" to "4" are calculated by the following formulas (6a) to (9a).

G15=5,000*(1,000/10,280)=486 …(6a)
G25=5,000*(2,000/10,280)=973 …(7a)
G35=5,000*(3,000/10,280)=1,459 …(8a)
G45=5,000*(4,000/10,280)=1,946 …(9a)
算出された金額G15、G25、G35、G45は、支払い明細テーブルエリア34に記述される。
G15=5,000*(1,000/10,280)=486...(6a)
G25=5,000*(2,000/10,280)=973...(7a)
G35=5,000*(3,000/10,280)=1,459...(8a)
G45=5,000*(4,000/10,280)=1,946...(9a)
The calculated amounts G15, G25, G35, and G45 are written in the payment details table area 34.

また、以下の(10a)~(13a)式により、税区分“1”~“4”毎の税額H15、H25、H35、H45が算出される。 Furthermore, the tax amounts H15, H25, H35, and H45 for each tax category "1" to "4" are calculated using the following formulas (10a) to (13a).

H15=486*0.08=39 …(10a)
H25=973*0.1=97 …(11a)
H35=1,459-(1,459/1.08)=108 …(12a)
H45=1,946-(1,946/1.1)=177 …(13a)
算出された税額H15、H25、H35、H45は、支払い明細テーブルエリア34に記述される。
H15=486*0.08=39...(10a)
H25=973*0.1=97...(11a)
H35=1,459-(1,459/1.08)=108...(12a)
H45=1,946-(1,946/1.1)=177...(13a)
The calculated tax amounts H15, H25, H35, and H45 are written in the payment details table area 34.

かくして、ACT38及びACT39の処理により、図10に示す印字内容のレシート40が発行される。また、ACT37及びACT40の処理により、当該レシート40に印字された内容を含む取引データが店舗サーバ20へと送信される。 Thus, through the processing in ACT38 and ACT39, a receipt 40 with the printed content shown in FIG. 10 is issued. Furthermore, transaction data including the content printed on the receipt 40 is transmitted to the store server 20 through the processing in ACT37 and ACT40.

以上詳述したように、本実施形態では、代金の支払方法を分類する支払区分毎に、支払名称と特定フラグの情報が記憶された支払管理テーブル22を店舗サーバ20に設けている。そして、販促費として計上される支払方法のために、通常税率対象の商品に対する支払金額の割合と軽減税率対象の商品に対する支払金額の割合とを求める必要のある支払方法については、特定フラグを“1”にセットしている。そうすることにより、POS端末10においては、特定フラグが“1”にセットされた支払方法について、商品に課せられる税の種類毎に支払金額の割合を求め、さらにその支払金額に対する税額を求めて、レシートへの表示出力あるいは店舗サーバ20への送信出力を行う。 As described in detail above, in this embodiment, the store server 20 is provided with a payment management table 22 that stores information on payment names and specific flags for each payment category that classifies payment methods. For payment methods that are recorded as promotional expenses, the specific flag should be set to " It is set to 1". By doing so, the POS terminal 10 calculates the proportion of the payment amount for each type of tax imposed on the product for the payment method for which the specific flag is set to "1", and further calculates the tax amount for that payment amount. , output to display on the receipt or output to the store server 20.

したがって、本実施形態によれば、通常税率が適用される商品と軽減税率が適用される商品とが混在する店舗若しくはその店舗を運営する企業体において、税管理に必要なデータを容易に取得することができる。その結果、店舗又は企業体において税管理が容易となり、例えば税務署へ申告するための資料作成に要する負担を軽減することができる。 Therefore, according to the present embodiment, data necessary for tax management can be easily acquired in a store where products to which the normal tax rate is applied and products to which the reduced tax rate is applied coexist, or a corporate entity that operates the store. be able to. As a result, tax management becomes easier at a store or business entity, and the burden required to prepare materials for reporting to a tax office, for example, can be reduced.

また、本実施形態によれば、特定フラグの設定如何によって、支払区分毎に、商品に課せられる税の種類毎に支払金額の割合を求めるか否かを決定することができる。したがって、対象となる支払区分の変更にも容易に対処できる利点がある。 Further, according to the present embodiment, depending on the setting of the specific flag, it is possible to determine whether or not to calculate the proportion of the payment amount for each type of tax imposed on the product for each payment classification. Therefore, there is an advantage that changes in the target payment category can be easily handled.

また、本実施形態によれば、商品に課せられる税の種類毎に求められた支払金額の割合及びその支払金額に対する税額をレシートに表示出力することができる。したがって、レシートを受け取った消費者は、支払金額に対する税区分毎の割合及び税額を容易に知ることができる。 Further, according to the present embodiment, it is possible to display and output the proportion of the payment amount calculated for each type of tax imposed on the product and the tax amount relative to the payment amount on the receipt. Therefore, the consumer who receives the receipt can easily know the proportion of each tax category and the tax amount to the payment amount.

また、本実施形態によれば、商品に課せられる税の種類毎に求められた支払金額の割合及びその支払金額に対する税額を店舗サーバ20へと送信出力することができる。したがって、店舗サーバ20においては、POS端末10から受信したデータを集計することで、税管理に必要なデータの合計を容易に得ることができる。 Further, according to the present embodiment, it is possible to transmit and output to the store server 20 the proportion of the payment amount calculated for each type of tax imposed on the product and the tax amount for the payment amount. Therefore, the store server 20 can easily obtain the total amount of data necessary for tax management by aggregating the data received from the POS terminal 10.

以上、少なくとも特定の支払方法について、商品に課せられる税の種類毎に支払金額の割合を求めることができる商品販売データ処理装置の実施形態について説明したが、かかる実施形態はこれに限定されるものではない。 Above, we have described an embodiment of a product sales data processing device that can calculate the proportion of the payment amount for each type of tax imposed on a product, at least for a specific payment method, but this embodiment is not limited to this. isn't it.

例えば前記実施形態では、支払管理テーブル22を店舗サーバ20に設けた。他の実施形態としては、支払管理テーブル22をPOS端末10が備えていてもよい。 For example, in the embodiment described above, the payment management table 22 is provided in the store server 20. In another embodiment, the POS terminal 10 may include the payment management table 22.

また、前記実施形態では、税区分毎に支払金額の割合を求める支払方法を特定フラグによって識別可能とし、プロセッサ101は、図8のACT32において特定フラグが“1”であった場合に、ACT33乃至ACT36の処理を実行した。この点に関しては、プロセッサ101は、ACT30においてYESと判定したならば、ACT31及びACT32の処理をスキップして、ACT33乃至ACT36の処理を実行する。そしてプロセッサ101は、ACT37において取引データを作成する前に特定フラグを参照する。そしてプロセッサ101は、特定フラグが“1”にセットされている支払区分rの金額G1r~G4r及び税額H1r~H4rを支払い明細テーブルエリア34から選択して、取引データに含ませ、レシートに表示出力してもよい。 Further, in the embodiment, the payment method for determining the proportion of the payment amount for each tax category can be identified by the specific flag, and when the specific flag is "1" in ACT32 of FIG. The process of ACT36 was executed. Regarding this point, if the processor 101 determines YES in ACT30, it skips the processing in ACT31 and ACT32 and executes the processing in ACT33 to ACT36. The processor 101 then refers to the specific flag before creating transaction data in ACT37. Then, the processor 101 selects the amounts G1r to G4r and the tax amounts H1r to H4r of the payment category r whose specific flag is set to "1" from the payment details table area 34, includes them in the transaction data, and displays and outputs them on the receipt. You may.

なお、全ての支払方法について税区分毎に支払金額の割合を求める場合には、支払管理テーブル22を省略することができるのは言うまでもないことである。 It goes without saying that the payment management table 22 can be omitted when determining the proportion of the payment amount for each tax category for all payment methods.

前記実施形態では、出力手段として、計算手段により税区分毎に計算された支払金額と、算出手段により税区分毎に算出された税額とを同時に出力する場合を例示した。この点に関しては、支払金額又は税額のいずれか一方を出力するだけであってもよい。また、出力方法も、レシートへの表示出力あるいは店舗サーバ20への送信出力のいずれか一方であってもよい。
レシートは、紙レシートに限定されるものではなく、電子レシートであってもよい。すなわち出力手段は、電子レシートを作成するサーバへとレシートデータを出力する手段であってもよい。
In the above embodiment, the case where the output means simultaneously outputs the payment amount calculated for each tax category by the calculation means and the tax amount calculated for each tax category by the calculation means is exemplified. In this regard, only either the payment amount or the tax amount may be output. Further, the output method may be either display output on a receipt or transmission output to the store server 20.
The receipt is not limited to a paper receipt, but may be an electronic receipt. That is, the output means may be means for outputting receipt data to a server that creates electronic receipts.

ところで、税額は、店舗若しくはその店舗を運営する企業体が国税庁又はその下部組織である税務署に申告した支払方法で算出すればよい。このため、支払区分毎の税額計算方法は、次のような方法であってもよい。
例えば、販促費として計上されない支払区分について税区分毎の税額を計算し、その税額を各税区分の税額から引き去ることによって、販促費として計上される支払区分の各税額を算出する方法がある。
Incidentally, the amount of tax may be calculated using the payment method declared by the store or the corporate entity that operates the store to the National Tax Agency or the Tax Office, which is a subordinate organization thereof. Therefore, the tax amount calculation method for each payment category may be the following method.
For example, there is a method of calculating the tax amount for each payment category that is recorded as sales promotion expenses by calculating the tax amount for each tax category for payment categories that are not recorded as sales promotion expenses, and subtracting that tax amount from the tax amount for each tax category. .

図9の例を用いて説明すると、販促費として計上されない支払区分“1”の支払金額E1が6000円なので、以下の(6b)~(9b)式により、税区分“1”~“4”毎の金額G11、G21、G31、G41が算出する。 To explain using the example in Figure 9, since the payment amount E1 of payment category "1" which is not recorded as sales promotion expenses is 6000 yen, the following formulas (6b) to (9b) are used to calculate tax categories "1" to "4". The respective amounts G11, G21, G31, and G41 are calculated.

G11=6,000*(1,000/10,280)=584 …(6b)
G21=6,000*(2,000/10,280)=1,167 …(7b)
G31=6,000*(3,000/10,280)=1,751 …(8b)
G41=6,000*(4,000/10,280)=2,335 …(9b)
次いで、以下の(10b)~(13b)式により、支払区分“1”の支払金額E1に対する税区分“1”~“4”毎の税額H11、H21、H31、H41が算出する。
G11=6,000*(1,000/10,280)=584...(6b)
G21=6,000*(2,000/10,280)=1,167...(7b)
G31=6,000*(3,000/10,280)=1,751...(8b)
G41=6,000*(4,000/10,280)=2,335...(9b)
Next, the tax amounts H11, H21, H31, and H41 for each of the tax categories "1" to "4" for the payment amount E1 of the payment category "1" are calculated using the following formulas (10b) to (13b).

H11=584*0.08=47 …(10b)
H21=1,167*0.1=117 …(11b)
H31=1,751-(1,751/1.08)=130 …(12b)
H41=2,335-(2,335/1.1)=212 …(13b)
しかして、以下の(14b)~(17b)式により、税区分テーブルエリア32に記憶された税区分“1”~“4”毎の税額から、対応する税区分の税額H11、H21、H31、H41をそれぞれ減算することにより、間接的に、販促費として計上される支払区分“5”の各税額H15,H252,H35,H45を算出する。
H11=584*0.08=47...(10b)
H21=1,167*0.1=117...(11b)
H31=1,751-(1,751/1.08)=130...(12b)
H41=2,335-(2,335/1.1)=212...(13b)
According to the following formulas (14b) to (17b), from the tax amount for each tax category "1" to "4" stored in the tax category table area 32, the tax amount H11, H21, H31 of the corresponding tax category, By subtracting H41, the respective tax amounts H15, H252, H35, and H45 of payment category "5", which are recorded as sales promotion expenses, are indirectly calculated.

H15=80-47=33 …(14b)
H25=200-117=83 …(15b)
H35=222-130=92 …(16b)
H45=364-212=152 …(17b)
また、販促費として計上される支払区分での支払いが複数ある場合には、誤差を少なくするため、あえて支払金額が最も大きい支払区分では計算しない。すなわち、支払金額の小さい支払区分について税区分毎の税額を計算し、さらに販促費として計上されない支払区分について税区分毎の税額を計算する。そして、それらの税額を各税区分の税額から引き去ることによって、支払金額が最も大きい支払区分の各税額を算出する方法がある。
H15=80-47=33…(14b)
H25=200-117=83...(15b)
H35=222-130=92...(16b)
H45=364-212=152...(17b)
Furthermore, if there are multiple payments to be recorded as sales promotion expenses in multiple payment categories, the payment category with the largest payment amount is intentionally not used to reduce errors. That is, the tax amount for each tax category is calculated for payment categories with small payment amounts, and the tax amount for each tax category is further calculated for payment categories that are not recorded as sales promotion expenses. Then, by subtracting these tax amounts from the tax amount of each tax category, there is a method of calculating each tax amount of the payment category with the largest payment amount.

図9の例において、販促費として計上されない支払区分“1”の支払金額E1が2000円であり、販促費として計上される他の支払区分“6”の支払金額E6が4000円であると仮定すると、支払金額の小さい支払区分は“6”であるので、以下の(6c)~(9c)式により、税区分“1”~“4”毎の金額G16、G26、G36、G46を算出する。 In the example of Figure 9, it is assumed that the payment amount E1 of payment category "1" which is not recorded as sales promotion expenses is 2000 yen, and the payment amount E6 of another payment category "6" which is recorded as sales promotion expenses is 4000 yen. Then, since the payment category with the smallest payment amount is "6", the amounts G16, G26, G36, and G46 for each tax category "1" to "4" are calculated using formulas (6c) to (9c) below. .

G16=4,000*(1,000/10,280)=389 …(6b)
G26=4,000*(2,000/10,280)=778 …(7b)
G36=4,000*(3,000/10,280)=1,167 …(8b)
G46=4,000*(4,000/10,280)=1,556 …(9b)
次いで、以下の(10c)~(13c)式により、支払区分“6”の支払金額E6に対する税区分“1”~“4”毎の税額H16、H26、H36、H46を算出する。
G16=4,000*(1,000/10,280)=389...(6b)
G26=4,000*(2,000/10,280)=778...(7b)
G36=4,000*(3,000/10,280)=1,167...(8b)
G46=4,000*(4,000/10,280)=1,556...(9b)
Next, the tax amounts H16, H26, H36, and H46 for each of the tax categories "1" to "4" are calculated for the payment amount E6 of the payment category "6" using equations (10c) to (13c) below.

H16=389*0.08=31 …(10c)
H26=778*0.1=78 …(11c)
H36=1,167-(1,167/1.08)=86 …(12b)
H46=1,556-(1,556/1.1)=141 …(13b)
また、以下の(6d)~(9d)式により、支払区分“1”の支払金額E1に対する税区分“1”~“4”毎の金額G11、G21、G31、G46を算出する。
H16=389*0.08=31...(10c)
H26=778*0.1=78...(11c)
H36=1,167-(1,167/1.08)=86...(12b)
H46=1,556-(1,556/1.1)=141...(13b)
Further, the amounts G11, G21, G31, and G46 for each of the tax categories "1" to "4" are calculated with respect to the payment amount E1 of the payment category "1" using the following formulas (6d) to (9d).

G11=2,000*(1,000/10,280)=195 …(6d)
G21=2,000*(2,000/10,280)=389 …(7d)
G31=2,000*(3,000/10,280)=584 …(8d)
G41=2,000*(4,000/10,280)=778 …(9d)
次いで、以下の(10d)~(13d)式により、支払区分“1”の支払金額E1に対する税区分“1”~“4”毎の税額H11、H21、H31、H41を算出する。
G11=2,000*(1,000/10,280)=195...(6d)
G21=2,000*(2,000/10,280)=389...(7d)
G31=2,000*(3,000/10,280)=584...(8d)
G41=2,000*(4,000/10,280)=778...(9d)
Next, the tax amounts H11, H21, H31, and H41 for each of the tax categories "1" to "4" are calculated for the payment amount E1 of the payment category "1" using the following formulas (10d) to (13d).

H11=195*0.08=16 …(10d)
H21=389*0.1=39 …(11d)
H31=584-(584/1.08)=43 …(12d)
H41=778-(778/1.1)=71 …(13d)
しかして、以下の(14d)~(17d)式により、税区分テーブルエリア32に記憶された税区分“1”~“4”毎の税額から、対応する税区分の税額H16、H26、H36、H46及び税額H11、H21、H31、H41をそれぞれ減算することにより、間接的に、販促費として計上される支払区分“5”の各税額H15,H252,H35,H45を算出する。
H11=195*0.08=16...(10d)
H21=389*0.1=39...(11d)
H31=584-(584/1.08)=43...(12d)
H41=778-(778/1.1)=71...(13d)
According to the following formulas (14d) to (17d), from the tax amount for each tax category "1" to "4" stored in the tax category table area 32, the tax amount H16, H26, H36 of the corresponding tax category, By subtracting H46 and the tax amounts H11, H21, H31, and H41, respectively, the tax amounts H15, H252, H35, and H45 of payment category "5", which are recorded as sales promotion expenses, are indirectly calculated.

H15=80-31-16=33 …(14)
H25=200-78-39 =83 …(15)
H35=222-86-43=93 …(16)
H45=364-141-71=152 …(17)
因みに、上記の如く算出される支払区分毎の各税額については、レシートには一部を除いて印字されないものの、ジャーナルには出力されている。
H15=80-31-16=33...(14)
H25=200-78-39 =83...(15)
H35=222-86-43=93...(16)
H45=364-141-71=152...(17)
Incidentally, although the tax amounts for each payment category calculated as described above are not printed on the receipt except for some, they are output on the journal.

前記実施形態では、支払区分別の支払金額をキー入力する場合を例示した。支払金額の入力方法は、キー入力に限定されるものではない。例えば値引券、金券などに印刷されたバーコードをスキャナなどで読み取ることによって支払金額のデータを入力してもよい。また、顧客が有する携帯端末に保持される電子的な値引券や金券を使用する際には、携帯端末とPOS端末とで無線通信を行って上記支払区分または金額を取得してもよい。 In the embodiment described above, the case where the payment amount for each payment category is input by key is exemplified. The method of inputting the payment amount is not limited to key input. For example, data on the payment amount may be input by reading a barcode printed on a discount coupon, cash coupon, etc. with a scanner. Further, when using electronic discount coupons or cash coupons held in a customer's mobile terminal, the mobile terminal and the POS terminal may perform wireless communication to obtain the payment category or amount.

この他、本発明のいくつかの実施形態を説明したが、これらの実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。これら新規な実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。これら実施形態及びその変形は、発明の範囲に含まれるとともに、特許請求の範囲に記載された発明とその均等の範囲に含まれる。
なお、以下に本願の出願当初の特許請求の範囲の記載を付記する。
[C1]
商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段と、
前記商品に対する支払金額を取得する金額取得手段と、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段と、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段と、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段と、
を具備する商品販売データ処理装置。
[C2]
支払方法を分類する支払区分毎に、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータを記憶した記憶部から、前記金額取得手段により取得した支払金額に対する支払区分の前記データを取得するデータ取得手段、
をさらに具備し、
前記データ取得手段により取得した前記データが前記特定の支払方法であることを示すデータである場合、その特定の支払方法による支払金額に対して、前記計算手段による計算処理と前記算出手段により算出処理とを実行する、請求項1記載の商品販売データ処理装置。
[C3]
一取引のデータが記録されたレシートを発行する発行手段、
をさらに具備し、
前記出力手段は、前記レシートに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を記録することで出力する、請求項1又は2記載の商品販売データ処理装置。
[C4]
1取引のデータを収集するサーバとデータ通信を行う通信手段、
をさらに具備し、
前記出力手段は、前記1取引のデータに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を含ませて、前記通信手段を介して前記サーバへと送信することで出力する、請求項1又は2記載の商品販売データ処理装置。
[C5]
商品販売データ処理装置のコンピュータを、
商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段、 前記商品に対する支払金額を取得する金額取得手段、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段、及び、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段、
として機能させるための制御プログラム。
Although several other embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the gist of the invention. These embodiments and modifications thereof are included within the scope of the invention, and are included within the scope of the invention described in the claims and its equivalents.
Note that the claims of the present application as originally filed are appended below.
[C1]
summing means for summing up the amount of the product for each tax category that classifies the type of tax imposed on the product;
Amount acquisition means for acquiring the payment amount for the product;
Calculation means for calculating the payment amount based on the ratio of the amounts totaled for each tax category by the totalization means;
Calculation means for calculating the tax amount of the type of tax specified in the tax classification from the payment amount calculated for each tax classification by the calculation means;
Output means for outputting at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means;
A product sales data processing device comprising:
[C2]
Payment for the payment amount acquired by the amount acquisition means from a storage unit that stores data identifying whether or not the payment method is a specific payment method for determining the proportion of the payment amount for each tax category for each payment category that classifies the payment method. data acquisition means for acquiring the data of the classification;
further comprising;
If the data acquired by the data acquisition means is data indicating the specific payment method, calculation processing by the calculation means and calculation processing by the calculation means for the payment amount by the specific payment method. The product sales data processing device according to claim 1, wherein the product sales data processing device executes the following steps.
[C3]
Issuing means for issuing a receipt in which data of one transaction is recorded;
further comprising;
The output means outputs the receipt by recording at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means. The product sales data processing device according to item 1 or 2.
[C4]
A communication means for communicating data with a server that collects data on one transaction;
further comprising;
The output means includes at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means in the data of the one transaction, and The product sales data processing device according to claim 1 or 2, wherein the product sales data processing device outputs the data by transmitting it to the server via a communication means.
[C5]
The computer of the product sales data processing equipment,
a totalizing means for summing up the amount of the product for each tax category that classifies the type of tax imposed on the product; an amount obtaining means for obtaining the amount paid for the product;
calculation means for calculating the payment amount based on the ratio of the amounts totaled for each tax category by the totalization means;
Calculation means for calculating the tax amount of the type of tax specified in the tax classification from the payment amount calculated for each tax classification by the calculation means, and
Output means for outputting at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means;
control program to function as

10…POS端末、20…店舗サーバ、21…商品ファイル、22…支払管理テーブル、31…登録商品テーブルエリア、32…税区分テーブルエリア、33…税込み合計金額エリア、34…支払い明細テーブルエリア、35…支払合計金額エリア、40…レシート、101…プロセッサ、102…メインメモリ、103…補助記憶デバイス、104…時計、105…釣銭機インターフェース、106…通信インターフェース、107…キーボード、108…スキャナ、109…第1ディスプレイ、110…第2ディスプレイ、111…プリンタ、112…システム伝送路。 10... POS terminal, 20... Store server, 21... Product file, 22... Payment management table, 31... Registered product table area, 32... Tax classification table area, 33... Total amount including tax area, 34... Payment details table area, 35 ...Payment total amount area, 40...Receipt, 101...Processor, 102...Main memory, 103...Auxiliary storage device, 104...Clock, 105...Change machine interface, 106...Communication interface, 107...Keyboard, 108...Scanner, 109... First display, 110...Second display, 111...Printer, 112...System transmission line.

Claims (4)

商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段と、
前記商品に対する支払金額を取得する金額取得手段と、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段と、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段と、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段と、
を具備し、
支払方法を分類する支払区分毎に、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータを記憶した記憶部から、前記金額取得手段により取得した支払金額に対する支払区分の前記データを取得するデータ取得手段、
をさらに具備し、
前記データ取得手段により取得した前記データが前記特定の支払方法であることを示すデータである場合、その特定の支払方法による支払金額に対して、前記計算手段による計算処理と前記算出手段により算出処理とを実行する、商品販売データ処理装置。
summing means for summing up the amount of the product for each tax category that classifies the type of tax imposed on the product;
Amount acquisition means for acquiring the payment amount for the product;
Calculation means for calculating the payment amount based on the ratio of the amounts totaled for each tax category by the totalization means;
Calculation means for calculating the tax amount of the type of tax specified in the tax classification from the payment amount calculated for each tax classification by the calculation means;
Output means for outputting at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means;
Equipped with
Payment for the payment amount acquired by the amount acquisition means from a storage unit that stores data identifying whether or not the payment method is a specific payment method for determining the proportion of the payment amount for each tax category for each payment category that classifies the payment method. data acquisition means for acquiring the data of the classification;
further comprising;
If the data acquired by the data acquisition means is data indicating the specific payment method, calculation processing by the calculation means and calculation processing by the calculation means for the payment amount by the specific payment method. A product sales data processing device that executes .
一取引のデータが記録されたレシートを発行する発行手段、
をさらに具備し、
前記出力手段は、前記レシートに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を記録することで出力する、請求項1記載の商品販売データ処理装置。
Issuing means for issuing a receipt in which data of one transaction is recorded;
further comprising;
The output means outputs the receipt by recording at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means. Item 1. Product sales data processing device.
1取引のデータを収集するサーバとデータ通信を行う通信手段、
をさらに具備し、
前記出力手段は、前記1取引のデータに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を含ませて、前記通信手段を介して前記サーバへと送信することで出力する、請求項1記載の商品販売データ処理装置。
A communication means for communicating data with a server that collects data on one transaction;
further comprising;
The output means includes at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means in the data of the one transaction, and The product sales data processing device according to claim 1, wherein the product sales data processing device outputs the data by transmitting the data to the server via communication means.
商品販売データ処理装置のコンピュータを、
商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段、
前記商品に対する支払金額を取得する金額取得手段、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段、及び、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段、
支払方法を分類する支払区分毎に、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータを記憶した記憶部から、前記金額取得手段により取得した支払金額に対する支払区分の前記データを取得するデータ取得手段、
前記データ取得手段により取得した前記データが前記特定の支払方法であることを示すデータである場合、その特定の支払方法による支払金額に対して、前記計算手段による計算処理と前記算出手段により算出処理とを実行する実行手段、
として機能させるための制御プログラム。
The computer of the product sales data processing equipment,
summing means for summing up the amount of the product for each tax category that classifies the type of tax imposed on the product;
Amount acquisition means for acquiring the payment amount for the product;
calculation means for calculating the payment amount based on the ratio of the amounts totaled for each tax category by the totalization means;
Calculation means for calculating the tax amount of the type of tax specified in the tax classification from the payment amount calculated for each tax classification by the calculation means, and
Output means for outputting at least one of the payment amount calculated for each tax category by the calculation means or the tax amount calculated for each tax category by the calculation means;
Payment for the payment amount acquired by the amount acquisition means from a storage unit that stores data identifying whether or not the payment method is a specific payment method for determining the proportion of the payment amount for each tax category for each payment category that classifies the payment method. data acquisition means for acquiring the data of the classification;
If the data acquired by the data acquisition means is data indicating the specific payment method, calculation processing by the calculation means and calculation processing by the calculation means for the payment amount by the specific payment method. an execution means for carrying out;
control program to function as
JP2019170786A 2019-09-19 2019-09-19 Product sales data processing device and control program Active JP7353890B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019170786A JP7353890B2 (en) 2019-09-19 2019-09-19 Product sales data processing device and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019170786A JP7353890B2 (en) 2019-09-19 2019-09-19 Product sales data processing device and control program

Publications (2)

Publication Number Publication Date
JP2021047726A JP2021047726A (en) 2021-03-25
JP7353890B2 true JP7353890B2 (en) 2023-10-02

Family

ID=74878545

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019170786A Active JP7353890B2 (en) 2019-09-19 2019-09-19 Product sales data processing device and control program

Country Status (1)

Country Link
JP (1) JP7353890B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005073A (en) 2002-05-31 2004-01-08 Toshiba Tec Corp Money registration device
JP2018081520A (en) 2016-11-17 2018-05-24 東芝テック株式会社 Information processing device and program
JP2019036003A (en) 2017-08-10 2019-03-07 東芝テック株式会社 Transaction settlement system, transaction processor, settlement device and program thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005073A (en) 2002-05-31 2004-01-08 Toshiba Tec Corp Money registration device
JP2018081520A (en) 2016-11-17 2018-05-24 東芝テック株式会社 Information processing device and program
JP2019036003A (en) 2017-08-10 2019-03-07 東芝テック株式会社 Transaction settlement system, transaction processor, settlement device and program thereof

Also Published As

Publication number Publication date
JP2021047726A (en) 2021-03-25

Similar Documents

Publication Publication Date Title
US10929828B2 (en) Information processing apparatus and information processing method
JP7309807B2 (en) Payment device and its program
JP2023095951A (en) Article sales data processing system, settlement apparatus, and control program of the same
JP2013131038A (en) Commodity information processor and program
JP7353890B2 (en) Product sales data processing device and control program
JPH0589372A (en) Processor for product sales data
JP2017142752A (en) POS system
JP7326049B2 (en) Coupon issuing system, coupon management device and its control program
JP2014132498A (en) Commodity transaction data processor and program
JP7401188B2 (en) Product sales data processing device and control program
JP6156802B2 (en) Receipt issuing device and receipt issuing method
US20200387882A1 (en) Commodity sales data processing apparatus, control method therefor, and display control method thereof
JP7248461B2 (en) Information processing equipment
JP7304739B2 (en) Information processing device, information processing program and information processing method
JP2023173312A (en) Information processor and program
JP2021192167A (en) Settlement device and program
CN111915342A (en) Information management device, information providing system and method, medium, and apparatus
JP2023181637A (en) Sales data processor and program
JP2023164754A (en) Commodity sales data processor and program
JP5781670B2 (en) Product information processing apparatus and program thereof
JP2022105641A (en) Commodity sales data processor and program
JP2013196671A (en) Commodity transaction data processor and program
JP2019220227A (en) Server device, program therefor, receipt data processing method, and receipt data processing system
JP2023115077A (en) Product sales data processing device and control program
JP2020057179A (en) Point management system, point management device, and information processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220819

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20230104

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20230228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230307

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230508

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230920

R150 Certificate of patent or registration of utility model

Ref document number: 7353890

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150