JPH0340066A - Slip issuing device - Google Patents

Slip issuing device

Info

Publication number
JPH0340066A
JPH0340066A JP1174769A JP17476989A JPH0340066A JP H0340066 A JPH0340066 A JP H0340066A JP 1174769 A JP1174769 A JP 1174769A JP 17476989 A JP17476989 A JP 17476989A JP H0340066 A JPH0340066 A JP H0340066A
Authority
JP
Japan
Prior art keywords
data
slip
input
correction
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1174769A
Other languages
Japanese (ja)
Inventor
Yoshiharu Oka
義治 岡
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 JP1174769A priority Critical patent/JPH0340066A/en
Publication of JPH0340066A publication Critical patent/JPH0340066A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically issue a formal slip without inputting the data again from the beginning by reissuing the slip by bringing newly data a one-slip portion after correction to printing output at the time when an input of the data of a one-slip portion is ended, when the inputted data is corrected on the way of an input of slip data. CONSTITUTION:When slip data is inputted successively at every one item, the inputted data is brought to printing output at every one item by a printing means 1. When an end key, etc., are operated at the time when an input of data of a one-slip portion is ended, a discriminating means 4 discriminates whether data in a slip data storage means 2 is corrected or not. As a result, in the case the correction is executed on the way of an input of a slip, a printing control means 5 reads out successively data of a one-slip portion from in the slip data storage means 2, and instructs to reprint its data to the printing means 1, and slip data after correction is brought to printing output successively in accordance with a slip format determined in advance. In such a way, even if the inputted data is corrected on the way of an input of the slip data, a formal slip can be issued without inputting again the data from the beginning.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、1伝票分の各アイテムに対応するデータが
順次入力される毎に、入力されたデータをその都度印字
して伝票を発行する伝票発行装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] This invention prints the input data each time the data corresponding to each item of one slip is input in sequence and issues a slip. This invention relates to a slip issuing device.

[発明の概要] この発明は、入力された伝票データをその都度印字して
伝票を発行する伝票発行装置であって、伝票データの入
力途中で入力済のデータが訂正された際、1伝票分のデ
ータ入力終了時に訂正後の1伝票分のデータを新たに印
字出力して伝票の再発行を行うようにしたものである。
[Summary of the Invention] The present invention is a slip issuing device that prints input slip data each time and issues a slip, and when inputted data is corrected during input of slip data, one slip is printed. When data entry is completed, the corrected data for one slip is newly printed out and the slip is reissued.

[従来の技術] 従来、データが入力される毎に入力されたデータを逐次
印字する簡易型の入力端末機が知られている。
[Prior Art] Conventionally, a simple input terminal device is known that sequentially prints input data each time the data is input.

ところで、この種の入力端末機の使い方としてこの入力
端末機を用いて伝票を発行することも考えられる。この
場合、1アイテム毎に入力した伝票データが逐次印字さ
れる為、印字内容を確認しながら伝票データを入力する
ことができる。
By the way, one possible way to use this type of input terminal is to issue a slip using this input terminal. In this case, since the slip data input for each item is printed one after another, the slip data can be input while checking the printed contents.

[発明が解決しようとする課題] しかしながら、伝票入力途中で入力済のデータを訂正し
た場合、lアイテムに対して訂正前のデータと訂正後の
データとが夫々印字される為、伝票の印字内容が見難く
なると共に伝票の印字フォーマットが崩れてしまう。
[Problem to be Solved by the Invention] However, if input data is corrected during the input of a slip, the data before correction and the data after correction are printed for each item, so the printed contents of the slip becomes difficult to read and the print format of the slip becomes corrupted.

そこで、このような場合、データ入力を途中で中断し、
最初から伝票データを1アイテムずつ入力し直して印字
させれば正式な伝票を発行することができるが、データ
を最初から入力し直すことは手間がかかる他、新たな入
力ミスを起すおそれもあり、合理的な方法とは言えない
Therefore, in such cases, you can interrupt data entry midway and
If you re-enter the slip data one item at a time from the beginning and print it out, you can issue an official slip, but re-entering the data from the beginning is time-consuming and may lead to new input errors. , cannot be called a rational method.

この発明の課題は、伝票データの入力途中で入力済のデ
ータを訂正したとしても最初からデータを入力し直すこ
となく正式伝票を自動発行できるようにすることである
An object of the present invention is to automatically issue an official slip without having to re-enter the data from the beginning even if the data that has already been input is corrected during the input of the slip data.

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

印字手段1(第1図の機能ブロック図を参照、以下同じ
)は、l伝票用の各アイテムに対応するデータが順次入
力される毎に、入力されたデータを予め設定されている
伝票フォーマットにしたがって印字出力するサーマルプ
リンタ等を備えた印字装置である。
The printing means 1 (see the functional block diagram in Fig. 1; the same applies hereinafter) converts the input data into a preset slip format each time data corresponding to each item for a slip is input in sequence. Therefore, it is a printing device equipped with a thermal printer or the like for printing out.

伝票データ記憶手段2は入力されたデータを順次記憶す
る伝票メモリで、例えばランダムアクセスメモリによっ
て構成されている。
The slip data storage means 2 is a slip memory that sequentially stores input data, and is constituted by, for example, a random access memory.

訂正手段3は入力済のデータを訂正する訂正指示に応答
して伝票データ記憶手段2内のデータを訂正するもので
、例えば訂正指示されたアイムチに対応する伝票データ
記憶手段2内のデータを訂正データと入替える。なお、
訂正とは追加、削除等を含む意味である。
The correction means 3 corrects the data in the slip data storage means 2 in response to a correction instruction to correct input data, and for example, corrects the data in the slip data storage means 2 corresponding to the eye whip for which correction has been instructed. Replace with data. In addition,
Correction means addition, deletion, etc.

判別手段4は1伝票分のデータ入力終了時に、伝票デー
タ記憶手段2内のデータが訂正されたか否かの判別を行
う。
The determining means 4 determines whether or not the data in the slip data storage means 2 has been corrected at the end of inputting data for one slip.

印字制御手段5は判別手段4による判別の結果、データ
訂正が行われた場合には伝票データ記憶手段2内から1
伝票分のデータを順次読み出して印字手段lにそのデー
タの再印字を指示する。
As a result of the determination by the determination means 4, the print control means 5 reads 1 from the slip data storage means 2 when data correction has been performed.
The data for the slip is sequentially read out and the printing means 1 is instructed to reprint the data.

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

いま、伝票データを1アイテム毎に顔次入力すると、入
力されたデータは印字手段1によって1アイテム毎に印
字出力されるが、この場合、印字手段1は予め設定され
ている伝票フォーマットにしたがって入力データを対応
する印字項目領域に割り当てながら印字出力する。また
入力されたデータは1アイテム毎に印字出力される他、
伝票データ記憶手段2に書き込まれる。
Now, when the slip data is input one item at a time, the input data is printed out for each item by the printing means 1, but in this case, the printing means 1 inputs the data according to the preset slip format. Print out data while assigning it to the corresponding print item area. In addition to printing out the input data for each item,
It is written into the slip data storage means 2.

このような伝票入力途中で入力済のデータを訂正する為
に訂正データを入力すると、入力された訂正データは印
字手段lによって印字出力される。また訂正手段3は訂
正指示に応答して伝票データ記憶手段2内のデータを訂
正する。
When correction data is input to correct the data that has already been input during the inputting of such a slip, the input correction data is printed out by the printing means l. Further, the correction means 3 corrects the data in the slip data storage means 2 in response to a correction instruction.

しかして、上述のように伝票入力途中で入力済のデータ
を訂正したとしても、データ入力を中断せず、1伝票分
のデータを全て入力し終るまで入力し続ける。
Therefore, even if inputted data is corrected during input of a slip as described above, the data input is not interrupted and continues to be inputted until all the data for one slip has been inputted.

いま、l伝票用のデータ入力終了時に終了キー等が操作
されると、判別手段4は伝票データ記憶手段2内のデー
タが訂正されたか否かの判別を行い、その結果、伝票入
力途中で訂正が行われた場合、印字制御手段5は伝票デ
ータ記憶手段2内から1伝票分のデータを順次読み出し
て印字手段1にそのデータの再印字を指示する。これに
よって訂正後の伝票データが予め決められた伝票フォー
マットにしたがって順次印字出力される。
Now, when the end key or the like is operated at the end of inputting data for a slip, the determining means 4 determines whether the data in the slip data storage means 2 has been corrected or not, and as a result, the correction is made during the entry of the slip. If this is done, the print control means 5 sequentially reads data for one slip from the slip data storage means 2 and instructs the printing means 1 to reprint the data. As a result, the corrected slip data is sequentially printed out according to a predetermined slip format.

したがって、伝票データの入力途中で入力済のデータを
訂正したとしても最初からデータを入力し直すことなく
正式伝票を自動発行することができる。
Therefore, even if the entered data is corrected during the input of the slip data, the official slip can be automatically issued without having to re-enter the data from the beginning.

[実施例] 以下、第2図〜第6図を参照して一実施例を説明する。[Example] Hereinafter, one embodiment will be described with reference to FIGS. 2 to 6.

第2図は伝票発行用入力端末機の基本的な構成を示した
ブロック図である。なお、この入力端末機は電池を電源
とするポータプル型の端末機で、営業担当者等が外出先
で顧客等に伝票を発行する際に使用される。
FIG. 2 is a block diagram showing the basic configuration of the input terminal for issuing slips. Note that this input terminal is a portable type terminal powered by a battery, and is used when a salesperson or the like issues a slip to a customer or the like on the go.

CPUIIは予め格納されている各種の処理プログラム
にしたがって伝票発行処理やホストコンピュータ(図示
せず)へ伝票データを伝送する伝送処理等を制御する。
The CPU II controls slip issuing processing, transmission processing for transmitting slip data to a host computer (not shown), etc. according to various processing programs stored in advance.

ここで、伝票発行時にCPUIIはアイテムメモリ12
を参照し、入力部13から入力すべきデータを指示する
メツセージデータを表示部14から表示出力させ、それ
に応じて入力部13から入力された伝票データを取り込
んで入力バッファ15にセットする。
Here, when issuing a slip, the CPU II uses the item memory 12.
, message data indicating the data to be input from the input section 13 is displayed and output from the display section 14, and the slip data input from the input section 13 is taken in and set in the input buffer 15 accordingly.

アイテムメモリ12は各種伝票の入力形式に対応して伝
票毎の入力手順や処理内容を定義するデータを記憶する
もので、その内容はユーザによって任意に設定されたも
のである。即ち、アイテムメモリ12は例えば1伝票分
の各アイテムに対応して「年月日」、「伝票恥」、「担
当者コード」、「商品コード」、「数量j等を順次入力
すべきことを指示したり、あるいは入力されたデータ(
例えば担当者コード)に基づいて索引テーブル(図示せ
ず)を検索し所定のデータ(例えば担当者名)を作成す
べきことを定義したり、「単価×数量」の演算を実行指
示して金額データを作成すべきことを定義する。この場
合、CPUIIはアイテムメモリ12から1伝票分の各
アイテムに対応する処理内容を順次読み出すと共に、読
み出した処理内容が入力部13からデータを入力すべき
ことを定義する場合には入力部13からそのデータを入
力すべきことを指示するメツセージデータを表示出力さ
せてキー人力待ちとなり、またその他の処理内容を定義
する場合には当該処理を実行してデータの作成を行う。
The item memory 12 stores data that defines input procedures and processing contents for each slip in accordance with input formats of various slips, and the contents are arbitrarily set by the user. That is, the item memory 12 stores information such as "year/month/day", "slip shame", "person in charge code", "product code", "quantity j, etc." to be input in sequence for each item of one slip. instructions or input data (
For example, you can define that an index table (not shown) should be searched based on the person in charge code (for example, person in charge code) and create predetermined data (for example, person in charge name), or you can specify the amount of money by instructing to execute the calculation of ``unit price x quantity''. Define what data should be created. In this case, the CPU II sequentially reads the processing contents corresponding to each item for one slip from the item memory 12, and if the read processing contents define that data should be input from the input section 13, the CPU II Message data instructing that the data should be input is displayed and output, and the system waits for key input, and if other processing contents are to be defined, the processing is executed to create the data.

入力@[113はそのキーボード上に各種の文字キーの
他、伝票データを印字部16から印字出力させて伝票の
発行を指示する為の伝票発行キーや伝票メモリ17内の
伝票データを伝送用インターフェース部18に与えてホ
ストコンピュータへ伝送する為の伝送キー等、各種のフ
ァンクションキーを備えたキー人力装置である。
Input@[113 is an interface for transmitting various character keys on the keyboard, a slip issuing key for printing out slip data from the printing unit 16 to instruct issuing of slips, and slip data in the slip memory 17. This is a manual key device equipped with various function keys such as a transmission key for transmitting data to the unit 18 and transmitting it to the host computer.

表示部14は数行分のデータを表示する液晶表示装置で
ある。
The display unit 14 is a liquid crystal display device that displays several lines of data.

入力バッファ15は入力部13から入力されたデータや
アイテムメモリ12に定義されている処理内容に応じて
作成されたデータを一時記憶するもので、CPUIIは
入力バッファ15内のデータを読み出して1アイテム毎
に伝票メモリ17に書き込むと共に、フォーマットメモ
リ19に予め設定されている伝票フォーマット通りに印
字部16から印字出力させる。
The input buffer 15 temporarily stores data input from the input unit 13 and data created according to the processing content defined in the item memory 12, and the CPU II reads the data in the input buffer 15 and stores one item. At the same time, each document is written in the slip memory 17 and printed out from the printing section 16 according to the slip format preset in the format memory 19.

印字部16はサーマルプリンタによって構成され、ロー
ル紙に伝票データや罫線等を印字出力して所定フォーマ
ットの伝票を発行する。
The printing unit 16 is constituted by a thermal printer, and prints out slip data, ruled lines, etc. on roll paper to issue a slip in a predetermined format.

伝票メモリ17は複数伝票分、例えば営業担当者が入力
した一日分の伝票データを記憶可能なもので、その内容
は伝送用インターフェース部18を介してホストコンピ
ュータへ収集される。
The slip memory 17 is capable of storing a plurality of slips, for example, one day's worth of slip data input by a sales person, and the contents are collected to the host computer via the transmission interface section 18.

なお、ワークメモリ20は訂正キーフラグや訂正フラグ
等を記憶するメモリである。ここで、訂正キーフラグは
伝票データの入力途中で既に入力したデータを訂正する
為に入力部13に設けられている訂正キーが操作された
際にオンされるフラグ、また、訂正フラグは伝票メモリ
17内に書き込まれた入力済のデータが訂正されたこと
を示すフラグである。
Note that the work memory 20 is a memory that stores correction key flags, correction flags, and the like. Here, the correction key flag is a flag that is turned on when a correction key provided in the input unit 13 is operated in order to correct data that has already been input during the input of slip data. This is a flag indicating that the input data written in the file has been corrected.

次に、本実施例の入力端末機で伝票を発行する場合の動
作を第3図〜第6図を参照して説明する。
Next, the operation when issuing a slip using the input terminal of this embodiment will be explained with reference to FIGS. 3 to 6.

ここで、第3図は伝票発行処理を示したフローチャート
である。また、第4図〜第6図は発行された伝票の印字
例を示し、第4図は1伝票分のデータ入力時に訂正処理
が行われなかった場合の伝票印字例、第5図はl伝票台
のデータ入力途中で直前訂正が行われた場合の伝票印字
例、第6図はl伝票台のデータ入力終了時に数アイテム
分遡ったデータを訂正した場合の伝票印字例を示してい
る。
Here, FIG. 3 is a flowchart showing the slip issuing process. Also, Figures 4 to 6 show printing examples of issued slips, Figure 4 is an example of slip printing when correction processing is not performed when data for one slip is input, and Figure 5 is an example of printing of 1 slip. FIG. 6 shows an example of a slip printed when a last-minute correction is made during data entry on a machine. FIG. 6 shows an example of a slip printed when data that goes back several items is corrected at the end of data entry on a slip machine.

以下、第3図に示す伝票発行処理を第4図〜第6図の印
字例毎に順次説明する。
Hereinafter, the slip issuing process shown in FIG. 3 will be sequentially explained for each printing example shown in FIGS. 4 to 6.

訂正処理を行わない場合(第4図) 伝票発行キーが操作されると、CPUIIは伝票発行処
理プログラムを起動し1発行指示された伝票をアイテム
メモリ12から検索し、該当する伝票の先頭アイテムを
指定する(ステップS2)、そして、指定アイテムに対
応してアイテムメモリ12内に定義されている処理内容
を調べ(ステップS2)、その結果、入力部13からデ
ータを入力すべきことを示す場合には、そのデー1 りの入力を促すメツセージデータを表示部14から表示
出力させ(ステップS3)、キー人力待ちとなる(ステ
ップS4)。いま、データを入力する文字キー等が操作
された場合には、1文字ずつデータが入力される毎に、
入力データを入力バッファ15にセットする(ステップ
S5)・一方、指定アイテムに対応する処理内容がデー
タ入力を定義するものでなければ、ステップS2でその
ことが検出されてステップS6に進み、索引テーブルを
参照したり、定義内容に応じた所定の演算を実行し当該
アイテムに対応するデータを作成して入力バッファ15
ヘセツトする(ステップS7)。そして、キー人力待ち
となる(ステップS4)。
When correction processing is not performed (Figure 4) When the slip issuing key is operated, the CPU II starts the slip issuing processing program, searches the item memory 12 for the slip for which issuing is instructed, and selects the first item of the corresponding slip. (step S2), and examines the processing content defined in the item memory 12 corresponding to the specified item (step S2). Then, message data prompting the input of the data is displayed on the display section 14 (step S3), and the system waits for key input (step S4). Now, when a character key etc. for inputting data is operated, each time data is inputted one character at a time,
Set the input data in the input buffer 15 (step S5). On the other hand, if the processing content corresponding to the designated item does not define data input, this is detected in step S2 and the process proceeds to step S6, where the index table is or perform predetermined calculations according to the definition contents to create data corresponding to the item and input it to the input buffer 15.
It is set (step S7). Then, the key waits for human power (step S4).

これによって入力バッファ15には1アイテム分のデー
タがセットされる。しかして、次のアイテム、を指定す
る為にアイテムキーが操作されると、ステップS8に進
み、ワークメモリ20内に訂正キーフラグがセットされ
ているか否かを調べる。ここで、訂正キーフラグは訂正
キーが操作さ 2 れた際にセットされる。したがって、いまの場合、訂正
処理を行っていない為、ステップ317に進み、入力バ
ッファ15内にセットされているlアイテム分のデータ
を伝票メモリ17に書き込んだのち、ステップS14に
進み、入力バッファ15内のデータをフォーマットメモ
リ19に設定されている伝票フォーマットにしたがって
印字部16から印字出力させる。そして、l伝票台の全
アイテム終了かを調べ(ステップ515)、終了してい
なければステップ516で次アイテムを指定したのち、
ステップS2に戻る。
As a result, data for one item is set in the input buffer 15. When the item key is operated to designate the next item, the process advances to step S8 to check whether the correction key flag is set in the work memory 20. Here, the correction key flag is set when the correction key is operated. Therefore, in this case, since no correction processing is being performed, the process advances to step 317, where the data for l items set in the input buffer 15 is written to the slip memory 17, and then the process advances to step S14, where the input buffer 15 The data therein is printed out from the printing section 16 according to the slip format set in the format memory 19. Then, it is checked whether all items on the slip table have been completed (step 515), and if not, the next item is specified in step 516, and then
Return to step S2.

このような処理が1伝票分の全アイテムに対応して順次
繰り返される結果、伝票データが1アイテム毎に伝票メ
モリ17に書き込まれると共に、印字部16から印字出
力される。
As a result of sequentially repeating such processing for all items of one slip, slip data is written to the slip memory 17 for each item and is printed out from the printing unit 16.

しかして、1伝票分のデータ入力が終了すると、ステッ
プ315でそのことが検出されてステップS20に進み
、キー人力待ちとなる。
When data input for one slip is completed, this is detected in step 315 and the process proceeds to step S20, where the process waits for key input.

ここで、終了キーが操作されると、ワークメモリ20内
に訂正フラグがセットされているか否かをWべる(ステ
ップ521)、ここで、訂正フラグは伝票メモリ17内
のデータを訂正したときにセットされる。したがって、
いまの場合、訂正処理を行っていない為、この時点で伝
票発行処理は終了する。
Here, when the end key is operated, it is checked whether or not the correction flag is set in the work memory 20 (step 521). is set to therefore,
In this case, since no correction processing is being performed, the slip issuance processing ends at this point.

このように訂正処理を行わない場合には終了キーを操作
した時点で発行された伝票が所定フォーマット通りの正
式伝票となる(第4図参照)。
If correction processing is not performed in this manner, the slip issued at the time the end key is operated becomes the official slip in accordance with the predetermined format (see FIG. 4).

途中で訂正処  行った場合(第5図)いま、「数量」
を入力した時点で、そのデータの間遠に気付き、直前に
入力した数量データを訂正するものとなる。この場合、
先ず訂正キーを操作する。すると直前のアイテムが指定
され(ステップ318)、そして、ワークメモリ20内
の訂正キーフラグがオンされる(ステップ519)。
If you make corrections midway through (Figure 5), now the “Quantity”
When inputting the data, the user notices the difference between the data and corrects the quantity data input just before. in this case,
First, operate the correction key. Then, the immediately previous item is specified (step 318), and the correction key flag in the work memory 20 is turned on (step 519).

その後、ステップS3に戻り、指定アイテムの入力を促
すメツセージ表示が行われる。この場合、訂正すべき数
量データを入力すべきことが指示される。
Thereafter, the process returns to step S3, and a message prompting the user to input the designated item is displayed. In this case, you will be prompted to enter the quantitative data to be corrected.

いま、訂正データを入力すると、入力バッファ15にセ
ットされる(ステップS5)。そして、アイテムキーを
操作すると、ステップS8で訂正キーフラグ右りが検出
されるので、ステップS9に進み、入力バッファ15内
の訂正データと指定アイテムに対応する伝票メモリ17
内のデータとを比較し、それらが一致するか否かを調べ
る(ステップ5IO)、ここで、訂正前のデータと訂正
後のデータとが相違していることを条件に、ワークメモ
リ20内の訂正フラグをオンさせる(ステップ511)
。そして、訂正前のデータと訂正後のデータとを区分す
る為に訂正印字を行う(ステップ512)。これによっ
て、第5図に示すように破線と共に“修正”という文字
が印字出力される。そして、入力バッファ15内の訂正
データを指定アイテムに対応する伝票メモリ17内のデ
ータと入替える(ステップ513)。次に、入力バッフ
ァ15内のデータが印字出力される為(ステップ514
)、訂正前後の数量データが゛修正”という文字を挾ん
で夫々印字されること 5 になる(第5図参照)。
Now, when correction data is input, it is set in the input buffer 15 (step S5). Then, when the item key is operated, the right correction key flag is detected in step S8, so the process proceeds to step S9, and the correction data in the input buffer 15 and the slip memory 17 corresponding to the designated item are
The data in the work memory 20 is compared with the data in the work memory 20 to check whether they match (step 5IO). Turn on the correction flag (step 511)
. Then, correction printing is performed to distinguish the data before correction from the data after correction (step 512). As a result, as shown in FIG. 5, the characters "correction" are printed out along with a broken line. Then, the correction data in the input buffer 15 is replaced with the data in the slip memory 17 corresponding to the specified item (step 513). Next, since the data in the input buffer 15 is printed out (step 514
), the quantity data before and after the correction will be printed separately with the words ``revised'' in between (see Figure 5).

そして、全アイテム終了かを調べ(ステップ515)、
終了していなければ次のアイテムを指定しくステップ3
16)、以下ステップS2に戻って全アイテム終了まで
1アイテム毎に伝票データを伝票メモリ17に書き込む
と共に印字部16から印字出力させる動作を繰り返す、
つまり、データ入力途中で直前訂正が行われた場合でも
その時点で伝票発行処理を中断せず、全アイテム終了ま
で続行する。
Then, check whether all items are finished (step 515),
If not finished, specify the next item in step 3.
16) Then, return to step S2 and repeat the operation of writing the slip data into the slip memory 17 and printing it out from the printing unit 16 for each item until all items are completed.
That is, even if a last-minute correction is made during data entry, the slip issuing process is not interrupted at that point and continues until all items are completed.

しかして、全アイテム終了が検出された際のキー人力待
ち状態において(ステップ520)、終了キーが操作さ
れると、ステップ521で訂正フラグ有りが検出される
。すると、この時点で発行された伝票の無効を示す識別
データを印字出力する(ステップ522)。この場合、
第5図に示すように破線と共に“上記伝票無効”という
文字列が印字される。そして、ステップ323に進み、
上述のようにして直前訂正されたデータによってそれに
続くアイテムのデータが変更される 6 か否かを調べる。この場合、数量データが訂正されたの
で、その数量データに基づいて算出される金額データが
変更される為、その訂正も必要となる。また、商品コー
ドが訂正された場合には、単価および金額の訂正も必要
となる。なお、上述の直前訂正が行われた際(ステップ
513)、訂正アイテムに対応して訂正有りを示す識別
データを伝票メモリ17内にセットしておけば、ステッ
プS23で訂正アイテムを判別することができる。
When the end key is operated in the state of waiting for human input when all items are detected to be completed (step 520), the presence of a correction flag is detected in step 521. Then, identification data indicating the invalidity of the issued slip at this point is printed out (step 522). in this case,
As shown in FIG. 5, the character string "Above slip invalid" is printed along with a broken line. Then, proceed to step 323,
It is checked whether the data of the following item is changed by the data that was just corrected as described above. In this case, since the quantity data has been corrected, the amount data calculated based on the quantity data has been changed, so it is also necessary to correct it. Furthermore, if the product code is corrected, the unit price and amount also need to be corrected. Note that when the above-mentioned last-minute correction is performed (step 513), if identification data indicating that a correction has been made is set in the slip memory 17 corresponding to the corrected item, the corrected item can be identified in step S23. can.

しかして、ステップ323で他のアイテムの変更有りが
検出されると、伝票メモリ17から必要なデータ、この
場合には数量、単価を読み出し「数量×単価」の演算を
行って金額を求め、これを伝票メモリ17内の金額デー
タと入替える(ステップ524)。そして、ステップS
25に進み、伝票メモリ17から1伝票分のデータを順
次読み出し、フォーマットメモリ19内の伝票フォーマ
ットにしたがって順次印字出力する。
When it is detected in step 323 that another item has been changed, the necessary data, in this case, the quantity and unit price, are read out from the slip memory 17, and the amount is calculated by calculating "quantity x unit price". is replaced with the amount data in the slip memory 17 (step 524). And step S
25, the data for one slip is sequentially read from the slip memory 17 and sequentially printed out according to the slip format in the format memory 19.

このように伝票入力途中で訂正が行われた場合、それま
での印字結果は正式伝票でなくなり、単に入力確認とい
うジャーナル的なものとなる。
If a correction is made during the input of a slip in this way, the print result up to that point will no longer be an official slip, but will simply be a journal of input confirmation.

そして伝票入力が終了した時点で訂正後の1伝票分のデ
ータが新たに所定フォーマット通りに印字出力され、正
式伝票が自動発行される(第5図参照)。なお、正式伝
票は“上記伝票無効”という文字列の後に続く為、正式
伝票を容易に識別することができる。
When the input of the slip is completed, the corrected data for one slip is newly printed out in a predetermined format, and an official slip is automatically issued (see FIG. 5). Note that since the official slip follows the character string "Above slip invalid", the official slip can be easily identified.

1伝  力終了後に訂正が行われた 合(第6肚 この場合、ステップS20でのキー人力待ち状態におい
て、訂正キーが操作されると、ステップ526に進み、
1つ前の入力アイテムを指定する。つまり、アイテムメ
モリ12内に定義されている処理内容がデータを入力す
べきことを示す各入力アイテムのうちアイテムメモリ1
2の内容を末尾から、つまり逆方向からサーチした結果
、最初に検出される入力アイテムを指定する。そして、
指定アイテムの訂正を促すメツセージ表示を行い(ステ
ップ527)、キー人力待ちとなる(ステップ520)
。いま、訂正すべき入力アイテムでなければ、再度訂正
キーを操作し、所望の入力アイテムが指定されるまで訂
正キーを何回も操作し続ける。そして、所望の入力アイ
テムが指定されると、実行キーを操作する。すると、ス
テップS28に進み、ワークメモリ20内に訂正キーフ
ラグがセットされる。そして、ステップS4に戻る。こ
こで、訂正データが入力されると、入力された訂正デー
タは入力バッファ15に取り込まれる(ステップS5)
。そして、アイテムキーを操作すると、ステップS8に
進むが、この場合訂正キーフラグがオンされているので
、上述の場合と同様に入力バッファ15内の訂正データ
と伝票メモリ17内の指定アイテムに対応するデータと
が相違することを条件に(ステップS9.510)、訂
正処理(ステップ311−S13)が実行される結果、
訂正フラグがオンされると共に、訂正印字(゛修正”)
が行われ、しかも、伝票メモリ17内の指定アイテムに
対応するデータと入力バッファ15内の訂正データとの
入9 替が行われる。そして、入力バッファ15内の訂正デー
タを印字したのち、ステップS15に進むが、この場合
の訂正は1伝票分のデータ入力終了後に行われ、その訂
正を行う前にステップS15で全アイテム終了が検出さ
れている。したがって、この場合にはステー2プS20
に進み、キー人力待ちとなる。
If the correction is made after the first power transmission is completed (6th stage), in this case, when the correction key is operated in the state of waiting for human power in step S20, the process advances to step 526.
Specifies the previous input item. In other words, among each input item whose processing content defined in the item memory 12 indicates that data should be input, the item memory 1
Specify the input item that is first detected as a result of searching the contents of 2 from the end, that is, from the reverse direction. and,
A message prompting correction of the specified item is displayed (step 527), and the system waits for key personnel (step 520).
. If the input item is not the one to be corrected, the user operates the correction key again and continues to operate the correction key many times until the desired input item is specified. Then, when a desired input item is specified, the execution key is operated. Then, the process advances to step S28, and a correction key flag is set in the work memory 20. Then, the process returns to step S4. Here, when the correction data is input, the input correction data is taken into the input buffer 15 (step S5).
. Then, when the item key is operated, the process advances to step S8, but in this case, since the correction key flag is turned on, the correction data in the input buffer 15 and the data corresponding to the specified item in the slip memory 17 are stored in the same manner as in the above case. As a result of executing the correction process (steps 311-S13) on the condition that there is a difference (step S9.510),
The correction flag is turned on and correction printing (“correction”)
Moreover, the data corresponding to the designated item in the slip memory 17 and the corrected data in the input buffer 15 are replaced. After printing the corrected data in the input buffer 15, the process proceeds to step S15, but in this case correction is performed after data input for one slip is completed, and before the correction is performed, it is detected in step S15 that all items have been completed. has been done. Therefore, in this case, step S20
Waiting for key personnel.

ここで、更に他の入力アイテムの訂正を行う場合には上
述と同様に訂正キー等を操作すればよい。また終了キー
が操作されると、ステップS21で訂正フラグ有りが検
出されるので、上述と同様にステップS22で伝票無効
印字を行ったのち、正式伝票の発行処理を実行する(ス
テップ523〜525)。
Here, if another input item is to be corrected, the correction key etc. may be operated in the same manner as described above. Furthermore, when the end key is operated, the presence of a correction flag is detected in step S21, so the document is invalidated in step S22 in the same manner as described above, and then the official document issuance process is executed (steps 523 to 525). .

このように1伝票分のデータ入力終了後においても数ア
イテム分遡った訂正が可能となる。この場合においても
、上述した直前訂正の場合と同様に伝票入力終了時点ま
での印字結果は、正式伝票でなくなり、単に入力確認と
いうジャーナル的なものとなる。そして、訂正後の1伝
票分のデータ0 が新たに所定フォーマット通りに印字出力され、正式伝
票が自動発行される(第6図参照)。
In this way, even after data entry for one slip is completed, corrections can be made retroactively for several items. In this case, as in the case of the last-minute correction described above, the print result up to the end of the slip input is no longer an official slip, but merely a journal-like record of input confirmation. Then, the corrected data 0 for one slip is newly printed out according to the predetermined format, and an official slip is automatically issued (see FIG. 6).

なお、上述の伝票印字例では売上伝票を発行する場合を
示したが、受注伝票、佳人伝票、出金伝票等を発行する
ことも勿論可能である。
In addition, although the above-mentioned example of printing a sales slip shows the case where a sales slip is issued, it is of course possible to issue an order receipt slip, a prize slip, a payment slip, etc.

また、上記実施例はアイテムメモリ12に設定されてい
るl伝票分の各アイテムに対応してその処理内容を定義
しておき、データ入力を除く他の処理内容が定義されて
いる場合にはそれに応じた処理を実行してデータを自動
的に作成するようにしたが、1伝票分の全アイテムを全
て入力するものであってもよい。
In addition, in the above embodiment, processing contents are defined corresponding to each item for l slips set in the item memory 12, and if processing contents other than data input are defined, Although the data is automatically created by executing the corresponding process, it is also possible to input all the items for one slip.

[発明の効果] この発明は、入力された伝票データをその都度印字して
伝票を発行する際、伝票データの入力途中で入力済のデ
ータが訂正されたとしても1伝票分のデータ入力終了時
に訂正後の1伝票分のデータを新たに印字するようにし
たから、最初からデータを入力し直すことなく、予め設
定されている伝票フォーマットにしたがった正式伝票を
自動発行することができる。その結果、オペレータは伝
票の印字状態を意識することなく、データ入力だけに専
念することができる為、入力ミス等を極力避けることが
可能となる。
[Effects of the Invention] This invention allows when issuing a slip by printing input slip data each time, even if the entered data is corrected while inputting the slip data, the data can be printed at the end of data entry for one slip. Since data for one slip after correction is newly printed, an official slip according to a preset slip format can be automatically issued without having to re-input data from the beginning. As a result, the operator can concentrate only on data input without being aware of the printed state of the slip, making it possible to avoid input errors as much as possible.

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

第1図はこの発明の機能ブロック図、第2図〜第6図は
実施例を示し、第2図は伝票発行用入力端末機の基本的
な構成を示したブロック回路図、第3図は伝票発行処理
を示したフローチャート、第4図は1伝票分のデータ入
力時に訂正処理が行われなかった場合の伝票印字例、第
5図はl伝票分のデータ入力途中で直前訂正が行われた
場合の伝票印字例、第6図はl伝票分のデータ入力終了
時に数アイ・テム分遡ったデータを訂正した場合の伝票
印字例を示した図である。 11・・・・・・CPU、15・・・・・・入力バッフ
ァ、16・・・・・・印字部、17・・・・・・伝票メ
モリ、19・・・・・・フォ−マットメモリ、 20・・・・・・ワークメモリ。 特 許 出 願 人 カシオ計算機株式会社
FIG. 1 is a functional block diagram of the present invention, FIGS. 2 to 6 show embodiments, FIG. 2 is a block circuit diagram showing the basic configuration of an input terminal for issuing slips, and FIG. A flowchart showing the invoice issuing process. Figure 4 is an example of how a voucher is printed when correction processing is not performed when data for one voucher is input. Figure 5 is a last-minute correction made while inputting data for one voucher. FIG. 6 is a diagram showing an example of printing a slip in the case where the data dated back several items is corrected at the end of inputting data for one slip. 11...CPU, 15...Input buffer, 16...Print section, 17...Slip memory, 19...Format memory , 20...Work memory. Patent applicant Casio Computer Co., Ltd.

Claims (1)

【特許請求の範囲】 1伝票分の各アイテムに対応するデータが順次入力され
る毎に、入力されたデータを予め設定されている伝票フ
ォーマットにしたがって印字出力する印字手段と、 入力されたデータを順次記憶する伝票データ記憶手段と
、 入力済のデータを訂正する訂正指示に応答して前記伝票
データ記憶手段内のデータを訂正する訂正手段と、 1伝票分のデータ入力終了時に、前記伝票データ記憶手
段内のデータが訂正されたか否かを判別する判別手段と
、 この判別手段による判別の結果、データ訂正が行われた
場合には前記伝票データ記憶手段から1伝票分のデータ
を順次読み出して前記印字手段にそのデータの再印字を
指示する印字制御手段と、を具備したことを特徴とする
伝票発行装置。
[Scope of Claims] Printing means for printing out the input data according to a preset slip format each time data corresponding to each item of one slip is sequentially input; a slip data storage means for sequentially storing data; a correction means for correcting data in the slip data storage means in response to a correction instruction for correcting inputted data; a determining means for determining whether or not the data in the means has been corrected; and as a result of the determination by the determining means, if the data has been corrected, the data for one slip is sequentially read out from the slip data storage means; A slip issuing device comprising: printing control means for instructing printing means to reprint the data.
JP1174769A 1989-07-06 1989-07-06 Slip issuing device Pending JPH0340066A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1174769A JPH0340066A (en) 1989-07-06 1989-07-06 Slip issuing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1174769A JPH0340066A (en) 1989-07-06 1989-07-06 Slip issuing device

Publications (1)

Publication Number Publication Date
JPH0340066A true JPH0340066A (en) 1991-02-20

Family

ID=15984349

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1174769A Pending JPH0340066A (en) 1989-07-06 1989-07-06 Slip issuing device

Country Status (1)

Country Link
JP (1) JPH0340066A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9977458B2 (en) 2016-01-15 2018-05-22 Casio Computer Co., Ltd. Calculation data printing apparatus, calculation data printing method and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9977458B2 (en) 2016-01-15 2018-05-22 Casio Computer Co., Ltd. Calculation data printing apparatus, calculation data printing method and computer-readable storage medium

Similar Documents

Publication Publication Date Title
JPH0340066A (en) Slip issuing device
JPH06227078A (en) Printer for printing of regular form paper
JP2578721B2 (en) Return slip issuing device
JP2002324276A (en) Method and device for managing merchandise
US5404434A (en) Document processor having identification display control means
JP3958845B2 (en) Merchandise sales registration data processing method, processing apparatus and recording medium
JP2664222B2 (en) Print data processing method in printer
US20200097435A1 (en) Electronic apparatus, control method of electronic apparatus, and control program of electronic apparatus
JPS5846462A (en) Print processor of electronic cash register
JPS63168767A (en) Ducument forming device
JPH0358219A (en) Print control method and document preparing device
JP2701659B2 (en) Electronic filing equipment
JPH01215574A (en) Word processor
JPS62259168A (en) Word processor equipment
JPH04216982A (en) Printing of page numbers
JPS6382543A (en) Issuing and processing device for document
JPH0422653A (en) Printer
JPS6386637A (en) Pos terminal equipment
JPS62222356A (en) Word processor
JPS61285534A (en) Index production system
JPH03280153A (en) Information processor
JPH08166948A (en) Table processor
JPH0476761A (en) Document processor with spelling checking function
JPH02176854A (en) Document processor
JPH03113490A (en) Data output device