JP5138203B2 - Product sales data processing device - Google Patents

Product sales data processing device Download PDF

Info

Publication number
JP5138203B2
JP5138203B2 JP2006297997A JP2006297997A JP5138203B2 JP 5138203 B2 JP5138203 B2 JP 5138203B2 JP 2006297997 A JP2006297997 A JP 2006297997A JP 2006297997 A JP2006297997 A JP 2006297997A JP 5138203 B2 JP5138203 B2 JP 5138203B2
Authority
JP
Japan
Prior art keywords
product
data
date
file
application date
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006297997A
Other languages
Japanese (ja)
Other versions
JP2008117064A (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 JP2006297997A priority Critical patent/JP5138203B2/en
Publication of JP2008117064A publication Critical patent/JP2008117064A/en
Application granted granted Critical
Publication of JP5138203B2 publication Critical patent/JP5138203B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、各商品のコード,商品名,単価等の商品データを記憶してなる商品ファイルを有し、コード入力手段を介して客が購入する商品固有のコードが入力されると、前記商品ファイルから当該コードを含む商品データを読み出して販売処理を行う商品販売データ処理装置に関する。   The present invention has a product file that stores product data such as a code, a product name, and a unit price of each product, and when a product-specific code purchased by a customer is input via the code input means, the product The present invention relates to a merchandise sales data processing apparatus that reads merchandise data including the code from a file and performs sales processing.

スーパーマーケットやコンビニエンスストア等の小売店では、従来から商品販売データの管理にPOS(Point Of Sales)システムが導入されている。このPOSシステムは、バーコードスキャナ等のコード入力手段を備えたPOS端末と、商品ファイルを備えた店舗サーバとを通信回線で接続してなる。商品ファイルには、各商品の商品コード,商品名,単価,部門コード等の商品データが商品別に格納されている。各商品には、それぞれその商品固有の商品コードが例えばバーコードの形態で付されている。   In retail stores such as supermarkets and convenience stores, a POS (Point Of Sales) system has been introduced to manage product sales data. This POS system is formed by connecting a POS terminal equipped with a code input means such as a barcode scanner and a store server equipped with a product file through a communication line. In the product file, product data such as a product code, a product name, a unit price, and a department code of each product is stored for each product. Each product has a product code unique to the product, for example, in the form of a barcode.

しかして、POS端末のコード入力手段を介して客が買上げる商品の商品コードが入力されると、当該POS端末は、前記店舗サーバに当該商品コードで特定される商品の商品名,単価等の商品データの問合せを行う。この問合せに応じて、前記店舗サーバは前記商品ファイルを検索し、当該商品コードに対応して格納されている商品名,単価等の商品データを読み出す。そして、この商品データを問合せ元のPOS端末に応答する。上記商品データの応答を受けたPOS端末は、商品データ中の単価等に基づいて客が買上げる商品の販売データを算出し、メモリに売上登録処理する。   Thus, when the product code of the product purchased by the customer is input via the code input means of the POS terminal, the POS terminal displays the product name, unit price, etc. of the product specified by the product code in the store server. Inquire product data. In response to this inquiry, the store server searches the product file and reads product data such as product name and unit price stored in correspondence with the product code. Then, this product data is returned to the inquiring POS terminal. Upon receiving the product data response, the POS terminal calculates sales data of the product purchased by the customer based on the unit price in the product data, and performs sales registration processing in the memory.

このような構成のPOSシステムが導入された小売店では、商品ファイルに格納されている単価データを変更することによって商品の価格変更に対処することができる。例えば特売期間を定め、その期間内は特売対象商品の価格を値引して販売する場合、特売期間開始日の営業前までに特売対象商品の単価を値引後の単価に変更し、特売期間終了日の営業後に特売対象商品の単価を値引前の単価に戻せばよい。   In a retail store where the POS system having such a configuration is introduced, it is possible to cope with a change in the price of a product by changing the unit price data stored in the product file. For example, if a special sale period is set and the price of a sale target product is discounted during that period, the unit price of the sale sale item is changed to the unit price after the discount before the sale starts on the sale date. The unit price of the sale target product may be returned to the unit price before the discount after the end date.

このように、指定された期日に商品ファイルの単価データを自動的に変更する機能を有した商品販売データ処理装置は既に知られている。   Thus, a product sales data processing apparatus having a function of automatically changing the unit price data of a product file on a designated date is already known.

その一例としては、単価変更対象商品の商品コード,変更実施日及び変更後単価からなる変更予約データを記憶保持する変更予約ファイルを設け、単価変更処理の開始が指令されると、変更予約ファイルから変更実施日が単価変更処理開始日(現在日付)の変更予約データを検索し、該当する変更予約データを検出すると、該当変更予約データの商品コードに対応して商品ファイルに記憶されている単価データを該当変更予約データの変更後単価データに書き換えるようにした商品販売データ処理装置がある(例えば、特許文献1参照)。
特開平11−007586号公報
As an example, a change reservation file that stores and holds change reservation data consisting of the product code of the unit price change target product, the change execution date, and the post-change unit price is provided. When change reservation data whose change execution date is the unit price change processing start date (current date) is searched and the corresponding change reservation data is detected, the unit price data stored in the product file corresponding to the product code of the relevant change reservation data There is a merchandise sales data processing device that rewrites to the changed unit price data of the corresponding change reservation data (see, for example, Patent Document 1).
Japanese Patent Laid-Open No. 11-007586

しかしながら、単価等の商品データを指定された期日に変更する販売方式に対応可能な従来の商品販売データ処理装置においては、その期日の営業前に商品ファイルの単価データ等を最新のデータに変更するための処理が必要であった。このため、例えばコンビニエンスストア等のように24時間営業の小売店の場合、システム上の日付が翌営業日に更新される直前に上述した商品ファイルのデータを変更しなければならず、その間は客が買上げる商品の販売データを登録処理できないという問題があった。   However, in the conventional product sales data processing apparatus that can handle the sales method of changing the product data such as unit price on the specified date, the unit price data of the product file is changed to the latest data before the business on that date. Needed to be processed. For this reason, for example, in the case of a 24-hour retail store such as a convenience store, the product file data described above must be changed immediately before the date on the system is updated to the next business day. There was a problem that the sales data of the products purchased could not be registered.

本発明はこのような事情に基づいてなされたもので、その目的とするところは、単価等の商品データを指定された期日に変更する販売方式に容易にかつ営業に支障を来たすことなく対応できる商品販売データ処理装置を提供しようとするものである。   The present invention has been made based on such circumstances, and the object of the present invention is to easily cope with a sales method in which product data such as unit price is changed on a designated date without causing any trouble in business. A product sales data processing apparatus is to be provided.

本発明は、商品毎に付された商品固有のコードを入力するためのコード入力手段、例えばスキャナと、各商品の前記コード,商品名,単価等の商品データを記憶する商品ファイルを保存するための第1,第2の商品ファイル保存領域を備える商品データ記憶部と、日付を管理する日付管理手段と、この日付管理手段により管理される日付が更新される毎に切換フラグを反転させて、前記第1,第2の商品ファイル保存領域を交互に有効化するファイル有効化手段と、コード入力手段を介してコードが入力されると前記切換フラグをチェックして、そのコードで特定される商品の商品データをファイル有効化手段により有効化されている商品ファイル保存領域に保存された商品ファイルから取得し、その取得した商品データに基づいて当該商品の販売データを処理する処理手段と、外部から商品ファイルがダウンロードされる毎に前記切換フラグをチェックして、当該商品ファイルをファイル有効化手段により有効化されていない側の商品ファイル保存領域に対して上書き保存するファイル保存手段とを備える。そして、商品ファイルに記憶される各商品の商品データは、適用日に関するデータと、当該適用日が対象となる単価を含む適用日対象商品データと、当該適用日が対象外となる単価を含む適用日対象外商品データとからなる。処理手段は、日付管理手段により管理される日付が、商品ファイルから取得した商品データにおける適用日に該当するか否かを判断し、該当する場合には当該商品データにおける適用日対象商品データを読出し、該当しない場合には当該商品データにおける適用日対象外商品データを読出して、その読み出した商品データに基づいて当該商品の販売データを処理する。 The present invention saves a product file that stores product data such as a code and a product name such as a code and a product name, a unit price for inputting a product-specific code assigned to each product, for example, a scanner. first, a second product file stored product data storage unit comprising a region, and the date managing means for managing date, by inverting the switching flag on each date managed by the date management means is updated in the first, and file enabling means for enabling alternately second product file storage area, and check the code via the code input means is input to the switching flag is specified by the code The product data of the product is acquired from the product file stored in the product file storage area enabled by the file enabling means, and the product is based on the acquired product data. And processing means for processing the sales data, checks the switching flag every time product file is externally downloaded, the product file on the side not enabled by the file enable means for goods file storage area File saving means for overwriting and saving . The product data of each product stored in the product file includes data relating to the application date, application date target product data including the unit price for which the application date is applicable, and application including a unit price for which the application date is not included. It consists of non-target product data. The processing means determines whether the date managed by the date management means corresponds to the application date in the product data acquired from the product file, and if applicable, reads the application date target product data in the product data If not, the non-applicable date product data in the product data is read, and the sales data of the product is processed based on the read product data.

かかる手段を講じた本発明によれば、単価等の商品データを指定された期日に変更する販売方式に容易にかつ営業に支障を来たすことなく対応できる商品販売データ処理装置を提供できる。   According to the present invention in which such measures are taken, it is possible to provide a merchandise sales data processing apparatus that can easily cope with a sales method for changing merchandise data such as unit price on a designated date without causing any trouble in sales.

以下、本発明を実施するための最良の形態について、図面を用いて説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings.

この実施の形態は、コンビニエンスストア等のように24時間営業の小売店に構築されるPOSシステムに本発明を適用した場合である。   In this embodiment, the present invention is applied to a POS system constructed in a 24-hour retail store such as a convenience store.

図1は、本実施の形態のシステム構成図である。同図において、破線で囲った領域1は、チェーン展開されている各店舗A,B,…にそれぞれ構築されるPOSシステム1を示している。POSシステム1は、それぞれスキャナ2を備えた複数台のPOS端末3と、商品ファイル4を備えた店舗サーバ5とで構成されている。各POS端末3と店舗サーバ5とは、LAN(Local Area Network)等の通信回線6で接続されている。   FIG. 1 is a system configuration diagram of the present embodiment. In the figure, a region 1 surrounded by a broken line indicates a POS system 1 constructed in each store A, B,. The POS system 1 includes a plurality of POS terminals 3 each having a scanner 2 and a store server 5 having a product file 4. Each POS terminal 3 and store server 5 are connected by a communication line 6 such as a LAN (Local Area Network).

各店舗A,B,…の店舗サーバ5は、各店舗A,B,…を統轄する本部の本部サーバ7とISDN(Integrated Services Digital Network),インターネット等の広域通信網8を介して接続されている。   The store server 5 of each store A, B,... Is connected to a headquarter server 7 that supervises each store A, B,... Via a wide area communication network 8 such as ISDN (Integrated Services Digital Network) and the Internet. Yes.

本部サーバ7は、営業日に対応した商品ファイル4を日々作成する商品ファイル作成手段71と、この商品ファイル作成手段71により作成した商品ファイル4を、対応する営業日の前日に広域通信網8を介して各店舗サーバ5に配信する商品ファイル配信手段72とを有している。   The headquarter server 7 creates a product file creation means 71 for creating the product file 4 corresponding to the business day every day, and the product file 4 created by the product file creation means 71 to the wide area communication network 8 on the day before the corresponding business day. Product file delivery means 72 for delivery to each store server 5.

スキャナ2は、バーコードを光学的に読取るもの(バーコードリーダとも称される)で、各店舗A,B,…でそれぞれ販売される商品には、それぞれその商品固有のコードであるPLU(Price Look Up)コードに対応したバーコードが直接またはラベルを介して付されている。なお、図ではハンディ式のスキャナ2を示しているが、スキャナ2はハンディ式に限らず、例えば定置式であってもよい。ここに、スキャナ2は、商品毎に付された商品固有のコードを入力するためのコード入力手段として機能する。   The scanner 2 optically reads a barcode (also referred to as a barcode reader), and each product sold at each store A, B,... A barcode corresponding to the Look Up code is attached directly or via a label. Although the handy scanner 2 is shown in the figure, the scanner 2 is not limited to the handy scanner, and may be a stationary scanner, for example. Here, the scanner 2 functions as a code input unit for inputting a code unique to a product assigned to each product.

なお、各商品にそれぞれ付されるコードを二次元データコードとし、この二次元データコードを光学的に読取ることができる二次元データコードリーダをスキャナ2として用いてもよい。あるいは、各商品にRFID(Radio Frequency Identification)タグを付してこのタグに商品コードを記録し、このRFIDタグのデータを非接触で読取ることができるRFIDリーダをスキャナ2として用いることもできる。   A code attached to each product may be a two-dimensional data code, and a two-dimensional data code reader capable of optically reading the two-dimensional data code may be used as the scanner 2. Alternatively, an RFID (Radio Frequency Identification) tag is attached to each product, a product code is recorded on the tag, and an RFID reader that can read data of the RFID tag in a non-contact manner can be used as the scanner 2.

商品ファイル4には、各商品のPLUコード、商品名、単価、部門コード等の商品データがPLUコードを検索キーとして格納されている。ここに、商品ファイル4は商品データ記憶部として機能する。   The product file 4 stores product data such as the PLU code, product name, unit price, and department code of each product using the PLU code as a search key. Here, the product file 4 functions as a product data storage unit.

しかして、POS端末3のスキャナ2を介して客が買上げる商品のPLUコードが入力されると、当該POS端末3の処理手段は、店舗サーバ5に当該PLUコードで特定される商品の商品名,単価等の商品データの問合せを行う。この問合せに応じて、店舗サーバ5は、商品ファイル4を検索し、当該PLUコードに対応して格納されている商品名,単価等の商品データを読み出す。そして、この商品データを問合せ元のPOS端末3に応答する。上記商品データの応答を受けたPOS端末3の処理手段は、商品データ中の単価等に基づいて客が買上げる商品の販売データを算出し、メモリに売上登録処理するものとなっている。   Thus, when the PLU code of the product purchased by the customer is input via the scanner 2 of the POS terminal 3, the processing means of the POS terminal 3 sends the product name of the product specified by the PLU code to the store server 5. Inquiries about product data such as unit price. In response to this inquiry, the store server 5 searches the product file 4 and reads product data such as product name and unit price stored corresponding to the PLU code. Then, this product data is returned to the inquiring POS terminal 3. The processing means of the POS terminal 3 that has received the response of the product data calculates sales data of the product purchased by the customer based on the unit price in the product data and registers the sales in the memory.

図2は、商品ファイル4に記憶される1商品分の商品データレコード9を示す模式図である。商品データレコード9は、ヘッダ部91と共通データ部92と適用日対象データ部93と適用日対象外データ部94とから構成されている。ヘッダ部91には、適用日対象データ部93に記憶されている商品データを適用する日付(以下、適用日と称する)等がセットされている。共通データ部92には、適用日と適用日以外とで共通であるPLUコード,商品名,部門コード等の商品データがセットされている。適用日対象データ部93には、適用日が対象となる単価,税率等の商品データがセットされている。適用日対象外データ部94には、適用日が対象外となる単価,税率等の商品データがセットされている。   FIG. 2 is a schematic diagram showing a product data record 9 for one product stored in the product file 4. The product data record 9 includes a header portion 91, a common data portion 92, an application date target data portion 93, and an application date non-target data portion 94. In the header portion 91, a date (hereinafter referred to as an application date) to which the product data stored in the application date target data portion 93 is applied is set. In the common data section 92, product data such as a PLU code, a product name, and a department code that are common between the application date and other than the application date is set. In the application date target data section 93, product data such as unit price and tax rate for which the application date is targeted is set. In the non-applicable date data portion 94, product data such as a unit price and a tax rate for which the applicable date is excluded are set.

図3は、店舗サーバ5の要部構成を示すブロック図である。店舗サーバ5は、制御部本体を構成するCPU(Central Processing Unit)11、読出専用メモリであるROM(Read Only Memory)12、書換自在なメモリであるRAM(Random Access Memory)13、システム日付及び時刻を計時する時計部14、前記通信回線6を介して各POS端末3が接続される通信インターフェイス15、前記広域通信網8を介して前記本部サーバ7との間で行うデータ通信を制御するネットワークコントローラ16及び大容量の記憶装置であるHDD(Hard Disk Drive)装置17等で構成されている。CPU11と、ROM12,RAM13,時計部14,通信インターフェイス15,ネットワークコントローラ16及びHDD装置17とは、アドレスバス,データバス等のバスライン18で接続されている。   FIG. 3 is a block diagram showing a main configuration of the store server 5. The store server 5 includes a central processing unit (CPU) 11 that constitutes a control unit main body, a read only memory (ROM) 12 that is a read only memory, a random access memory (RAM) 13 that is a rewritable memory, a system date and time A network controller for controlling data communication with the head office server 7 via the wide area communication network 8 and a clock interface 14 for clocking, a communication interface 15 to which each POS terminal 3 is connected via the communication line 6 16 and an HDD (Hard Disk Drive) device 17 that is a large-capacity storage device. The CPU 11, the ROM 12, the RAM 13, the clock unit 14, the communication interface 15, the network controller 16, and the HDD device 17 are connected by a bus line 18 such as an address bus or a data bus.

前記HDD装置17には、第1の商品ファイル保存領域171と第2の商品ファイル保存領域172とが形成されている。これら2つの商品ファイル保存領域171,172には、前記本部サーバ7から広域通信網8を介してダウンロードされる商品ファイル4がそれぞれ保存される。   In the HDD device 17, a first product file storage area 171 and a second product file storage area 172 are formed. In these two product file storage areas 171 and 172, product files 4 downloaded from the headquarter server 7 through the wide area communication network 8 are stored.

RAM13には、前記第1の商品ファイル保存領域171に保存された商品ファイル4と第2の商品ファイル保存領域172とに保存された商品ファイル4のどちらを有効にするかを切り換える切換フラグFが記憶されている。本実施の形態では、切換フラグFが“0”のときには第1の商品ファイル保存領域171に保存された商品ファイル4を有効とし、切換フラグFが“1”のときには第2の商品ファイル保存領域172に保存された商品ファイル4を有効とする。   The RAM 13 has a switching flag F for switching whether to enable the product file 4 stored in the first product file storage area 171 or the product file 4 stored in the second product file storage area 172. It is remembered. In the present embodiment, when the switching flag F is “0”, the product file 4 stored in the first product file storage area 171 is validated, and when the switching flag F is “1”, the second product file storage area. The product file 4 stored in 172 is validated.

かかる構成の店舗サーバ5は、CPU11が特に図4〜図6の各種処理を実行するように、プログラムで構成されている。   The store server 5 having such a configuration is configured by a program so that the CPU 11 executes various processes shown in FIGS.

図4は、本部サーバ7から広域通信網8を介してダウンロードされる商品ファイル4の受信処理を示す流れ図である。すなわちCPU11は、ネットワークコントローラ16を介して受信したデータが商品ファイル4であると認識すると(ST21のYES)、CPU11は、ST22として切換フラグFをチェックする。そして、切換フラグFが“0”であった場合には(ST22のYES)、CPU11は、ST23として受信した商品ファイル4を第2の商品ファイル保存領域172に上書き保存する。他方、切換フラグFが“1”であった場合には(ST22のNO)、CPU11は、ST24として受信した商品ファイル4を第1の商品ファイル保存領域171に上書き保存する。   FIG. 4 is a flowchart showing the reception process of the product file 4 downloaded from the headquarter server 7 via the wide area communication network 8. That is, when the CPU 11 recognizes that the data received via the network controller 16 is the product file 4 (YES in ST21), the CPU 11 checks the switching flag F as ST22. If the switching flag F is “0” (YES in ST22), the CPU 11 overwrites and stores the product file 4 received as ST23 in the second product file storage area 172. On the other hand, when the switching flag F is “1” (NO in ST22), the CPU 11 overwrites and stores the product file 4 received as ST24 in the first product file storage area 171.

かかる処理動作により、切換フラグFが“0”であるとき、すなわち、第1の商品ファイル保存領域171に保存された商品ファイル4が有効であるときに、本部サーバ7から新たな商品ファイル4のダウンロードを受信すると、ダウンロードされた商品ファイル4は、第2の商品ファイル保存領域172に上書き保存される。同様に、切換フラグFが“1”であるとき、すなわち、第2の商品ファイル保存領域172に保存された商品ファイル4が有効であるときに、本部サーバ7から新たな商品ファイル4のダウンロードを受信すると、ダウンロードされた商品ファイル4は、第1の商品ファイル保存領域171に上書き保存される。   With this processing operation, when the switching flag F is “0”, that is, when the product file 4 stored in the first product file storage area 171 is valid, a new product file 4 is sent from the headquarter server 7. When the download is received, the downloaded product file 4 is overwritten and stored in the second product file storage area 172. Similarly, when the switch flag F is “1”, that is, when the product file 4 stored in the second product file storage area 172 is valid, a new product file 4 is downloaded from the headquarter server 7. When received, the downloaded product file 4 is overwritten and stored in the first product file storage area 171.

図5は、例えば1分タイマから出力される割込信号に応じて実行するタイマ割込処理の要部手順を示す流れ図である。なお、割込信号が出力されるタイミングは1分に限定されるものではない。   FIG. 5 is a flowchart showing the main procedure of the timer interrupt process executed according to the interrupt signal output from the 1-minute timer, for example. The timing at which the interrupt signal is output is not limited to 1 minute.

割込信号が入力されると、CPU11は先ず、ST31として時計部14で計時されているシステム日付を取得する。なお、システム日付は現在の日付に必ずしも一致している必要はなく、例えば24時間営業の店舗において1営業日を午前2時〜翌日午前2時までと定めた場合は、現在時刻が午前2時になった時点でシステム日付が翌営業日に切り替る。   When an interrupt signal is input, the CPU 11 first acquires the system date timed by the clock unit 14 as ST31. Note that the system date does not necessarily match the current date. For example, in a 24-hour store, if one business day is defined as 2:00 am to 2:00 am the next day, the current time is 2:00 am At that point, the system date switches to the next business day.

次に、CPU11は、ST32としてRAM13のワークメモリに記憶されている日付に対して今回取得したシステム日付が翌日以降に更新されているか否かを判断する。なお、ワークメモリには、前回のタイマ割込処理で取得したシステム日付が記憶されている。   Next, the CPU 11 determines whether or not the system date acquired this time is updated after the next day with respect to the date stored in the work memory of the RAM 13 as ST32. The work memory stores the system date acquired in the previous timer interrupt process.

ここで、今回取得したシステム日付が更新されていない場合には(ST32のNO)、CPU11は、ST36の処理に進み、今回取得したシステム日付を前記ワークメモリに上書きして、今回の割込処理を終了する。   If the system date acquired this time has not been updated (NO in ST32), the CPU 11 proceeds to the process in ST36, overwrites the system date acquired this time in the work memory, and performs the current interrupt process. Exit.

これに対し、今回取得したシステム日付が翌日以降に更新されていた場合には(ST32のNO)、CPU11は、ST33として切換フラグFをチェックする。そして、切換フラグFが“0”であった場合には(ST33のYES)、ST34としてこの切換フラグFを“1”に変更する。すなわち、第2の商品ファイル保存領域172に保存された商品ファイル4を有効とする。他方、切換フラグFが“1”であった場合には(ST33のNO)、ST35としてこの切換フラグFを“0”に変更する。すなわち、第1の商品ファイル保存領域171に保存された商品ファイル4を有効とする。しかる後、CPU11は、ST36の処理に進み、今回取得したシステム日付を前記ワークメモリに上書きして、今回の割込処理を終了する。   On the other hand, when the system date acquired this time has been updated after the next day (NO in ST32), the CPU 11 checks the switching flag F as ST33. If the switching flag F is “0” (YES in ST33), the switching flag F is changed to “1” in ST34. That is, the product file 4 stored in the second product file storage area 172 is validated. On the other hand, when the switching flag F is “1” (NO in ST33), the switching flag F is changed to “0” in ST35. That is, the product file 4 stored in the first product file storage area 171 is validated. Thereafter, the CPU 11 proceeds to the process of ST36, overwrites the system date acquired this time on the work memory, and ends the current interrupt process.

なお、ST32にて今回取得したシステム日付が更新されていない場合、ST36の処理を行わずに、つまりは今回取得したシステム日付を前記ワークメモリに上書きしないで、今回の割込処理を終了するように構成してもよい。   If the system date acquired this time in ST32 has not been updated, the current interrupt process is terminated without performing the process of ST36, that is, without overwriting the system date acquired this time on the work memory. You may comprise.

かかる処理動作により、時計部14で計時されるシステム日付が更新される毎に、第1の商品ファイル保存領域171に保存された商品ファイル41と第2の商品ファイル保存領域172とに保存された商品ファイル42とが交互に有効となる。   With this processing operation, each time the system date counted by the clock unit 14 is updated, the product file 41 stored in the first product file storage area 171 and the second product file storage area 172 are stored. The product file 42 is activated alternately.

具体的には、例えば切換フラグFが“0”のとき、すなわち第1の商品ファイル保存領域171に保存された商品ファイル4が有効である期間中に、本部サーバ7から新たな商品ファイル4を受信すると、この商品ファイル4は第2の商品ファイル保存領域172に保存される。そして、システム日付が更新されると、切換フラグFが“1”に変更される。すなわち、第2の商品ファイル保存領域172に保存された商品ファイル4が有効となる。この商品ファイル4は、第1の商品ファイル保存領域171に保存された商品ファイル4が有効である期間中にダウンロードされたものである。   Specifically, for example, when the switching flag F is “0”, that is, during the period when the product file 4 stored in the first product file storage area 171 is valid, a new product file 4 is received from the headquarter server 7. When received, the product file 4 is stored in the second product file storage area 172. When the system date is updated, the switching flag F is changed to “1”. That is, the product file 4 stored in the second product file storage area 172 is valid. This product file 4 is downloaded during a period in which the product file 4 stored in the first product file storage area 171 is valid.

その後、この第2の商品ファイル保存領域172に保存された商品ファイル4が有効である期間中(切換フラグは“1”)に、本部サーバ7から新たな商品ファイル4を受信すると、この商品ファイル4は第1の商品ファイル保存領域171に保存される。そして、システム日付が更新されると、切換フラグFが“0”に変更される。すなわち、第1の商品ファイル保存領域171に保存された商品ファイル4が有効となる。この商品ファイル4は、第2の商品ファイル保存領域172に保存された商品ファイル4が有効である期間中にダウンロードされたものである。以後、同様な動作が繰り返される。   Thereafter, when a new product file 4 is received from the headquarter server 7 during a period in which the product file 4 stored in the second product file storage area 172 is valid (the switching flag is “1”), the product file 4 4 is stored in the first product file storage area 171. When the system date is updated, the switching flag F is changed to “0”. That is, the product file 4 stored in the first product file storage area 171 is valid. This product file 4 is downloaded during a period in which the product file 4 stored in the second product file storage area 172 is valid. Thereafter, the same operation is repeated.

したがって、本部サーバ7においては、適時、商品ファイル作成手段71によって翌営業日に対応した商品ファイル4を作成し、システム日付が更新される前の適当な時刻に商品ファイル配信手段72によって各店舗A,B,…の店舗サーバ5に配信すればよい。一方、各店舗サーバ5での商品ファイル4の切換に必要な処理は、切換フラグFを“0”から“1”、または“1”から“0”に書き換えるだけである。したがって、極めて小さな処理負荷で切り替えることができるので、各POS端末3からの商品データ問合せに対して応答できない時間帯が生じることはない。よって、店舗の営業に支障を来たすこともない。   Accordingly, in the headquarter server 7, the product file 4 corresponding to the next business day is created by the product file creation means 71 at appropriate times, and each store A is sent by the product file delivery means 72 at an appropriate time before the system date is updated. , B,... On the other hand, the processing necessary for switching the merchandise file 4 in each store server 5 is only to rewrite the switching flag F from “0” to “1”, or from “1” to “0”. Therefore, since switching can be performed with a very small processing load, there is no time zone in which it is not possible to respond to product data queries from each POS terminal 3. Therefore, it does not interfere with store sales.

図6は、後述するPOS端末3からの商品データ問合せコマンド受信に対する応答処理の要部手順を示す流れ図である。すなわちCPU11は、通信インターフェイス15を介して接続されたいずれかのPOS端末3からコマンドを受信し、そのコマンドが商品問合せコマンドであることを確認すると(ST41のYES)、CPU11は、ST42として切換フラグFをチェックする。そして、切換フラグFが“0”であった場合には(ST42のYES)、ST43として第1の商品ファイル保存領域171に保存された商品ファイル41を検索する。これに対し、切換フラグFが“1”であった場合には(ST42のNO)、ST44として第2の商品ファイル保存領域172に保存された商品ファイル42を検索する。   FIG. 6 is a flowchart showing the main procedure of response processing for receiving a product data inquiry command from the POS terminal 3 to be described later. That is, when the CPU 11 receives a command from one of the POS terminals 3 connected via the communication interface 15 and confirms that the command is a product inquiry command (YES in ST41), the CPU 11 sets the switching flag as ST42. Check F. If the switching flag F is “0” (YES in ST42), the product file 41 stored in the first product file storage area 171 is searched as ST43. On the other hand, when the switching flag F is “1” (NO in ST42), the product file 42 stored in the second product file storage area 172 is searched as ST44.

その結果、問合せのあったPLUコードを含む商品データレコード9を検出できた場合には(ST45のYES)、CPU11は、ST46として当該商品データレコード9を問合せ元のPOS端末3に通信回線6を介して返信する。一方、該当商品データレコード9を検出できなかった場合には(ST45のNO)、CPU11は、ST47として所定のエラー応答データを問合せ元のPOS端末3に通信回線6を介して返信するものとなっている。   As a result, when the product data record 9 including the inquired PLU code can be detected (YES in ST45), the CPU 11 connects the communication data line 6 to the POS terminal 3 as the inquiry source in ST46. Reply via. On the other hand, when the corresponding product data record 9 cannot be detected (NO in ST45), the CPU 11 returns predetermined error response data to the inquiring POS terminal 3 via the communication line 6 as ST47. ing.

図7は、POS端末3の要部構成を示すブロック図である。POS端末3は、置数キー,小計キー,預/現計キー,取消キー等の各種キーが配設されたキーボード21、オペレータに対して売上登録された商品の品名,価格や商取引の合計金額,釣銭額などを表示するオペレータ用ディスプレイ22、買物客に対して同様なデータを表示する客用ディスプレイ23、レシート印字等を行うためのプリンタ24等の入出力デバイスを備えている。   FIG. 7 is a block diagram showing a main configuration of the POS terminal 3. The POS terminal 3 includes a keyboard 21 on which various keys such as a numeric key, a subtotal key, a deposit / cash key, and a cancel key are arranged, a product name, a price, and a total price of a commercial transaction registered for the operator. , An operator display 22 for displaying the amount of change, a customer display 23 for displaying similar data to the shopper, and a printer 24 for performing receipt printing and the like.

また、前記処理手段としてCPU26を搭載している。そしてCPU26に、アドレスバス,データバス等のバスライン27を介して、ROM28、RAM29、HDD装置30、時計部31及び通信インターフェイス32の他、前記スキャナ2で読取られたコードデータを取り込むスキャナインターフェイス33、前記キーボード21から操作キーに対応したキー信号を取り込むキーボードコントローラ34、前記オペレータ用ディスプレイ22の表示を制御する表示コントローラ35、前記客用ディスプレイ23の表示を制御する表示コントローラ36、前記プリンタ24の印刷動作を制御するプリンタコントローラ37等を接続している。   A CPU 26 is mounted as the processing means. In addition to the ROM 28, the RAM 29, the HDD device 30, the clock unit 31, and the communication interface 32, a scanner interface 33 for fetching code data read by the scanner 2 to the CPU 26 via a bus line 27 such as an address bus and a data bus. A keyboard controller 34 that captures key signals corresponding to operation keys from the keyboard 21, a display controller 35 that controls display on the operator display 22, a display controller 36 that controls display on the customer display 23, and the printer 24. A printer controller 37 and the like for controlling the printing operation are connected.

前記時計部31は、前記店舗サーバ5に搭載されている時計部14と同様にシステム日付を管理する部位であり、日付管理手段を構成する。   The clock unit 31 is a part that manages the system date in the same manner as the clock unit 14 mounted on the store server 5, and constitutes a date management means.

通信インターフェイス32には、前記通信回線6を介して同一店内の店舗サーバ5が接続されている。   A store server 5 in the same store is connected to the communication interface 32 via the communication line 6.

かかる構成のPOS端末3は、特に図8に示すように、1商取引として処理する各商品の販売金額を合計する取引合計器291、1商取引の処理中か否かを識別するための登録中フラグF1のフラグメモリ292、1商取引の実施日が適用日であるか否かを識別するための適用日対象フラグF2のフラグメモリ293等が、RAM29に形成されている。因みに、この実施の形態では、登録中フラグF1は、1商取引の処理中のとき“1”となり、1商取引の締め処理が完了すると“0”に戻る。適用日対象フラグF2は、1商取引の実施日が適用日であるとき“1”となり、適用日外であるとき“0”となる。   The POS terminal 3 having such a configuration, as shown in FIG. 8 in particular, is a registration counter for identifying whether or not a transaction total 291 for summing up the sales amounts of each product processed as one commercial transaction, and whether or not one commercial transaction is being processed. A flag memory 292 of F1 and a flag memory 293 of an application date target flag F2 for identifying whether or not the implementation date of the one commercial transaction is an application date are formed in the RAM 29. Incidentally, in this embodiment, the registration flag F1 is “1” when one commercial transaction is being processed, and returns to “0” when the closing processing for one commercial transaction is completed. The application date target flag F2 is “1” when the implementation date of one commercial transaction is the application date, and is “0” when it is outside the application date.

しかして、オペレータがスキャナ2を操作して販売商品に付されたバーコードをスキャニングすると、CPU26が図9の流れ図に示す商品登録処理を実行するようにプログラム構成されている。   Thus, when the operator operates the scanner 2 to scan the barcode attached to the sold product, the CPU 26 is configured to execute the product registration process shown in the flowchart of FIG.

すなわち、スキャナインターフェイス33を介してバーコードデータが入力されると、CPU26は先ず、ST1としてスキャニング入力されたバーコードデータを復号して商品のPLUコードを取得する。そして、このPLUコードを含む商品データ問合せコマンドを生成し、このコマンドを、通信インターフェイス32を介して店舗サーバ5に伝送する。   That is, when bar code data is input via the scanner interface 33, the CPU 26 first decodes the bar code data scanned as ST1 to obtain a PLU code of the product. Then, a product data inquiry command including this PLU code is generated, and this command is transmitted to the store server 5 via the communication interface 32.

ここで、この問合せコマンドを受信した店舗サーバ5においては、図6に示した処理手順の応答処理が実行される。   Here, in the store server 5 that has received this inquiry command, a response process of the processing procedure shown in FIG. 6 is executed.

そこでCPU26は、ST2として店舗サーバ5から商品データレコード9の応答データを受信するのを待機する。そして、商品データレコード9の応答データを受信したならば(ST2のYES)、ST3としてフラグメモリ292の登録中フラグF1が“1”であるか否かを判断する。   Then, CPU26 waits to receive the response data of the merchandise data record 9 from the store server 5 as ST2. If the response data of the product data record 9 is received (YES in ST2), it is determined whether or not the registration flag F1 in the flag memory 292 is “1” as ST3.

ここで、登録中フラグF1が“1”でない、つまり“0”である場合には、1商取引として処理する最初の商品のバーコードデータがスキャニング入力されたので、CPU26は、ST4として店舗サーバ5から応答のあった商品データレコード9のヘッダ部91にセットされている適用日データを取得する。そして、この適用日が時計部31で計時されているシステム日付に一致するか否かを判断する。その結果、一致する場合には(ST4のYES)、CPU26は、フラグメモリ293の適用日対象フラグF2を“1”とする。これに対し、一致しない場合には(ST4のNO)、CPU26は上記適用日対象フラグF2を“0”とする。しかる後、CPU26は、ST7として取引合計器291のデータAを”0”にリセットする。また、フラグメモリ292の登録中フラグF1を“1”としたならば、ST9の処理に進む。   Here, when the registration flag F1 is not “1”, that is, “0”, since the barcode data of the first product to be processed as one commercial transaction is input, the CPU 26 stores the store server 5 as ST4. The application date data set in the header part 91 of the product data record 9 for which there is a response is acquired. Then, it is determined whether or not the application date matches the system date counted by the clock unit 31. As a result, if they match (YES in ST4), the CPU 26 sets the application date target flag F2 in the flag memory 293 to “1”. On the other hand, if they do not match (NO in ST4), the CPU 26 sets the application date target flag F2 to “0”. Thereafter, CPU 26 resets data A of transaction total 291 to “0” as ST7. If the registration flag F1 in the flag memory 292 is set to “1”, the process proceeds to ST9.

ST3にて登録中フラグF1が既に“1”であった場合には(ST3のYES)、1商取引として処理する2点目以降の商品のバーコードデータがスキャニング入力されたので、CPU26は、前記ST4〜ST8の各処理を実行することなく,ST9の処理に進む。   If the registration flag F1 is already “1” in ST3 (YES in ST3), since the barcode data of the second and subsequent items to be processed as one commercial transaction has been scanned, the CPU 26 The process proceeds to ST9 without executing the processes of ST4 to ST8.

ST9では、CPU26は、店舗サーバ5から応答のあった商品データレコード9の共通データ部92にセットされているPLUコード,商品名,部門コード等の商品データを読み出す。次いで、ST10として適用日対象フラグF2をチェックする。そして、適用日対象フラグF2が“1”であった場合には(ST10のYES)、CPU26は、ST11として上記商品データレコード9の適用日対象データ部93にセットされている単価,税率等の商品データを読み出す。これに対し、適用日対象フラグF2が“0”であった場合には(ST10のNO)、CPU26は、ST12として上記商品データレコード9の適用日対象外データ部94にセットされている単価,税率等の商品データを読み出す。   In ST9, the CPU 26 reads product data such as a PLU code, a product name, and a department code set in the common data section 92 of the product data record 9 that has been responded from the store server 5. Next, the application date target flag F2 is checked as ST10. If the application date target flag F2 is “1” (YES in ST10), the CPU 26 sets the unit price, tax rate, etc. set in the application date target data section 93 of the product data record 9 as ST11. Read product data. On the other hand, when the application date target flag F2 is “0” (NO in ST10), the CPU 26 sets the unit price set in the non-application date target data portion 94 of the product data record 9 as ST12, Read product data such as tax rates.

なお、ST9の共通データ読出処理の前にST10の適用日対象フラグF2の判断処理を行い、適用日対象フラグF2が“1”であったときには、ST9の共通データ読出処理とST11の適用日対象データ読出処理とを行い、適用日対象フラグF2が“0”であったときには、ST9の共通データ読出処理とST12の適用日対象外データ読出処理とを行うようにしてもよい。   Before the common data reading process of ST9, the determination process of the application date target flag F2 of ST10 is performed, and when the application date target flag F2 is “1”, the common data reading process of ST9 and the application date target of ST11 are processed. When the application date target flag F2 is “0”, the common data read processing at ST9 and the non-application date data read processing at ST12 may be performed.

しかる後、CPU26は、ST13として上記ST9の処理で読み出した共通データ部92の商品データと、ST10またはST11の処理で読み出した適用日対象データ部93または適用日対象外データ部94の商品データとに基づいて商品販売データの登録処理を行う。また、ST14として適用日対象データ部93または適用日対象外データ部94の商品データに含まれる単価等に基づいて算出された販売金額を取引合計器291のデータAに加算する。さらに、ST15としてこの販売金額を共通データ部92の商品データに含まれる商品名等とともにオペレータ用ディスプレイ22及び客用ディスプレイ23に表示する。   After that, the CPU 26 reads the product data of the common data part 92 read out in ST13 as ST13, the product data of the application date target data part 93 or the application date non-target data part 94 read out in ST10 or ST11, and The product sales data registration process is performed based on the above. In ST14, the sales amount calculated based on the unit price included in the product data of the application date target data part 93 or the application date non-target data part 94 is added to the data A of the transaction total 291. Further, as ST15, the sales amount is displayed on the operator display 22 and the customer display 23 together with the product name included in the product data of the common data section 92.

なお、これらST13〜ST15の各処理は、従来周知のPOS端末3において商品ファイル4から読み出した商品データに基づき実施される既存の処理と同様である。
以上で、CPU26は、1商品に対する商品登録処理を終了する。
Each process of ST13 to ST15 is the same as the existing process performed based on the product data read from the product file 4 in the conventionally known POS terminal 3.
Thus, the CPU 26 ends the product registration process for one product.

このように本実施の形態においては、商品ファイル4に記憶される商品データレコード9のコード体系を、ヘッダ部91と共通データ部92と適用日対象データ部93と適用日対象外データ部94とで構成する。そして、ヘッダ部91には適用日対象データ部93に記憶される商品データを適用する日付をセットし、共通データ部92には適用日と適用日以外とで共通である商品名等の商品データをセットし、適用日対象データ部93には適用日が対象となる単価,税率等の商品データをセットし、適用日対象外データ部94には適用日が対象外となる単価,税率等の商品データをセットするようにしている。   As described above, in the present embodiment, the code system of the product data record 9 stored in the product file 4 includes the header part 91, the common data part 92, the application date target data part 93, and the application date non-target data part 94. Consists of. The header 91 sets a date for applying the product data stored in the application date target data unit 93, and the common data unit 92 stores product data such as a product name that is common between the application date and other than the application date. The application date target data section 93 is set with product data such as unit price and tax rate that are subject to application date, and the application date non-applicable data section 94 is such as unit price and tax rate that are not subject to application date. Product data is set.

例えば今、11月1日から7日までの1週間を特売期間とする。この場合、本部サーバ7においては、特売期間の前日(10月31日)までは、各商品にそれぞれ対応した商品データレコード9の適用日を特売期間開始日の11月1日とし、特売対象商品については適用日対象データ部93には特売単価をセットし、かつ適用日対象外データ部94には通常単価をセットし、特売対象外商品については、適用日対象データ部93及び適用日対象外データ部94の双方に通常単価をセットした商品ファイル4(説明の便宜上、商品ファイル4Aとする)を作成して、各店舗サーバ5に配信する。   For example, let us now assume that one week from November 1st to 7th is the sale period. In this case, in the headquarters server 7, until the day before the sale period (October 31), the application date of the product data record 9 corresponding to each product is set as November 1 of the sale period start date, and the sale target product Is set to a special sale unit price in the application date target data part 93, and a normal unit price is set to the non-application date target data part 94. A product file 4 (for convenience of explanation, product file 4A) in which the normal unit price is set in both data portions 94 is created and distributed to each store server 5.

その後、特売期間に入ると、特売期間終了日の前日(11月6日)までは、各商品にそれぞれ対応した商品データレコード9の適用日を翌営業日とし、共通データ部92,適用日対象データ部93及び適用日対象外データ部94のデータは今までと同一の商品ファイル4(説明の便宜上、商品ファイル4Bとする)を作成して、各店舗サーバ5に配信する。   After that, when entering the sale period, the application date of the product data record 9 corresponding to each product is the next business day until the day before the end date of the sale period (November 6th). The data in the data part 93 and the non-applicable date data part 94 is created in the same product file 4 as before (for convenience of explanation, product file 4B) and distributed to each store server 5.

そして、特売期間終了日以降は、特売期間終了日の前日(11月6日)に配信した商品ファイル4Bと同一の商品ファイル4(すなわち商品ファイル4B)を作成して、各店舗サーバ5に配信する。   Then, after the end date of the special sale period, the same product file 4 (that is, the product file 4B) as the product file 4B distributed on the day before the end of the special sale period (November 6) is created and distributed to each store server 5 To do.

こうすることにより、特売期間開始日の前日までは、店舗サーバ5のHDD装置17における第1の商品ファイル保存領域171と第2の商品ファイル保存領域172には、いずれも商品ファイル4Aが保存される。そして、システム日付が更新される毎に交互に有効となる。このとき、商品ファイル4Aに記憶されている各商品データレコード9の適用日は、POS端末3の時計部31で計時されているシステム日付と一致しないので、スキャニング入力された商品は全て適用日対象外データ部94の単価、つまりは通常単価で商品販売データが登録処理される。   By doing so, the product file 4A is stored in both the first product file storage area 171 and the second product file storage area 172 in the HDD device 17 of the store server 5 until the day before the sale period start date. The And it becomes effective every time the system date is updated. At this time, since the application date of each product data record 9 stored in the product file 4A does not match the system date timed by the clock unit 31 of the POS terminal 3, all the products input by scanning are subject to the application date. The merchandise sales data is registered at the unit price of the external data unit 94, that is, the normal unit price.

その後、特売期間開始日になると、その日は無効化されている一方の商品ファイル保存領域171または172に、商品ファイル4B(適用日=11月2日)が格納される。ただし、この日に有効である商品ファイル4は、他方の商品ファイル保存領域172または171に保存されている商品ファイル4Aである。そして、商品ファイル4Aに記憶されている各商品データレコード9の適用日は、POS端末3の時計部31で計時されているシステム日付と一致するので、スキャニング入力された商品は全て適用日対象データ部93の単価、つまりは特売商品に関しては特売単価で商品販売データが登録処理される。   Thereafter, when the sale date starts, the product file 4B (application date = November 2) is stored in one of the product file storage areas 171 or 172 that is invalidated on that day. However, the product file 4 effective on this day is the product file 4A stored in the other product file storage area 172 or 171. And since the application date of each product data record 9 memorize | stored in the product file 4A corresponds with the system date time-measured by the clock part 31 of the POS terminal 3, all the goods input by scanning are application date object data. The product sales data is registered at the unit price of the unit 93, that is, for the special sale product at the special sale unit price.

システム日付が特売期間の2日目になると、他方の商品ファイル4B(適用日=11月2日)が有効となる。また、この他方の商品ファイル4Bが保存されている商品ファイル保存領域172または171とは別の商品ファイル保存領域171または172には、商品ファイル4B(適用日=11月3日)が格納される。この日も、商品ファイル4B(適用日=11月2日)に記憶されている各商品データレコード9の適用日は、POS端末3の時計部31で計時されているシステム日付と一致するので、スキャニング入力された商品は全て適用日対象データ部93の単価、つまりは特売商品に関しては特売単価で商品販売データが登録処理される。   When the system date is the second day of the sale period, the other product file 4B (application date = November 2) becomes valid. Further, the product file storage area 171 or 172 different from the product file storage area 172 or 171 in which the other product file 4B is stored stores the product file 4B (application date = November 3). . Since the application date of each product data record 9 stored in the product file 4B (application date = November 2) matches the system date measured by the clock unit 31 of the POS terminal 3, For all the products that have been scanned, the product sales data is registered at the unit price of the application date target data unit 93, that is, for the special sale product at the special sale unit price.

以後、特売期間終了日までは同様に動作する。そして、終了日になると、その日以降、第1の商品ファイル保存領域171と第2の商品ファイル保存領域172には、いずれも商品ファイル4B(適用日=11月7日)が保存される。したがって、終了日にスキャニング入力された商品は全て適用日対象データ部93の単価、つまりは特売商品に関しては特売単価で商品販売データが登録処理される。   Thereafter, the same operation is performed until the end of the sale period. When the end date is reached, the product file 4B (application date = November 7) is stored in the first product file storage area 171 and the second product file storage area 172 after that date. Accordingly, the merchandise sales data is registered at the unit price of the application date target data unit 93, that is, the special sale unit price for all the products that are scanned and input on the end date.

また、終了日の翌日からは第1の商品ファイル保存領域171及び第2の商品ファイル保存領域172にそれぞれ保存されている商品ファイル4Bに記憶された各商品データレコードの適用日はシステム日付と一致しないので、スキャニング入力された商品は全て適用日対象外データ部94の単価、つまりは通常単価で商品販売データが登録処理される。   From the day after the end date, the application date of each product data record stored in the product file 4B stored in the first product file storage area 171 and the second product file storage area 172 is the same as the system date. Therefore, the merchandise sales data is registered at the unit price of the non-applicable date data portion 94, that is, the normal unit price for all the products that have been scanned.

このように本実施の形態によれば、単価等の商品データを指定された期日に変更する販売方式に対して容易に、しかも営業に支障を来たすことなく対応できる効果を奏する。   As described above, according to the present embodiment, it is possible to easily cope with a sales method in which product data such as unit price is changed on a designated date without causing any trouble in sales.

ところで、本実施の形態においては、1客が買上げる1点目の商品のコード入力時のみシステム日付がスキャナ2を介して入力されたPLUコードで特定される商品に対して商品ファイル4で記憶されている適用日に該当するか否かを判断し、その判断結果に応じて適用日対象フラグF2の状態を変化させ、当該客の2点目以降の商品のコードが入力された際は、上記適用日対象フラグF2の状態により1点目の判断結果に従って処理するようにしている。   By the way, in this embodiment, the system date is stored in the product file 4 for the product specified by the PLU code input through the scanner 2 only when the code of the first product purchased by one customer is input. When the application date is changed, the state of the application date target flag F2 is changed according to the determination result, and when the code of the second and subsequent items of the customer is input, Processing is performed according to the determination result of the first point according to the state of the application date target flag F2.

これは、24時間営業の店舗においては、システム日付が更新される前後に跨って1客が購入する商品の登録処理が行われる場合があるが、このような場合に、1客が買上げる商品に対して適用日対象データと適用日対象外データとが混在して処理される不具合を防止するためである。   This is because, in a 24-hour store, registration processing of products purchased by one customer may be performed before and after the system date is updated. In such a case, products purchased by one customer This is to prevent the problem that the application date target data and the non-application date target data are processed in a mixed manner.

なお、この発明は前記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。   The present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage.

例えば、前記実施の形態では、商品データレコード9をヘッダ部91と共通データ部92と適用日対象データ部93と適用日対象外データ部94とから構成したが、図10に示すように、ヘッダ部91と適用日対象データ部93と適用日対象外データ部94とから構成し、共通データ部92にセットしていたPLUコード,商品名等のデータ項目を適用日対象データ部93と適用日対象外データ部94とにそれぞれ追加するようにしてもよい。   For example, in the above embodiment, the product data record 9 is composed of the header part 91, the common data part 92, the application date target data part 93, and the application date non-target data part 94, but as shown in FIG. Data items such as PLU code, product name, etc. set in the common data section 92, which are composed of the section 91, the application date target data section 93, and the non-application date target data section 94. You may make it add to the non-target data part 94, respectively.

この他の実施形態において、POS端末3のCPU26が実行する商品登録処理の要部手順を図11の流れ図に示す。なお、同図において、図9と共通する処理ステップには同一符号を付している。   FIG. 11 is a flowchart showing the main procedure of the product registration process executed by the CPU 26 of the POS terminal 3 in the other embodiment. In the figure, the same reference numerals are assigned to the processing steps common to FIG.

図9と図11とを比較すれば分かるように、この他の実施形態においては、ST9の処理を省略することができる。すなわち、CPU26は、ST13ではST10またはST11の処理で読み出した適用日対象データ部93または適用日対象外データ部94の商品データに基づいて商品販売データの登録処理を行うものとなる。この場合も、前記実施の形態と同様な作用効果を奏するのはいうまでもない。   As can be seen by comparing FIG. 9 and FIG. 11, in this other embodiment, the process of ST9 can be omitted. That is, in ST13, the CPU 26 performs merchandise sales data registration processing based on the merchandise data in the application date target data section 93 or the application date non-target data section 94 read in the processing of ST10 or ST11. In this case, it is needless to say that the same effects as those of the above embodiment can be obtained.

また、前記実施の形態では、1客が買上げる1点目の商品のコード入力時のみシステム日付がスキャナ2を介して入力されたPLUコードで特定される商品に対して商品ファイル4で記憶されている適用日に該当するか否かを判断したが、1客が買上げる全ての商品に対して適用日か否かを判断するように構成しても、単価等の商品データを指定された期日に変更する販売方式に容易にかつ営業に支障を来たすことなく対応できるという本発明の効果を奏することができる。   In the above embodiment, the system date is stored in the product file 4 for the product specified by the PLU code input via the scanner 2 only when the code of the first product purchased by one customer is input. The product date such as unit price is specified even if it is configured to determine whether it is the application date for all products purchased by one customer. It is possible to achieve the effect of the present invention that it is possible to easily cope with the sales method changed on the due date without causing any trouble in sales.

また、前記実施の形態では、単価変更に対応した場合を示したが、変更項目は単価に限定されるものではない。今後、消費税の増税や商品によって税率が変更される場合が考えられるが、このような場合に、本発明を適用することによって容易に対処することができる。   Moreover, although the case where it respond | corresponded to the unit price change was shown in the said embodiment, the change item is not limited to a unit price. In the future, it is conceivable that the tax rate will be changed due to a consumption tax increase or a product. In such a case, it is possible to easily cope with such a case by applying the present invention.

この他、前記実施形態に開示されている複数の構成要素の適宜な組合せにより種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態に亘る構成要素を組合わせてもよい。   In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, the constituent elements over different embodiments may be combined.

本発明の一実施の形態であるチェーン店に構築されるシステムの概略構成を示す模式図。The schematic diagram which shows schematic structure of the system constructed | assembled in the chain store which is one embodiment of this invention. 同実施の形態における商品データレコードのデータ構造を模式的に示す図。The figure which shows typically the data structure of the goods data record in the embodiment. 同実施の形態における店舗サーバの要部構成を示すブロック図。The block diagram which shows the principal part structure of the store server in the embodiment. 同実施の形態において、店舗サーバのCPUが実行する本発明に係わる受信処理の要部手順を示す流れ図。The flowchart which shows the principal procedure of the reception process concerning the present invention which CPU of a store server performs in the embodiment. 同実施の形態において、店舗サーバのCPUが実行する本発明に係わるタイマ割込処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the timer interruption process concerning this invention which CPU of a shop server performs in the embodiment. 同実施の形態において、店舗サーバのCPUが実行する本発明に係わる応答処理の要部手順を示す流れ図。The flowchart which shows the principal part procedure of the response process concerning this invention which CPU of a shop server performs in the embodiment. 同実施の形態におけるPOS端末の要部構成を示すブロック図。The block diagram which shows the principal part structure of the POS terminal in the embodiment. 同実施の形態において、POS端末のRAMに形成される主要なメモリエリアを示す模式図。FIG. 3 is a schematic diagram showing main memory areas formed in the RAM of the POS terminal in the embodiment. 同実施の形態において、POS端末のCPUが実行する商品登録処理の要部手順を示す流れ図。4 is a flowchart showing a main procedure of product registration processing executed by the CPU of the POS terminal in the embodiment. 本発明の他の実施の形態における商品データレコードのデータ構造を模式的に示す図。The figure which shows typically the data structure of the goods data record in other embodiment of this invention. 同他の実施の形態において、POS端末のCPUが実行する商品登録処理の要部手順を示す流れ図。In the other embodiment, the flowchart which shows the principal part procedure of the merchandise registration process which CPU of a POS terminal performs.

符号の説明Explanation of symbols

2…スキャナ、3…POS端末、4…商品ファイル、5…店舗サーバ、7…本部サーバ、9…商品データレコード、11,26…CPU、14,31…時計部、71…商品ファイル作成手段、72…商品ファイル配信手段、171,172…第1,第2の商品ファイル保存領域。   2 ... scanner, 3 ... POS terminal, 4 ... product file, 5 ... store server, 7 ... head office server, 9 ... product data record, 11, 26 ... CPU, 14, 31 ... clock part, 71 ... product file creation means, 72: Product file distribution means, 171, 172: First and second product file storage areas.

Claims (3)

商品毎に付された商品固有のコードを入力するためのコード入力手段と、
各商品の前記コード,商品名,単価等の商品データを記憶する商品ファイルを保存するための第1,第2の商品ファイル保存領域を備える商品データ記憶部と、
付を管理する日付管理手段と、
この日付管理手段により管理される日付が更新される毎に切換フラグを反転させて、前記第1,第2の商品ファイル保存領域を交互に有効化するファイル有効化手段と、
前記コード入力手段を介して前記コードが入力されると前記切換フラグをチェックして、そのコードで特定される商品の商品データを前記ファイル有効化手段により有効化されている前記商品ファイル保存領域に保存された商品ファイルから取得し、その取得した商品データに基づいて当該商品の販売データを処理する処理手段と
外部から前記商品ファイルがダウンロードされる毎に前記切換フラグをチェックして、当該商品ファイルを前記ファイル有効化手段により有効化されていない側の商品ファイル保存領域に対して上書き保存するファイル保存手段とを備え、
前記商品ファイルに記憶される各商品の商品データは、適用日に関するデータと、当該適用日が対象となる単価を含む適用日対象商品データと、当該適用日が対象外となる単価を含む適用日対象外商品データとからなり、
前記処理手段は、前記日付管理手段により管理される日付が、前記商品ファイルから取得した商品データにおける適用日に該当するか否かを判断し、該当する場合には当該商品データにおける前記適用日対象商品データを読出し、該当しない場合には当該商品データにおける前記適用日対象外商品データを読出して、その読み出した商品データに基づいて当該商品の販売データを処理することを特徴とする商品販売データ処理装置。
A code input means for inputting a product-specific code attached to each product;
A product data storage unit comprising first and second product file storage areas for storing product files storing product data such as the code, product name, and unit price of each product ;
And date management means for managing the date,
A file validation unit that inverts the switching flag each time the date managed by the date management unit is updated and alternately validates the first and second product file storage areas;
When the code is input via the code input means, the switching flag is checked, and the product data of the product specified by the code is stored in the product file storage area validated by the file validation means. Processing means for obtaining from the saved product file and processing the sales data of the product based on the obtained product data ;
A file storage unit that checks the switching flag every time the product file is downloaded from the outside, and overwrites and saves the product file in a product file storage area on the side that is not validated by the file validation unit; With
The product data of each product stored in the product file includes data relating to an application date, application date target product data including a unit price for which the application date is an object, and an application date including a unit price for which the application date is not an object. It consists of non-target product data,
The processing means determines whether the date managed by the date management means corresponds to an application date in the product data acquired from the product file, and if applicable, the application date target in the product data Product sales data processing characterized in that product data is read, and if not applicable, the product data not subject to application date in the product data is read, and the sales data of the product is processed based on the read product data apparatus.
商品毎に付された商品固有のコードを入力するためのコード入力手段と、
各商品の前記コード,商品名,単価等の商品データを記憶する商品ファイルを保存するための第1,第2の商品ファイル保存領域を備える商品データ記憶部と、
付を管理する日付管理手段と、
この日付管理手段により管理される日付が更新される毎に切換フラグを反転させて、前記第1,第2の商品ファイル保存領域を交互に有効化するファイル有効化手段と、
前記コード入力手段を介して前記コードが入力されると前記切換フラグをチェックして、そのコードで特定される商品の商品データを前記ファイル有効化手段により有効化されている前記商品ファイル保存領域に保存された商品ファイルから取得し、その取得した商品データに基づいて当該商品の販売データを処理する処理手段と
外部から前記商品ファイルがダウンロードされる毎に前記切換フラグをチェックして、当該商品ファイルを前記ファイル有効化手段により有効化されていない側の商品ファイル保存領域に対して上書き保存するファイル保存手段とを備え、
前記商品ファイルに記憶される各商品の商品データは、適用日に関するデータと、当該適用日が対象となる単価を含む適用日対象商品データと、当該適用日が対象外となる単価を含む適用日対象外商品データと、適用日及び適用日以外で共通である商品名を含む共通商品データとからなり、
前記処理手段は、前記日付管理手段により管理される日付が、前記商品ファイルから取得した商品データにおける適用日に該当するか否かを判断し、該当する場合には当該商品データにおける前記適用日対象商品データを前記共通商品データとともに読出し、該当しない場合には当該商品データにおける前記適用日対象外商品データを前記共通商品データとともに読出して、その読み出した商品データに基づいて当該商品の販売データを処理することを特徴とする商品販売データ処理装置。
A code input means for inputting a product-specific code attached to each product;
A product data storage unit comprising first and second product file storage areas for storing product files storing product data such as the code, product name, and unit price of each product ;
And date management means for managing the date,
A file validation unit that inverts the switching flag each time the date managed by the date management unit is updated and alternately validates the first and second product file storage areas;
When the code is input via the code input means, the switching flag is checked, and the product data of the product specified by the code is stored in the product file storage area validated by the file validation means. Processing means for obtaining from the saved product file and processing the sales data of the product based on the obtained product data ;
A file storage unit that checks the switching flag every time the product file is downloaded from the outside, and overwrites and saves the product file in a product file storage area on the side that is not validated by the file validation unit; With
The product data of each product stored in the product file includes data relating to an application date, application date target product data including a unit price for which the application date is an object, and an application date including a unit price for which the application date is not an object. It consists of non-target product data and common product data including product names that are common on the application date and other than the application date,
The processing means determines whether the date managed by the date management means corresponds to an application date in the product data acquired from the product file, and if applicable, the application date target in the product data Read the product data together with the common product data, and if not applicable, read the product data not covered by the applicable date in the product data together with the common product data and process the sales data of the product based on the read product data A merchandise sales data processing apparatus.
前記処理手段は、1客が買上げる1点目の商品のコード入力時のみ前記日付管理手段により管理される日付が、前記商品ファイルから取得した商品データにおける適用日に該当するか否かを判断し、当該客の2点目以降の商品のコードが入力された際は1点目の判断結果に従って処理することを特徴とする請求項1または2記載の商品販売データ処理装置。   The processing means determines whether or not the date managed by the date management means corresponds to the application date in the product data acquired from the product file only when the code of the first product purchased by one customer is entered. 3. The merchandise sales data processing apparatus according to claim 1, wherein when a code of merchandise after the second point of the customer is inputted, processing is performed according to the judgment result of the first point.
JP2006297997A 2006-11-01 2006-11-01 Product sales data processing device Expired - Fee Related JP5138203B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006297997A JP5138203B2 (en) 2006-11-01 2006-11-01 Product sales data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006297997A JP5138203B2 (en) 2006-11-01 2006-11-01 Product sales data processing device

Publications (2)

Publication Number Publication Date
JP2008117064A JP2008117064A (en) 2008-05-22
JP5138203B2 true JP5138203B2 (en) 2013-02-06

Family

ID=39502939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006297997A Expired - Fee Related JP5138203B2 (en) 2006-11-01 2006-11-01 Product sales data processing device

Country Status (1)

Country Link
JP (1) JP5138203B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918155B (en) * 2008-03-04 2014-06-11 新日铁住金株式会社 Plate rolling mill and plate rolling method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5571742B2 (en) * 2012-06-28 2014-08-13 東芝テック株式会社 Product sales management system and program thereof
JP6390983B2 (en) * 2016-10-11 2018-09-19 Necプラットフォームズ株式会社 POS system, master data maintenance method, and POS terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59121565A (en) * 1982-12-28 1984-07-13 Tokyo Electric Co Ltd Data processing method in commodity sales processing system
JPS62247496A (en) * 1986-04-21 1987-10-28 東芝テック株式会社 Pos system
JPH01181189A (en) * 1988-01-14 1989-07-19 Tokyo Electric Co Ltd Electronic cash register

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101918155B (en) * 2008-03-04 2014-06-11 新日铁住金株式会社 Plate rolling mill and plate rolling method

Also Published As

Publication number Publication date
JP2008117064A (en) 2008-05-22

Similar Documents

Publication Publication Date Title
US20100006646A1 (en) Home grocery inventory system
JP6175407B2 (en) Electronic receipt management server, electronic receipt providing method and program
JP7387860B2 (en) Product data processing device, control program, product sales system
JP2002230649A (en) Pos system
JP2023063538A (en) Commodity data processing system, information terminal, and program thereof
JP2011227938A (en) Merchandise sales data processor and control program thereof
JP5138203B2 (en) Product sales data processing device
JP4809464B2 (en) Product sales data processing apparatus and control program thereof
US11288651B2 (en) Commodity sales data processing apparatus and control program
JP5079774B2 (en) Product sales data processing system
JP2018005939A (en) Information processing apparatus and program
JP5019096B2 (en) Product sales data processing apparatus and information notification program
JP2000172957A (en) Commodity sales registering data processor
JP2008065625A (en) Commodity sales data processing apparatus
JP7121783B2 (en) Payment processing device, its control program, and payment processing method
JP2001291170A (en) Merchandise sales register processor
JPH1196255A (en) Merchandise registration data control system
JP7242766B2 (en) mobile terminal and program
JP7417427B2 (en) Wireless tag writing device and program
JP5264804B2 (en) Merchandise sales data processing apparatus and control program thereof
JP2013020330A (en) Control unit, control unit control method and program
WO2022269855A1 (en) Sales support system, method, and recording medium
JP2010026590A (en) Transaction processor
JP4555041B2 (en) Product sales data processing device
JP6401347B2 (en) Electronic receipt management server, electronic receipt providing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080910

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110906

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110920

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111028

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120403

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20120529

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120601

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121114

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20151122

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees