JP2021047726A - Commodity sales data processing device and control program - Google Patents

Commodity sales data processing device and control program Download PDF

Info

Publication number
JP2021047726A
JP2021047726A JP2019170786A JP2019170786A JP2021047726A JP 2021047726 A JP2021047726 A JP 2021047726A JP 2019170786 A JP2019170786 A JP 2019170786A JP 2019170786 A JP2019170786 A JP 2019170786A JP 2021047726 A JP2021047726 A JP 2021047726A
Authority
JP
Japan
Prior art keywords
tax
payment
amount
category
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019170786A
Other languages
Japanese (ja)
Other versions
JP7353890B2 (en
Inventor
好恭 岩崎
Yoshiyasu Iwasaki
好恭 岩崎
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

Images

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Abstract

To enable, at least for a certain payment method, the proportion of a payment amount to be obtained for each tax type of a tax imposed on a commodity.SOLUTION: A commodity sales data processing device includes summing means, amount acquiring means, computing means, calculating means, and output means. The summing means sums the amount of commodities for each tax class that classifies the type of taxes imposed on the commodities. The amount acquiring means acquires a payment amount for the commodities. The computing means computes the payment amount by a ratio of amounts summed by the summing means for each tax class. The calculating means calculates, from the payment amount computed by the computing means for each tax class, a tax amount of a tax type specified by the tax class. The output means outputs at least either the payment amount computed by the computing means for each tax class or the tax amount calculated by the calculating means for each tax class.SELECTED DRAWING: Figure 10

Description

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

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

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

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

特開2019−040442号公報Japanese Unexamined Patent Publication No. 2019-040442

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

一実施形態において、商品販売データ処理装置は、合計手段と、金額取得手段と、計算手段と、算出手段と、出力手段とを備える。合計手段は、商品に課せられる税の種類を分類する税区分毎に商品の金額を合計する。金額取得手段は、商品に対する支払金額を取得する。計算手段は、合計手段により税区分毎に合計された金額の比で支払金額を計算する。算出手段は、計算手段により税区分毎に計算された支払金額からその税区分で特定される税の種類の税額を算出する。出力手段は、計算手段により税区分毎に計算された支払金額、または、算出手段により税区分毎に算出された税額の少なくとも一方を出力する。 In one embodiment, the product sales data processing device includes a totaling means, an amount acquisition means, a calculation means, a calculation means, and an output means. The totaling means totals the amount of goods for each tax category that classifies the types of taxes levied on goods. The amount acquisition means acquires the payment amount for the product. The calculation means calculates the payment amount by the ratio of the total amount for each tax category by the total means. The calculation means calculates the tax amount of the type of tax specified in the tax category from the payment amount calculated for each tax category 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.

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

以下、少なくとも特定の支払方法について、商品に課せられる税の種類毎に支払金額の割合を求めることができる商品販売データ処理装置の実施形態について、図面を用いて説明する。
なお、この実施形態では、食料品等の一部の商品に対しては軽減税率8%が適用され、その他の商品に対しては通常税率10%が適用される税制が導入された場合を例示する。そして、税額を含まない価格で販売される外税商品と、税額を含んだ価格で販売される内税商品とを混在して販売している店舗のPOS(Point Of Sales)端末を、商品販売データ処理装置の一態様とする。
Hereinafter, at least for a specific payment method, an embodiment of a product sales data processing device capable of obtaining a ratio of the payment amount for each type of tax levied on the product will be described with reference to the drawings.
In this embodiment, a case where a reduced tax rate of 8% is applied to some products such as foodstuffs and a tax system in which a normal tax rate of 10% is applied to other products is introduced. To do. Then, the POS (Point Of Sales) terminal of the store that sells a mixture of the tax-excluded product sold at the price not including the tax amount and the tax-included product sold at the price including the tax amount is sold. It is one aspect of the 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 a main circuit configuration of the POS terminal 10 according to the present embodiment. The POS terminal 10 includes a processor 101, a main memory 102, an auxiliary storage device 103, a clock 104, a change machine interface 105, a communication interface 106, a keyboard 107, a scanner 108, a first display 109, a second display 110, a printer 111, and system transmission. The road 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 line 112 includes a processor 101, a main memory 102, an auxiliary storage device 103, a clock 104, a change machine interface 105, a communication interface 106, a keyboard 107, a scanner 108, a first display 109, a second display 110, and a printer 111. To interconnect. The computer of the POS terminal 10 is configured by connecting the processor 101, the main memory 102, and the auxiliary storage device 103 via the system transmission line 112.

プロセッサ101は、上記コンピュータの中枢部分に相当する。プロセッサ101は、オペレーティングシステム又はアプリケーションプログラムに従って、POS端末10としての各種の機能を実現するべく各部を制御する。プロセッサ101は、例えばCPU(Central Processing Unit)である。 The processor 101 corresponds to the central part of the computer. The processor 101 controls each part in order to realize various functions as the POS terminal 10 according to the operating system or the 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)である。 The main memory 102 corresponds to the main memory portion of the computer. The main memory 102 includes a non-volatile memory area and a volatile memory area. The main memory 102 stores an operating system or application program in a non-volatile memory area. The main memory 102 may store data necessary for the processor 101 to execute a process 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 non-volatile 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, an EEPROM (Electric Erasable Programmable Read-Only Memory), an HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like can be the auxiliary storage device 103. The auxiliary storage device 103 stores data used by the processor 101 to perform various processes, data created by the processes of the processor 101, and the like. The auxiliary storage device 103 may store the above application program.

メインメモリ102又は補助記憶デバイス103に記憶されるアプリケーションプログラムには、POS端末10で実行される情報処理に関して記述した制御プログラムが含まれる。制御プログラムをメインメモリ102又は補助記憶デバイス103にインストールする方法は特に限定されるものではない。リムーバブルな記録媒体に制御プログラムを記録して、あるいはネットワークを介した通信により制御プログラムを配信して、メインメモリ102又は補助記憶デバイス103にインストールすることができる。記録媒体は、CD−ROM,メモリカード等のようにプログラムを記憶でき、かつ装置が読み取り可能であれば、その形態は問わない。 The application program stored in the main memory 102 or the auxiliary storage device 103 includes a control program described for information processing executed by the POS terminal 10. The method of installing the control program in 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 the control program can be 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 a program such as a CD-ROM or a memory card and the device can read it.

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

釣銭機インターフェース105は、自動釣銭機との間でデータ通信を行う。釣銭機インターフェース105は、自動釣銭機から投入金額のデータ、貨幣収納枚数のデータ等を受信する。釣銭機インターフェース105は、釣銭データを自動釣銭機へと送信する。 The change machine interface 105 performs data communication with the automatic change machine. The change machine interface 105 receives data on the amount of money inserted, data on the number of coins stored, and the like from the automatic change machine. The change machine interface 105 transmits change data to the 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 in 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 the product record 21R (see FIG. 2). The product record 21R is created for each product. The main data structure of the product record 21R is represented by the schematic diagram of FIG. As shown in FIG. 2, the product record 21R includes data of items such as a product code, a product name, a unit price, a tax classification, and an attribute.

商品コードは、各商品を識別するために商品毎に設定された固有のコードである。通常、各商品には、商品コードをバーコード化したバーコードシンボル、若しくは二次元コード化した二次元コードシンボルが付されている。あるいは、商品コードを記憶したRFID(Radio Frequency Identification)タグが付されていてもよい。POS端末10は、上記のバーコードシンボル、2次元コードシンボル又はRFIDタグのデータを読取装置で読み取ることで、商品の販売データを登録処理することができる。 The product code is a unique code set for each product in order to identify each product. Usually, each product has a bar code symbol in which the product code is bar coded or a two-dimensional code symbol in which the product code is two-dimensionally coded. Alternatively, an RFID (Radio Frequency Identification) tag that stores the product code may be attached. The POS terminal 10 can register and process the sales data of the product by reading the data of the above-mentioned bar code 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 is 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 levied on the product. The types of tax include tax 8%, tax 10%, tax 8%, and tax 10%. The foreign tax of 8% is a category of tax-excluded products to which the reduced tax rate of 8% is applied, and in the present embodiment, the tax category is set to "1". The foreign tax of 10% is a category of tax-excluded products to which the normal tax rate of 10% is applied, and in the present embodiment, the tax category is set to "2". The tax category of 8% is a category of tax-included products to which the reduced tax rate of 8% is applied, and in the present embodiment, the tax category is set to "3". The tax classification of 10% is a classification of tax-included products to which the normal tax rate of 10% is applied, and in the present embodiment, the tax classification is set to "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 food products are subject to the reduced tax rate system. Therefore, the attribute of the beverage or food product is information indicating that the product is subject to the reduced tax rate system. The attributes of other products are information indicating that the products are 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 in which information on the payment name and the specific flag is stored for each payment category that classifies the payment method of the price. 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 category for cash is "1", the payment category for credit cards is "2", the payment category for electronic money is "3", the payment category for gift certificates is "4", and the payment category for the first shopping voucher is "". 5 ”, the payment category for the second shopping voucher is“ 6 ”. Incidentally, the first shopping voucher is a cash voucher whose face value is the amount corresponding to the accumulated points. The second shopping voucher is a fixed amount of money voucher issued to a good customer by a store or a business entity that operates the store. The definitions of the first shopping voucher and the second shopping voucher are not limited to this. Under tax law, any cash voucher that is recorded as sales promotion expenses at the store or business entity that issues the voucher may be used.

支払名称は、対応する支払区分で分類される支払方法を表す名称である。
特定フラグは、対応する支払区分で分類される支払方法が、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するための1ビットデータである。例示した6種目の支払方法のうち、第1買物券又は第2買物券のように販促費として計上される金券は、税区分別に支払金額の割合を求めることが望まれている。すなわち第1買物券又は第2買物券は、特定の支払方法に相当する。本実施形態では、特定の支払方法を示す特定フラグを“1”とし、特定の支払方法以外を示す特定フラグを“0”とする。
The payment name is a name that represents a payment method classified by the corresponding payment category.
The specific flag is 1-bit data for identifying whether or not the payment method classified by the corresponding payment category is a specific payment method for obtaining the ratio of the payment amount for each tax category. Among the six types of payment methods illustrated, it is desired to obtain the ratio of the payment amount for each tax category for the cash vouchers recorded as sales promotion expenses such as the first shopping voucher or the second shopping voucher. That is, the first shopping voucher or the second shopping voucher corresponds to a specific payment method. In the present embodiment, the specific flag indicating the specific payment method is set to "1", and the specific flag indicating 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 description of FIG.
The keyboard 107 is a dedicated input device in which various function keys such as a multiplication key, a subtotal key, and a closing key are arranged in addition to a numbering key for placing numerical values such as points and amounts. The keyboard 107 may be an arbitrary key of a general-purpose keyboard to which a function required by the POS terminal 10 is assigned. The closing key is provided for each payment method. That is, the first tightening key corresponding to cash, the second tightening key corresponding to a credit card, the third tightening key corresponding to electronic money, the fourth tightening key corresponding to a gift certificate, and the fifth tightening key corresponding to the first shopping voucher. A closing key and a sixth closing key corresponding to the second shopping voucher 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 a code symbol by scanning a laser beam, or may be a type that reads a code symbol from an image captured by an imaging device. The keyboard 107 and the 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 clerk who is an operator. The second display 110 displays information to a consumer who is a customer. As this type of display device, for example, a liquid crystal display, an organic EL (Electroluminescence) display, or the like 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 for the POS terminal 10.

プリンタ111は、レシート用紙に対して各種の文字列又は画像等を印刷することにより、レシートを発行する。この種のプリンタ111としては、例えばサーマルプリンタ又はドットインパクトプリンタ等を利用できる。プリンタ111は、POS端末10の印刷デバイスとして機能する。 The printer 111 issues a receipt by printing various character strings, images, and the like on the receipt paper. As the printer 111 of this type, for example, a thermal printer, a dot impact printer, or the like 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 a main data area 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 area including tax 33, a payment details table area 34, and a total payment amount area 35. Each data area is reserved 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 is associated with a series of registration numbers, and is associated with an area for describing product data including a product code, a product name, a unit price, a tax classification, and an attribute, and a number of sales points P ( It has an area for describing P1, P2, P3, ...) And a sales amount Q (Q1, Q2, Q3, ...). Further, the registered product table area 31 is an area for describing the total number of points P0, which is the sum of the sales points P of the products sold as one transaction, and an area for describing the total amount Q0, which is the sum of the sales amount Q of the same product. And have.

税区分テーブルエリア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 totaling the sales amount Q of the goods sold as one transaction according to the tax classification of the tax levied on the goods. The tax classification table area 32 describes the total amount A1, A2, A3, A4 and the tax amount B1, B2, B, B3, B4 for each tax classification "1", "2", "3", "4". Has an area for.

税込み合計金額エリア33は、1取引として売り上げる商品の税込み合計金額Cを記述するための領域である。税込み合計金額Cは、1取引として売り上げる商品の合計金額Q0と、当該商品のうち外税商品に課せられる税の税額とを合算して算出される。 The total amount including tax area 33 is an area for describing the total amount C including tax of the products sold as one transaction. The total amount C including tax is calculated by adding the total amount Q0 of the products sold as one transaction and the tax amount of the tax levied on the non-taxable 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 has payment amounts E1 to E6 for each payment category of "1" to "6" and amounts G11 to G41 for each tax category "1" to "4". Describe G21 to G42, G13 to G43, G14 to G44, G15 to G45, G16 to G46, and tax amounts H11 to H41, H21 to H42, H13 to H43, H14 to H44, H15 to H45, and H16 to H46. Has an area for.

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

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

