JPS6248277B2 - - Google Patents
Info
- Publication number
- JPS6248277B2 JPS6248277B2 JP58216290A JP21629083A JPS6248277B2 JP S6248277 B2 JPS6248277 B2 JP S6248277B2 JP 58216290 A JP58216290 A JP 58216290A JP 21629083 A JP21629083 A JP 21629083A JP S6248277 B2 JPS6248277 B2 JP S6248277B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- correction
- input
- memory
- sales
- 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
Links
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、一旦登録されたデータの訂正処理に
関し、売上データ処理装置等に利用される。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to correction processing of data once registered, and is applied to sales data processing devices and the like.
[発明の概要]
本発明は、売上データの登録処理時において、
この売上データに対応する訂正データ、上記訂正
の対象である売上データが累計されたメモリのア
ドレス及び訂正のための演算命令を予め作成して
記憶させておき、訂正指示があればこれらデータ
を読み出して訂正処理を行うようにしたものであ
る。[Summary of the invention] The present invention provides a method for registering sales data.
The correction data corresponding to this sales data, the address of the memory where the sales data to be corrected above have been accumulated, and the arithmetic instructions for correction are created and stored in advance, and if there is a correction instruction, these data are read out. The correction process is performed based on the information.
[従来の技術]
一般に売上データの訂正時には、特開昭54−
266377号公報に記載されているように、以前に実
行された登録処理によつて合計加算された売上デ
ータから訂正すべきデータを減算する訂正処理が
行われている。しかるに登録処理として、例え
ば、単品登録、リピート登録、乗算登録等のよう
に種々の処理がある場合には、後に訂正が行われ
ることを予定して、実際に登録処理が実行された
処理手順を示すフラグ情報を夫々の処理動作中に
おいて設定もしくは解除する処理が必要になる。
更に訂正処理では、前記設定もしくは解除された
フラグ情報をもとに、以前に実行された種々の登
録処理に対応して種々の処理を実行している。[Prior art] Generally, when correcting sales data,
As described in Publication No. 266377, a correction process is performed in which data to be corrected is subtracted from sales data that has been added to the total in a previously executed registration process. However, if there are various types of registration processing, such as single item registration, repeat registration, multiplication registration, etc., it is necessary to record the actual procedure of the registration process with the expectation that it will be corrected later. It is necessary to set or clear the flag information shown during each processing operation.
Furthermore, in the correction process, various processes are executed based on the flag information that has been set or canceled, corresponding to various previously executed registration processes.
[発明が解決しようとする問題点]
しかしながらこのために、登録処理動作の設計
そのものが非常に煩雑になつたり、登録処理の手
順が訂正処理に影響を及ぼすため、登録処理の設
計時点で訂正処理をも十分に考慮に入れて設計し
なければならず、非常に複雑になつていた。[Problems to be solved by the invention] However, because of this, the design of the registration processing operation itself becomes very complicated, and the registration processing procedure affects the correction processing, so the correction processing is not performed at the time of designing the registration processing. The design had to take these factors into consideration, making it extremely complex.
また訂正処理において、フラグ情報の設定もし
くは解除を検知する処理動作が必要となり、種々
の訂正を実行させる必要から、訂正処理のプログ
ラムが大きくなりその設計が複雑であつた。更
に、このような複雑、大きなプログラムを変更す
ることは非常に困難であるため、後に訂正の操作
手順等の変更に対応できなかつた。 Further, in the correction processing, a processing operation for detecting the setting or cancellation of flag information is required, and since it is necessary to execute various corrections, the correction processing program becomes large and its design is complicated. Furthermore, since it is extremely difficult to modify such a complex and large program, it has not been possible to respond to subsequent changes in the operating procedures for correction.
本発明は、上述した事情を背景としてなされた
もので、その目的は、一旦登録した売上データを
訂正するにあたつて訂正のための処理プログラム
を入力のための処理プログラムと別体として簡略
化できさらに訂正すべき売上データが累計された
メモリのアドレスも訂正データの1つとしてセツ
トするので訂正にあたつての誤りも生じない売上
データ処理装置を提供することである。 The present invention has been made against the background of the above-mentioned circumstances, and its purpose is to simplify the process of correcting sales data once registered by separating a processing program for correction from a processing program for inputting data. To provide a sales data processing device which does not cause errors in correction because it also sets the memory address where the sales data to be corrected has been accumulated as one of the correction data.
[問題点を解決するための手段]
本発明は、売上データ等を入力する入力手段
1、入力された売上データの分類別合計データを
記憶する合計データ記憶手段13、売上データが
入力された際に入力された売上データに対応する
訂正データ及び入力された売上データが累計され
た上記合計データ記憶手段のアドレス及び訂正時
に実行すべき演算命令を記憶する訂正情報記憶手
段19、上記入力手段より訂正指示の入力が行わ
れた際に、上記訂正データ、上記アドレス、上記
演算命令を読み出し、上記アドレスで指定された
上記合計データ記憶手段内の合計データに対し
て、上記訂正データに基づいた上記演算命令によ
る訂正演算を行う演算手段9の各手段を備える。[Means for Solving the Problems] The present invention includes an input means 1 for inputting sales data, etc., a total data storage means 13 for storing total data by category of input sales data, and a total data storage means 13 for storing total data by category of input sales data. correction information storage means 19 for storing correction data corresponding to the sales data input into the input means, an address of the total data storage means in which the input sales data are accumulated, and an arithmetic instruction to be executed at the time of correction; When the instruction is input, the above correction data, the above address, and the above calculation instruction are read out, and the above calculation based on the correction data is performed on the total data in the total data storage means specified by the above address. It is provided with various means of arithmetic means 9 for performing a correction operation according to an instruction.
尚、上記各手段の符号は上記各手段に対応した
実施例中の各構成を示している。 Incidentally, the reference numerals of the above-mentioned means indicate respective structures in the embodiment corresponding to the above-mentioned respective means.
[作 用]
入力手段によつて売上データが入力されると、
入力された売上データの分類別合計データは合計
データ記憶手段に記憶され、この入力された売上
データに対応する訂正データ及び入力された売上
データが累計された合計データ記憶手段のアドレ
ス及び訂正時に実行すべき演算命令が訂正情報記
憶手段に記憶される。[Function] When sales data is input by the input means,
The total data by category of the input sales data is stored in the total data storage means, and the correction data corresponding to the input sales data and the address of the total data storage means where the input sales data are accumulated are stored and executed at the time of correction. The arithmetic instruction to be executed is stored in the correction information storage means.
入力手段より訂正指示の入力が行われると、演
算手段は訂正情報記憶手段より訂正データ、アド
レス、演算命令が読み出され、アドレスで指定さ
れた合計データ記憶手段内の合計データに対し訂
正データに基づいた演算命令に従つた演算を行
う。 When a correction instruction is input from the input means, the calculation means reads the correction data, address, and calculation instruction from the correction information storage means, and applies the correction data to the total data in the total data storage means specified by the address. Performs calculations according to the based calculation instructions.
[実施例]
以下本発明の一実施例につき図面を参照して詳
述する。[Example] An example of the present invention will be described in detail below with reference to the drawings.
本実施例は、分類別の合計データを部門別、グ
ループ別及び時間帯別の3種類とし、それにあわ
てせて訂正のための情報も3種類としている。 In this embodiment, there are three types of total data by category: department, group, and time zone, and there are also three types of information for correction.
第1図中1はキー入力部であつて、このキー入
力部1には、置数キー2、部門別キー3、小計キ
ー4、合計キー5、訂正キー6、乗算キー7及び
モードスイツチ8が設けられている。これら各キ
ー2〜8の操作信号はCPU(中央処理装置)9
に入力して処理され、種々の制御がなされる。 Reference numeral 1 in FIG. 1 is a key input section, and this key input section 1 includes a numeric key 2, a department key 3, a subtotal key 4, a total key 5, a correction key 6, a multiplication key 7, and a mode switch 8. is provided. The operation signals for each of these keys 2 to 8 are sent to the CPU (Central Processing Unit) 9.
The information is input to and processed, and various controls are performed.
これらのキーのうち、置数キー2は売上金額入
力用、部門別キー3は売上部指定用、小計キー4
は売上合計を出し、合計キー5は預り金額に対す
る釣の金額を出し、訂正キー6はいつたん登録し
た売上データについて後述する訂正を行い、乗算
キー7は複数個の同じ商品の売上データを登録
し、モードスイツチ8は電源投入、通常の売上の
登録、返品の戻しの登録等の切換を行うものであ
る。 Among these keys, number key 2 is for inputting sales amount, department key 3 is for specifying sales department, and subtotal key 4 is for inputting sales amount.
gives the total sales, the total key 5 gives the amount of change for the deposit amount, the correction key 6 makes corrections to the registered sales data as described later, and the multiplication key 7 registers the sales data of multiple items of the same product. The mode switch 8 is used to turn on the power, register normal sales, register return of returned goods, etc.
CPU9は予め記憶されている各種マイクロ命
令にしたがつて各種の制御処理を行うもので、各
種演算を行う演算部10、キー入力部1からの入
力データ、小計データ、合計データ、フラグデー
タ等の演算中間データや演算結果データがアクセ
スされるRAM(ランダムアクセスメモリ)1
1、各種マイクロ命令を記憶している制御部12
及び後述する合計データメモリ13のアドレスが
設定されるアドレスデータ14からなつている。 The CPU 9 performs various control processes according to various microinstructions stored in advance, and includes an arithmetic section 10 that performs various operations, input data from the key input section 1, subtotal data, total data, flag data, etc. RAM (random access memory) 1 where calculation intermediate data and calculation result data are accessed
1. Control unit 12 that stores various microinstructions
and address data 14 in which an address of a total data memory 13, which will be described later, is set.
合計データメモリ13は、部門別メモリ15、
グループ別メモリ16及び時間帯別メモリ17か
らなつている。このうち部門別メモリ15は、売
上データのうち部門別キー3の指定に対応して部
門ごとに売上データの合計が書き込まれ、グルー
プ別メモリ16は、部門のうち例えば01と03
や03と04の合計のようにいくつかの部門がリ
ンクされるグループごとの売上データの合計が書
き込まれ、時間帯別メモリ17は、時計回路18
からの現在時刻に応じて時間帯別の売上データの
合計が書き込まれ、これらの書き込みはCPU9
の制御下で行われる。 The total data memory 13 includes a departmental memory 15,
It consists of a group memory 16 and a time zone memory 17. Of these, the department memory 15 stores the total sales data for each department in accordance with the designation of the department key 3 of the sales data, and the group memory 16 stores, for example, 01 and 03 of the departments.
The total sales data for each group in which several departments are linked, such as the sum of 03 and 04, is written, and the time zone memory 17 is stored in the clock circuit 18.
The total sales data for each time zone is written according to the current time, and these writes are performed by CPU9.
carried out under the control of
また訂正データメモリ19は、訂正のための情
報が書き込まれるもので、表示情報エリア20
a、印字情報エリア21a、3つの演算情報エリ
ア22a,23a,24a,3つのメモリアドレ
スエリア22b,23b,24b及びデータエリ
ア20b,21b,2cからなつている。このう
ち、表示情報エリア20aは、表示部25の訂正
シンボルやピートシンボルを点灯させるためのデ
ータが書き込まれ、印字情報エリア21aは、印
字部26でレシート等に訂正シンボルを印字させ
るためのデータが書き込まれ、これに対応する各
データエリア20b,21bには訂正用の売上の
金額データ及び売上の個数データがそれぞれ書き
込まれる。また演算情報エリア22a,23a,
24aは上記部門別メモリ15、グループ別メモ
リ16、時間帯別メモリ17にそれぞれ対応し
て、訂正のための加算命令又は減算命令のデータ
が各々書き込まれ、メモリアドレスエリア22
b,23b,24bは上記部門別メモリ15、グ
ループ別メモリ16、時間帯別メモリ17の訂正
すべき売上データが書き込まれたアドレスが書き
込まれ、データエリア22cは訂正用の売上の金
額データ及び売上の個数データが書き込まれ、こ
れらの書き込みはCPU9の制御下で行われる。 Further, the correction data memory 19 is used to write information for correction, and the display information area 20
a, a printing information area 21a, three calculation information areas 22a, 23a, 24a, three memory address areas 22b, 23b, 24b, and data areas 20b, 21b, 2c. Of these, the display information area 20a is written with data for lighting up the correction symbols and repeat symbols on the display section 25, and the print information area 21a is used for writing data for causing the printing section 26 to print correction symbols on receipts, etc. Sales amount data and sales quantity data for correction are written in the corresponding data areas 20b and 21b, respectively. Also, calculation information areas 22a, 23a,
24a corresponds to the departmental memory 15, group memory 16, and time zone memory 17, and data of an addition instruction or a subtraction instruction for correction is written therein, and a memory address area 22a is provided.
b, 23b, and 24b are written the addresses in which the sales data to be corrected in the departmental memory 15, group memory 16, and time zone memory 17 are written, and the data area 22c is used to store sales amount data and sales for correction. number data is written, and these writings are performed under the control of the CPU 9.
上記表示部25は、上記訂正シンボルの他、訂
正金額、訂正個数、リピートシンボル、入力され
た売上データの金額、個数も表示され、印字部2
6では、これに対応した訂正シンボル、金額、部
門等が印字され、これらの表示、印字はCPU9
の制御処理に基づいてなされる。 In addition to the correction symbol, the display section 25 also displays the correction amount, the correction number, the repeat symbol, the amount of input sales data, and the number of pieces.
6, the corresponding correction symbol, amount, department, etc. are printed, and these display and printing are done by CPU9.
This is done based on the control processing of
次に、第2図、第3図のフローチヤート図を参
照して動作を説明する。 Next, the operation will be explained with reference to the flowcharts of FIGS. 2 and 3.
まず売上データを入力するには、単品入力と、
同一商品については繰り返し入力するリピート入
力と、複数の同一商品について単価に対し個数を
乗算する乗算入力と、3つの方法がある。単品入
力は、置数キー2で金額を入力した後部門別キー
3を操作し、リピート入力は置数キー2、部門別
キー3を操作した後、繰り返し入力したい分だけ
部門別キー3を繰り返し操作し、乗算入力は置数
キー2で金額を入力した後乗算キー7を操作して
置数キーで売上個数を入力してから部門別キー3
を操作する。この各入力の場合、各キー2,3,
7の操作に応じてRAM11にフラグが立てら
れ、置数キー2操作によつて単品フラグ、部門別
キー3操作によつてリピートフラグ、乗算キー7
操作によつて乗算フラグがそれぞれ立てられる。 First, to enter sales data, enter single items,
There are three methods: repeat input, in which input is repeated for the same product, and multiplication input, in which the unit price is multiplied by the quantity for multiple identical products. For single item input, enter the amount using number key 2 and then operate department key 3. For repeat input, operate number key 2 and department key 3, then repeat department key 3 for as many times as you want to repeat. To input multiplication, input the amount using the number key 2, operate the multiplication key 7, enter the number of sales using the number key, and then press the department key 3.
operate. For each input, each key 2, 3,
A flag is set in the RAM 11 according to the operation of 7, a single item flag is set by operating the numeric key 2, a repeat flag is set by operating the department key 3, and a flag is set by the multiplication key 7.
Each operation sets a multiplication flag.
そして、部門別キー3操作によつて第2図に示
す入力処理動作が開始され、上記RAM11内の
フラグ情報に基づいて単品か、リピートか、乗算
かの各機能判別がなされる(ステツプS1)。い
ま、「01」部門の「150」円の単品入力があつたと
すると、RAM11内の単品フラグデータに基づ
き、CPU9は単品のモード判別を行い(ステツ
プS1)、表示部25に「150」円の金額を表示させ
(ステツプS2)、訂正データメモリ19の表示情報
エリア20aに訂正シンボル点灯のデータを書き
込むとともにデータエリア20bに「150」円の
金額データと「1」個の個数データを書き込む
(ステツプS3)。次いで、印字部26に「01」の部
門と「150」円の金額を印字させ(ステツプS4)、
訂正データメモリ19の印字情報エリア21aに
訂正シンボル印字のデータを書き込むとともにデ
ータエリア21bに「150」円の金額データと
「1」個の個数データを書き込む(ステツプS5)。 Then, by operating the departmental key 3, the input processing operation shown in FIG . ). Now, if a single item of ``150'' yen in the ``01'' category is input, the CPU 9 determines the mode of the single item based on the single item flag data in the RAM 11 (step S 1 ), and displays ``150 yen'' on the display section 25. (Step S 2 ), and write the correction symbol lighting data in the display information area 20a of the correction data memory 19, and write the amount data of ``150'' yen and the number data of ``1'' in the data area 20b. (Step S3 ). Next, the printing section 26 prints the department "01" and the amount "150" yen (step S 4 ).
The correction symbol printing data is written in the print information area 21a of the correction data memory 19, and the amount data of "150" yen and the number data of "1" are written in the data area 21b (step S5).
次に、CPU9は、合計データメモリ13の部
門別メモリ15の部門「01」のアドレスに
「150」円の累計書き込みを行い、部門別メモリ1
5よりグループ別メモリ16のリンク先アドレス
を読み出し、このグループ別メモリ16のリンク
先アドレスにも「150」円の累計書き込みを行
い、さらに時計回路18からの現在時刻に対応す
る時間帯アドレスを時間帯別メモリ17より読み
出し、この時間帯別メモリ17の該当アドレスに
も「150」円の累計書き込み行う(ステツプS6)。
これにあわせて、CPU9は、訂正データメモリ
19の演算情報エリア22a,23a,24aの
それぞれに減算命令データを書き込み、メモリア
ドレスエリア22b,23b24bにそれぞれ上
記「150」円の売上データを書き込んだ部門別メ
モリ15、グループ別メモリ16、時間帯別メモ
リ17の各アドレスを書き込み、データエリア2
2cに「150」円の金額データと「1」個の個数
データを書き込む(ステツプS7)。こうして単品
の売上データ入力処理が完了する。この場合、
「01」の部門別キー3操作によりRAM11のフラ
グデータは単品からリピートに切り換えられ、次
に操作されるキーが置数キー2であれば別の売上
データが入力されることになり上記リピートのフ
ラグデータはクリアされるが、「01」の部門別キ
ー3であれば次に述べるリピート処理がなされ
る。 Next, the CPU 9 writes a cumulative sum of 150 yen to the address of department "01" in the departmental memory 15 of the total data memory 13, and
5 reads the link destination address of the group memory 16, writes a cumulative sum of 150 yen to the link destination address of the group memory 16, and also writes the time zone address corresponding to the current time from the clock circuit 18 as a time. It is read out from the band memory 17, and a cumulative sum of 150 yen is also written to the corresponding address in the time band memory 17 (step S6 ).
In conjunction with this, the CPU 9 writes subtraction instruction data to each of the calculation information areas 22a, 23a, and 24a of the correction data memory 19, and writes the sales data of 150 yen to the memory address areas 22b and 23b, respectively. Write each address of separate memory 15, group memory 16, time zone memory 17, and data area 2.
The amount data of "150" yen and the number data of "1" are written in 2c (step S7 ). In this way, the single item sales data input process is completed. in this case,
By operating department key 3 of "01", the flag data in RAM 11 is switched from single item to repeat, and if the next key operated is numeric key 2, different sales data will be input. The flag data is cleared, but if the department key 3 is "01", the repeat process described below is performed.
すなわち、「01」の部門別キー3の繰り返し操
作により、RAM11内のリピートフラグデータ
に基づいて、CPU9はリピートのモード判別を
行い(ステツプS1)、表示部25に「150」円の金
額とリピート回数に応じた売上個数「2」を表示
させ(ステツプS8)、表示情報エリア20aに訂
正シンボルをリピートシンボル点灯のデータを書
き込むとともにデータエリア20bに「150」円
の金額データとリピート回数に応じた「2」個の
個数データを書き込む(ステツプS9)。次いで、
印字部26に「01」の部門と「150」円の金額を
上記ステツプS4で印字した後へ繰り返し印字させ
(ステツプS10)、印字情報エリア21aに訂正シ
ンボル印字のデータを書き込むとともにデータエ
リア21bに「150」円の金額データとリピート
回数に応じた「2」個の個数データを書き込む
(ステツプS11)。 That is, by repeatedly operating the department key 3 of "01", the CPU 9 determines the repeat mode based on the repeat flag data in the RAM 11 (step S 1 ), and displays the amount of "150" yen on the display section 25. The number of sales "2" corresponding to the number of repeats is displayed (step S 8 ), and the correction symbol and repeat symbol lighting data are written in the display information area 20a, and the amount data of "150" yen and the number of repeats are written in the data area 20b. The corresponding number data of "2" pieces is written (step S9 ). Then,
After printing the department "01" and the amount of "150" yen in step S4 above, the printing section 26 repeatedly prints it (step S10 ), and writes the correction symbol printing data in the print information area 21a, and also writes the data in the data area. The amount data of "150" yen and the number data of "2" pieces corresponding to the number of repeats are written in 21b (step S11 ).
次に、CPU9は、上記ステツプS6で書き込ん
だ部門別メモリ15、グループ別メモリ16及び
時間帯別メモリ17の各アドレスと同じアドレス
にさらに繰り返し「150」円の累計書き込みを行
い(ステツプS12)、演算情報エリア22a,23
a,24a及びメモリアドレスエリア22b,2
3b,24bの内容はそのままで、データエリア
22cの内容を「150」円の金額データとリピー
ト回数に応じた「2」個の個数データを書き込む
(ステツプS13)。こうして売上データのリピート
入力処理が行われ、部門別キー3が操作されるご
とに上記ステツプS1,S8〜S13までの動作が繰り
返され、各データエリア20b,21b,22c
のリピート回数に応じた個数データが「3」,
「4」……と書き換えられていく。 Next, the CPU 9 repeatedly writes a cumulative sum of 150 yen to the same addresses of the departmental memory 15, group memory 16, and time zone memory 17 that were written in step S6 (step S12 ) . ), calculation information areas 22a, 23
a, 24a and memory address area 22b, 2
The contents of 3b and 24b remain unchanged, and the amount data of ``150'' yen and the number data of ``2'' corresponding to the number of repeats are written in the contents of data area 22c (step S13 ). In this way, repeat input processing of sales data is performed, and each time the departmental key 3 is operated, the operations of steps S1 , S8 to S13 are repeated, and each data area 20b, 21b, 22c is
The number data according to the number of repeats is "3",
It is rewritten as "4"...
さらに、「01」部門の「150」円3個の乗算入力
があると、RAM11内の乗算フラグデータに基
づき、CPU9は乗算のモード判別を行い(ステ
ツプS1)、「150円×3=450円」の乗算を演算部1
0で行わせて(ステツプS14)、単価「150」円を
印字部26に印字させる(ステツプS15)。次いで
CPU9は、表示部25に乗算金額「450」円を表
示させ(ステツプS16)、表示情報エリア20aに
訂正シンボルのデータを書き込むとともにデータ
エリア20bに「450」円の乗算金額データと
「1」個の個数データを書き込む(ステツプ
S17)。この場合、売上個数は実際3個であるが、
乗算金額が入力されるから1個となる。そして、
印字部26に「01」の部門と「450」円の乗算金
額を印字させ(ステツプS18)、印字情報エリア2
1aに訂正シンボル印字のデータを書き込むとと
もにデータエリア21bに「450」円の乗算金額
データと「1」個の個数データを書き込む(ステ
ツプS19)。 Furthermore, when there is a multiplication input for three "150" yen in the "01" category, the CPU 9 determines the multiplication mode based on the multiplication flag data in the RAM 11 (step S 1 ), and calculates "150 yen x 3 = 450". Calculating unit 1 multiplies “yen”
0 (step S14 ), and the unit price "150" yen is printed on the printing section 26 (step S15 ). then
The CPU 9 causes the display unit 25 to display the multiplication amount "450" yen (step S16 ), writes the correction symbol data in the display information area 20a, and writes the multiplication amount data "450" yen and "1" in the data area 20b. Write the number of pieces data (step
S17 ). In this case, the number of units sold is actually 3 units, but
Since the multiplication amount is input, it becomes one piece. and,
The printing unit 26 prints the division "01" and the multiplied amount of "450" yen (step S18 ), and prints the printed information area 2.
The correction symbol printing data is written in 1a, and the multiplication amount data of "450" yen and the number data of "1" are written in the data area 21b (step S19 ).
次に、CPU9は、上記ステツプS6,S12と同様
にして部門別メモリ15、グループ別メモリ16
及び時間帯別メモリ17に「450」円の累計書き
込みを行い(ステツプS20)、演算情報エリア22
a,23a,24aに減算命令データを、メモリ
アドレスエリア22b,23b,24bに上記
「450」円の売上データを書き込んだ各メモリ1
5,16,17の各アドレスを、データエリア2
2cに「450」円の乗算金額データと「1」個の
個数データを書き込む(ステツプS21)。こうして
乗算した売上データ入力処理が完了し、さらに部
門別キー3を操作すれば、ステツプS8〜S13のリ
ピート入力処理がなされ、各データエリア20
b,21b,22cの個数データが「2」、「3」
……と書き換えられていき、「450」円の乗算金額
データがリピート入力されていくことになる。 Next, the CPU 9 stores the departmental memory 15 and group memory 16 in the same manner as in steps S 6 and S 12 above.
Then, the cumulative total of “450” is written in the time zone memory 17 (step S 20 ), and the calculation information area 22 is
Each memory 1 in which the subtraction instruction data was written to a, 23a, and 24a, and the sales data of ``450'' yen was written to the memory address areas 22b, 23b, and 24b.
Addresses 5, 16, and 17 are stored in data area 2.
The multiplication amount data of "450" yen and the number data of "1" are written in 2c (step S21 ). When the multiplied sales data input process is completed and the department key 3 is further operated, the repeat input process of steps S 8 to S 13 is performed, and each data area 20
The number data of b, 21b, 22c is "2", "3"
..., and the multiplication amount data of "450" yen is repeatedly input.
このようにして、合計データメモリ13への売
上データ登録(ステツプS6,S12,S20)にあたつ
て、あわせて訂正の演算命令データ、合計データ
メモリ内の訂正すべき売上データのアドレス及び
訂正データもセツト(ステツプS7,S13,S21)さ
れていく。 In this way, when registering sales data in the total data memory 13 (steps S 6 , S 12 , S 20 ), correction calculation command data and the address of the sales data to be corrected in the total data memory are also stored. and correction data are also set (steps S7 , S13 , S21 ).
次に第3図のフローチヤート図を参照して第2
図のフローチヤートに基づいていつたん登録した
売上データの訂正処理の動作について述べる。い
ま、上述した「150」円の単品入力について訂正
を行うものとする。 Next, referring to the flowchart in Figure 3,
The operation of correction processing of sales data once registered will be described based on the flowchart shown in the figure. Now, let us make a correction to the single item input of "150" yen mentioned above.
訂正キー6操作によつて第3図に示す訂正処理
動作が開始され、CPU9は訂正データメモリ1
9の表示情報エリア20aとデータエリア20b
とから訂正シンボル点灯データと「150」円の金
額データを読み出し(ステツプT1)、表示部9に
訂正シンボルと訂正金額「150」を表示させる
(ステツプT2)。次いでCPU9は訂正データメモ
リ19の印字情報エリア21aとデータエリア2
1bとから訂正シンボル印字データと「150」円
の金額データを読み出し(ステツプT3)、印字部
26に訂正シンボルと訂正金額「150」を表示さ
せる(ステツプT4)。 By operating the correction key 6, the correction processing operation shown in FIG. 3 is started, and the CPU 9 stores the correction data memory 1.
9 display information area 20a and data area 20b
The corrected symbol lighting data and the amount data of "150" yen are read from (step T 1 ), and the corrected symbol and corrected amount "150" are displayed on the display section 9 (step T 2 ). Next, the CPU 9 reads the print information area 21a and the data area 2 of the correction data memory 19.
The corrected symbol print data and the amount data of "150" yen are read from 1b (step T 3 ), and the corrected symbol and corrected amount "150" are displayed on the printing section 26 (step T 4 ).
次にCPU9は訂正データメモリ19の演算情
報エリア22aとメモリアドレスエリア22bと
データエリア22cとより減算命令データと部門
別メモリの「01」部門のアドレスと「150」円の
金額データ及び「1」個の個数データを読み出し
(ステツプT5)、部門別メモリ15の「01」部門
のアドレスの合計売上データから「150円×1=
150円」の減算処理を行い(ステツプT6)、訂正
処理が終了したかの判断をし(ステツプT7)、ま
だグループ別メモリ16と時間帯別メモリ17に
ついての訂正処理も残つているからステツプT5
に戻る。そして、グループ別メモリ16と時間帯
別メモリ17とについても該当するアドレスの合
計データについて「150円×1=150円」の減算処
理を行う(ステツプT5〜T7)。この場合、メモリ
アドレス24bのアドレスに基づき入力時の時間
帯アドレスについて訂正処理を行うから、訂正時
の時間帯が入力時の時間帯とずれていても誤つた
訂正を行うことがない。 Next, the CPU 9 uses the calculation information area 22a, memory address area 22b, and data area 22c of the correction data memory 19 to obtain the subtraction instruction data, the address of the department "01" in the departmental memory, the amount data "150" and the amount data "1". 150 yen x 1 =
150 yen" (step T 6 ), and it is determined whether the correction processing has been completed (step T 7 ), since correction processing for group memory 16 and time zone memory 17 still remains. Step T 5
Return to Then, the subtraction process of "150 yen x 1 = 150 yen" is performed for the total data of the corresponding address in the group memory 16 and the time zone memory 17 (steps T5 to T7 ). In this case, since the correction process is performed for the time zone address at the time of input based on the address of the memory address 24b, even if the time zone at the time of correction deviates from the time zone at the time of input, erroneous correction will not be performed.
また、リピート入力後の訂正にあつては、リピ
ート回数が2回であれば、個数データが「2」と
なつているから、「150円×2=300円」の減算処
理が行われる(ステツプT6)とともにリピートシ
ンボルも表示される(ステツプT2)、乗算入力後
の訂正にあつては、上記の例によれば150の商品
3個の乗算金額「450」円がすでにセツトされて
いるから「450円×1=450円」の減算処理がなさ
れる(ステツプT6)とともに「450」円の表示と
印字が行われる(ステツプT2,T4)ことになる。 In addition, when making corrections after repeat input, if the number of repeats is 2, the number data is "2", so a subtraction process of "150 yen x 2 = 300 yen" is performed (step T 6 ) and the repeat symbol are also displayed (step T 2 ). In the case of correction after inputting the multiplication, according to the above example, the multiplication amount for 3 products of 150 is already set to 450 yen. "450 yen x 1 = 450 yen" is subtracted from the sum (step T 6 ), and "450 yen" is displayed and printed (steps T 2 , T 4 ).
こうして、全体のプログラムは第2図、第3図
に示すように簡単なものとなり、また入力処理と
訂正処理の各プログラムを分離できるからプログ
ラム修正にあたつての変更は小さいもので済む。 In this way, the entire program becomes simple as shown in FIGS. 2 and 3, and since each program for input processing and correction processing can be separated, only small changes are required when modifying the program.
なお、通常の売上はなく返品により返金を行う
ときは、入力処理時に合計データメモリ13に対
し減算処理がなされる(ステツプS6,S12,S20)
とともに、訂正データメモリ19の演算情報エリ
ア22a,23a,24aに加算命令データが書
き込まれ(ステツプS7,S13,S21)、返品入力を
訂正する場合は加算処理がなされる(ステツプ
T6)ことになる。 Note that when there is no normal sales and a refund is made due to returned goods, subtraction processing is performed on the total data memory 13 during input processing (steps S 6 , S 12 , S 20 ).
At the same time, addition instruction data is written to the operation information areas 22a, 23a, and 24a of the correction data memory 19 (steps S 7 , S 13 , and S 21 ), and when the return input is corrected, addition processing is performed (step
T 6 ) It will happen.
また、上記実施例では訂正データメモリ19は
1つだけ設けていたが、複数にして、いくつかの
入力売上データに対して訂正データを順次セツト
していき、数ステツプ前に入力された売上データ
について訂正できるようにしてもよい。 In addition, although only one correction data memory 19 was provided in the above embodiment, a plurality of correction data memories 19 are provided, and correction data is sequentially set for several pieces of input sales data. You may also be able to make corrections.
[発明の効果]
以上述べたように本発明の売上データ処理装置
は、売上データの登録処理時において、この売上
データに対応する種々の訂正データをあらかじめ
記憶させておき、訂正指示があればこれらデータ
を読み出して訂正処理を行うようにしたから、訂
正のための処理プログラムと入力のための処理プ
ログラムとが別体となつて非常に簡略化でき、そ
れだけ訂正処理も速くなるとともにマイクロプロ
グラムを記憶する容量も小さくて済み、またプロ
グラムが簡略化されることによりプログラムの変
更も楽となる他、訂正すべき売上データが累計さ
れたメモリのアドレスも訂正データの1つとして
セツトするから、訂正処理にあたつて誤つて別の
アドレスのデータを訂正してしまうこともなく、
さらに訂正データをあらかじめ記憶しているか
ら、訂正にあたつて訂正金額をわざわざ入力する
必要もなく、訂正キーの操作だけで訂正処理が即
座になされる等の種々の効果を奏する。[Effects of the Invention] As described above, the sales data processing device of the present invention stores various correction data corresponding to the sales data in advance during the registration process of sales data, and if there is a correction instruction, the sales data processing device of the present invention stores the various correction data in advance. Since the data is read and corrected, the processing program for correction and the processing program for input are separated, which greatly simplifies the process, speeding up the correction process, and storing microprograms. In addition, since the program is simplified, it is easier to change the program, and the memory address where the sales data to be corrected is accumulated is also set as one of the correction data, making the correction process easier. When doing so, you will not accidentally correct data at another address,
Furthermore, since the correction data is stored in advance, there is no need to take the trouble to input the correction amount when making a correction, and the correction process can be performed immediately by simply operating the correction key, which provides various effects.
図面第1図〜第3図は本発明の一実施例を示す
もので、第1図は電子レジスタの全体回路図、第
2図は売上データ入力処理の動作を示すフローチ
ヤート図、第3図は第2図のフローチヤートに基
づいて入力した売上データの訂正処理の動作を示
すフローチヤート図である。
1……キー入力部、6……訂正キー、9……
CPU(中央処理装置)、13……合計データメモ
リ、19……訂正データメモリ、22a,23
a,24a……演算情報エリア、22b,23
b,24b……メモリアドレスエリア、22c…
…データエリア。
Figures 1 to 3 show an embodiment of the present invention, in which Figure 1 is an overall circuit diagram of an electronic register, Figure 2 is a flowchart showing the operation of sales data input processing, and Figure 3 is a flow chart showing the operation of sales data input processing. 2 is a flowchart showing the operation of correction processing of input sales data based on the flowchart of FIG. 2. FIG. 1...Key input section, 6...Correction key, 9...
CPU (Central Processing Unit), 13... Total data memory, 19... Correction data memory, 22a, 23
a, 24a... calculation information area, 22b, 23
b, 24b...Memory address area, 22c...
...Data area.
Claims (1)
れた売上データの分類別合計データを記憶する合
計データ記憶手段と、売上データが入力された際
に、入力された売上データに対応する訂正データ
及び入力された売上データが累計された上記合計
データ記憶手段のアドレス及び訂正時に実行すべ
き演算命令を記憶する訂正情報記憶手段と、上記
入力手段より訂正指示の入力が行われた際に、上
記訂正情報記憶手段より上記訂正データ、上記ア
ドレス、上記演算命令を読み出し、上記アドレス
で指定された上記合計データ記憶手段内の合計デ
ータに対して上記訂正データに基づく上記演算命
令による訂正演算を行う演算手段とを具備してな
る売上データ処理装置。1. Input means for inputting sales data, etc., total data storage means for storing total data by category of input sales data, and correction data and correction data corresponding to input sales data when sales data is input. a correction information storage means for storing the address of the total data storage means in which the input sales data is accumulated and an arithmetic instruction to be executed at the time of correction; Arithmetic means that reads the correction data, the address, and the arithmetic instruction from the information storage means, and performs a correction operation on the total data in the total data storage means specified by the address using the arithmetic instruction based on the correction data. A sales data processing device comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21629083A JPS60108995A (en) | 1983-11-18 | 1983-11-18 | Sales data processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21629083A JPS60108995A (en) | 1983-11-18 | 1983-11-18 | Sales data processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60108995A JPS60108995A (en) | 1985-06-14 |
| JPS6248277B2 true JPS6248277B2 (en) | 1987-10-13 |
Family
ID=16686214
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP21629083A Granted JPS60108995A (en) | 1983-11-18 | 1983-11-18 | Sales data processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60108995A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5755473A (en) * | 1980-09-19 | 1982-04-02 | Omron Tateisi Electronics Co | Electronic cash register |
-
1983
- 1983-11-18 JP JP21629083A patent/JPS60108995A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60108995A (en) | 1985-06-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6262397B2 (en) | ||
| JPH08305959A (en) | Sales data processor | |
| JP3218776B2 (en) | Electronic cash register | |
| JPS6248277B2 (en) | ||
| JPS6235715B2 (en) | ||
| JPS6239465B2 (en) | ||
| JP3083246B2 (en) | Label printer | |
| JP2506098B2 (en) | Transaction processor | |
| JPH0413757B2 (en) | ||
| JPS61240396A (en) | Pos system | |
| JPH0258672B2 (en) | ||
| JP2901813B2 (en) | Electronic cash register | |
| JP2723236B2 (en) | Character reader | |
| JPS5836388B2 (en) | electronic cash register | |
| JPH0119197B2 (en) | ||
| JPH02272697A (en) | Sales data processor | |
| JPS63189996A (en) | Transaction processor | |
| JPH10260998A (en) | CAD equipment | |
| JPS63286999A (en) | cash register machine | |
| JPH0696366A (en) | Actual result screen display system of ordering system | |
| JPS5833983B2 (en) | electronic cash register | |
| JPS61193297A (en) | Sales data processor | |
| JPS6061889A (en) | Electronic cash register | |
| JPH04348418A (en) | Field control system | |
| JPS62191923A (en) | Data processor |