JP2023181637A - Sales data processor and program - Google Patents

Sales data processor and program Download PDF

Info

Publication number
JP2023181637A
JP2023181637A JP2022094879A JP2022094879A JP2023181637A JP 2023181637 A JP2023181637 A JP 2023181637A JP 2022094879 A JP2022094879 A JP 2022094879A JP 2022094879 A JP2022094879 A JP 2022094879A JP 2023181637 A JP2023181637 A JP 2023181637A
Authority
JP
Japan
Prior art keywords
tax
unit
product
amount
taxable
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.)
Pending
Application number
JP2022094879A
Other languages
Japanese (ja)
Inventor
秀明 杉山
Hideaki Sugiyama
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 JP2022094879A priority Critical patent/JP2023181637A/en
Publication of JP2023181637A publication Critical patent/JP2023181637A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

To provide a sales data processor and a program that enable retailers, etc. to easily cope with the invoice system.SOLUTION: A sales data processor according to the embodiment, which performs article registration based on input article identification information, includes: a first taxable amount calculation unit that calculates, for each applicable tax rate, a total taxable amount of the registered articles that are subject to tax-inclusive pricing; a second taxable amount calculation unit that calculates, for each applied tax rate, a taxable amount of the articles that are subject to tax-exclusive pricing; a totaling unit for totaling the taxable amounts calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each of the tax rates; and a tax amount calculation unit that calculates an amount of tax with respect to the taxable amount totaled by the totaling unit for each of the tax rates.SELECTED DRAWING: Figure 13

Description

本発明の実施形態は、販売データ処理装置およびプログラムに関する。 Embodiments of the present invention relate to a sales data processing device and a program.

従来、いわゆる内税商品と外税商品とを扱う店舗が発行するレシートは、内税商品の合計の金額情報と、外税商品の合計の金額情報とを分けて印字するものであった(例えば、特許文献1)。 Conventionally, receipts issued by stores that handle so-called tax-inclusive products and non-tax products have been printed with information on the total amount of tax-inclusive products and total amount of tax-exclusive products separately (for example, , Patent Document 1).

ところで、取引における消費税額と消費税率を正確に把握することを目的とした適格請求書等保存方式(以下、「インボイス制度」ともいう)の導入が検討されている。インボイス制度では、売り手は買い手の要求に応じて所定の事項を記載した適格請求書を発行する必要がある。また、インボイス制度では、不特定多数の者に対して販売等を行う事業者(以下、「小売業者等」ともいう)は、適格請求書に代えて適格簡易請求書を交付することができる。 By the way, the introduction of a qualified invoice storage system (hereinafter also referred to as an "invoice system") is being considered for the purpose of accurately understanding the consumption tax amount and consumption tax rate in transactions. Under the invoice system, sellers are required to issue qualified invoices containing specified items upon request from buyers. In addition, under the invoice system, businesses that sell to an unspecified number of people (hereinafter also referred to as "retailers, etc.") can issue qualified simple invoices instead of qualified invoices. .

上記適格簡易請求書は、所定の事項を記載したレシートとすることができる。このため、小売事業者等がインボイス制度に容易に対応できるように、適格簡易請求書の要件を満たすレシートの発行が望まれている。レシートが適格簡易請求書の要件を満たすためには、内税商品、外税商品を含めて税率毎に区分して、対価や消費税額などを印字する必要があり、上記従来のレシートの印字内容では対応できない。 The above-mentioned qualified simple invoice may be a receipt stating prescribed matters. For this reason, it is desired to issue receipts that meet the requirements for qualified simple invoices so that retail businesses can easily respond to the invoice system. In order for a receipt to meet the requirements for a qualified simple invoice, it is necessary to classify the items by tax rate, including tax-inclusive and tax-exclusive products, and print the consideration, consumption tax amount, etc. I can't deal with this.

本発明が解決しようとする課題は、小売事業者等がインボイス制度に容易に対応できることを可能とする販売データ処理装置およびプログラムを提供することである。 The problem to be solved by the present invention is to provide a sales data processing device and a program that enable retail businesses and the like to easily comply with the invoice system.

実施形態の販売データ処理装置は、商品を識別する商品識別情報が入力される入力部と、価格を含む商品情報と前記商品識別情報とを対応付けて記憶する商品情報記憶部から、前記入力部に入力された商品識別情報に対応する商品情報を登録して商品登録を行う登録部と、前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含む税込価格である内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する第1の課税対象額算出部と、前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含まない税抜価格である外税商品の当該価格の合計である課税対象額を、適用される税率毎にそれぞれ算出する第2の課税対象額算出部と、前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計する集計部と、前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する税額算出部と、を備える。 The sales data processing device of the embodiment includes an input unit into which product identification information for identifying a product is input, and a product information storage unit that stores product information including a price in association with the product identification information. A registration unit registers product information by registering product information corresponding to the product identification information inputted in the product information storage unit, and the price stored in the product information storage unit of the products registered by the registration unit is subject to consumption tax. A first taxable amount calculation unit that calculates the total taxable amount of tax-inclusive products, which is a tax-inclusive price, for each applicable tax rate, and the product information of the products registered by the registration unit. a second taxable amount calculation unit that calculates the taxable amount, which is the sum of the prices of tax-exclusive products whose prices stored in the storage unit are tax-exclusive prices that do not include consumption tax, for each applicable tax rate; and an aggregation unit that aggregates the taxable amount calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each tax rate, and a tax amount on the taxable amount aggregated by the aggregation unit. and a tax amount calculation unit that calculates each of the above tax rates.

図1は、実施形態の販売データ処理装置を含む店舗システムの概略を示す図である。FIG. 1 is a diagram schematically showing a store system including a sales data processing device according to an embodiment. 図2は、実施形態のPOS端末の主たるハードウェア構成を示すブロック図である。FIG. 2 is a block diagram showing the main hardware configuration of the POS terminal according to the embodiment. 図3は、実施形態のPOS端末の記憶部に記憶される商品マスタのデータ構成を示す図である。FIG. 3 is a diagram showing the data structure of the product master stored in the storage unit of the POS terminal according to the embodiment. 図4は、実施形態のPOS端末の記憶部に記憶される税種別管理ファイルのデータ構成を示す図である。FIG. 4 is a diagram showing the data structure of the tax type management file stored in the storage unit of the POS terminal according to the embodiment. 図5は、実施形態のPOS端末の記憶部に記憶される処理区分設定ファイルのデータ構成を示す図である。FIG. 5 is a diagram showing the data structure of a processing category setting file stored in the storage unit of the POS terminal according to the embodiment. 図6は、実施形態のPOS端末の記憶部に記憶される対価印字設定ファイルのデータ構成を示す図である。FIG. 6 is a diagram showing the data structure of the consideration print setting file stored in the storage unit of the POS terminal according to the embodiment. 図7は、実施形態のPOS端末の制御部の主たる機能構成を示すブロック図である。FIG. 7 is a block diagram showing the main functional configuration of the control unit of the POS terminal according to the embodiment. 図8は、実施形態のサーバ装置の主たるハードウェア構成を示すブロック図である。FIG. 8 is a block diagram showing the main hardware configuration of the server device according to the embodiment. 図9は、実施形態のサーバ装置の記憶部に記憶される会員マスタのデータ構成を示す図である。FIG. 9 is a diagram showing the data structure of the member master stored in the storage unit of the server device according to the embodiment. 図10は、実施形態のサーバ装置の記憶部に記憶される取引情報管理ファイルのデータ構成を示す図である。FIG. 10 is a diagram showing the data structure of a transaction information management file stored in the storage unit of the server device according to the embodiment. 図11は、実施形態のサーバ装置の制御部の主たる機能構成を示すブロック図である。FIG. 11 is a block diagram showing the main functional configuration of the control unit of the server device according to the embodiment. 図12は、実施形態の店舗システムの動作の流れを示すシーケンスチャートである。FIG. 12 is a sequence chart showing the flow of operations of the store system of the embodiment. 図13は、実施形態のPOS端末の制御部による算出処理の流れを示すフローチャートである。FIG. 13 is a flowchart showing the flow of calculation processing by the control unit of the POS terminal according to the embodiment. 図14は、実施形態のPOS端末の制御部によるレシート発行処理の流れを示すフローチャートである。FIG. 14 is a flowchart showing the flow of receipt issuing processing by the control unit of the POS terminal according to the embodiment. 図15は、実施形態のPOS端末が発行するフォーマット1のレシートを示す図である。FIG. 15 is a diagram showing a format 1 receipt issued by the POS terminal of the embodiment. 図16は、実施形態のPOS端末が発行するフォーマット2のレシートを示す図である。FIG. 16 is a diagram showing a format 2 receipt issued by the POS terminal of the embodiment. 図17は、実施形態のPOS端末の制御部による取引データ算出処理の流れを示すフローチャートである。FIG. 17 is a flowchart showing the flow of transaction data calculation processing by the control unit of the POS terminal according to the embodiment. 図18は、実施形態のPOS端末の制御部による適格請求書発行処理の流れを示すフローチャートである。FIG. 18 is a flowchart showing the flow of eligible bill issuance processing by the control unit of the POS terminal according to the embodiment. 図19は、実施形態のPOS端末が発行する適格請求書を示す図である。FIG. 19 is a diagram showing eligible bills issued by the POS terminal of the embodiment.

以下、図面を参照して実施形態の販売データ処理装置およびプログラムについて説明する。なお、以下に説明する実施形態により本発明が限定されるものではない。例えば、以下に説明する実施形態ではPOS端末2が発行するレシートを紙レシートとした例について説明するが、レシートは当該紙レシートに記載される情報を電子化した電子レシートとしてもよい。同様に、請求書も紙媒体に印字されたものに限らず、電子化されたものであってもよい。また、以下に説明する実施形態では、商品を販売する店舗が管理する店舗サーバをサーバ装置とした例について説明するが、これに限らない。サーバ装置は、複数の店舗を運営する企業の本部で管理される本部サーバなどであってもよい。 Hereinafter, a sales data processing device and a program according to an embodiment will be described with reference to the drawings. Note that the present invention is not limited to the embodiments described below. For example, in the embodiment described below, an example will be described in which the receipt issued by the POS terminal 2 is a paper receipt, but the receipt may also be an electronic receipt in which information written on the paper receipt is digitized. Similarly, the bill is not limited to one printed on a paper medium, but may be digitized. Further, in the embodiment described below, an example will be described in which a server device is used as a store server managed by a store that sells products, but the present invention is not limited to this. The server device may be a headquarters server managed at the headquarters of a company that operates multiple stores.

図1は、実施形態の店舗システム1の概略を示す図である。本実施形態の店舗システム1は、例えば、アパレル商品など特定のジャンルの商品を中心に販売する専門店や、スーパーマーケットなどの量販店に適用される。店舗システム1は、複数のPOS(Point Of Sales)端末2と、サーバ装置3とを有する。各POS端末2とサーバ装置3とはLAN(Local Area Network)等のネットワークを介して互いに通信可能に接続されている。 FIG. 1 is a diagram schematically showing a store system 1 according to an embodiment. The store system 1 of this embodiment is applied, for example, to a specialty store that mainly sells products of a specific category such as apparel products, or to a mass retailer such as a supermarket. The store system 1 includes a plurality of POS (Point Of Sales) terminals 2 and a server device 3. Each POS terminal 2 and the server device 3 are communicably connected to each other via a network such as a LAN (Local Area Network).

POS端末2は、店員が商品登録および会計処理に係る操作を行うものである。POS端末2は、店員の操作によって、消費者が購入する商品の商品コードを読取り、読取った商品コードに基づいて取得した商品情報を記憶することによって商品登録を実行する。また、POS端末2は、商品登録された情報に基づいて会計処理を実行する。 The POS terminal 2 is used by a store clerk to perform operations related to product registration and accounting processing. The POS terminal 2 executes product registration by reading the product code of the product purchased by the consumer and storing the product information obtained based on the read product code through the operation of the store clerk. Further, the POS terminal 2 executes accounting processing based on the information registered with the product.

会計処理は、消費者が支払を行うための処理であって、算出処理、決済処理、レシート発行処理を含む。算出処理は、消費税(以下、単に「税」ともいう)を含む取引金額を算出する処理である。決済処理は、算出処理にて算出された取引金額の支払を完了させるための処理で、現金決済においては釣銭の算出および払出等、キャッシュレス決済においては決済用サーバとの通信等を含む。レシート発行処理は、紙レシートあるいは電子レシートを発行するための処理である。 Accounting processing is processing for consumers to make payments, and includes calculation processing, payment processing, and receipt issuing processing. The calculation process is a process of calculating a transaction amount including consumption tax (hereinafter also simply referred to as "tax"). The payment process is a process for completing the payment of the transaction amount calculated in the calculation process, and includes calculation and disbursement of change in the case of cash payment, and communication with the payment server in the case of cashless payment. The receipt issuing process is a process for issuing a paper receipt or an electronic receipt.

また、POS端末2は、決済処理が完了した取引の取引データをサーバ装置3に送信する。取引データは、取引日時、取引No、取引金額、購入された商品の商品情報等を含む。商品情報の詳細については、後述する。POS端末2は、販売データ処理装置の一例である。なお、POS端末2は、消費者が商品登録および会計処理に係る操作を行うセルフPOS端末、店員が商品登録に係る操作を行う登録装置と消費者が会計処理に係る操作を行う会計装置とを備えたセミセルフPOSであってもよい。 Further, the POS terminal 2 transmits transaction data for transactions for which payment processing has been completed to the server device 3. The transaction data includes transaction date and time, transaction number, transaction amount, product information of the purchased product, and the like. Details of the product information will be described later. The POS terminal 2 is an example of a sales data processing device. Note that the POS terminal 2 includes a self-POS terminal for consumers to perform operations related to product registration and accounting processing, a registration device for clerks to perform operations related to product registration, and an accounting device for consumers to perform operations related to accounting processing. It may also be a semi-self POS equipped with.

