JP2576113B2 - Data processing device - Google Patents

Data processing device

Info

Publication number
JP2576113B2
JP2576113B2 JP7645187A JP7645187A JP2576113B2 JP 2576113 B2 JP2576113 B2 JP 2576113B2 JP 7645187 A JP7645187 A JP 7645187A JP 7645187 A JP7645187 A JP 7645187A JP 2576113 B2 JP2576113 B2 JP 2576113B2
Authority
JP
Japan
Prior art keywords
data
file
correction
plu
input
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 - Lifetime
Application number
JP7645187A
Other languages
Japanese (ja)
Other versions
JPS63244297A (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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP7645187A priority Critical patent/JP2576113B2/en
Publication of JPS63244297A publication Critical patent/JPS63244297A/en
Application granted granted Critical
Publication of JP2576113B2 publication Critical patent/JP2576113B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はデータ処理装置に関し、電子式レジスタ等、
分類別データの関連項目に係るデータを累計処理するデ
ータ処理装置に利用されるものである。
Description: TECHNICAL FIELD The present invention relates to a data processing device, such as an electronic register.
This is used in a data processing device that performs cumulative processing of data relating to related items of classification data.

[従来の技術] 従来の電子レジスタにおいては、一般に、PLU(単価
参照のための商品分類の最小単位)コードと対応してPL
U別の単価、キャラクタが予めプリセットされ、さら
に、これらと対応して、上記単価に基づいて累計された
PLU別の売上合計金額等を記憶するPLUファイルが備えら
れている。そして、このPLUファイルに対して、新商品
に係る単価、PLUコード等の追加訂正は次のような方法
で行なわれている。すなわち、一旦、別ファイルに訂正
データを一括して格納しておき、例えば、訂正に係るPL
Uコードが売上データとして入力されたときは、別ファ
イルに基づいてPLU別の売上合計金額を累計記憶する等
の登録処理を行ない、例えば営業終了時後に、別ファイ
ルの内容をPULファイルに追加訂正するようにしてい
る。
[Prior Art] In a conventional electronic register, generally, a PLU (Minimum Unit of Product Classification for Unit Price Reference) code is
U Unit price and character are preset in advance, and corresponding to these, the total is calculated based on the above unit price.
A PLU file that stores the total sales amount and the like for each PLU is provided. The PLU file is additionally corrected in terms of unit price, PLU code, and the like for a new product by the following method. That is, the correction data is temporarily stored in a separate file once, and the PL
When the U code is entered as sales data, registration processing such as storing the total sales amount for each PLU based on another file is performed.For example, after the business closes, the contents of another file are added to the PUL file and corrected. I am trying to do it.

[発明が解決しようとする課題] ところで、従来の追加訂正処理は、第6図に示したフ
ローチャートのような手順で行なわれる。まず、電子レ
ジスタに、別ファイルに基づいてPLUファイルに基づい
て追加訂正(ステップS101のバッチメンテ処理)させた
後に別ファイルの全データを印字出力させる(ステップ
S102)。そして、その印字内容をオペレータが見てPLU
ファイルに記憶されている内容と重複(エラー)してい
る内容があるか否かを見つける(ステップS103)。重複
している内容があればそのPLUファイルに記憶されてい
る内容(単価等)に対する変更がある場合であるので、
PLUファイルに記憶されている内容をオペレータが所定
の操作を行なってクリアさせ別ファイルの新しいデータ
を有効にする(ステップS104)。また、誤設定が有った
場合(ステップS103)は、別ファイルのエラーデータを
修正する(ステップS104)。このように変更に対する修
正や誤設定に対する修正を全てオペレータが行なった後
に、別ファイルのデータをクリアしている(ステップS1
05)。
[Problem to be Solved by the Invention] By the way, the conventional additional correction process is performed according to a procedure as shown in a flowchart of FIG. First, the electronic register is additionally corrected based on the PLU file based on another file (the batch maintenance process in step S101), and then all the data of the another file is printed out (step S101).
S102). The operator then looks at the print contents and
It is determined whether or not there is any content that is duplicated (error) with the content stored in the file (step S103). If there is a duplicate content, it means that there is a change to the content (unit price, etc.) stored in the PLU file.
The operator clears the contents stored in the PLU file by performing a predetermined operation to make new data in another file valid (step S104). If there is an erroneous setting (step S103), the error data of another file is corrected (step S104). After the operator makes all the corrections for changes and corrections for erroneous settings, the data in another file is cleared (step S1).
05).

このように、従来は、PLUファイルに対する追加訂正
の処理しか自動的にできないため、PLUファイルのデー
タを削除したり、変更したりすることはオペレータが介
在して面倒な操作を行なわなくてはならなかった。しか
も、別ファイルの印字内容の全てをオペレータが見てPL
Uファイルに記憶されている内容と重複(エラー)して
いるか否かを判断する必要が有った。
As described above, conventionally, only the process of additional correction for the PLU file can be automatically performed. Therefore, deleting or changing the data of the PLU file requires a troublesome operation with the intervention of an operator. Did not. In addition, the operator sees all the print contents of another file and
It was necessary to determine whether there was an overlap (error) with the contents stored in the U file.

この発明の課題は、予め記憶された複数の分類別デー
タを、新たに入力された複数の分類別データにより訂正
するに当たって、新たに入力された分類別データに対応
して記憶された制御データの訂正態様に応じて直ちに訂
正できるようにすることであり、また、訂正が不可能で
あると判別された入力分類別データについては可視可能
に出力できるようにすることである。
An object of the present invention is to correct a plurality of pre-stored classification data with a plurality of newly input classification data, and to correct control data stored corresponding to the newly input classification data. The purpose is to enable immediate correction in accordance with the correction mode, and to allow the input classification-specific data determined to be uncorrectable to be visibly output.

[課題を解決するための手段] この発明の手段は次の通りである。[Means for Solving the Problems] The means of the present invention are as follows.

第1の記憶手段は、分類別データを複数記憶する。 The first storage unit stores a plurality of classification-specific data.

第2の記憶手段は、新たに入力された複数の分類別デ
ータを記憶すると共に、この分類別データのそれぞれと
対応づけて削除あるいは変更などの訂正態様を示す制御
データを記憶する。
The second storage means stores a plurality of classification data newly inputted and stores control data indicating a correction mode such as deletion or change in association with each of the classification data.

判別手段は、前記第2の記憶手段に記憶された個々の
分類別データに基づいて前記第1の記憶手段に記憶され
た複数の分類別データを訂正するに当たって、前記第2
の記憶手段に記憶された個々の分類別データ毎に、その
訂正が可能であるか否かを判別する。
The determining means corrects the plurality of classification data stored in the first storage means based on the individual classification data stored in the second storage means,
It is determined whether or not the correction can be performed for each classification-specific data stored in the storage means.

訂正手段は、前記判別手段で訂正が可能であると判別
された前記第2の記憶手段内の分類別データについて
は、その分類別データに対応して記憶された制御データ
の訂正態様に応じて、前記第1の記憶手段内の対応する
分類別データを訂正する。
The correction unit is configured to correct the classification data in the second storage unit determined to be correctable by the determination unit according to a correction mode of the control data stored corresponding to the classification data. And correcting the corresponding classified data in the first storage means.

可視出力手段は、前記判別手段で訂正が不可能である
と判別された前記第2の記憶手段内の分類別データにつ
いては、前記第1の記憶手段に対する訂正は行なわずに
その分類別データを可視可能に出力する。
The visible output means, for the classification data in the second storage means determined to be uncorrectable by the determination means, corrects the classification data without performing correction to the first storage means. Output to be visible.

[作用] この発明の手段の作用は次の通りである。[Operation] The operation of the means of the present invention is as follows.

第1の記憶手段には、分類別データが複数記憶され、
第2の記憶手段には、新たに入力された複数の分類別デ
ータが記憶されると共に、この分類別データのそれぞれ
と対応づけて削除あるいは変更などの訂正態様を示す制
御データが記憶されている。そして、前記第2の記憶手
段に記憶された個々の分類別データに基づいて前記第1
の記憶手段に記憶された複数の分類別データを訂正する
に当たって、判別手段は前記第2の記憶手段に記憶され
た個々の分類別データ毎に、その訂正が可能であるか否
かを判別し、その判別で訂正が可能であると判別された
前記第2の記憶手段内の分類別データについては、その
分類別データに対応して記憶された制御データの訂正態
様に応じて、前記第1の記憶手段内の対応する分類別デ
ータが訂正手段によって訂正され、また、前記判別手段
で訂正が不可能であると判別された前記第2の記憶手段
内の分類別データについては、前記第1の記憶手段に対
する訂正は行なわずにその分類別データが可視可能に可
視出力手段によって出力される。
A plurality of classification-specific data is stored in the first storage means,
The second storage unit stores a plurality of newly input classification data and control data indicating a correction mode such as deletion or change in association with each of the classification data. . Then, based on the individual classification data stored in the second storage means, the first
In correcting a plurality of classification data stored in the storage means, the determination means determines, for each classification data stored in the second storage means, whether or not the correction is possible. According to the classification data in the second storage means determined to be correctable by the determination, the first data is stored in accordance with the correction mode of the control data stored corresponding to the classification data. The corresponding classification data in the storage means is corrected by the correction means, and the classification data in the second storage means determined to be uncorrectable by the determination means is the first classification data. Is not output to the storage means, and the classified data is output by the visible output means so as to be visible.

従って、予め記憶された複数の分類データを、新たに
入力された複数の分類データにより訂正するに当たっ
て、その訂正が可能であると判別された入力分類別デー
タについては、その分類別データに対応して記憶された
制御データの訂正態様に応じて直ちに訂正でき、また、
訂正が不可能であると判別された入力分類別データにつ
いては、その分類別データを可視可能に出力できる。
Therefore, when correcting a plurality of pre-stored classification data with a plurality of newly input classification data, the input classification data determined to be correctable corresponds to the classification data. Can be immediately corrected according to the correction mode of the control data stored as
With respect to the input classification data determined to be impossible to correct, the classification data can be output in a visible manner.

[実施例] 以下、本発明の一実施例を図面に基づいて説明する。Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

構 成 第2図は本発明の一実施例によるデータ処理装置の構
成図であり、本実施例は電子式レジスタに適用した例で
ある。
Configuration FIG. 2 is a configuration diagram of a data processing device according to one embodiment of the present invention, and this embodiment is an example applied to an electronic register.

本電子式レジスタは、CPU1を中核として売上データを
登録処理するものであり、CPU1には、入力部2、RAM3、
表示部4、および印字部5が接続されている。そして、
CPU1は、入力部2から入力された売上データを各種態様
で処理し、その処理結果をRAM3に格納、表示部4に表
示、印字部5にて印字する等の動作を制御する。
This electronic register is for registering sales data with the CPU 1 as the core, and the CPU 1 has an input unit 2, a RAM 3,
The display unit 4 and the printing unit 5 are connected. And
The CPU 1 processes the sales data input from the input unit 2 in various modes, controls operations such as storing the processing result in the RAM 3, displaying the processing result on the display unit 4, and printing the data on the printing unit 5.

入力部2は、設定(P)、登録I(REG I)、登録II
(REG II)、電源OFF、点検(X)、精算(Z)の各モ
ードを切換設定するためのモード切換スイッチ2a、食品
部門、衣料品部門等の部門を入力する部門キー2b、単
価、PLUコードNo.等を置数入力する置数キー2c、商品の
キャラクタ等を入力する文字キー2d、#1、#2、#
3、#4キー等を有している。
The input unit 2 includes a setting (P), a registration I (REG I), a registration II
(REG II), power off, mode (X), checkout (Z) mode changeover switch 2a for switching and setting each mode, department key 2b for inputting departments such as food department, clothing department, unit price, PLU Numeric keys 2c for inputting code numbers and the like, character keys 2d for inputting product characters, etc., # 1, # 2, #
3, # 4 key and the like.

RAM3には、PLUファイルm1と、バッチ・メンテ・ファ
イルm2が形成されている。PLUファイルm1はPLU別に形成
された複数のレコードを有しており、各レコードは次の
ようなデータ項目により構成されている。すなわち、PL
UコードNo.項目、単価項目、キャラクタ項目、ボルト単
価項目、ミックスマッチ項目、部門項目、売上合計個数
項目、売上合計金額項目、および在庫項目により構成さ
れている。そして、PLUコードNo.項目にはPLUコードNo.
がプリセットされ、キー項目として利用される。単価項
目には、単価がプリセットされる。キャラクタ項目に
は、商品の名称を示すキャラクタデータがプリセットさ
れる。ボルト単価項目には、その商品を収納しているボ
ルト自体の単価がプリセットされる。ミックスマッチ項
目には、例えば、その商品を5個以上まとめて買上げた
場合には、100円値引きする等のミックスマッチデータ
がプリセットされる。部門項目には、部門No.がプリセ
ットされる。売上合計個数項目には、登録Iモードのも
とで、入力部2によりPLUコードNo.と売上個数が入力さ
れた際、入力されたPLUコードNo.に対応するレコード中
の売上合計個数項目の内容と、今回入力に係る売上個数
との合計値が格納される。売上合計金額項目には、登録
Iモードのもとで、入力部2によりPLUコードNo.、売上
個数等が入力された際、入力されたPLUコードNo.に対応
するレコード中の売上合計金額項目、単価項目、ミック
スマッチ項目等の内容に基づいて算出された売上合計金
額が格納される。在庫項目にはその商品の在庫数が格納
され、その在庫数は、入力された売上個数に応じて減算
される。そして、これら各項目の配列順は、各レコード
間で統一され、各項目の内容は、それぞれ所定のデータ
形式で表現されている。例えば、PLUコードNo.は2バイ
ト構成の2進数(16進数による表現)で表現され、単価
は3バイト構成の2進数で表現され、キャラクタは1文
字1バイトのJIS−C6220コードのカタカナコードにより
10文字分(10バイト)で表現されている。
In the RAM 3, a PLU file m1 and a batch maintenance file m2 are formed. The PLU file m1 has a plurality of records formed for each PLU, and each record is composed of the following data items. That is, PL
It consists of a U code No. item, a unit price item, a character item, a bolt unit price item, a mix match item, a section item, a total sales quantity item, a total sales amount item, and a stock item. The PLU code No. item contains the PLU code No.
Are preset and used as key items. A unit price is preset in the unit price item. In the character item, character data indicating a product name is preset. In the bolt unit price item, the unit price of the bolt itself storing the product is preset. In the mix match item, for example, when five or more products are purchased together, mix match data such as a discount of 100 yen is preset. In the section item, a section number is preset. When the PLU code No. and the sales quantity are input by the input unit 2 in the registration I mode in the sales total quantity item, the sales total quantity item in the record corresponding to the input PLU code No. The total value of the content and the number of sales pertaining to the current input is stored. In the total sales amount item, when the PLU code No., the sales quantity, and the like are input by the input unit 2 under the registration I mode, the total sales amount item in the record corresponding to the input PLU code No. , A unit price item, a mix match item, and the like, and a total sales amount calculated based on the contents thereof. The stock item stores the stock quantity of the product, and the stock quantity is subtracted according to the input sales quantity. The arrangement order of these items is unified between records, and the contents of each item are expressed in a predetermined data format. For example, the PLU code No. is represented by a 2-byte binary number (represented by hexadecimal numbers), the unit price is represented by a 3-byte binary number, and the characters are represented by one-byte, one-byte JIS-C6220 code katakana code.
Expressed as 10 characters (10 bytes).

バッチ・メンテ・ファイルm2は、PLUファイルm1に対
し、レコードを追加したり、削除したり、あるいは、レ
コード中の項目の内容、例えば、単価等を変更したりす
る訂正データを一括して設定記憶し、それに基づいてPL
Uファイルm1を保守管理するものである。なお、バッチ
・メンテ・ファイルm2への訂正データの設定時には、デ
ータ形式の正当性の判断は行われない。登録IIモードの
もとで、このバッチ・メンテ・ファイルm2の内容に基づ
いてPLUファイルm1の内容は訂正されるが、その際、バ
ッチ・メンテ・ファイルm2のデータ形式、項目の配列順
(広義のデータ形式)がPLUファイルm1と異なるレコー
ドについては、訂正不能となる。そして、バッチ・メン
テ・ファイルm2中の訂正に供されたレコード内容は消去
されるが、訂正不能で訂正に供されなかったレコード内
容はバッチ・メンテ・ファイルm2から消去されず、印字
出力される。そして、この印字出力に基づいて、オペレ
ータによりそのレコードの内容が、PLUファイルm1と同
様の項目配列、データ形式に変更されることにより、バ
ッチ・メンテ・ファイルm2中の全レコードに基づいてPL
Uファイルm1の内容が訂正されると、バッチ・メンテ・
ファイルm2の全レコードが消去されることとなる。な
お、バッチ・メンテ・ファイルm2はPLUファイルm1と同
様の項目の他に、PLUファイルm1に対する訂正の態様が
追加、変更、削除のいずれであるかを示す訂正態様フラ
グ項目を有している。そして、追加は“00"、変更は“0
1"、削除は“10"で示される。
Batch maintenance file m2 collectively stores correction data to add or delete records, or to change the contents of items in records, for example, unit price, etc., from PLU file m1. And based on it PL
It is for maintaining and managing the U file m1. When setting the correction data in the batch maintenance file m2, the validity of the data format is not determined. Under the registration II mode, the contents of the PLU file m1 are corrected based on the contents of the batch maintenance file m2. At this time, the data format of the batch maintenance file m2 and the order of the items (in a broad sense) A record whose data format differs from that of the PLU file m1 cannot be corrected. Then, the record contents provided for correction in the batch maintenance file m2 are deleted, but the record contents which cannot be corrected and are not provided for correction are not deleted from the batch maintenance file m2 and are printed out. . Then, based on this printout, the contents of the record are changed to the same item arrangement and data format as the PLU file m1 by the operator, so that the PL is updated based on all the records in the batch maintenance file m2.
When the contents of U file m1 are corrected, batch maintenance
All records in the file m2 will be deleted. The batch maintenance file m2 has, in addition to the same items as the PLU file m1, a correction mode flag item indicating whether the correction mode for the PLU file m1 is addition, change, or deletion. The addition is “00” and the change is “0”
1 ", deletion is indicated by" 10 ".

なお、バッチ・メンテ・ファイルm2によるPLUファイ
ルm1の訂正時には、CPU1内のレジスタ群R、レコードポ
インタP等が使用される。
When correcting the PLU file m1 by the batch maintenance file m2, the register group R, the record pointer P, and the like in the CPU 1 are used.

動 作 次に、本実施例の動作を説明する。Operation Next, the operation of this embodiment will be described.

第3図は、本実施例の動作を示すフローチャートであ
り、入力部2のモード切換スイッチにより登録IIモード
が設定されると、CPU1は、図示省略したROMに予め格納
されたプログラムにしたがって、まず、データ入力を待
ち、入力されたデータがマネジャーNo.であるか否かを
判断する(ステップS1)。マネジャーNo.であれば、次
の入力データが担当者No.およびバッチメンテナンス指
定コードであるか否かを判断する(ステップS2)。その
結果、担当者No.およびバッチメンテナンス指定コード
であれば、さらに、その次の入力データが設定指定コー
ドであるか否かを判断する(ステップS3)。その結果、
設定指定コードでないときは、バッチメンテナンス実行
指定モードであるか否かを判断する(ステップS4)。バ
ッチメンテナンス実行指定モードであるときは、ステッ
プS5に進んでバッチメンテナンス処理を実行する。
FIG. 3 is a flowchart showing the operation of the present embodiment. When the registration II mode is set by the mode changeover switch of the input unit 2, the CPU 1 firstly operates according to a program stored in a ROM (not shown) in advance. Then, it waits for data input, and determines whether or not the input data is the manager number (step S1). If it is a manager number, it is determined whether or not the next input data is a person in charge number and a batch maintenance designation code (step S2). As a result, if it is the person in charge number and the batch maintenance designation code, it is further determined whether or not the next input data is a setting designation code (step S3). as a result,
If it is not the setting designation code, it is determined whether or not the mode is the batch maintenance execution designation mode (step S4). If the mode is the batch maintenance execution designation mode, the process proceeds to step S5 to execute the batch maintenance process.

次にバッチメンテナンス処理を第4図により詳細に説
明する。第4図はステップS5におけるバッチメンテナン
ス処理を示すサブルーチンであり、まず、バッチ・メン
テ・ファイルm2から1レコード分のデータを読出し、CP
U1内のレジスタ群Rに格納する(ステップS51)。次
に、レジスタ群Rに格納したレコード中の訂正態様フラ
グ項目に基づいて訂正の態様を判断し(ステップS5
2)、“00"であれば、そのレコードのPLUファイルm1へ
の追加処理に着手する(ステップS53)。この追加処理
は、次のようにして行う。すなわち、バッチ・メンテ・
ファイルm2から読出したレコード中の各項目とPLUファ
イルm1の対応する項目のデータ長が一致する場合は、レ
コード中のデータは正常データであると認識して、追加
処理を実行する。ただし、例え、データ長が一致しても
同一のPLUコードNo.がPLUファイルm1に依存するとき
は、追加すべくバッチ・メンテ・ファイルm2に設定した
ということは、そのPLUコードNo.は本来、PLUファイルm
1に格納されていないはずであり、バッチ・メンテ・フ
ァイルm2へのPLUコードNo.、訂正態様の誤設定の可能性
があるので追加処理は実行されない。
Next, the batch maintenance process will be described in detail with reference to FIG. FIG. 4 is a subroutine showing a batch maintenance process in step S5. First, data for one record is read from the batch maintenance file m2,
The data is stored in the register group R in U1 (step S51). Next, the correction mode is determined based on the correction mode flag item in the record stored in the register group R (step S5).
2) If it is "00", the process of adding the record to the PLU file m1 is started (step S53). This additional processing is performed as follows. In other words, batch maintenance
If the data length of each item in the record read from the file m2 and the corresponding item in the PLU file m1 match, the data in the record is recognized as normal data, and additional processing is executed. However, if the same PLU code No. depends on the PLU file m1 even if the data lengths match, the fact that the PLU code No. is originally set in the batch maintenance file m2 to add , PLU file m
Since the PLU code number and correction mode may not be stored in the batch maintenance file m2, no additional processing is performed.

ステップS52での判断の結果、訂正態様フラグが“01"
であれば変更処理に着手する(ステップS54)。この変
更処理においても、バッチ・メンテ・ファイルm2から読
出したレコード中の各項目のデータ長を判断することに
より、その正常性を判断する。また、変更は、PLUファ
イルm1に既に格納されているPLU別商品に対する単価、
ボトル単価、ミックスマッチの内容に対して行われるの
で、同一のPLUコードNo.がPLUファイルm1に存在するか
否かによっても、バッチ・メンテ・ファイルm2から読出
したレコードの正常性を判断する。そして、正常である
と判断されたときは、PLUファイルm1の内容を変更に係
る単価等で書換え、さらに、売上合計個数、売上合計金
額を加算する。
As a result of the determination in step S52, the correction mode flag is "01"
If so, the change process is started (step S54). Also in this change processing, the normality is determined by determining the data length of each item in the record read from the batch maintenance file m2. In addition, the change is based on the unit price for the PLU-specific product already stored in the PLU file m1,
Since the processing is performed for the bottle unit price and the content of the mix match, the normality of the record read from the batch maintenance file m2 is also determined based on whether or not the same PLU code No. exists in the PLU file m1. If it is determined that the PLU file m1 is normal, the contents of the PLU file m1 are rewritten with the unit price pertaining to the change, and the total sales quantity and the total sales amount are added.

ステップS52での判断の結果、訂正態様フラグが“10"
であれば削除処理に着手する(ステップS55)。この削
除は、その1PLU別商品対応の1レコード全体の削除を意
味し、バッチ・メンテ・ファイルm2から読出したレコー
ドにはPLUコードNo.のみが設定されているので、同一の
PLUコードNo.がバッチ・メンテ・ファイルm2に存在する
か否かの判断のみで、正常性を認識する。そして、正常
であると認識されたときは、その1PLU別商品対応の1レ
コード全体をPLUファイルm1から削除する。なお、レコ
ード全体の削除ではなく、ボトル単価、ミックスマッチ
内容等、レコードの一部の削除は、変更処理により行
う。
As a result of the determination in step S52, the correction mode flag is "10".
If so, the deletion process is started (step S55). This deletion means the deletion of one entire record corresponding to one PLU-specific product. Since only the PLU code number is set in the record read from the batch maintenance file m2, the same record is deleted.
Normality is recognized only by determining whether the PLU code No. exists in the batch maintenance file m2. Then, when it is recognized that it is normal, the entire record corresponding to the 1PLU-specific product is deleted from the PLU file m1. Note that, instead of deleting the entire record, a part of the record such as the bottle unit price and the content of the mix match is deleted by a change process.

ステップS53〜S55のいずれかの処理に着手した後、ス
テップS56に進んで、バッチ・メンテ・ファイルm2から
読出したレコードの内容が正常であり、訂正処理が正常
に実行されたか否かを判断する。その結果、正常に実行
されたときは、訂正処理に供されたレコードの内容をバ
ッチ・メンテ・ファイルm2から削除する(ステップS5
7)。そして、レコードポインタPを“1"だけインクリ
メントする(ステップS58)。なお、ステップS56での判
断の結果、訂正処理が実行されなかったときは、対象の
レコードをバッチ・メンテ・ファイルm2から削除するこ
となく、直ちにステップS58に進む。次に、レコードポ
インタPの示すバッチ・メンテ・ファイルm2の位置にエ
ンドオブファイル(EOF)コードが格納されているか否
かを判断し(ステップS59)、格納されていないとき
は、まだ訂正に供されていないレコードであることを意
味するので、そのレコードに基づいて訂正処理を行うべ
く、ステップS51に戻る。EOFコードが格納されていると
きは、本サブルーチンの処理を終了し、第3図のメイン
プログラムに復帰する。
After starting any one of steps S53 to S55, the process proceeds to step S56, in which it is determined whether the contents of the record read from the batch maintenance file m2 are normal and the correction processing has been executed normally. . As a result, when the processing has been executed normally, the contents of the record subjected to the correction processing are deleted from the batch maintenance file m2 (step S5).
7). Then, the record pointer P is incremented by "1" (step S58). If the result of determination in step S56 is that correction processing has not been executed, the process immediately proceeds to step S58 without deleting the target record from the batch maintenance file m2. Next, it is determined whether or not an end-of-file (EOF) code is stored at the position of the batch maintenance file m2 indicated by the record pointer P (step S59). Since this means that the record is not a record, the process returns to step S51 to perform a correction process based on the record. If the EOF code has been stored, the processing of this subroutine ends, and the process returns to the main program of FIG.

このように、正常なレコードのみを削除することとし
たので、本サブルーチンの処理を終了し、メインプログ
ラムに復帰する際は、バッチ・メンテ・ファイルm2に
は、該設定に係るレコードのみが残されることとなる。
As described above, since only the normal records are deleted, when the processing of this subroutine is completed and the process returns to the main program, only the records related to the setting are left in the batch maintenance file m2. It will be.

このようにして、バッチメンテナンス処理が終了する
と、第3図のメインプログラムでは、その時点でのバッ
チ・メンテ・ファイルm2の内容、すなわち、誤設定に係
るバッチ・メンテ・ファイルm2中のレコード内容を全て
読出して印字部5にて印字させて(ステップS6)、終了
する。そして、この印字内容を判断することにより、誤
設定に係るレコードのを正しく修正し、この修正レコー
ドに基づいてバッチメンテナンス処理を行えば、バッチ
・メンテ・ファイルm2の内容は全て消去されるので、バ
ッチ・メンテ・ファイルm2を有効に活用することが可能
となる。そして、誤設定の修正は、従来技術のように、
バッチ・メンテ・ファイルm2の全レコードについて逐
一、その正誤を判断する必要はなく、自動的に誤設定で
あると判断されて印字されたレコードについてのみ正誤
を判断すれば良いので、バッチメンテナンス処理の再実
行を迅速に行うことが可能となる。
In this way, when the batch maintenance processing is completed, the main program of FIG. 3 stores the contents of the batch maintenance file m2 at that time, that is, the contents of the records in the batch maintenance file m2 related to the erroneous setting. All are read out and printed by the printing unit 5 (step S6), and the process ends. Then, by judging the content of the print, the record of the erroneous setting is correctly corrected, and if the batch maintenance process is performed based on the corrected record, all the contents of the batch maintenance file m2 are deleted. The batch maintenance file m2 can be used effectively. Then, to correct incorrect settings, as in the prior art,
It is not necessary to judge the correctness of all the records of the batch maintenance file m2 one by one.It is only necessary to judge the correctness only for the records that are automatically determined to be incorrect and printed, Re-execution can be performed quickly.

バッチメンテナンス処理の再実行は次のようにして行
う。すなわち、第3図のステップS6にて印字された誤設
定に係るレコードを修正するときは、マネジャーNo.担
当者およびバッチメンテナンス指定コード、設定指定コ
ードを入力すると、ステップS1〜3を経由して、ステッ
プS7に進み、設定修正処理が実行される。
The re-execution of the batch maintenance process is performed as follows. That is, when correcting the record relating to the erroneous setting printed in step S6 of FIG. 3, when the manager No. person in charge, the batch maintenance designation code, and the setting designation code are input, the process goes through steps S1 to S3. Proceeding to step S7, a setting correction process is executed.

次に、設定修正処理を第5図に基づいて説明する。第
5図は、第3図のステップS7における設定修正処理を示
すサブルーチンであり、まず、データの入力を待ち、PL
UコードNo.が入力されたときは、そのPLUコードNo.をキ
ー項目とするレコードを、バッチ・メンテ・ファイルm2
からレジスタ群Rに読出す(ステップS7−1、2)。そ
して、PLUコードNo.の次の入力が訂正態様であるか否か
を判断し、訂正態様であれば、レジスタ群R上の訂正態
様を入力に係る訂正態様に修正する(ステップS7−3、
4)。以下、同様に、PLUコードNo.の次の入力に応じた
修正を行う。すなわち、訂正態様でないときは、ステッ
プS7−5に進んでPLUコードNo.であるか否かを判断し、
PLUコードNo.でないときは、さらに、ステップS7−7に
進んで単価であるか否かを判断するようにして入力内容
を特定し、特定した内容に応じた修正を行う。例えば、
PLUコードNo.が入力されたときは、ステップS1にて入力
されたPLUコードNo.をキー項目とするレジスタ群Rに読
出されたレコードのPLUコードNo.を今回入力のPLUコー
ドNo.に修正する(ステップS7−5、6)。また、単価
が入力されたときは、今回入力の単価に修正する(ステ
ップS7−7、8)。この単価修正時においては、対応す
る売上合計個数項目の内容、および修正された単価に基
づいて、売上合計金額も同時に修正される。また、キャ
ラクタが入力されたときは、今回入力のキャラクタに修
正し(ステップS7−9、10)、ミックスマッチの内容が
入力されたときは、その内容そのものの修正と、その修
正に基づく売上合計金額の修正とを行い(ステップS7−
11、12)、同様に、ボトル単価、部門、在庫が入力され
たときは、それらの修正等を行う(ステップS7−13〜1
8)。そして、その次に、#3キーに対応する#3コー
ドが入力されたか否かを判断し(ステップS7−19)、#
3コードの入力がないときは、ステップS7−3に戻るこ
とにより、レジスタ群Rに読出されたレコード中の他の
修正すべき項目を順次修正していく。#3コードが入力
されたときは、読出したレコードに対する修正が完了し
たものと認識して、バッチ・メンテ・ファイルm2の対象
レコードをレジスタ群Rの内容に書換える(ステップS7
−20)。そして、#4キーに対応する#4コードが入力
されたか否かを判断し(ステップS7−21)、#4コード
が入力されないときは、まだ、バッチ・メンテ・ファイ
ルm2中に誤設定に係るレコードが存在するものと認識し
て、ステップ7−1に戻る。#4コードが入力されたと
きは、バッチ・メンテ・ファイルm2中の誤設定に係るレ
コードをすべて修正したものと認識して本サブルーチン
の処理を終了し、第3図のメインプログラムに復帰す
る。
Next, the setting correction process will be described with reference to FIG. FIG. 5 is a subroutine showing a setting correction process in step S7 in FIG.
When a U code No. is entered, a record with the PLU code No. as a key item is stored in the batch maintenance file m2.
Is read out to the register group R (steps S7-1, S2). Then, it is determined whether or not the input next to the PLU code No. is in the correction mode, and if so, the correction mode on the register group R is corrected to the input mode (step S7-3,
4). Hereinafter, similarly, correction according to the next input of the PLU code No. is performed. That is, when the mode is not the correction mode, the process proceeds to step S7-5 to determine whether or not the PLU code No.
If it is not the PLU code No., the process further proceeds to step S7-7 to determine whether or not the price is a unit price, to specify the input content, and make a correction according to the specified content. For example,
When the PLU code No. is input, the PLU code No. of the record read into the register group R with the PLU code No. input in step S1 as a key item is corrected to the PLU code No. input this time. (Steps S7-5 and S6). When the unit price is entered, the unit price is corrected to the unit price entered this time (steps S7-7, S8). At the time of the unit price correction, the total sales amount is also corrected at the same time based on the contents of the corresponding sales total number item and the corrected unit price. When a character is input, the character is corrected to the character input this time (steps S7-9 and S10). When the content of the mix match is input, the content itself is corrected and the total sales based on the correction are performed. Correct the amount (Step S7-
11 and 12) Similarly, when the unit price of the bottle, the department, and the stock are input, they are corrected (steps S7-13-1).
8). Then, it is determined whether a # 3 code corresponding to the # 3 key has been input (step S7-19).
If there is no input of the three codes, the process returns to step S7-3 to sequentially correct other items to be corrected in the record read out to the register group R. When the # 3 code is input, it is recognized that the modification of the read record has been completed, and the target record of the batch maintenance file m2 is rewritten to the contents of the register group R (step S7).
-20). Then, it is determined whether or not the # 4 code corresponding to the # 4 key has been input (step S7-21). If the # 4 code has not been input, the erroneous setting in the batch maintenance file m2 is still not detected. It recognizes that a record exists, and returns to step 7-1. When the # 4 code is input, it is recognized that all the records related to the erroneous setting in the batch maintenance file m2 have been corrected, and the processing of this subroutine ends, and the process returns to the main program of FIG.

なお、第3図のステップS2において、バッチメンテナ
ンス指定コードでないと判断されたときは、他処理の指
定モードであるか否かを判断し(ステップS8)、他処理
指定モードであるときは、そのモードに応じた処理を実
行し(ステップS9)、終了する。なお、今まで説明した
バッチメンテナンス実行指定モード等の設定、PLUコー
ドNo.の入力である旨の特定等は、置数キー2c、#1〜
#4キーを用いて行われる。
When it is determined in step S2 of FIG. 3 that the received code is not the batch maintenance specification code, it is determined whether or not the mode is another processing specification mode (step S8). A process corresponding to the mode is executed (step S9), and the process ends. The setting of the batch maintenance execution designation mode, etc., and the specification of the input of the PLU code No., which have been described so far, are performed by the numeral keys 2c, # 1 to # 1.
This is performed using the # 4 key.

なお、本発明は上述の実施例に限定されることなく、
例えば、電子式レジスタのみならず、電子計算機等他の
データ処理装置に適用することも可能である。
It should be noted that the present invention is not limited to the above-described embodiment,
For example, the present invention can be applied not only to an electronic register but also to another data processing device such as an electronic computer.

[発明の効果] 予め記憶された複数の分類別データを、新たに入力さ
れた複数の分類別データにより訂正するに当たって、そ
の訂正が可能であると判別された入力分類別データにつ
いては、その分類別データに対応して記憶された制御デ
ータの訂正態様に応じて、予め記憶された対応する分類
別データを直ちに訂正することができる。
[Effects of the Invention] In correcting a plurality of classification-based data stored in advance by newly inputting a plurality of classification-specific data, the input classification-specific data determined to be capable of being corrected is reduced accordingly. According to the correction mode of the control data stored corresponding to the classification data, the corresponding classification data stored in advance can be corrected immediately.

また、訂正が不可能であると判別された入力分類別デ
ータについては、その分類別データに基づく訂正は行な
わずに、その分類別データを可視可能に出力するため、
その訂正が行なわれなかった分類別データをすぐに確認
することができ、これによりその分類別データをオペレ
ータが直ちに修正することができる。
In addition, for input classification data determined to be impossible to correct, without performing correction based on the classification data, the classification data is output so as to be visible,
The classification data that has not been corrected can be immediately confirmed, so that the classification data can be immediately corrected by the operator.

【図面の簡単な説明】[Brief description of the drawings]

第1図は本発明の機能ブロック図、第2図は本発明の一
実施例によるデータ処理装置の構成図、第3図〜第5図
は第2図の動作を示すフローチャート、第6図は従来技
術の問題点を説明するための図である。 1……CPU、3……RAM、5……印字部、m1……PLUファ
イル、m2……バッチ・メンテ・ファイル、R……レジス
タ群、P……レコードポインタ。
FIG. 1 is a functional block diagram of the present invention, FIG. 2 is a block diagram of a data processing apparatus according to an embodiment of the present invention, FIGS. 3 to 5 are flowcharts showing the operation of FIG. 2, and FIG. FIG. 9 is a diagram for explaining a problem of the conventional technology. 1 ... CPU, 3 ... RAM, 5 ... Printing part, m1 ... PLU file, m2 ... Batch maintenance file, R ... Register group, P ... Record pointer.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】分類別データを複数記憶する第1の記憶手
段と、 新たに入力された複数の分類別データを記憶すると共
に、この分類別データのそれぞれと対応づけて削除ある
いは変更などの訂正態様を示す制御データを記憶する第
2の記憶手段と、 前記第2の記憶手段に記憶された個々の分類別データに
基づいて前記第1の記憶手段に記憶された複数の分類別
データを訂正するに当たって、前記第2の記憶手段に記
憶された個々の分類別データ毎に、その訂正が可能であ
るか否かを判別する判別手段と、 前記判別手段で訂正が可能であると判別された前記第2
の記憶手段内の分類別データについては、その分類別デ
ータに対応して記憶された制御データの訂正態様に応じ
て、前記第1の記憶手段内の対応する分類別データを訂
正する訂正手段と、 前記判別手段で訂正が不可能であると判別された前記第
2の記憶手段内の分類別データについては、前記第1の
記憶手段に対する訂正は行なわずにその分類別データを
可視可能に出力する可視出力手段と、 を備えることを特徴とするデータ処理装置。
1. A first storage means for storing a plurality of classification data, a plurality of classification data newly inputted, and correction such as deletion or change in association with each of the classification data. A second storage unit for storing control data indicating an aspect; and correcting a plurality of classification data stored in the first storage unit based on individual classification data stored in the second storage unit. In doing so, for each individual classification data stored in the second storage means, a determination means for determining whether the correction is possible, and a determination is made by the determination means that the correction is possible. The second
Correction means for correcting the corresponding classification data in the first storage means in accordance with the correction mode of the control data stored corresponding to the classification data; For the classified data in the second storage means determined to be impossible to correct by the determining means, the classified data is output so as to be visible without correcting the first storage means. And a visible output unit.
JP7645187A 1987-03-31 1987-03-31 Data processing device Expired - Lifetime JP2576113B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7645187A JP2576113B2 (en) 1987-03-31 1987-03-31 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7645187A JP2576113B2 (en) 1987-03-31 1987-03-31 Data processing device

Publications (2)

Publication Number Publication Date
JPS63244297A JPS63244297A (en) 1988-10-11
JP2576113B2 true JP2576113B2 (en) 1997-01-29

Family

ID=13605512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7645187A Expired - Lifetime JP2576113B2 (en) 1987-03-31 1987-03-31 Data processing device

Country Status (1)

Country Link
JP (1) JP2576113B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221960A (en) * 1985-03-28 1986-10-02 Fujitsu Ltd Transaction data processor

Also Published As

Publication number Publication date
JPS63244297A (en) 1988-10-11

Similar Documents

Publication Publication Date Title
US4493037A (en) Retail terminal
US4832513A (en) Method and apparatus for creating an arrangement for a label
JPH0658703B2 (en) Electronic cash register
JP2576113B2 (en) Data processing device
JP2976552B2 (en) Electronic cash register
JP2001222766A (en) Pos system
JPH0684069A (en) Sales registering device
JPH0230075B2 (en)
JP2000247321A (en) Label issuing apparatus
JP3065680B2 (en) Product sales data processing device
JP2902852B2 (en) Product sales data processing device
JPS5840217B2 (en) electronic cash register
JPS58225477A (en) Electronic cash register
JP2508572Y2 (en) Sales data processing device
JP2000036076A (en) Plu file management device and method
JPS6263395A (en) Electronic cash register
JPS582968A (en) Cash register
JPH05151457A (en) Sales data processing device
JPH0749593Y2 (en) Sales data processor
JPS601677B2 (en) Electronic cash register printing method
JPS6075993A (en) Electronic cash register
JPS59173873A (en) Electronic cash register
JPS63189996A (en) Transaction processor
JPH01125690A (en) Transaction processor
JP2001006053A (en) Commodity sales registration data processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071107

Year of fee payment: 11