1取引の商品登録を開始するに先立ち、プロセッサ101は、ACT1として初期化を行う。この初期化により、登録商品テーブルエリア31、税区分テーブルエリア32、税込み合計金額エリア33、支払い明細テーブルエリア34及び支払合計金額エリア35がクリアされる。 Prior to starting the product registration of one transaction, the processor 101 initializes as ACT1. By this initialization, the registered product table area 31, the tax classification table area 32, the total amount area including tax 33, the payment details table area 34, and the total payment amount 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 as 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 acquires the product data of the product identified by the product code as ACT3. That is, the processor 101 inquires about the product data to the store server 20. By this inquiry, the product file 21 is searched on the store server 20. Then, the product data described in the product record 21R including the product code is transmitted to the POS terminal 10 of the inquiry source. Thus, the processor 101 can acquire the product data. The product data includes the product code, product name, unit price, tax classification, attributes, and the like.

商品データを取得したプロセッサ101は、ACT4としてその商品データに基づいて商品販売データを生成する。すなわちプロセッサ101は、商品データに含まれる単価に販売点数Pを乗算して販売金額Qを算出する。販売点数Pは、商品コードが入力される直前にキーボード107のテンキーと乗算キーとによって乗数が入力されている場合にはその乗数とし、乗数が入力されていない場合には“1”とする。そしてプロセッサ101は、商品データの商品コード、商品名、単価、税区分、属性に、販売点数P及び販売金額Qを付加して、商品販売データを生成する。 The processor 101 that has acquired the product data generates product sales data as ACT4 based on the product data. 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 points P. The selling point P is the multiplier when the multiplier is input by the numeric keypad 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 points P and the sales amount Q to the product code, product name, unit price, tax classification, and attribute of the product data to generate the product sales data.

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

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

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

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

ACT8又はACT9の待ち受け状態において、小計キーが入力された場合には、プロセッサ101は、ACT9においてYESと判定し、ACT10へと進む。プロセッサ101は、ACT10として税区分テーブルエリア32の税額B1〜B4を、以下の(1)〜(4)式により算出する。なお、小数点以下は四捨五入する。 When the subtotal key is input in the standby state of ACT8 or ACT9, the processor 101 determines YES in ACT9 and proceeds to ACT10. The processor 101 calculates the tax amounts B1 to B4 of the tax classification table area 32 as the ACT 10 by the following equations (1) to (4). The numbers after 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 amount C including tax as the ACT 11 by 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として商品コードが入力されるか支払いデータが入力されるのを待ち受ける。 After that, the processor 101 confirms whether or not the product code has been input as the ACT 13. If the product code is not input, the processor 101 determines NO in the ACT 13 and proceeds to the ACT 14. The processor 101 confirms whether or not the payment data has been input as the ACT 14. If the payment data is not input, the processor 101 determines NO in the ACT 14 and returns to the ACT 13. Here, the processor 101 waits for the product code to be input or the payment data to be input as ACT 13 or ACT 14.

ACT13又はACT14の待ち受け状態において、商品コードが入力されると、プロセッサ101は、ACT13においてYESと判定し、ACT3へと戻る。以後、プロセッサ101は、ACT3乃至ACT7の処理を前述したのと同様に実行する。そしてプロセッサ101は、ACT8又はACT9の待ち受け状態に戻る。 When the product code is input in the standby state of ACT 13 or ACT 14, the processor 101 determines YES in ACT 13 and returns to ACT 3. After that, the processor 101 executes the processes of ACT3 to ACT7 in the same manner as described above. Then, the processor 101 returns to the standby state of 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 of the closing keys 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 acquires the payment category n corresponding to the payment method and the payment amount En as the ACT 21. Then, the processor 101 describes the payment amount En in the payment amount area corresponding to the payment category n in the payment detail table area 34 as the ACT 22. Further, the processor 101 adds the payment amount En as the ACT 23 to the total payment amount area 35 to calculate the total payment amount D.

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

支払いデータが入力されると、プロセッサ101は、ACT26においてYESと判定し、ACT21へと戻る。そしてプロセッサ101は、ACT21乃至ACT24の処理を前述したのと同様に実行する。 When the payment data is input, the processor 101 determines YES in the ACT 26 and returns to the ACT 21. Then, the processor 101 executes the processes of ACT 21 to ACT 24 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 the total amount C or more including tax, the payment is completed. The processor 101 determines YES in the ACT 24 and proceeds to the ACT 27. The processor 101 resets the counter r to "0" as the ACT 27. The counter r is formed, for example, in the volatile area of the main memory 102. Next, the processor 101 counts up the counter r by "1" as the ACT 28. Then, the processor 101 confirms whether or not the counter r exceeds the maximum value R as the ACT 29. 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 the ACT 29 and proceeds to the ACT 30. The processor 101 searches the payment details table area 34 as the ACT 30 and confirms whether or not the payment amount Er having the value of the counter r as the payment category is larger than “0”. When the payment amount Er is "0", there is no payment by the payment method identified by the payment category r. The processor 101 determines NO in the ACT 30 and returns to the ACT 28. The processor 101 further counts up the counter r by "1". Then, the processor 101 confirms whether or not the counter r exceeds 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, when the payment amount Er is larger than "0", there is payment by the payment method identified by the payment category r. The processor 101 determines YES in the ACT 30, and proceeds to the ACT 31. The processor 101 acquires the specific flag Fr for the payment category r as the ACT 31. That is, the processor 101 inquires the store server 20 of the specific flag Fr for the payment category r. By this inquiry, the store server 20 searches the payment management table 22, reads the specific flag Fr for the payment category r, and transmits the specific flag Fr to the POS terminal 10 of the inquiry source. Thus, the processor 101 acquires 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 confirms whether or not the specific flag Fr is "1" as the ACT 32. If the specific flag Fr is not "1", the payment method of the payment category r is not a specific payment method for obtaining the ratio of the payment amount for each tax category. The processor 101 determines NO in the ACT 32 and returns to the ACT 28.

これに対し、特定フラグ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 of the payment category r is a specific payment method for obtaining the ratio of the payment amount for each tax category. The processor 101 determines YES in the ACT 32, and proceeds to the ACT 33. The processor 101 calculates, as the ACT 33, 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 by the following equations (6) to (9). The numbers after 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)
After calculating the amounts G1r to G4r for each tax category "1" to "4", the processor 101 sets the amounts G1r to G4r as the ACT 34 and sets the amounts G1r to G4r as the tax category "1" corresponding to the payment category r in the payment detail table area 34. Describe in the amount area for each "to""4".

次いでプロセッサ101は、ACT35として当該支払区分rに対する税区分“1”〜“4”毎の税額H1r〜H4rを、以下の(10)〜(13)式により算出する。なお、小数点以下は四捨五入する。 Next, the processor 101 calculates the tax amounts H1r to H4r for each of the tax categories "1" to "4" for the payment category r as the ACT 35 by the following equations (10) to (13). The numbers after 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 sets the tax amounts H1r to H4r as the ACT 36 and sets the tax amounts H1r to H4r as the tax category "1" corresponding to the payment category r in the payment statement table area 34. Describe in the tax area for each "to""4".

ACT36の処理を終えると、プロセッサ101は、ACT28へと戻る。プロセッサ101は、カウンタrをさらに“1”だけカウントアップする。そしてプロセッサ101は、カウンタrが最大値Rを超えたか否かを確認する。カウンタrが最大値Rを超えていない場合、プロセッサ101は、ACT30乃至ACT36の処理を前述したのと同様に実行する。 When the processing of the ACT 36 is finished, the processor 101 returns to the ACT 28. The processor 101 further counts up the counter r by "1". Then, the processor 101 confirms whether or not the counter r exceeds the maximum value R. When the counter r does not exceed the maximum value R, the processor 101 executes the processes of ACT 30 to ACT 36 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 the ACT 29 and proceeds to the ACT 37. The processor 101 creates transaction data as ACT 37. The transaction data is composed of data described in the registered product table area 31, the tax classification table area 32, the total amount including tax area 33, the payment details table area 34, and the 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) measured by the clock 104, a series of transaction numbers (receipt number), and a unique registration number set for the POS terminal 10. including. The transaction data may include other data.

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

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

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

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

またプロセッサ101は、図8のACT28及びAC30の処理を実行することにより、金額取得手段を構成する。すなわちプロセッサ101は、支払い明細テーブルエリア34を利用して、支払区分r毎に商品に対する支払金額Erを取得する。 Further, the processor 101 constitutes a monetary amount acquisition means by executing the processes of the ACT 28 and the AC 30 of FIG. That is, the processor 101 uses the payment details table area 34 to acquire 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 the ACT 31 and the AC 32 of FIG. That is, the processor 101 acquires the specific flag Fr for the payment amount Er from the payment management table 22 which is the storage unit. The specific flag Fr is data that identifies whether or not the payment method is a specific payment method for obtaining the ratio of the payment amount for each tax category.

またプロセッサ101は、図8のACT33及びACT34の処理を実行することにより、計算手段を構成する。すなわちプロセッサ101は、税区分テーブルエリア32を利用して、税区分毎に合計された金額A1〜A4の比で支払金額Erを按分することによって計算する。そしてプロセッサ101は、税区分毎に計算された支払金額G1r〜G4rを支払い明細テーブルエリア34で記憶する。 Further, the processor 101 constitutes a calculation means by executing the processes of ACT 33 and ACT 34 of FIG. That is, the processor 101 calculates by using the tax classification table area 32 and apportioning the payment amount Er by the ratio of the total amounts A1 to A4 for each tax classification. Then, the processor 101 stores the payment amounts G1r to G4r calculated for each tax category in the payment detail 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 ACT 35 and ACT 36 of FIG. That is, the processor 101 calculates the tax amounts H1r to H4r of the tax type specified in the tax category from the payment amounts G1r to G4r calculated for each tax category. Then, the processor 101 stores the tax amounts H1r to H4r calculated for each tax category in the payment detail table area 34.

さらにプロセッサ101は、図8のACT39の処理を実行することにより、出力手段を構成する。すなわちプロセッサ101は、レシートデータをプリンタ111に出力する。そしてプリンタ111は、発行手段を構成する。すなわちプリンタ111は、レシートデータを受けて一取引のデータが記録されたレシートを発行する。レシートには、支払金額G1r〜G4r及び税額H1r〜H4rが出力される。 Further, the processor 101 constitutes an output means by executing the process of ACT 39 of FIG. That is, the processor 101 outputs the receipt data to the printer 111. Then, the printer 111 constitutes an issuing means. That is, the printer 111 receives the receipt data and issues a receipt in which the 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 for performing data communication with the store server 20 that collects data of one transaction. Then, the processor 101 constitutes a second output means by the processing of ACT 36 and ACT 40 of 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 and outputs 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 described in the tax classification table area 32, the total amount including tax area 33, the payment details table area 34, and the total payment amount area 35 in one transaction. That is, in Fig. 9, the tax category is "1" and the price is 1000 yen, which is 8% tax exemption, the tax category is "2", the price is 2000 yen, which is 10% exemption tax, and the tax category is "3". An example of a transaction with a consumer who has purchased a total of four items, one for each of an 8% tax-included product with a price of 3000 yen and a 10% tax-included product with a tax classification of "4" and a price of 4000 yen. Then, the consumer pays 5,000 yen with the first shopping voucher with the payment category "5" and 6000 yen with the cash with the payment category "1". Here, it is assumed that cash with a payment category of "1" is not a specific payment method, but the first shopping voucher with a payment category 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, for cash whose payment category is "1", since the payment amount E1 is 6000 yen, it is determined as YES in ACT30 of FIG. 8, and the process proceeds to ACT31. However, since the specific flag F1 acquired from the store server 20 in ACT 31 is "0" and is determined to be NO in ACT 32, the processes of ACT 33 to ACT 36 are not executed.

また、支払区分“2”のクレジットカード、支払区分“3”の電子マネー、支払区分“4”の商品券及び支払区分“6”の第2買物券については、支払金額E2,E3,E4,E6が0円なので、ACT30においてNOと判定される。したがって、ACT31乃至ACT36の処理は実行されない。 For credit cards with payment category "2", electronic money with payment category "3", gift certificates with payment category "4", and second shopping vouchers with payment category "6", payment amounts E2, E3, E4. Since E6 is 0 yen, it is determined as NO in ACT30. Therefore, the processes of ACT 31 to ACT 36 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 voucher of the payment category "5", since the payment amount E5 is 5000 yen, it is determined as YES in ACT30, and the process proceeds to ACT31. Then, since the specific flag F5 acquired from the store server 20 in ACT 31 is “1” and YES is determined in ACT 32, the processes of ACT 33 to ACT 36 are executed. That is, the amounts G15, G25, G35, and G45 for each tax category "1" to "4" are calculated by the following equations (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, G45 are described in the payment details table area 34.

また、以下の(10a)〜(13a)式により、税区分“1”〜“4”毎の税額H15、H25、H35、H45が算出される。 Further, the tax amounts H15, H25, H35, and H45 for each tax category "1" to "4" are calculated by the following equations (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, H45 are described in the payment details table area 34.

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

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

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

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

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

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

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

例えば前記実施形態では、支払管理テーブル22を店舗サーバ20に設けた。他の実施形態としては、支払管理テーブル22をPOS端末10が備えていてもよい。 For example, in the above embodiment, the payment management table 22 is provided on the store server 20. In another embodiment, the POS terminal 10 may include a 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 above-described embodiment, the payment method for obtaining the ratio of the payment amount for each tax category can be identified by the specific flag, and the processor 101 has the ACT 33 to 33 when the specific flag is "1" in the ACT 32 of FIG. The processing of ACT36 was executed. In this regard, if the processor 101 determines YES in the ACT 30, the processor 101 skips the processes of the ACT 31 and the ACT 32 and executes the processes of the ACTs 33 to 36. Then, the processor 101 refers to the specific flag before creating the transaction data in the ACT 37. Then, the processor 101 selects the amounts G1r to G4r and the tax amounts H1r to H4r of the payment category r in which the 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を省略することができるのは言うまでもないことである。 Needless to say, the payment management table 22 can be omitted when the ratio of the payment amount is calculated for each tax category for all payment methods.

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

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

図9の例を用いて説明すると、販促費として計上されない支払区分“1”の支払金額E1が6000円なので、以下の(6b)〜(9b)式により、税区分“1”〜“4”毎の金額G11、G21、G31、G41が算出する。 Explaining using the example of FIG. 9, since the payment amount E1 of the payment category “1” that is not recorded as sales promotion expenses is 6000 yen, the tax categories “1” to “4” are calculated according to the following formulas (6b) to (9b). Each amount G11, G21, G31, G41 is 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 by the following equations (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)
Then, from the tax amount for each tax category "1" to "4" stored in the tax category table area 32 by the following equations (14b) to (17b), the tax amounts H11, H21, H31, of the corresponding tax category, By subtracting each of H41, the tax amounts H15, H252, H35, and H45 of the payment category "5" 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)
In addition, when there are multiple payments in the payment category recorded as sales promotion expenses, in order to reduce the error, the payment category with the largest payment amount is not calculated. That is, the tax amount for each tax category is calculated for the payment category with a small payment amount, and the tax amount for each tax category is calculated for the payment category that is not recorded as sales promotion expenses. Then, there is a method of calculating each tax amount of the payment category having the largest payment amount by subtracting those tax amounts from the tax amount of each tax category.

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

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" for the payment amount E6 of the payment category "6" are calculated by the following equations (10c) to (13c).

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 tax category "1" to "4" for the payment amount E1 of the payment category "1" are calculated by the following equations (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" for the payment amount E1 of the payment category "1" are calculated by the following equations (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)
Then, from the tax amount for each tax category "1" to "4" stored in the tax category table area 32 by the following formulas (14d) to (17d), the tax amounts H16, H26, H36 of the corresponding tax category, By subtracting H46 and tax amounts H11, H21, H31, and H41, respectively, the tax amounts H15, H252, H35, and H45 of the payment category "5" recorded as sales promotion expenses are calculated indirectly.

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, each tax amount calculated as described above for each payment category is not printed on the receipt except for a part, but is output in the journal.

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

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

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 area including tax, 34 ... payment details table area, 35 ... total payment 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 (5)

商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段と、
前記商品に対する支払金額を取得する金額取得手段と、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段と、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段と、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段と、
を具備する商品販売データ処理装置。
A total means of totaling the amount of the goods for each tax category that classifies the types of taxes levied on the goods, and
Amount acquisition means for acquiring the payment amount for the product, and
A calculation means for calculating the payment amount by the ratio of the amounts totaled for each tax category by the total means, and
A calculation means for calculating the tax amount of the type of tax specified in the tax category from the payment amount calculated for each tax category by the calculation means.
An output means that 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.
Product sales data processing device equipped with.
支払方法を分類する支払区分毎に、税区分別に支払金額の割合を求める特定の支払方法であるか否かを識別するデータを記憶した記憶部から、前記金額取得手段により取得した支払金額に対する支払区分の前記データを取得するデータ取得手段、
をさらに具備し、
前記データ取得手段により取得した前記データが前記特定の支払方法であることを示すデータである場合、その特定の支払方法による支払金額に対して、前記計算手段による計算処理と前記算出手段により算出処理とを実行する、請求項1記載の商品販売データ処理装置。
Classify payment methods Payment for the payment amount acquired by the amount acquisition means from the storage unit that stores data that identifies whether or not the payment method is a specific payment method that calculates the ratio of the payment amount for each tax category. Data acquisition means for acquiring the data of the division,
Further equipped,
When the data acquired by the data acquisition means is data indicating that the specific payment method is used, the payment amount by the specific payment method is calculated by the calculation means and the calculation means. The product sales data processing device according to claim 1, which executes the above.
一取引のデータが記録されたレシートを発行する発行手段、
をさらに具備し、
前記出力手段は、前記レシートに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を記録することで出力する、請求項1又は2記載の商品販売データ処理装置。
Issuing means for issuing receipts containing transaction data,
Further equipped,
The output means outputs by recording on the receipt at least one of 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. Item 2. The product sales data processing device according to item 1 or 2.
1取引のデータを収集するサーバとデータ通信を行う通信手段、
をさらに具備し、
前記出力手段は、前記1取引のデータに、前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を含ませて、前記通信手段を介して前記サーバへと送信することで出力する、請求項1又は2記載の商品販売データ処理装置。
1 Communication means for data communication with a server that collects transaction data,
Further equipped,
The output means includes, in the data of the one transaction, at least one of the payment amount calculated for each tax category by the calculation means and at least one of the tax amount calculated for each tax category by the calculation means. The product sales data processing device according to claim 1 or 2, which outputs by transmitting to the server via a communication means.
商品販売データ処理装置のコンピュータを、
商品に課せられる税の種類を分類する税区分毎に前記商品の金額を合計する合計手段、
前記商品に対する支払金額を取得する金額取得手段、
前記合計手段により税区分毎に合計された金額の比で前記支払金額を計算する計算手段、
前記計算手段により税区分毎に計算された前記支払金額からその税区分で特定される税の種類の税額を算出する算出手段、及び、
前記計算手段により税区分毎に計算された前記支払金額、または、前記算出手段により税区分毎に算出された税額の少なくとも一方を出力する出力手段、
として機能させるための制御プログラム。
The computer of the product sales data processing device,
A total means of totaling the amount of the goods for each tax category that classifies the types of taxes levied on the goods,
Amount acquisition means for acquiring the payment amount for the product,
A calculation means for calculating the payment amount by the ratio of the amounts totaled for each tax category by the total means,
A calculation means for calculating the tax amount of the type of tax specified in the tax category from the payment amount calculated for each tax category by the calculation means, and
An output means that 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.
A 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 true JP2021047726A (en) 2021-03-25
JP7353890B2 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03154196A (en) * 1989-11-10 1991-07-02 Tokyo Electric Co Ltd Electronic cash register
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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03154196A (en) * 1989-11-10 1991-07-02 Tokyo Electric Co Ltd Electronic cash register
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
JP7353890B2 (en) 2023-10-02

Similar Documents

Publication Publication Date Title
JP7309807B2 (en) Payment device and its program
JP7500823B2 (en) Product sales data processing system, settlement device and control program thereof
JP2023062026A (en) Commodity sales data processing device and control program
JP2009059321A (en) Commodity sales data processor
JP5014648B2 (en) Register system
JP7353890B2 (en) Product sales data processing device and control program
JP2017142752A (en) POS system
JP2012168895A (en) Sales data processor and program
JP7522264B2 (en) Product sales data processing device and control program
JP7326049B2 (en) Coupon issuing system, coupon management device and its control program
JP7401188B2 (en) Product sales data processing device and control program
JP6156802B2 (en) Receipt issuing device and receipt issuing method
CN112053519B (en) Commodity sales data processing apparatus, display control method, medium, and device
JP7167258B2 (en) Duty exemption processing system, storage device and data processing method
JP7111868B2 (en) Tax exemption processing system, information processing device and its program
JP2022070088A (en) Settlement device and control program therefor, and receipt data creation method
JP2021192167A (en) Settlement device and program
JP2001250168A (en) System and device for pos
JP2022148643A (en) Commodity sales data processing system, commodity sales data processing device and control program therefor, and commodity sales data processing method
JP2024030512A (en) Accounting system, registration machine, accounting machine, and program therefor
JP2021119493A (en) Settlement device, control therefor and settlement method
CN116645768A (en) Checkout machine and storage medium thereof
JP2020021306A (en) Individual commodity management system, individual commodity management device, and program thereof
JP2007109030A (en) Article sales data processing device and computer program
JP2015052881A (en) Commodity sales data-processing system

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