サーバ装置3は、POS端末2から、決済処理にて決済された取引データを受信して管理する。また、サーバ装置3は、店舗で扱う商品の商品情報を記憶した商品マスタを適宜更新し、各POS端末2に送信する。 The server device 3 receives transaction data settled in the settlement process from the POS terminal 2 and manages the received transaction data. Additionally, the server device 3 appropriately updates a product master that stores product information of products handled at the store, and sends it to each POS terminal 2.

次に、POS端末2について詳細に説明する。図2は、POS端末2の主たるハードウェア構成を示すブロック図である。POS端末2は、制御部20と、記憶部21と、表示部22と、操作部23と、スキャナ24と、プリンタ25と、カードリーダ26と、釣銭機27と、通信部28と、を備えている。制御部20、記憶部21、表示部22、操作部23、スキャナ24、プリンタ25、カードリーダ26、釣銭機27、および通信部28は、バス29等を介して互いに接続されている。 Next, the POS terminal 2 will be explained in detail. FIG. 2 is a block diagram showing the main hardware configuration of the POS terminal 2. As shown in FIG. The POS terminal 2 includes a control section 20, a storage section 21, a display section 22, an operation section 23, a scanner 24, a printer 25, a card reader 26, a change machine 27, and a communication section 28. ing. The control unit 20, storage unit 21, display unit 22, operation unit 23, scanner 24, printer 25, card reader 26, change machine 27, and communication unit 28 are connected to each other via a bus 29 or the like.

制御部20は、CPU201(Central Processing Unit)、ROM(Read Only Memory)202、RAM(Random Access Memory)203を備えたコンピュータ構成となっている。CPU201、ROM202、およびRAM203は、バス29を介して互いに接続されている。 The control unit 20 has a computer configuration including a CPU 201 (Central Processing Unit), a ROM (Read Only Memory) 202, and a RAM (Random Access Memory) 203. CPU 201 , ROM 202 , and RAM 203 are connected to each other via bus 29 .

CPU201はPOS端末2の全体の動作を制御する。ROM202は、CPU201の駆動に用いられるプログラムなどの各種プログラムや各種データを記憶する。RAM203は、CPU201のワークエリアとして使用され、ROM202や記憶部21に記憶された各種プログラムや各種データを展開する。制御部20は、CPU201がROM202や記憶部21に記憶されてRAM203に展開された制御プログラムに従って動作することによって、POS端末2の各種制御処理を実行する。 The CPU 201 controls the overall operation of the POS terminal 2. The ROM 202 stores various programs such as programs used to drive the CPU 201 and various data. The RAM 203 is used as a work area for the CPU 201 and expands various programs and data stored in the ROM 202 and the storage unit 21. The control unit 20 executes various control processes for the POS terminal 2 by causing the CPU 201 to operate according to a control program stored in the ROM 202 or the storage unit 21 and developed in the RAM 203.

また、RAM203は、登録情報部2031を備える。登録情報部2031は、消費者が購入する商品の商品情報を記憶する。登録情報部2031に記憶される商品情報は、例えば、スキャナ24が商品に付されたコードシンボルから読取った商品コードに基づいて記憶部21から読み出される。登録情報部2031に商品情報が記憶(登録)されることを商品登録ともいう。 Further, the RAM 203 includes a registration information section 2031. The registration information section 2031 stores product information of products purchased by consumers. The product information stored in the registration information section 2031 is read out from the storage section 21 based on, for example, a product code read by the scanner 24 from a code symbol attached to the product. Storing (registering) product information in the registration information section 2031 is also referred to as product registration.

記憶部21は、HDD(Hard Disk Drive)やフラッシュメモリ等の記憶媒体で構成されており、電源を遮断しても記憶内容を維持する。記憶部21は、制御プログラム211、商品マスタ212、税種別管理ファイル213、処理区分設定ファイル214、対価印字設定ファイル215、および登録番号216を記憶する。 The storage unit 21 is composed of a storage medium such as an HDD (Hard Disk Drive) or a flash memory, and maintains the stored contents even if the power is cut off. The storage unit 21 stores a control program 211, a product master 212, a tax type management file 213, a processing category setting file 214, a consideration print setting file 215, and a registration number 216.

制御プログラム211は、スキャナ24で読取られた商品コードに基づいて商品登録を行うためのプログラム、登録情報部2031に記憶された情報に基づいて一取引の決済処理を行うためのプログラム、適格簡易請求書の要件を満たすレシートを発行するためのプログラム、サーバ装置3と各種情報を送受信するためのプログラムなどである。 The control program 211 includes a program for registering a product based on the product code read by the scanner 24, a program for performing payment processing for one transaction based on information stored in the registration information section 2031, and a program for performing a payment process for a single transaction based on the information stored in the registration information section 2031. These include a program for issuing a receipt that satisfies the requirements of a book, a program for transmitting and receiving various information to and from the server device 3, and the like.

商品マスタ212は、店舗が販売する商品の商品情報を記憶したマスタファイルであり、サーバ装置3から受信して記憶される。店舗で扱う商品は日々変化するため、商品マスタ212は適宜更新される。図3は、商品マスタ212のデータ構成を示す図である。商品マスタ212は、商品コードに対応付けて、商品名、価格、税種別コードを記憶する。商品マスタ212は、商品情報記憶部の一例である。なお、商品マスタ212は、記憶部21に記憶されていなくてもよい。この場合、POS端末2は、サーバ装置3に記憶された商品マスタ314(図8参照)を参照することで、商品マスタ212を保持する構成と同様に商品マスタ314を取り扱うことができる。 The product master 212 is a master file that stores product information of products sold by the store, and is received from the server device 3 and stored. Since the products handled at the store change daily, the product master 212 is updated as appropriate. FIG. 3 is a diagram showing the data structure of the product master 212. The product master 212 stores product names, prices, and tax type codes in association with product codes. The product master 212 is an example of a product information storage section. Note that the product master 212 does not need to be stored in the storage unit 21. In this case, the POS terminal 2 can handle the product master 314 in the same manner as the configuration that holds the product master 212 by referring to the product master 314 (see FIG. 8) stored in the server device 3.

商品コードは、商品を識別するもので、商品識別情報の一例である。商品名は、商品の名称である。価格は、商品の価格である。価格には、店舗の運用等により、本体価格(課税対象額)と税額とを含む税込価格、あるいは本体価格のみの税抜価格を登録することができる。例えば、一般的な商品は税抜価格、たばこ等は税込価格とすることができる。本明細書において、価格に税込価格が登録された商品を「内税商品」、価格に税抜価格が登録された商品を「外税商品」という。税種別コードは、適用される税種別および税率を特定するコードである。 The product code identifies the product and is an example of product identification information. The product name is the name of the product. The price is the price of the product. Depending on the operation of the store, a tax-included price that includes the main unit price (taxable amount) and a tax amount, or a tax-excluded price that includes only the main unit price can be registered as the price. For example, general products can be priced without tax, and cigarettes can be priced with tax included. In this specification, a product for which a tax-included price is registered is referred to as a "tax-inclusive product," and a product for which a tax-excluded price is registered as a "tax-exclusive product." The tax type code is a code that identifies the applicable tax type and tax rate.

税種別管理ファイル213は、店舗が販売する商品に適用される税種別を管理するファイルである。図4は、税種別管理ファイル213のデータ構成を示す図である。税種別管理ファイル213は、税種別コードに対応付けて、種別および税率を記憶する。 The tax type management file 213 is a file that manages tax types applied to products sold by stores. FIG. 4 is a diagram showing the data structure of the tax type management file 213. The tax type management file 213 stores types and tax rates in association with tax type codes.

税種別コードは、上述したとおりである。種別は、適用される税の種別を示すもので、内税、外税、非課税のいずれかが設定される。税率には、標準税率(10%)、軽減税率(8%)、あるいは税率0%が登録される。例えば、商品券などの非課税商品については税率0%が登録される。なお、税率については、税制が変更された場合、変更に応じた税率を登録可能である。 The tax type code is as described above. The type indicates the type of tax to be applied, and is set as tax-inclusive, tax-exclusive, or non-taxable. The standard tax rate (10%), reduced tax rate (8%), or 0% tax rate is registered as the tax rate. For example, a tax rate of 0% is registered for tax-exempt products such as gift certificates. Regarding the tax rate, if the tax system is changed, it is possible to register the tax rate according to the change.

処理区分設定ファイル214は、POS端末2の処理区分を設定するためのファイルである。図5は、処理区分設定ファイル214のデータ構成を示す図である。処理区分設定ファイル214は、区分コードに対応付けて、税算出対象、印字フォーマット、および設定フラグを記憶する。 The processing category setting file 214 is a file for setting the processing category of the POS terminal 2. FIG. 5 is a diagram showing the data structure of the processing classification setting file 214. The processing classification setting file 214 stores tax calculation targets, printing formats, and setting flags in association with classification codes.

区分コードは、処理区分を特定するコードである。区分コード1は、レシートを適格簡易請求書として発行するための区分コードであって、POS端末2を利用する事業者が消費税の納付義務がある課税事業者である場合に適したものとなっている。また、区分コード2は、従来どおりのレシートを発行するための区分コードであって、POS端末2を利用する事業者が消費税の納付を免除される免税事業者である場合に適したものとなっている。 The classification code is a code that identifies the processing classification. Classification code 1 is a classification code for issuing a receipt as a qualified simple invoice, and is suitable when the business using POS terminal 2 is a taxable business that is obligated to pay consumption tax. ing. Classification code 2 is a classification code for issuing receipts as usual, and is suitable when the business using POS terminal 2 is a tax-exempt business that is exempt from paying consumption tax. It has become.

税算出対象は、消費税算出の対象を特定する情報である。区分コード1に対応する税算出対象は、一取引において購入された商品の課税対象額の合計である。この場合の税額は、標準税率の商品の本体価格の合計金額に10%を乗じた金額と、軽減税率の商品の本体価格の合計金額に8%を乗じた金額とを加算した金額となる。区分コード2に対応する税算出対象は、一取引において購入された商品毎の課税対象額である。この場合の税額は、商品毎に算出される税額を合計した金額となる。 The tax calculation target is information that specifies the consumption tax calculation target. The tax calculation target corresponding to classification code 1 is the total taxable amount of products purchased in one transaction. In this case, the tax amount is the sum of the sum of the total price of products subject to the standard tax rate multiplied by 10% and the sum obtained by multiplying the total price of products subject to the reduced tax rate by 8%. The tax calculation target corresponding to classification code 2 is the taxable amount for each product purchased in one transaction. In this case, the tax amount is the sum of the tax amounts calculated for each product.

印字フォーマットは、発行されるレシートのフォーマットを特定する情報である。設定フラグは、対応する区分コードが設定値として設定されたか否かを示す情報であり、POS端末2を利用する事業者が任意に設定することができる。POS端末2は、設定フラグに「1」が登録された区分コードに応じて処理を実行する。 The print format is information that specifies the format of the issued receipt. The setting flag is information indicating whether the corresponding classification code has been set as a setting value, and can be arbitrarily set by the business operator using the POS terminal 2. The POS terminal 2 executes processing according to the classification code for which "1" is registered in the setting flag.

対価印字設定ファイル215は、レシートに税毎に印字される取引の対価を税抜とするか税込とするかを設定するためのファイルである。図6は、対価印字設定ファイル215のデータ構成を示す図である。対価印字設定ファイル215は、印字コードに対応付けて、印字対価および設定フラグを記憶する。 The consideration print setting file 215 is a file for setting whether the transaction consideration to be printed for each tax on the receipt is tax-exclusive or tax-included. FIG. 6 is a diagram showing the data structure of the consideration print setting file 215. The consideration printing setting file 215 stores printing consideration and setting flags in association with printing codes.

印字コードは、印字される対価の印字設定を特定するコードである。印字対価は、印字される対価が税抜価格か税込価格かを示す情報である。設定フラグは、対応する印字コードが設定値として設定されたか否かを示す情報であり、POS端末2を利用する事業者が任意に設定することができる。POS端末2は、設定フラグに「1」が登録された印字コードに応じて税毎(税率毎あるいは種別毎)に対価を印字する。 The print code is a code that specifies the print settings of the price to be printed. The printed consideration is information indicating whether the printed consideration is a tax-excluded price or a tax-included price. The setting flag is information indicating whether or not the corresponding print code has been set as a setting value, and can be arbitrarily set by a business operator using the POS terminal 2. The POS terminal 2 prints the consideration for each tax (for each tax rate or type) according to the print code for which "1" is registered in the setting flag.

登録番号216は、POS端末2を利用する事業者が適格請求書発行事業者として登録された場合に付与された登録番号である。POS端末2は、処理区分が区分コード1に設定されている場合、レシートに登録番号216を印字する。 The registration number 216 is a registration number given when a business that uses the POS terminal 2 is registered as a qualified bill issuing business. When the processing classification is set to classification code 1, the POS terminal 2 prints the registration number 216 on the receipt.

図2に戻って、POS端末2のハードウェア構成を説明する。 Returning to FIG. 2, the hardware configuration of the POS terminal 2 will be explained.

表示部22は、表示デバイスであり、液晶ディスプレイなどで構成される。表示部22は、制御部20の制御の下、各種情報を表示する。例えば、表示部22は、商品登録された商品の商品情報や、取引金額(一取引の合計金額)などを表示する。 The display unit 22 is a display device, and is composed of a liquid crystal display or the like. The display section 22 displays various information under the control of the control section 20. For example, the display unit 22 displays product information of registered products, transaction amount (total amount of one transaction), and the like.

