CN107730702A - Detection method, device and the computer-readable recording medium of paper ticket sequence number - Google Patents

Detection method, device and the computer-readable recording medium of paper ticket sequence number Download PDF

Info

Publication number
CN107730702A
CN107730702A CN201710425385.XA CN201710425385A CN107730702A CN 107730702 A CN107730702 A CN 107730702A CN 201710425385 A CN201710425385 A CN 201710425385A CN 107730702 A CN107730702 A CN 107730702A
Authority
CN
China
Prior art keywords
sequence number
paper ticket
ticket
machine
invoice
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
CN201710425385.XA
Other languages
Chinese (zh)
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.)
Xian Irain IoT Technology Service Co Ltd
Original Assignee
Xian Irain IoT Technology Service 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 Xian Irain IoT Technology Service Co Ltd filed Critical Xian Irain IoT Technology Service Co Ltd
Priority to CN201710425385.XA priority Critical patent/CN107730702A/en
Publication of CN107730702A publication Critical patent/CN107730702A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G5/00Receipt-giving machines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing

Landscapes

  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Accounting & Taxation (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

The present invention provides a kind of detection method, device and the computer-readable recording medium of paper ticket sequence number, the detection method of the paper ticket sequence number passes through when receiving print command, obtain the machine marking code in print command, and by preset rules and the collector, obtain the target sequence number in current paper ticket;Judge whether the machine marking code and target sequence number meet default bill printing rule;When the machine marking code and target sequence number do not meet default bill printing rule, the machine marking code is adjusted according to default regulation rule.The present invention avoid due to number mismatches and the problem of cause paper ticket invalid, and thus improve efficiency of making out an invoice, avoid the workload of extra increase taxpayer and the tax authority, lift Consumer's Experience.Because the target sequence number of paper ticket does not meet printing rule with the machine marking code printed again and causes the invalid technical problem of invoice when solving printing paper ticket.

Description

Detection method, device and the computer-readable recording medium of paper ticket sequence number
Technical field
The present invention relates to bill management technical field, more particularly to a kind of detection method, device and the meter of paper ticket sequence number Calculation machine readable storage medium storing program for executing.
Background technology
Invoice is not only the written payment voucher of shopping, and the tax revenue for using and managing also with country of invoice ceases Manner of breathing closes, therefore invoice plays vital effect in daily economic life.The invoice of whole world various countries is all at present Made and managed by revenue department is unified.One is all carried in order to distinguish every invoice of true from false of bills during printing uniquely Invoice number.Invoice number also indicates the information such as the species of the invoice, spending amount.In order to improve efficiency of making out an invoice, revenue department Also unify to have made the machine that can be issued by businessman and dismiss ticket, in order to ensure machine dismisses the validity of ticket, businessman outputs for client When machine dismisses ticket, it is necessary to again on invoice printer marking code to be used as confirmation.The machine marking code of businessman's printing should be with the paper Invoice sequence number on matter invoice matches, and the machine outputed, which dismisses ticket, just has effect.If in print procedure, businessman is put into When invoice sequence number on the paper invoice of bill printer mismatches with the machine marking code stored in printer or terminal, then beat It is invalid invoice to print off the paper invoice come, and businessman not only needs to carry out calcellation operation to this invoice, and also needs to again Printed invoice, the actual invoice taken of taxpayer otherwise can be caused to differ with the invoice information recorded in tax authority taxation control system Cause.As can be seen here, if it cannot be guaranteed that invoice sequence number matches with machine marking code-phase, efficiency of making out an invoice, but also meeting can not only be reduced Additional workload is added to taxpayer and the tax authority.
The content of the invention
It is a primary object of the present invention to propose a kind of detection method of paper ticket sequence number, device and computer-readable storage Medium, it is intended to which the target sequence number when solving printing paper ticket due to paper ticket does not meet printing rule with the machine marking code printed again And cause the invalid technical problem of paper ticket.
To achieve the above object, the present invention provides a kind of detection method of paper ticket sequence number, the inspection of the paper ticket sequence number Survey method is applied to the detecting system of paper ticket sequence number, and the detecting system of the paper ticket sequence number includes collector, the paper ticket The detection method of sequence number comprises the following steps:
When receiving print command, the machine marking code in print command is obtained, and pass through preset rules and the collection Device, obtain the target sequence number in current paper ticket;
Judge whether the machine marking code and target sequence number meet default bill printing rule;
When the machine marking code and target sequence number do not meet default bill printing rule, adjusted according to default regulation rule The whole machine marking code.
Alternatively, when the paper ticket is invoice, the machine marking code is that machine dismisses ticket number, and the series of targets number is Target invoice number, the step bag for judging the machine marking code and target sequence number and whether meeting default bill printing rule Include:
Judge that the machine dismisses whether ticket number matches with the target invoice number;
When the machine is dismissed ticket number and mismatched with the target invoice number, adjusted according to the target invoice number The machine dismisses ticket number, so as to dismiss ticket number identical with the target invoice number for the machine.
Alternatively, it is described judge that the machine dismisses the step of whether ticket number matches with the target invoice number after, Also include:
When the machine is dismissed ticket number and matched with the target invoice number, beaten in the predeterminable area of the current paper ticket Print the machine and dismiss ticket number.
Alternatively, the collector is included at least one in magnetic stripe collector, character machining device, camera, optical sensor Kind.
Alternatively, it is described by preset rules and the collector, the step of obtaining the target sequence in current paper ticket Including:
The target sequence number preset in current paper ticket in magnetic stripe is obtained by magnetic stripe collector.
Alternatively, it is described by preset rules and the collector, the step of obtaining the target sequence in current paper ticket Including:
The character of the predeterminable area of current paper ticket is obtained by character machining device, and the word is obtained according to default transformation rule Target sequence number corresponding to symbol.
Alternatively, it is described by preset rules and the collector, the step of obtaining the target sequence in current paper ticket Including:
The picture of current paper ticket is obtained by camera, identifies the target sequence number in the picture, and obtains the target Sequence number.
Alternatively, it is described by preset rules and the collector, the step of obtaining the target sequence in current paper ticket Including:
The numerical character of current paper ticket is obtained by optical sensor, and according to preset number digit, obtains the target Sequence number.
In addition, to achieve the above object, the present invention also provides a kind of detection means of paper ticket sequence number, the paper ticket sequence Number detection means include collector, processor, memory and be stored on the memory and can transport on the processor The detection program of capable paper ticket sequence number, the detection program of the paper ticket sequence number are realized as described above during the computing device The step of detection method of paper ticket sequence number described in any one.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable The detection program of paper ticket sequence number is stored with storage medium, it is real when the detection program of the paper ticket sequence number is executed by processor Now the step of detection method of the paper ticket sequence number as described in above-mentioned any one.
The present invention provides a kind of detection method, device and the computer-readable recording medium of paper ticket sequence number, the paper ticket The detection method of sequence number passes through default rule by when receiving print command, obtaining the machine marking code in print command Then with the collector, the target sequence number in current paper ticket is obtained;Judge whether the machine marking code and target sequence number accord with Close default bill printing rule;When the machine marking code and target sequence number do not meet default bill printing rule, according to pre- If regulation rule adjusts the machine marking code.By the way that with upper type, the detection method of paper ticket sequence number of the present invention is by printing It is preceding to obtain the machine marking code that the target sequence number in paper ticket prints with printer in advance, and judge the target sequence number and machine marking Whether code meets default printing rule, to avoid the machine marking code that the target sequence number in paper ticket prints with printer and is not inconsistent The situation of default printing rule is closed, so as to avoid occurring the target sequence number due to paper ticket with the machine marking code that prints again not The problem of matching and causing paper ticket invalid, and efficiency of making out an invoice thus is improved, avoid the work of extra increase taxpayer and the tax authority Measure, lift Consumer's Experience.When solving printing paper ticket due to paper ticket target sequence number with the machine marking code that prints again not Meet printing rule and cause the invalid technical problem of paper ticket.
Brief description of the drawings
Fig. 1 is that the detection method for the paper ticket sequence number that scheme of the embodiment of the present invention is related to performs the terminal structure signal of terminal Figure;
Fig. 2 is the schematic flow sheet of the detection method first embodiment of paper ticket sequence number of the present invention;
Fig. 3 is the schematic flow sheet of the detection method second embodiment of paper ticket sequence number of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The main thought of scheme of the embodiment of the present invention is:The detection means of paper ticket sequence number when receiving print command, The machine marking code in print command is obtained, and by preset rules and the collector, obtains the target sequence in current paper ticket Number;Judge whether the machine marking code and target sequence number meet default bill printing rule;In the machine marking code and target When sequence number does not meet default bill printing rule, the machine marking code is adjusted according to default regulation rule.Solves printing hair The invoice sequence number of paper invoice and the machine marking code that prints again easy unmatched technical problem during ticket.
Reference picture 1, Fig. 1 are the operation terminal structure schematic diagrames for the hardware running environment that scheme of the embodiment of the present invention is related to.
The operation terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, e-book reading Device, pocket computer etc. have the packaged type terminal device of display function.
As shown in figure 1, the terminal can include:Processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to realize the connection communication between these components. User interface is also associated with collector.User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 is optional Wireline interface, the wave point (such as WI-FI interfaces) that can include standard.Memory 1005 can be high-speed RAM memory, Can also be stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also To be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 does not form the restriction to running terminal, can With including than illustrating more or less parts, either combining some parts or different parts arrangement.
With continued reference to Fig. 1, in Fig. 1 as a kind of computer-readable storage medium memory 1005 can include operating system, Network communication module, Subscriber Interface Module SIM and program.Wherein, operating system is management and controls the detection dress of paper ticket sequence number Put the program with software resource, support network communication module, Subscriber Interface Module SIM, paper ticket sequence number detection program and other The operation of program or software;Network communication module is used to managing and controlling network interface 1002;Subscriber Interface Module SIM is used to manage With control user interface 1003.
In the terminal shown in Fig. 1, network interface 1004 is mainly used in connecting Cloud Server, and data are carried out with Cloud Server Communication.User interface 1003 can also connect client (user terminal), enter row data communication with client;In terminal of the present invention Processor 1001, memory 1005 can be arranged in the detection means of paper ticket sequence number, the detection dress of the paper ticket sequence number The detection program that the paper ticket sequence number stored in memory 1005 is called by processor 1001 is put, and performs following operate:
When receiving print command, the machine marking code in print command is obtained, and pass through preset rules and the collection Device, obtain the target sequence number in current paper ticket;
In the present embodiment, the invoice sequence number of paper invoice holds with the machine marking code again printed during to solve printed invoice Easy unmatched technical problem, by detecting the target sequence number on paper invoice to be printed in advance and being stored in printing terminal Whether machine marking code meets default printing rule, to avoid occurring unmatched problem.Specifically, the detection dress of paper ticket sequence number Put in the print command that receiving terminal is sent, parse the print command.Wherein, the print command includes:Machine to be printed is beaten Number, ticket head, word rail number code, connection time and purposes, customer name, the account number that opens a bank account, business (production) name of an article claims or the item to manage, meter Measure unit, quantity, unit price, the amount of money, and the information such as the capital and small letter amount of money, handler, official stamp, date of making out an invoice.Obtain wherein Machine marking code to be printed.Then by the collector being set in advance in printing device, advised according to the collection pre-set Then, the target sequence number on paper invoice to be printed is obtained.The collection rule pre-set, it may be possible to according to default numeral Digit, or default pickup area etc..In specific embodiment, a sensor can also be set in printing device, detected During to paper invoice, directly by collector and collection rule, the target sequence number in paper invoice is obtained, and by the target sequence Row number is stored to collector.In receiving printing orders, the detection that the target sequence number is directly sent to paper ticket sequence number fills Put.
Judge whether the machine marking code and target sequence number meet default bill printing rule;
Specifically, the detection means of paper ticket sequence number is when receiving print command, according to the bill printing pre-set Rule, judge required with whether the machine marking code in print command meets printing by the target sequence number that collector is got. Such as, judge whether the machine marking code and target sequence number unanimously prevent the target sequence number of the machine marking code and paper invoice not Match and cause invoice invalid, or judge whether the machine marking code and target sequence number meet presetting digit capacity and prevent papery from sending out Due to number error problem caused by hand mistake problem when machine marking code is damaged or pre-entered to the target sequence number of ticket, or judge The machine marking code and the whether default leading digit of target sequence number are the target sequence for preventing the machine marking code or paper invoice Number invoicing rule of one's respective area etc. is not met.
When the machine marking code and target sequence number do not meet default bill printing rule, adjusted according to default regulation rule The whole machine marking code.
When judging the machine marking code and target sequence number against regulation according to default bill printing rule, according to working as Regulation rule that is preceding input or pre-entering, adjust the machine marking code stored in terminal.Wherein, regulation rule is preset, can To be in the machine marking code and the inconsistent target sequence number, the machine marking code is adjusted to and the target sequence number It is identical, or when the digit of the machine marking code does not meet presetting digit capacity form, the digit of the machine marking code is adjusted to meet The presetting digit capacity form etc..In specific embodiment, reminder message is can be sent out to remind businessman to confirm the mesh of the paper invoice Marking sequence number may be wrong, and whether the PLSCONFM paper invoice occurs problem, such as:Whether placement direction has current paper invoice By mistake, or confirm whether the target sequence number of current paper invoice occurs damage etc..
The present embodiment provides a kind of detection method of paper ticket sequence number, and the detection method of the paper ticket sequence number is by connecing When receiving print command, the machine marking code in print command is obtained, and by preset rules and the collector, obtain current paper Target sequence number on ticket;Judge whether the machine marking code and the target sequence number meet default bill printing rule; When the machine marking code and the target sequence number do not meet default bill printing rule, according to the adjustment of default regulation rule Machine marking code.By the way that with upper type, the detection method of paper ticket sequence number of the present invention by obtaining paper invoice in advance before printing On the machine marking code that is printed with printer of target sequence number, and it is default to judge whether the target sequence number meets with machine marking code Printing rule, to avoid invoice sequence number on paper invoice and the machine marking code of printer printing do not meet default beat The situation of rule is printed, so as to avoiding occurring because the invoice sequence number of paper invoice mismatches with the machine marking code again printed The problem of causing invoice invalid, and efficiency of making out an invoice thus is improved, the workload of extra increase taxpayer and the tax authority is avoided, is carried Rise Consumer's Experience.Invoice sequence number when solving printed invoice due to paper invoice is not met with the machine marking code printed again Printing is regular and causes the invalid technical problem of invoice.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
Judge that the machine dismisses whether ticket number matches with the target invoice number;
When the machine is dismissed ticket number and matched with the target invoice number, judge the machine beat invoice codes whether with The target invoice codes matching.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
When the machine is dismissed ticket number and mismatched with the target invoice number, adjusted according to the target invoice number The machine dismisses ticket number, is matched so that the machine dismisses ticket number with the target invoice number.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
When the machine is beaten invoice codes and mismatched with the target invoice codes, adjusted according to the target invoice codes The machine beats invoice codes, so that the machine is beaten invoice codes and matched with the target invoice codes.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
When the machine is beaten invoice codes and matched with the target invoice codes, institute is printed in the predeterminable area of current paper ticket The machine of stating dismisses ticket number and machine beats invoice codes.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
The collector includes at least one of card reader, camera, sensor or character machining device.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
The target sequence number preset in current paper ticket in magnetic stripe is obtained by card reader.
Further, the processor 1001 in terminal of the present invention, memory 1005 can be arranged on the inspection of paper ticket sequence number Survey in device, the detection means of the paper ticket sequence number calls the paper ticket sequence stored in memory 1005 by processor 1001 Number detection program, perform following operate:
The picture of current paper ticket is obtained by camera, identifies the target sequence number in the picture, and obtains the target Sequence number.
Based on above-mentioned hardware configuration, the detection method embodiment of paper ticket sequence number of the present invention is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of the detection method first embodiment of paper ticket sequence number of the present invention.
In the present embodiment, the detection method of the paper ticket sequence number comprises the following steps:
Step S10, when receiving print command, obtain the machine marking code in print command, and by preset rules and The collector, obtain the target sequence number in current paper ticket;
In the present embodiment, the invoice sequence number of paper invoice holds with the machine marking code again printed during to solve printed invoice Easy unmatched technical problem, by detecting the target sequence number on paper invoice to be printed in advance and being stored in printing terminal Whether machine marking code meets default printing rule, to avoid occurring unmatched problem.Specifically, the detection dress of paper ticket sequence number Put in the print command that receiving terminal is sent, parse the print command.Wherein, the print command includes:Machine to be printed is beaten Number, ticket head, word rail number code, connection time and purposes, customer name, the account number that opens a bank account, business (production) name of an article claims or the item to manage, meter Measure unit, quantity, unit price, the amount of money, and the information such as the capital and small letter amount of money, handler, official stamp, date of making out an invoice.Obtain wherein Machine marking code to be printed.Then by the collector being set in advance in printing device, advised according to the collection pre-set Then, the target sequence number on paper invoice to be printed is obtained.The collection rule pre-set, it may be possible to according to default numeral Digit, or default pickup area etc..In specific embodiment, a sensor can also be set in printing device, detected During to paper invoice, directly by collector and collection rule, the target sequence number in paper invoice is obtained, and by the target sequence Row number is stored to collector.In receiving printing orders, the detection that the target sequence number is directly sent to paper ticket sequence number fills Put.
Step S20, judges whether the machine marking code and target sequence number meet default bill printing rule;
Specifically, the detection means of paper ticket sequence number is when receiving print command, according to the bill printing pre-set Rule, judge required with whether the machine marking code in print command meets printing by the target sequence number that collector is got. Such as, judge whether the machine marking code and target sequence number unanimously prevent the target sequence number of the machine marking code and paper invoice not Match and cause invoice invalid, or judge whether the machine marking code and target sequence number meet presetting digit capacity and prevent papery from sending out Due to number error problem caused by hand mistake problem when machine marking code is damaged or pre-entered to the target sequence number of ticket, or judge The machine marking code and the whether default leading digit of target sequence number are the target sequence for preventing the machine marking code or paper invoice Number invoicing rule of one's respective area etc. is not met.
Step S30, when the machine marking code and target sequence number do not meet default bill printing rule, according to default tune Machine marking code described in whole rule adjustment.
When judging the machine marking code and target sequence number against regulation according to default bill printing rule, according to working as Regulation rule that is preceding input or pre-entering, adjust the machine marking code stored in terminal.Wherein, regulation rule is preset, can To be in the machine marking code and the inconsistent target sequence number, the machine marking code is adjusted to and the target sequence number It is identical, or when the digit of the machine marking code does not meet presetting digit capacity form, the digit of the machine marking code is adjusted to meet The presetting digit capacity form etc..In specific embodiment, reminder message is can be sent out to remind businessman to confirm the mesh of the paper invoice Marking sequence number may be wrong, and whether the PLSCONFM paper invoice occurs problem, such as:Whether placement direction has current paper invoice By mistake, or confirm whether the target sequence number of current paper invoice occurs damage etc..
The present embodiment provides a kind of detection method, device and the computer-readable recording medium of paper ticket sequence number, the paper The detection method of ticket sequence number obtains the machine marking code in print command by when receiving print command, and by default Regular and described collector, obtains the target sequence number in current paper ticket;Whether judge the machine marking code and target sequence number Meet default bill printing rule;When the machine marking code and target sequence number do not meet default bill printing rule, according to Default regulation rule adjusts the machine marking code.By the way that with upper type, the detection method of paper ticket sequence number of the present invention is by beating The machine marking code that the target sequence number in paper ticket prints with printer is obtained before print in advance, and judges that the target sequence number is beaten with machine Whether number meets default printing rule, to avoid machine marking code that the target sequence number in paper ticket prints with printer not Meet the situation of default printing rule, so as to avoid that the target sequence number due to paper ticket and the machine marking code that prints again occurs The problem of mismatching and causing paper ticket invalid, and thus improve and make out an invoice efficiency, avoid extra increase taxpayer and the tax authority Workload, lift Consumer's Experience.Target sequence number due to paper ticket and the machine marking code that prints again when solving printing paper ticket Do not meet printing rule and cause the invalid technical problem of paper ticket.
Reference picture 3, Fig. 3 are the schematic flow sheet of the detection method second embodiment of paper ticket sequence number of the present invention.
The reason for printing is regular is not met for the ease of searching the target sequence number of paper invoice and machine marking code, improves inspection Efficiency is surveyed, in the present embodiment, based on above-mentioned embodiment illustrated in fig. 2, the detection method of the paper ticket sequence number also includes:
Step S41, judge that the machine dismisses whether ticket number matches with the target invoice number;
Specifically, the machine marking code is that machine dismisses ticket number, and the target sequence number is target invoice number.Passing through Collector and preset rules, when getting the machine of the target invoice number in current paper ticket and pre-print and dismissing ticket number, judge The target invoice number and machine dismiss whether ticket number matches.I.e. described target invoice number and machine dismiss whether ticket number protects Hold consistent.
Step S42, when the machine is dismissed ticket number and mismatched with the target invoice number, according to the target invoice Number adjusts the machine and dismisses ticket number, so as to dismiss ticket number identical with the target invoice number for the machine.
Specifically, judge that the machine dismisses ticket number and the target invoice number in the detection means of the paper ticket sequence number When code mismatches, that is, the machine that represents to store in current printing terminal dismisses that ticket number is wrong, further according to the target of the paper ticket Invoice codes, the machine for adjusting the pre-print dismiss ticket number.Only dismissed to the machine of the pre-print in ticket number and current paper ticket Target invoice number matches, even if to dismiss ticket number consistent with the target invoice number for the machine of pre-print.In specific embodiment, Can directly by paper ticket sequence number detection means by the machine dismiss ticket number modification it is consistent with target invoice number, or transmission repair Change reminder message to terminal so that businessman further confirms that the error message, and change the information.Ticket is dismissed to reach the machine The purpose that number matches with the target invoice number.
Step S43, when the machine is dismissed ticket number and matched with the target invoice number, in the pre- of the current paper ticket If region prints the machine and dismisses ticket number.
Specifically, judge that the machine dismisses ticket number and the target invoice number in the detection means of the paper ticket sequence number During code matching, that is, it is correct that the machine that represents to store in current printing terminal dismisses ticket number, according to default print area, such as invoice The upper right corner.In specific embodiment, current paper ticket can be divided into the preset format such as nine grids region, then in predeterminated position The pre-print machine is printed in coordinate and dismisses ticket number.
Further, it is that machine dismisses ticket generation in the machine marking code based on above-mentioned embodiment illustrated in fig. 3 in the present embodiment Code, when the target sequence number is target invoice codes, the detection method of the paper ticket sequence number is also wrapped after step S42 Include:
Step S44, judge that the machine beats whether invoice codes match with the target invoice codes;
Specifically, after getting the machine and beating invoice codes and the target invoice codes, the machine is determined whether Beat invoice codes and whether the target invoice codes are consistent.
Step S45, when the machine is beaten invoice codes and mismatched with the target invoice codes, according to the target invoice Code adjusts the machine and beats invoice codes, so that the machine is beaten invoice codes and matched with the target invoice codes.
Specifically, judge that the machine beats invoice codes and the target invoice generation in the detection means of the paper ticket sequence number When code mismatches, that is, it is wrong that the machine that represents to store in current printing terminal beats invoice codes, according to target invoice codes tune The whole machine beats invoice codes.The machine directly can be dismissed into ticket code revision and target invoice by the detection means of paper ticket sequence number Code is consistent, or sends modification reminder message to terminal so that businessman further confirms that the error message, and changes the information. To reach the purpose that the machine is beaten invoice codes and matched with the target invoice codes.
Step S46, when the machine is beaten invoice codes and matched with the target invoice codes, in the preset areas of current paper ticket The domain printing machine dismisses ticket number and machine beats invoice codes.
Judge that the machine is beaten invoice codes and matched with the target invoice codes in the detection means of the paper ticket sequence number When, that is, it is errorless that the machine that represents to store in current printing terminal beats invoice codes.According to printing rule set in advance, and waiting to beat The paper invoice of print with community with printing the machine marking code.
Further, in the present embodiment, based on above-mentioned embodiment illustrated in fig. 2, the detection method of the paper ticket sequence number is also Including:
The collector includes at least one of magnetic stripe collector, character machining device, camera or optical sensor.
Specifically, the detection means of paper ticket sequence number is to be printed to gather by setting collector in printing device in advance Paper invoice in target sequence number.Wherein, the collector can be magnetic stripe collector, character machining device, camera or One or more in optical sensor.The optical sensor can also be other sensings that can get numerical character Device.
Step S01, the target sequence number preset in current paper ticket in magnetic stripe is obtained by magnetic stripe collector.
Specifically, if being in advance magnetic stripe collector provided with collector in printer, one is then preset in paper invoice Individual magnetic stripe, the magnetic stripe include the target sequence number of the paper invoice, obtain what is stored in the magnetic stripe by the magnetic stripe collector Target sequence number, and send it to the detection means of paper ticket sequence number.
Step S02, the character of the predeterminable area of current paper ticket is obtained by character machining device, and according to default transformation rule Obtain target sequence number corresponding to the character.
Specifically, if being in advance character machining device provided with collector in printer, then obtained by character machining device The character of the predeterminable area of the paper ticket, and according to default transformation rule, the character got is converted into target sequence number, and incite somebody to action The target sequence number is sent to the detection means of paper ticket sequence number.
Step S03, the picture of current paper ticket is obtained by camera, identify the target sequence number in the picture, and obtain Take the target sequence number.
Specifically, if being in advance camera provided with collector in printer, the papery is then shot by camera and sent out The target sequence picture of the predeterminable area of ticket, and the picture is sent to the detection means of paper ticket sequence number, so that detection fills Put by identifying that picture obtains target sequence number.
In specific embodiment, also using character machining device as collector, then it will directly can be printed by character machining device The target sequence Direct Recognition made on paper invoice is come out, and the target sequence number is sent to the detection of paper ticket sequence number Device.
Step S04, the numerical character of current paper ticket is obtained by optical sensor, and according to preset number digit, obtained The target sequence number.
Specifically, if being in advance optical sensor provided with collector in printer, then obtained by optical sensor The numerical character of the predeterminable area of the paper ticket, and according to preset number digit, obtains target sequence number, and by the target sequence number It is sent to the detection means of paper ticket sequence number.
The present invention also provides a kind of computer-readable recording medium.
The detection program of paper ticket sequence number is stored with computer-readable recording medium of the present invention, the paper ticket sequence number The step of detection program realizes the detection method such as above-mentioned paper ticket sequence number when being executed by processor.
Wherein, the method realized when the detection program of paper ticket sequence number is performed can refer to paper ticket sequence number of the present invention Each embodiment of detection method, here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of detection method of paper ticket sequence number, it is characterised in that the detection method of the paper ticket sequence number is applied to paper ticket The detecting system of sequence number, the detecting system of the paper ticket sequence number include collector, the detection method of the paper ticket sequence number Comprise the following steps:
When receiving print command, the machine marking code in print command is obtained, and by preset rules and the collector, obtain Take the target sequence number in current paper ticket;
Judge whether the machine marking code and target sequence number meet default bill printing rule;
When the machine marking code and target sequence number do not meet default bill printing rule, institute is adjusted according to default regulation rule State machine marking code.
2. the detection method of paper ticket sequence number as claimed in claim 1, it is characterised in that when the paper ticket is invoice, institute State machine marking code and dismiss ticket number for machine, the series of targets number be target invoice number, it is described judge the machine marking code with The step whether target sequence number meets default bill printing rule includes:
Judge that the machine dismisses whether ticket number matches with the target invoice number;
When the machine is dismissed ticket number and mismatched with the target invoice number, according to target invoice number adjustment Machine dismisses ticket number, so as to dismiss ticket number identical with the target invoice number for the machine.
3. the detection method of paper ticket sequence number as claimed in claim 2, it is characterised in that described to judge that the machine dismisses draft bank After the step of whether code matches with the target invoice number, in addition to:
When the machine is dismissed ticket number and matched with the target invoice number, institute is printed in the predeterminable area of the current paper ticket The machine of stating dismisses ticket number.
4. the detection method of the paper ticket sequence number as described in any one in claim 1-3, it is characterised in that the collector Including at least one of magnetic stripe collector, character machining device, camera, optical sensor.
5. the detection method of paper ticket sequence number as claimed in claim 4, it is characterised in that described by preset rules and described Collector, the step of obtaining the target sequence in current paper ticket, include:
The target sequence number preset in current paper ticket in magnetic stripe is obtained by magnetic stripe collector.
6. the detection method of paper ticket sequence number as claimed in claim 4, it is characterised in that described by preset rules and described Collector, the step of obtaining the target sequence in current paper ticket, include:
The character of the predeterminable area of current paper ticket is obtained by character machining device, and the character pair is obtained according to default transformation rule The target sequence number answered.
7. the detection method of the paper ticket sequence number as described in any one in claim 4, it is characterised in that described by default Regular and described collector, the step of obtaining the target sequence in current paper ticket, include:
The picture of current paper ticket is obtained by camera, identifies the target sequence number in the picture, and obtains the target sequence Number.
8. the detection method of the paper ticket sequence number as described in any one in claim 4, it is characterised in that described by default Regular and described collector, the step of obtaining the target sequence in current paper ticket, include:
The numerical character of current paper ticket is obtained by optical sensor, and according to preset number digit, obtains the target sequence Number.
A kind of 9. detection means of paper ticket sequence number, it is characterised in that the detection means of the paper ticket sequence number include collector, Processor, memory and the detection journey for being stored in the paper ticket sequence number that can be run on the memory and on the processor Sequence, the detection program of the paper ticket sequence number are realized as any one of claim 1-8 during the computing device The step of detection method of paper ticket sequence number.
10. a kind of computer-readable recording medium, it is characterised in that paper ticket sequence is stored with the computer-readable recording medium The detection program of row number, realized when the detection program of the paper ticket sequence number is executed by processor as any in claim 1-8 The step of detection method of paper ticket sequence number described in one.
CN201710425385.XA 2017-06-07 2017-06-07 Detection method, device and the computer-readable recording medium of paper ticket sequence number Pending CN107730702A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710425385.XA CN107730702A (en) 2017-06-07 2017-06-07 Detection method, device and the computer-readable recording medium of paper ticket sequence number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710425385.XA CN107730702A (en) 2017-06-07 2017-06-07 Detection method, device and the computer-readable recording medium of paper ticket sequence number

Publications (1)

Publication Number Publication Date
CN107730702A true CN107730702A (en) 2018-02-23

Family

ID=61201624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710425385.XA Pending CN107730702A (en) 2017-06-07 2017-06-07 Detection method, device and the computer-readable recording medium of paper ticket sequence number

Country Status (1)

Country Link
CN (1) CN107730702A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476575A (en) * 2000-11-25 2004-02-18 ��������³���о����޹�˾ Method and system for online payments
CN102054182A (en) * 2009-11-06 2011-05-11 山东新北洋信息技术股份有限公司 Ticket manufacturing method and ticket manufacturing device
CN202093575U (en) * 2010-07-29 2011-12-28 中国工商银行股份有限公司 Device and system for automatic note printing
CN102867375A (en) * 2012-09-18 2013-01-09 北京国电通网络技术有限公司 Invoice management system and method
CN103839030A (en) * 2014-02-27 2014-06-04 福建实达电脑设备有限公司 Method for automatically identifying code numbers of industry bills in process of printing
CN104616406A (en) * 2014-10-29 2015-05-13 中国建设银行股份有限公司 Method and device for printing ticket
CN105015177A (en) * 2015-07-21 2015-11-04 广州供电局有限公司 Invoice printer and printing method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476575A (en) * 2000-11-25 2004-02-18 ��������³���о����޹�˾ Method and system for online payments
CN102054182A (en) * 2009-11-06 2011-05-11 山东新北洋信息技术股份有限公司 Ticket manufacturing method and ticket manufacturing device
CN202093575U (en) * 2010-07-29 2011-12-28 中国工商银行股份有限公司 Device and system for automatic note printing
CN102867375A (en) * 2012-09-18 2013-01-09 北京国电通网络技术有限公司 Invoice management system and method
CN103839030A (en) * 2014-02-27 2014-06-04 福建实达电脑设备有限公司 Method for automatically identifying code numbers of industry bills in process of printing
CN104616406A (en) * 2014-10-29 2015-05-13 中国建设银行股份有限公司 Method and device for printing ticket
CN105015177A (en) * 2015-07-21 2015-11-04 广州供电局有限公司 Invoice printer and printing method thereof

Similar Documents

Publication Publication Date Title
US7577613B2 (en) Provision of receipts for self service or point of sale terminals
US7668751B2 (en) Methods and systems for coordinating a change in status of stored-value cards
KR101516685B1 (en) A tax refund system
CN109887153A (en) A kind of property tax processing method and processing system
CN107292680A (en) Issue the business method, device and computer-readable recording medium of tax-controlled invoice
US20080228642A1 (en) System and Method for Payment Receipt Using 2D Code
CN105389725A (en) Pre-input platform and method, type-in equipment and method, and form filling method and system
CN102044091A (en) Self-service ticketing system
CN106815940A (en) A kind of intelligent sound interactive self-service fills out single print system
JPWO2020179055A1 (en) Voucher analysis device, accounting system, voucher analysis method, voucher analysis program
CN110263239A (en) A kind of method, apparatus, storage medium and the computer equipment of invoice identification
CN101908253B (en) System and method for realizing tax control function
CN101599148A (en) Library's self-help payment system and method
CN103136874A (en) Bill processing method based on self-service terminal
CN108921697A (en) A kind of transaction certificate archiving method, device, electronic equipment and storage medium
KR20070020770A (en) System and Method for Adding Mileageor Electronic Money to Mobile Devices Number, Devices for Operating Mileageor Electronic Money, Recording Medium and Information Storing Medium
CN106709769A (en) Automation method and device for exchanging plain invoice into value-added-tax special invoice
CN107730702A (en) Detection method, device and the computer-readable recording medium of paper ticket sequence number
CN101101676B (en) Mobile ticket-selling device and method for public transport
WO2020136778A1 (en) Document classification system, document classification device, document classification method, and document classification proram
CN110197425A (en) A kind of self-service refund terminal in airport and refund method
JP2017054385A (en) Payment slip processing system and payment slip processing method
CN109598863B (en) Self-service official seal record-keeping and self-service seal making system and method
CN103258293B (en) Book ticket processing means, financial processing system
CN112215693A (en) Voucher generation method and related device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication