CN109523685A - A kind of electronic invoice checking method and system based on OFD formatted file - Google Patents

A kind of electronic invoice checking method and system based on OFD formatted file Download PDF

Info

Publication number
CN109523685A
CN109523685A CN201811027900.XA CN201811027900A CN109523685A CN 109523685 A CN109523685 A CN 109523685A CN 201811027900 A CN201811027900 A CN 201811027900A CN 109523685 A CN109523685 A CN 109523685A
Authority
CN
China
Prior art keywords
invoice
information
signature information
metadata
accuracy
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
CN201811027900.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.)
Aisino Corp
Original Assignee
Aisino Corp
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 Aisino Corp filed Critical Aisino Corp
Priority to CN201811027900.XA priority Critical patent/CN109523685A/en
Publication of CN109523685A publication Critical patent/CN109523685A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of electronic invoice checking methods and system based on OFD formatted file, by the electronic invoice for obtaining OFD format to be checked;The electronic invoice of the OFD format to be checked of acquisition is parsed, invoice metadata and invoice signature information are obtained;The information accuracy of the invoice metadata is verified;After confirming the information accuracy of the invoice metadata by verifying, the information accuracy of the invoice signature information is verified, to check the true and false of the electronic invoice of OFD format to be checked.OFD file need to be only uploaded in the present invention, it can be obtained the examination result of invoice after several seconds, invoice examination rate can reach second grade, compared to needing to fill in manually at present, invoice number, invoice codes, the date of making out an invoice, the cumbersome invoice of multiple fields such as tax included price, identifying code checks mode, examination efficiency and accuracy is greatly improved, solves that the invoice data due to caused by this body structure of PDF is difficult to extract, invoice is difficult to the problems such as checking.

Description

A kind of electronic invoice checking method and system based on OFD formatted file
Technical field
The present invention relates to electronic invoice verification technique fields, and more particularly, to a kind of based on OFD formatted file Electronic invoice checking method and system.
Background technique
For the construction needs for further adapting to socio-economic development and tax revenue modernization, electronic invoice is in e-commerce and respectively Field is widely used, and the change of paper invoice to electronic invoice has been done step-by-step.With the continuous popularization of electronic invoice, How drawee party verifies the authenticity and integrity of electronic invoice and how to ensure the problems such as invoice is signed and issued by signer urgently It is to be solved.
The format PDF (Portable Document Format) that electronic invoice generallys use at present.In invoice generation, stream Turn, during storage, PDF is prosecuted to the end, and when reading, printing or printing in various equipment, the space of a whole page is fixed, and effect is presented not Because hardware environment, operator variation due to change, with paper invoice texture, can " realistically " show the original of invoice Looks.But the extensive use with PDF in electronic invoice field, due to this body structure of PDF, such as technical system is complicated, file Invoice caused by huge structure is difficult to the problems such as high efficiency is checked automatically and gradually emerges in large numbers.When carrying out the examination of PDF format electronic invoice, User needs manually to input multiple fields, complex steps and the consumptions such as invoice codes, invoice number, date of making out an invoice, the amount of money of making out an invoice When it is longer, become a problem in electronic invoice extension process.Therefore, in order to promote the examination friendliness of user, when business It is suddenly to find a kind of automatic, quick invoice examination scheme.
Format document format national standard OFD (Open Fixed-layout Document) as it is a kind of based on XML and The electronic document format of compress technique removes resource-type file such as picture and more matchmakers using the format standard of " file+packing " framework Outside external format of the body using prevalence, document data is all described using the XML with good expansibility and portability, and Carry out storing data in such a way that multiple files are packaged, logical construction includes main-inlet, root node, resource description and the text of file Equal parts, are finally organized with Tree structure.OFD is realized by unique identification to the optimization of file storage, to parsing The raising of efficiency and reduction to being coupled between data.It is named for each element using unique mark, therefore Directly quote these marks in the place for needing to call.It is subsequent need to extract invoice data when, read XML in corresponding label Value, can easily obtain desired invoice data.
Summary of the invention
The present invention proposes a kind of electronic invoice checking method and system based on OFD formatted file, to solve electronic invoice Invoice data be difficult to extract, the problem of true or false proving program is cumbersome and time-consuming.
To solve the above-mentioned problems, according to an aspect of the invention, there is provided a kind of electronics based on OFD formatted file Invoice checking method, which is characterized in that the described method includes:
Step 1, the electronic invoice of OFD format to be checked is obtained;
Step 2, the electronic invoice of the OFD format to be checked of acquisition is parsed, obtains invoice metadata and invoice Signature information;
Step 3, the information accuracy of the invoice metadata is verified;Wherein, if the letter of the invoice metadata Accuracy is ceased by verifying, then enters step 4;Conversely, the electronic invoice of the directly confirmation OFD format to be checked is wig Ticket;
Step 4, after confirming the information accuracy of the invoice metadata by verifying, to the invoice signature information Information accuracy is verified;Wherein, if the information accuracy of the invoice signature information is confirmed described to be checked by verifying The electronic invoice for the OFD format tested is true invoice;Conversely, then the electronic invoice of the confirmation OFD format to be checked is wig Ticket.
Preferably, wherein the invoice metadata includes: the corresponding number ID value of critical field and invoice data;The pass Key field includes at least one of the following: invoice codes, invoice number, invoice amount and check code.
Preferably, wherein benefit obtains invoice metadata with the following method:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package, obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice for the OFD format tested;
Read at least one critical field pair in the subfile for describing critical field and number ID value corresponding relationship The number ID value answered;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one The corresponding number ID value of critical field determines corresponding invoice data.
Preferably, wherein benefit obtains invoice signature information with the following method:
It reads the subfile for describing signature information and obtains invoice signature information.
Preferably, wherein the information accuracy to the invoice metadata is verified, comprising:
The electronic invoice data stored in the invoice metadata and soft KEY is compared, if comparing result is consistent, Confirm that the information accuracy of the invoice metadata is verified, conversely, then confirming the information accuracy of the invoice metadata Verifying does not pass through.
Preferably, wherein the information accuracy to the invoice signature information is verified, comprising:
The reasonability of the data format of the invoice signature information is verified;
The correctness of signature value in the invoice signature information is verified;
The validity of seal chapter testimony of a witness book in the invoice signature information is verified;
The validity period of E-seal in the invoice signature information is verified;
The accuracy of summary data in the invoice signature information is verified.
Preferably, wherein the accuracy to the summary data in the invoice signature information is verified, comprising:
The digest value stored in digest value and soft KEY in the invoice signature information is compared, and obtains comparison As a result.
According to another aspect of the present invention, a kind of electronic invoice checking system based on OFD formatted file is provided, It is characterized in that, the system comprises:
Invoice acquiring unit, for obtaining the electronic invoice of OFD format to be checked;
Data capture unit, the electronic invoice for the OFD format to be checked to acquisition parse, and obtain invoice member Data and invoice signature information;
Invoice metadata validation unit is verified for the information accuracy to the invoice metadata;Wherein, if institute The information accuracy of invoice metadata is stated by verifying, then enters invoice signature information authentication unit;Conversely, directly described in confirmation The electronic invoice of OFD format to be checked is false invoice;
Invoice signature information authentication unit, after for the information accuracy when the confirmation invoice metadata by verifying, The information accuracy of the invoice signature information is verified;Wherein, if the information accuracy of the invoice signature information is logical Verifying is crossed, then the electronic invoice of the confirmation OFD format to be checked is true invoice;Conversely, then confirming the OFD to be checked The electronic invoice of format is false invoice.
Preferably, wherein the invoice metadata includes: the corresponding number ID value of critical field and invoice data;The pass Key field includes at least one of the following: invoice codes, invoice number, invoice amount and check code.
Preferably, wherein in the data capture unit, invoice metadata is obtained using following system:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package, obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice for the OFD format tested;
Read at least one critical field pair in the subfile for describing critical field and number ID value corresponding relationship The number ID value answered;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one The corresponding number ID value of critical field determines corresponding invoice data.
Preferably, wherein in the data capture unit, invoice signature information is obtained using following system:
It reads the subfile for describing signature information and obtains invoice signature information.
Preferably, wherein the invoice metadata validation unit, tests the information accuracy of the invoice metadata Card, comprising:
The electronic invoice data stored in the invoice metadata and soft KEY is compared, if comparing result is consistent, Confirm that the information accuracy of the invoice metadata is verified, conversely, then confirming the information accuracy of the invoice metadata Verifying does not pass through.
Preferably, wherein the invoice signature information authentication unit, to the information accuracy of the invoice signature information into Row verifying, comprising:
Data format soundness verification module, the reasonability for the data format to the invoice signature information are tested Card;
Signature value verification of correctness module is verified for the correctness to signature value in the invoice signature information;
Seal certificate validity authentication module, for the validity to seal chapter testimony of a witness book in the invoice signature information It is verified;
E-seal validity verification module is tested for the validity period to E-seal in the invoice signature information Card;
Summary data Accuracy Verification module is carried out for the accuracy to the summary data in the invoice signature information Verifying.
Preferably, wherein the summary data Accuracy Verification module, to the summary data in the invoice signature information Accuracy verified, comprising:
The digest value stored in digest value and soft KEY in the invoice signature information is compared, and obtains comparison As a result.
The present invention provides a kind of electronic invoice checking methods and system based on OFD formatted file, to be checked by obtaining The electronic invoice for the OFD format tested;The electronic invoice of the OFD format to be checked of acquisition is parsed, invoice member number is obtained According to invoice signature information;The information accuracy of the invoice metadata is verified;When the confirmation invoice metadata After information accuracy is by verifying, the information accuracy of the invoice signature information is verified, to check OFD to be checked The true and false of the electronic invoice of format.OFD file need to be only uploaded in the inventive solutions, can be obtained invoice after several seconds Examination can reach second grade as a result, invoice checks rate, fills in invoice number manually compared to current needs, invoice codes, makes out an invoice The cumbersome invoices of multiple fields such as date, not tax included price, identifying code checks mode, greatly improves examination efficiency and accurate Degree, solves that the invoice data due to caused by this body structure of PDF is difficult to extract, invoice is difficult to the problems such as checking, and the present invention is unique Technical advantage by power-assisted its future in multiple necks such as electronic invoice, electronic government documents, file administration, electronics license, digital printings Domain, solving practical problems realize great-leap-forward development.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is the process according to the electronic invoice checking method 100 based on OFD formatted file of embodiment of the present invention Figure;
Fig. 2 is the electronic invoice that OFD format to be checked is opened in a manner of compressed package according to embodiment of the present invention Hierarchical organization structure figure;
Fig. 3 is according to the critical field title of embodiment of the present invention and the corresponding diagram of ID value;
Fig. 4 is the flow chart according to the acquisition Electronic Signature data of embodiment of the present invention;
Fig. 5 is the flow chart according to the verifying invoice signature information of embodiment of the present invention;
Fig. 6 is to be shown according to the structure of the electronic invoice checking system 600 based on OFD formatted file of embodiment of the present invention It is intended to.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is the process according to the electronic invoice checking method 100 based on OFD formatted file of embodiment of the present invention Figure.The electronic invoice checking method based on OFD formatted file that embodiments of the present invention provide, it is to be checked by obtaining The electronic invoice of OFD format;The electronic invoice of the OFD format to be checked of acquisition is parsed, obtain invoice metadata and Invoice signature information;The information accuracy of the invoice metadata is verified;When the information for confirming the invoice metadata After accuracy is by verifying, the information accuracy of the invoice signature information is verified, to check OFD format to be checked Electronic invoice the true and false.OFD file only need to be uploaded in the technical solution that embodiments of the present invention provide, after several seconds The examination of acquisition invoice can reach second grade as a result, invoice checks rate, manual compared to current needs to fill in invoice number, invoice Code, the date of making out an invoice, the cumbersome invoice of multiple fields such as tax included price, identifying code does not check mode, greatly improves examination effect Rate and accuracy, solve that the invoice data due to caused by this body structure of PDF is difficult to extract, invoice is difficult to the problems such as checking, this Unique technical advantage will be invented by its future of power-assisted in electronic invoice, electronic government documents, file administration, electronics license, digital printing Etc. multiple fields, solving practical problems, realize great-leap-forward development.Embodiments of the present invention provide based on OFD formatted file Electronic invoice checking method 100 since step 101 place, the electronic invoice of OFD format to be checked is obtained in step 101.
Preferably, in step 102, the electronic invoice of the OFD format to be checked of acquisition is parsed, obtains invoice member Data and invoice signature information.
Preferably, wherein the invoice metadata includes: the corresponding number ID value of critical field and invoice data;The pass Key field includes at least one of the following: invoice codes, invoice number, invoice amount and check code.
Preferably, wherein benefit obtains invoice metadata with the following method:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package, obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice for the OFD format tested;
Read at least one critical field pair in the subfile for describing critical field and number ID value corresponding relationship The number ID value answered;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one The corresponding number ID value of critical field determines corresponding invoice data.
Preferably, wherein benefit obtains invoice signature information with the following method:
It reads the subfile for describing signature information and obtains invoice signature information.
In embodiments of the present invention, OFD file is obtained first, is opened and is read in the form of compressed package and wherein stored Critical field and the XML file of number ID value corresponding relationship are to obtain invoice codes, invoice number, invoice amount and check code Etc. critical fielies specific ID, then according to the ID value of critical field description critical field number ID value and invoice data pair Invoice data is found in the subfile that should be related to, is corresponded to critical field and invoice data by ID value.For example it sends out, invoice The ID value of code is 21, and finding the actual invoice data of invoice codes by ID=21 is 3100174320, such invoice codes It is just mapped with 3100174320, and returns to the invoice metadata of all critical fielies in OFD file.
Fig. 2 is the electronic invoice that OFD format to be checked is opened in a manner of compressed package according to embodiment of the present invention Hierarchical organization structure figure.As shown in Fig. 2, by taking layout files test2017.ofd as an example.The mode of first step compressed package is beaten Open file includes OFD.xml and Doc_0 in file, and wherein OFD.xml is the main-inlet file of test2017.ofd, have and Only one, title can not be modified.Doc_0 is the file of No. 0 document of test2017.ofd, further opens Doc_0 File, the file that file includes are as shown in Figure 2.Custom Tag is that description critical field (node) title is corresponding with ID value The file of relationship, x.xml are the file for describing node and number ID value corresponding relationship, CustomTags.xml mark node name Claim the position where xml document corresponding with ID value, Document.xml is the root node of document, DocumentRes.xml mark The corresponding ID value of each nodename of will resource file, PublicRes.xml are the index of document public resource, and Res is money Source folder, Pages are then the document files folder of paging;Content.xml is the number ID value and invoice data for describing node The file of corresponding relationship.Second step reads the corresponding ID value of critical field in x.xml, as shown in Figure 3.Third step is further beaten Pages file is opened, Content.xml file is read, according to the ID value for the critical field that second step is read, finds corresponding hair Ticket data.4th step returns to invoice metadata, i.e., all critical fielies and corresponding invoice data in OFD file.Pass through reading File signature.xml for describing signature information obtains invoice signature information.
Preferably, in step 103, the information accuracy of the invoice metadata is verified;Wherein, if the invoice The information accuracy of metadata then enters step 104 by verifying;Conversely, the electricity of the directly confirmation OFD format to be checked Sub- invoice is false invoice.
Preferably, wherein the information accuracy to the invoice metadata is verified, comprising: by the invoice member The electronic invoice data stored in data and soft KEY compares, if comparing result is consistent, confirms the invoice metadata Information accuracy is verified, conversely, then confirming that the information accuracy verifying of the invoice metadata does not pass through.
Soft KEY is equivalent to the u shield of Internetbank, but is not hardware device, is a software, it stores the correlation of electronic invoice Data.If include in invoice metadata the invoice data that is stored in the corresponding invoice data of any one critical field and soft KEY not Unanimously, then the electronic invoice that the OFD format of examination can be confirmed is false invoice.If the corresponding hair of each critical field of ticket metadata The invoice data stored in ticket data and soft KEY is inconsistent, then continues to test the information accuracy of invoice signature information Card.
Preferably, in step 104, after confirming the information accuracy of the invoice metadata by verifying, to the hair The information accuracy of ticket signature information is verified;Wherein, if the information accuracy of the invoice signature information is by verifying, The electronic invoice of the confirmation OFD format to be checked is true invoice;Conversely, then confirming the electricity of the OFD format to be checked Sub- invoice is false invoice.
Preferably, wherein the information accuracy to the invoice signature information is verified, comprising:
The reasonability of the data format of the invoice signature information is verified;
The correctness of signature value in the invoice signature information is verified;
The validity of seal chapter testimony of a witness book in the invoice signature information is verified;
The validity period of E-seal in the invoice signature information is verified;
The accuracy of summary data in the invoice signature information is verified.
Preferably, wherein the accuracy to the summary data in the invoice signature information is verified, comprising: will The digest value stored in digest value and soft KEY in the invoice signature information compares, and obtains comparing result.
The stamped signature process of format document OFD formatted file is to add visually in such a way that increment is modified into OFD file Change the process of seal and Electronic Signature data.The object of signature includes all the elements and resource in entire OFD file, when legal User to OFD file carry out visualization affix one's seal when, soft KEY calculates digest value and signature value, and then is assembled into Electronic Signature number According to and be added in OFD file.
Fig. 4 is the flow chart according to the acquisition Electronic Signature data of embodiment of the present invention.As shown in figure 4, detailed process It include: the validity for verifying stamped signature people digital certificate, verifying content includes certificate revocation list, certificate trust chain etc.;It obtains simultaneously Verify electronic seal data;Stamped signature people's list of cert in electronic seal data is obtained, and stamped signature people digital certificate is carried out with it Binary system compares;It obtains original text to be signed and carries out Hash operation, obtain hash value;It is tied substantially according to the XML of OFD signature section Structure assembles data to be signed, and signs to it;And by the above content according to ASN.1 (Abstract Syntax Notation One) standard is packaged into Electronic Signature data.
Fig. 5 is the flow chart according to the verifying invoice signature information of embodiment of the present invention.As shown in figure 5, testing chapter process File and Electronic Signature data are described to obtain the signature of stamped signature OFD file, and literary with this document OFD with storing in soft KEY The reasonability that detailed process includes: verify data format is compared in part content and the corresponding summary data of resource;Verifying signature The correctness of value;Verify the validity of seal chapter testimony of a witness book;Verify the validity period of E-seal;And verifying summary data The digest value stored in digest value and soft KEY in stamped signature OFD file is compared acquisition result by accuracy.If the invoice The information accuracy of signature information is by verifying, then the electronic invoice of the confirmation OFD format to be checked is true invoice;Instead It, then the electronic invoice of the confirmation OFD format to be checked is false invoice.
Show that the technical solution that embodiments of the present invention provide, invoice examination rate can reach the second according to experimental data Grade.It needs to fill in invoice number, invoice codes, date of making out an invoice, not multiple fields such as tax included price, identifying code manually compared to current Cumbersome invoice check mode, based on OFD invoice examination scheme implement after, user need to only upload OFD file, after several seconds Obtain the examination result of invoice.OFD is difficult to extract for the invoice data due to caused by this body structure of PDF, invoice is difficult to check The problems such as propose effective solution scheme, unique technical advantage will be by its future of power-assisted in electronic invoice, electronic government documents, shelves The multiple fields such as case management, electronics license, digital printing, solving practical problems realize great-leap-forward development.
Fig. 6 is to be shown according to the structure of the electronic invoice checking system 600 based on OFD formatted file of embodiment of the present invention It is intended to.As shown in fig. 6, the electronic invoice checking system 600 based on OFD formatted file that embodiments of the present invention provide, packet Include: invoice acquiring unit 601, data capture unit 602, invoice metadata validation unit 603 and the verifying of invoice signature information are single Member 604.
Preferably, the invoice acquiring unit 601, for obtaining the electronic invoice of OFD format to be checked.
Preferably, the data capture unit 602, the electronic invoice for the OFD format to be checked to acquisition carry out Parsing obtains invoice metadata and invoice signature information.
Preferably, wherein the invoice metadata includes: the corresponding number ID value of critical field and invoice data;The pass Key field includes at least one of the following: invoice codes, invoice number, invoice amount and check code.
Preferably, wherein in the data capture unit, invoice metadata is obtained using following system:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package, obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice for the OFD format tested;
Read at least one critical field pair in the subfile for describing critical field and number ID value corresponding relationship The number ID value answered;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one The corresponding number ID value of critical field determines corresponding invoice data.
Preferably, wherein in the data capture unit, invoice signature information is obtained using following system:
It reads the subfile for describing signature information and obtains invoice signature information.
Preferably, the invoice metadata validation unit 603 is carried out for the information accuracy to the invoice metadata Verifying.Wherein, if the information accuracy of the invoice metadata enters invoice signature information authentication unit 604 by verifying; Conversely, the electronic invoice of the directly confirmation OFD format to be checked is false invoice.
Preferably, wherein the invoice metadata validation unit 603, carries out the information accuracy of the invoice metadata Verifying, comprising: the electronic invoice data stored in the invoice metadata and soft KEY is compared, if comparing result is consistent, Then confirm that the information accuracy of the invoice metadata is verified, conversely, then confirming that the information of the invoice metadata is accurate Property verifying do not pass through.
Preferably, the invoice signature information authentication unit 604 confirms that the information of the invoice metadata is accurate for working as Property by verifying after, the information accuracy of the invoice signature information is verified.Wherein, if the invoice signature information Information accuracy is by verifying, then the electronic invoice of the confirmation OFD format to be checked is true invoice;Conversely, then confirming institute The electronic invoice for stating OFD format to be checked is false invoice.
Preferably, wherein the invoice signature information authentication unit 604, to the information accuracy of the invoice signature information It is verified, comprising: data format soundness verification module 6041, signature value verification of correctness module 6042, seal certificate have Effect property authentication module 6043, E-seal validity verification module 6044 and summary data Accuracy Verification module 6045.
Preferably, the data format soundness verification module 6041, for the data lattice to the invoice signature information The reasonability of formula is verified.
Preferably, the signature value verification of correctness module 6042, for signature value in the invoice signature information Correctness is verified.
Preferably, the seal certificate validity authentication module 6043, for seal system in the invoice signature information The validity of chapter testimony of a witness book is verified.
Preferably, the E-seal validity verification module 6044, for electronic seal in the invoice signature information The validity period of chapter is verified.
Preferably, the summary data Accuracy Verification module 6045, for the abstract in the invoice signature information The accuracy of data is verified.
Preferably, wherein the summary data Accuracy Verification module 6045, to the abstract in the invoice signature information The accuracy of data is verified, comprising: by the digest value that stores in the digest value and soft KEY in the invoice signature information into Row comparison, and obtain comparing result.
The electronic invoice checking system 600 based on OFD formatted file of the embodiment of the present invention and of the invention another The electronic invoice checking method 100 based on OFD formatted file of embodiment is corresponding, and details are not described herein.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as Defined by subsidiary Patent right requirement, in addition to the present invention other embodiments disclosed above equally fall in it is of the invention In range.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.

Claims (14)

1. a kind of electronic invoice checking method based on OFD formatted file, which is characterized in that the described method includes:
Step 1, the electronic invoice of OFD format to be checked is obtained;
Step 2, the electronic invoice of the OFD format to be checked of acquisition is parsed, obtains invoice metadata and invoice stamped signature Information;
Step 3, the information accuracy of the invoice metadata is verified;Wherein, if the information of the invoice metadata is quasi- True property then enters step 4 by verifying;Conversely, the electronic invoice of the directly confirmation OFD format to be checked is false invoice;
Step 4, after confirming the information accuracy of the invoice metadata by verifying, to the information of the invoice signature information Accuracy is verified;Wherein, if the information accuracy of the invoice signature information is by verifying, confirmation is described to be checked The electronic invoice of OFD format is true invoice;Conversely, then the electronic invoice of the confirmation OFD format to be checked is false invoice.
2. the method according to claim 1, wherein the invoice metadata includes: the corresponding volume of critical field Number ID value and invoice data;The critical field includes at least one of the following: invoice codes, invoice number, invoice amount And check code.
3. according to the method described in claim 2, it is characterized in that, benefit obtains invoice metadata with the following method:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice of OFD format;
It reads corresponding at least one critical field in the subfile of number ID value corresponding relationship for describing critical field Number ID value;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one key The corresponding number ID value of field determines corresponding invoice data.
4. the method according to claim 1, wherein benefit obtains invoice signature information with the following method:
It reads the subfile for describing signature information and obtains invoice signature information.
5. the method according to claim 1, wherein the information accuracy to the invoice metadata carries out Verifying, comprising:
The electronic invoice data stored in the invoice metadata and soft KEY is compared, if comparing result is consistent, is confirmed The information accuracy of the invoice metadata is verified, conversely, then confirming the information accuracy verifying of the invoice metadata Do not pass through.
6. the method according to claim 1, wherein the information accuracy to the invoice signature information into Row verifying, comprising:
The reasonability of the data format of the invoice signature information is verified;
The correctness of signature value in the invoice signature information is verified;
The validity of seal chapter testimony of a witness book in the invoice signature information is verified;
The validity period of E-seal in the invoice signature information is verified;
The accuracy of summary data in the invoice signature information is verified.
7. according to right to go 6 described in method, which is characterized in that the summary data in the invoice signature information Accuracy is verified, comprising:
The digest value stored in digest value and soft KEY in the invoice signature information is compared, and obtains comparing result.
8. a kind of electronic invoice checking system based on OFD formatted file, which is characterized in that the system comprises:
Invoice acquiring unit, for obtaining the electronic invoice of OFD format to be checked;
Data capture unit, the electronic invoice for the OFD format to be checked to acquisition parse, and obtain invoice metadata With invoice signature information;
Invoice metadata validation unit is verified for the information accuracy to the invoice metadata;Wherein, if the hair The information accuracy of ticket metadata then enters invoice signature information authentication unit by verifying;Conversely, directly confirming described to be checked The electronic invoice for the OFD format tested is false invoice;
Invoice signature information authentication unit, after for the information accuracy when the confirmation invoice metadata by verifying, to institute The information accuracy for stating invoice signature information is verified;Wherein, if the information accuracy of the invoice signature information is by testing Card, then the electronic invoice of the confirmation OFD format to be checked is true invoice;Conversely, then confirming the OFD format to be checked Electronic invoice be false invoice.
9. system according to claim 8, which is characterized in that the invoice metadata includes: the corresponding volume of critical field Number ID value and invoice data;The critical field includes at least one of the following: invoice codes, invoice number, invoice amount And check code.
10. system according to claim 9, which is characterized in that in the data capture unit, obtained using following system Invoice metadata:
The electronic invoice that the OFD format to be checked is opened in a manner of compressed package obtains described to be checked for describing Multiple subfiles of the data information of the electronic invoice of OFD format;
It reads corresponding at least one critical field in the subfile of number ID value corresponding relationship for describing critical field Number ID value;
It reads for describing the number ID value of critical field and the subfile of invoice data corresponding relationship, according at least one key The corresponding number ID value of field determines corresponding invoice data.
11. system according to claim 8, which is characterized in that in the data capture unit, obtained using following system Invoice signature information:
It reads the subfile for describing signature information and obtains invoice signature information.
12. system according to claim 8, which is characterized in that the invoice metadata validation unit, to the invoice member The information accuracy of data is verified, comprising:
The electronic invoice data stored in the invoice metadata and soft KEY is compared, if comparing result is consistent, is confirmed The information accuracy of the invoice metadata is verified, conversely, then confirming the information accuracy verifying of the invoice metadata Do not pass through.
13. system according to claim 8, which is characterized in that the invoice signature information authentication unit, to the invoice The information accuracy of signature information is verified, comprising:
Data format soundness verification module, the reasonability for the data format to the invoice signature information are verified;
Signature value verification of correctness module is verified for the correctness to signature value in the invoice signature information;
Seal certificate validity authentication module is carried out for the validity to seal chapter testimony of a witness book in the invoice signature information Verifying;
E-seal validity verification module is verified for the validity period to E-seal in the invoice signature information;
Summary data Accuracy Verification module is tested for the accuracy to the summary data in the invoice signature information Card.
14. according to right to go 13 described in system, which is characterized in that the summary data Accuracy Verification module, to described The accuracy of summary data in invoice signature information is verified, comprising:
The digest value stored in digest value and soft KEY in the invoice signature information is compared, and obtains comparing result.
CN201811027900.XA 2018-09-04 2018-09-04 A kind of electronic invoice checking method and system based on OFD formatted file Pending CN109523685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811027900.XA CN109523685A (en) 2018-09-04 2018-09-04 A kind of electronic invoice checking method and system based on OFD formatted file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811027900.XA CN109523685A (en) 2018-09-04 2018-09-04 A kind of electronic invoice checking method and system based on OFD formatted file

Publications (1)

Publication Number Publication Date
CN109523685A true CN109523685A (en) 2019-03-26

Family

ID=65771213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811027900.XA Pending CN109523685A (en) 2018-09-04 2018-09-04 A kind of electronic invoice checking method and system based on OFD formatted file

Country Status (1)

Country Link
CN (1) CN109523685A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532812A (en) * 2019-09-02 2019-12-03 江西金格科技股份有限公司 A kind of electronics license warehouse-out method based on OFD form format
CN111274615A (en) * 2020-01-15 2020-06-12 宁波市标准化研究院 Long-acting digital signature method based on OFD format file
CN112132641A (en) * 2020-09-07 2020-12-25 百望股份有限公司 Electronic invoice generating system and method
CN112131183A (en) * 2020-09-07 2020-12-25 百望股份有限公司 Linear access method of OFD electronic file
CN112783833A (en) * 2020-12-31 2021-05-11 航天信息股份有限公司 Analysis system and device for OFD format invoice file
CN113255317A (en) * 2021-05-31 2021-08-13 深圳高灯计算机科技有限公司 OFD format invoice analysis method, system and equipment based on cloud service
CN113743959A (en) * 2021-08-30 2021-12-03 远光软件股份有限公司 Method for verifying OFD electronic invoice signature, computer device and computer readable storage medium
CN113988793A (en) * 2021-10-26 2022-01-28 黑龙江航天信息有限公司 Method and system for checking value-added tax electronic invoice
CN114267114A (en) * 2021-12-27 2022-04-01 建信金融科技有限责任公司 Method, device, electronic equipment and computer readable medium for checking electronic bill
CN114385248A (en) * 2020-10-22 2022-04-22 四零四科技股份有限公司 Computing system and device for processing trust chain
CN116228265A (en) * 2023-03-24 2023-06-06 北京中诺链捷数字科技有限公司 Invoice risk identification method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980995A (en) * 2017-05-26 2017-07-25 百望电子发票数据服务有限公司 A kind of identification of electronic invoice layout files and checking method and relevant apparatus
CN107103255A (en) * 2017-04-27 2017-08-29 百望电子发票数据服务有限公司 A kind of electronic invoice layout files verification method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107103255A (en) * 2017-04-27 2017-08-29 百望电子发票数据服务有限公司 A kind of electronic invoice layout files verification method and system
CN106980995A (en) * 2017-05-26 2017-07-25 百望电子发票数据服务有限公司 A kind of identification of electronic invoice layout files and checking method and relevant apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
冯辉: "OFD与PDF的关联和差异", 《信息技术与标准化》 *
冯辉等: "OFD与PDF对比分析", 《信息技术标准化》 *
胡荣磊等: "版式文档OFD签章模块的研究与实现", 《信息技术》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110532812A (en) * 2019-09-02 2019-12-03 江西金格科技股份有限公司 A kind of electronics license warehouse-out method based on OFD form format
CN111274615A (en) * 2020-01-15 2020-06-12 宁波市标准化研究院 Long-acting digital signature method based on OFD format file
CN112132641A (en) * 2020-09-07 2020-12-25 百望股份有限公司 Electronic invoice generating system and method
CN112131183A (en) * 2020-09-07 2020-12-25 百望股份有限公司 Linear access method of OFD electronic file
CN114385248A (en) * 2020-10-22 2022-04-22 四零四科技股份有限公司 Computing system and device for processing trust chain
CN114385248B (en) * 2020-10-22 2024-04-23 四零四科技股份有限公司 Computing system and device for processing trust chain
CN112783833A (en) * 2020-12-31 2021-05-11 航天信息股份有限公司 Analysis system and device for OFD format invoice file
CN113255317A (en) * 2021-05-31 2021-08-13 深圳高灯计算机科技有限公司 OFD format invoice analysis method, system and equipment based on cloud service
CN113743959A (en) * 2021-08-30 2021-12-03 远光软件股份有限公司 Method for verifying OFD electronic invoice signature, computer device and computer readable storage medium
CN113988793A (en) * 2021-10-26 2022-01-28 黑龙江航天信息有限公司 Method and system for checking value-added tax electronic invoice
CN114267114A (en) * 2021-12-27 2022-04-01 建信金融科技有限责任公司 Method, device, electronic equipment and computer readable medium for checking electronic bill
CN116228265A (en) * 2023-03-24 2023-06-06 北京中诺链捷数字科技有限公司 Invoice risk identification method, device and equipment

Similar Documents

Publication Publication Date Title
CN109523685A (en) A kind of electronic invoice checking method and system based on OFD formatted file
CN106779385A (en) The method and system of electronic evidence and user identity are fixed using block chain
US7639818B2 (en) Structured document signature device, structured document adaptation device and structured document verification device
CN106598930A (en) Electronic certificate processing method based on layout file
CN109710903A (en) Management method, device, equipment and the storage medium of document
CN106599321B (en) Plug-in for generation and analysis of DWG file annotation and signature and use method thereof
CN110532811B (en) PDF (Portable document Format) signature method and PDF signature system
CN108763185A (en) The method of calibration and system of Excel file
CN107301343A (en) Secure data processing method, device and electronic equipment
US20140207631A1 (en) Systems and Method for Analyzing and Validating Invoices
CN109767193A (en) Method of insuring, equipment and the readable storage medium storing program for executing of attachment of property in litigation liability insurance
US20040221162A1 (en) Method and systems to facilitate online electronic notary, signatures and time stamping
CN111352998A (en) Trusted alliance block chain digital calibration certificate system and operation method thereof
CN113343313A (en) Verification report validity identification method, legal service system and readable storage medium
CN101964710A (en) Digital signature and signature authenticating method
CN109902505A (en) A kind of storage of Electronic Signature, verification method and device
CN112115453A (en) Electronic report management system based on block chain
CN114491462A (en) Method, system, equipment and storage medium for signing multiple electronic documents once
CN101609488A (en) Electric endorsement method based on screen capture technology
CN109767239A (en) A kind of method and system for being verified to electronic invoice
CN110111105A (en) Contract based on block chain deposits card method, equipment and storage medium
CN106559433A (en) The method and system of electronic evidence and user identity are fixed using digital certificate
CN112256639B (en) Electronic file signature method and system and storage device
CN109658041A (en) Generating means and its generation method, the equipment and readable storage medium storing program for executing of file
CN113807901A (en) Electronic invoice detection method, terminal equipment and storage medium

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: 20190326