操作部23は、入力デバイスであり、表示部22の表面に設けられたタッチパネル、表示部22とは別に設けられたキーボードなどで構成される。操作部23は、店員等の操作により入力された各種情報を制御部20に入力する。例えば、操作部23は、決済処理の開始を指示する決済開始指示を制御部20に入力する。 The operation unit 23 is an input device, and includes a touch panel provided on the surface of the display unit 22, a keyboard provided separately from the display unit 22, and the like. The operation unit 23 inputs various information input through operations by a store clerk or the like to the control unit 20. For example, the operation unit 23 inputs a payment start instruction to the control unit 20 to instruct the start of payment processing.

スキャナ24は、商品に付されたバーコードなどのコードシンボル(以下、「商品バーコード」ともいう)から商品コードを読取る。具体的には、スキャナ24は、商品バーコードを光学的にまたは撮像して認識する。そして、スキャナ24は、認識した商品バーコードをデコードし、当該商品バーコードが示す商品コードを読み取る。なお、スキャナ24が認識した商品バーコードのデコードは、制御部20で行ってもよい。また、スキャナ24は、例えば消費者が携帯するスマートフォンに表示されたバーコードから店舗会員の会員IDを読取る。会員IDは、消費者を識別する消費者識別情報の一例である。スキャナ24は、POS端末2に固定的に設けられたものでもよいし、店員が手に取って操作可能なハンディ式のものでもよい。 The scanner 24 reads a product code from a code symbol such as a barcode (hereinafter also referred to as a "product barcode") attached to a product. Specifically, the scanner 24 recognizes the product barcode optically or by imaging it. The scanner 24 then decodes the recognized product barcode and reads the product code indicated by the product barcode. Note that the product barcode recognized by the scanner 24 may be decoded by the control unit 20. The scanner 24 also reads the member ID of the store member from a barcode displayed on a smartphone carried by the consumer, for example. The member ID is an example of consumer identification information that identifies a consumer. The scanner 24 may be fixedly provided on the POS terminal 2, or may be a handy type that can be picked up and operated by a store clerk.

プリンタ25は、制御部20の制御の下、一取引に係るレシートを印字して発行する。レシートには取引に係る各種情報が印字される。また、プリンタ25は、請求書も発行することができる。 The printer 25 prints and issues a receipt related to one transaction under the control of the control unit 20. Various information related to the transaction is printed on the receipt. The printer 25 can also issue a bill.

カードリーダ26は、各種カードから情報を読取る。例えば、カードリーダ26は、消費者のクレジットカードからクレジットカード決済に必要な消費者情報を読取る。また、カードリーダ26は、消費者が所有する会員カードから会員IDを読取る。カードリーダ26は、磁気カードから情報を読取る磁気カードリーダでもよいし、ICチップを内蔵したカードから情報を読取るICカードリーダでもよい。 Card reader 26 reads information from various cards. For example, the card reader 26 reads consumer information necessary for credit card payment from the consumer's credit card. Further, the card reader 26 reads a member ID from a member card owned by the consumer. The card reader 26 may be a magnetic card reader that reads information from a magnetic card, or an IC card reader that reads information from a card with a built-in IC chip.

釣銭機27は、消費者が購入代金を現金で支払った際に、消費者の支払った紙幣と硬貨を受け付け、必要に応じて釣り銭を払い出す。 The change machine 27 accepts banknotes and coins paid by the consumer when the consumer pays the purchase price in cash, and dispenses change as necessary.

通信部28は、サーバ装置3などの外部装置と通信するためのインターフェイスである。制御部20は、通信部28を介して外部装置と接続されることで、当該外部装置と情報(データ)の送受信が可能となる。 The communication unit 28 is an interface for communicating with an external device such as the server device 3. By being connected to an external device via the communication unit 28, the control unit 20 can transmit and receive information (data) to and from the external device.

続いて、POS端末2の制御部20の機能構成について説明する。図7は、POS端末2の制御部20の主たる機能構成を示すブロック図である。制御部20は、CPU201がROM202や記憶部21に記憶された制御プログラムにしたがって動作することで、送受信部2001、入力部2002、登録部2003、算出部2004、決済処理部2005、発行部2006、および表示制御部2007として機能する。なお、これら各機能を専用回路等のハードウェアを用いて構成してもよい。 Next, the functional configuration of the control section 20 of the POS terminal 2 will be explained. FIG. 7 is a block diagram showing the main functional configuration of the control section 20 of the POS terminal 2. As shown in FIG. The control unit 20 operates by the CPU 201 according to the control program stored in the ROM 202 and the storage unit 21, so that the control unit 20 has a transmitting/receiving unit 2001, an input unit 2002, a registration unit 2003, a calculation unit 2004, a payment processing unit 2005, an issuing unit 2006, It also functions as a display control unit 2007. Note that each of these functions may be configured using hardware such as a dedicated circuit.

送受信部2001は、サーバ装置3との間で各種情報を送受信する。例えば、送受信部2001は、一取引に係る取引データを、当該取引を行った消費者の会員IDと対応付けてサーバ装置3に送信する。取引データは、取引日時、取引を特定する取引No、取引金額、および取引された商品の商品情報を含む。送受信部2001は、取引データを外部装置に出力する出力部として機能する。 The transmitting/receiving unit 2001 transmits and receives various information to and from the server device 3 . For example, the transmitting/receiving unit 2001 transmits transaction data related to one transaction to the server device 3 in association with the member ID of the consumer who conducted the transaction. The transaction data includes a transaction date and time, a transaction number specifying the transaction, a transaction amount, and product information of the traded product. The transmitting/receiving unit 2001 functions as an output unit that outputs transaction data to an external device.

また、送受信部2001は、会員IDと指定期間を示す期間情報とを含む取引データ問合せをサーバ装置3に送信し、その応答として取引データをサーバ装置3から受信する。送受信部2001が受信する取引データは、取引データ問合せに含まれる会員IDおよび指定期間で特定される取引データである。送受信部2001は、取引データを取得する取得部として機能する。なお、送受信部2001が送信する取引データ問合せには期間情報が含まれていなくてもよい。この場合、送受信部2001は、予め定められた指定期間の取引データを受信するものとする。例えば、送受信部2001は、取引データ問合せを送信した日が属する月、あるいはその前月の取引データを受信することができる。言い換えれば、上記指定期間は、取引データ問合せの送信時に店員によってPOS端末2に入力されてもよいし、予め定められていてもよい。 Further, the transmitting/receiving unit 2001 transmits a transaction data inquiry including a member ID and period information indicating a specified period to the server device 3, and receives transaction data from the server device 3 as a response. The transaction data received by the transmitting/receiving unit 2001 is transaction data specified by the member ID and specified period included in the transaction data inquiry. The transmission/reception unit 2001 functions as an acquisition unit that acquires transaction data. Note that the transaction data inquiry transmitted by the transmitter/receiver 2001 does not need to include period information. In this case, it is assumed that the transmitting/receiving unit 2001 receives transaction data for a predetermined specified period. For example, the transmitting/receiving unit 2001 can receive transaction data for the month to which the transaction data inquiry was sent, or for the previous month. In other words, the specified period may be input into the POS terminal 2 by the store clerk when transmitting the transaction data inquiry, or may be predetermined.

入力部2002には、商品を識別する商品識別情報が入力される。具体的には、入力部2002には、スキャナ24から商品コードが入力される。また、送受信部2001が取引データ問合せを送信する際に、入力部2002には問合せ対象の消費者を特定する会員IDが入力される。入力部2002は、消費者を識別する消費者識別情報を受付ける受付部として機能する。入力部2002には、操作部23およびスキャナ24などからその他の各種情報が入力される。例えば、入力部2002には、操作部23から決済開始指示等が入力され、スキャナ24から会員ID等が入力される。 Product identification information for identifying a product is input to the input unit 2002 . Specifically, a product code is input to the input unit 2002 from the scanner 24 . Furthermore, when the transmitting/receiving unit 2001 transmits a transaction data inquiry, a member ID that specifies the consumer who is the subject of the inquiry is input to the input unit 2002. The input unit 2002 functions as a reception unit that receives consumer identification information that identifies a consumer. Various other information is input to the input unit 2002 from the operation unit 23, the scanner 24, and the like. For example, the input unit 2002 receives an instruction to start payment from the operation unit 23, and inputs a member ID and the like from the scanner 24.

登録部2003は、価格を含む商品情報と商品識別情報とを対応付けて記憶する商品情報記憶部から、入力部2002に入力された商品識別情報に対応する商品情報を登録して商品登録を行う。具体的には、登録部2003は、入力部2002に入力された商品コードに対応する商品情報を商品マスタ212から読み出して登録情報部2031に登録(記憶)する。 The registration unit 2003 performs product registration by registering product information corresponding to the product identification information input to the input unit 2002 from a product information storage unit that stores product information including price and product identification information in association with each other. . Specifically, the registration unit 2003 reads product information corresponding to the product code input to the input unit 2002 from the product master 212 and registers (stores) it in the registration information unit 2031.

算出部2004は、一取引の取引金額の他、決済処理やレシート発行処理に必要な各種金額を算出する。例えば、算出部2004は、登録部2003によって商品登録された商品のうち、商品マスタ212に記憶された価格が消費税を含む税込価格である内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する。より詳細には、算出部2004は、取引対象の内税商品について商品マスタ212から価格を読み出し、税率毎に合計して税率毎の合計価格を算出する。次いで、算出部2004は、各合計価格に対応する課税対象額を算出する。例えば、税率10%の内税商品の合計価格が1100円である場合、課税対象額として1000円を算出する。また、税率8%の内税商品の合計価格が2160円である場合、課税対象額として2000円を算出する。この結果、算出部2004は、内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する。算出部2004は、第1の課税対象額算出部として機能する。 The calculation unit 2004 calculates various amounts necessary for payment processing and receipt issuing processing in addition to the transaction amount of one transaction. For example, the calculation unit 2004 calculates the total taxable amount of tax-inclusive products whose price stored in the product master 212 is a tax-inclusive price including consumption tax among the products registered by the registration unit 2003. Calculated separately for each tax rate. More specifically, the calculation unit 2004 reads the prices of tax-inclusive products to be traded from the product master 212, adds them up for each tax rate, and calculates the total price for each tax rate. Next, the calculation unit 2004 calculates the taxable amount corresponding to each total price. For example, if the total price of tax-included products with a tax rate of 10% is 1,100 yen, 1,000 yen is calculated as the taxable amount. Furthermore, if the total price of tax-inclusive products with a tax rate of 8% is 2,160 yen, 2,000 yen is calculated as the taxable amount. As a result, the calculation unit 2004 calculates the total taxable amount of the tax-inclusive products for each applicable tax rate. The calculation unit 2004 functions as a first taxable amount calculation unit.

また、算出部2004は、登録部2003によって商品登録された商品のうち、商品マスタ212に記憶された価格が消費税を含まない税抜価格である外税商品の当該価格の合計である課税対象額を、適用される税率毎にそれぞれ算出する。より詳細には、算出部2004は、取引対象の外税商品について商品マスタ212から価格を読み出し、税率毎に合計して税率毎の合計価格を算出する。外税商品については、商品マスタ212の価格に登録された金額が各商品の課税対象額であるので、上記合計価格が外税商品の合計の課税対象額となる。算出部2004は、第2の課税対象額算出部として機能する。 In addition, the calculation unit 2004 calculates the taxable amount, which is the sum of the prices of tax-exclusive products whose prices stored in the product master 212 are tax-exclusive prices that do not include consumption tax, among the products registered by the registration unit 2003. The amount is calculated separately for each applicable tax rate. More specifically, the calculation unit 2004 reads prices from the product master 212 for tax-excluded products to be traded, adds them up for each tax rate, and calculates the total price for each tax rate. For tax-excluded products, the amount registered in the price of the product master 212 is the taxable amount of each product, so the total price becomes the total taxable amount of the tax-excluded products. The calculation unit 2004 functions as a second taxable amount calculation unit.

さらに、算出部2004は、第1の課税対象額算出部および第2の課税対象額算出部が算出した課税対象額を税率毎にそれぞれ集計する。具体的には、算出部2004は、税率10%の内税商品の合計の課税対象額と、税率10%の外税の課税対象額とを加算する。同様に、算出部2004は、税率8%の内税商品の合計の課税対象額と、税率8%の外税の課税対象額とを加算する。算出部2004は、集計部として機能する。 Further, the calculation unit 2004 totals the taxable amount calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each tax rate. Specifically, the calculation unit 2004 adds the total taxable amount of tax-inclusive products with a tax rate of 10% and the taxable amount of non-taxable products with a tax rate of 10%. Similarly, the calculation unit 2004 adds the total taxable amount of tax-inclusive products with a tax rate of 8% and the taxable amount of non-taxable products with a tax rate of 8%. The calculation unit 2004 functions as a totaling unit.

加えて、算出部2004は、集計部が集計した課税対象額に対する税額を税率毎にそれぞれ算出する。具体的には、算出部2004は、算出された税率10%の商品の合計の課税対象額に10%を乗じて税額を算出する。同様に、算出部2004は、算出された税率8%の商品の合計の課税対象額に8%を乗じて税額を算出する。結果として、算出部2004は、税率毎に集計された合計の課税対象額に対する税額をそれぞれ算出する。なお、算出される税額の端数処理、すなわち1円未満の処理については、四捨五入、切り捨て、切り上げのいずれを適用してもよい。算出部2004は、税額算出部として機能する。 In addition, the calculation unit 2004 calculates the tax amount for each taxable amount compiled by the collection unit for each tax rate. Specifically, the calculation unit 2004 calculates the tax amount by multiplying the calculated total taxable amount of products with a tax rate of 10% by 10%. Similarly, the calculation unit 2004 calculates the tax amount by multiplying the calculated total taxable amount of products with a tax rate of 8% by 8%. As a result, the calculation unit 2004 calculates the tax amount for the total taxable amount tabulated for each tax rate. Note that when processing the calculated tax amount as a fraction, that is, processing less than 1 yen, any of rounding, rounding down, and rounding up may be applied. The calculation unit 2004 functions as a tax amount calculation unit.

算出部2004が上記のとおり、第1の課税対象額算出部、第2の課税対象額算出部、集計部、および税額算出部として機能することで、一取引において算出される税額の端数処理は、税率毎に各1回とすることができる。詳細には、一取引の対象商品について、税率10%の全商品の税額の算出にあたって端数処理を1回とすることができる。同様に、一取引の対象商品について、税率8%の全商品の税額の算出にあたって端数処理を1回とすることができる。 As described above, the calculation unit 2004 functions as the first taxable amount calculation unit, the second taxable amount calculation unit, the aggregation unit, and the tax amount calculation unit, so that the rounding of the tax amount calculated in one transaction is , once for each tax rate. Specifically, for the target products of one transaction, rounding can be performed once when calculating the tax amount for all products with a tax rate of 10%. Similarly, rounding can be done once when calculating the tax amount for all products subject to a tax rate of 8% for one transaction.

決済処理部2005は、一取引に係る決済処理を実行する。決済処理とは、算出部2004によって算出された取引金額の支払を完了させるための処理で、現金決済においては釣銭の算出および払出等、キャッシュレス決済においては決済用サーバとの通信等を含む。 The payment processing unit 2005 executes payment processing related to one transaction. The payment process is a process for completing the payment of the transaction amount calculated by the calculation unit 2004, and includes calculation and disbursement of change in the case of cash payment, and communication with the payment server in the case of cashless payment.

発行部2006は、プリンタ25を制御してレシートを発行する。具体的には、発行部2006は、設定された処理区分コードおよび印字コードにしたがってレシートを印字して発行する。例えば、発行部2006は、算出部2004が集計した課税対象額に基づく対価の額と、算出部2004が算出した税額と、を税率で対応付けたレシートを発行する。税額に対応付けて印字される対価の額は、合計の課税対象額(税抜金額)であってもよいし、合計の課税対象額に税額を加算した税込価格であってもよい。レシートに印字される対価の額を税抜価格とするか税込価格とするかは、対価印字設定ファイル215の設定フラグによって指定される印字コードで定められる。なお、発行部2006は、消費者の端末等で電子レシートを表示させるためのレシート情報を生成するものであってもよい。 The issuing unit 2006 controls the printer 25 to issue a receipt. Specifically, the issuing unit 2006 prints and issues a receipt according to the set processing classification code and print code. For example, the issuing unit 2006 issues a receipt in which the amount of consideration based on the taxable amount compiled by the calculating unit 2004 and the tax amount calculated by the calculating unit 2004 are associated by tax rate. The amount of consideration printed in association with the tax amount may be the total taxable amount (tax-excluded amount), or may be the tax-included price obtained by adding the tax amount to the total taxable amount. Whether the amount of consideration printed on the receipt is a tax-excluded price or a tax-included price is determined by the print code specified by the setting flag of the consideration print setting file 215. Note that the issuing unit 2006 may generate receipt information for displaying an electronic receipt on a consumer's terminal or the like.

表示制御部2007は、表示部22に各種情報を表示させる。例えば、表示制御部2007は、商品登録された商品の商品情報や一取引の取引金額などを表示部22に表示させる。 The display control unit 2007 causes the display unit 22 to display various information. For example, the display control unit 2007 causes the display unit 22 to display product information of registered products, transaction amount of one transaction, and the like.

次に、サーバ装置3について詳細に説明する。図8は、サーバ装置3の主たるハードウェア構成を示すブロック図である。サーバ装置3は、制御部30と、記憶部31と、表示部32と、操作部33と、通信部34と、を備えている。制御部30、記憶部31、表示部32、操作部33、および通信部34は、バス35等を介して互いに接続されている。 Next, the server device 3 will be explained in detail. FIG. 8 is a block diagram showing the main hardware configuration of the server device 3. As shown in FIG. The server device 3 includes a control section 30, a storage section 31, a display section 32, an operation section 33, and a communication section 34. The control section 30, the storage section 31, the display section 32, the operation section 33, and the communication section 34 are connected to each other via a bus 35 or the like.

制御部30は、CPU301、ROM302、RAM303を備えたコンピュータ構成となっている。CPU301、ROM302、およびRAM303は、バス35を介して互いに接続されている。 The control unit 30 has a computer configuration including a CPU 301, a ROM 302, and a RAM 303. CPU 301 , ROM 302 , and RAM 303 are connected to each other via bus 35 .

CPU301はサーバ装置3の全体の動作を制御する。ROM302は、CPU301の駆動に用いられるプログラムなどの各種プログラムや各種データを記憶する。RAM303は、CPU301のワークエリアとして使用され、ROM302や記憶部31に記憶された各種プログラムや各種データを展開する。制御部30は、CPU301がROM302や、記憶部31に記憶されRAM303に展開された制御プログラムに従って動作することによって、サーバ装置3の各種制御処理を実行する。 The CPU 301 controls the overall operation of the server device 3. The ROM 302 stores various programs such as programs used to drive the CPU 301 and various data. The RAM 303 is used as a work area for the CPU 301 and expands various programs and data stored in the ROM 302 and the storage unit 31. The control unit 30 executes various control processes for the server device 3 by causing the CPU 301 to operate according to a control program stored in the ROM 302 or the storage unit 31 and developed in the RAM 303.

記憶部31は、HDDやフラッシュメモリ等の記憶媒体で構成されており、電源を遮断しても記憶内容を維持する。記憶部31は、制御プログラム311、会員マスタ312、取引情報管理ファイル313、および商品マスタ314を記憶する。 The storage unit 31 is composed of a storage medium such as an HDD or a flash memory, and maintains the stored contents even if the power is cut off. The storage unit 31 stores a control program 311, a member master 312, a transaction information management file 313, and a product master 314.

制御プログラム311は、POS端末2から会員IDと取引データとを対応づけた取引情報を受信するためのプログラム、受信した取引情報を会員ID毎に管理するためのプログラム、POS端末2からの要求に応じて取引データを抽出するためのプログラムなどである。 The control program 311 includes a program for receiving transaction information in which a member ID and transaction data are associated from the POS terminal 2, a program for managing the received transaction information for each member ID, and a program for responding to requests from the POS terminal 2. This is a program for extracting transaction data according to the transaction.

会員マスタ312は、店舗会員の情報すなわち消費者の情報を記憶するマスタファイルである。図9は、会員マスタ312のデータ構成を示す図である。会員マスタ312は、会員IDに対応付けて、氏名、性別、年齢、および通知先を記憶する。通知先は、例えば会員が所有する端末のメールアドレスである。 The member master 312 is a master file that stores store member information, that is, consumer information. FIG. 9 is a diagram showing the data structure of the member master 312. The member master 312 stores name, gender, age, and notification destination in association with member ID. The notification destination is, for example, the email address of the terminal owned by the member.

取引情報管理ファイル313は、POS端末2で決済された取引の取引情報を管理するファイルである。取引情報管理ファイル313は、POS端末2から受信した取引情報に基づいて登録、更新される。図10は、取引情報管理ファイル313のデータ構成を示す図である。取引情報管理ファイル313は、会員IDと取引データを対応付けて記憶する。会員IDに対応付けられる取引データは、取引日時、取引No、取引金額、商品コード、商品名、価格、および税種別コードを含む。 The transaction information management file 313 is a file that manages transaction information of transactions settled at the POS terminal 2. The transaction information management file 313 is registered and updated based on transaction information received from the POS terminal 2. FIG. 10 is a diagram showing the data structure of the transaction information management file 313. The transaction information management file 313 stores member IDs and transaction data in association with each other. The transaction data associated with the member ID includes transaction date and time, transaction number, transaction amount, product code, product name, price, and tax type code.

取引日時は、取引された日時、本実施形態ではPOS端末2で取引の決済処理が実行された日時である。取引Noは、取引を特定する情報でありレシートNoとも呼ばれる。取引金額は、一取引の合計金額であり税額を含む。 The transaction date and time is the date and time when the transaction was made, and in this embodiment, the date and time when the payment process for the transaction was executed at the POS terminal 2. The transaction number is information that specifies the transaction and is also called a receipt number. The transaction amount is the total amount of one transaction and includes the tax amount.

商品コード、商品名、価格、および税種別コードは、POS端末2の商品マスタ212で説明したとおりであるので、重複する説明は省略する。一取引において複数の商品が購入された場合、商品コード、商品名、価格、および税種別コードは、取引Noに対応してそれぞれ複数登録される。 The product code, product name, price, and tax type code are the same as described in the product master 212 of the POS terminal 2, so duplicate explanations will be omitted. When a plurality of products are purchased in one transaction, a plurality of product codes, product names, prices, and tax type codes are each registered in correspondence with the transaction number.

商品マスタ314は、POS端末2の商品マスタ212と同様の構成である。このため、重複する説明は省略する。 The product master 314 has the same configuration as the product master 212 of the POS terminal 2. Therefore, duplicate explanations will be omitted.

図8に戻ってサーバ装置3のハードウェア構成について説明する。 Returning to FIG. 8, the hardware configuration of the server device 3 will be described.

表示部32は、例えば液晶パネルで構成されており、各種情報を表示する。表示部32は、例えば会員マスタ312、取引情報管理ファイル313、商品マスタ314に記憶された情報を必要に応じて表示する。 The display section 32 is composed of, for example, a liquid crystal panel, and displays various information. The display unit 32 displays information stored in, for example, the member master 312, the transaction information management file 313, and the product master 314 as necessary.

操作部33は、制御部30に情報を入力するためのもので、キーボード、タッチパネル、マウスなどで構成される。 The operation unit 33 is for inputting information to the control unit 30, and includes a keyboard, a touch panel, a mouse, and the like.

通信部34は、POS端末2などの外部装置と通信するためのインターフェイスである。制御部30は、通信部34を介して外部装置と接続されることで、当該外部装置と情報(データ)の送受信が可能となる。 The communication unit 34 is an interface for communicating with an external device such as the POS terminal 2. By being connected to an external device via the communication unit 34, the control unit 30 can transmit and receive information (data) to and from the external device.

続いて、サーバ装置3の制御部30の機能構成について説明する。図11は、サーバ装置3の制御部30の主たる機能構成を示すブロック図である。制御部30は、CPU301がROM302や記憶部31に記憶された制御プログラムにしたがって動作することで、送受信部3001、入力部3002、およびデータ管理部3003として機能する。なお、これら各機能を専用回路等のハードウェアで構成してもよい。 Next, the functional configuration of the control unit 30 of the server device 3 will be explained. FIG. 11 is a block diagram showing the main functional configuration of the control unit 30 of the server device 3. As shown in FIG. The control unit 30 functions as a transmitting/receiving unit 3001, an input unit 3002, and a data management unit 3003 when the CPU 301 operates according to a control program stored in the ROM 302 or the storage unit 31. Note that each of these functions may be configured by hardware such as a dedicated circuit.

送受信部3001は、POS端末2との間で各種情報を送受信する。例えば、送受信部3001は、会員IDと取引データとが対応付けられた取引情報をPOS端末2から受信する。また、送受信部3001は、会員IDと指定期間を示す期間情報とを含む取引データ問合せをPOS端末2から受信し、その応答として取引データを当該POS端末2に送信する。 The transmitting/receiving unit 3001 transmits and receives various information to and from the POS terminal 2 . For example, the transmitting/receiving unit 3001 receives transaction information in which a member ID and transaction data are associated with each other from the POS terminal 2 . The transmitting/receiving unit 3001 also receives a transaction data inquiry including a member ID and period information indicating a designated period from the POS terminal 2, and transmits transaction data to the POS terminal 2 as a response.

入力部3002には、操作部33から各種情報が入力される。例えば、入力部3002には、会員マスタ312、取引情報管理ファイル313、商品マスタ314を手動で更新する場合に、更新するための情報が入力される。 Various information is input to the input unit 3002 from the operation unit 33. For example, when manually updating the member master 312, transaction information management file 313, and product master 314, information for updating is input to the input unit 3002.

データ管理部3003は、記憶部31に記憶される各種データの登録、更新を行う。また、データ管理部3003は、記憶部31に記憶された情報を必要に応じて読み出す。例えば、データ管理部3003は、送受信部3001が受信した取引情報に基づいて取引情報管理ファイル313を更新する。また、データ管理部3003は、POS端末2から受信した取引データ問合せに応じて、取引情報管理ファイル313から対応するデータを抽出する。より詳細には、データ管理部3003は、取引データ問合せに含まれる会員IDおよび指定期間によって取引情報管理ファイル313を検索し、該当する取引データを抽出する。 The data management unit 3003 registers and updates various data stored in the storage unit 31. Further, the data management unit 3003 reads out information stored in the storage unit 31 as necessary. For example, the data management section 3003 updates the transaction information management file 313 based on the transaction information received by the transmission/reception section 3001. Further, the data management unit 3003 extracts corresponding data from the transaction information management file 313 in response to a transaction data inquiry received from the POS terminal 2. More specifically, the data management unit 3003 searches the transaction information management file 313 based on the member ID and designated period included in the transaction data inquiry, and extracts the corresponding transaction data.

上記構成の店舗システム1の動作の概略について説明する。図12は、店舗システム1の動作の流れを示すシーケンスチャートである。 An outline of the operation of the store system 1 having the above configuration will be explained. FIG. 12 is a sequence chart showing the flow of operations of the store system 1.

まず、店舗で消費者が商品を購入する際の流れについて説明する。まず、店員の操作によってPOS端末2に取引開始を指示する情報が入力される(ステップS1)。次いで、POS端末2には、消費者の携帯端末あるいは会員カードから読取った会員IDが入力される(ステップS2)。 First, we will explain the flow when a consumer purchases a product at a store. First, information instructing the start of a transaction is input into the POS terminal 2 through an operation by a store clerk (step S1). Next, the member ID read from the consumer's mobile terminal or membership card is input to the POS terminal 2 (step S2).

続いて、POS端末2は、店員の操作により消費者が購入する商品の商品コードを読取る(ステップS3)。POS端末2は、読取った商品コードに基づいて商品登録を実行する(ステップS4)。 Subsequently, the POS terminal 2 reads the product code of the product purchased by the consumer through the operation of the store clerk (step S3). The POS terminal 2 executes product registration based on the read product code (step S4).

消費者が購入する商品全ての商品登録が完了して決済指示が入力されると、POS端末2は、商品登録された情報に基づいて算出処理を実行する(ステップS5)。算出処理では、設定された区分コードに応じて税算出対象が定められ、一取引の取引金額、税額等、決済処理で用いられる各金額やレシート発行処理でレシートに印字される各金額が算出される。算出処理の詳細については後述する。 When the product registration of all the products purchased by the consumer is completed and a payment instruction is input, the POS terminal 2 executes a calculation process based on the product registered information (step S5). In the calculation process, the tax calculation target is determined according to the set classification code, and the transaction amount, tax amount, etc. of one transaction, each amount used in payment processing, and each amount printed on the receipt in receipt issuing processing is calculated. Ru. Details of the calculation process will be described later.

POS端末2は、算出処理にて算出された各金額に基づいて決済処理を実行する(ステップS6)。決済処理が完了すると、POS端末2は、レシート発行処理を実行してレシートを発行する(ステップS7)。レシート発行処理では、設定された区分コードおよび印字コードに基づいてレシートが印字される。レシート発行処理の詳細については後述する。POS端末2は、レシートを発行した後、会員IDと取引データとを対応付けた取引情報をサーバ装置3に送信する(ステップS8)。 The POS terminal 2 executes payment processing based on each amount calculated in the calculation processing (step S6). When the payment process is completed, the POS terminal 2 executes a receipt issuing process and issues a receipt (step S7). In the receipt issuing process, a receipt is printed based on the set classification code and print code. Details of the receipt issuing process will be described later. After issuing the receipt, the POS terminal 2 transmits transaction information in which the member ID and transaction data are associated with each other to the server device 3 (step S8).

サーバ装置3は、POS端末2から受信した取引情報に基づいて、取引情報管理ファイル313を更新する。 The server device 3 updates the transaction information management file 313 based on the transaction information received from the POS terminal 2.

以上の動作により、POS端末2は、設定された区分コードに応じて税算出対象を定めたうえで、税毎の対価や税額等の各金額を算出することができる。また、POS端末2は、設定された区分コードおよび印字コードに応じてレシートを発行することができる。サーバ装置3は、POS端末2で決済処理された取引に係る取引データを会員ID毎、すなわち消費者毎に管理することができる。 Through the above-described operations, the POS terminal 2 is able to determine the tax calculation target according to the set classification code, and then calculate each amount such as the consideration for each tax and the tax amount. Further, the POS terminal 2 can issue a receipt according to the set classification code and print code. The server device 3 can manage transaction data related to transactions processed by the POS terminal 2 for each member ID, that is, for each consumer.

続いて、消費者からの要求に応じてPOS端末2が適格請求書を発行する際の流れについて説明する。まず、消費者から適格請求書の発行を要求された場合、店員の操作によって請求書の発行を指示する情報が入力される(ステップS11)。 Next, the flow when the POS terminal 2 issues a qualified bill in response to a request from a consumer will be explained. First, when a consumer requests issuance of a qualified bill, information instructing the issuance of a bill is input through an operation by a store clerk (step S11).

次いで、POS端末2には、適格請求書の発行を要求する消費者の会員ID、および指定期間が入力される(ステップS12)。指定期間は、請求書の対象となる期間である。POS端末2は、入力された会員ID、指定期間を含む取引データ問合せをサーバ装置3に送信する(ステップS13)。 Next, the member ID of the consumer requesting issuance of a qualified bill and the specified period are input to the POS terminal 2 (step S12). The designated period is the period covered by the invoice. The POS terminal 2 transmits a transaction data inquiry including the input member ID and designated period to the server device 3 (step S13).

サーバ装置3は、取引データ問合せに含まれる会員IDおよび指定期間を検索条件として取引情報管理ファイル313を検索し、合致する取引データを抽出する(ステップS14)。サーバ装置3は、取引データ問合せの送信元であるPOS端末2に対して、抽出した取引データを送信する(ステップS15)。 The server device 3 searches the transaction information management file 313 using the member ID and specified period included in the transaction data inquiry as search conditions, and extracts matching transaction data (step S14). The server device 3 transmits the extracted transaction data to the POS terminal 2 that is the source of the transaction data inquiry (step S15).

取引データを受信したPOS端末2は、適格請求書の発行に必要な各金額を算出するための取引データ算出処理を実行する(ステップS16)。取引データ算出処理の詳細は後述する。POS端末2は、取引データ算出処理に続いて請求書発行処理を実行し、適格請求書を印字して発行する(ステップS17)。 The POS terminal 2 that has received the transaction data executes a transaction data calculation process to calculate each amount necessary for issuing a qualified invoice (step S16). Details of the transaction data calculation process will be described later. Following the transaction data calculation process, the POS terminal 2 executes the bill issuing process, and prints and issues a qualified bill (step S17).

以上の動作により、POS端末2は、指定された期間(例えば、1ヶ月)の取引に係る適格請求書を発行することができる。 Through the above operations, the POS terminal 2 can issue eligible invoices related to transactions within a specified period (for example, one month).

次に、POS端末2が実行する算出処理について説明する。図13は、POS端末2の制御部20による算出処理の流れを示すフローチャートである。なお、以下の説明において、税率Aは標準税率の10%を示し、税率Bは軽減税率の8%を示すものとする。 Next, the calculation process executed by the POS terminal 2 will be explained. FIG. 13 is a flowchart showing the flow of calculation processing by the control unit 20 of the POS terminal 2. In the following explanation, tax rate A indicates the standard tax rate of 10%, and tax rate B indicates the reduced tax rate of 8%.

制御部20は、入力部2002に決済指示入力がなされたか否か判断し(ステップS21)、入力されなければ(ステップS21のN)、ステップS21の処理に戻って待機する。 The control unit 20 determines whether a payment instruction has been input to the input unit 2002 (step S21), and if not input (N in step S21), the process returns to step S21 and waits.

入力部2002に決済指示入力がなされると(ステップS21のY)、制御部20は、処理区分設定ファイル214から設定フラグに「1」が登録されている設定情報を読み出す(ステップS22)。制御部20は、処理区分設定ファイル214から読み出した情報が区分コード1であるか否か判断する(ステップS23)。言い換えれば、制御部20は、処理区分設定ファイル214の区分コード1に対応する設定フラグに「1」が登録されているか否か判断する。 When a payment instruction is input to the input unit 2002 (Y in step S21), the control unit 20 reads out setting information in which "1" is registered in the setting flag from the processing classification setting file 214 (step S22). The control unit 20 determines whether the information read from the processing classification setting file 214 is classification code 1 (step S23). In other words, the control unit 20 determines whether "1" is registered in the setting flag corresponding to the classification code 1 in the processing classification setting file 214.

処理区分設定ファイル214から読み出した情報が区分コード1である場合、算出部2004は、適格簡易請求書の機能を有するレシートを発行するための各金額の算出を行う。また、処理区分設定ファイル214から読み出した情報が区分コード1でなく、区分コード2である場合、算出部2004は、従来と同様のレシートを発行するための各金額の算出を行う。 When the information read from the processing category setting file 214 is category code 1, the calculation unit 2004 calculates each amount for issuing a receipt having the function of a qualified simplified bill. Further, if the information read from the processing category setting file 214 is not the category code 1 but the category code 2, the calculation unit 2004 calculates each amount for issuing a receipt as in the past.

処理区分設定ファイル214から読み出した情報が区分コード1であると(ステップS23のY)、算出部2004は、登録情報部2031に登録された商品すなわち商品登録された商品のうち、税率Aの内税商品の価格の合計金額を算出する(ステップS24)。詳細には、算出部2004は、商品登録された商品のうち税率Aの内税商品を抽出し、当該内税商品の商品情報として価格に登録された金額を合計することによって価格合計を算出する。 If the information read from the processing category setting file 214 is category code 1 (Y in step S23), the calculation unit 2004 calculates the tax rate A among the products registered in the registration information unit 2031, that is, the registered products. The total price of taxed products is calculated (step S24). Specifically, the calculation unit 2004 extracts tax-inclusive products with tax rate A from among the registered products, and calculates the total price by summing up the amounts registered in the price as product information of the tax-inclusive products. .

算出部2004は、ステップS24の処理にて算出された価格合計に対する課税対象額Vを算出する(ステップS25)。詳細には、算出部2004は、ステップS24の処理にて算出された価格合計の金額に100/110を乗じて、商品登録された税率Aの内税商品の価格合計に対する課税対象額を算出する。 The calculation unit 2004 calculates the taxable amount V for the total price calculated in the process of step S24 (step S25). Specifically, the calculation unit 2004 multiplies the total price calculated in the process of step S24 by 100/110 to calculate the taxable amount for the total price of the registered tax-inclusive products of tax rate A. .

続いて、算出部2004は、商品登録された商品のうち、税率Bの内税商品の価格の合計金額を算出する(ステップS26)。詳細には、算出部2004は、商品登録された商品のうち税率Bの内税商品を抽出し、当該内税商品の商品情報として価格に登録された金額を合計することによって価格合計を算出する。 Next, the calculation unit 2004 calculates the total price of tax-inclusive products with tax rate B among the registered products (step S26). Specifically, the calculation unit 2004 extracts tax-inclusive products with tax rate B from among the registered products, and calculates the total price by summing up the amounts registered in the prices as product information of the tax-inclusive products. .

算出部2004は、ステップS26の処理にて算出された価格合計に対する課税対象額Wを算出する(ステップS27)。詳細には、算出部2004は、ステップS26の処理にて算出された価格合計の金額に100/108を乗じて、商品登録された税率Bの内税商品の価格合計に対する課税対象額を算出する。 The calculation unit 2004 calculates the taxable amount W for the total price calculated in the process of step S26 (step S27). Specifically, the calculation unit 2004 multiplies the total price calculated in the process of step S26 by 100/108 to calculate the taxable amount for the total price of the registered tax-included products of tax rate B. .

次いで、算出部2004は、商品登録された税率Aの外税商品の価格合計Xを算出する(ステップS28)。詳細には、算出部2004は、商品登録された税率Aの外税商品を抽出し、当該外税商品の商品情報として価格に登録された金額の合計金額を算出することによって価格合計Xを算出する。 Next, the calculation unit 2004 calculates the total price X of the registered tax-exclusive products with tax rate A (step S28). Specifically, the calculation unit 2004 extracts registered tax-exempt products with tax rate A, and calculates the total price X by calculating the total amount of the price registered as the product information of the tax-exempt product. do.

また、算出部2004は、商品登録された税率Bの外税商品の価格合計Yを算出する(ステップS29)。詳細には、算出部2004は、商品登録された税率Bの外税商品を抽出し、当該外税商品の商品情報として価格に登録された金額の合計金額を算出することによって価格合計Yを算出する。 Further, the calculation unit 2004 calculates the total price Y of the registered tax-exclusive products with tax rate B (step S29). Specifically, the calculation unit 2004 calculates the total price Y by extracting the registered tax-exempt products with tax rate B and calculating the total amount of the amount registered in the price as product information of the tax-exclusive product. do.

続いて、算出部2004は、商品登録された税率Aの商品の課税対象額を集計する(ステップS30)。詳細には、算出部2004は、商品登録された税率Aの内税商品の課税対象額Vと商品登録された税率Aの外税商品の価格合計Xとを加算する。 Subsequently, the calculation unit 2004 totals the taxable amount of the registered product with tax rate A (step S30). Specifically, the calculation unit 2004 adds the taxable amount V of the registered tax-inclusive product with the tax rate A and the total price X of the registered tax-exclusive product with the tax rate A.

同様にして、算出部2004は、商品登録された税率Bの商品の課税対象額を集計する(ステップS31)。詳細には、算出部2004は、商品登録された税率Bの内税商品の課税対象額Wと商品登録された税率Bの外税商品の価格合計Yとを加算する。 Similarly, the calculation unit 2004 totals the taxable amount of the registered products with tax rate B (step S31). Specifically, the calculation unit 2004 adds the taxable amount W of the registered tax-inclusive product with tax rate B to the total price Y of the registered tax-exclusive product with tax rate B.

算出部2004は、税率Aの内税商品および外税商品に係る税額1を算出する(ステップS32)。詳細には、算出部2004は、ステップS30の処理にて課税対象額Vと価格合計Xを加算した税率Aの商品の課税対象額に税率Aを乗じて税額1を算出する。このとき、税額1は1円未満の金額について端数処理される。 The calculation unit 2004 calculates the tax amount 1 related to the tax-inclusive product and the tax-exclusive product at tax rate A (step S32). Specifically, the calculation unit 2004 calculates the tax amount 1 by multiplying the taxable amount of the product with the tax rate A, which is obtained by adding the taxable amount V and the total price X in the process of step S30, by the tax rate A. At this time, the tax amount 1 is rounded off for amounts less than 1 yen.

同様にして、算出部2004は、税率Bの内税商品および外税商品に係る税額2を算出する(ステップS33)。詳細には、算出部2004は、ステップS31の処理にて課税対象額Wと価格合計Yを加算した税率Bの商品の課税対象額に税率Bを乗じて税額2を算出する。このとき、税額2は1円未満の金額について端数処理される。 Similarly, the calculation unit 2004 calculates the tax amount 2 related to the tax-inclusive product and the tax-exclusive product at tax rate B (step S33). Specifically, the calculation unit 2004 calculates the tax amount 2 by multiplying the taxable amount of the product with the tax rate B, which is obtained by adding the taxable amount W and the total price Y in the process of step S31, by the tax rate B. At this time, the tax amount 2 is rounded off for amounts less than 1 yen.

また、算出部2004は、一取引の取引金額など、決済処理やレシート発行処理に必要となるその他の金額を算出する(ステップS34)。例えば、非課税商品が商品登録されている場合、非課税商品の価格も加えて取引金額が算出される。そして、制御部20は算出処理を終了する。 The calculation unit 2004 also calculates other amounts necessary for payment processing and receipt issuing processing, such as the transaction amount for one transaction (step S34). For example, if a tax-exempt product is registered, the transaction amount is calculated by adding the price of the tax-exempt product. Then, the control unit 20 ends the calculation process.

ステップS23の処理において処理区分設定ファイル214から読み出した情報が区分コード1でない場合(ステップS23のN)すなわち区分コード2である場合、算出部2004は、商品登録された税率Aの内税商品について、商品毎に税額を算出する(ステップS35)。詳細には、算出部2004は、商品登録された税率Aの内税商品個々について、商品情報として価格に登録された金額を読み出し、当該金額に10/110を乗じることによって1商品の税額を算出する。 If the information read from the processing category setting file 214 in the process of step S23 is not category code 1 (N in step S23), that is, if the category code is 2, the calculation unit 2004 calculates the , the tax amount is calculated for each product (step S35). Specifically, the calculation unit 2004 reads out the amount registered in the price as product information for each registered tax-included product with tax rate A, and calculates the tax amount for one product by multiplying the amount by 10/110. do.

算出部2004は、商品登録された税率Aの外税商品について、商品毎に税額を算出する(ステップS36)。詳細には、算出部2004は、商品登録された税率Aの外税商品個々について、商品情報として価格に税率Aを乗じることによって1商品の税額を算出する。 The calculation unit 2004 calculates the tax amount for each product for the registered tax-excluded products with tax rate A (step S36). In detail, the calculation unit 2004 calculates the tax amount for one product by multiplying the price by the tax rate A as product information for each registered product excluding the tax rate A.

算出部2004は、ステップS35で算出した内税商品個々の税額全てと、ステップS36で算出した外税商品個々の税額全てとを加算して、税率Aの商品の合計税額3を算出する(ステップS37)。 The calculation unit 2004 calculates the total tax amount 3 for the products with tax rate A by adding all the tax amounts for each tax-included product calculated in step S35 and all the tax amounts for each tax-exclusive product calculated in step S36 (step S37).

続いて、算出部2004は、商品登録された税率Bの内税商品について、商品毎に税額を算出する(ステップS38)。詳細には、算出部2004は、商品登録された税率Bの内税商品個々について、商品情報として価格に登録された金額を読み出し、当該金額に8/108を乗じることによって1商品の税額を算出する。 Subsequently, the calculation unit 2004 calculates the tax amount for each product for the registered tax-included products with tax rate B (step S38). Specifically, the calculation unit 2004 reads out the amount registered in the price as product information for each registered tax-included product with tax rate B, and calculates the tax amount for one product by multiplying the amount by 8/108. do.

算出部2004は、商品登録された税率Bの外税商品について、商品毎に税額を算出する(ステップS39)。詳細には、算出部2004は、商品登録された税率Bの外税商品個々について、商品情報として価格に税率Bを乗じることによって1商品の税額を算出する。 The calculation unit 2004 calculates the tax amount for each product for the registered tax-excluded products with tax rate B (step S39). Specifically, the calculation unit 2004 calculates the tax amount for one product by multiplying the price by the tax rate B as product information for each registered product excluding the tax rate B.

算出部2004は、ステップS38で算出した内税商品個々の税額全てと、ステップS39で算出した外税商品個々の税額全てとを加算して、税率Bの商品の合計税額4を算出する(ステップS40)。そして、制御部20はステップS34の処理に移行する。 The calculation unit 2004 calculates the total tax amount 4 for the products with tax rate B by adding all the tax amounts for each tax-included product calculated in step S38 and all the tax amounts for each tax-exclusive product calculated in step S39 (step S40). The control unit 20 then proceeds to the process of step S34.

上記算出処理により、POS端末2は、適格簡易請求書の要件を満たすためのレシート発行に必要な各金額を算出できるばかりでなく、他の形式のレシート発行に適した各金額を算出することも可能となる。このため、POS端末2は、課税事業者および免税事業者のいずれにも適したものとなる。 Through the above calculation process, the POS terminal 2 can not only calculate each amount necessary for issuing a receipt to meet the requirements for a qualified simple bill, but also calculate each amount suitable for issuing receipts in other formats. It becomes possible. Therefore, the POS terminal 2 is suitable for both taxable businesses and tax-exempt businesses.

次に、POS端末2が実行するレシート発行処理について説明する。図14は、POS端末2の制御部20によるレシート発行処理の流れを示すフローチャートである。 Next, the receipt issuing process executed by the POS terminal 2 will be explained. FIG. 14 is a flowchart showing the flow of receipt issuing processing by the control unit 20 of the POS terminal 2. As shown in FIG.

制御部20は、決済処理部2005による決済処理が完了したか否か判断し(ステップS51)、完了しなければ(ステップS51のN)、ステップS51の処理に戻って待機する。 The control unit 20 determines whether the payment processing by the payment processing unit 2005 has been completed (step S51), and if it has not been completed (N in step S51), the process returns to step S51 and waits.

決済処理部2005による決済処理が完了すると(ステップS51のY)、制御部20は、処理区分設定ファイル214および対価印字設定ファイル215から設定フラグに「1」が登録されている設定情報を読み出す(ステップS52)。制御部20は、処理区分設定ファイル214から読み出した情報が区分コード1であるか否か判断する(ステップS53)。言い換えれば、制御部20は、処理区分設定ファイル214の区分コード1に対応する設定フラグに「1」が登録されているか否か判断する。 When the payment processing unit 2005 completes the payment processing (Y in step S51), the control unit 20 reads out setting information in which “1” is registered in the setting flag from the processing category setting file 214 and the consideration print setting file 215 ( Step S52). The control unit 20 determines whether the information read from the processing classification setting file 214 is classification code 1 (step S53). In other words, the control unit 20 determines whether "1" is registered in the setting flag corresponding to the classification code 1 in the processing classification setting file 214.

処理区分設定ファイル214から読み出した情報が区分コード1であると(ステップS53のY)、発行部2006は、フォーマット1を印字フォーマットとして選択する(ステップS54)。次いで、制御部20は、対価印字設定ファイル215から読み出した情報が印字コード1であるか否か判断する(ステップS55)。言い換えれば、制御部20は、対価印字設定ファイル215の印字コード1に対応する設定フラグに「1」が登録されているか否か判断する。 If the information read from the processing classification setting file 214 is classification code 1 (Y in step S53), the issuing unit 2006 selects format 1 as the print format (step S54). Next, the control unit 20 determines whether the information read from the consideration print setting file 215 is print code 1 (step S55). In other words, the control unit 20 determines whether "1" is registered in the setting flag corresponding to the print code 1 in the consideration print setting file 215.

対価印字設定ファイル215から読み出した情報が印字コード1であると、発行部2006は、印字する対価として税抜価格すなわち課税対象額を選択する(ステップS56)。発行部2006は、選択した印字フォーマットおよび対価の印字内容に基づいてレシートを印字して発行する(ステップS57)。そして、制御部20はレシート発行処理を終了する。 If the information read from the consideration print setting file 215 is print code 1, the issuing unit 2006 selects the tax-excluded price, that is, the taxable amount, as the consideration to be printed (step S56). The issuing unit 2006 prints and issues a receipt based on the selected printing format and the printed content of the consideration (step S57). The control unit 20 then ends the receipt issuing process.

ステップS53の処理において、処理区分設定ファイル214から読み出した情報が区分コード1でない場合(ステップS53のN)すなわち区分コード2である場合、発行部2006は、フォーマット2を印字フォーマットとして選択する(ステップS58)。そして、制御部20はステップS55の処理に移行する。 In the process of step S53, if the information read from the processing category setting file 214 is not category code 1 (N in step S53), that is, if the category code is 2, the issuing unit 2006 selects format 2 as the print format (step S58). The control unit 20 then proceeds to the process of step S55.

ステップS55の処理において、対価印字設定ファイル215から読み出した情報が印字コード1でない場合(ステップS55のN)すなわち印字コード2である場合、発行部2006は、印字する対価として税込価格を選択する(ステップS59)。そして、制御部20は、ステップS57の処理に移行する。 In the process of step S55, if the information read from the consideration print setting file 215 is not the printing code 1 (N in step S55), that is, if the printing code is 2, the issuing unit 2006 selects the tax-included price as the consideration to be printed ( Step S59). The control unit 20 then proceeds to the process of step S57.

上記レシート発行処理により、POS端末2は、適格簡易請求書の要件を満たすためのレシートおよび他の形式のレシートを発行することができる。このため、POS端末2は、課税事業者および免税事業者のいずれにも適したものとなる。 Through the above-mentioned receipt issuing process, the POS terminal 2 can issue a receipt that satisfies the requirements for a qualified simple bill and receipts in other formats. Therefore, the POS terminal 2 is suitable for both taxable businesses and tax-exempt businesses.

ここで、POS端末2が発行するレシートについて説明する。図15はファーマット1のレシートを示す図であり、図16はフォーマット2のレシートを示す図である。なお、図15および図16のレシートに印字される対価は税込価格としている。言い換えれば、図15のレシートは区分コード1および印字コード2が設定された場合のレシートであり、図16のレシートは区分コード2および印字コード2が設定された場合のレシートである。 Here, the receipt issued by the POS terminal 2 will be explained. FIG. 15 is a diagram showing a receipt in format 1, and FIG. 16 is a diagram showing a receipt in format 2. Note that the consideration printed on the receipts in FIGS. 15 and 16 includes tax. In other words, the receipt in FIG. 15 is a receipt when classification code 1 and print code 2 are set, and the receipt in FIG. 16 is a receipt when classification code 2 and print code 2 are set.

図15に示すレシートは、課税事業者が採用するものとなっている。図15において、フォーマット1のレシート50には、事業者情報501、取引日502、商品情報503、対価504、税額505、税率情報506、および取引No507の各事項が印字される。 The receipt shown in FIG. 15 is used by taxable entities. In FIG. 15, on a receipt 50 in format 1, the following items are printed: business information 501, transaction date 502, product information 503, consideration 504, tax amount 505, tax rate information 506, and transaction number 507.

事業者情報501は、レシートを発行する事業者名および適格請求書発行事業者として登録された登録番号を含む。取引日502は、売り手から買い手に資産が譲渡された日、すなわち消費者によって商品が購入された年月日である。商品情報503は、譲渡された資産の内容を示すもので、購入された商品名、点数、代金を含む。 The business information 501 includes the name of the business that issues the receipt and the registration number registered as a qualified bill issuing business. The transaction date 502 is the date when the asset was transferred from the seller to the buyer, that is, the date when the product was purchased by the consumer. Product information 503 indicates the details of the transferred assets, and includes the name of the purchased product, the number of items, and the price.

対価504は、譲渡された資産の対価すなわち商品の代金の合計を、税率毎に区分したものである。上述のとおり、図15の対価504は税込価格となっている。税額505は、税率毎に区分した税額であり、対価504の後にかっこ書きで印字される。税率情報506は、軽減税率の商品を示すもので、商品情報503と協働して購入された商品の内容を示すものとなっている。取引No507は、取引を特定する情報である。 The consideration 504 is the consideration for the transferred assets, that is, the total price of the product, divided by tax rate. As mentioned above, consideration 504 in FIG. 15 is a tax-included price. The tax amount 505 is the tax amount divided by tax rate, and is printed in parentheses after the consideration 504. Tax rate information 506 indicates products with reduced tax rates, and cooperates with product information 503 to indicate the details of the purchased product. Transaction No. 507 is information that specifies the transaction.

図16に示すレシートは、免税事業者が採用するものとなっている。図16に示すレシートは、事業者の登録番号が印字されない点、対価および税額が税種別毎に印字される点において、図15に示すレシートと相違する。図16において、フォーマット2のレシート60には、事業者情報601、取引日602、商品情報603、対価604、税額605、税率情報606、および取引No607の各事項が印字される。 The receipt shown in FIG. 16 is used by tax exempt businesses. The receipt shown in FIG. 16 differs from the receipt shown in FIG. 15 in that the business registration number is not printed and the consideration and tax amount are printed for each tax type. In FIG. 16, on a receipt 60 in format 2, the following items are printed: business information 601, transaction date 602, product information 603, consideration 604, tax amount 605, tax rate information 606, and transaction number 607.

取引日602、商品情報603、税率情報606、および取引No607は、フォーマット1のレシート同様であるので、重複する説明は省略する。対価604および税額605は、税種別毎に区分して印字される。詳細には、外税対象額(外税の対価)と内税対象額(内税の対価)とが区分して印字され、それぞれに対応する税額がかっこ書きで印字される。なお、フォーマット2のレシートは、適格簡易請求書の機能を持つものでないため、店舗が印字内容を任意に設定することができる。 Transaction date 602, product information 603, tax rate information 606, and transaction number 607 are the same as in the receipt of format 1, so duplicate explanations will be omitted. The consideration 604 and the tax amount 605 are printed separately for each tax type. In detail, the tax-exclusive amount (excluding tax consideration) and the tax-inclusive amount (tax-inclusive consideration) are printed separately, and the corresponding tax amount is printed in parentheses. Note that since the Format 2 receipt does not have the function of a qualified simple bill, the store can arbitrarily set the printing contents.

次に、POS端末2が実行する取引データ算出処理について説明する。取引データ算出処理は、所定期間における特定の消費者の取引データに基づいて、適格請求書を発行するための各金額を算出する処理である。図17は、POS端末2の制御部20による取引データ算出処理の流れを示すフローチャートである。なお、取引データ算出処理は、前述した算出処理と類似するので、図13に示す算出処理と同様の処理については同一符号を付して説明を省略する。 Next, transaction data calculation processing executed by the POS terminal 2 will be explained. The transaction data calculation process is a process of calculating each amount for issuing a qualified bill based on transaction data of a specific consumer during a predetermined period. FIG. 17 is a flowchart showing the flow of transaction data calculation processing by the control unit 20 of the POS terminal 2. As shown in FIG. Note that since the transaction data calculation process is similar to the calculation process described above, processes similar to the calculation process shown in FIG. 13 are denoted by the same reference numerals, and a description thereof will be omitted.

制御部20は、送受信部2001が取引データ問い合わせに対応する取引データをサーバ装置3から受信したか否か判断し(ステップS61)、受信しなければ(ステップS61のN)、ステップS61の処理に戻って待機する。 The control unit 20 determines whether the transmission/reception unit 2001 has received transaction data corresponding to the transaction data inquiry from the server device 3 (step S61), and if not received (N in step S61), the process proceeds to step S61. Go back and wait.

送受信部2001が取引データを受信すると(ステップS61のY)、制御部20は、受信した取引データをRAM203に記憶する(ステップS62)。制御部20は、処理区分設定ファイル214から読み出した情報が区分コード1であるか否か判断する(ステップS23)。 When the transmitting/receiving unit 2001 receives the transaction data (Y in step S61), the control unit 20 stores the received transaction data in the RAM 203 (step S62). The control unit 20 determines whether the information read from the processing classification setting file 214 is classification code 1 (step S23).

処理区分設定ファイル214から読み出した情報が区分コード1である場合(ステップS23のY)、制御部20は、サーバ装置3から取得した取引データに対して、ステップS24~ステップS34の処理を実行する。処理区分設定ファイル214から読み出した情報が区分コード1でない場合(ステップS23のN)、表示制御部2007は、表示部22にエラーを表示させる(ステップS63)。表示されるエラーは、区分コード1が設定されていない旨、言い換えれば適格請求書を発行するための算出を行う区分コードに設定されていない旨を示す内容である。そして、制御部20は取引データ算出処理を終了する。 If the information read from the processing category setting file 214 is category code 1 (Y in step S23), the control unit 20 executes the processes of steps S24 to S34 on the transaction data acquired from the server device 3. . If the information read from the processing classification setting file 214 is not classification code 1 (N in step S23), the display control unit 2007 causes the display unit 22 to display an error (step S63). The displayed error indicates that classification code 1 is not set, in other words, it is not set as a classification code for performing calculations for issuing qualified invoices. Then, the control unit 20 ends the transaction data calculation process.

次に、POS端末2が実行する請求書発行処理について説明する。請求書発行処理は、適格請求書を発行する際に実行される。図18は、POS端末2の制御部20による請求書発行処理の流れを示すフローチャートである。 Next, the bill issuing process executed by the POS terminal 2 will be explained. The billing process is executed when issuing a qualified bill. FIG. 18 is a flowchart showing the flow of bill issuance processing by the control unit 20 of the POS terminal 2.

制御部20は、算出部2004による取引データ算出処理が完了したか否か判断し(ステップS71)、完了しなければ(ステップS71のN)、ステップS71の処理に戻って待機する。 The control unit 20 determines whether the transaction data calculation process by the calculation unit 2004 is completed (step S71), and if it is not completed (N in step S71), the process returns to step S71 and waits.

算出部2004による取引データ算出処理が完了すると(ステップS71のY)、制御部20は、対価印字設定ファイル215から設定フラグに「1」が登録されている設定情報を読み出す(ステップS72)。制御部20は、対価印字設定ファイル215から読み出した情報が印字コード1であるか否か判断する(ステップS73)。 When the transaction data calculation process by the calculation unit 2004 is completed (Y in step S71), the control unit 20 reads setting information in which "1" is registered in the setting flag from the consideration print setting file 215 (step S72). The control unit 20 determines whether the information read from the consideration print setting file 215 is print code 1 (step S73).

対価印字設定ファイル215から読み出した情報が印字コード1であると(ステップS73のY)、発行部2006は、印字する対価として税抜価格を選択する(ステップS74)。発行部2006は、選択した対価の印字内容に基づいて請求書を印字して発行する(ステップS75)。そして、制御部20は請求書発行処理を終了する。 If the information read from the consideration print setting file 215 is the print code 1 (Y in step S73), the issuing unit 2006 selects the tax-excluded price as the consideration to be printed (step S74). The issuing unit 2006 prints and issues a bill based on the printed content of the selected consideration (step S75). The control unit 20 then ends the bill issuing process.

ステップS73の処理において、対価印字設定ファイル215から読み出した情報が印字コード1でない場合(ステップS73のN)すなわち印字コード2である場合、発行部2006は、印字する対価として税込価格を選択する(ステップS76)。そして、制御部20はステップS75の処理に移行する。 In the process of step S73, if the information read from the consideration printing setting file 215 is not the printing code 1 (N of step S73), that is, if the printing code is 2, the issuing unit 2006 selects the tax-included price as the consideration to be printed ( Step S76). The control unit 20 then proceeds to the process of step S75.

上記請求書発行処理により、POS端末2は、サーバ装置3から受信した取引データに基づいて適格請求書を発行することができる。 Through the above bill issuing process, the POS terminal 2 can issue a qualified bill based on the transaction data received from the server device 3.

ここで、POS端末2が発行する請求書について説明する。図19はPOS端末2が発行する請求書を示す図である。なお、図19の請求書に印字される対価は税込価格であり、税額は切り捨てによる端数処理をした金額となっている。 Here, the bill issued by the POS terminal 2 will be explained. FIG. 19 is a diagram showing a bill issued by the POS terminal 2. Note that the consideration printed on the bill in FIG. 19 is a tax-included price, and the tax amount is rounded down to the nearest whole number.

図19に示す請求書は、課税事業者が発行するものとなっている。図19において、請求書70には、事業者情報701、取引日702、商品情報703、対価704、税額705、税率情報706、請求書No707、および宛先708の各事項が印字される。 The bill shown in FIG. 19 is issued by a taxable business entity. In FIG. 19, the following items are printed on the invoice 70: business information 701, transaction date 702, product information 703, consideration 704, tax amount 705, tax rate information 706, invoice number 707, and destination 708.

事業者情報701は、請求書を発行する事業者名および適格請求書発行事業者として登録された登録番号を含む。取引日702は、売り手から買い手に資産が譲渡された日、すなわち消費者によって商品が購入された年月日である。商品情報703は、譲渡された資産の内容を示すもので、購入された商品名、代金を含む。商品情報703は、取引日702に対応して印字される。 The business information 701 includes the name of the business that issues the bill and the registration number registered as a qualified bill issuing business. The transaction date 702 is the date when the asset was transferred from the seller to the buyer, that is, the date when the product was purchased by the consumer. Product information 703 indicates the details of the transferred assets, and includes the name of the purchased product and the price. Product information 703 is printed corresponding to transaction date 702.

対価704は、譲渡された資産の対価すなわち商品の代金の合計を、税率毎に区分したものである。上述のとおり、図19の対価704は税込価格となっている。税額705は、税率毎に区分した税額であり、対価704の後にかっこ書きで印字される。税率情報706は、軽減税率の商品を示すもので、商品情報703と協働して購入された商品の内容を示すものとなっている。請求書No707は、取引を特定する情報である。宛先708は、請求書の交付を受ける者、すなわち商品を購入した消費者(事業者である場合を含む)である。 The consideration 704 is the consideration for the transferred assets, that is, the total price of the product, divided by tax rate. As mentioned above, consideration 704 in FIG. 19 is a tax-included price. The tax amount 705 is the tax amount categorized by tax rate, and is printed in parentheses after the consideration 704. Tax rate information 706 indicates products with reduced tax rates, and cooperates with product information 703 to indicate the details of the purchased product. Bill No. 707 is information that specifies the transaction. The destination 708 is the person to whom the bill is issued, that is, the consumer (including the case of a business) who purchased the product.

POS端末2は、図19に示す請求書70を適格請求書として発行することができる。なお、上述したレシート50、請求書70は、符号を付した各事項が印字されていればよく、その印字位置等は問わない。 The POS terminal 2 can issue the bill 70 shown in FIG. 19 as a qualified bill. Note that the above-mentioned receipt 50 and bill 70 only need to have each numbered item printed thereon, and the printing position and the like do not matter.

以上説明したとおり、実施形態のPOS端末2は、商品を識別する商品コードが入力される入力部2002と、価格を含む商品情報と前記商品コードとを対応付けて記憶する商品マスタ212から、入力部2002に入力された商品コードに対応する商品情報を登録して商品登録を行う登録部2003と、登録部2003によって商品登録された商品のうち、商品マスタ212に記憶された価格が消費税を含む税込価格である内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する第1の課税対象額算出部(算出部2004)と、登録部2003によって商品登録された商品のうち、商品マスタ212に記憶された価格が消費税を含まない税抜価格である外税商品の当該価格の合計である課税対象額を、適用される税率毎にそれぞれ算出する第2の課税対象額算出部(算出部2004)と、前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計する集計部(算出部2004)と、前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する税額算出部(算出部2004)と、を備える。 As explained above, the POS terminal 2 of the embodiment receives input from the input unit 2002 into which a product code for identifying a product is input, and the product master 212 which stores product information including price and the product code in association with each other. A registration unit 2003 performs product registration by registering product information corresponding to the product code input to the product code input in the registration unit 2002. Among the products registered by the registration unit 2003, the prices stored in the product master 212 are subject to consumption tax. A first taxable amount calculation unit (calculation unit 2004) that calculates the total taxable amount of tax-inclusive products, which is the tax-inclusive price, for each applicable tax rate; and A second taxable amount that calculates the taxable amount, which is the sum of the prices of tax-exclusive products whose prices stored in the product master 212 are tax-exclusive prices that do not include consumption tax, for each applicable tax rate. an amount calculation unit (calculation unit 2004), and a totalization unit (calculation unit 2004) that totals the taxable amounts calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each tax rate; and a tax amount calculation section (calculation section 2004) that calculates the tax amount for the taxable amount compiled by the totalization section for each of the tax rates.

これにより、POS端末2は、内税商品および外税商品を販売する店舗においても、インボイス制度における適格簡易請求書の発行に必要な金額を算出することができる。また、POS端末2は、税率毎の税額の算出にあたり端数処理を1回とすることができるので算出処理を容易にすることができる。 Thereby, the POS terminal 2 can calculate the amount necessary for issuing a qualified simple invoice in the invoice system even in stores that sell tax-inclusive products and tax-exclusive products. Further, the POS terminal 2 can perform rounding only once when calculating the tax amount for each tax rate, thereby facilitating the calculation process.

また、実施形態のPOS端末2は、前記集計部が集計した課税対象額に基づく対価の額と、前記税額算出部が算出した税額と、を前記税率で対応付けたレシートを発行する発行部2006をさらに備える。 Further, the POS terminal 2 of the embodiment includes an issuing unit 2006 that issues a receipt in which the amount of consideration based on the taxable amount aggregated by the aggregation unit and the tax amount calculated by the tax amount calculation unit are associated at the tax rate. Furthermore, it is equipped with.

これにより、POS端末2は、内税商品および外税商品を販売する店舗においても、インボイス制度における適格簡易請求書となるレシートを発行することができる。 Thereby, the POS terminal 2 can issue a receipt that serves as a qualified simple bill in the invoice system even in stores that sell tax-inclusive products and tax-exclusive products.

さらに、実施形態のPOS端末2は、取引された商品の前記商品情報を含む取引データを外部装置に出力する出力部(送受信部2001)をさらに備える。 Furthermore, the POS terminal 2 of the embodiment further includes an output unit (transmission/reception unit 2001) that outputs transaction data including the product information of the traded product to an external device.

これにより、POS端末2は、取引情報を管理する管理装置等の外部装置で適格請求書が発行可能となる取引データを当該外部装置に提供することができる。 Thereby, the POS terminal 2 can provide transaction data that enables an external device such as a management device that manages transaction information to issue a qualified bill to the external device.

加えて、実施形態のPOS端末2は、消費者を識別する会員IDを受付ける受付部(入力部2002)と、取引データと前記会員IDとを対応付けて記憶するサーバ装置3の取引情報管理ファイル313から、前記受付部が受付けた会員コードに対応する指定期間の取引データを取得する取得部(送受信部2001)と、をさらに備え、第1の課税対象額算出部(算出部2004)は、前記取得部が取得した取引データに含まれる商品のうち、前記内税商品の合計の課税対象額を適用される税率毎にそれぞれ算出し、第2の課税対象額算出部(算出部2004)は、前記取得部が取得した取引データに含まれる商品のうち、前記外税商品の前記価格の合計である課税対象額を適用される税率毎にそれぞれ算出し、集計部(算出部2004)は、前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計し、税額算出部(算出部2004)は、前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する。 In addition, the POS terminal 2 of the embodiment includes a reception unit (input unit 2002) that accepts a member ID for identifying a consumer, and a transaction information management file of the server device 3 that stores transaction data and the member ID in association with each other. 313, an acquisition unit (transmission/reception unit 2001) that acquires transaction data for a specified period corresponding to the membership code accepted by the reception unit, and a first taxable amount calculation unit (calculation unit 2004). Among the products included in the transaction data acquired by the acquisition unit, the total taxable amount of the tax-inclusive products is calculated for each applicable tax rate, and the second taxable amount calculation unit (calculation unit 2004) Of the products included in the transaction data acquired by the acquisition unit, the taxable amount, which is the sum of the prices of the tax-excluded products, is calculated for each applicable tax rate, and the aggregation unit (calculation unit 2004) The taxable amount calculated by the first taxable amount calculating unit and the second taxable amount calculating unit is aggregated for each tax rate, and the tax amount calculating unit (calculating unit 2004) calculates the taxable amount calculated by the aggregating unit. The tax amount for the taxable amount is calculated for each of the tax rates.

これにより、POS端末2は、内税商品および外税商品を販売する店舗においても、インボイス制度における適格請求書の発行に必要な金額を算出することができる。また、POS端末2は、税率毎の税額の算出にあたり端数処理を1回とすることができるので算出処理を容易にすることができる。 Thereby, the POS terminal 2 can calculate the amount required to issue a qualified invoice under the invoice system even in stores that sell tax-inclusive products and tax-exclusive products. Further, the POS terminal 2 can perform rounding only once when calculating the tax amount for each tax rate, thereby facilitating the calculation process.

また、実施形態のPOS端末2において、発行部2006は、指定期間の取引に係る請求書であって、集計部(算出部2004)が集計した課税対象額に基づく対価の額と、税額算出部(算出部2004)が算出した税額とを税率で対応付けた請求書を発行する。 In addition, in the POS terminal 2 of the embodiment, the issuing unit 2006 generates invoices related to transactions during a specified period, the amount of consideration based on the taxable amount compiled by the aggregating unit (calculating unit 2004), and the tax amount calculating unit. (Calculation unit 2004) issues a bill in which the tax amount calculated is associated with the tax rate.

これにより、POS端末2は、内税商品および外税商品を販売する店舗においても、インボイス制度における適格請求書を発行することができる。このため、事業者は店舗の売場で消費者の要求に応じて適格請求書を発行することができる。 Thereby, the POS terminal 2 can issue invoices eligible for the invoice system even in stores that sell tax-inclusive products and tax-exclusive products. Therefore, businesses can issue qualified invoices at the store's sales floor in response to consumer requests.

なお、上記実施形態において、POS端末2およびサーバ装置3の各装置で実行される制御プログラムは、CD-ROM等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。また、上記各装置で実行される制御プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良く、さらには、インターネット等のネットワーク経由で提供するように構成しても良い。 In addition, in the above embodiment, the control program executed by each device of the POS terminal 2 and the server device 3 may be configured to be recorded and provided on a computer-readable recording medium such as a CD-ROM. . Furthermore, the control program executed by each of the above devices may be configured to be stored on a computer connected to a network such as the Internet, and provided by being downloaded via the network. It may also be configured to be provided via a network.

以上、本発明の実施形態を説明したが、この実施形態は、例として提示したものであり、発明の範囲を限定することは意図していない。この実施形態は、その他の様々な形態で実施されることが可能であり、発明の要旨を逸脱しない範囲で、種々の省略、置き換え、変更を行うことができる。 Although the embodiment of the present invention has been described above, this embodiment is presented as an example and is not intended to limit the scope of the invention. This embodiment can be implemented in various other forms, and various omissions, substitutions, and changes can be made without departing from the gist of the invention.

2 POS端末(販売データ処理装置)
3 サーバ装置
212 商品マスタ(商品情報記憶部)
313 取引情報管理ファイル(取引情報記憶部)
2001 送受信部(取得部、出力部)
2002 入力部(受付部)
2003 登録部
2004 算出部(第1の課税対象額算出部、第2の課税対象額算出部、集計部、税額算出部)
2006 発行部
2 POS terminal (sales data processing device)
3 Server device 212 Product master (product information storage unit)
313 Transaction information management file (transaction information storage unit)
2001 Transmission/reception unit (acquisition unit, output unit)
2002 Input section (reception section)
2003 Registration Department 2004 Calculation Department (First Taxable Amount Calculation Department, Second Taxable Amount Calculation Department, Aggregation Department, Tax Amount Calculation Department)
2006 Publishing Department

特開2018-10531号公報JP2018-10531A

Claims (6)

商品を識別する商品識別情報が入力される入力部と、
価格を含む商品情報と前記商品識別情報とを対応付けて記憶する商品情報記憶部から、前記入力部に入力された商品識別情報に対応する商品情報を登録して商品登録を行う登録部と、
前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含む税込価格である内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する第1の課税対象額算出部と、
前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含まない税抜価格である外税商品の当該価格の合計である課税対象額を、適用される税率毎にそれぞれ算出する第2の課税対象額算出部と、
前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計する集計部と、
前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する税額算出部と、
を備えた販売データ処理装置。
an input section into which product identification information for identifying the product is input;
a registration unit that performs product registration by registering product information corresponding to the product identification information input to the input unit from a product information storage unit that stores product information including a price and the product identification information in association with each other;
Among the products registered by the registration unit, the total taxable amount of tax-inclusive products whose price stored in the product information storage unit is a tax-inclusive price including consumption tax is calculated for each applicable tax rate. a first taxable amount calculation unit,
Among the products registered by the registration unit, the taxable amount, which is the sum of the prices of tax-exclusive products whose price stored in the product information storage unit is a tax-excluded price that does not include consumption tax, is calculated as the applicable taxable amount. a second taxable amount calculation unit that calculates each tax rate;
an aggregation unit that aggregates the taxable amounts calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each of the tax rates;
a tax amount calculation unit that calculates the tax amount for the taxable amount tabulated by the aggregation unit for each of the tax rates;
Sales data processing equipment equipped with.
前記集計部が集計した課税対象額に基づく対価の額と、前記税額算出部が算出した税額とを前記税率で対応付けたレシートを発行する発行部をさらに備える、
請求項1に記載の販売データ処理装置。
further comprising an issuing unit that issues a receipt in which the amount of consideration based on the taxable amount aggregated by the aggregation unit and the tax amount calculated by the tax amount calculation unit are associated at the tax rate;
The sales data processing device according to claim 1.
取引された商品の前記商品情報を含む取引データを外部装置に出力する出力部をさらに備える、
請求項2に記載の販売データ処理装置。
further comprising an output unit that outputs transaction data including the product information of the traded product to an external device;
The sales data processing device according to claim 2.
消費者を識別する消費者識別情報を受付ける受付部と、
前記取引データと前記消費者識別情報とを対応付けて記憶する取引情報記憶部から、前記受付部が受付けた消費者識別情報に対応する指定期間の取引データを取得する取得部と、をさらに備え、
前記第1の課税対象額算出部は、前記取得部が取得した取引データに含まれる商品のうち、前記内税商品の合計の課税対象額を適用される税率毎にそれぞれ算出し、
前記第2の課税対象額算出部は、前記取得部が取得した取引データに含まれる商品のうち、前記外税商品の前記価格の合計である課税対象額を適用される税率毎にそれぞれ算出し、
前記集計部は、前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計し、
前記税額算出部は、前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する、
請求項3に記載の販売データ処理装置。
a reception unit that accepts consumer identification information that identifies the consumer;
Further comprising: an acquisition unit that acquires transaction data for a specified period corresponding to the consumer identification information received by the reception unit from a transaction information storage unit that stores the transaction data and the consumer identification information in association with each other. ,
The first taxable amount calculation unit calculates the total taxable amount of the tax-inclusive products among the products included in the transaction data acquired by the acquisition unit for each applicable tax rate,
The second taxable amount calculation unit calculates the taxable amount, which is the sum of the prices of the non-taxable products among the products included in the transaction data acquired by the acquisition unit, for each applicable tax rate. ,
The aggregation unit aggregates the taxable amount calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each tax rate,
The tax amount calculation unit calculates the tax amount for the taxable amount aggregated by the aggregation unit for each of the tax rates,
The sales data processing device according to claim 3.
前記発行部は、前記指定期間の取引に係る請求書であって、前記集計部が集計した課税対象額に基づく対価の額と前記税額算出部が算出した税額と、を前記税率で対応付けた請求書を発行する、
請求項4に記載の販売データ処理装置。
The issuing unit associates the amount of consideration based on the taxable amount compiled by the aggregation unit with the tax amount calculated by the tax amount calculation unit at the tax rate for invoices related to transactions during the designated period. issue an invoice,
The sales data processing device according to claim 4.
販売データ処理装置をコンピュータで制御するためのプログラムであって、
前記コンピュータを、
商品を識別する商品識別情報が入力される入力部と、
価格を含む商品情報と前記商品識別情報とを対応付けて記憶する商品情報記憶部から、前記入力部に入力された商品識別情報に対応する商品情報を登録して商品登録を行う登録部と、
前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含む税込価格である内税商品の合計の課税対象額を、適用される税率毎にそれぞれ算出する第1の課税対象額算出部と、
前記登録部によって商品登録された商品のうち、前記商品情報記憶部に記憶された価格が消費税を含まない税抜価格である外税商品の当該価格の合計である課税対象額を、適用される税率毎にそれぞれ算出する第2の課税対象額算出部と、
前記第1の課税対象額算出部および前記第2の課税対象額算出部が算出した課税対象額を前記税率毎にそれぞれ集計する集計部と、
前記集計部が集計した課税対象額に対する税額を前記税率毎にそれぞれ算出する税額算出部と、
として機能させるプログラム。
A program for controlling a sales data processing device with a computer,
The computer,
an input section into which product identification information for identifying the product is input;
a registration unit that performs product registration by registering product information corresponding to the product identification information input to the input unit from a product information storage unit that stores product information including a price and the product identification information in association with each other;
Among the products registered by the registration unit, the total taxable amount of tax-inclusive products whose price stored in the product information storage unit is a tax-inclusive price including consumption tax is calculated for each applicable tax rate. a first taxable amount calculation unit,
Among the products registered by the registration unit, the taxable amount, which is the sum of the prices of tax-exclusive products whose price stored in the product information storage unit is a tax-excluded price that does not include consumption tax, is calculated as the applicable taxable amount. a second taxable amount calculation unit that calculates each tax rate;
an aggregation unit that aggregates the taxable amounts calculated by the first taxable amount calculation unit and the second taxable amount calculation unit for each of the tax rates;
a tax amount calculation unit that calculates the tax amount for the taxable amount tabulated by the aggregation unit for each of the tax rates;
A program that functions as
JP2022094879A 2022-06-13 2022-06-13 Sales data processor and program Pending JP2023181637A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022094879A JP2023181637A (en) 2022-06-13 2022-06-13 Sales data processor and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022094879A JP2023181637A (en) 2022-06-13 2022-06-13 Sales data processor and program

Publications (1)

Publication Number Publication Date
JP2023181637A true JP2023181637A (en) 2023-12-25

Family

ID=89308879

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022094879A Pending JP2023181637A (en) 2022-06-13 2022-06-13 Sales data processor and program

Country Status (1)

Country Link
JP (1) JP2023181637A (en)

Similar Documents

Publication Publication Date Title
JP5686664B2 (en) Tax-free processing system and method
JP5686663B2 (en) Tax-free processing system and method
US20190050838A1 (en) Transaction settlement system, transaction processing apparatus, settlement apparatus, and control method for a settlement apparatus
JP6416721B2 (en) Tax exemption processing system, information processing apparatus and program thereof
JP6329111B2 (en) Product data processing apparatus and program
JP2023181637A (en) Sales data processor and program
JP6600039B2 (en) Product data processing apparatus, program, product data processing method and system
JP2021057085A (en) Tax exemption processing apparatus, tax exemption processing method, and program
JP2013054582A (en) Information processor and program
JP2016218983A (en) Commodity sales support system and commodity sales support program
JP7393497B2 (en) Tax exemption processing system, information processing equipment and its program
US20240161143A1 (en) Information processing apparatus and information processing method
JP7336560B2 (en) Product data processor, program
JP6661726B2 (en) Tax exemption processing system, information processing device and its program
JP7041233B2 (en) Product data processing equipment, programs
JP7111868B2 (en) Tax exemption processing system, information processing device and its program
JP7318073B2 (en) Tax exemption processing system, information processing device and its program
JP7357117B2 (en) Tax exemption processing system and settlement device
JP6797264B2 (en) Product data processing equipment, programs, and product data processing methods
JP6661725B2 (en) Tax exemption processing system, information processing device and its program
JP7364406B2 (en) Settlement device and its control program
JP6905113B2 (en) Storage device and its program
JP2018077609A (en) Tax exemption processing apparatus, tax exemption processing method and program
JP2024073903A (en) System and program
JP2024031000A (en) Accounting device and program