CN108364203A - Electronic invoice generation method, system, computer equipment and storage medium - Google Patents

Electronic invoice generation method, system, computer equipment and storage medium Download PDF

Info

Publication number
CN108364203A
CN108364203A CN201810120531.2A CN201810120531A CN108364203A CN 108364203 A CN108364203 A CN 108364203A CN 201810120531 A CN201810120531 A CN 201810120531A CN 108364203 A CN108364203 A CN 108364203A
Authority
CN
China
Prior art keywords
invoice
data
target
tax
made out
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
CN201810120531.2A
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN201810120531.2A priority Critical patent/CN108364203A/en
Publication of CN108364203A publication Critical patent/CN108364203A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/04Billing or invoicing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Finance (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a kind of electronic invoice generation method, system, computer equipment and storage mediums, wherein the method includes:Obtain the data of ticket to be developed;By the data storage to be made out an invoice to database caches;Extracting data target to be made out an invoice described in being stored from the database caches is made out an invoice data;It calls tax controlling equipment to issue the target to make out an invoice the corresponding target invoice of data.The present invention supports the invoice data of all types of billing systems to capture, and does not depend on manual operation, and user zero perceives, and customizes crawl, and dynamic controls time point and the data volume of data acquisition.

Description

Electronic invoice generation method, system, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of electronic invoice generation method, system, computer equipments And storage medium.
Background technology
Electronic invoice refers in purchasing and selling commodities, offer or receiving service and being engaged in other business activities, issues, receives The bank settlement voucher electronically stored taken.Electronic invoice should have the relevant law attribute of paper invoice, and meet The essential attribute of file administration needs the requirement for meeting relevant laws and regulations.According to requirements above, electronic invoice is used and is carried The format data file of the tax bureau and the side's of making out an invoice E-seal shows form, ensures authenticity, the integrality of electronic invoice.
The monitoring of Vehicles Collected from Market invoice data is primarily directed to the data acquisition monitoring management system of enterprise development, possesses POS system and backstage MIS data base management systems, there is also a variety of value-added tax tax-controlled invoice systems.But lack automatic obtain to send out Ticket data only obtains a kind of data in invoice system, and can only rely on user's selection, and could identify currently makes Taxation control system.Taxation control system is mainly used in value-added tax field, and taxation control system is made of four subsystems, respectively Tax distribution subsystem, anti-fake makes out an invoice subsystem and certification is declared dutiable goods subsystem at enterprise's distribution subsystem.The tax issues subsystem Subsystem is issued to subordinate's tax, enterprise of subordinate issues subsystem and subordinate certification is declared dutiable goods, and subsystem is issued, enterprise's distribution Subsystem is to carry out initially distribution to enterprise's subsystem of making out an invoice and sell special invoice to enterprise, and certification subsystem of declaring dutiable goods is to receive Enterprise copies tax data and distinguishes the true and false of invoice.And tax-controlled invoice is printed by tax-control cash register series of products, And with the invoice of the factor contents such as tax-control code.Current tax-controlled invoice system, cannot achieve automatic crawl invoice data or A kind of effect of invoice system data is only captured, and is unable to the taxation control system that automatic identification is being currently used, it can only It is selected dependent on user, could identify the taxation control system being being currently used.
Invention content
Present invention aims at a kind of electronic invoice generation method of proposition, system, computer equipment and storage mediums, with solution Shortage in certainly above-mentioned background technology is automatic, and obtain invoice data or only obtain after the data in a kind of invoice system can only be according to Rely user's selection, could identify the shortcoming for the taxation control system being being currently used.
To achieve the goals above, the present invention provides the following technical solutions:
A kind of generation method of electronic invoice, which is characterized in that include the following steps:
Obtain the data of ticket to be developed;By the data storage to be made out an invoice to database caches;
Extracting data target to be made out an invoice described in being stored from the database caches is made out an invoice data;
It calls tax controlling equipment to issue the target to make out an invoice the corresponding target invoice of data.
Extracting data mesh to be made out an invoice described in being stored from the database caches described in one of the embodiments, Data of making out an invoice are marked to specifically include:By set acquisition time interval, the data to be made out an invoice are acquired in a manner of periodic polling, and Extraction target is made out an invoice data.
Extracting data mesh to be made out an invoice described in being stored from the database caches described in one of the embodiments, Mark is made out an invoice after data, further includes that data result is formatted as JSON formats and encrypting storing.
The method further includes generating to send out in the target using RSA public key encryption algorithms in one of the embodiments, Unique transaction watermark on ticket, the RSA public key algorithms are specially:
The N in public key is obtained, takes two different prime numbers, p and q, N=p*q at random;
The value for finding out L is(p-1)With(q-1)Least common multiple, L=lcm ((p-1), (q-1));
A random public key E is found out, that is, finds out a number E relatively prime with L, there is gcd (E, L)=1;
A random key D is found out, key D should meet(D*E)mod L=1.
The method further includes in one of the embodiments,:Data are reported and submitted to be uploaded to the tax target invoice The background server of office, the background server of the tax bureau reports and submits data according to what is received, pair corresponding with the tax control server Management information be updated, and new management information is back to tax control server, for service inquiry.
The method further includes by the way of sending JSON format messages to tax system in one of the embodiments, Carry out the abatement of electronic invoice.
Based on the same technical idea, the present invention also provides a kind of generation system of electronic invoice, the electronic invoice Generation system, including:Acquisition module, the data for obtaining ticket to be developed;Memory module, for depositing the data to be made out an invoice Store up database caches;Extraction module, for extracting data target to be made out an invoice described in being stored from the database caches It makes out an invoice data;Billing module is made out an invoice the corresponding target invoice of data for calling tax controlling equipment to issue the target.
The extraction module is additionally operable in one of the embodiments,:By set acquisition time interval, with periodic polling Mode acquire the data to be made out an invoice, and extract target and make out an invoice data.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor so that the place Manage the step of device executes above-mentioned electronic invoice generation method.
Based on the same technical idea, the present invention also provides a kind of storage medium being stored with computer-readable instruction, institutes When stating computer-readable instruction and being executed by one or more processors so that one or more processors execute above-mentioned electronic invoice The step of generation method.
Above-mentioned electronic invoice generation method, system, computer equipment and storage medium obtain the data of ticket to be developed, will The data storage to be made out an invoice, by set acquisition time interval, is acquired described to database caches in a manner of periodic polling The data to be made out an invoice stored in database caches, and extract target and make out an invoice data, call tax controlling equipment to issue the target The corresponding target invoice of data of making out an invoice, dynamic control time point and the data volume of data acquisition, are selected without user, realize and use Zero perception at family, data acquisition use various dimensions dynamic control, complete the format unification of multiple taxation control system data.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the present invention Limitation.
Fig. 1 is the implementation environment figure of the electronic invoice generation method provided in one embodiment of the invention;
Fig. 2 is the internal structure block diagram of one embodiment of the invention Computer equipment;
Fig. 3 is the part-structure block diagram of the relevant mobile phone of portable device in one embodiment of the invention;
Fig. 4 is the flow chart of electronic invoice generation method in one embodiment of the invention;
Fig. 5 is the structure diagram for generating system in one embodiment of the invention in terms of electronics.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising " Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is the implementation environment figure of the electronic invoice generation method provided in one embodiment, as shown in Figure 1, in the reality It applies in environment, including make out an invoice end and tax end, end of making out an invoice is provided with two-server, server 101, server 102, clothes Business device 101 is mounted with that electronic invoice generates system, and another server 102 can install electronic seal system(Digital certificate UKey, Electronic stamp), the implementation environment two-server provided in another embodiment can be combined into one, and electronic invoice generates system After system generation electronic invoice after pdf document, electronic seal system is passed to by network, electronic seal system is to the pdf document After being capped business-electronic Invoice Seal, then return to electronic invoice billing system.Electronic invoice billing system passes through internet Pdf document with business-electronic Invoice Seal is transmitted to safely tax local side by network using cipher mode.
Tax end is provided with two-server, server 103 and server 104, server 103 can be equipped with tax local side Electronic bill management system, server 104 can install tax local side electronic seal system, the reality provided in another embodiment Applying environment two-server can be combined into one, and tax local side electronic bill management system receives the electronic invoice PDF of enterprise's upload After file, mathematic for business CertPubKey is first used to verify pdf document E-seal, the electronic invoice pdf document after verification is errorless The electronic seal system at tax end is passed to by network, the electronics that electronic seal system is capped the pdf document tax bureau is sent out Ticket supervises chapter, then returns to electronic bill management system and carries out filing preservation.
Tax local side electronic bill management system provides the hair of the electronics with the tax bureau, enterprise's both sides' E-seal on the internet Ticket pdf document is inquired and download link, and computer equipment 105 and portable shifting can be used in the side of making out an invoice and Drawee Party after mandate The electronic invoice pdf document is downloaded in the dynamic inquiry of equipment 106, and when consulting the electronic invoice pdf document, system employs the tax certainly Whether public key verifications this document of office and enterprise of making out an invoice is tampered, and shows verification result automatically on system interface.
Fig. 2 is the internal structure block diagram of one embodiment Computer equipment.As shown in Fig. 2, the computer equipment includes Processor, non-volatile memory medium, memory and the network interface connected by system bus.Wherein, the computer equipment Non-volatile memory medium be stored with operating system, database and computer-readable instruction, can be stored with control in database Information sequence when the computer-readable instruction is executed by processor, may make processor to realize inquiry, download and verify electronics hair Ticket.The processor of the computer equipment supports the operation of entire computer equipment for providing calculating and control ability.The calculating It can be stored with computer-readable instruction in the memory of machine equipment, when which is executed by processor, may make Processor executes inquiry, downloads and verify electronic invoice.The network interface of the computer equipment is used for and terminal connection communication.This Field technology personnel are appreciated that structure shown in Figure 2, only with the block diagram of the relevant part-structure of application scheme, The restriction for the computer equipment being applied thereon to application scheme is not constituted, specific computer equipment may include ratio More or fewer components as shown in the figure either combine certain components or are arranged with different components.
Fig. 3 shows the block diagram of the part-structure for the relevant mobile phone of portable device that one embodiment provides.With reference to Fig. 3, mobile phone include:Baseband processing module 210, memory 220, input unit 230, display unit 240, sensor 250, audio The components such as circuit 260, Wireless Fidelity (Wireless Fidelity, WiFi) module 270, processor 280 and power supply 290. It will be understood by those skilled in the art that handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, may include than diagram More or fewer components either combine certain components or different components arrangement.
Baseband processing module 210 can be used for synthesizing the baseband signal that will emit, or the baseband signal to receiving carries out Decoding.Memory 220 can be used for storing software program and module, and processor 280 is stored in the soft of memory 220 by operation Part program and module, to execute various function application and the data processing of mobile phone.Memory 220 may include high speed with Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its His volatile solid-state part.Input unit 230 can be used for receiving the number or character information of input, and generation and mobile phone User setting and function control related key signals input.Specifically, input unit 230 may include touch panel 231 with And other input equipments 232.Display unit 240 can be used for showing information input by user or be supplied to user information and The various menus of mobile phone.Display unit 240 may include display panel 241, optionally, liquid crystal display (Liquid may be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 241.Mobile phone may also include at least one sensor 250, for example, optical sensor, motion sensor and its His sensor.Voicefrequency circuit 260, loud speaker 261, microphone 262 can provide the audio interface between user and mobile phone.WiFi belongs to In short range wireless transmission technology, mobile phone can help user to send and receive e-mail, browse webpage and visit by WiFi module 270 Ask streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 3 shows WiFi module 270, It is understood that itself and be not belonging to must be configured into for mobile phone, completely can as needed do not change invention essence model It is omitted in enclosing.Processor 280 is the control centre of mobile phone, utilizes each portion of various interfaces and connection whole mobile phone Point, by running or execute the software program and/or module that are stored in memory 220, and calls and be stored in memory 220 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Mobile phone further includes to each The power supply 290 (such as battery) of component power supply.Although being not shown, mobile phone can also be including camera, bluetooth module etc., herein not It repeats again.Processor 280 included by the device end can execute realization inquiry, download and verify electronic invoice.
As a preferable embodiment, as shown in figure 4, a kind of generation method of electronic invoice, includes the following steps:
S301 obtains the data of ticket to be developed;
The sales slip data set and sales slip detailed data collection of ticket to be developed are obtained, the sales slip data set includes sales slip gold Volume, mark containing tax and limit of making out an invoice, the sales slip detailed data collection include multiple commodity detail rows, each commodity detail row packet Include trade name, unit price, quantity, the amount of money and the tax rate.
S302, by data to be made out an invoice storage to database caches;
The data to be made out an invoice received are unifiedly stored to database caches, to facilitate the calling of different tax controlling equipments.
S303, the extracting data target to be made out an invoice stored from database caches are made out an invoice data;
The corresponding data to be made out an invoice of the target tax controlling equipment are extracted from database caches to make out an invoice data as target, are based on mat Cache file storage to hard disk is formed cache file management system by the data buffer storage function of document form, and it is slow to breach memory The capacity limit deposited.Moreover, the matrix data of standard is cached to mat files, reduce the process of data mart modeling conversion, saves Data calculate and the resource of storage, are substantially improved service efficiency.
S304 calls tax controlling equipment to issue target and makes out an invoice the corresponding target invoice of data.
Tax controlling equipment concentration is called to make out an invoice, invoice type supports VAT invoice, value-added tax common invoice, motor vehicle Sell four kinds of invoices of uniform invoice and carrying trade VAT invoice.Introducting interface format refer to make out an invoice software can receive Invoice information data format;Export interface format refers to that software export of making out an invoice has issued invoice the data lattice of information Formula.
In one embodiment, the extracting data target to be made out an invoice stored from database caches data of making out an invoice specifically are wrapped It includes:By set acquisition time interval, data to be made out an invoice are acquired in a manner of periodic polling, and are extracted target and made out an invoice data.
According to acquisition time interval, starts timer, several actions are adopted by timers trigger, call current taxation control system API carries out data acquisition, and the data volume acquired every time is controlled by server parameter.Data are acquired and carry out various dimensions dynamic control System, i.e. client are carried out by means of collecting quantity and the two parameters of acquisition time interval, will be between gathered data and acquisition time It is configured, is downloaded from server by client, or in server modification in rear pipe Platform Server every the two parameters Mode acquires data and carries out dynamic control.And the relationship between collecting quantity, acquisition time interval and the data of acquisition is specific Show as that collecting quantity is bigger, the data once acquired are more;The time interval of acquisition is shorter, and the number of acquisition is more.
In one embodiment, after the extracting data target to be made out an invoice stored in database caches makes out an invoice data, Further include that data result is formatted as JSON formats and encrypting storing.
Data result is formatted as JSON formats and encrypting storing, while generating the update file corresponding hash values school Code is tested, if the hash values check code generated is identical as local already existing data file hash value check codes, is not replaced File is updated, will preserve and replace each fission system latest update file if the hash value check code differences generated, preserves hash It is worth check code.JSON formats, full name are Java Script Object Notation, are a kind of data exchange lattice of lightweight Formula.JSON is a subset for giving ECMAScript, is stored using the text formatting for being totally independent of programming language and table Data are stated, Jason formats allow read-write to be more prone to, and are easy to the parsing and generation of machine, can pass through eval in JavaScript Function parse JSON, support it is multilingual include Action Script, C, C#, ColdFusion, E, Java, JavaScript, ML, Objective CAML, Perl, PHP, Python, Rebol, Ruby and Lua.With with XML It compares, JSON is more succinct, and inspection misarrangement, JSON more lightweights is facilitated either to write, transmission, or parsing is all more Increase effect, JSON uses compress technique in transmission process, more saves broadband, supports numerous language, such as The mainstream speeches such as javascript, python, C, C++ are all supported.
In one embodiment, further include generating unique transaction water on target invoice using RSA public key encryption algorithms Print.
By RSA public key encryption algorithms, (it is true that RSA public key encryption algorithms are based on a foolproof number theory:By two It is very easy that Big prime is multiplied, but is intended to carry out factorization to its product extremely difficult, therefore can disclose product As encryption key.RSA key length is improved with security classification, is increased quickly) unique hand over is generated on new electronic invoice Easy watermark, to ensure that its non repudiation, the process of RSA Algorithm be:
N=p*q, wherein p and q are prime numbers, and L is(p-1)With(q-1)Common multiple, L=lcm((p-1),(q-1))(By Euler's letter Number obtains).E be the random number relatively prime with L, D be so that(D*E)The number of L=1 mod.M is that in plain text, E is encrypted ciphertext, { E, N } is public key, can be disclosed, and { D, N } is that private key is taken care of by oneself.First sends the public key of oneself, second public key encryption to second Afterwards, ciphertext is sent to first, first is decrypted with private key, obtains ciphertext.
Encryption Algorithm is:E=ME mod N.
Decipherment algorithm is:M=ED mod N.
Wherein there is M and E to be less than N, is all higher than 0.
In one embodiment, further include:Data are reported and submitted to be uploaded to the background server of the tax bureau, tax target invoice The background server of business office reports and submits data according to what is received, and a pair management information corresponding with the tax control server carries out more Newly, and by new management information it is back to tax control server, for service inquiry.
Data are reported and submitted in tax control server generation, and data will be reported and submitted to be written in the tax disc of taxpayer;The tax bureau will declare dutiable goods Report and submit data that its background server is written in disk;The tax bureau by its background server according to the data of reporting and submitting received, it is right Management information corresponding with the tax control server is updated, and will be in new management information write-in tax disc;By tax disc In new management information write-in taxpayer tax control server in.Such case corresponds to the area for not carrying out Online Taxation, I.e. taxpayer can declare dutiable goods by way of under line.In addition, it is necessary to explanation, the tax bureau is in addition to can believe new management Except breath write-in tax disc, the other information such as new blank invoice section, the time calibration factor can also be written.
In one embodiment, further include carrying out electronic invoice by the way of sending JSON format messages to tax system Abatement.
Unique transaction watermark is generated on new electronic transaction invoice by using RSA public key encryption algorithms, so as to Ensure the non repudiation of electronic invoice, and electronic invoice is carried out by the way of sending JSON format messages to tax system It is then that the message of certain format is utilized to write off corresponding electronic invoice to tax system after returning goods by businessman to write off, so as to protect The certainty for demonstrate,proving right survival on electronic invoice, avoids right from being abused, and is also beneficial to supervision of the country to electronic invoice.
Based on the same technical idea, the present invention also provides a kind of generation systems of electronic invoice, as shown in figure 5, described The generation system of electronic invoice includes:Acquisition module, the data for obtaining ticket to be developed;Memory module, for being waited for described Data of making out an invoice are stored to database caches;Extraction module, for data to be made out an invoice described in being stored from the database caches Middle extraction target is made out an invoice data;Billing module is made out an invoice data corresponding target hair for calling tax controlling equipment to issue the target Ticket.
In one embodiment, the extraction module is additionally operable to:By set acquisition time interval, with the side of periodic polling Data to be made out an invoice described in formula acquisition, and extract target and make out an invoice data.
In one embodiment, it is described stored from the database caches described in extracting data target to be made out an invoice open Further include that data result is formatted as JSON formats and encrypting storing after ticket data.
In one embodiment, the conversion module is additionally operable to:It is generated using RSA public key encryption algorithms and is sent out in the target Unique transaction watermark on ticket.
Based on the same technical idea, described the present invention also provides a kind of computer equipment, including memory and processor Computer-readable instruction is stored in memory, when the computer-readable instruction is executed by the processor so that the place Reason device realizes following steps when executing the computer program:The data for obtaining ticket to be developed store the data to be made out an invoice To database caches, stored from the database caches described in extracting data target to be made out an invoice make out an invoice data, call tax Control equipment issues the target and makes out an invoice the corresponding target invoice of data.
In one embodiment, the extracting data target to be made out an invoice stored from database caches data of making out an invoice include: By set acquisition time interval, data to be made out an invoice are acquired in a manner of periodic polling, and are extracted target and made out an invoice data.
In one embodiment, it is described stored from the database caches described in extracting data target to be made out an invoice open Further include that data result is formatted as JSON formats and encrypting storing after ticket data.
In one embodiment, further include generating unique transaction water on target invoice using RSA public key encryption algorithms Print, the RSA public key algorithms are specially:
The N in public key is obtained, takes two different prime numbers, p and q, N=p*q at random;
The value for finding out L is(p-1)With(q-1)Least common multiple, L=lcm ((p-1), (q-1));
A random public key E is found out, that is, finds out a number E relatively prime with L, there is gcd (E, L)=1;
A random key D is found out, key D should meet(D*E)mod L=1.
In one embodiment, further include:Data are reported and submitted to be uploaded to the background server of the tax bureau, tax target invoice The background server of business office reports and submits data according to what is received, and a pair management information corresponding with the tax control server carries out more Newly, and by new management information it is back to tax control server, for service inquiry.
In one embodiment, further include carrying out electronic invoice by the way of sending JSON format messages to tax system Abatement.
Based on the same technical idea, the present invention also provides a kind of storage medium being stored with computer-readable instruction, institutes When stating computer-readable instruction and being executed by one or more processors so that one or more processors execute following steps:It obtains The data to be made out an invoice are stored the institute stored from the database caches to database caches by the data for taking ticket to be developed It states extracting data target to be made out an invoice to make out an invoice data, calls tax controlling equipment to issue the target and make out an invoice the corresponding target hair of data Ticket.
In one embodiment, the extracting data target to be made out an invoice stored from database caches data of making out an invoice include: By set acquisition time interval, data to be made out an invoice are acquired in a manner of periodic polling, and are extracted target and made out an invoice data.
In one embodiment, further include generating unique transaction water on target invoice using RSA public key encryption algorithms Print, the RSA public key algorithms are specially:
The N in public key is obtained, takes two different prime numbers, p and q, N=p*q at random;
The value for finding out L is(p-1)With(q-1)Least common multiple, L=lcm ((p-1), (q-1));
A random public key E is found out, that is, finds out a number E relatively prime with L, there is gcd (E, L)=1;
A random key D is found out, key D should meet(D*E)mod L=1.
In one embodiment, further include:Data are reported and submitted to be uploaded to the background server of the tax bureau, tax target invoice The background server of business office reports and submits data according to what is received, and a pair management information corresponding with the tax control server carries out more Newly, and by new management information it is back to tax control server, for service inquiry.
In one embodiment, further include carrying out electronic invoice by the way of sending JSON format messages to tax system Abatement.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include:Read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to keep description succinct, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, it is all considered to be the range of this specification record.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the present invention's Protection domain.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

1. a kind of generation method of electronic invoice, which is characterized in that include the following steps:
Obtain the data of ticket to be developed;
By the data storage to be made out an invoice to database caches;
Extracting data target to be made out an invoice described in being stored from the database caches is made out an invoice data;
It calls tax controlling equipment to issue the target to make out an invoice the corresponding target invoice of data.
2. according to the method described in claim 1, it is characterized in that, it is described stored from the database caches described in wait out Target data of making out an invoice are extracted in ticket data to specifically include:By set acquisition time interval, institute is acquired in a manner of periodic polling Data to be made out an invoice are stated, and extracts target and makes out an invoice data.
3. according to the method described in claim 1, it is characterized in that, it is described stored from the database caches described in wait out Further include that data result is formatted as JSON formats and encrypting storing after extraction target makes out an invoice data in ticket data.
4. according to the method described in claim 1, it is characterized in that, further including being generated described using RSA public key encryption algorithms Unique transaction watermark on target invoice, the RSA public key algorithms are specially:
The N in public key is obtained, takes two different prime numbers, p and q, N=p*q at random;
The value for finding out L is(p-1)With(q-1)Least common multiple, L=lcm ((p-1), (q-1));
A random public key E is found out, that is, finds out a number E relatively prime with L, there is gcd (E, L)=1;
A random key D is found out, key D should meet(D*E)mod L=1.
5. according to the method in any one of claims 1 to 3, which is characterized in that further include:By the report of the target invoice The background server of the background server for sending data to be uploaded to the tax bureau, the tax bureau reports and submits data according to what is received, pair with should The corresponding management information of tax control server is updated, and new management information is back to tax control server, for business Inquiry.
6. according to the method described in claim 5, it is characterized in that, further including sending JSON format messages using to tax system Mode carry out the abatement of electronic invoice.
7. a kind of generation system of electronic invoice, which is characterized in that including:Acquisition module, the data for obtaining ticket to be developed; Memory module, for storing the data to be made out an invoice to database caches;Extraction module, for from the database caches The extracting data target to be made out an invoice of storage is made out an invoice data;Conversion module, for data result to be formatted as JSON lattice Formula and encrypting storing;Billing module is called the target tax controlling equipment to issue the target for passing through tax control equipment interface and is opened The corresponding target invoice of ticket data.
8. generation system according to claim 7, which is characterized in that the extraction module is additionally operable to:By the acquisition of setting Time interval acquires the data to be made out an invoice in a manner of periodic polling, and extracts target and make out an invoice data.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor so that the processor is executed such as any one of claim 1 to 6 right It is required that a kind of the step of generation method of electronic invoice.
10. a kind of storage medium being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes so that one or more processors execute a kind of electronics hair as described in any one of claim 1 to 6 claim The step of generation method of ticket.
CN201810120531.2A 2018-02-07 2018-02-07 Electronic invoice generation method, system, computer equipment and storage medium Pending CN108364203A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810120531.2A CN108364203A (en) 2018-02-07 2018-02-07 Electronic invoice generation method, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810120531.2A CN108364203A (en) 2018-02-07 2018-02-07 Electronic invoice generation method, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108364203A true CN108364203A (en) 2018-08-03

Family

ID=63004986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810120531.2A Pending CN108364203A (en) 2018-02-07 2018-02-07 Electronic invoice generation method, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108364203A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754293A (en) * 2018-12-29 2019-05-14 航天信息股份有限公司 A kind of automatic push invoice printing method based on timer and CXF client
CN109816463A (en) * 2018-12-29 2019-05-28 航天信息股份有限公司 Processing method, device and the computer readable storage medium of VAT invoice data
CN109859023A (en) * 2018-12-29 2019-06-07 航天信息股份有限公司 A method of automatic synchronization and examination invoice based on timer
CN109903487A (en) * 2018-12-11 2019-06-18 航天信息软件技术有限公司 A kind of method and system for by billing server acquisition invoice data
CN109948369A (en) * 2018-12-29 2019-06-28 航天信息股份有限公司 A kind of printable data using bill generates the method and system of electronic layout files
CN110428292A (en) * 2018-08-16 2019-11-08 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN110458632A (en) * 2019-08-02 2019-11-15 上海乐刚供应链股份有限公司 It is a kind of to be made out an invoice the automatic invoice issuance system and method for amount based on enterprise
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN111178887A (en) * 2019-12-27 2020-05-19 远光软件股份有限公司 Distributed photovoltaic power generation and sale system and method based on block chain
CN116821189A (en) * 2023-07-05 2023-09-29 广东企企通科技有限公司 Invoice collection method, invoice collection device, invoice collection equipment and invoice collection medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927679A (en) * 2014-03-31 2014-07-16 浪潮软件集团有限公司 Electronic invoice signature and verification method
CN104657887A (en) * 2013-11-25 2015-05-27 航天信息股份有限公司 Network invoice management method based on tax control server
CN105427142A (en) * 2015-11-11 2016-03-23 北京京东尚科信息技术有限公司 Management method and device of electronic invoice in second-hand transaction
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method
CN106504044A (en) * 2016-11-09 2017-03-15 百望金赋科技有限公司 A kind of billing method and system
CN107481073A (en) * 2017-08-21 2017-12-15 百望电子发票数据服务有限公司 A kind of invoice new line fill method, apparatus and system based on barcode scanning technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104657887A (en) * 2013-11-25 2015-05-27 航天信息股份有限公司 Network invoice management method based on tax control server
CN103927679A (en) * 2014-03-31 2014-07-16 浪潮软件集团有限公司 Electronic invoice signature and verification method
CN105427142A (en) * 2015-11-11 2016-03-23 北京京东尚科信息技术有限公司 Management method and device of electronic invoice in second-hand transaction
CN106504040A (en) * 2016-10-31 2017-03-15 青岛瑞宏科技有限公司 A kind of electronic invoice billing method
CN106504044A (en) * 2016-11-09 2017-03-15 百望金赋科技有限公司 A kind of billing method and system
CN107481073A (en) * 2017-08-21 2017-12-15 百望电子发票数据服务有限公司 A kind of invoice new line fill method, apparatus and system based on barcode scanning technology

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110428292A (en) * 2018-08-16 2019-11-08 深圳市智税链科技有限公司 Electronic bill generation method, device, storage medium and computer equipment
CN109903487A (en) * 2018-12-11 2019-06-18 航天信息软件技术有限公司 A kind of method and system for by billing server acquisition invoice data
CN109754293A (en) * 2018-12-29 2019-05-14 航天信息股份有限公司 A kind of automatic push invoice printing method based on timer and CXF client
CN109816463A (en) * 2018-12-29 2019-05-28 航天信息股份有限公司 Processing method, device and the computer readable storage medium of VAT invoice data
CN109859023A (en) * 2018-12-29 2019-06-07 航天信息股份有限公司 A method of automatic synchronization and examination invoice based on timer
CN109948369A (en) * 2018-12-29 2019-06-28 航天信息股份有限公司 A kind of printable data using bill generates the method and system of electronic layout files
CN110458632A (en) * 2019-08-02 2019-11-15 上海乐刚供应链股份有限公司 It is a kind of to be made out an invoice the automatic invoice issuance system and method for amount based on enterprise
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN111178887A (en) * 2019-12-27 2020-05-19 远光软件股份有限公司 Distributed photovoltaic power generation and sale system and method based on block chain
CN111178887B (en) * 2019-12-27 2023-05-09 远光软件股份有限公司 Distributed photovoltaic power generation and selling system and method based on block chain
CN116821189A (en) * 2023-07-05 2023-09-29 广东企企通科技有限公司 Invoice collection method, invoice collection device, invoice collection equipment and invoice collection medium

Similar Documents

Publication Publication Date Title
CN108364203A (en) Electronic invoice generation method, system, computer equipment and storage medium
US10628833B2 (en) Computer architecture incorporating blockchain based immutable audit ledger for compliance with data regulations
CN105868039B (en) A kind of method, system and equipment for management software problem report
CN102257488B (en) Techniques to automatically syndicate content over a network
CN104574050B (en) The method, apparatus and system settled accounts online
CN104769914B (en) The processing method of the request of digital service
CN109767271A (en) Lottery drawing method and equipment based on block chain
CN104378282B (en) Message method, message forwarding method, Apparatus and system
CN110473078A (en) Information processing method, device, gateway server and medium in invoice issuing
CN106296317B (en) A kind of intelligent tickets system and method
JP2014525092A (en) Methods for associating third-party content with online document signatures
CN108268909A (en) Method, apparatus, storage medium and the terminal of invoice reimbursement
CN107251080A (en) The communication that user passes through social networking system and businessman
CN103917999A (en) Online signature identity and verification in community
CN109559257A (en) Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain
CN109544243A (en) A kind of processing method and system of lottery information
CN112492533B (en) 5G rich media message pushing method and device based on block chain technology
CN110990486A (en) Block link evidence issuing and storing method and device based on network data interaction
CN107067321A (en) Data security method, server, client and the system of payment beforehand business
CN110175316B (en) Media number interaction method, system and storage medium based on blockchain
CN109636553A (en) Credential management method, apparatus, computer equipment and storage medium
WO2020081105A1 (en) Methods and systems for providing a customized network
CN112669157A (en) Transaction method, device and system based on block chain and readable storage medium
KR100983478B1 (en) Method and system for making housekeeping account book using messaging service of mobile terminal
CN109886592A (en) Industrial Data Management method, apparatus, computer readable storage medium and computer equipment

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1257403

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180803