CN108921627A - A kind of method and system generating electronic invoice OFD layout files - Google Patents
A kind of method and system generating electronic invoice OFD layout files Download PDFInfo
- Publication number
- CN108921627A CN108921627A CN201810582769.7A CN201810582769A CN108921627A CN 108921627 A CN108921627 A CN 108921627A CN 201810582769 A CN201810582769 A CN 201810582769A CN 108921627 A CN108921627 A CN 108921627A
- Authority
- CN
- China
- Prior art keywords
- ofd
- invoice
- electronic invoice
- electronic
- layout files
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/04—Billing or invoicing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Development Economics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Accounting & Taxation (AREA)
- Economics (AREA)
- Finance (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Document Processing Apparatus (AREA)
Abstract
The embodiment of the invention discloses a kind of method and system for generating electronic invoice OFD layout files, for after obtaining electronic invoice data, matched OFD electronic invoice layout files template is called in OFD template library, directly generate OFD electronic invoice, the efficiency for obtaining OFD electronic invoice is improved, the usage experience of user is improved.Present invention method includes:The OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;Electronic invoice data is obtained, electronic invoice data includes at least mark of making out an invoice;According to mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from OFD template library;By electronic invoice data, it is packed into matched OFD electronic invoice layout files template according to preset format, generates corresponding OFD electronic invoice.
Description
Technical field
The present invention relates to electronic invoice technical field more particularly to a kind of methods for generating electronic invoice OFD layout files
And system.
Background technique
As country conducts promotion to electronic invoice, more and more enterprises are to disappear by electronic invoice service platform
Expense person issues electronic invoice.Electronic invoice service platform needs after by calling related tax controlling equipment completion electronic invoice to issue
The electronic invoice for generating layout files format is handed down to user, so that user checks and as purposes such as reimbursement vouchers.
The electronic invoice layout files that electronic invoice service platform generates at present is usually PDF format, and the version of OFD format
Formula file is more at present to apply in E-Government industry as the national standard just released recently, also not in electronic invoice row
Sparetime university's range applications.
Two problems are primarily present when electronic invoice service platform generates electronic invoice layout files at present, firstly, it is necessary to
Pass through the hand-made invoice layout files template of specific client software, such as the hair using Adobe software development PDF format
Ticket layout files template, process is cumbersome and inefficiency;Secondly, needing after generating electronic invoice layout files to format text
Part carries out Electronic Signature, and electronic invoice service platform is using the mode directly signed at present, not to E-seal before stamped signature
Data carry out validation verification, the existing defects in safety.
Summary of the invention
The embodiment of the invention provides a kind of method and system for generating electronic invoice OFD layout files, for obtaining
After electronic invoice data, matched OFD electronic invoice layout files template is called in OFD template library, directly generates OFD electronics
Invoice improves the efficiency for obtaining OFD electronic invoice, improves the usage experience of user.
First aspect of the embodiment of the present invention provides a kind of method for generating electronic invoice OFD layout files, including:
The OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
Electronic invoice data is obtained, the electronic invoice data includes at least mark of making out an invoice;
According to the mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from the OFD template library;
By the electronic invoice data, matched OFD electronic invoice layout files is packed into according to the preset format
Template generates corresponding OFD electronic invoice.
Preferably, the OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank
And corresponding invoice field format;
Preferably, in the OFD electronic invoice layout files mould for being stored in a variety of preset formats in OFD template library in advance
Before plate, this method further includes:
The OFD electronic invoice sample ticket uploaded is received, the sample ticket is automatically parsed, to extract the OFD electronics
Invoice layout files template.
Preferably, invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
Preferably, this method further includes:
According to the mark of making out an invoice, matched electronic seal data is obtained, the electronic seal data includes:E-seal
Information and digital signature information;
The validity of the electronic seal data is verified, and when the electronic seal data is effective, to the OFD electronics
Invoice carries out stamped signature, to generate the OFD electronic invoice for including electronic seal data.
Preferably, electronic invoice data includes at least:Invoice codes, invoice number, purchaser's title, taxpayer's identification
Number, purchaser bank of deposit and account, the amount of money, seller title, seller Taxpayer Identification Number and seller bank of deposit and account;
Mark of making out an invoice includes:Invoice codes and invoice number.
Second aspect of the embodiment of the present invention provides a kind of system for generating electronic invoice OFD layout files,
Including:
Storage unit, for being stored in the OFD electronic invoice layout files mould of a variety of preset formats in OFD template library in advance
Plate;
First acquisition unit, for obtaining electronic invoice data, the electronic invoice data includes at least mark of making out an invoice;
Second acquisition unit obtains matched OFD electronics for mark of making out an invoice according to from the OFD template library
Invoice layout files template;
Fills unit, for being packed into matched OFD electronics according to the preset format for the electronic invoice data
Invoice layout files template generates corresponding OFD electronic invoice.
Preferably, the OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank
And corresponding invoice field format;
Preferably, which further includes:
Receive resolution unit, for receives upload OFD electronic invoice sample ticket, the sample ticket is automatically parsed, with
Extract the OFD electronic invoice layout files template.
Preferably, invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
Preferably, which further includes:
Third acquiring unit obtains matched electronic seal data, the E-seal for mark of making out an invoice according to
Data include:E-seal information and digital signature information;
Stamped signature unit is verified, is had for verifying the validity of the electronic seal data, and in the electronic seal data
When effect, stamped signature is carried out to the OFD electronic invoice, to generate the OFD electronic invoice for including electronic seal data.
Preferably, electronic invoice data includes at least:Invoice codes, invoice number, purchaser's title, taxpayer's identification
Number, purchaser bank of deposit and account, the amount of money, seller title, seller Taxpayer Identification Number and seller bank of deposit and account;
Mark of making out an invoice includes:Invoice codes and invoice number.
The embodiment of the invention also provides a kind of computer installation, including processor, which is stored in execution
When computer program on reservoir, the generation electronic invoice OFD format text that is provided for realizing first aspect of the embodiment of the present invention
The method of part.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored thereon with computer program, the computer journey
When sequence is executed by processor, the generation electronic invoice OFD layout files that is provided for realizing first aspect of the embodiment of the present invention
Method.
As can be seen from the above technical solutions, the embodiment of the present invention has the following advantages that:
In the embodiment of the present invention, the OFD electronic invoice layout files of a variety of preset formats is stored in OFD template library in advance
Template, and after obtaining electronic invoice data, according to the mark of making out an invoice in electronic invoice data, the acquisition from OFD template library
Invoice data is packed into matched OFD electronic invoice version according to preset format by the OFD electronic invoice layout files template matched
In formula file template, corresponding OFD electronic invoice is generated, the present invention is after getting electronic invoice data, from OFD template library
Matched OFD electronic invoice layout files template is obtained, and electronic invoice data is filled directly into OFD electronic invoice format text
Part template generates OFD electronic invoice, reduces the step of calling third party software production OFD electronic invoice, improves acquisition
The efficiency of OFD electronic invoice improves the usage experience of user.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram that electronic invoice OFD layout files method is generated in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram that electronic invoice OFD layout files method is generated in the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram that electronic invoice OFD layout files system is generated in the embodiment of the present invention.
Specific embodiment
The embodiment of the invention provides a kind of method and system for generating electronic invoice OFD layout files, obtain for improving
The efficiency for taking OFD electronic invoice promotes the usage experience of user.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing
Four " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein or describing
Sequence other than appearance is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that covering is non-exclusive
Include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly arrange
Those of out step or unit, but may include be not clearly listed or it is solid for these process, methods, product or equipment
The other step or units having.
For convenience of understanding, the method for generating electronic invoice OFD layout files in the present invention is described below, is please referred to
Fig. 1, the present invention in generate electronic invoice OFD layout files method one embodiment, including:
101, the OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
As country conducts promotion to electronic invoice, more and more enterprises are to disappear by electronic invoice service platform
Expense person issues electronic invoice.And the layout files of OFD format is as the national standard just released recently, it is more at present to apply
E-Government industry, also not in electronic invoice industry widespread adoption.Electronic invoice service platform is generating electronic invoice at present
When layout files, need through the hand-made invoice layout files template of specific client software, such as use Adobe software
The invoice layout files template for making PDF format, has certain delay so as to cause when making electronic invoice layout files, drops
Low user obtains usage experience when electronic invoice.
Based on the problem, the present invention is stored in the OFD electronic invoice format text of a variety of preset formats in OFD template library in advance
Part template, such as different according to each administrative region, organ of making out an invoice is different (national tax or land tax), it is understood that there may be the OFD of different-format
Electronic invoice layout files template, therefore the system for generating electronic invoice OFD layout files can be stored in OFD template library in advance
The OFD electronic invoice layout files template of a variety of preset formats, such as the OFD electronic invoice layout files mould of Guangdong Province's national tax version
Plate, the OFD electronic invoice layout files template of Guangdong Province's land tax version, the OFD electronic invoice layout files mould of Shanxi Province's national tax version
Plate, and the OFD electronic invoice layout files template in OFD template library can constantly update, to meet making out an invoice for different user
Demand.
102, electronic invoice data is obtained, the electronic invoice data includes at least mark of making out an invoice;
Electronic invoice OFD layout files system is generated before issuing electronic invoice, electronics can be obtained in several ways
Invoice data such as receives the electronic invoice data that user provides, or docking businessman's ERP system, electronics hair is obtained from ERP system
Ticket data, or the billing system of docking enterprise, obtain electronic invoice data from the billing system of enterprise, herein to acquisition electronics
The approach of invoice data is not particularly limited.
Specifically, electronic invoice data includes:Invoice codes, invoice number, date of making out an invoice, check code, identification number, purchase
Buyer's title, Taxpayer Identification Number, purchaser address and phone, purchaser bank of deposit and account, service name, specifications and models,
Unit, quantity, unit price, the amount of money, the tax rate, the amount of tax to be paid, valence tax be total, seller title, seller Taxpayer Identification Number, seller
The information such as location and phone, seller bank of deposit and account, payee, review, drawer, wherein electronic invoice mark is to be used for
The unique identification of electronic invoice is distinguished, including:Electronic invoice code and electronic invoice number.
103, according to mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from the OFD template library;
Electronic invoice OFD layout files system is generated after getting electronic invoice data, according in electronic invoice data
Electronic invoice mark, i.e. electronic invoice code and electronic invoice number obtain matched OFD electronics hair from OFD template library
Ticket layout files template.
In general, the electronic invoice data in each administrative area all has certain rule, such as the electronic invoice number in Guangdong Province
According to, a few a numbers in invoice codes and invoice number are identical, and these numbers are different from other administrative region,
Therefore electronic invoice OFD layout files system is generated after getting the electronic invoice mark in electronic invoice data, it can basis
Electronic invoice mark, obtains the OFD electronic invoice layout files template to match with the mark.
104, by the electronic invoice data, matched OFD electronic invoice format is packed into according to the preset format
File template generates corresponding OFD electronic invoice.
It generates electronic invoice OFD layout files system and gets electronic invoice data and corresponding OFD electronic invoice format
After file template, electronic invoice data can be packed into OFD electronic invoice layout files template according to preset format, generated
Corresponding OFD electronic invoice.
Specifically, OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank and right
The invoice field format answered, and invoice field format includes:The alignment of invoice data coordinate, invoice data font and invoice data
Mode etc..
In the embodiment of the present invention, the OFD electronic invoice layout files of a variety of preset formats is stored in OFD template library in advance
Template, and after obtaining electronic invoice data, according to the mark of making out an invoice in electronic invoice data, the acquisition from OFD template library
Invoice data is packed into matched OFD electronic invoice version according to preset format by the OFD electronic invoice layout files template matched
In formula file template, corresponding OFD electronic invoice is generated, the present invention is after getting electronic invoice data, from OFD template library
Matched OFD electronic invoice layout files template is obtained, and electronic invoice data is filled directly into OFD electronic invoice format text
Part template generates OFD electronic invoice, reduces the step of calling third party software production OFD electronic invoice, improves acquisition
The efficiency of OFD electronic invoice improves the usage experience of user.
Based on Fig. 1 the embodiment described, OFD template library is described below in detail and obtains OFD electronic invoice layout files template
Process, and the process of stamped signature is carried out to the OFD electronic invoice that gets, referring to Fig. 2, generating electronics in the embodiment of the present invention
Another embodiment of invoice OFD layout files method, including:
201, the OFD electronic invoice sample ticket uploaded is received, which is automatically parsed, to extract OFD electronics hair
Ticket layout files template;
For the OFD electronic invoice layout files template in OFD template library, electronic invoice OFD layout files system is generated
The OFD electronic invoice sample ticket that upload can be received in advance, automatically parses the sample ticket, to extract OFD electronic invoice version
Formula file template, specifically, OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank and
Corresponding invoice field format, and invoice field format includes:Pair of invoice data coordinate, invoice data font and invoice data
Neat mode etc..
In general, each administrative region, difference is made out an invoice OFD electronic invoice layout files used in organ (national tax or land tax)
Template is different, therefore generates the OFD that electronic invoice OFD layout files system can receive the various different formats of upload in advance
Electronic invoice sample ticket, and the sample ticket is automatically parsed, to obtain a variety of OFD electronic invoice layout files templates and corresponding
Invoice field format, and different invoice field formats is closed with corresponding blank OFD electronic invoice layout files template
Connection storage transfers i.e. the correspondence of invoice field format with realizing when transferring blank OFD electronic invoice layout files template
It can.The file of invoice field format in xml form is stored specifically, can be, is also possible to the text in the form of word
Part is stored, and is not particularly limited herein to the storage form of invoice field format.
In addition to this, OFD electronic invoice layout files template can not only be different from each region, can also be with others
Mode is distinguished, and in the present embodiment when there is new OFD electronic invoice layout files template, is just carried out to OFD template library
It updates, to save different demands of making out an invoice.
202, the OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
203, electronic invoice data is obtained, the electronic invoice data includes at least mark of making out an invoice;
204, according to mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from the OFD template library;
205, by the electronic invoice data, matched OFD electronic invoice format is packed into according to the preset format
File template generates corresponding OFD electronic invoice;
It should be noted that step 202 in the present embodiment is to 205 and the step 101 in embodiment described in Fig. 1 to 104
Similar, details are not described herein again.
206, according to mark of making out an invoice, matched electronic seal data is obtained, the electronic seal data includes:E-seal
Information and digital signature information;
In general, electronic invoice data after the completion of issuing, requires to carry out stamped signature to electronic invoice, to prove the electronics
Invoice data legitimacy.
Therefore electronic invoice OFD layout files system is generated after generating corresponding OFD electronic invoice, it needs to obtain matched
Electronic seal data carries out stamped signature to the OFD electronic invoice with user.Specifically, electronic invoice seal data include:Electronic seal
Chapter information and digital signature information, E-seal information specifically include the letter such as seal title, seal picture, seal start-stop validity period
Breath, and digital signature information specifically includes the information such as seal people digital certificate, signature algorithm identifier, signature value.
207, the validity of electronic seal data is verified, and when electronic seal data is effective, OFD electronic invoice is carried out
Stamped signature, to generate the OFD electronic invoice for including electronic seal data.
The mode that electronic invoice is directly signed in being different from the prior art, the present invention in electronic invoice generate system exist
After getting electronic seal data, electronic seal data is verified, to prove the validity of the electronic seal data, and
When the electronic seal data is effective, stamped signature just is carried out to the OFD electronic invoice, to generate the OFD electricity comprising electronic seal data
Sub- invoice.
Specifically the verification process of electronic seal data validity can be:The conjunction of electronic seal data format is advised first
Property verified, then, the correctness of signature value is verified, whether the certificate for then checking seal chapter people legal has
Effect, the validation verification including certificate trust chain, certificate revocation list, finally to the seal title of E-seal, seal picture
And the start-stop validity period of seal is verified, and when above-mentioned verifying passes through, show the electronic seal data be it is legal, have
Effect.
Specifically as one embodiment to the signature algorithm in digital signature, can be OFD electronic invoice format text
Part does Hash operation and obtains digest value, and the private key for reusing stamped signature people carries out signature processing to digest value and (carries out at encryption
Reason).Further, the digest value after electronic seal data and signature is packaged as electronic invoice stamped signature number according to ASN.1 standard
According to electronic invoice stamped signature data are added in OFD electronic invoice layout files in the form of increment, form final having electronic
The OFD electronic invoice layout files for changing seal image and digital signature, completes the stamped signature of the electronic invoice.
It should be noted that above-mentioned algorithm is the explanation to digest value acquisition modes in digital signature, it is not right
The acquisition modes of its digest value are construed as limiting, and during specific stamped signature, need to only guarantee the uniqueness of the digest value.
In the embodiment of the present invention, the OFD electronic invoice layout files of a variety of preset formats is stored in OFD template library in advance
Template, and after obtaining electronic invoice data, according to the mark of making out an invoice in electronic invoice data, the acquisition from OFD template library
Invoice data is packed into matched OFD electronic invoice version according to preset format by the OFD electronic invoice layout files template matched
In formula file template, corresponding OFD electronic invoice is generated, the present invention is after getting electronic invoice data, from OFD template library
Matched OFD electronic invoice layout files template is obtained, and electronic invoice data is filled directly into OFD electronic invoice format text
Part template generates OFD electronic invoice, reduces the step of calling third party software production OFD electronic invoice, improves acquisition
The efficiency of OFD electronic invoice improves the usage experience of user.
Secondly, the embodiment of the present invention when signing to OFD electronic invoice, first carries out matched electronic seal data
Validation verification, and when the electronic seal data is effective, stamped signature just is carried out to the OFD electronic invoice, further ensures this
The validity and legitimacy of OFD electronic invoice.
Described above is the methods that electronic invoice OFD layout files is generated in the embodiment of the present invention, this hair will be described below
The bright middle system for generating electronic invoice OFD layout files, referring to Fig. 3, the generation electronic invoice in embodiment of the present invention OFD editions
The system of formula file, including:
Storage unit 301, for being stored in the OFD electronic invoice format text of a variety of preset formats in OFD template library in advance
Part template;
First acquisition unit 302, for obtaining electronic invoice data, the electronic invoice data includes at least mark of making out an invoice
Know;
Second acquisition unit 303 obtains matched OFD electricity for mark of making out an invoice according to from the OFD template library
Sub- invoice layout files template;
Fills unit 304, for being packed into matched OFD according to the preset format for the electronic invoice data
Electronic invoice layout files template generates corresponding OFD electronic invoice.
Preferably, OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank and right
The invoice field format answered;
Preferably, the invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
Preferably, which further includes:
Receive resolution unit 305, for receives upload OFD electronic invoice sample ticket, the sample ticket is automatically parsed,
To extract the OFD electronic invoice layout files template.
Third acquiring unit 306 obtains matched electronic seal data, the electronics for mark of making out an invoice according to
Seal data include:E-seal information and digital signature information;
Stamped signature unit 307 is verified, for verifying the validity of the electronic seal data, and in the electronic seal data
When effective, stamped signature is carried out to the OFD electronic invoice, to generate the OFD electronic invoice for including electronic seal data.
Preferably, electronic invoice data includes at least:Invoice codes, invoice number, purchaser's title, taxpayer's identification
Number, purchaser bank of deposit and account, the amount of money, seller title, seller Taxpayer Identification Number and seller bank of deposit and account;
Mark of making out an invoice includes:Invoice codes and invoice number.
It should be noted that the effect of each unit and generation electronic invoice OFD described in Fig. 1 and Fig. 2 in the present embodiment
The systemic effect of layout files is similar, and details are not described herein again.
In the embodiment of the present invention, the OFD of a variety of preset formats is stored in OFD template library in advance by storage unit 301
Electronic invoice layout files template, and after obtaining electronic invoice data, according to the mark of making out an invoice in electronic invoice data, pass through
Second acquisition unit 303 obtains matched OFD electronic invoice layout files template from OFD template library, passes through fills unit 304
Invoice data is packed into matched OFD electronic invoice layout files template according to preset format, generates corresponding OFD electricity
Sub- invoice, the present invention obtain matched OFD electronic invoice format text after getting electronic invoice data from OFD template library
Part template, and electronic invoice data is filled directly into OFD electronic invoice layout files template, OFD electronic invoice is generated, is reduced
The step of calling third party software production OFD electronic invoice, the efficiency for obtaining OFD electronic invoice is improved, user is improved
Usage experience.
Secondly, the embodiment of the present invention is when signing to OFD electronic invoice, by verifying stamped signature unit 307 first to
The electronic seal data matched carries out validation verification, and when the electronic seal data is effective, just carries out to the OFD electronic invoice
Stamped signature further ensures the validity and legitimacy of the OFD electronic invoice.
Above from the angle of modular functionality entity to the generation electronic invoice OFD layout files system in the embodiment of the present invention
System is described, and the computer installation in the embodiment of the present invention is described from the angle of hardware handles below:
The computer installation is for realizing the function of generating electronic invoice OFD layout files system, in the embodiment of the present invention
Computer installation one embodiment includes:
Processor and memory;
Memory can when processor is used to execute the computer program stored in memory for storing computer program
To realize following steps:
The OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
Electronic invoice data is obtained, electronic invoice data includes at least mark of making out an invoice;
According to mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from OFD template library;
By electronic invoice data, it is packed into matched OFD electronic invoice layout files template according to preset format, is generated
Corresponding OFD electronic invoice.
Preferably, OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank and right
The invoice field format answered;
In some embodiments of the invention, processor can be also used for realizing following steps:
The OFD electronic invoice sample ticket uploaded is received, which is automatically parsed, to extract OFD electronic invoice version
Formula file template.
Preferably, invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
In some embodiments of the invention, processor can be also used for realizing following steps:
According to mark of making out an invoice, matched electronic seal data is obtained, the electronic seal data includes:E-seal information
And digital signature information;
The validity of the electronic seal data is verified, and when the electronic seal data is effective, to the OFD electronics
Invoice carries out stamped signature, to generate the OFD electronic invoice for including electronic seal data.
Preferably, the electronic invoice data includes at least:Invoice codes, invoice number, purchaser's title, taxpayer know
Alias, purchaser bank of deposit and account, the amount of money, seller title, seller Taxpayer Identification Number and seller bank of deposit and account
Number;
Mark of making out an invoice includes:Invoice codes and invoice number.
It is understood that when the processor in above explained computer installation executes the computer program, it can also
To realize the function of each unit in above-mentioned corresponding each Installation practice, details are not described herein again.Illustratively, the computer journey
Sequence can be divided into one or more module/units, and one or more of module/units are stored in the memory
In, and executed by the processor, to complete the present invention.One or more of module/units can be can complete it is specific
The series of computation machine program instruction section of function, the instruction segment is for describing the computer program in the generation electronic invoice
The implementation procedure of OFD layout files system.For example, the computer program can be divided into above-mentioned generation electronic invoice OFD
Each unit in layout files system, each unit may be implemented above-mentioned corresponding generation electronic invoice OFD layout files system such as and say
Bright concrete function.
The computer installation can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The computer installation may include, but are not limited to processor, memory.It will be understood by those skilled in the art that processor,
Memory is only the example of computer installation, does not constitute the restriction to computer installation, may include more or fewer
Component perhaps combines certain components or different components, such as the computer installation can also be set including input and output
Standby, network access equipment, bus etc..
The processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable GateArray, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is the control centre of the computer installation, utilizes various interfaces and the entire computer installation of connection
Various pieces.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of computer installation.The memory can mainly include storing program area and storage data area, wherein storage program
It area can application program needed for storage program area, at least one function etc.;Storage data area can store the use according to terminal
The data etc. created.In addition, memory may include high-speed random access memory, it can also include non-volatile memories
Device, such as hard disk, memory, plug-in type hard disk, intelligent memory card (SmartMedia Card, SMC), secure digital
(SecureDigital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other
Volatile solid-state part.
The present invention also provides a kind of computer readable storage mediums, and the computer readable storage medium is for realizing generation
The function of electronic invoice OFD layout files system, is stored thereon with computer program, when computer program is executed by processor,
Processor can be used for executing following steps:
The OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
Electronic invoice data is obtained, electronic invoice data includes at least mark of making out an invoice;
According to the mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from OFD template library;
By electronic invoice data, it is packed into matched OFD electronic invoice layout files template according to preset format, is generated
Corresponding OFD electronic invoice.
Preferably, OFD electronic invoice layout files template includes:The OFD electronic invoice layout files template of blank and right
The invoice field format answered;
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor
When, processor can be specifically used for executing following steps:
The OFD electronic invoice sample ticket uploaded is received, which is automatically parsed, to extract OFD electronic invoice version
Formula file template.
Preferably, the invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
In some embodiments of the invention, the computer program of computer-readable recording medium storage is executed by processor
When, processor can be specifically used for executing following steps:
According to mark of making out an invoice, matched electronic seal data is obtained, electronic seal data includes:E-seal information sum number
Word signing messages;
The validity of electronic seal data is verified, and when electronic seal data is effective, OFD electronic invoice is signed
Chapter, to generate the OFD electronic invoice for including electronic seal data.
Preferably, electronic invoice data includes at least:Invoice codes, invoice number, purchaser's title, taxpayer's identification
Number, purchaser bank of deposit and account, the amount of money, seller title, seller Taxpayer Identification Number and seller bank of deposit and account;
Mark of making out an invoice includes:Invoice codes and invoice number.
It is understood that if the integrated unit is realized in the form of SFU software functional unit and as independent production
Product when selling or using, can store in a corresponding computer-readable storage medium.Based on this understanding, this hair
The bright all or part of the process realized in above-mentioned corresponding embodiment method, can also be instructed relevant by computer program
Hardware is completed, and the computer program can be stored in a computer readable storage medium, which is being located
It manages when device executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation
Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms
Deng.The computer-readable medium may include:Any entity or device, record of the computer program code can be carried
It is medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-OnlyMemory), random
Access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs
It is noted that the content that the computer-readable medium includes can be according to making laws in jurisdiction and patent practice is wanted
It asks and carries out increase and decrease appropriate, such as in certain jurisdictions, do not include according to legislation and patent practice, computer-readable medium
Electric carrier signal and telecommunication signal.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that:It still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (10)
1. a kind of method for generating electronic invoice OFD layout files, which is characterized in that including:
The OFD electronic invoice layout files template of a variety of preset formats is stored in OFD template library in advance;
Electronic invoice data is obtained, the electronic invoice data includes at least mark of making out an invoice;
According to the mark of making out an invoice, matched OFD electronic invoice layout files template is obtained from the OFD template library;
By the electronic invoice data, it is packed into matched OFD electronic invoice layout files template according to the preset format,
Generate corresponding OFD electronic invoice.
2. the method according to claim 1, wherein the OFD electronic invoice layout files template includes:Blank
OFD electronic invoice layout files template and corresponding invoice field format;
It is described before the OFD electronic invoice layout files template for being stored in a variety of preset formats in OFD template library in advance
Method further includes:
The OFD electronic invoice sample ticket uploaded is received, the sample ticket is automatically parsed, to extract the OFD electronic invoice
Layout files template.
3. according to the method described in claim 2, it is characterized in that, the invoice field format includes:
The alignment thereof of invoice data coordinate, invoice data font and invoice data.
4. the method according to claim 1, wherein the method also includes:
According to the mark of making out an invoice, matched electronic seal data is obtained, the electronic seal data includes:E-seal information
And digital signature information;
The validity of the electronic seal data is verified, and when the electronic seal data is effective, to the OFD electronic invoice
Stamped signature is carried out, to generate the OFD electronic invoice for including electronic seal data.
5. method according to claim 1 to 4, which is characterized in that the electronic invoice data includes at least:
Invoice codes, invoice number, purchaser's title, Taxpayer Identification Number, purchaser bank of deposit and account, the amount of money, seller title,
Seller Taxpayer Identification Number and seller bank of deposit and account;
The mark of making out an invoice includes:Invoice codes and invoice number.
6. a kind of system for generating electronic invoice OFD layout files, which is characterized in that including:
Storage unit, for being stored in the OFD electronic invoice layout files template of a variety of preset formats in OFD template library in advance;
First acquisition unit, for obtaining electronic invoice data, the electronic invoice data includes at least mark of making out an invoice;
Second acquisition unit obtains matched OFD electronic invoice for mark of making out an invoice according to from the OFD template library
Layout files template;
Fills unit, for being packed into matched OFD electronic invoice according to the preset format for the electronic invoice data
Layout files template generates corresponding OFD electronic invoice.
7. system according to claim 6, which is characterized in that the OFD electronic invoice layout files template includes:Blank
OFD electronic invoice layout files template and corresponding invoice field format;
The system also includes:
Resolution unit is received, for receiving the OFD electronic invoice sample ticket uploaded, the sample ticket is automatically parsed, to extract
The OFD electronic invoice layout files template out.
8. system according to claim 6, which is characterized in that the system also includes:
Third acquiring unit obtains matched electronic seal data, the electronic seal data for mark of making out an invoice according to
Including:E-seal information and digital signature information;
Stamped signature unit is verified, for verifying the validity of the electronic seal data, and when the electronic seal data is effective,
Stamped signature is carried out to the OFD electronic invoice, to generate the OFD electronic invoice for including electronic seal data.
9. a kind of computer installation, including processor, which is characterized in that the meter that the processor is stored on memory in execution
When calculation machine program, for realizing the method for the generation electronic invoice OFD layout files as described in any one of claims 1 to 5.
10. a kind of readable storage medium storing program for executing, is stored thereon with computer program, which is characterized in that the computer program is processed
When device executes, for realizing the method for the generation electronic invoice OFD layout files as described in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810582769.7A CN108921627A (en) | 2018-06-07 | 2018-06-07 | A kind of method and system generating electronic invoice OFD layout files |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810582769.7A CN108921627A (en) | 2018-06-07 | 2018-06-07 | A kind of method and system generating electronic invoice OFD layout files |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108921627A true CN108921627A (en) | 2018-11-30 |
Family
ID=64419922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810582769.7A Pending CN108921627A (en) | 2018-06-07 | 2018-06-07 | A kind of method and system generating electronic invoice OFD layout files |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108921627A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109767239A (en) * | 2018-12-17 | 2019-05-17 | 航天信息股份有限公司 | A kind of method and system for being verified to electronic invoice |
CN110084567A (en) * | 2019-04-26 | 2019-08-02 | 深圳前海微众银行股份有限公司 | E-seal application method, device, equipment and computer readable storage medium |
CN111027969A (en) * | 2019-10-21 | 2020-04-17 | 国信电子票据平台信息服务有限公司 | Method for storing and acquiring electronic document format file template |
CN111178029A (en) * | 2019-12-13 | 2020-05-19 | 航天信息股份有限公司 | General invoice template setting method and system |
CN111192048A (en) * | 2019-12-26 | 2020-05-22 | 航天信息股份有限公司 | Trusted secure electronic certificate generation method |
CN111797595A (en) * | 2020-05-18 | 2020-10-20 | 冠群信息技术(南京)有限公司 | Method and device for generating OFD format page based on XML template |
CN111897777A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Method, device and equipment for processing electronic invoice layout file and storage medium |
CN111898433A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Paper bill digitization method and device |
CN111898982A (en) * | 2020-07-23 | 2020-11-06 | 百望股份有限公司 | Electronic invoice generation method |
CN112132641A (en) * | 2020-09-07 | 2020-12-25 | 百望股份有限公司 | Electronic invoice generating system and method |
CN112529643A (en) * | 2020-12-21 | 2021-03-19 | 航天信息股份有限公司 | Electronic invoice processing method and device, storage medium and electronic equipment |
CN113255317A (en) * | 2021-05-31 | 2021-08-13 | 深圳高灯计算机科技有限公司 | OFD format invoice analysis method, system and equipment based on cloud service |
CN114281273A (en) * | 2021-11-22 | 2022-04-05 | 航天信息股份有限公司 | Method and system for batch printing of OFD electronic invoice format files |
CN114492355A (en) * | 2021-12-30 | 2022-05-13 | 博思数采科技发展有限公司 | Method and system for generating electronic bidding invitation letter and response receipt letter in OFD format |
CN114529929A (en) * | 2022-01-07 | 2022-05-24 | 珠海奔图电子有限公司 | Electronic invoice layout file processing method and device, electronic equipment and storage medium |
CN115630016A (en) * | 2022-10-31 | 2023-01-20 | 百望股份有限公司 | Method and device for quickly generating OFD (office file) file according to structured data |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140052641A1 (en) * | 2012-08-20 | 2014-02-20 | Tsinghua University | Electronic Invoice Issuing System For Electronic Commerce Website |
CN106485556A (en) * | 2016-10-21 | 2017-03-08 | 百望股份有限公司 | A kind of electronic invoice generates system |
CN106548383A (en) * | 2016-12-08 | 2017-03-29 | 用友网络科技股份有限公司 | The processing method and processing meanss of electronic invoice |
CN106980995A (en) * | 2017-05-26 | 2017-07-25 | 百望电子发票数据服务有限公司 | A kind of identification of electronic invoice layout files and checking method and relevant apparatus |
CN107391657A (en) * | 2017-07-18 | 2017-11-24 | 百望电子发票数据服务有限公司 | A kind of method and system for generating electronic invoice layout files |
-
2018
- 2018-06-07 CN CN201810582769.7A patent/CN108921627A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140052641A1 (en) * | 2012-08-20 | 2014-02-20 | Tsinghua University | Electronic Invoice Issuing System For Electronic Commerce Website |
CN106485556A (en) * | 2016-10-21 | 2017-03-08 | 百望股份有限公司 | A kind of electronic invoice generates system |
CN106548383A (en) * | 2016-12-08 | 2017-03-29 | 用友网络科技股份有限公司 | The processing method and processing meanss of electronic invoice |
CN106980995A (en) * | 2017-05-26 | 2017-07-25 | 百望电子发票数据服务有限公司 | A kind of identification of electronic invoice layout files and checking method and relevant apparatus |
CN107391657A (en) * | 2017-07-18 | 2017-11-24 | 百望电子发票数据服务有限公司 | A kind of method and system for generating electronic invoice layout files |
Cited By (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109767239A (en) * | 2018-12-17 | 2019-05-17 | 航天信息股份有限公司 | A kind of method and system for being verified to electronic invoice |
CN110084567A (en) * | 2019-04-26 | 2019-08-02 | 深圳前海微众银行股份有限公司 | E-seal application method, device, equipment and computer readable storage medium |
CN111027969A (en) * | 2019-10-21 | 2020-04-17 | 国信电子票据平台信息服务有限公司 | Method for storing and acquiring electronic document format file template |
CN111178029A (en) * | 2019-12-13 | 2020-05-19 | 航天信息股份有限公司 | General invoice template setting method and system |
CN111178029B (en) * | 2019-12-13 | 2023-12-12 | 航天信息股份有限公司 | General invoice template setting method and system |
CN111192048A (en) * | 2019-12-26 | 2020-05-22 | 航天信息股份有限公司 | Trusted secure electronic certificate generation method |
CN111192048B (en) * | 2019-12-26 | 2023-11-03 | 航天信息股份有限公司 | Trusted security electronic certificate generation method |
CN111797595A (en) * | 2020-05-18 | 2020-10-20 | 冠群信息技术(南京)有限公司 | Method and device for generating OFD format page based on XML template |
CN111897777A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Method, device and equipment for processing electronic invoice layout file and storage medium |
CN111898433B (en) * | 2020-06-22 | 2024-04-09 | 百望股份有限公司 | Paper bill digitizing method and device |
CN111898433A (en) * | 2020-06-22 | 2020-11-06 | 百望股份有限公司 | Paper bill digitization method and device |
CN111898982A (en) * | 2020-07-23 | 2020-11-06 | 百望股份有限公司 | Electronic invoice generation method |
CN112132641A (en) * | 2020-09-07 | 2020-12-25 | 百望股份有限公司 | Electronic invoice generating system and method |
CN112529643A (en) * | 2020-12-21 | 2021-03-19 | 航天信息股份有限公司 | Electronic invoice processing method and device, storage medium and electronic equipment |
CN112529643B (en) * | 2020-12-21 | 2024-05-28 | 航天信息股份有限公司 | Electronic invoice processing method and device, storage medium and electronic equipment |
CN113255317A (en) * | 2021-05-31 | 2021-08-13 | 深圳高灯计算机科技有限公司 | OFD format invoice analysis method, system and equipment based on cloud service |
CN114281273B (en) * | 2021-11-22 | 2023-07-25 | 航天信息股份有限公司 | Method and system for printing OFD electronic invoice format files in batches |
CN114281273A (en) * | 2021-11-22 | 2022-04-05 | 航天信息股份有限公司 | Method and system for batch printing of OFD electronic invoice format files |
CN114492355A (en) * | 2021-12-30 | 2022-05-13 | 博思数采科技发展有限公司 | Method and system for generating electronic bidding invitation letter and response receipt letter in OFD format |
CN114529929A (en) * | 2022-01-07 | 2022-05-24 | 珠海奔图电子有限公司 | Electronic invoice layout file processing method and device, electronic equipment and storage medium |
CN115630016A (en) * | 2022-10-31 | 2023-01-20 | 百望股份有限公司 | Method and device for quickly generating OFD (office file) file according to structured data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108921627A (en) | A kind of method and system generating electronic invoice OFD layout files | |
CN108132926B (en) | Contract generation device and system | |
CN107909471A (en) | A kind of method, apparatus of business processing, self-help terminal equipment and storage medium | |
CN110704519B (en) | Service bill conversion method and device, storage medium and computer equipment | |
CN110458562B (en) | Bill reimbursement method, device and equipment and computer storage medium | |
CN115907760A (en) | Method and system for transaction processing with full password verifiability | |
CN103729341A (en) | Method and device for positioning electronic seal and device for obtaining electronic seal | |
CN105391717A (en) | APK signature authentication method and APK signature authentication system | |
CN108268909A (en) | Method, apparatus, storage medium and the terminal of invoice reimbursement | |
CN110263145A (en) | A kind of electronic contract signature method and electronic contract sign equipment | |
CN110020901A (en) | Resource allocation methods and device and electronic equipment based on block chain | |
CN105654355A (en) | Invoice generation method and equipment | |
CN109933626B (en) | Financial business data processing method and device and financial transaction terminal | |
CN111967860A (en) | Transaction system, method and node in transaction system | |
CN112085531B (en) | Resource processing method, server, terminal, device, system and storage medium | |
CN109829830A (en) | A danger marketing method, device, electronic equipment and computer readable storage medium | |
CN111242603B (en) | Riding settlement method and device based on blockchain | |
CN109460972A (en) | Real estate intelligence register method, computer installation, computer readable storage medium | |
CN110599140B (en) | Digital currency verification method and system | |
CN108492071A (en) | A kind of express delivery information processing method and device based on block chain | |
CN110796531A (en) | Web-based accounting voucher generation method and system | |
CN109783782A (en) | Generation method, equipment, storage medium and the device of electronic contract template | |
CN109978683B (en) | Supply chain management method, system, storage medium and electronic device | |
CN104573891A (en) | Contract management system, contract generation method and contract maintenance method | |
CN115391343A (en) | Bill data processing method and device, electronic 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: 20181130 |