CN112529642B - Invoice management method, system, equipment and storage medium based on block chain - Google Patents

Invoice management method, system, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN112529642B
CN112529642B CN202011416353.1A CN202011416353A CN112529642B CN 112529642 B CN112529642 B CN 112529642B CN 202011416353 A CN202011416353 A CN 202011416353A CN 112529642 B CN112529642 B CN 112529642B
Authority
CN
China
Prior art keywords
invoice
interface
tax
request
block chain
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.)
Active
Application number
CN202011416353.1A
Other languages
Chinese (zh)
Other versions
CN112529642A (en
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.)
Shenzhen Dianlian Technology Co ltd
Original Assignee
Shenzhen Dianlian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Dianlian Technology Co ltd filed Critical Shenzhen Dianlian Technology Co ltd
Priority to CN202011416353.1A priority Critical patent/CN112529642B/en
Priority to PCT/CN2020/141545 priority patent/WO2022116350A1/en
Publication of CN112529642A publication Critical patent/CN112529642A/en
Application granted granted Critical
Publication of CN112529642B publication Critical patent/CN112529642B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The invention discloses an invoice management method, system, equipment and storage medium based on a blockchain, wherein the method comprises the following steps: creating a standardized function interface for transmitting data; the standardized function interface comprises an invoicing interface; establishing connection with a tax block chain platform by adopting an invoicing interface; when an invoicing request is received, verifying authenticity of the invoicing data carried in the invoicing request; if the invoicing data passes verification, an invoicing interface is called to transmit the invoicing data to the tax blockchain platform, so that the tax blockchain platform generates invoice information according to the invoicing data; and receiving and recording invoice information fed back by the tax block chain platform through the invoicing interface. The invention not only reduces the tedious work of the enterprise user when making an invoice, improves the work efficiency of the enterprise user, but also reduces the tax declaration time of the enterprise.

Description

Invoice management method, system, equipment and storage medium based on block chain
Technical Field
The present invention relates to the field of blockchain technologies, and in particular, to a blockchain-based invoice management method, system, device, and storage medium.
Background
The electronic invoice is a product in the information age, is used for merchants in a form of unified issuing of tax authorities like a common invoice, adopts national unified coding of invoice numbers, adopts a unified anti-counterfeiting technology, is distributed to merchants, and is attached with a signature mechanism of the electronic tax authorities.
Currently, in an industrial blockchain system, an invoice module and a tax blockchain platform are relatively independent, and data sharing cannot be realized. When the enterprise user invoices, the invoicing data can be transmitted to the tax blockchain platform only through the third-party plug-in or the control, the process is complex, the authenticity of the invoice information is difficult to distinguish, and the tracing of the invoice information is difficult.
Disclosure of Invention
The embodiment of the application aims to solve the problems that the process is complicated, the authenticity of invoice information is difficult to distinguish and the tracing of the invoice information is difficult when an enterprise user issues an invoice through a third-party plug-in or a control by providing the invoice management method, system, equipment and storage medium based on the blockchain.
The embodiment of the application provides an invoice management method based on a blockchain, which comprises the following steps:
creating a standardized function interface for transmitting data; the standardized function interface comprises an invoicing interface;
establishing connection with a tax blockchain platform by adopting the billing interface;
when an invoicing request is received, verifying authenticity of invoicing data carried in the invoicing request;
if the billing data passes the verification, the billing interface is called to transmit the billing data to a tax blockchain platform, so that the tax blockchain platform generates invoice information according to the billing data;
and receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface.
In an embodiment, the creating a standardized functional interface for transmitting data includes:
generating a functional interface;
and encrypting the functional interface by adopting a preset encryption mode to obtain the standardized functional interface.
In an embodiment, the preset encryption mode includes an encryption algorithm and/or an encrypted network security protocol.
In an embodiment, the standardized function interfaces further include an invoice verification interface, an invoice query interface, and an invoice revocation interface.
In an embodiment, the invoice management method further includes:
establishing connection with the tax blockchain platform by adopting the invoice verification interface;
when receiving an invoice verification request, invoking the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified;
and receiving an invoice verification result fed back by the tax block chain platform through the invoice verification interface.
In an embodiment, the invoice management method further includes:
establishing connection with the tax blockchain platform by adopting the invoice query interface;
when receiving an invoice printing request, calling the invoice inquiry interface to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request;
and generating an electronic invoice according to the invoice information to be printed, which is sent by the tax block chain platform through the invoice inquiry interface, and printing the electronic invoice.
In an embodiment, the invoice management method further includes:
establishing connection with the tax blockchain platform by adopting the invoice revocation interface;
when receiving an invoice revocation request, invoking the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performing revocation treatment on the invoice information to be destroyed;
and receiving invoice revocation results fed back by the tax block chain platform through the invoice revocation interface.
In addition, in order to achieve the above object, the present invention also provides an invoice management system based on a blockchain, including:
an interface creation module for creating a standardized function interface for transmitting data; the standardized function interface comprises an invoicing interface;
the interface connection module is used for establishing connection with the tax block chain platform by adopting the billing interface;
the data verification module is used for verifying authenticity of billing data carried in the billing request when the billing request is received;
the interface calling module is used for calling the billing interface to transmit the billing data to the tax blockchain platform if the billing data passes the verification, so that the tax blockchain platform generates invoice information according to the billing data;
and the information receiving module is used for receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface.
In addition, in order to achieve the above object, the present invention also provides a block chain-based invoice management method device, which includes: the system comprises a memory, a processor and an invoice management program stored in the memory and capable of running on the processor, wherein the invoice management program realizes the steps of the block chain-based invoice management method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a storage medium having stored thereon an invoice management program which, when executed by a processor, implements the steps of the blockchain-based invoice management method described above.
The technical scheme of the invoice management method, the system, the equipment and the storage medium based on the blockchain provided by the embodiment of the application at least has the following technical effects or advantages:
because the standardized function interface for transmitting data is established, the standardized function interface comprises an invoicing interface, the connection is established between the invoicing interface and the tax blockchain platform, when an invoicing request is received, the authenticity of the invoicing data carried in the invoicing request is verified, if the invoicing data passes the verification, the invoicing interface is called to transmit the invoicing data to the tax blockchain platform, so that the tax blockchain platform generates invoice information according to the invoicing data, and the technical scheme of receiving and recording the invoice information fed back by the tax blockchain platform through the invoicing interface solves the problems of complex process, difficult authenticity of the invoice information and difficult tracing of the invoice information when an enterprise user invoices through a third-party plug-in or a control. The method ensures the authenticity and credibility of the invoice information by utilizing the characteristics of the blockchain, prevents the invoice information from being tampered, reduces the tedious work of enterprise users when making an invoice, improves the working efficiency of the enterprise users, and reduces the tax declaration time of the enterprise.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a blockchain-based invoice management method of the present invention;
FIG. 3 is a flowchart of a second embodiment of a blockchain-based invoice management method of the present invention;
FIG. 4 is a flowchart of a third embodiment of a blockchain-based invoice management method of the present invention;
FIG. 5 is a flowchart of a fourth embodiment of a blockchain-based invoice management method of the present invention;
FIG. 6 is a functional block diagram of a blockchain-based invoice management system of the present invention.
Detailed Description
In order that the above-described aspects may be better understood, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides invoice management equipment. As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware running environment according to an embodiment of the present invention.
It should be noted that fig. 1 may be a schematic structural diagram of a hardware operating environment of the invoice management apparatus.
As shown in fig. 1, the invoice management apparatus may include: a processor 1001, such as a CPU, memory 1005, user interface 1003, network interface 1004, communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the invoice management device may also include RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like.
Those skilled in the art will appreciate that the invoice management apparatus structure illustrated in fig. 1 is not limiting of the invoice management apparatus, and may include more or fewer components than illustrated, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an invoice management program may be included in the memory 1005, which is one type of storage medium. The operating system is a program for managing and controlling the hardware and software resources of the invoice management device, and the invoice management program and other software or program operations.
In the invoice management apparatus shown in fig. 1, the user interface 1003 is mainly used for connecting a terminal, and data communication is performed with the terminal; the network interface 1004 is mainly used for a background server and is in data communication with the background server; the processor 1001 may be used to invoke an invoice management program stored in the memory 1005.
In this embodiment, the invoice management apparatus includes: memory 1005, processor 1001, and an invoice management program stored on the memory and executable on the processor, wherein:
when the processor 1001 calls the invoice management program stored in the memory 1005, the following operations are performed:
creating a standardized function interface for transmitting data; the standardized function interface comprises an invoicing interface;
establishing connection with a tax blockchain platform by adopting the billing interface;
when an invoicing request is received, verifying authenticity of invoicing data carried in the invoicing request;
if the billing data passes the verification, the billing interface is called to transmit the billing data to a tax blockchain platform, so that the tax blockchain platform generates invoice information according to the billing data;
and receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface.
When the processor 1001 calls the invoice management program stored in the memory 1005, the following operations are also performed:
generating a functional interface;
and encrypting the functional interface by adopting a preset encryption mode to obtain the standardized functional interface.
The preset encryption mode comprises an encryption algorithm and/or an encrypted network security protocol.
The standardized function interface also comprises an invoice verification interface, an invoice inquiry interface and an invoice revocation interface.
When the processor 1001 calls the invoice management program stored in the memory 1005, the following operations are also performed:
establishing connection with the tax blockchain platform by adopting the invoice verification interface;
when receiving an invoice verification request, invoking the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified;
and receiving an invoice verification result fed back by the tax block chain platform through the invoice verification interface.
When the processor 1001 calls the invoice management program stored in the memory 1005, the following operations are also performed:
establishing connection with the tax blockchain platform by adopting the invoice query interface;
when receiving an invoice printing request, calling the invoice inquiry interface to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request;
and generating an electronic invoice according to the invoice information to be printed, which is sent by the tax block chain platform through the invoice inquiry interface, and printing the electronic invoice.
When the processor 1001 calls the invoice management program stored in the memory 1005, the following operations are also performed:
establishing connection with the tax blockchain platform by adopting the invoice revocation interface;
when receiving an invoice revocation request, invoking the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performing revocation treatment on the invoice information to be destroyed;
and receiving invoice revocation results fed back by the tax block chain platform through the invoice revocation interface.
Embodiments of the present invention provide embodiments of blockchain-based invoice management methods that may be applied to invoicing, invoice verification, invoice printing, and invoice voiding, although a logical sequence is shown in the flowchart, in some cases the steps shown or described may be performed in a different order than that shown or described, and the subject of execution of the methods may be, but is not limited to, an industrial blockchain platform. The industrial blockchain platform is connected with the national tax blockchain platform through a standardized functional interface, so that the operations of invoicing, invoice verification, invoice printing and invoice revocation are realized.
As shown in fig. 2, in a first embodiment of the present application, the blockchain-based invoice management method of the present application is specifically used for invoicing, and includes the following steps:
step S210: a standardized functional interface for transmitting data is created.
The standardized function interface can connect the industrial blockchain platform and the tax blockchain platform, and is used for transmitting corresponding data to the tax blockchain platform through the standardized function interface when an enterprise user performs invoicing, invoice verification, invoice printing and invoice revocation, and transmitting generated invoice information, invoice verification results, invoice information to be printed and invoice revocation results to the industrial blockchain platform through the tax blockchain platform. Specifically, step S210 includes the steps of:
step a: a functional interface is generated.
A functional interface for transmitting data is created, the security of the functional interface is not high when data transmission is performed, and standardized processing (also called encryption processing) is further required to be performed on the created functional interface, so that the functional interface can ensure the security of the transmitted data when data transmission is performed.
Step b: and encrypting the functional interface by adopting a preset encryption mode to obtain the standardized functional interface.
After the function interface is established, the standardized function interface is obtained after standardized processing is carried out on the function interface by adopting a preset encryption mode. The preset encryption mode comprises an encryption algorithm and/or an encrypted network security protocol; the encryption algorithm has a plurality of kinds, such as RSA encryption algorithm, AES encryption algorithm, RSA encryption algorithm and the like; encrypted network security protocols such as https protocol. It is worth to say that, when the standardized function interface performs data transmission, the transmitted data are encrypted data, namely ciphertext. After the industry block chain platform and the tax block chain platform respectively receive the data sent by one party, the received data needs to be decrypted by using a secret key shared by both parties or matched by both parties.
In this embodiment, the standardized function interface includes an invoicing interface, where the invoicing interface is configured to transmit relevant data of the enterprise user when invoicing to the tax blockchain platform.
Step S220: and establishing connection with the tax block chain platform by adopting the billing interface.
In this embodiment, after the standardized function interface is created, the billing interface in the standardized function interface is adopted to connect the bill data interfaces of the industry blockchain platform and the tax blockchain platform, so that when an enterprise user performs billing through the industry blockchain platform, the billing interface sends billing data to the tax blockchain platform.
Step S230: when an invoicing request is received, verifying authenticity of the invoicing data carried in the invoicing request.
In this embodiment, when the industry blockchain platform receives an billing request sent by an enterprise user, billing data carried in the billing request is obtained, where the billing data includes a company name, tax number, address phone, billing line, account number, and the like. Then verifying the authenticity of the billing data, and if the billing data fails to pass the verification, returning prompt information of failed verification to remind enterprise users to check the billing data; if the billing data passes the verification, a prompt message of the pass is returned, and step S240 is executed.
Step S240: and if the billing data passes the verification, calling the billing interface to transmit the billing data to a tax blockchain platform so that the tax blockchain platform generates invoice information according to the billing data.
In the embodiment, if the billing data of the enterprise user passes verification, the industrial blockchain platform invokes the billing interface to send the billing data to the tax blockchain platform in the form of ciphertext, and the tax blockchain platform decrypts the received ciphertext to obtain the billing data, so that invoice information to be obtained by the enterprise user is created according to the billing data; then, the tax blockchain platform feeds back invoice information to the industrial blockchain platform in the form of ciphertext through the billing interface.
Step S250: and receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface.
In this embodiment, the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoicing interface to obtain invoice information, and then records the invoice information, i.e. the enterprise user completes invoicing of the invoice.
According to the technical scheme, the standardized function interface for transmitting data is established, the standardized function interface comprises an invoicing interface, connection is established between the invoicing interface and the tax block chain platform, when an invoicing request is received, authenticity verification is carried out on the invoicing data carried in the invoicing request, if the invoicing data passes the verification, the invoicing interface is called to transmit the invoicing data to the tax block chain platform, so that the tax block chain platform generates invoice information according to the invoicing data, and receives and records the invoice information fed back by the tax block chain platform through the invoicing interface.
Further, the standardized function interface further comprises an invoice verification interface, an invoice query interface and an invoice revocation interface. The invoice verification interface is used for transmitting an invoice verification request and an invoice verification result; the invoice inquiry interface is used for transmitting an invoice printing request and invoice information to be printed; the invoice revocation interface is used for transmitting invoice revocation requests and invoice revocation results.
As shown in fig. 3, in a second embodiment of the present application, the blockchain-based invoice management method of the present application is specifically used for validating an invoice, and includes the following steps:
step S310: and establishing connection with the tax blockchain platform by adopting the invoice verification interface.
In this embodiment, an invoice verification interface in a standardized function interface is used to connect the bill verification interfaces of the industry blockchain platform and the tax blockchain platform, so that when an enterprise user verifies authenticity of an invoice through the industry blockchain platform, the invoice verification interface sends an invoice verification request to the tax blockchain platform.
Step S320: and when receiving an invoice verification request, calling the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified.
In this embodiment, the invoice verification request is sent by the enterprise user, and carries invoice information to be verified by the enterprise user for authenticity. When the industrial blockchain platform receives the invoice verification request, the industrial blockchain platform calls an invoice verification interface to send the invoice verification request to the tax blockchain platform in the form of ciphertext, and the tax blockchain platform decrypts the received ciphertext to obtain the invoice verification request, so that invoice information is obtained according to the invoice verification request, authenticity verification is carried out on the invoice information, and then an invoice verification result is generated. And then, the tax blockchain platform feeds back an invoice verification result to the industrial blockchain platform in a ciphertext mode through the invoice verification interface.
Step S330: and receiving an invoice verification result fed back by the tax block chain platform through the invoice verification interface.
In this embodiment, the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice verification interface to obtain an invoice verification result, and the enterprise user can determine the authenticity of the invoice information through the invoice verification result.
According to the technical scheme, the invoice verification interface is adopted to establish connection with the tax blockchain platform, when an invoice verification request is received, the invoice verification interface is called to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be verified according to the invoice verification request, verifies the invoice information to be verified, receives an invoice verification result fed back by the tax blockchain platform through the invoice verification interface, and improves the execution efficiency of an invoice verification link.
As shown in fig. 4, in a third embodiment of the present application, the blockchain-based invoice management method of the present application is specifically used for invoice printing, and includes the following steps:
step S410: and establishing connection with the tax blockchain platform by adopting the invoice query interface.
In this embodiment, an invoice query interface in a standardized function interface is used to connect the bill query interfaces of the industry blockchain platform and the tax blockchain platform, so that when an enterprise user performs electronic invoice printing through the industry blockchain platform, an invoice query interface sends an invoice printing request to the tax blockchain platform.
Step S420: and when receiving an invoice printing request, calling the invoice inquiry interface to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request.
In this embodiment, an invoice print request is issued by an enterprise user, carrying invoice query information. When the industrial blockchain platform receives the invoice printing request, the industrial blockchain platform calls an invoice inquiry interface to send the invoice printing request to the tax blockchain platform in the form of ciphertext, and the tax blockchain platform decrypts the received ciphertext to obtain the invoice printing request. Further, the tax blockchain platform takes invoice inquiry information as an inquiry condition, and obtains invoice information to be printed, which is matched with the invoice inquiry information, from a database; and then, the tax blockchain platform feeds back invoice information to be printed to the industrial blockchain platform in a ciphertext mode through the invoice query interface.
Step S430: and generating an electronic invoice according to the invoice information to be printed, which is sent by the tax block chain platform through the invoice inquiry interface, and printing the electronic invoice.
In this embodiment, the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice query interface to obtain invoice information to be printed, then generates an electronic invoice from the invoice information to be printed, and prints the generated electronic invoice.
According to the technical scheme, the invoice inquiry interface is adopted to establish connection with the tax block chain platform, when an invoice printing request is received, the invoice inquiry interface is called to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request, generates an electronic invoice according to the invoice information to be printed, which is sent by the tax block chain platform through the invoice inquiry interface, and prints the electronic invoice.
As shown in fig. 5, in a fourth embodiment of the present application, the blockchain-based invoice management method of the present application is specifically used for voiding an invoice, and includes the following steps:
step S510: and establishing connection with the tax blockchain platform by adopting the invoice revocation interface.
In this embodiment, an invoice revocation interface in a standardized function interface is used to connect the bill revocation interfaces of the industry blockchain platform and the tax blockchain platform, so that when an enterprise user destroys invoice information through the industry blockchain platform, an invoice revocation request is sent to the tax blockchain platform by the invoice revocation interface.
Step S520: and when receiving an invoice revocation request, calling the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performing revocation treatment on the invoice information to be destroyed.
In this embodiment, the invoice revocation request is issued by the enterprise user, which carries invoice information to be destroyed by the enterprise user. When the industrial blockchain platform receives the invoice revocation request, an invoice revocation interface is called to send the invoice revocation request to the tax blockchain platform in the form of ciphertext, and the tax blockchain platform decrypts the received ciphertext to obtain the invoice revocation request, so that invoice information to be destroyed by enterprise users is obtained according to the invoice revocation request. And then further acquiring target invoice information which is the same as the invoice information to be destroyed, performing revocation treatment on the target invoice information, generating an invoice revocation result, and feeding back the invoice revocation result to the industrial blockchain platform in a ciphertext mode through an invoice revocation interface.
Step S530: and receiving invoice revocation results fed back by the tax block chain platform through the invoice revocation interface.
In this embodiment, the industrial blockchain platform decrypts the ciphertext fed back by the tax blockchain platform through the invoice revocation interface to obtain an invoice revocation result, and the enterprise user can determine that invoice information to be destroyed will not exist any more through the invoice revocation result.
According to the technical scheme, the invoice revocation interface is adopted to be connected with the tax blockchain platform, when the invoice revocation request is received, the invoice revocation interface is called to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, performs revocation processing on invoice information to be destroyed, receives an invoice revocation result fed back by the tax blockchain platform through the invoice revocation interface, and ensures timeliness of operation of an invoice revocation link.
As shown in fig. 6, the block chain-based invoice management system provided in the present application includes:
an interface creation module 610 for creating a standardized function interface for transmitting data; the standardized function interface comprises an invoicing interface;
an interface connection module 620, configured to establish a connection with the tax blockchain platform using the billing interface;
the data verification module 630 is configured to perform authenticity verification on billing data carried in a billing request when the billing request is received;
the interface calling module 640 is configured to, if the billing data passes verification, call the billing interface to transmit the billing data to a tax blockchain platform, so that the tax blockchain platform generates invoice information according to the billing data;
and the information receiving module 650 is used for receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface.
Further, the interface creation module 610 includes:
an interface creation unit for generating a functional interface;
and the interface encryption unit is used for encrypting the functional interface by adopting a preset encryption mode to obtain the standardized functional interface.
Further, the preset encryption mode comprises an encryption algorithm and/or an encrypted network security protocol.
Further, the standardized function interface further comprises an invoice verification interface, an invoice query interface and an invoice revocation interface.
Further, the interface connection module 620 is further configured to establish a connection with the tax blockchain platform using the invoice verification interface;
the interface calling module 640 is further configured to, when receiving an invoice verification request, call the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified;
the information receiving module 650 is further configured to receive an invoice verification result fed back by the tax blockchain platform through the invoice verification interface.
Further, the interface connection module 620 is further configured to establish a connection with the tax blockchain platform using the invoice query interface;
the interface calling module 640 is further configured to, when receiving an invoice print request, call the invoice query interface to transmit the invoice print request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be printed according to the invoice print request;
the information receiving module 650 is further configured to generate an electronic invoice according to the invoice information to be printed sent by the tax blockchain platform through the invoice query interface, and print the electronic invoice.
Further, the interface connection module 620 is further configured to establish a connection with the tax blockchain platform using the invoice revocation interface;
the interface calling module 640 is further configured to, when receiving an invoice revocation request, call the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performs revocation processing on the invoice information to be destroyed;
the information receiving module 650 is further configured to receive an invoice revocation result fed back by the tax blockchain platform through the invoice revocation interface.
The detailed implementation of the block chain-based invoice management system is basically the same as the above-mentioned embodiments of the block chain-based invoice management method, and will not be repeated here.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (4)

1. An invoice management method based on a blockchain, which is characterized by comprising the following steps:
creating a functional interface for transmitting data;
encrypting the functional interface by adopting a preset encryption mode to obtain a standardized functional interface, wherein the standardized functional interface comprises an invoicing interface, an invoice verification interface, an invoice inquiry interface and an invoice revocation interface, and the preset encryption mode comprises an encryption algorithm and/or an encrypted network security protocol;
establishing connection with a tax blockchain platform by adopting the billing interface;
when an invoicing request is received, verifying authenticity of invoicing data carried in the invoicing request, wherein the invoicing data comprises company names, tax numbers, address phones, invoicing rows and account numbers;
if the invoicing data passes verification, invoking the invoicing interface to transmit the invoicing data to a tax block chain platform in a ciphertext, so that the tax block chain platform decrypts the ciphertext to obtain the invoicing data, and generating invoice information according to the invoicing data;
receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface;
the invoice management method further comprises the following steps:
establishing connection with the tax blockchain platform by adopting the invoice verification interface;
when receiving an invoice verification request, invoking the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified;
receiving an invoice verification result fed back by the tax block chain platform through the invoice verification interface;
establishing connection with the tax blockchain platform by adopting the invoice query interface;
when receiving an invoice printing request, calling the invoice inquiry interface to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request;
generating an electronic invoice according to invoice information to be printed, which is sent by the tax blockchain platform through the invoice query interface, and printing the electronic invoice;
establishing connection with the tax blockchain platform by adopting the invoice revocation interface;
when receiving an invoice revocation request, invoking the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performing revocation treatment on the invoice information to be destroyed;
and receiving invoice revocation results fed back by the tax block chain platform through the invoice revocation interface.
2. A blockchain-based invoice management system, comprising:
an interface creation module for creating a functional interface for transmitting data; encrypting the functional interface by adopting a preset encryption mode to obtain a standardized functional interface, wherein the standardized functional interface comprises an invoicing interface, an invoice verification interface, an invoice inquiry interface and an invoice revocation interface, and the preset encryption mode comprises an encryption algorithm and/or an encrypted network security protocol;
the interface connection module is used for establishing connection with the tax block chain platform by adopting the billing interface;
the tax block chain platform is used for establishing connection with the tax block chain platform by adopting the invoice verification interface;
the tax block chain platform is used for establishing connection with the tax block chain platform by adopting the invoice query interface;
the tax block chain platform is used for establishing connection with the tax block chain platform by adopting the invoice revocation interface;
the system comprises a data verification module, a verification module and a verification module, wherein the data verification module is used for verifying authenticity of billing data carried in a billing request when the billing request is received, and the billing data comprises company names, tax numbers, address phones, billing lines and account numbers;
the interface calling module is used for calling the billing interface to transmit the billing data to the tax blockchain platform in a ciphertext if the billing data passes the verification, so that the tax blockchain platform decrypts the ciphertext to obtain the billing data, and invoice information is generated according to the billing data;
when receiving an invoice verification request, invoking the invoice verification interface to transmit the invoice verification request to the tax blockchain platform, so that the tax blockchain platform obtains the invoice information to be verified according to the invoice verification request, and verifies the invoice information to be verified;
when receiving an invoice printing request, invoking the invoice inquiry interface to transmit the invoice printing request to the tax block chain platform, so that the tax block chain platform obtains invoice information to be printed according to the invoice printing request;
when receiving an invoice revocation request, invoking the invoice revocation interface to transmit the invoice revocation request to the tax blockchain platform, so that the tax blockchain platform obtains invoice information to be destroyed according to the invoice revocation request, and performs revocation treatment on the invoice information to be destroyed;
the information receiving module is used for receiving and recording the invoice information fed back by the tax block chain platform through the invoicing interface;
the tax block chain platform is used for receiving an invoice verification result fed back by the tax block chain platform through the invoice verification interface;
the tax block chain platform is used for generating an electronic invoice according to invoice information to be printed, which is sent by the tax block chain platform through the invoice inquiry interface, and printing the electronic invoice;
and the system is used for receiving invoice revocation results fed back by the tax block chain platform through the invoice revocation interface.
3. An invoice management apparatus, comprising: a memory, a processor, and an invoice management program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the blockchain-based invoice management method of claim 1.
4. A storage medium having stored thereon an invoice management program which when executed by a processor performs the steps of the blockchain-based invoice management method of claim 1.
CN202011416353.1A 2020-12-04 2020-12-04 Invoice management method, system, equipment and storage medium based on block chain Active CN112529642B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011416353.1A CN112529642B (en) 2020-12-04 2020-12-04 Invoice management method, system, equipment and storage medium based on block chain
PCT/CN2020/141545 WO2022116350A1 (en) 2020-12-04 2020-12-30 Blockchain-based invoice management method, system, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011416353.1A CN112529642B (en) 2020-12-04 2020-12-04 Invoice management method, system, equipment and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN112529642A CN112529642A (en) 2021-03-19
CN112529642B true CN112529642B (en) 2024-03-22

Family

ID=74997847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011416353.1A Active CN112529642B (en) 2020-12-04 2020-12-04 Invoice management method, system, equipment and storage medium based on block chain

Country Status (2)

Country Link
CN (1) CN112529642B (en)
WO (1) WO2022116350A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113469758B (en) * 2021-06-11 2024-03-22 深圳前海星际同辉科技有限公司 Billing method, device, equipment and storage medium of blockchain and tax system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN110852816A (en) * 2019-11-13 2020-02-28 深圳前海星际同辉科技有限公司 Block chain based automatic invoicing method, terminal equipment and storage medium
CN111967923A (en) * 2020-07-28 2020-11-20 厉风英 Electronic invoice management system based on block chain technology

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8725637B2 (en) * 2007-09-28 2014-05-13 The Western Union Company Methods and systems for generating invoices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110738471A (en) * 2019-10-14 2020-01-31 腾讯科技(深圳)有限公司 bill management method based on block chain network and related equipment
CN110852816A (en) * 2019-11-13 2020-02-28 深圳前海星际同辉科技有限公司 Block chain based automatic invoicing method, terminal equipment and storage medium
CN111967923A (en) * 2020-07-28 2020-11-20 厉风英 Electronic invoice management system based on block chain technology

Also Published As

Publication number Publication date
CN112529642A (en) 2021-03-19
WO2022116350A1 (en) 2022-06-09

Similar Documents

Publication Publication Date Title
CN110601816B (en) Lightweight node control method and device in block chain system
CN111292041B (en) Electronic contract generation method, device, equipment and storage medium
CN108256340B (en) Data acquisition method and device, terminal equipment and storage medium
CN101627390B (en) Method for the secure storing of program state data in an electronic device
CN110543510B (en) Bill data processing method, device, storage medium and computer equipment
CN113422686B (en) Gateway layer authentication method, system, electronic device and storage medium
CN112188493A (en) Authentication method, system and related equipment
WO2023005838A1 (en) Data sharing method and electronic device
CN111311410A (en) Community problem multi-department cooperative processing system and method based on block chain
CN108449315A (en) Ask calibration equipment, method and the computer readable storage medium of legitimacy
CN109377220B (en) Block chain-based media data transaction method and system and computer storage medium
CN107994995A (en) A kind of method of commerce, system and the terminal device of lower security medium
CN112529642B (en) Invoice management method, system, equipment and storage medium based on block chain
WO2022088710A1 (en) Mirror image management method and apparatus
CN114143306A (en) Block chain-based bid document transmission method and transmission device
CN111628863B (en) Data signature method and device, electronic equipment and storage medium
CN115883207A (en) Multi-party security computing method and device
CN113497827B (en) Information sharing method and equipment
CN101630371B (en) Method and system for remotely realizing IC card service control and IC card reader
CN111131227B (en) Data processing method and device
CN111125734B (en) Data processing method and system
CN111859351A (en) Method, system, server and storage medium for writing information into chip
CN116992470B (en) Collaborative authorization protocol signing method, device, computer equipment and storage medium
CN112286553B (en) User lock upgrading method, device, system, electronic equipment and storage medium
CN112837063A (en) Block chain-based electronic receipt storage method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant