JP6306244B2 - Information processing apparatus and program - Google Patents

Information processing apparatus and program Download PDF

Info

Publication number
JP6306244B2
JP6306244B2 JP2017096496A JP2017096496A JP6306244B2 JP 6306244 B2 JP6306244 B2 JP 6306244B2 JP 2017096496 A JP2017096496 A JP 2017096496A JP 2017096496 A JP2017096496 A JP 2017096496A JP 6306244 B2 JP6306244 B2 JP 6306244B2
Authority
JP
Japan
Prior art keywords
product
tax
tax rate
category
product code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2017096496A
Other languages
Japanese (ja)
Other versions
JP2017142862A (en
Inventor
謙次 清水
謙次 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2017096496A priority Critical patent/JP6306244B2/en
Publication of JP2017142862A publication Critical patent/JP2017142862A/en
Application granted granted Critical
Publication of JP6306244B2 publication Critical patent/JP6306244B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明の実施形態は、情報処理装置およびプログラムに関する。   Embodiments described herein relate generally to an information processing apparatus and a program.

従来、消費税の税率は、一律で定められている。POS(Point Of Sales)端末等の商品販売データ処理装置は、その一律の税率を用いて商品コードを元に特定される商品についての販売登録処理を実行している。   Conventionally, the tax rate of consumption tax is set uniformly. A merchandise sales data processing apparatus such as a POS (Point Of Sales) terminal executes a sales registration process for a merchandise identified based on a merchandise code using the uniform tax rate.

しかしながら、近年においては、消費税率の引上げに伴う食料品等に対する消費税の軽減税率制度の導入が検討されている。このため、今後、商品の種類や分類によって複数の税率が定められた場合には、各商品に対して適切な税率を選択して販売登録を行う必要が生じる。   However, in recent years, the introduction of a reduced consumption tax rate system for foods, etc. accompanying the increase in the consumption tax rate is being considered. For this reason, in the future, when a plurality of tax rates are determined depending on the type or classification of products, it is necessary to select and register sales for each product.

従来、商品販売データ処理装置において、商品ごとに税率を設定しておき、商品の販売登録時に各商品に対応する税率をもとに税額を算出する技術が開示されている。しかしながら、従来技術においては、商品数が多い場合にそれぞれの商品に対して逐一消費税を登録する際に手間がかかるという問題がある。従って、消費税の軽減税率制度の導入に伴う税率の見直しが頻繁に行われるような場合、その税率見直しの度に税率を複数設定しなければならず、税制度への対応時の作業負担が大きいという問題がある。   Conventionally, a technology has been disclosed in which a tax rate is set for each product in a product sales data processing apparatus, and a tax amount is calculated based on the tax rate corresponding to each product when the product is registered for sale. However, the conventional technique has a problem that it takes time to register the consumption tax for each product when the number of products is large. Therefore, if the tax rate is frequently reviewed due to the introduction of the reduced consumption tax rate system, multiple tax rates must be set each time the tax rate is revised, and the work burden when responding to the tax system is reduced. There is a problem of being big.

本発明が解決しようとする課題は、税率見直しにかかる対応時の作業負担を軽減することができる情報処理装置およびプログラムを提供することである。   The problem to be solved by the present invention is to provide an information processing apparatus and a program that can reduce the work burden when responding to a tax rate review.

実施形態の情報処理装置は、商品の商品コードと税区分との少なくとも何れか一方に対応する税率を記述した構造化文書を入力する情報入力手段と、前記構造化文書から税区分ごとの税率を読み込み、税区分記憶手段に設定する税区分設定手段と、前記構造化文書から、税区分と当該税区分を適用する商品コードとを読み込んで、商品情報記憶手段に設定する区分別税率設定手段と、前記構造化文書で商品コードに対する税率が記述されていれば、前記商品情報記憶手段において当該商品コードの税区分を空データとして、前記構造化文書から読み込んだ商品コードと当該商品コードに適用する税率とを対応付けて、商品別税率記憶手段に設定する商品別税率設定手段と、商品コードを受付ける商品コード受付手段と、前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていれば、当該税率を読み込んで適用する商品別税率適用手段と、前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていなければ、当該商品コードの税区分を前記商品情報記憶手段から読み込み、当該税区分に対応づけられた税率を前記税区分記憶手段から読み込んで適用する区分別税率適用手段と、を備える。The information processing apparatus according to the embodiment includes an information input unit that inputs a structured document that describes a tax rate corresponding to at least one of a product code and a tax category of a product, and a tax rate for each tax category from the structured document. A tax category setting unit that reads and sets the tax category storage unit; a tax category setting unit that reads a tax category and a product code to which the tax category is applied from the structured document, and sets the tax category setting unit in the product information storage unit; If the tax rate for the product code is described in the structured document, the product information storage means applies the tax classification of the product code as empty data to the product code read from the structured document and the product code. A product-specific tax rate setting unit that associates a tax rate with the product-specific tax rate storage unit, a product code receiving unit that receives a product code, and the product code receiving unit If the tax rate for the product code accepted by the product is set in the product-specific tax rate storage means, the product-specific tax rate application means for reading and applying the tax rate, and the tax rate for the product code accepted by the product code acceptance means, If not set in the product-specific tax rate storage means, the tax category of the product code is read from the product information storage means, and the tax rate associated with the tax category is read from the tax category storage means and applied. And a tax rate application means.

図1は、実施形態にかかるPOSシステムの概略構成図である。FIG. 1 is a schematic configuration diagram of a POS system according to an embodiment. 図2は、ストアサーバのハードウェア構成を示すブロック図である。FIG. 2 is a block diagram illustrating a hardware configuration of the store server. 図3は、商品マスタのデータ構成を示す図である。FIG. 3 is a diagram illustrating a data configuration of the product master. 図4は、税区分マスタのデータ構成を示す図である。FIG. 4 is a diagram illustrating a data configuration of the tax classification master. 図5は、商品別税率設定マスタのデータ構成を示す図である。FIG. 5 is a diagram illustrating a data configuration of the product-specific tax rate setting master. 図6は、区分別税率設定マスタのデータ構成を示す図である。FIG. 6 is a diagram illustrating a data configuration of the classification-specific tax rate setting master. 図7は、デフォルト税率設定マスタのデータ構成を示す図である。FIG. 7 is a diagram showing a data configuration of the default tax rate setting master. 図8は、ストアサーバが発揮する機能を示す機能ブロック図である。FIG. 8 is a functional block diagram showing functions performed by the store server. 図9は、税率設定処理の流れを概略的に示すフローチャートである。FIG. 9 is a flowchart schematically showing the flow of the tax rate setting process. 図10は、情報変換処理の変換例について示す模式図である。FIG. 10 is a schematic diagram illustrating a conversion example of the information conversion process. 図11は、情報変換処理の流れを概略的に示すフローチャートである。FIG. 11 is a flowchart schematically showing the flow of information conversion processing. 図12は、POS端末の構成を概略的に示した外観斜視図である。FIG. 12 is an external perspective view schematically showing the configuration of the POS terminal. 図13は、POS端末2のハードウェア構成を示すブロック図である。FIG. 13 is a block diagram showing a hardware configuration of the POS terminal 2. 図14は、商品の販売登録処理の流れを概略的に示すフローチャートである。FIG. 14 is a flowchart schematically showing the flow of the merchandise sales registration process.

本実施形態においては、スーパーマーケット等の店舗で用いられるPOS(Point Of Sales)端末を集中管理するストアサーバを情報処理装置として適用したPOSシステムについて説明する。   In the present embodiment, a POS system will be described in which a store server that centrally manages POS (Point Of Sales) terminals used in stores such as supermarkets is applied as an information processing apparatus.

図1は、実施形態にかかるPOSシステム1の概略構成図である。POSシステム1は、図1に示すように、販売データ処理装置としての複数台(図では2台)のPOS端末2と、これらのPOS端末2をLAN(Local Area Network)等のネットワーク3で接続して集中管理する情報処理装置であるストアサーバ4とを備える。   FIG. 1 is a schematic configuration diagram of a POS system 1 according to the embodiment. As shown in FIG. 1, the POS system 1 connects a plurality of (two in the figure) POS terminals 2 as sales data processing apparatuses and these POS terminals 2 via a network 3 such as a LAN (Local Area Network). And a store server 4 that is an information processing apparatus that performs centralized management.

ストアサーバ4は、POSシステム1全体の制御を受け持つものである。図2は、ストアサーバ4のハードウェア構成を示すブロック図である。ストアサーバ4は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)等で構成されるコンピュータ構成の制御部41と、通信I/F(インタフェース)43と、I/O機器制御部44とがバス42によって接続されて構成されている。ストアサーバ4は、通信I/F43およびネットワーク3(図1参照)を介して複数台のPOS端末2との間で相互にオンライン通信する。また、制御部41にはバス42およびI/O機器制御部44を介して、キーボード45、表示器46、プリンタ47およびHDD(Hard Disk Drive)48が接続されている。HDD48は、制御部41のCPUを動作させる各種制御プログラムの他、商品マスタM1、税区分マスタM2および税率設定データベースDBを格納している。   The store server 4 is responsible for overall control of the POS system 1. FIG. 2 is a block diagram illustrating a hardware configuration of the store server 4. The store server 4 includes a control unit 41 having a computer configuration including a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like, a communication I / F (interface) 43, an I / O The O device control unit 44 is connected by a bus 42. The store server 4 communicates online with a plurality of POS terminals 2 via the communication I / F 43 and the network 3 (see FIG. 1). In addition, a keyboard 45, a display 46, a printer 47, and an HDD (Hard Disk Drive) 48 are connected to the control unit 41 via a bus 42 and an I / O device control unit 44. The HDD 48 stores a product master M1, a tax classification master M2, and a tax rate setting database DB, in addition to various control programs for operating the CPU of the control unit 41.

なお、本実施形態のストアサーバ4で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   The program executed by the store server 4 of the present embodiment is an installable or executable file, such as a CD-ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disk), or the like. You may comprise so that it may record and provide on a computer-readable recording medium.

さらに、本実施形態のストアサーバ4で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施形態のストアサーバ4で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the program executed by the store server 4 of the present embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the program executed by the store server 4 of the present embodiment may be configured to be provided or distributed via a network such as the Internet.

次に、商品マスタM1と、商品マスタM1に設定される商品分類(分類)について説明する。図3は、商品マスタM1のデータ構成を示す図である。図3に示すように、商品マスタM1には、各商品の商品コードに対応付けて、商品名や商品の価格、分類コード(分類1コード、分類2コード)、税区分コード等の商品情報が設定される。   Next, the product master M1 and the product classification (classification) set in the product master M1 will be described. FIG. 3 is a diagram illustrating a data configuration of the product master M1. As shown in FIG. 3, in the product master M1, product information such as product name, product price, classification code (classification 1 code, classification 2 code), and tax classification code is associated with the product code of each product. Is set.

商品は複数の分類コードによって分類分けされており、それら複数の分類は階層的に構築されている。   The products are classified by a plurality of classification codes, and the plurality of classifications are constructed hierarchically.

即ち、図3に示すように、商品は大まかな分類である分類1(上位の分類)によって複数に分類分けされている。分類1は、例えば図3に示すように、分類1コードが0である「必需品」と、分類1コードが1である「飲料」と、分類1コードが2である「生鮮食品」とに分類分けされている。   That is, as shown in FIG. 3, the products are classified into a plurality of categories according to the classification 1 (higher classification) which is a rough classification. For example, as shown in FIG. 3, the category 1 is classified into “necessities” with a category 1 code of 0, “beverages” with a category 1 code of 1, and “fresh food” with a category 1 code of 2. It is divided.

また、各分類1はより細かな分類である分類2(下位の分類)によってさらに詳細に分類されている。即ち、上位の分類1は、分類1より下位の分類2によって複数に分類分けされており、下位の分類2を少なくとも1つ含んでいる。図3に示す例では、分類1コードが0である「必需品」は、分類2コードが001である「水」と、分類2コードが002である「洗剤」と、分類コードが003である「その他」とにさらに分類分けされている。   Each category 1 is further classified in detail by category 2 (subordinate category) which is a finer category. That is, the upper class 1 is classified into a plurality of classes by the lower class 2 than the class 1, and includes at least one lower class 2. In the example shown in FIG. 3, “necessary items” with a classification 1 code of 0 are “water” with a classification 2 code of 001, “detergent” with a classification 2 code of 002, and “classification code of 003” It is further classified into “Others”.

なお、階層的に構築されているという点では、各商品に付される商品コードを分類2より下位の分類とみなすことができる。即ち、商品コードは、最も詳細な分類、即ち、最下位の分類とみなすことができる。   It should be noted that the product code attached to each product can be regarded as a lower classification than the classification 2 in that it is constructed hierarchically. That is, the product code can be regarded as the most detailed classification, that is, the lowest classification.

次に、税区分マスタM2について説明する。図4は、税区分マスタM2のデータ構成を示す図である。図4に示すように、税区分マスタM2には、税区分コードに対応付けて、税区分名称が設定される。   Next, the tax classification master M2 will be described. FIG. 4 is a diagram illustrating a data configuration of the tax classification master M2. As shown in FIG. 4, the tax category name is set in the tax category master M2 in association with the tax category code.

次に、税率設定データベースDBについて説明する。税率設定データベースDBは、上述のように階層的に分類分けされている商品の分類に対して税率を記憶している。また、税率設定データベースDBは、商品に対して税率を記憶している。図2に示すように、税率設定データベースDBは、商品別税率設定マスタD1と、区分別税率設定マスタD2と、デフォルト税率設定マスタD3と、を含んでいる。   Next, the tax rate setting database DB will be described. The tax rate setting database DB stores a tax rate for the classification of products classified hierarchically as described above. The tax rate setting database DB stores a tax rate for the product. As shown in FIG. 2, the tax rate setting database DB includes a product-specific tax rate setting master D1, a category-specific tax rate setting master D2, and a default tax rate setting master D3.

図5は、商品別税率設定マスタD1のデータ構成を示す図である。図5に示すように、商品別税率設定マスタD1は、最下位の商品分類に対する税率として、各商品コードの商品に対する税率を記憶している。なお、商品別税率設定マスタD1においては、全ての商品に対して税率が記憶されていなくてもよい。   FIG. 5 is a diagram showing a data configuration of the product-specific tax rate setting master D1. As shown in FIG. 5, the product-specific tax rate setting master D <b> 1 stores the tax rate for the product of each product code as the tax rate for the lowest product classification. In addition, in the tax rate setting master D1 classified by product, the tax rate may not be stored for all products.

図6は、区分別税率設定マスタD2のデータ構成を示す図である。図6に示すように、区分別税率設定マスタD2は、各税区分コードの区分に対する税率を記憶している。   FIG. 6 is a diagram illustrating a data configuration of the classification-specific tax rate setting master D2. As shown in FIG. 6, the classification-specific tax rate setting master D2 stores the tax rate for the classification of each tax classification code.

図7は、デフォルト税率設定マスタD3のデータ構成を示す図である。図7に示すように、デフォルト税率設定マスタD3には、税率のデフォルト値として単一の税率を記憶している。例えば、図7では、税率のデフォルト値として1.05が記憶されている。即ち、デフォルト税率設定マスタD3は、最上位の商品分類に対する税率として、全商品に対して一律に定められている単一の税率を記憶している。   FIG. 7 is a diagram illustrating a data configuration of the default tax rate setting master D3. As shown in FIG. 7, the default tax rate setting master D3 stores a single tax rate as a default value of the tax rate. For example, in FIG. 7, 1.05 is stored as the default value of the tax rate. That is, the default tax rate setting master D3 stores a single tax rate that is uniformly determined for all products as the tax rate for the highest-level product category.

このように、税率設定データベースDBは、下位の商品分類と、下位の商品分類を少なくとも1つ含む上位の商品分類とによって階層的に分類されている商品分類に対して税率を記憶している。   As described above, the tax rate setting database DB stores the tax rates for the product categories that are hierarchically classified by the lower product category and the upper product category including at least one lower product category.

次に、本実施形態のストアサーバ4が発揮する機能について説明する。本実施形態のストアサーバ4においては、制御部41のCPUがROMやHDD48に格納されているプログラムをRAMに展開して実行することにより、図8に示すように、制御部41が、情報入力手段として機能する情報入力部51と、情報生成手段として機能する情報生成部52と、情報登録手段として機能する情報登録部53として機能する。これらの各部により発揮される機能は、以下に示す課題の解決を目的としている。   Next, the function which the store server 4 of this embodiment exhibits is demonstrated. In the store server 4 of this embodiment, the CPU of the control unit 41 expands and executes a program stored in the ROM or the HDD 48 on the RAM, so that the control unit 41 inputs information as shown in FIG. It functions as an information input unit 51 that functions as a means, an information generation unit 52 that functions as an information generation unit, and an information registration unit 53 that functions as an information registration unit. The functions exhibited by these parts are aimed at solving the problems shown below.

税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2、デフォルト税率設定マスタD3)に設定される商品分類または商品に対する税率は、消費税率の引上げや、消費税率の引上げに伴う食料品等に対する消費税の軽減税率制度の導入によって、変動することが考えられる。このように軽減税率制度など複雑な税制度が適用されて税率に変動が生じる場合、税制度に関わる情報が行政機関等から提供されることが想定される。   The tax rate for the product classification or product set in the tax rate setting database DB (product-specific tax rate setting master D1, category-specific tax rate setting master D2, default tax rate setting master D3) is the food that accompanies the consumption tax rate increase or the consumption tax rate increase. It may be fluctuated due to the introduction of a reduced tax rate system for goods. In this way, when a complicated tax system such as a reduced tax rate system is applied and the tax rate fluctuates, it is assumed that information related to the tax system is provided by administrative agencies.

そこで、本実施形態のストアサーバ4は、行政機関等から提供される税制度に関わるものである税率適用情報を取り込み、税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2、デフォルト税率設定マスタD3)に対して自動的に税率設定を行うための機能を提供することで、企業の税制対応作業の軽減を図っている。   Therefore, the store server 4 of the present embodiment takes in tax rate application information relating to a tax system provided by an administrative organization or the like, and sets a tax rate setting database DB (product-specific tax rate setting master D1, category-specific tax rate setting master D2, By providing a function for automatically setting the tax rate to the default tax rate setting master D3), the taxation work of the company is reduced.

続いて、行政機関等から提供される税率適用情報を取り込み、税率設定データベースDBに対して自動的に税率設定を行うために制御部41が実現する各部について説明する。   Subsequently, each unit realized by the control unit 41 in order to take in the tax rate application information provided from the administrative institution and automatically set the tax rate in the tax rate setting database DB will be described.

情報入力部51は、税率適用情報の一例として、商品および商品区分に対応する税率を含む構造化文書であってXML(Extensible Markup Language)によって記述されているXMLデータD(図10参照)を入力する。   As an example of tax rate application information, the information input unit 51 inputs XML data D (see FIG. 10) that is a structured document including tax rates corresponding to products and product categories and is described in XML (Extensible Markup Language). To do.

情報生成部52は、税率適用情報について情報変換処理を実行して、商品と商品区分との少なくとも何れか一方に税率を対応付けた税率情報として生成する。具体的には、税率適用情報がXMLなどのマークアップ言語によって記述されている場合、情報生成部52は、マークアップ言語を解析して予め定められた変換規則に基づいて税率適用情報を税率情報に変換する。   The information generation unit 52 performs information conversion processing on the tax rate application information, and generates tax rate information in which a tax rate is associated with at least one of a product and a product category. Specifically, when the tax rate application information is described in a markup language such as XML, the information generation unit 52 analyzes the markup language and converts the tax rate application information into the tax rate information based on a predetermined conversion rule. Convert to

情報登録部53は、情報生成部52によって生成された税率情報を、当該税率情報を管理する税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2、デフォルト税率設定マスタD3)に登録する。   The information registration unit 53 stores the tax rate information generated by the information generation unit 52 in the tax rate setting database DB (product-specific tax rate setting master D1, classification-specific tax rate setting master D2, default tax rate setting master D3) that manages the tax rate information. sign up.

図9は、税率設定処理の流れを概略的に示すフローチャートである。なお、このような税率設定処理は、予め指定された日時や税率適用情報が発表されたタイミング等で実行される。   FIG. 9 is a flowchart schematically showing the flow of the tax rate setting process. Note that such a tax rate setting process is executed at a date and time specified in advance or when the tax rate application information is announced.

図9に示すように、制御部41(情報入力部51)は、行政機関等から提供される税制度に関わる税率適用情報を入力し(ステップS21)、入力した税率適用情報をRAMに記憶する(ステップS22)。次いで、制御部41(情報生成部52、情報登録部53)は、RAMに記憶された税率適用情報の内容について、予め定められた変換規則に基づいて情報変換処理を実行し、得られた税率情報を税率設定データベースDBに対して登録する(ステップS23)。   As shown in FIG. 9, the control unit 41 (information input unit 51) inputs tax rate application information related to a tax system provided by an administrative organization or the like (step S21), and stores the input tax rate application information in the RAM. (Step S22). Next, the control unit 41 (the information generation unit 52 and the information registration unit 53) executes information conversion processing on the contents of the tax rate application information stored in the RAM based on a predetermined conversion rule, and the obtained tax rate is obtained. Information is registered in the tax rate setting database DB (step S23).

ここで、ステップS23の情報変換処理の変換例について、図10に示す模式図および図11のフローチャートを参照しつつ説明する。図10に示す税率適用情報の例は、XML(Extensible Markup Language)データDである。   Here, a conversion example of the information conversion process in step S23 will be described with reference to the schematic diagram shown in FIG. 10 and the flowchart in FIG. An example of the tax rate application information shown in FIG. 10 is XML (Extensible Markup Language) data D.

図11に示すように、制御部41は、図10に示したXMLデータDのTaxDivision以下のtaxGroupの情報からid,name,rateの各属性を抽出する(ステップS31)。次いで、制御部41は、抽出したidとnameを税区分マスタM2に登録するとともに(ステップS32)、抽出したidとrateを区分別税率設定マスタD2に登録する(ステップS33)。   As illustrated in FIG. 11, the control unit 41 extracts the id, name, and rate attributes from the taxGroup information below the TaxDivision of the XML data D illustrated in FIG. 10 (step S <b> 31). Next, the control unit 41 registers the extracted id and name in the tax classification master M2 (step S32), and registers the extracted id and rate in the classification-specific tax rate setting master D2 (step S33).

制御部41は、上述したステップS31〜S33の処理を、taxDivisions以下に存在する全てのtaxGroupについて繰り返し実行する。   The control unit 41 repeatedly executes the processes of steps S31 to S33 described above for all taxGroups existing under taxDivisions.

そして、制御部41は、taxDivisions以下に存在する全てのtaxGroupについてステップS31〜S33の処理が終了したと判断すると(ステップS34のYes)、続くステップS35に進む。   If the control unit 41 determines that the processing in steps S31 to S33 has been completed for all taxGroups existing under taxDivisions (Yes in step S34), the control unit 41 proceeds to subsequent step S35.

以上の処理により、taxDivisions以下のtaxGroupの情報が読み取られ、税区分マスタM2の登録と区分別税率設定マスタD2の登録が行われる。   With the above processing, information on taxGroup below taxDivisions is read, and registration of tax classification master M2 and registration of classification-specific tax rate setting master D2 are performed.

ステップS35においては、制御部41は、図10に示したXMLデータDのapplies直下の最上位要素がapplyGroupであるか、applies直下の最上位要素がapplyItemであるかを判定する(ステップS35)。   In step S35, the control unit 41 determines whether the highest element immediately below “applies” of the XML data D shown in FIG. 10 is applyGroup or whether the highest element immediately below “applies” is applyItem (step S35).

applies直下の最上位要素がapplyGroupである場合(ステップS35のYes)、制御部41は、id属性を抽出し(ステップS36)、上述したステップS31〜S33の処理で作成済みの税区分マスタM2および区分別税率設定マスタD2にidに対応する情報が存在するか否かを確認する(ステップS37)。   When the highest element immediately below applies is applyGroup (Yes in step S35), the control unit 41 extracts the id attribute (step S36), and the tax classification master M2 created in the processing of steps S31 to S33 described above and It is confirmed whether or not information corresponding to id exists in the classification-specific tax rate setting master D2 (step S37).

対応するidが存在しない場合(ステップS37のNo)、制御部41は、不正なidであると判断し、エラー処理に移行した後(ステップS38)、ステップS44に進む。   When the corresponding id does not exist (No in step S37), the control unit 41 determines that the id is invalid and proceeds to error processing (step S38), and then proceeds to step S44.

一方、対応するidが存在する場合(ステップS37のYes)、制御部41は、applyGroupの子要素であるapplyItemのcode属性を抽出し(ステップS39)、抽出したcodeで商品マスタM1を検索する(ステップS40)。   On the other hand, if the corresponding id exists (Yes in step S37), the control unit 41 extracts the code attribute of applyItem, which is a child element of applyGroup (step S39), and searches the product master M1 using the extracted code (step S39). Step S40).

抽出したcodeに対応する商品が商品マスタM1に存在しない場合(ステップS41のNo)、制御部41は、エラー処理に移行した後(ステップS42)、ステップS44に進む。   If the product corresponding to the extracted code does not exist in the product master M1 (No in step S41), the control unit 41 proceeds to error processing (step S42), and then proceeds to step S44.

一方、抽出したcodeに対応する商品が商品マスタM1に存在する場合(ステップS41のYes)、制御部41は、その商品のレコードの税区分コードをidに更新する(ステップS43)。   On the other hand, when the product corresponding to the extracted code exists in the product master M1 (Yes in step S41), the control unit 41 updates the tax classification code of the record of the product to id (step S43).

そして、制御部41は、applies以下に存在する全ての要素について処理が終了したと判断すると(ステップS44のYes)、情報変換処理を終了する。   Then, when the control unit 41 determines that the process has been completed for all elements existing under the “applies” (Yes in step S44), the control unit 41 ends the information conversion process.

また、制御部41は、applies以下に存在する全ての要素についての処理が終了していないと判断すると(ステップS44のNo)、ステップS35に戻る。   In addition, when the control unit 41 determines that the processing for all the elements existing under “applies” is not completed (No in Step S44), the control unit 41 returns to Step S35.

一方、applies直下の最上位要素がapplyItemである場合(ステップS35のNo)、制御部41は、code属性を抽出し(ステップS45)、抽出したcodeで商品マスタM1を検索する(ステップS46)。   On the other hand, when the highest element immediately below “applies” is applyItem (No in step S35), the control unit 41 extracts the code attribute (step S45), and searches the product master M1 with the extracted code (step S46).

抽出したcodeに対応する商品が商品マスタM1に存在しない場合(ステップS47のNo)、制御部41は、ステップS51に進む。   When the product corresponding to the extracted code does not exist in the product master M1 (No in Step S47), the control unit 41 proceeds to Step S51.

一方、抽出したcodeに対応する商品が商品マスタM1に存在する場合(ステップS47のYes)、制御部41は、rate属性を抽出するとともに(ステップS48)、商品マスタM1の税区分コードを“空”に更新し(ステップS49)、商品別税率設定マスタD1にcodeとrateを新規レコードとして登録する(ステップS50)。   On the other hand, when the product corresponding to the extracted code exists in the product master M1 (Yes in step S47), the control unit 41 extracts the rate attribute (step S48) and sets the tax classification code of the product master M1 to “empty”. (Step S49), and the code and rate are registered as new records in the product-specific tax rate setting master D1 (step S50).

そして、制御部41は、applies以下に存在する全ての要素についての処理が終了したと判断すると(ステップS51のYes)、情報変換処理を終了する。   Then, when the control unit 41 determines that the processing for all elements existing under “applies” has ended (Yes in step S51), the information conversion processing ends.

また、制御部41は、applies以下に存在する全ての要素についての処理が終了していないと判断すると(ステップS51のNo)、ステップS35に戻る。   In addition, when the control unit 41 determines that the processing for all the elements existing under “applies” is not completed (No in step S51), the control unit 41 returns to step S35.

以上の処理により、applies以下のapplyGroupまたはapplyItemの情報が読み取られ、商品マスタM1の税区分コードの登録と商品別税率設定マスタD1の登録が行われる。   Through the above processing, the information of applyGroup or applyItem below apply is read, and registration of the tax classification code of the product master M1 and registration of the tax rate setting master D1 by product are performed.

このように本実施形態のストアサーバ4によれば、行政機関等から提供される税制度に関わる情報を取り込み、税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2、デフォルト税率設定マスタD3)に対して自動的に税率設定を行うことができるので、企業の税制対応作業の軽減を図ることができる。   As described above, according to the store server 4 of the present embodiment, information related to the tax system provided by the administrative organization or the like is acquired, and the tax rate setting database DB (product-specific tax rate setting master D1, classification-specific tax rate setting master D2, default tax rate) Since the tax rate can be automatically set for the setting master D3), it is possible to reduce the taxation work of the company.

次に、POS端末2について説明する。図12は、POS端末2の構成を概略的に示した外観斜視図である。POS端末2は、現金等を収容するためのドロワ12の上に載置されており、このドロワ12の引出し12aの開閉を制御する。POS端末2の正面側には、登録、点検、精算、設定などの各種業務モードを選択するためのモードキー14が設けられている。また、POS端末2の正面に設けられたキーボード13には、オペレータ(店員)が、例えば預かり金額などを置数するための置数キーや、1商取引として販売登録が行われた商品の合計出力を指示する現計キーなど、各種操作入力を行うための操作キーが配置されている。   Next, the POS terminal 2 will be described. FIG. 12 is an external perspective view schematically showing the configuration of the POS terminal 2. The POS terminal 2 is placed on a drawer 12 for storing cash or the like, and controls opening and closing of the drawer 12a of the drawer 12. A mode key 14 is provided on the front side of the POS terminal 2 for selecting various business modes such as registration, inspection, checkout, and setting. Also, on the keyboard 13 provided in front of the POS terminal 2, an operator (store clerk) outputs, for example, a set key for setting a deposit amount or the like and a total output of products registered for sale as one commercial transaction. Operation keys for performing various operation inputs such as a current total key for instructing are provided.

POS端末2の正面側には、店員用ディスプレイ15が取り付けられている。また、POS端末2の背面側には、客用ディスプレイ16が取り付けられている。店員用ディスプレイ15、客用ディスプレイ16は、例えば液晶ディスプレイ等を用いて構成される。店員用ディスプレイ15、客用ディスプレイ16は、販売登録された商品の品名、価格や、1商取引の合計金額、釣銭額などを表示する。POS端末2は、レシートおよびジャーナルを印字するプリンタ17を内蔵している。プリンタ17によって印字されたレシートは、POS端末2の正面側に形成されたレシート発行口18から発行される。また、POS端末2には、商品に付与されたバーコードを読取るためのスキャナ19が接続されている。   A store clerk display 15 is attached to the front side of the POS terminal 2. A customer display 16 is attached to the back side of the POS terminal 2. The clerk display 15 and the customer display 16 are configured using, for example, a liquid crystal display. The clerk display 15 and the customer display 16 display the name and price of the product registered for sale, the total amount of one transaction, the amount of change, and the like. The POS terminal 2 includes a printer 17 that prints receipts and journals. The receipt printed by the printer 17 is issued from a receipt issuing port 18 formed on the front side of the POS terminal 2. The POS terminal 2 is connected with a scanner 19 for reading a barcode attached to the product.

図13は、POS端末2のハードウェア構成を示すブロック図である。POS端末2は、CPUと、ROMと、RAM等(いずれも不図示)で構成されるコンピュータ構成の制御部21を備えている。ROMは、CPUが実行する各種プログラムや各種データを記憶する。RAMは、CPUが各種プログラムを実行する際に一時的にデータやプログラムを記憶する。また、RAMは、商品の販売記録を示す販売データや、店員用ディスプレイ15や客用ディスプレイ16に表示する各種の画面表示データを記憶する。   FIG. 13 is a block diagram showing a hardware configuration of the POS terminal 2. The POS terminal 2 includes a control unit 21 having a computer configuration including a CPU, a ROM, a RAM, and the like (all not shown). The ROM stores various programs executed by the CPU and various data. The RAM temporarily stores data and programs when the CPU executes various programs. Further, the RAM stores sales data indicating the sales record of the product, and various screen display data to be displayed on the store clerk display 15 and the customer display 16.

制御部21は、I/O機器制御部24およびバス22を介して、キーボード13、店員用ディスプレイ15、客用ディスプレイ16、プリンタ17、スキャナ19等のI/O機器を制御する。また、制御部21は、通信I/F23およびLAN3(図1参照)を介してストアサーバ4と相互に通信を行う。   The control unit 21 controls I / O devices such as the keyboard 13, the store clerk display 15, the customer display 16, the printer 17, and the scanner 19 through the I / O device control unit 24 and the bus 22. Further, the control unit 21 communicates with the store server 4 via the communication I / F 23 and the LAN 3 (see FIG. 1).

なお、本実施形態のPOS端末2で実行されるプログラムは、ROM等に予め組み込まれて提供される。本実施形態のPOS端末2で実行されるプログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよい。   Note that the program executed by the POS terminal 2 of the present embodiment is provided by being incorporated in advance in a ROM or the like. The program executed in the POS terminal 2 of the present embodiment is a file in an installable format or an executable format, and is a computer such as a CD-ROM, a flexible disk (FD), a CD-R, a DVD (Digital Versatile Disk). You may comprise so that it may record and provide on a readable recording medium.

さらに、本実施形態のPOS端末2で実行されるプログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。また、本実施形態のPOS端末2で実行されるプログラムをインターネット等のネットワーク経由で提供または配布するように構成しても良い。   Furthermore, the program executed by the POS terminal 2 of the present embodiment may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the program executed on the POS terminal 2 of the present embodiment may be configured to be provided or distributed via a network such as the Internet.

制御部21は、CPUがROMに格納されているプログラムをRAMに展開して実行することにより、図13に示すように、商品コード受付部25と、税率読込部26と、販売登録部27と、表示制御部28と、印刷制御部29として機能する。   As shown in FIG. 13, the control unit 21 develops a program stored in the ROM on the RAM and executes the program, so that a product code receiving unit 25, a tax rate reading unit 26, a sales registration unit 27, The display control unit 28 and the print control unit 29 function.

商品コード受付部25は、各商品に付されたバーコードがスキャナ19によってスキャンされた場合に、バーコードのデータから商品コードを読み取って受付ける。なお、商品コード受付部25は、キーボード13から入力されたキーにより商品コードの入力を受付けるとしても良い。また、商品コード受付部25は、二次元コードのようなその他のコードシンボルから商品コードを読み取ってその入力を受付けるとしてもよい。   The product code receiving unit 25 reads and receives a product code from the barcode data when the barcode attached to each product is scanned by the scanner 19. Note that the product code receiving unit 25 may receive an input of a product code using a key input from the keyboard 13. The product code receiving unit 25 may read the product code from other code symbols such as a two-dimensional code and receive the input.

税率読込部26は、商品コード受付部25が受付けた商品コードの商品が属する商品分類または商品に対する税率を、税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2、デフォルト税率設定マスタD3)から読み込む。   The tax rate reading unit 26 sets the tax rate for the product classification or product to which the product of the product code received by the product code receiving unit 25 belongs to the tax rate setting database DB (product-specific tax rate setting master D1, classification-specific tax rate setting master D2, default tax rate setting). Read from master D3).

また、税率読込部26は、上述のように階層的に分類分けされている商品に対して、より下位の分類に対して記憶されている税率を優先的に読み込む。即ち、税率設定データベースDBにおいて、商品コード受付部25が受付けた商品コードの商品が属する下位の分類と、当該商品が属する上位の分類との双方に対して税率が記憶されている場合には、当該商品が属する下位の分類に対する税率を読み込む。そして、税率読込部26は、下位の分類に対する税率が税率設定データベースDBに記憶されていない場合には、当該下位の分類を含む上位の分類に対する税率を読み込む。   Further, the tax rate reading unit 26 preferentially reads the tax rate stored for the lower-order classification for the products classified hierarchically as described above. That is, in the tax rate setting database DB, when the tax rate is stored for both the lower category to which the product of the product code received by the product code receiving unit 25 belongs and the upper category to which the product belongs, Read the tax rate for the lower category to which the product belongs. Then, when the tax rate for the lower category is not stored in the tax rate setting database DB, the tax rate reading unit 26 reads the tax rate for the upper category including the lower category.

より具体的には、税率読込部26は、商品別税率設定マスタD1から各商品に対して記憶されている税率を最初に読み込む。そして、商品別税率設定マスタD1がその商品コードに対する税率を記憶していない場合には、税率読込部26は、区分別税率設定マスタD2から、その商品が属する税区分コードの区分に対する税率を読み込む。   More specifically, the tax rate reading unit 26 first reads the tax rate stored for each product from the product-specific tax rate setting master D1. If the tax rate setting master D1 for each product does not store the tax rate for the product code, the tax rate reading unit 26 reads the tax rate for the category of the tax category code to which the product belongs from the tax rate setting master D2 for each category. .

さらに、税率読込部26は、最上位の分類よりも下位の分類に対する税率が記憶されていない場合、即ち上述の例では、区分別税率設定マスタD2にその商品が属する税区分コードの税率が記憶されていない場合には、デフォルト税率設定マスタD3から税率のデフォルト値を読み込む。   Further, the tax rate reading unit 26 stores the tax rate of the tax category code to which the product belongs in the category-specific tax rate setting master D2 in the case where the tax rate for the category lower than the highest category is not stored. If not, the default value of the tax rate is read from the default tax rate setting master D3.

次に、税率読込部26による読込方法の具体例について説明する。一例として、図3において商品コードが00101と設定されている「水A」という商品のバーコードをPOS端末2が読み取った場合について説明する。商品コード受付部25は、商品コード00101を受付けて、税率読込部26はこの商品コード00101に対する税率の読込処理を開始する。   Next, a specific example of the reading method by the tax rate reading unit 26 will be described. As an example, a case will be described in which the POS terminal 2 reads the barcode of the product “water A” for which the product code is set to 00101 in FIG. The product code receiving unit 25 receives the product code 00101, and the tax rate reading unit 26 starts a tax rate reading process for the product code 00101.

まず、税率読込部26は、商品別税率設定マスタD1(図5参照)を参照して、商品コード00101に対する税率を記憶しているか否かを判定する。図5に示す例では、商品コード00101に対する税率は記憶されていない。この場合に、税率読込部26は、商品コードより1つ上位である区分別税率設定マスタD2における税区分コードに対して記憶されている税率を読み込む。   First, the tax rate reading unit 26 determines whether or not the tax rate for the product code 00101 is stored with reference to the product-specific tax rate setting master D1 (see FIG. 5). In the example shown in FIG. 5, the tax rate for the product code 00101 is not stored. In this case, the tax rate reading unit 26 reads the tax rate stored for the tax category code in the category-specific tax rate setting master D2 that is one higher than the product code.

図3に示すように、商品コード00101の税区分コードは01と設定されている。従って、税率読込部26は、区分別税率設定マスタD2(図6参照)を参照して、税区分コードが01である商品に対する税率を記憶しているか否かを判定する。図6に示す例では、税区分コード01に対する税率は「1.02」と記憶されている。従って、税率読込部26は商品コード00101に対する税率として「1.02」を読み込む。   As shown in FIG. 3, the tax classification code of the product code 00101 is set to 01. Accordingly, the tax rate reading unit 26 refers to the tax rate setting master D2 for each category (see FIG. 6) and determines whether or not the tax rate for the product whose tax category code is 01 is stored. In the example shown in FIG. 6, the tax rate for the tax classification code 01 is stored as “1.02.” Therefore, the tax rate reading unit 26 reads “1.02” as the tax rate for the product code 00101.

なお区分別税率設定マスタD2が当該商品に対する税率を記憶していない場合には、税率読込部26は、区分別税率設定マスタD2における税区分コードより1つ上位であり、POSシステム2における税率のデフォルト値を、デフォルト税率設定マスタD3(図7参照)から読み込む。   If the tax rate setting master D2 for each category does not store the tax rate for the product, the tax rate reading unit 26 is one level higher than the tax category code in the category-specific tax rate setting master D2, and the tax rate in the POS system 2 The default value is read from the default tax rate setting master D3 (see FIG. 7).

このように、税率読込部26は、下位の分類に対して税率が記憶されていない場合に、1つ上位の分類に対する税率を検索し、段階的に上位の分類に対する税率を読み込んでいく。これにより、より下位の分類、即ちより細かい分類に対する税率を優先的に読み込むことができる。   As described above, when the tax rate is not stored for the lower classification, the tax rate reading unit 26 searches the tax rate for the upper classification and reads the tax rate for the upper classification step by step. Thereby, it is possible to preferentially read a tax rate for a lower classification, that is, a finer classification.

販売登録部27は、税率読込部26が読み込んだ税率を商品に適用して、当該商品の販売登録を行う。より具体的には、販売登録部27は、商品コード受付部25が受付けた商品コードをストアサーバ4に問合せて、当該商品コードに対して商品マスタM1に設定されている商品名や価格を読み込んでその商品の販売登録を行う。また、販売登録部27は、税率読込部26が読み込んだ税率を、商品の価格に適用して税込み価格を計算し、商品の販売価格として登録する。   The sales registration unit 27 applies the tax rate read by the tax rate reading unit 26 to the product and registers the product for sale. More specifically, the sales registration unit 27 inquires of the store server 4 about the product code received by the product code receiving unit 25, and reads the product name and price set in the product master M1 for the product code. To register the product for sale. Further, the sales registration unit 27 calculates the tax-inclusive price by applying the tax rate read by the tax rate reading unit 26 to the price of the product, and registers it as the sales price of the product.

表示制御部28は、店員用ディスプレイ15、客用ディスプレイ16に、販売登録部27が登録した各商品の商品名、価格、税込み価格等を表示する。また、表示制御部28は、税率読込部26が読み込んだ各商品に対する税率を店員用ディスプレイ15、客用ディスプレイ16に表示する。尚、表示制御部28は、各商品に対する税率または税額を表示するとしてもよい。さらに、表示制御部28は、キーボード13において現計キーが押下された場合に、店員用ディスプレイ15および客用ディスプレイ16に、1取引の合計金額、釣銭額を表示する。   The display control unit 28 displays the product name, price, tax-included price, and the like of each product registered by the sales registration unit 27 on the store clerk display 15 and the customer display 16. Further, the display control unit 28 displays the tax rate for each product read by the tax rate reading unit 26 on the display 15 for the clerk and the display 16 for the customer. The display control unit 28 may display a tax rate or a tax amount for each product. Further, when the current key is pressed on the keyboard 13, the display control unit 28 displays the total amount and change amount of one transaction on the store clerk display 15 and the customer display 16.

なお、表示制御部28が表示する表示内容は、店員用ディスプレイ15および客用ディスプレイ16の双方においてその全てを表示する必要は無く、表示内容は利便性に応じて適宜振り分けて表示されればよい。   Note that the display content displayed by the display control unit 28 does not have to be displayed on both the clerk display 15 and the customer display 16, and the display content may be appropriately sorted and displayed according to convenience. .

印刷制御部29は、販売店の店名や連絡先、販売登録部27が登録した各商品の商品名、価格、税込み価格、税率読込部26が読み込んだ各商品に対する税率、1取引の合計金額、釣銭額等を、プリンタ17によってレシート用紙に印刷する。尚、印刷制御部29は、各商品に対する税額をレシートに印刷するとしてもよい。また、印刷制御部29は、印刷したレシートをレシート発行口18から発行する。   The print control unit 29 stores the store name and contact information of the store, the product name of each product registered by the sales registration unit 27, the price, the tax-included price, the tax rate for each product read by the tax rate reading unit 26, the total amount of the transaction, The change amount or the like is printed on the receipt paper by the printer 17. The print control unit 29 may print the tax amount for each product on a receipt. Further, the print control unit 29 issues a printed receipt from the receipt issuing port 18.

このように、各商品に対して適用された税率を表示器に表示したり、レシートに印字したりすることによって、店員または客は各商品に対する税率を確認することができる。   In this way, the clerk or customer can confirm the tax rate for each product by displaying the tax rate applied to each product on the display or printing it on the receipt.

次に、POS端末2が実行する商品の販売登録処理の手順について説明する。図14は、POS端末2が実行する商品の販売登録処理の流れを概略的に示すフローチャートである。   Next, the procedure of the merchandise sales registration process executed by the POS terminal 2 will be described. FIG. 14 is a flowchart schematically showing a flow of merchandise sales registration processing executed by the POS terminal 2.

まず、POS端末2において、商品に付されたバーコードがスキャナ19によりスキャンされる。商品コード受付部25は、バーコードのデータから商品コードを読み取って受付ける(ステップS1:Yes)。商品コード受付部25が商品コードの入力を受付けない間(ステップS1:No)は、入力待ちを行う。   First, in the POS terminal 2, the barcode attached to the product is scanned by the scanner 19. The product code receiving unit 25 reads and receives the product code from the barcode data (step S1: Yes). While the product code receiving unit 25 does not accept the input of the product code (step S1: No), the input waiting is performed.

次に、税率読込部26は、商品コード受付部25が受付けた商品コードに対する税率を、税率設定データベースDBから読み込む。   Next, the tax rate reading unit 26 reads the tax rate for the product code accepted by the product code accepting unit 25 from the tax rate setting database DB.

まず、税率読込部26は、商品コード受付部25が受付けた商品コードに対する税率が、商品別税率設定マスタD1に記憶されているか否かを判定する(ステップS2)。商品コードに対する税率が商品別税率設定マスタD1に記憶されている場合(ステップS2:Yes)には、税率読込部26は商品別税率設定マスタD1から商品コードに対する税率を読み込み(ステップS3)、ステップS7に移行する。   First, the tax rate reading unit 26 determines whether the tax rate for the product code received by the product code receiving unit 25 is stored in the product-specific tax rate setting master D1 (step S2). When the tax rate for the product code is stored in the product-specific tax rate setting master D1 (step S2: Yes), the tax rate reading unit 26 reads the tax rate for the product code from the product-specific tax rate setting master D1 (step S3). The process proceeds to S7.

一方、商品コードに対する税率が商品別税率設定マスタD1に記憶されていない場合(ステップS2:No)には、税率読込部26は、その商品コードが属する区分の税区分コードを商品マスタM1から読み込む。そして税率読込部26は、読み込んだ税区分コードに対する税率が、区分別税率設定マスタD2に記憶されているか否かを判定する(ステップS4)。その税区分コードに対する税率が区分別税率設定マスタD2に記憶されている場合(ステップS4:Yes)には、税率読込部26は区分別税率設定マスタD2からその税区分コードに対する税率を読み込み(ステップS5)、ステップS7に移行する。   On the other hand, when the tax rate for the product code is not stored in the product-specific tax rate setting master D1 (step S2: No), the tax rate reading unit 26 reads the tax category code of the category to which the product code belongs from the product master M1. . Then, the tax rate reading unit 26 determines whether the tax rate for the read tax category code is stored in the category-specific tax rate setting master D2 (step S4). When the tax rate for the tax category code is stored in the category-specific tax rate setting master D2 (step S4: Yes), the tax rate reading unit 26 reads the tax rate for the tax category code from the category-specific tax rate setting master D2 (step S4). S5), the process proceeds to step S7.

読み込んだ税区分コードに対する税率が区分別税率設定マスタD2に記憶されていない場合(ステップS4:No)には、税率読込部26は、デフォルト税率設定マスタD3から税率のデフォルト値を読み込み(ステップS6)、ステップS7に移行する。   If the tax rate for the read tax category code is not stored in the category-specific tax rate setting master D2 (step S4: No), the tax rate reading unit 26 reads the default value of the tax rate from the default tax rate setting master D3 (step S6). ), The process proceeds to step S7.

そして、販売登録部27はステップS1で受付けた商品コードに対する商品名や価格を商品マスタM1から読み込んで、その商品の販売登録を行う(ステップS7)。また、販売登録部27は、ステップS3またはステップS5またはステップS6において読み込んだ税率を商品の価格に適用して税込み価格を計算し、商品の販売価格として登録する(ステップS7)。また、表示制御部28は、店員用ディスプレイ15、客用ディスプレイ16に、販売登録部27が登録した各商品の商品名、価格、税込み価格、税率等を表示する(ステップS8)。   Then, the sales registration unit 27 reads the product name and price corresponding to the product code received in step S1 from the product master M1, and performs sales registration of the product (step S7). In addition, the sales registration unit 27 calculates the tax-inclusive price by applying the tax rate read in step S3, step S5, or step S6 to the price of the product, and registers it as the sales price of the product (step S7). Further, the display control unit 28 displays the product name, price, tax-inclusive price, tax rate, etc. of each product registered by the sales registration unit 27 on the store clerk display 15 and the customer display 16 (step S8).

次に、POS端末2は、キーボード13において現計キーが押下されたか否かを判定する(ステップS9)。現計キーが押下されていない間(ステップS9:No)は、ステップS1に戻ってステップS1〜S9の処理を全商品の販売登録が終わるまで続ける。現計キーが押下された場合(ステップS9:Yes)には、印刷制御部29は、店名や各商品の品名、価格、税込み価格、各商品に対する税率、1取引の合計金額、釣銭額等をレシートに印刷し、レシート発行口18からレシートを発行する(ステップS10)。そして、店員は会計処理を行って一会計の販売登録処理を終了する。   Next, the POS terminal 2 determines whether or not the current key is pressed on the keyboard 13 (step S9). While the current total key is not pressed (step S9: No), the process returns to step S1 and the processes in steps S1 to S9 are continued until the sales registration of all the products is completed. If the current key is pressed (step S9: Yes), the print control unit 29 displays the store name, the product name of each product, the price, the tax-included price, the tax rate for each product, the total amount of the transaction, the change amount, etc. Printing on the receipt and issuing the receipt from the receipt issuing port 18 (step S10). Then, the clerk performs an accounting process and ends the sales registration process for one account.

上述のように、本実施の形態によれば、分類ごとに税率を記憶させるため、商品ごとに税率を記憶させずとも複数の税率に対応することができる。   As described above, according to the present embodiment, since the tax rate is stored for each classification, a plurality of tax rates can be handled without storing the tax rate for each product.

また、本実施の形態では、税率が商品の分類に応じて階層的に記憶されており、税率を読み込む際にも優先順を設けている。従って、その商品またはその商品の下位の分類に対して税率が記憶されていない場合にも、上位の分類の税率を適用することができ、税率の設定抜けを防止することができる。   In the present embodiment, the tax rates are stored hierarchically according to the classification of the products, and a priority order is provided when the tax rates are read. Therefore, even when the tax rate is not stored for the product or the lower category of the product, the tax rate of the higher category can be applied and the setting of the tax rate can be prevented.

さらに、複数の税率が導入された当初であっても、初めは大まかな分類(上位の分類)に対する税率でカバーしておき、個別の税率や細かい分類(下位の分類)の税率を徐々にデータベースに導入することが可能となる。   In addition, even when multiple tax rates are initially introduced, the tax rates for the broad categories (higher categories) are initially covered, and the tax rates for individual and fine categories (lower categories) are gradually added to the database. Can be introduced.

以上のように、本実施形態によれば、消費税の軽減税率制度の導入に伴う税率の見直しが頻繁に行われるような場合であっても、例えば行政機関等から提供される税制度に関わる税率適用情報について情報変換処理を実行して、商品と商品区分との少なくとも何れか一方に税率を対応付けた税率情報として生成し、生成された税率情報を税率設定データベースDBに登録することにより、税率見直しにかかる対応時の作業負担を軽減することができる、という効果を奏する。   As described above, according to this embodiment, even when the tax rate is frequently reviewed due to the introduction of the reduced consumption tax rate system, for example, it is related to the tax system provided by an administrative agency or the like. By executing the information conversion process for the tax rate application information, generating tax rate information associating the tax rate with at least one of the product and the product category, and registering the generated tax rate information in the tax rate setting database DB, There is an effect that it is possible to reduce the work burden when responding to the tax rate review.

なお、本実施形態においては、POS端末を集中管理するストアサーバ4を情報処理装置として適用したが、これに限るものではなく、POS端末2を情報処理装置として適用するようにしても良い。この場合、POS端末2が複数台ある場合には、全てのPOS端末2が税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2)に対する税率設定を自動的に行うようにしても良いし、1台のPOS端末2が税率設定データベースDB(商品別税率設定マスタD1、区分別税率設定マスタD2)に対する税率設定を自動的に行った後、他のPOS端末2が税率設定を自動的に行うようにしても良い。   In this embodiment, the store server 4 that centrally manages the POS terminals is applied as the information processing apparatus. However, the present invention is not limited to this, and the POS terminal 2 may be applied as the information processing apparatus. In this case, when there are a plurality of POS terminals 2, all the POS terminals 2 automatically set the tax rate for the tax rate setting database DB (product-specific tax rate setting master D1, category-specific tax rate setting master D2). Alternatively, after one POS terminal 2 automatically sets the tax rate for the tax rate setting database DB (product-specific tax rate setting master D1, classification-specific tax rate setting master D2), the other POS terminal 2 sets the tax rate. You may make it carry out automatically.

なお、税区分コードについては、商品マスタM1に設定されている現状の分類分け(分類1コードや分類2コードなど)に即しても良い。また、税区分コードは、階層構造で多段階に構成しても良い。   The tax classification code may be based on the current classification (classification 1 code, classification 2 code, etc.) set in the product master M1. Further, the tax classification code may be configured in a multilevel structure with a hierarchical structure.

また、上述ではストアサーバ4に商品マスタM1、税区分マスタM2、税率設定データベースDBを格納するとしたが、格納場所はこれに限定されるものではない。POS端末2に商品マスタM1、税区分マスタM2、税率設定データベースDBを格納するとしてもよいし、その他のデータサーバに格納するとしてもよい。   In the above description, the merchandise master M1, the tax classification master M2, and the tax rate setting database DB are stored in the store server 4. However, the storage location is not limited to this. The product master M1, the tax classification master M2, and the tax rate setting database DB may be stored in the POS terminal 2, or may be stored in another data server.

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

4 情報処理装置
51 情報入力手段
52 情報生成手段
53 情報登録手段
DB データベース
4 Information processing device 51 Information input means 52 Information generation means 53 Information registration means DB database

特開2005−242664公報JP 2005-242664 A

Claims (2)

商品の商品コードと税区分との少なくとも何れか一方に対応する税率を記述した構造化文書を入力する情報入力手段と、An information input means for inputting a structured document describing a tax rate corresponding to at least one of the product code and tax classification of the product;
前記構造化文書から税区分ごとの税率を読み込み、税区分記憶手段に設定する税区分設定手段と、A tax category setting means for reading a tax rate for each tax category from the structured document and setting it in a tax category storage means;
前記構造化文書から、税区分と当該税区分を適用する商品コードとを読み込んで、商品情報記憶手段に設定する区分別税率設定手段と、A tax rate setting unit for each category that reads a tax category and a product code to which the tax category is applied from the structured document and sets it in a product information storage unit;
前記構造化文書で商品コードに対する税率が記述されていれば、前記商品情報記憶手段において当該商品コードの税区分を空データとして、前記構造化文書から読み込んだ商品コードと当該商品コードに適用する税率とを対応付けて、商品別税率記憶手段に設定する商品別税率設定手段と、If the tax rate for the product code is described in the structured document, the product code read from the structured document and the tax rate applied to the product code with the tax classification of the product code as empty data in the product information storage means And a product-specific tax rate setting unit that sets the product-specific tax rate storage unit,
商品コードを受付ける商品コード受付手段と、Product code receiving means for receiving the product code;
前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていれば、当該税率を読み込んで適用する商品別税率適用手段と、If the tax rate for the product code received by the product code receiving unit is set in the product-specific tax rate storage unit, the product-specific tax rate applying unit that reads and applies the tax rate;
前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていなければ、当該商品コードの税区分を前記商品情報記憶手段から読み込み、当該税区分に対応づけられた税率を前記税区分記憶手段から読み込んで適用する区分別税率適用手段と、If the tax rate for the product code received by the product code receiving unit is not set in the product-specific tax rate storage unit, the tax classification of the product code is read from the product information storage unit and associated with the tax category. A tax rate application means by category that reads and applies the tax rate from the tax category storage means;
を備える情報処理装置。An information processing apparatus comprising:
情報処理装置において、コンピュータを、In an information processing apparatus, a computer is
商品の商品コードと税区分との少なくとも何れか一方に対応する税率を記述した構造化文書を入力する情報入力手段と、An information input means for inputting a structured document describing a tax rate corresponding to at least one of the product code and tax classification of the product;
前記構造化文書から税区分ごとの税率を読み込み、税区分記憶手段に設定する税区分設定手段と、A tax category setting means for reading a tax rate for each tax category from the structured document and setting it in a tax category storage means;
前記構造化文書から、税区分と当該税区分を適用する商品コードとを読み込んで、商品情報記憶手段に設定する区分別税率設定手段と、A tax rate setting unit for each category that reads a tax category and a product code to which the tax category is applied from the structured document and sets it in a product information storage unit;
前記構造化文書で商品コードに対する税率が記述されていれば、前記商品情報記憶手段において当該商品コードの税区分を空データとして、前記構造化文書から読み込んだ商品コードと当該商品コードに適用する税率とを対応付けて、商品別税率記憶手段に設定する商品別税率設定手段と、If the tax rate for the product code is described in the structured document, the product code read from the structured document and the tax rate applied to the product code with the tax classification of the product code as empty data in the product information storage means And a product-specific tax rate setting unit that sets the product-specific tax rate storage unit,
商品コードを受付ける商品コード受付手段と、Product code receiving means for receiving the product code;
前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていれば、当該税率を読み込んで適用する商品別税率適用手段と、If the tax rate for the product code received by the product code receiving unit is set in the product-specific tax rate storage unit, the product-specific tax rate applying unit that reads and applies the tax rate;
前記商品コード受付手段が受付けた商品コードに対する税率が、前記商品別税率記憶手段に設定されていなければ、当該商品コードの税区分を前記商品情報記憶手段から読み込み、当該税区分に対応づけられた税率を前記税区分記憶手段から読み込んで適用する区分別税率適用手段と、If the tax rate for the product code received by the product code receiving unit is not set in the product-specific tax rate storage unit, the tax classification of the product code is read from the product information storage unit and associated with the tax category. A tax rate application means by category that reads and applies the tax rate from the tax category storage means;
して機能させるプログラム。Program to make it work.
JP2017096496A 2017-05-15 2017-05-15 Information processing apparatus and program Active JP6306244B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017096496A JP6306244B2 (en) 2017-05-15 2017-05-15 Information processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017096496A JP6306244B2 (en) 2017-05-15 2017-05-15 Information processing apparatus and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2016008102A Division JP6147373B2 (en) 2016-01-19 2016-01-19 Sales data processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2017142862A JP2017142862A (en) 2017-08-17
JP6306244B2 true JP6306244B2 (en) 2018-04-04

Family

ID=59627908

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017096496A Active JP6306244B2 (en) 2017-05-15 2017-05-15 Information processing apparatus and program

Country Status (1)

Country Link
JP (1) JP6306244B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7783536B2 (en) * 2002-07-26 2010-08-24 Oracle International Corporation Apparatus and method configurable for local jurisdictions that facilitates determining taxes
JP5361844B2 (en) * 2010-11-16 2013-12-04 東芝テック株式会社 Sales data processing apparatus and program

Also Published As

Publication number Publication date
JP2017142862A (en) 2017-08-17

Similar Documents

Publication Publication Date Title
JP5361844B2 (en) Sales data processing apparatus and program
JP2015049809A (en) Information processing apparatus and program
JP2015022376A (en) Commodity data processor and program
JP6767323B2 (en) Sales data processing equipment and programs
JP6352738B2 (en) Product sales data processing apparatus and program
JP2011048578A (en) Sales data processing device and program
JP2015018510A (en) Information processing apparatus and information processing program
JP6147373B2 (en) Sales data processing apparatus and program
JP6306244B2 (en) Information processing apparatus and program
JP2017068365A (en) Information processing apparatus
JP6872065B2 (en) Sales data processing equipment and programs
JP6356712B2 (en) Product data processing apparatus and program
JP6383061B2 (en) Product data processing apparatus and program
JP7229301B2 (en) Product data processing device and program
JP6599517B2 (en) Product data processing apparatus and program
JP6568984B2 (en) Product sales data processing apparatus, product sales data processing method and program
JP7295201B2 (en) Merchandise sales data processing device, merchandise sales data processing method and program
JP6982162B2 (en) Product sales data processing equipment, product sales data processing methods and programs
JP6977136B2 (en) Product sales data processing equipment, product sales data processing methods and programs
JP6730117B2 (en) Sales data processing device and program
JP6975836B2 (en) Product sales data processing equipment, product sales data processing methods and programs
JP6972253B2 (en) Electronic receipt management server, program and electronic receipt management system
JP6770151B2 (en) Product sales data processing equipment, product sales data processing methods and programs
JP6816212B2 (en) Product sales data processing equipment, product sales data processing methods and programs
JP6805291B2 (en) Product sales data processing equipment, product sales data processing methods and programs

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170516

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170516

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180209

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180307

R150 Certificate of patent or registration of utility model

Ref document number: 6306244

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150