CN111325586A - Bill generation method, device, server and medium based on block chain network - Google Patents

Bill generation method, device, server and medium based on block chain network Download PDF

Info

Publication number
CN111325586A
CN111325586A CN202010076103.1A CN202010076103A CN111325586A CN 111325586 A CN111325586 A CN 111325586A CN 202010076103 A CN202010076103 A CN 202010076103A CN 111325586 A CN111325586 A CN 111325586A
Authority
CN
China
Prior art keywords
information
transaction
tax
invoicing
issuing
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.)
Granted
Application number
CN202010076103.1A
Other languages
Chinese (zh)
Other versions
CN111325586B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010076103.1A priority Critical patent/CN111325586B/en
Publication of CN111325586A publication Critical patent/CN111325586A/en
Application granted granted Critical
Publication of CN111325586B publication Critical patent/CN111325586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The embodiment of the invention discloses a bill generation method, a bill generation device, a bill generation server and a bill generation medium based on a block chain network, wherein the bill generation method comprises the following steps: acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party; verifying the target transaction according to the first transaction information; and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.

Description

Bill generation method, device, server and medium based on block chain network
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a server, and a medium for issuing a bill based on a blockchain network.
Background
In some scenarios, when an individual user is transacting with other businesses or entities and charging the associated fees paid by the other businesses or entities, some businesses or entities require the individual user to invoice, but the individual user does not have the right to invoice. At present, aiming at the condition that an individual user needs to invoice an enterprise or an organization, the individual user carries an appointed person of the enterprise or the organization together to go to a tax bureau for application, and after the individual user and the appointed person of the enterprise or the organization complete the auditing work of the tax bureau, the tax bureau invoices the enterprise or the organization for the user. However, the invoicing mode is complex to operate and low in efficiency, and influences user experience.
Disclosure of Invention
The embodiment of the invention provides a bill issuing method, a bill issuing device, a server and a medium based on a block chain network, which realize automatic and intelligent bill issuing for an individual user and improve the efficiency of issuing bills for the individual user.
In a first aspect, an embodiment of the present invention provides a method for issuing a bill based on a block chain network, which is applied to a tax office server, and the method includes:
acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party;
verifying the target transaction according to the first transaction information;
and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
In a second aspect, an embodiment of the present invention provides a ticket issuing apparatus, where the apparatus includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a bill issuing request submitted by an individual user aiming at a target transaction, the bill issuing request comprises issuing application information, and the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user as an issuing party;
the verification module is used for verifying the target transaction according to the first transaction information;
and the billing module is used for issuing a corresponding electronic bill according to the billing application information and storing the electronic bill into the block chain if the verification is passed.
In a third aspect, an embodiment of the present invention provides a server, where the server includes: a processor and a memory, the processor to perform:
acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party;
verifying the target transaction according to the first transaction information;
and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
In a fourth aspect, the present invention further provides a computer-readable storage medium, where program instructions are stored, and when the program instructions are executed, the computer-readable storage medium is configured to implement the method according to the first aspect.
The method and the device can acquire a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises issuing application information, the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user serving as an issuing party, the target transaction is verified according to the first transaction information, if the target transaction passes the verification, a corresponding electronic bill is issued according to the issuing application information, and the electronic bill is stored in a block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1a is a schematic structural diagram of a ticket issuing system according to an embodiment of the present invention;
fig. 1b is a schematic structural diagram of a block chain according to an embodiment of the present invention;
FIG. 1c is a schematic diagram of a process for generating a new block according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for billing based on a blockchain network according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for billing agency interaction based on a blockchain network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a ticket issuing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The bill issuing method based on the block chain network provided by the embodiment of the invention can be applied to a bill issuing system. In some embodiments, the server may establish a communication connection with the blockchain platform and the user terminal. In some embodiments, the manner of the Communication connection may include, but is not limited to, Wi-Fi, Bluetooth, Near Field Communication (NFC), and the like.
The following describes schematically a ticket issuing system provided by an embodiment of the present invention with reference to fig. 1a to 1 c.
Referring to fig. 1a, fig. 1a is a schematic structural diagram of a ticket issuing system according to an embodiment of the present invention. The ticket issuing system includes: a block chain platform 11, a user terminal 12 and a server 13. In some embodiments, the blockchain platform 11 and the server 13 may establish a communication connection through a wireless communication connection; in some scenarios, the blockchain platform 11 and the server 13 may also establish a communication connection through a wired communication connection. In some embodiments, the server 13 may establish a communication connection with the user terminal 12 through a wired or wireless communication connection. In some embodiments, the user terminal 12 may include, but is not limited to, a smart terminal device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, an in-vehicle smart terminal, and a smart watch.
In one embodiment, the blockchain platform 11 refers to a network for performing data sharing between nodes, and the blockchain platform may include a plurality of nodes 111. Each node 111 may receive input information and maintain shared data (i.e., blockchains) within the blockchain platform based on the received input information while operating normally. In order To ensure information intercommunication in the blockchain platform, information connection may exist between each node, and Peer-To-Peer (Peer To Peer, P2P) communication may be implemented between any two nodes, and specifically, P2P communication may be performed through a wired communication link or a wireless communication link. For example, when any node in the blockchain platform receives input information, other nodes acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all nodes in the blockchain platform are consistent.
The server 13 has access to the blockchain platform 11 and can communicate with nodes in the blockchain platform 11. It should be noted that the number of nodes shown in fig. 1a is only illustrative, and any number of nodes may be deployed according to actual needs.
Each node in the blockchain platform 11 has a corresponding node identifier, and each node in the blockchain platform 11 may store node identifiers of other nodes in the blockchain platform, so that the generated block is broadcast to other nodes in the blockchain platform according to the node identifiers of other nodes in the blockchain platform. Each node may maintain a node identifier list as shown in the following table, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an Internet Protocol (IP) address or any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
TABLE 1
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Wherein each node in the blockchain platform stores one identical blockchain. The block chain is composed of a plurality of blocks, and referring to fig. 1b, fig. 1b is a schematic structural diagram of a block chain according to an embodiment of the present invention. The block chain is composed of a plurality of blocks, the starting block comprises a block head and a block main body, the block head stores an input information characteristic value, a version number, a timestamp and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
When generating each block in the block chain, referring to fig. 1c, fig. 1c is a schematic diagram of a process for generating a new block according to an embodiment of the present invention. When the node where the block chain is located receives input information, verifying the input information, storing the input information into a memory pool after the verification is completed, and updating a hash tree for recording the input information; and then, updating the updating time stamp to the time when the input information is received, trying different random numbers, and calculating the characteristic value for multiple times, so that the calculated characteristic value can meet the following formula:
SHA256(SHA256(version+prev_hash+merkle_root+ntime+nbits+x))<TARGET
wherein, SHA256 is a characteristic value algorithm used for calculating a characteristic value; version is version information of the relevant block protocol in the block chain; prev _ hash is a block head characteristic value of a parent block of the current block; merkle _ root is a characteristic value of the input information; ntime is the update time of the update timestamp; nbits is the current difficulty, is a fixed value within a period of time, and is determined again after exceeding a fixed time period; x is a random number; TARGET is a feature threshold, which can be determined from nbits.
Therefore, when the random number meeting the formula is obtained through calculation, the information can be correspondingly stored, and the block head and the block main body are generated to obtain the current block. And then, the node where the block chain is located respectively sends the newly generated blocks to other nodes in the block chain platform where the newly generated blocks are located according to the node identifications of the other nodes in the block chain platform, the newly generated blocks are verified by the other nodes, and the newly generated blocks are added to the block chain stored in the newly generated blocks after the verification is completed.
The nodes of the blockchain platform 11 may run an intelligent contract, the intelligent contract is implemented by a code executed when a certain condition is satisfied, and a developer may define a contract logic through a programming language, issue the contract logic to the blockchain (intelligent contract registration), call a key or trigger execution of other events according to the logic of contract terms, complete the contract logic, and provide functions of upgrading and deregistering the intelligent contract.
The method for issuing a bill based on a block chain network according to the embodiment of the present invention is schematically described below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic flow chart of a block chain network-based ticket issuing method according to an embodiment of the present invention, which can be executed by a ticket issuing device, where the ticket issuing device is disposed in a server, and the server is the same as the aforementioned tax office server. Specifically, the method of the embodiment of the present invention includes the following steps.
S201: the method comprises the steps of obtaining a bill making request submitted by an individual user aiming at a target transaction, wherein the bill making request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party.
In the embodiment of the invention, the server can obtain a bill issuing request submitted by an individual user for a target transaction, wherein the bill issuing request comprises the billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party.
In some embodiments, the user identification of the individual user includes, but is not limited to, the individual user's name, identification number, gender, and the like. In some embodiments, the first transaction information includes, but is not limited to, information such as a transaction amount, a name of a party to be ticketed, an address of a party to be ticketed, a universal identification number of a party to be ticketed, an account of a party to be ticketed, and the like.
In one embodiment, before acquiring a bill issuing request submitted by an individual user for a target transaction, a server may send an issuing enterprise registration application to the blockchain network, where the issuing enterprise registration application carries a tax office identifier corresponding to the tax office server, so that the blockchain network registers the tax office as an issuing enterprise after the qualification verification of the tax office identifier corresponding to the tax office passes. By the implementation, the tax office server can make the electronic bill for the individual user, and the reliability and the legality of making the electronic bill for the individual user by the tax office server are ensured.
In one embodiment, before acquiring a ticket issuing request submitted by an individual user for a target transaction, a server may acquire invoicing qualification authentication information submitted by the individual user, wherein the invoicing qualification authentication information includes one or more of credit information, asset information and employment information, and if the invoicing qualification authentication information meets a preset invoicing qualification condition, the individual user is determined to have the invoicing qualification, and a user identifier of the individual user is added into a user identifier list with the invoicing qualification.
In some embodiments, the invoicing qualification authentication information meeting the preset invoicing qualification condition includes, but is not limited to, one or more of the credit information of the individual user meeting a preset credit investigation threshold, the asset information being lower than a preset asset threshold, the employment information meeting the current non-employment unit or enterprise, and the like.
By the mode of adding the user identification of the individual user with the invoicing qualification to the user identification list with the invoicing qualification, the method is beneficial to directly determining that the individual user has the invoicing qualification according to the user identification list with the invoicing qualification when the invoicing request submitted by the individual user is obtained again in the follow-up process, and is beneficial to improving the efficiency of the authentication of the invoicing qualification of the individual user.
In one embodiment, if the invoicing qualification authentication information does not meet a preset invoicing qualification condition, determining that the individual user does not have the invoicing qualification, generating a notification message without the invoicing qualification according to the user identifier of the individual user and the invoicing qualification authentication information, and sending the notification message to a node of a block chain network, so that the node of the block chain network writes the individual user and the invoicing qualification authentication information of the individual user into the block chain.
By storing the user identification and the billing qualification authentication information of the individual user without the billing qualification into the block chain, the fact that the individual user does not have the billing qualification is directly determined according to the user information of the non-billing qualification stored in the block chain when the ticket issuing request submitted by the individual user is acquired next time, and the efficiency of the billing qualification authentication of the individual user is improved.
S202: and verifying the target transaction according to the first transaction information.
In the embodiment of the present invention, the server may verify the target transaction according to the first transaction information.
In one embodiment, the first transaction information includes identification information of the target transaction; when the target transaction is verified according to the first transaction information, the server may send a transaction query request to the blockchain network, where the transaction query request includes identification information of the target transaction, receive second transaction information corresponding to the identification information of the target transaction sent by the blockchain network, and if the first transaction information is matched with the second transaction information, determine that the target transaction is verified.
In certain embodiments, the identification information of the target transaction includes, but is not limited to, a name of the party being ticketed, a uniform identification number of the party being ticketed, and the like. In some embodiments, the second transaction information is transaction information stored on the blockchain including, but not limited to, information such as a transaction amount, a user identification of an individual user who is a biller, a name of a ticketed party, an address of a ticketed party, a uniform identification number of a ticketed party, an account of a ticketed party, and the like.
For example, assuming that the identification information of the target transaction is a name of a ticketing party, the tax office server may send a transaction query request including the name of the ticketing party of the target transaction to the blockchain network, so that a node of the blockchain network may query, according to the name of the ticketing party, second transaction information corresponding to the name of the ticketing party from a blockchain and send the queried second transaction information to the tax office server, and the tax office server compares the second transaction information corresponding to the identification information of the target transaction sent by the blockchain network and the first transaction information, and if the first transaction information matches the second transaction information, may determine that the target transaction is verified.
Therefore, the reliability of the second transaction information can be ensured through the implementation mode, and the reliability of the verification of the first transaction information of the target transaction by the second transaction information is improved.
In one embodiment, before verifying the target transaction according to the first transaction information, the server may verify the invoicing qualification of the individual user according to the user identifier of the individual user, and if the verification result indicates that the individual user has the invoicing qualification, the step of verifying the target transaction according to the first transaction information may be performed.
S203: and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
In the embodiment of the invention, if the server passes the verification, the server makes a corresponding electronic bill according to the billing application information and stores the electronic bill into the block chain.
In an embodiment, when issuing the corresponding electronic ticket according to the invoicing application information, the server may determine a tax amount according to the invoicing amount corresponding to the target transaction, and send a tax payment notification to the user terminal corresponding to the individual user according to the tax amount, and if it is detected that the user terminal completes the tax payment according to the tax payment notification, may issue the corresponding electronic ticket according to the invoicing application information. In some embodiments, if it is detected that the user terminal completes the tax payment according to the tax payment notification, the data server may issue a corresponding electronic ticket according to the invoicing application information and the tax amount, that is, the electronic ticket includes the tax amount. With this embodiment, an individual user may complete a tax payment through the user terminal.
In an embodiment, the tax payment notification may carry a payment link, and the server may send the tax payment notification to the user terminal corresponding to the individual user according to the amount of the tax, so that after the user terminal corresponding to the individual user receives the tax payment notification, the individual user may complete tax payment by accessing the payment link carried in the tax payment notification. In other embodiments, the tax payment notification may also carry information such as a payment account, and the embodiment of the present invention is not specifically limited herein.
For example, assuming that the tax office server determines the tax amount as y according to the invoicing amount x corresponding to the target transaction, a tax payment notice may be generated according to the tax amount y and a specified tax payment link of the tax office server corresponding to the tax office, and the tax payment notice may be sent to the user terminal corresponding to the individual user, so that the user terminal corresponding to the individual user may pay the tax amount y by accessing the specified payment link carried in the tax payment notice after receiving the tax payment notice, and send a confirmation message of completing the tax payment to the tax office server. And when the tax office server acquires the confirmation message returned by the user terminal for completing the payment of the tax y according to the tax payment notice, issuing a corresponding electronic bill according to the invoicing application information submitted by the individual user.
In one embodiment, when issuing the corresponding electronic bill according to the invoicing application information, the server may determine a tax amount according to the invoicing amount corresponding to the target transaction, and send a tax deduction notification to the block link network according to the tax amount, and if a notification message that the block link network successfully deducts the tax from the block link account of the individual user according to the tax deduction notification is received, issue the corresponding electronic bill according to the invoicing application information. In some embodiments, if a notification message that the blockchain network successfully deducts the tax from the blockchain account of the individual user according to the tax deduction notification is received, the data server may issue a corresponding electronic bill according to the invoicing application information and the tax amount, that is, the electronic bill includes the tax amount. By the implementation mode, the deduction of the tax fee through the block chain account of the individual user stored in the block chain network can be realized, and the efficiency of deduction of the tax fee is improved.
In one embodiment, before the server determines the tax amount according to the invoicing amount corresponding to the target transaction and sends the tax deduction notice to the blockchain network according to the tax amount, the server needs to add the blockchain account of the individual user to the blockchain network. Through this kind of implementation mode, help directly withholding the tax through the block chain account, improve tax and withhold efficiency to help improving the efficiency of making an electronic bill.
For example, assuming that an invoicing amount corresponding to a target transaction carried in a ticket order request submitted by a personal user is a, which is obtained by a tax office server, the tax office server may determine a tax amount b according to the invoicing amount a, and send a tax deduction notification to the block chain network according to the tax amount b, so that a node of the block chain network may determine a corresponding block chain account according to a user identifier of the personal user, so as to deduct the tax amount b from the block chain account, and send a notification message of successful deduction of the tax to the tax office server. If the tax bureau receives the notice message that the block chain network successfully deducts the tax from the block chain account of the individual user according to the tax deduction notice, the corresponding electronic bill can be made according to the invoicing application information.
The method and the device can acquire a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises issuing application information, the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user serving as an issuing party, the target transaction is verified according to the first transaction information, if the target transaction passes the verification, a corresponding electronic bill is issued according to the issuing application information, and the electronic bill is stored in a block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.
Referring to fig. 3 specifically, fig. 3 is a schematic flowchart of a method for ticket issuance interaction based on a blockchain network according to an embodiment of the present invention, where the method for ticket issuance interaction based on a blockchain network according to an embodiment of the present invention may be executed by a ticket issuance system, where the ticket issuance system includes a blockchain platform, that is, a blockchain network, a user terminal, and a server. Specifically, the method of the embodiment of the present invention includes the following steps.
S301: and the tax office server sends an invoicing enterprise registration application to the block chain network, wherein the invoicing enterprise registration application carries a tax office identifier corresponding to the tax office server.
In the embodiment of the invention, the tax office server sends the billing enterprise registration application to the block chain network, wherein the billing enterprise registration application carries the tax office identification corresponding to the tax office server.
S302: and after the qualification verification of the tax office identification to the tax office is passed, the block chain network registers the tax office as an invoicing enterprise.
In the embodiment of the invention, the block chain network registers the tax bureau as an invoicing enterprise after the qualification verification of the tax bureau identification corresponding to the tax bureau passes.
S303: the tax bureau server acquires invoicing qualification authentication information submitted by an individual user through a user terminal, if the invoicing qualification authentication information meets a preset invoicing qualification condition, the individual user is determined to have the invoicing qualification, and the user identification of the individual user is added into a user identification list with the invoicing qualification.
In the embodiment of the invention, a tax office server acquires invoicing qualification authentication information submitted by an individual user through a user terminal, if the invoicing qualification authentication information meets a preset invoicing qualification condition, the individual user is determined to have the invoicing qualification, and a user identifier of the individual user is added into a user identifier list with the invoicing qualification.
S304: the tax bureau server acquires a bill issuing request submitted by an individual user through a user terminal aiming at a target transaction, wherein the bill issuing request comprises issuing application information, and the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user as an issuing party.
In the embodiment of the invention, a tax bureau server acquires a bill issuing request submitted by an individual user through a user terminal aiming at a target transaction, wherein the bill issuing request comprises invoicing application information, and the invoicing application information comprises first transaction information of the target transaction and a user identifier of the individual user as an invoicing party.
S305: and the tax bureau server sends a transaction query request to the blockchain network, wherein the transaction query request comprises the identification information of the target transaction.
In the embodiment of the invention, the tax office server sends a transaction query request to the blockchain network, wherein the transaction query request comprises the identification information of the target transaction.
S306: and the tax office server receives second transaction information corresponding to the identification information of the target transaction, which is sent by the block chain network.
In the embodiment of the invention, the tax office server receives second transaction information corresponding to the identification information of the target transaction, which is sent by the block chain network.
S307: and if the tax bureau server detects that the first transaction information is matched with the second transaction information, the tax bureau server determines that the target transaction is verified to be passed, and makes a corresponding electronic bill according to the invoicing application information.
In the embodiment of the invention, if the tax bureau server detects that the first transaction information is matched with the second transaction information, the tax bureau server determines that the target transaction is verified to be passed, and issues a corresponding electronic bill according to the invoicing application information.
S308: and the tax office server sends the electronic bill to the block chain network and stores the electronic bill into the block chain.
In the embodiment of the invention, the tax office server sends the electronic bill to the block chain network and stores the electronic bill in the block chain.
The method and the device can acquire a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises issuing application information, the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user serving as an issuing party, the target transaction is verified according to the first transaction information, if the target transaction passes the verification, a corresponding electronic bill is issued according to the issuing application information, and the electronic bill is stored in a block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a ticket issuing device according to an embodiment of the present invention. Specifically, the apparatus is disposed in a server, and includes: an acquisition module 401, a verification module 402 and an invoicing module 403;
an obtaining module 401, configured to obtain a ticket issuing request submitted by an individual user for a target transaction, where the ticket issuing request includes ticket issuing application information, and the ticket issuing application information includes first transaction information of the target transaction and a user identifier of the individual user serving as a ticket issuer;
a verification module 402, configured to verify the target transaction according to the first transaction information;
and the billing module 403 is configured to, if the verification is passed, issue a corresponding electronic bill according to the billing application information, and store the electronic bill in the block chain.
Further, the first transaction information includes identification information of the target transaction; when the verification module 402 verifies the target transaction according to the first transaction information, the verification module is specifically configured to:
sending a transaction query request to the blockchain network, wherein the transaction query request comprises identification information of the target transaction;
receiving second transaction information corresponding to the identification information of the target transaction sent by the blockchain network;
and if the first transaction information is matched with the second transaction information, determining that the target transaction is verified.
Further, when the billing module 403 issues a corresponding electronic bill according to the billing application information, the billing module is specifically configured to:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax payment notice to a user terminal corresponding to the individual user according to the tax amount;
and if the user terminal is detected to finish the tax payment according to the tax payment notice, issuing a corresponding electronic bill according to the invoicing application information.
Further, when the billing module 403 issues a corresponding electronic bill according to the billing application information, the billing module is specifically configured to:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax deduction notice to the block chain network according to the tax amount;
if the notice message that the block chain network successfully deducts the tax from the block chain account of the individual user according to the tax deduction notice is received, the corresponding electronic bill is made according to the invoicing application information.
Further, before the obtaining module 401 obtains the request for issuing the order submitted by the individual user for the target transaction, it is further configured to:
and sending an invoicing enterprise registration application to the block chain network, wherein the invoicing enterprise registration application carries a tax office identifier corresponding to the tax office server, so that the block chain network registers the tax office as the invoicing enterprise after the qualification verification of the tax office identifier corresponding to the tax office passes.
Further, before the verifying module 402 verifies the target transaction according to the first transaction information, the verifying module is further configured to:
verifying the invoicing qualification of the individual user according to the user identification of the individual user;
and if the verification result is that the individual user has the invoicing qualification, executing the step of verifying the target transaction according to the first transaction information.
Further, before the obtaining module 401 obtains the request for issuing the order submitted by the individual user for the target transaction, it is further configured to:
obtaining invoicing qualification authentication information submitted by the individual user, wherein the invoicing qualification authentication information comprises one or more of credit investigation information, asset information and employment information;
and if the invoicing qualification authentication information meets a preset invoicing qualification condition, determining that the individual user has the invoicing qualification, and adding the user identification of the individual user into a user identification list with the invoicing qualification.
The method and the device can acquire a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises issuing application information, the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user serving as an issuing party, the target transaction is verified according to the first transaction information, if the target transaction passes the verification, a corresponding electronic bill is issued according to the issuing application information, and the electronic bill is stored in a block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention. Specifically, the server includes: memory 501, processor 502.
In one embodiment, the server further comprises a data interface 503, and the data interface 503 is used for transmitting data information between the server and other devices.
The memory 501 may include a volatile memory (volatile memory); the memory 501 may also include a non-volatile memory (non-volatile memory); the memory 501 may also comprise a combination of memories of the kind described above. The processor 502 may be a Central Processing Unit (CPU). The processor 502 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
The memory 501 is used for storing programs, and the processor 502 can call the programs stored in the memory 501 for executing the following steps:
acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party;
verifying the target transaction according to the first transaction information;
and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
Further, the first transaction information includes identification information of the target transaction; when the processor 502 verifies the target transaction according to the first transaction information, it is specifically configured to:
sending a transaction query request to the blockchain network, wherein the transaction query request comprises identification information of the target transaction;
receiving second transaction information corresponding to the identification information of the target transaction sent by the blockchain network;
and if the first transaction information is matched with the second transaction information, determining that the target transaction is verified.
Further, when issuing the corresponding electronic ticket according to the billing application information, the processor 502 is specifically configured to:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax payment notice to a user terminal corresponding to the individual user according to the tax amount;
and if the user terminal is detected to finish the tax payment according to the tax payment notice, issuing a corresponding electronic bill according to the invoicing application information.
Further, when issuing the corresponding electronic ticket according to the billing application information, the processor 502 is specifically configured to:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax deduction notice to the block chain network according to the tax amount;
if the notice message that the block chain network successfully deducts the tax from the block chain account of the individual user according to the tax deduction notice is received, the corresponding electronic bill is made according to the invoicing application information.
Further, before the processor 502 obtains the instrument issuing request submitted by the individual user for the target transaction, it is further configured to:
and sending an invoicing enterprise registration application to the block chain network, wherein the invoicing enterprise registration application carries a tax office identifier corresponding to the tax office server, so that the block chain network registers the tax office as the invoicing enterprise after the qualification verification of the tax office identifier corresponding to the tax office passes.
Further, before the processor 502 verifies the target transaction according to the first transaction information, it is further configured to:
verifying the invoicing qualification of the individual user according to the user identification of the individual user;
and if the verification result is that the individual user has the invoicing qualification, executing the step of verifying the target transaction according to the first transaction information.
Further, before the processor 502 obtains the instrument issuing request submitted by the individual user for the target transaction, it is further configured to:
obtaining invoicing qualification authentication information submitted by the individual user, wherein the invoicing qualification authentication information comprises one or more of credit investigation information, asset information and employment information;
and if the invoicing qualification authentication information meets a preset invoicing qualification condition, determining that the individual user has the invoicing qualification, and adding the user identification of the individual user into a user identification list with the invoicing qualification.
The method and the device can acquire a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises issuing application information, the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user serving as an issuing party, the target transaction is verified according to the first transaction information, if the target transaction passes the verification, a corresponding electronic bill is issued according to the issuing application information, and the electronic bill is stored in a block chain. Through the implementation mode, the automatic and intelligent bill making for the personal user can be realized, and the bill making for the personal user is improved.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the method described in the embodiment corresponding to fig. 2 or fig. 3 of the present invention, and also implements the apparatus according to the embodiment corresponding to the present invention described in fig. 4, which are not described herein again.
The computer readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the server. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a number of embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A bill issuing method based on a block chain network is applied to a tax bureau server and comprises the following steps:
acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party;
verifying the target transaction according to the first transaction information;
and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
2. The method of claim 1, wherein the first transaction information includes identification information of the target transaction; the verifying the target transaction according to the first transaction information includes:
sending a transaction query request to the blockchain network, wherein the transaction query request comprises identification information of the target transaction;
receiving second transaction information corresponding to the identification information of the target transaction sent by the blockchain network;
and if the first transaction information is matched with the second transaction information, determining that the target transaction is verified.
3. The method according to claim 1 or 2, wherein the issuing of the corresponding electronic ticket according to the billing application information comprises:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax payment notice to a user terminal corresponding to the individual user according to the tax amount;
and if the user terminal is detected to finish the tax payment according to the tax payment notice, issuing a corresponding electronic bill according to the invoicing application information.
4. The method according to claim 1 or 2, wherein the issuing of the corresponding electronic ticket according to the billing application information comprises:
determining the amount of the tax according to the invoicing amount corresponding to the target transaction;
sending a tax deduction notice to the block chain network according to the tax amount;
if the notice message that the block chain network successfully deducts the tax from the block chain account of the individual user according to the tax deduction notice is received, the corresponding electronic bill is made according to the invoicing application information.
5. The method of claim 1, wherein prior to obtaining a ticketing request submitted by an individual user for a target transaction, further comprising:
and sending an invoicing enterprise registration application to the block chain network, wherein the invoicing enterprise registration application carries a tax office identifier corresponding to the tax office server, so that the block chain network registers the tax office as the invoicing enterprise after the qualification verification of the tax office identifier corresponding to the tax office passes.
6. The method of claim 1, wherein prior to verifying the target transaction based on the first transaction information, further comprising:
verifying the invoicing qualification of the individual user according to the user identification of the individual user;
and if the verification result is that the individual user has the invoicing qualification, executing the step of verifying the target transaction according to the first transaction information.
7. The method of claim 6, wherein prior to obtaining a ticketing request submitted by an individual user for a target transaction, further comprising:
obtaining invoicing qualification authentication information submitted by the individual user, wherein the invoicing qualification authentication information comprises one or more of credit investigation information, asset information and employment information;
and if the invoicing qualification authentication information meets a preset invoicing qualification condition, determining that the individual user has the invoicing qualification, and adding the user identification of the individual user into a user identification list with the invoicing qualification.
8. A ticket issuing apparatus for use with a tax bureau server, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a bill issuing request submitted by an individual user aiming at a target transaction, the bill issuing request comprises issuing application information, and the issuing application information comprises first transaction information of the target transaction and a user identifier of the individual user as an issuing party;
the verification module is used for verifying the target transaction according to the first transaction information;
and the billing module is used for issuing a corresponding electronic bill according to the billing application information and storing the electronic bill into the block chain if the verification is passed.
9. A server, comprising: a processor and a memory, the processor to perform:
acquiring a bill issuing request submitted by an individual user aiming at a target transaction, wherein the bill issuing request comprises billing application information, and the billing application information comprises first transaction information of the target transaction and a user identifier of the individual user as a billing party;
verifying the target transaction according to the first transaction information;
and if the verification is passed, issuing a corresponding electronic bill according to the billing application information, and storing the electronic bill into the block chain.
10. A computer-readable storage medium, having stored thereon program instructions for implementing the method of any one of claims 1-7 when executed.
CN202010076103.1A 2020-01-22 2020-01-22 Bill generation method, device, server and medium based on block chain network Active CN111325586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010076103.1A CN111325586B (en) 2020-01-22 2020-01-22 Bill generation method, device, server and medium based on block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010076103.1A CN111325586B (en) 2020-01-22 2020-01-22 Bill generation method, device, server and medium based on block chain network

Publications (2)

Publication Number Publication Date
CN111325586A true CN111325586A (en) 2020-06-23
CN111325586B CN111325586B (en) 2022-02-11

Family

ID=71167033

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010076103.1A Active CN111325586B (en) 2020-01-22 2020-01-22 Bill generation method, device, server and medium based on block chain network

Country Status (1)

Country Link
CN (1) CN111325586B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256799A (en) * 2020-11-12 2021-01-22 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, server and storage medium
CN112837063A (en) * 2021-03-30 2021-05-25 中国工商银行股份有限公司 Block chain-based electronic receipt storage method and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005929A (en) * 2015-07-14 2015-10-28 浪潮软件集团有限公司 Pre-review acquisition method and system for invoice generation
CN105976217A (en) * 2016-07-14 2016-09-28 浪潮软件集团有限公司 Method for realizing second-hand house transaction invoice issuing through self-service tax handling terminal
CN108416640A (en) * 2018-03-29 2018-08-17 安徽航天信息有限公司 A kind of generation exploitation ticket method based on electronic invoice
CN108961030A (en) * 2018-08-15 2018-12-07 腾讯科技(深圳)有限公司 About the data processing method of electronic bill, device, system, medium and equipment
CN110443660A (en) * 2019-08-15 2019-11-12 上海天地汇供应链科技有限公司 A kind of electronic invoice device, system and implementation method based on block chain
CN110599133A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium
CN110599270A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill generation method and device and computer equipment
CN110599137A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment
CN110599266A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device, computer equipment and storage medium
CN110597834A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105005929A (en) * 2015-07-14 2015-10-28 浪潮软件集团有限公司 Pre-review acquisition method and system for invoice generation
CN105976217A (en) * 2016-07-14 2016-09-28 浪潮软件集团有限公司 Method for realizing second-hand house transaction invoice issuing through self-service tax handling terminal
CN108416640A (en) * 2018-03-29 2018-08-17 安徽航天信息有限公司 A kind of generation exploitation ticket method based on electronic invoice
CN108961030A (en) * 2018-08-15 2018-12-07 腾讯科技(深圳)有限公司 About the data processing method of electronic bill, device, system, medium and equipment
CN110443660A (en) * 2019-08-15 2019-11-12 上海天地汇供应链科技有限公司 A kind of electronic invoice device, system and implementation method based on block chain
CN110599270A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill generation method and device and computer equipment
CN110599137A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment
CN110599266A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device, computer equipment and storage medium
CN110597834A (en) * 2019-09-16 2019-12-20 腾讯科技(深圳)有限公司 Electronic bill data processing method and device and computer equipment
CN110599133A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device based on block chain network and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吴家铎: "《税收管理员征管操作实务》", 31 December 2005 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112256799A (en) * 2020-11-12 2021-01-22 腾讯科技(深圳)有限公司 Data processing method and device based on block chain, server and storage medium
CN112837063A (en) * 2021-03-30 2021-05-25 中国工商银行股份有限公司 Block chain-based electronic receipt storage method and device

Also Published As

Publication number Publication date
CN111325586B (en) 2022-02-11

Similar Documents

Publication Publication Date Title
US11004044B2 (en) Method for paying cost of IoT device based on blockchain, and server, service providing device, and digital wallet using the same
CN108462724B (en) Data sharing method, device, system, member node and readable storage medium
US20180330349A1 (en) Method for paying cost of iot device based on blockchain and merkle tree structure related thereto, and server, service providing terminal, and digital wallet using the same
US10387856B2 (en) Online payment method, system, and apparatus
CN110599323B (en) Resource processing method and processing equipment
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN111738725B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN110659906B (en) Bill information processing method, related device and medium
CN110599349A (en) Data processing method based on block chain network, related equipment and storage medium
CN110163634B (en) Refund method and device based on blockchain and electronic equipment
CN111325586B (en) Bill generation method, device, server and medium based on block chain network
CN110659993A (en) Resource management method and device based on block chain network
CN110738471A (en) bill management method based on block chain network and related equipment
CN109978542B (en) Accounts payable data management method, system, storage medium and electronic device
CN110599133B (en) Data processing method, device and storage medium based on blockchain network
CN110597886A (en) Data processing method and device and computer storage medium
CN110598479A (en) Data processing method and device and computer readable storage medium
CN110580624B (en) Chain code upgrading method and device
CN110852751A (en) Data management method, device and storage medium based on block chain network
CN111177099A (en) Data processing method and device of business system, electronic equipment and storage medium
WO2021121030A1 (en) Resource transfer method, settlement terminal, and server node
CN111144958B (en) Electronic invoice issuing method, device and system based on block chain
CN111292144B (en) Bill processing method and device based on block chain network and storage medium
JP2021149506A (en) Information processor, information processing method and program
CN110866816A (en) Data processing method and device based on block chain network and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40024302

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant