CN110458997A - A kind of method and system of automatic pinging electronic invoice - Google Patents

A kind of method and system of automatic pinging electronic invoice Download PDF

Info

Publication number
CN110458997A
CN110458997A CN201810424212.0A CN201810424212A CN110458997A CN 110458997 A CN110458997 A CN 110458997A CN 201810424212 A CN201810424212 A CN 201810424212A CN 110458997 A CN110458997 A CN 110458997A
Authority
CN
China
Prior art keywords
invoice
electronic
examination
result
value
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
CN201810424212.0A
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.)
Beijing Zhonghaihuiyin Finance And Taxation Service Co Ltd
Original Assignee
Beijing Zhonghaihuiyin Finance And Taxation 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 Beijing Zhonghaihuiyin Finance And Taxation Service Co Ltd filed Critical Beijing Zhonghaihuiyin Finance And Taxation Service Co Ltd
Priority to CN201810424212.0A priority Critical patent/CN110458997A/en
Publication of CN110458997A publication Critical patent/CN110458997A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
    • G07D7/004Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip
    • G07D7/0047Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency using digital security elements, e.g. information coded on a magnetic thread or strip using checkcodes, e.g. coded numbers derived from serial number and denomination

Abstract

The present invention relates to a kind of methods of automatic pinging electronic invoice, comprising: S1, establishes each invoice element characteristic library in electronic invoice;S2, electronic invoice is verified in advance;S3, the text for extracting electronic invoice file;S4, parsing invoice element;S5, invoice element value will be obtained from electronic invoice two dimensional code and the obtained corresponding invoice element value of parsing is compared;S6, it the invoice element value parsed is submitted to national VAT invoice examination platform checks;S7, it will be compared one by one from the electronic invoice element value that electronic invoice parses and the invoice element value of the same name in examination result, if the value of the invoice element compared is all completely the same, check success, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, checks and fail, output compares the result information not being inconsistent with tax office, and terminates this operation.The invention also discloses the systems of automatic pinging electronic invoice.

Description

A kind of method and system of automatic pinging electronic invoice
Technical field
The present invention relates to electronic invoice field, the method and system of specifically a kind of automatic pinging electronic invoice.
Background technique
With the rapid popularization of electronic invoice, application of the electronic invoice in fields such as electric business, telecommunications, food and drink, hotel, traffic Increasingly extensive, these electronic invoices are all distributed in consumer and enterprise's hand in the form of pdf document, since electronic document is easy to Duplication, modification is convenient, is easy the features such as being forged, and relative to paper invoice, the authenticity examination of electronic invoice, which seems, more attaches most importance to Will with it is urgent.
For the examination for solving VAT invoice (containing electronic invoice), the State Tax Administration establishes national VAT invoice and looks into Platform is tested, which provides the examination for the VAT invoice issued in 1 year in the whole country.On the platform, examination person inputs Invoice codes, invoice number, date of making out an invoice, check code (the general ticket of value-added tax, electronic invoice) or the amount of money of making out an invoice (the special ticket of value-added tax) Corresponding invoice information can be transferred out, then examination person passes through the invoice information provided platform and the hair to be checked for issuing after examination and approval ticket Ticket information is manually compared, and is obtained invoice and is checked result.
Platform is checked based on national VAT invoice, segmentation scheme has carried out double optimization, supports two in scanning invoice Dimension code will check, due to the two dimensional code in invoice include examination platform information needed, this scheme be one simplify it is defeated The examination scheme entered, it is still desirable to the artificial comparison for carrying out invoice content.Since the discrimination of two dimensional code in electronic invoice is far high In paper invoice two dimensional code, therefore barcode scanning examination is applied especially extensively in the examination of electronic invoice.
The problem of above-mentioned examination scheme is that they actually only provide the utilization invoices such as invoice codes, invoice number Mark data carries out invoice data and transfers, and then by being manually compared, there is no really complete to check work.This kind of scheme exists Electronic invoice and paper invoice are put on an equal footing when examination, each invoice factor content for not accounting for electronic invoice is can to pass through The content of electronic invoice pdf document is parsed, to realize the automatic comparison of invoice content.
In addition to above-mentioned invoice examination scheme, some examination schemes, which are provided, carries out invoice solution based on PDF layout files template Analysis, layout files template contain position of each element in PDF, then by extracting corresponding positions in electronic invoice pdf document The text set carries out the parsing of each invoice element, is then checked using the element parsed.The problem of this programme is to electricity The dependence of sub- invoice pdf document pattern, although State General Taxation Administration provides the style specifications of electronic invoice, each electronic invoice manufacturer Inevitably there is different degrees of deviation when realizing, it is tight that some deviations occur that location-based invoice parsing can The mistakes and omissions of weight, so as to cause examination failure.
On the other hand, examination shortage is carried out to electronic invoice pdf document based on template to verify the pre- of pdf document itself Journey can not quickly identify the electronic invoice pdf document of forgery, lead to a large amount of invalid pinging operations, and be easy to be attacked by Does It hits.
Again, because the pdf document generating process of electronic invoice is that invoice information is uploaded to Administration of State Bureau making out an invoice software Later, it is voluntarily generated by electronic invoice service platform.Part electronic invoice service platform is because the reasons such as secret protection may The non-critical data of electronic invoice is hidden or is adjusted when electronic invoice PDF is generated, it is aobvious so as to cause electronic invoice PDF Therefore difference requires all elements to be checked for issuing after examination and approval ticket to the data of the invoice factor data and invoice bottom account library that show by force It is consistent with State General Taxation Administration bottom account library to will lead to examination failure in the examination of this kind of invoice.
Finally, the examination of existing electronic invoice merely provide examination whether successful conclusion, do not formed visual Report, requires accounting etc. the application of original certificate, needs to check people voluntarily from examination platform screenshotss, generating one can For the subsequent voucher used, this is all that the work of people's examination invoice brings inconvenience, and inefficiency.
Summary of the invention
The first purpose of this invention is to provide a kind of method of automatic pinging electronic invoice, to solve above-mentioned background skill The problem of being proposed in art.The system that second object of the present invention is the provision of a kind of automatic pinging electronic invoice.
To achieve the above object, the invention provides the following technical scheme:
A kind of method of automatic pinging electronic invoice, the specific steps are as follows:
S1, each invoice element characteristic library in electronic invoice is established, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice;
Invoice element, which refers to, has independent meaning, the data item for describing invoice in electronic invoice;
The invoice element characteristic refers to possessed by invoice element value or its context, distinguishes with other invoice element values Exclusive feature, invoice element characteristic include the text feature of invoice element value and meet the text frequency of occurrence of feature, invoice is wanted The frequency of occurrence of peculiar first introductory word and the elder generation introductory word of the element in electronic invoice text;
S2, electronic invoice is verified in advance, electronic invoice file is verified in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into step S3, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
S3, the text for extracting electronic invoice file, extract in electronic invoice file according to sequence from top to bottom, from left to right All texts;
S4, parsing invoice element extract from electronic invoice text according to invoice element characteristic each in feature database and meet hair The text of ticket element characteristic generates each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
S5, the invoice codes by step S2 is obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, add up to It is invoice codes in invoice element value that amount of money value and step S4 are parsed, invoice number, the date of making out an invoice, check code, total Amount of money value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and end This operation, if compared successfully, enters step S6;
S6, the invoice codes of the step S4 electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into step S7;
S7, according to the preset invoice element that need to be compared, the electronic invoice element value that step S4 is parsed from electronic invoice with The invoice element value of the same name checked in result in step S6 compares one by one, if the value of the invoice element compared is all completely the same, Success is then checked, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, look into Failure is tested, output compares the result information not being inconsistent with tax office, and terminates this operation.
Further, further include step S8, the result information for the examination failure that step S6 is parsed or examination platform are returned The invoice element value returned in result injects template predetermined, generates examination result figure;Then by electronic invoice file, examination Result figure, the examination result of step S2, S5, S7 generation, current time inject examination report template predetermined, generate one Visual examination report file.
Further, after step s 4 is completed, also invoice commodity row is parsed, then enters back into step S5, In:
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
Further, after being parsed to invoice commodity row, it is also necessary to verify invoice element relationship, in which: Verifying invoice element relationship includes:
The verification of invoice element is carried out according to invoice element relationship, if verification failure, examination failure information is exported and terminates this Secondary operation, if verification is at entering step S5.
A kind of system of automatic pinging electronic invoice, comprises the following modules:
Module is established in invoice element characteristic library, establishes each invoice element characteristic library in electronic invoice, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice;
Invoice element characteristic includes the text feature of invoice element value and meets the text frequency of occurrence of feature, invoice element in electricity The frequency of occurrence of peculiar first introductory word and elder generation's introductory word in sub- invoice text;
The pre- correction verification module of electronic invoice, verifies electronic invoice file in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into Text Feature Extraction module, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
Text Feature Extraction module extracts the text of electronic invoice file, extracts electronics according to sequence from top to bottom, from left to right All texts in invoice file;
Invoice analysis of essentials module parses invoice element, according to invoice element characteristic each in feature database, from electronic invoice text In extract the text for meeting invoice element characteristic, generate each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
First comparison module, by the invoice codes obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, Amount in Total value and invoice codes, the invoice number, date of making out an invoice, check code, He Jijin parsed in obtained invoice element value Volume value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and terminates this Secondary operation enters examination module if compared successfully;
Module is checked, the invoice codes of the electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into the second comparison module;
Second comparison module, according to the preset invoice element that need to be compared, the electronic invoice element that will be parsed from electronic invoice The invoice element value of the same name that result is checked in value and examination module compares one by one, if the value all complete one of the invoice element compared It causes, then checks success, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, It then checks and fails, output compares the result information not being inconsistent with tax office, and terminates this operation.
Further, further includes:
Report generation module is checked, the result information for checking the examination failure that module parses or examination platform are returned the result Invoice element value inject template predetermined, generate examination result figure;Then by electronic invoice file, examination result figure, Examination result, the second comparison module of examination result, the generation of the first comparison module that the pre- correction verification module of electronic invoice generates generate Examination result, current time inject examination report template predetermined, generate a visual examination report file.
Further, after the completion of invoice analysis of essentials module, also to execute invoice commodity row parsing module, then again into Enter the first comparison module, in which:
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
Further, invoice commodity row parsing module is being executed, it is also necessary to invoice element relationship authentication module is executed, Wherein:
Invoice element relationship authentication module carries out the verification of invoice element according to invoice element relationship, if verification failure, exports Examination failure information simultaneously terminates this operation, if verification is at into the first comparison module.
Compared with prior art, the beneficial effects of the present invention are: the present invention provides a kind of automatic pinging electronic invoices Method and system realize the structuring of electronic invoice by the parsing of pdf document and the semantic analysis of PDF content of text, real Showed the automatic comparison to be checked for issuing after examination and approval ticket element Yu bottom account library invoice, and generate can secondary verifying examination report, it is real for the first time Show the automatic operation for receiving electronic invoice report generation from electronic invoice pdf document, can greatly promote electronics hair The efficiency of ticket examination, simplifies the process of electronic invoice examination;The accounting of IT application in enterprises and automation is provided well Basis.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method for automatic pinging electronic invoice disclosed by the invention.
Specific embodiment
The technical solution of the patent is explained in further detail With reference to embodiment.
Embodiment 1
A kind of method of automatic pinging electronic invoice, the specific steps are as follows:
S1, each invoice element characteristic library in electronic invoice is established, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice, and invoice element includes invoice codes, hair Ticket number is made out an invoice the date;
Invoice element, which refers to, has independent meaning, the data item for describing invoice in electronic invoice;
The invoice element characteristic refers to possessed by invoice element value or its context, distinguishes with other invoice element values Exclusive feature, invoice element characteristic include the text feature of invoice element value and meet the text frequency of occurrence of feature, invoice is wanted The frequency of occurrence of peculiar first introductory word and the elder generation introductory word of the element in electronic invoice text;
S2, electronic invoice is verified in advance, electronic invoice file is verified in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into step S3, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
S3, the text for extracting electronic invoice file, extract in electronic invoice file according to sequence from top to bottom, from left to right All texts;
S4, parsing invoice element extract from electronic invoice text according to invoice element characteristic each in feature database and meet hair The text of ticket element characteristic generates each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
S5, the invoice codes by step S2 is obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, add up to It is invoice codes in invoice element value that amount of money value and step S4 are parsed, invoice number, the date of making out an invoice, check code, total Amount of money value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and end This operation, if compared successfully, enters step S6;
S6, the invoice codes of the step S4 electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into step S7;
S7, according to the preset invoice element that need to be compared, the electronic invoice element value that step S4 is parsed from electronic invoice with The invoice element value of the same name checked in result in step S6 compares one by one, if the value of the invoice element compared is all completely the same, Success is then checked, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, look into Failure is tested, output compares the result information not being inconsistent with tax office, and terminates this operation.
Further, further include step S8, the result information for the examination failure that step S6 is parsed or examination platform are returned The invoice element value returned in result injects template (for example being html template) predetermined, generates examination result figure;Then will Examination result, the current time that electronic invoice file, examination result figure, step S2, S5, S7 are generated inject examination predetermined Report template (it can be multiple format, such as PDF format), generating a visual examination report file (can be Multiple format, such as PDF format).
A kind of system of automatic pinging electronic invoice, comprises the following modules:
Module is established in invoice element characteristic library, establishes each invoice element characteristic library in electronic invoice, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice;
Invoice element characteristic includes the text feature of invoice element value and meets the text frequency of occurrence of feature, invoice element in electricity The frequency of occurrence of peculiar first introductory word and elder generation's introductory word in sub- invoice text;
The pre- correction verification module of electronic invoice, verifies electronic invoice file in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into Text Feature Extraction module, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
Text Feature Extraction module extracts the text of electronic invoice file, extracts electronics according to sequence from top to bottom, from left to right All texts in invoice file;
Invoice analysis of essentials module parses invoice element, according to invoice element characteristic each in feature database, from electronic invoice text In extract the text for meeting invoice element characteristic, generate each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
First comparison module, by the invoice codes obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, Amount in Total value and invoice codes, the invoice number, date of making out an invoice, check code, He Jijin parsed in obtained invoice element value Volume value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and terminates this Secondary operation enters examination module if compared successfully;
Module is checked, the invoice codes of the electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into the second comparison module;
Second comparison module, according to the preset invoice element that need to be compared, the electronic invoice element that will be parsed from electronic invoice The invoice element value of the same name that result is checked in value and examination module compares one by one, if the value all complete one of the invoice element compared It causes, then checks success, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, It then checks and fails, output compares the result information not being inconsistent with tax office, and terminates this operation.
Further, further includes:
Report generation module is checked, the result information for checking the examination failure that module parses or examination platform are returned the result Invoice element value inject template (such as html template) predetermined, generate examination result figure;Then by electronic invoice text The examination result of examination result, the generation of the first comparison module that part, the pre- correction verification module of examination result figure, electronic invoice generate, the Examination result that two comparison modules generate, current time inject examination report template predetermined (can be multiple format, Such as PDF format), generate a visual examination report file (can be multiple format, such as PDF format).
Specific embodiment 2
Roughly the same with specific embodiment 1, difference is only in that:
A kind of method of automatic pinging electronic invoice: after step s 4 is completed, also invoice commodity row is parsed, then again Enter step S5, wherein to invoice commodity row carry out parsing include:
Go out the style of writing of all commodity in electronic invoice originally according to the text resolution between commodity header line, Amount in Total row, then Using every style of writing therein this as a candidate quotient conduct, candidate quotient conduct is separated segmentation with space, is generated after dividing Element list, wherein the last one the element conduct of the first element in element list as product name, in element list The commodity amount of tax to be paid, penultimate element in element list is as the tax rate, and the third last element in element list is as gold Volume;If separate after element number is less than 4 or last three elements do not meet the feature of the commodity amount of tax to be paid, the tax rate, the amount of money, The folds that current row is considered as lastrow product name are shown, after current row text is attached to the product name of lastrow, are formed complete Product name;
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
A kind of system of automatic pinging electronic invoice will also execute invoice commodity row solution after the completion of invoice analysis of essentials module Module is analysed, the first comparison module is then entered back into, in which:
Invoice commodity row parsing module goes out the institute in electronic invoice according to the text resolution between commodity header line, Amount in Total row Have commodity style of writing this, then will it is therein it is every compose a piece of writing this as a candidate quotient conduct, candidate quotient conduct is divided with space Every segmentation, element list after generating segmentation, wherein the first element in element list is as product name, in element list The last one element is as the commodity amount of tax to be paid, the inverse of penultimate element in element list as the tax rate, in element list Third element is as the amount of money;If separate after element number is less than 4 or last three elements do not meet the commodity amount of tax to be paid, tax Rate, the feature of the amount of money, then the folds that current row is considered as lastrow product name are shown, current row text is attached to the commodity of lastrow After title, complete product name is formed;
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
Conventional electronic invoice is checked, does not need to be related to the analysis and comparison of commodity row.Pass through the solution of commodity row Analysis, specify electronic invoice includes commodity, and more careful comparison can be carried out by content of good, is made convenient for electronic invoice For the deep application of tax token;
Specific embodiment 3
Roughly the same with specific embodiment 2, difference is only in that:
A kind of method of automatic pinging electronic invoice, after being parsed to invoice commodity row, it is also necessary to verify invoice and want Plain relationship, in which: verifying invoice element relationship includes:
The verification of invoice element is carried out according to invoice element relationship, if verification failure, examination failure information is exported and terminates this Secondary operation, if verification is at entering step S5.
Further, the invoice element relationship refers to the operation relation between each invoice element value and commodity row, Include:
Signer's title of electronic signature in electronic invoice should be identical with seller title;
It is total equal to valence tax that Amount in Total adds total amount of tax to be paid;
" the amount of money * tax rate=amount of tax to be paid " in each commodity row;
The sum of amount of money of each commodity row is equal to Amount in Total;
The sum of amount of tax to be paid of each commodity row is equal to total amount of tax to be paid.
A kind of system of automatic pinging electronic invoice is executing invoice commodity row parsing module, it is also necessary to execute invoice element Relationship authentication module, in which:
Invoice element relationship authentication module carries out the verification of invoice element according to invoice element relationship, if verification failure, exports Examination failure information simultaneously terminates this operation, if verification is at into the first comparison module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, and not In the case where deviating from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included within the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (8)

1. a kind of method of automatic pinging electronic invoice, which is characterized in that specific step is as follows:
S1, each invoice element characteristic library in electronic invoice is established, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice;
Invoice element, which refers to, has independent meaning, the data item for describing invoice in electronic invoice;
The invoice element characteristic refers to possessed by invoice element value or its context, distinguishes with other invoice element values Exclusive feature, invoice element characteristic include the text feature of invoice element value and meet the text frequency of occurrence of feature, invoice is wanted The frequency of occurrence of peculiar first introductory word and the elder generation introductory word of the element in electronic invoice text;
S2, electronic invoice is verified in advance, electronic invoice file is verified in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into step S3, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
S3, the text for extracting electronic invoice file, extract in electronic invoice file according to sequence from top to bottom, from left to right All texts;
S4, parsing invoice element extract from electronic invoice text according to invoice element characteristic each in feature database and meet hair The text of ticket element characteristic generates each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
S5, the invoice codes by step S2 is obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, add up to It is invoice codes in invoice element value that amount of money value and step S4 are parsed, invoice number, the date of making out an invoice, check code, total Amount of money value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and end This operation, if compared successfully, enters step S6;
S6, the invoice codes of the step S4 electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into step S7;
S7, according to the preset invoice element that need to be compared, the electronic invoice element value that step S4 is parsed from electronic invoice with The invoice element value of the same name checked in result in step S6 compares one by one, if the value of the invoice element compared is all completely the same, Success is then checked, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, look into Failure is tested, output compares the result information not being inconsistent with tax office, and terminates this operation.
2. a kind of method of automatic pinging electronic invoice according to claim 1, which is characterized in that it further include step S8, By the result information for the examination failure that step S6 is parsed or examination platform return the result in the injection of invoice element value it is fixed in advance The template of justice generates examination result figure;Then the examination generated electronic invoice file, examination result figure, step S2, S5, S7 As a result, current time injects examination report template predetermined, generates a visual examination report file.
3. a kind of method of automatic pinging electronic invoice according to claim 1, which is characterized in that completed in step S4 Afterwards, also invoice commodity row is parsed, then enters back into step S5, in which:
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
4. a kind of method of automatic pinging electronic invoice according to claim 3, which is characterized in that invoice commodity row After being parsed, it is also necessary to verify invoice element relationship, in which: verifying invoice element relationship includes:
The verification of invoice element is carried out according to invoice element relationship, if verification failure, examination failure information is exported and terminates this Secondary operation, if verification is at entering step S5.
5. a kind of system of automatic pinging electronic invoice, which is characterized in that comprise the following modules:
Module is established in invoice element characteristic library, establishes each invoice element characteristic library in electronic invoice, in which:
Invoice element characteristic library includes all invoice element characteristics in electronic invoice;
Invoice element characteristic includes the text feature of invoice element value and meets the text frequency of occurrence of feature, invoice element in electricity The frequency of occurrence of peculiar first introductory word and elder generation's introductory word in sub- invoice text;
The pre- correction verification module of electronic invoice, verifies electronic invoice file in advance, if extracting electronic invoice two by verifying in advance The invoice element value in code is tieed up, which includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total Value, subsequently into Text Feature Extraction module, if not exporting the result of non-invoice file by verifying in advance and terminating this operation;
Text Feature Extraction module extracts the text of electronic invoice file, extracts electronics according to sequence from top to bottom, from left to right All texts in invoice file;
Invoice analysis of essentials module parses invoice element, according to invoice element characteristic each in feature database, from electronic invoice text In extract the text for meeting invoice element characteristic, generate each invoice element value, in which:
Each invoice element value includes invoice codes, invoice number, date of making out an invoice, check code, Amount in Total value;
First comparison module, by the invoice codes obtained from electronic invoice two dimensional code, invoice number, the date of making out an invoice, check code, Amount in Total value and invoice codes, the invoice number, date of making out an invoice, check code, He Jijin parsed in obtained invoice element value Volume value is compared, if wherein there is invoice element value inconsistent, exports the result of electronic invoice verification failure and terminates this Secondary operation enters examination module if compared successfully;
Module is checked, the invoice codes of the electronic invoice parsed, invoice number, date of making out an invoice, verification code value are submitted to entirely State's VAT invoice examination platform is checked, and the examination that parsing examination platform returns is as a result, if comprising looking into parsing result The result information of failure is tested, then export the result information of examination failure and terminates this operation, if comprising looking into parsing result Successful result information is tested, then each invoice element value in returning the result further is parsed, subsequently into the second comparison module;
Second comparison module, according to the preset invoice element that need to be compared, the electronic invoice element that will be parsed from electronic invoice The invoice element value of the same name that result is checked in value and examination module compares one by one, if the value all complete one of the invoice element compared It causes, then checks success, the successful result of output verification simultaneously terminates this operation;If the value of the invoice element compared is inconsistent, It then checks and fails, output compares the result information not being inconsistent with tax office, and terminates this operation.
6. a kind of system of automatic pinging electronic invoice according to claim 5, which is characterized in that further include:
Report generation module is checked, the result information for checking the examination failure that module parses or examination platform are returned the result Invoice element value inject template predetermined, generate examination result figure;Then by electronic invoice file, examination result figure, Examination result, the second comparison module of examination result, the generation of the first comparison module that the pre- correction verification module of electronic invoice generates generate Examination result, current time inject examination report template predetermined, generate a visual examination report file.
7. a kind of system of automatic pinging electronic invoice according to claim 5, which is characterized in that in invoice analysis of essentials After the completion of module, invoice commodity row parsing module is also executed, the first comparison module is then entered back into, in which:
The commodity row information, including product name, the amount of money, the amount of tax to be paid and the tax rate.
8. a kind of system of automatic pinging electronic invoice according to claim 7, which is characterized in that executing invoice quotient Conduct parsing module, it is also necessary to execute invoice element relationship authentication module, in which:
Invoice element relationship authentication module carries out the verification of invoice element according to invoice element relationship, if verification failure, exports Examination failure information simultaneously terminates this operation, if verification is at into the first comparison module.
CN201810424212.0A 2018-05-07 2018-05-07 A kind of method and system of automatic pinging electronic invoice Pending CN110458997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810424212.0A CN110458997A (en) 2018-05-07 2018-05-07 A kind of method and system of automatic pinging electronic invoice

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810424212.0A CN110458997A (en) 2018-05-07 2018-05-07 A kind of method and system of automatic pinging electronic invoice

Publications (1)

Publication Number Publication Date
CN110458997A true CN110458997A (en) 2019-11-15

Family

ID=68471564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810424212.0A Pending CN110458997A (en) 2018-05-07 2018-05-07 A kind of method and system of automatic pinging electronic invoice

Country Status (1)

Country Link
CN (1) CN110458997A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105548A (en) * 2019-12-13 2020-05-05 远光软件股份有限公司 Batch checking device and method for value-added tax special invoices
CN111768548A (en) * 2020-06-30 2020-10-13 新奥(中国)燃气投资有限公司 Automatic authentication deduction method and device for value-added tax invoice and readable medium
CN112734623A (en) * 2021-04-01 2021-04-30 国网浙江省电力有限公司 Financial certificate anti-counterfeiting encryption and reading identification method in standard cost accounting
CN112819124A (en) * 2021-04-19 2021-05-18 国网浙江省电力有限公司 Method for manufacturing and using anti-counterfeit label of financial document voucher
CN114267114A (en) * 2021-12-27 2022-04-01 建信金融科技有限责任公司 Method, device, electronic equipment and computer readable medium for checking electronic bill

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617415A (en) * 2013-11-19 2014-03-05 北京京东尚科信息技术有限公司 Device and method for automatically identifying invoice
CN103793990A (en) * 2012-11-02 2014-05-14 航天信息股份有限公司 Invoice verification method and system
CN103903171A (en) * 2014-04-02 2014-07-02 浪潮软件集团有限公司 Interactive network invoice authenticity checking method
CN104299312A (en) * 2014-11-11 2015-01-21 重庆远见信息产业集团有限公司 Invoice verification method
CN104700169A (en) * 2013-12-05 2015-06-10 航天信息股份有限公司 Method and system for inspecting and managing invoices
CN105023340A (en) * 2015-07-09 2015-11-04 胡昭 Cloud intelligent invoice identification and examination system and method based on scanner
US20160171627A1 (en) * 2014-12-15 2016-06-16 Abbyy Development Llc Processing electronic documents for invoice recognition
CN105701905A (en) * 2014-11-28 2016-06-22 航天信息股份有限公司 Invoice recognition method and system
CN105809814A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Invoice certification system supporting multiple invoice types and method
CN106980995A (en) * 2017-05-26 2017-07-25 百望电子发票数据服务有限公司 A kind of identification of electronic invoice layout files and checking method and relevant apparatus

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793990A (en) * 2012-11-02 2014-05-14 航天信息股份有限公司 Invoice verification method and system
CN103617415A (en) * 2013-11-19 2014-03-05 北京京东尚科信息技术有限公司 Device and method for automatically identifying invoice
CN104700169A (en) * 2013-12-05 2015-06-10 航天信息股份有限公司 Method and system for inspecting and managing invoices
CN103903171A (en) * 2014-04-02 2014-07-02 浪潮软件集团有限公司 Interactive network invoice authenticity checking method
CN104299312A (en) * 2014-11-11 2015-01-21 重庆远见信息产业集团有限公司 Invoice verification method
CN105701905A (en) * 2014-11-28 2016-06-22 航天信息股份有限公司 Invoice recognition method and system
US20160171627A1 (en) * 2014-12-15 2016-06-16 Abbyy Development Llc Processing electronic documents for invoice recognition
CN105809814A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Invoice certification system supporting multiple invoice types and method
CN105023340A (en) * 2015-07-09 2015-11-04 胡昭 Cloud intelligent invoice identification and examination system and method based on scanner
CN106980995A (en) * 2017-05-26 2017-07-25 百望电子发票数据服务有限公司 A kind of identification of electronic invoice layout files and checking method and relevant apparatus

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111105548A (en) * 2019-12-13 2020-05-05 远光软件股份有限公司 Batch checking device and method for value-added tax special invoices
CN111768548A (en) * 2020-06-30 2020-10-13 新奥(中国)燃气投资有限公司 Automatic authentication deduction method and device for value-added tax invoice and readable medium
CN111768548B (en) * 2020-06-30 2022-03-15 新奥(中国)燃气投资有限公司 Automatic authentication deduction method and device for value-added tax invoice and readable medium
CN112734623A (en) * 2021-04-01 2021-04-30 国网浙江省电力有限公司 Financial certificate anti-counterfeiting encryption and reading identification method in standard cost accounting
CN112734623B (en) * 2021-04-01 2021-06-22 国网浙江省电力有限公司 Financial certificate anti-counterfeiting encryption and reading identification method in standard cost accounting
CN112819124A (en) * 2021-04-19 2021-05-18 国网浙江省电力有限公司 Method for manufacturing and using anti-counterfeit label of financial document voucher
CN112819124B (en) * 2021-04-19 2021-06-22 国网浙江省电力有限公司 Method for manufacturing and using anti-counterfeit label of financial document voucher
CN114267114A (en) * 2021-12-27 2022-04-01 建信金融科技有限责任公司 Method, device, electronic equipment and computer readable medium for checking electronic bill

Similar Documents

Publication Publication Date Title
CN110458997A (en) A kind of method and system of automatic pinging electronic invoice
CN105023149B (en) Method for realizing offline cash-receiving diversified settlement and payment management system
CN108960223A (en) The method for automatically generating voucher based on bill intelligent recognition
CN106980995A (en) A kind of identification of electronic invoice layout files and checking method and relevant apparatus
CN106530021A (en) Electronic invoice making out system apparatus
CN103544136B (en) A kind of list method for automatically inputting
WO2011068867A2 (en) System and method of matching financial transaction records to merchant records of a merchant profile database
CN102158488A (en) Dynamic countersign generation method and device and authentication method and system
CN109523685A (en) A kind of electronic invoice checking method and system based on OFD formatted file
CN110287247A (en) Date storage method, device, equipment and storage medium based on Unionpay's system
CN109033058A (en) Contract text verification method, device, computer equipment and storage medium
CN105303374A (en) Two-dimensional code fast payment method based on multi-display
CN107798596A (en) Credit card fabrication method, apparatus, computer equipment and readable storage medium storing program for executing
CN109034818A (en) The method and device for generating payment label, being verified using payment label
CN107705130A (en) A kind of on-line payment method
CN105354739A (en) Method and device for generating order
CN112329418A (en) Parallel approval method, equipment and computer readable storage medium
CN110796531A (en) Web-based accounting voucher generation method and system
CN109711911A (en) A kind of electronic invoice using dynamic code technology issues method
CN107730335A (en) A kind of multistage price data processing system applied to electric business platform
CN112258256A (en) Method and system for processing invoice posting
CN112162744A (en) Automatic code generation method and device based on business scene
KR100981757B1 (en) Method and system for providing contents-certified service
CN110766485A (en) Method for issuing electronic ticket based on short message
CN111400187A (en) Parameter dynamic verification system and method based on customized data source

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191115