CN110599265A - Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium - Google Patents

Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium Download PDF

Info

Publication number
CN110599265A
CN110599265A CN201910866057.2A CN201910866057A CN110599265A CN 110599265 A CN110599265 A CN 110599265A CN 201910866057 A CN201910866057 A CN 201910866057A CN 110599265 A CN110599265 A CN 110599265A
Authority
CN
China
Prior art keywords
node device
electronic
electronic bill
address
bill
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
CN201910866057.2A
Other languages
Chinese (zh)
Other versions
CN110599265B (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 CN201910866057.2A priority Critical patent/CN110599265B/en
Publication of CN110599265A publication Critical patent/CN110599265A/en
Application granted granted Critical
Publication of CN110599265B publication Critical patent/CN110599265B/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/407Cancellation of a transaction
    • 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
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/123Tax preparation or submission

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an electronic bill processing method, an electronic bill processing device, computer equipment and a computer storage medium, and belongs to the technical field of block chains. The method includes receiving a status flag request; transferring the first electronic bill stored in the second address into the first address in the block chain system, and adding a second mark to the first electronic bill which does not carry a mark; sending an identification success response indicating that the first electronic ticket in the first address has a second label added.

Description

Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
The application is a divisional application with application date of 2019, 05 and 05, and application number of 201910368302.7, and is named as an electronic bill processing method, an electronic bill processing device, computer equipment and a computer storage medium.
Technical Field
The present invention relates to the field of block chain technology, and in particular, to an electronic bill processing method, apparatus, computer device, and computer storage medium.
Background
After the consumer and the merchant complete a transaction, the merchant issues a blue invoice to the consumer to prove the transaction, but when the consumer finds that the information on the blue invoice is wrong or wrong, the consumer needs to enable the merchant to issue a red invoice to red punch the wrong blue invoice.
Currently, the red invoice issuing can be the following process: when the consumer finds that the content on the blue invoice is wrong, the consumer submits an application for issuing an invoice red punching proof to a tax authority, after the tax authority passes the application verification submitted by the consumer, the tax authority issues the invoice red punching proof to the consumer, the consumer gives the invoice red punching proof to a merchant so as to apply for red punching to the wrong blue invoice to the merchant, the merchant issues a red invoice according to the invoice red punching proof, then issues a correct blue invoice to the consumer again, and pastes the invoice red punching proof to a first link (stub link) of the red invoice for verification.
Disclosure of Invention
The embodiment of the invention provides an electronic bill processing method, an electronic bill processing device, computer equipment and a computer storage medium, which can solve the problem that the flow is too complex when a consumer issues a red invoice. The technical scheme is as follows:
in one aspect, an electronic bill processing method is provided, and the method includes:
receiving a status marking request, wherein the status marking request is used for indicating bill transfer and marking;
transferring the first electronic bill stored in the second address into the first address in the block chain system, and adding the second mark to the first electronic bill which does not carry a mark, wherein the second mark is used for indicating that the first electronic bill is to be invalidated;
sending an identification success response indicating that the first electronic ticket in the first address has a second label added.
In another aspect, there is provided an electronic ticket processing apparatus, the apparatus comprising:
the receiving module is used for receiving a state marking request, and the state marking request is used for indicating bill transfer and marking;
the transfer module is used for transferring the first electronic bill stored in the second address to the first address in the block chain system, and adding the second mark to the first electronic bill which does not carry a mark, wherein the second mark is used for indicating that the first electronic bill is to be invalidated;
and the sending module is used for sending an identification success response, and the marking success response is used for indicating that the second mark is added to the first electronic bill in the first address.
In a possible implementation manner, the sending module is further configured to send a second key obtaining request to the supervisory node device, where the second key obtaining request is used to obtain a second key of the supervisory node device;
the receiving module is further configured to receive a second key of the supervisory node device sent by the supervisory node device.
In another aspect, a computer device is provided, the computer device comprising: a processor; a memory for storing a computer program; the processor is used for executing the computer program stored in the memory and realizing the operation executed by the electronic bill processing method.
In another aspect, a computer storage medium is provided, in which a computer program is stored, and the computer program realizes the operations performed by the electronic ticket processing method when executed by a processor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a block chain system according to an embodiment of the present invention;
FIG. 2 is a flow chart of an electronic bill processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for flushing a pre-reimbursement ticket according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a logic design for performing a red stroke according to an embodiment of the present invention;
FIG. 5 is a flow chart of an electronic bill processing method according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for reimbursed ticket redemptions according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the invention;
fig. 8 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the invention;
fig. 9 is a schematic structural diagram of a node device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a block chain system according to an embodiment of the present invention. Referring to fig. 1, the blockchain system includes at least one first node device 101, at least one second node device 102, at least one third node device 103, and a policing node device 104.
The first node equipment is used by reimbursement enterprises and is used for reimbursing electronic bills, transferring electronic bills and marking the bills, and the reimbursement enterprises are the enterprises reimbursement invoices. When the first node device receives the status marking request sent by the second node device, the electronic bill indicated by the status marking request can be marked, and the marking completion is fed back to the second node device, so that the second node device can continue the flow of processing the electronic bill.
The second node device is a device used by the merchant and used for generating a second electronic bill, the second electronic bill can be regarded as a red invoice issued by the merchant and used for offsetting an error electronic bill generated before the merchant, and when the second node device receives an electronic bill processing request, the second node device can generate a corresponding second electronic bill based on the electronic bill processing request so as to issue a corresponding red invoice.
The third node device is a device used by the consumer and is used for sending an electronic bill processing request to the second node device so that the second node device can generate a second electronic bill, and in addition, the third node device can also receive the second electronic bill sent by the second node device.
The supervising node device is a device used by the tax authority for providing the second node device with a key of the tax authority so that the second node device has the right to transfer the electronic ticket.
In order to embody the process of processing the electronic ticket before the second node device reimburses the electronic ticket, referring to fig. 2, fig. 2 is a flowchart of an electronic ticket processing method provided by an embodiment of the present invention, and the method specifically includes:
201. and the second node equipment receives the electronic bill processing request, wherein the electronic bill processing request carries the bill identification and the processing type of the first electronic bill.
The electronic bill processing request is used for indicating that the first electronic bill is processed and generating a second electronic bill, and the electronic bill processing request can also carry an identifier for indicating that the electronic bill is not reimbursed so as to indicate that the first electronic bill to be processed by the second node device is not reimbursed.
The first electronic ticket may be considered a blue invoice previously issued by the merchant to the consumer, however, the data on the first electronic ticket does not match the actual transaction situation. The ticket identifier of the first electronic ticket is used to indicate the first electronic ticket, and the ticket identifier of the first electronic ticket may include a code, a number, and a verification code of the first electronic ticket, and certainly, the ticket identifier of the first electronic ticket may also be used to indicate other contents of the first electronic ticket.
The processing type is any one of a cancel ticket and a modification ticket, when the first electronic ticket corresponds to a transaction cancel operation, the processing type is the cancel ticket, and when the content of the first electronic ticket is wrong, the processing type is the modification ticket. Different processing types can be represented by different character strings, for example, a revocation ticket is represented by 0, and a modification ticket is represented by 1.
The transaction cancelling operation can be represented as a goods returning operation of the consumer, and the goods returned are the goods recorded in the transaction data corresponding to the first electronic bill. A content error of the first electronic ticket may be represented as an amount error in the first electronic ticket, for example, when the merchant and the consumer transact, the consumer pays 10 dollars, but the amount on the first electronic ticket generated by the merchant is 5 dollars, then the amount on the first electronic ticket does not match the actual transaction amount, and the amount in the first electronic ticket is an amount error. The content error of the first electronic bill can also be expressed as head-up or tax rate error in the first electronic bill. The embodiment of the present invention does not specifically limit the content of the error in the first electronic ticket.
Because the content of the first electronic bill includes multiple conditions by mistake, in some embodiments, the electronic bill processing request may further carry modified content, where the modified content is the modified content on the first electronic bill, and may be a money amount, a head-up or a tax rate, and the like, so that the second node device may generate a correct electronic bill according to the target content.
The second node device receives the electronic bill processing request, and can be in any mode of modes 1-2.
In the mode 1, the electronic bill processing request is triggered through the transaction related operation of the merchant on the second node device, so that the second node device receives the electronic bill processing request.
When the content of the first electronic bill is wrong or the transaction corresponding to the first electronic bill is cancelled, the consumer communicates with the merchant on line, and the consumer requests the merchant to process the first electronic bill, so that after the communication between the consumer and the merchant is completed, the merchant triggers the second node device to receive the electronic bill processing request by clicking the billing button on the second node device. The billing button may be a real button on the second node device for triggering the electronic ticket processing request, or may be a virtual button on a billing interface of the second node device, and of course, the billing interface may also be a processing type selection button, after determining the processing type according to the processing type selection button, the merchant inputs the target content in the input box corresponding to the target content, and may click the billing button to trigger the electronic ticket processing request, so that the second node device receives the electronic ticket processing request.
In the mode 2, the second node device receives an electronic bill processing request sent by the third node device.
When the content of the first electronic bill is wrong or the transaction corresponding to the first electronic bill is cancelled, the consumer can trigger the third node device to send the electronic bill processing request to the second node device through the billing button on the third node device, and then the second node device can receive the electronic bill processing request. The billing button on the third node device is the same as the billing button on the second node device, and the embodiment of the present invention does not repeat the billing button on the third node device.
202. And the second node equipment inquires the billing record according to the bill identification of the first electronic bill.
The billing record is used for recording electronic bills corresponding to the transaction performed by the merchant, and the electronic bills generated by the second electronic node device can be stored in the billing record, and each electronic bill corresponds to a bill identifier in the billing record.
The second node device verifies whether the first electronic bill indicated by the electronic bill processing request is generated according to the transaction of the merchant corresponding to the second node device by inquiring whether the record of the first electronic bill is stored in the billing record, when the billing record stores the record corresponding to the first electronic bill, the first electronic bill is the electronic bill generated by the merchant through the second node device, the second node device can continue the subsequent processing flow of the first electronic bill, and when the record corresponding to the first electronic bill is not stored in the billing record, the first electronic bill is not the electronic bill generated by the merchant through the second node device, the second node device does not need to process the first electronic bill.
203. When the processing type is the revocation bill, if the record corresponding to the first electronic bill is stored in the billing record, the second node device acquires the key of the supervision node device.
The billing record stores a record corresponding to the first electronic bill, and can be represented as that the billing record stores a bill identifier carried by the electronic bill processing request, or as that the billing record stores the first electronic bill indicated by the bill identifier in the electronic bill processing request.
The key of the supervisory node device comprises a first key and a second key, wherein the first key is used for providing the ticket sending authority, and the second key is used for providing the ticket transferring authority.
The second node device may obtain the first key of the supervisory node device by sending a first key obtaining request to the supervisory node device, and in a possible implementation manner, the second node device may obtain the first key of the supervisory node device by a process shown in step 20311 and 20314 described below.
Step 20311, the second node device sends a first key obtaining request to the supervisory node device, where the first key obtaining request is used to obtain the first key of the supervisory node device.
The first key obtaining request may carry a node identifier of the second node device and an identifier of the first key, where the identifier of the first key is used to indicate the first key, the first key is used to open an authority to send the ticket to the first address, and the first address is the first address in step 205.
The node identifier of the second node device is used to indicate the second node device, and the node identifier of the second node device may be a public key or an address of the second node device, so that the supervising node device may verify the first key acquisition request.
Step 20312, after receiving the first key obtaining request, the supervisory node device verifies the node identifier in the first key obtaining request.
When the blockchain system is initialized, the supervising node device stores node identifiers of the second node devices, so that the supervising node device can verify the acquired first key acquisition request. The supervising node device may verify the node identification in the first key acquisition request by querying the node identifications of all second node devices stored by the supervising node device. In a possible implementation manner, when the supervising node device queries the node identifier in the first key obtaining request from the stored node identifiers of all the second node devices, the node identifier passes the verification, otherwise, the node identifier does not pass the verification. Then, when the node identification in the first key acquisition request is verified, the first key acquisition request is verified.
Step 20313, when the node identifier in the first key obtaining request is verified, the supervising node device sends the first key of the supervising node device to the second node device.
Step 20314, the second node device receives the first key of the supervisory node device sent by the supervisory node device.
The second node device may obtain the second key of the supervisory node device by sending a second key obtaining request to the supervisory node device, and in a possible implementation manner, the second node device may obtain the second key of the supervisory node device by a process shown in step 20321 and 20324 described below.
Step 20321, the second node device sends a second key obtaining request to the supervisory node device, where the second key obtaining request is used to obtain a second key of the supervisory node device.
The second key obtaining request carries a node identifier of the second node device and an identifier of the second key, and the identifier of the second key is used for indicating the second key.
Step 20322, after receiving the second key obtaining request, the supervisory node device verifies the node identifier in the second key obtaining request.
This step 20322 is similar to the process in which the supervisory node device verifies the node identifier in step 20312, and this embodiment of the present invention does not describe this step 20322 again.
Step 20323, when the node identifier in the second key obtaining request is verified, the supervising node device sends the second key of the supervising node device to the second node device.
At step 20324, the second node device receives the supervising node device's second key sent by the supervising node device.
It should be noted that, in some embodiments, only the second node device storing the node identifier in the supervisory node device can send the first key acquisition request or the second key acquisition request to the supervisory node device, that is, the supervisory node device can only receive the first key acquisition request or the second key acquisition request sent by the second node device corresponding to the stored node identifier, and then, after receiving the first key acquisition request or the second key acquisition request, the supervisory node device may also not verify the node identifier in the first key acquisition request or the second key acquisition request, but directly send its own first key or second key to the second node device, so as to improve the efficiency of the second node device in acquiring the first key or the second key.
It should be noted that, when the processing type is a modified ticket, if the record corresponding to the first electronic ticket is stored in the billing record, the second node device compares the content of the sub-record corresponding to the first electronic ticket in the transaction record with the content of the first electronic ticket one by one, and when the content of the sub-record corresponding to the first electronic ticket in the transaction record does not match the content corresponding to the first electronic ticket, the second node device obtains the key of the monitoring node device.
The transaction records are used for storing transactions made by merchants and consumers, each transaction corresponds to one sub-record in the transaction records, that is, each sub-record in the transaction records is used for storing the transaction condition of one transaction, and the transaction condition can include the bill identification of an electronic bill, the amount, time, goods, invoice heading, tax rate and the like of the transaction.
When the content of the sub-record corresponding to the first electronic bill in the transaction record does not match the content corresponding to the first electronic bill, it indicates that the content in the first electronic bill is wrong, for example, the amount of money in the first electronic bill is 5, and the amount of money in the sub-record corresponding to the first electronic bill is 10, then the content in the sub-record corresponding to the first electronic bill is wrong. The amount of money in the first electronic ticket is wrong.
The second node device can also directly compare the target content in the electronic bill processing request with the target content in the sub-record corresponding to the first electronic bill in the transaction record, and when the target content in the electronic bill processing request does not accord with the target content in the sub-record corresponding to the first electronic bill, the second node device obtains the key of the supervision node device.
The billing record and the transaction record may be stored in the memory of the second node device, may also be stored in other storage devices, such as a mobile hard disk, and may also be stored in the cloud. The embodiment of the invention does not specifically limit the storage place and the recording mode of the invoicing record and the transaction record.
It should be noted that, in the process shown in step 202 and 203, the process is a process of further verifying the electronic ticket processing request and acquiring the key of the supervisory node device for the second node device, that is, when any content stored in the billing record and corresponding to the first electronic ticket or the sub-record corresponding to the first electronic ticket does not conform to the content corresponding to the first electronic ticket, the electronic ticket processing request passes the verification, and then the second node device acquires the key of the supervisory node device, otherwise, the electronic ticket processing request does not pass the verification, and then the second node device cannot acquire the key of the supervisory node device.
Then, whether the electronic bill processing request is correct or not can be further verified through the steps 202 and 203, so that the wrong electronic bill processing request can be prevented from being processed, and the error rate of processing the electronic bill processing request by the second node device can be further reduced.
204. The second node device generates a second electronic ticket in the blockchain system based on the first electronic ticket indicated by the ticket identification and the processing type.
When the processing type is the modification bill and the modification content carried by the electronic bill processing request is the amount of money, the modification bill is used for modifying the amount of money on the first electronic bill at the moment, and the amount of money on the first electronic bill only needs to be partially offset, so that the amount of money in the second electronic bill generated by the second node device is a negative value of the difference value between the amount of money in the first electronic bill and the target content, and other contents in the second electronic bill are consistent with other contents in the first electronic bill.
When the processing type is the modification bill and the modification content carried by the electronic bill processing request is not the amount of money, at this time, the modification bill is to modify other content on the first electronic bill, and all the content on the first electronic bill needs to be cancelled, so the amount of money in the second electronic bill generated by the second node device is a negative value of the amount of money in the first electronic bill, and the other content in the second electronic bill is consistent with the other content in the first electronic bill.
When the processing type is the revocation bill, the revocation bill is to revoke all the contents on the first electronic bill in order to revoke the first electronic bill, so the amount of money in the second electronic bill is the negative value of the amount of money in the first electronic bill, and other contents in the second electronic bill are identical to other contents in the first electronic bill.
205. And the second node equipment sends the second electronic bill to a first address in the blockchain system based on the key of the supervision node equipment in the blockchain system, wherein the first address is an address multiply signed based on the supervision node equipment and a bill object of the electronic bill processing request.
The first address is a virtual address in the block chain system and is used for storing a second electronic bill generated by the second node equipment, a invalidated first electronic bill and a modified third electronic bill. The ticket object of the electronic ticket processing request is a consumer who carries out the transaction corresponding to the first electronic ticket with the merchant.
The multi-signed address based on the supervising node device and the ticket object of the electronic ticket processing request may be expressed as the first address having an association relationship with the key of the supervising node device, the key of the third node device, and the key of the second node device. The owner of the key associated with the multi-signed address has both access to the multi-signed address and the authority to transfer electronic tickets within the multi-signed address. When the electronic bill transfer needs to be carried out in the multiple signature addresses, at least one secret key associated with the multiple signature addresses is needed to transfer the electronic bill in the multiple signature addresses.
Since different keys of the supervisory node device may provide different authorities, where the first key is used for providing authority to send the ticket, the second node device needs to acquire the first key of the supervisory node device before sending the second electronic ticket to the first address, and the second node device may acquire the first key of the supervisory node device through the process shown in step 20311 and 20314.
206. The second node device transfers the first electronic bill stored in the second address to the first address based on the key of the supervisory node device in the block chain system, adds a first mark to the first electronic bill which does not carry a mark, adds the bill identifier of the second electronic bill to the first electronic bill stored in the first address, and the first mark is used for indicating that the first electronic bill is invalidated.
The second address may be a virtual address in a blockchain system for storing a plurality of electronic tickets, each electronic ticket associated with a consumer account, an electronic ticket may appear as an electronic version of a blue invoice in the corresponding consumer account. Of course, the second address may also be an address of a third node device that sends the electronic ticket processing request, and the second address is not specifically limited in the embodiment of the present invention.
Since different keys of the supervisory node device may provide different rights, where the second key is used for providing the right to transfer the ticket, the second node device needs to acquire the second key of the supervisory node device before transferring the first electronic ticket to the first address, and the second node device may acquire the first key of the supervisory node device through the process shown in step 20322 and 20324.
It should be noted that the second node device can only have the right to transfer the first electronic ticket to the first address after acquiring the second key of the supervisory node device, and the step of acquiring the second key of the supervisory node device by the second node device may be between step 205 and step 206, or before step 205, and the execution sequence of the step of acquiring the second key of the supervisory node device and step 205 is not specifically limited in the embodiment of the present invention.
After the first electronic bill is transferred to the first address, the second node device adds the first mark to the first electronic bill which does not carry the mark, the second node device may add the first mark in the target field of the first electronic bill, and the first mark may be any character string. The target field may be any free field in the first electronic ticket, or may be a field added in the first electronic ticket.
Then, when the first electronic bill has the first mark, it indicates that the first electronic bill is invalid.
The ticket identifier of the second electronic ticket is a code, a number, and a verification code of the second electronic ticket, and may also be other information indicating the second electronic ticket.
The second node device may add the ticket identifier of the second electronic ticket to the remark information field in the first electronic ticket, or may add the ticket identifier of the second electronic ticket to other fields. The ticket identification of the second electronic ticket is added in the first electronic ticket, so that the first electronic ticket and the second electronic ticket can correspond to each other for later verification.
It should be noted that, in this step 206, the second node device transfers the first electronic ticket stored in the second address to the first address based on the key of the supervising node device in the blockchain system, and adds the process shown by the first mark to the first electronic ticket without carrying a mark, that is, the second node device adds the first mark process to the first electronic ticket stored in the first address.
207. And when the processing type is the modification bill, the second node equipment generates a third electronic bill according to the modification content carried by the electronic bill processing request.
The second electronic device can replace the target content on the first electronic bill with the modified content carried by the electronic bill processing request to obtain a third electronic bill, wherein the target content is wrong content of the first electronic bill, and other content in the third bill is consistent with other content in the first electronic bill.
208. The second node device sends the third electronic bill to the first address based on the key of the supervisory node device in the blockchain system.
Before the second node device sends the third ticket to the first address, the second node device needs to acquire the first key of the supervisory node device again, and the second node device can send the third electronic ticket to the first address based on the acquired first key of the supervisory node device.
It should be noted that, when the processing type is modified ticket reimbursement, the second node device will execute the step 207- "208, and when the processing type is void ticket, the second node device will not execute the step 207-" 208.
209. The second node device adds the bill identification of the first electronic bill to the second electronic bill stored in the first address, and outputs the second electronic bill and the third electronic bill carrying the bill identification of the first electronic bill.
The second node device can add the bill identification of the first electronic bill in the field of the second electronic bill for recording remark information so as to add the bill identification of the first electronic bill in the second electronic bill, and further can establish the corresponding relation between the second electronic bill and the first electronic bill so as to be verified in the future.
The first node device can output the second electronic bill and the third electronic bill by sending the second electronic bill and the third electronic bill to the second address storing the first electronic bill.
When the second address is a virtual address, the second node equipment directly sends the second electronic bill and the third electronic bill to a position for storing the first electronic bill; and when the second address is the address of the third node device, the second node device sends the second electronic bill and the third electronic bill to the third node device.
When the second address has an access right, the second node device can send the second electronic bill and the third electronic bill to the second address only when the second address has the access right, for example, the second address is set with the access right by a consumer, the second node device sends a bill issuing request to the second address, the bill issuing request carries the second electronic bill and the third electronic bill, when the consumer refuses to receive the bill issuing request through the third node device, the second node device cannot send the second electronic bill and the third electronic bill to the second address, and when the consumer receives the bill issuing request through the third node device, the second node device can send the second electronic bill and the third electronic bill to the second address.
It should be noted that, when the processing type is a revocation bill, the second node device does not generate the third electronic bill, and does not output the third electronic bill. In addition, the first electronic bill is invalidated, the second node equipment generates a second electronic bill for punching and selling the first electronic bill and generates a third electronic bill, so that the second electronic bill and the third electronic bill can replace the first electronic bill, and the red punching of the bills is realized. To further illustrate the process of reimbursement ticket reimbursement, refer to the flowchart of the reimbursement ticket reimbursement method shown in fig. 3 according to the embodiment of the present invention, which specifically includes the following steps 3.1-3.4.
And 3.1, initiating the red rushing to the billing enterprise by the consumer on line.
When a consumer initiates a red punching on a first bill to an invoicing enterprise on line, the invoicing enterprise knows that the red punching on the first electronic bill is needed, which is equivalent to the step 201 in which the second node device receives an electronic bill processing request sent by the third node device.
And 3.2, the billing enterprise calls the first secret key of the tax authority through the second node device and issues the second electronic bill to the multiple signature address (the tax authority and the consumer).
Wherein, the (tax authority + consumer) multiple signature address is the first address.
And 3.3, calling a second secret key of the tax authority by the second node device, transferring the first electronic bill to the (tax authority + consumer) multiple signature address, and printing a red-flushing state on the first electronic bill.
And the second node device marks the red punching state on the first electronic bill to be equivalent to the first mark on the first electronic bill.
And 3.4, the second node device calls the first secret key of the tax authority, and re-issues a new third electronic bill to the (tax authority + consumer) multiple signature address according to the processing type (whether the information in the first electronic bill is modified or the goods are returned) to realize re-invoicing, and the second node device reuses a normal invoicing interface when invoicing so as to execute the step 202 and the step 209.
It should be noted that steps 3.2-3.4 are performed in the blockchain system.
For further explanation of the red punching process of the present invention, refer to a schematic diagram of a logic design for performing red punching as shown in fig. 4 provided in the embodiment of the present invention.
As can be seen from fig. 4, the consumer communicates with the merchant offline, the consumer indicates that the blue invoice (the blue invoice is equivalent to the first electronic bill) needs to be red-stamped, the merchant opens an applet or a PC (personal computer) management terminal on the second node device, the applet or the PC management terminal is operated to determine whether the return red stamping is the return red stamping (the return red stamping is equivalent to the waste bill), if the return red stamping is the return red stamping, the applet or the PC management terminal issues a red invoice (the red invoice is equivalent to the second electronic bill) to the consumer, the amount on the red invoice is negative, the number of the original blue invoice (the original blue invoice is equivalent to the first electronic bill) is remarked, the red stamping is marked on the original blue invoice (the marking red stamping is equivalent to the marking of the first mark), and a new red invoice number (the invoice number of the invoice is equivalent to the bill marking) is added on the stock red invoice, the consumer returns the goods to the merchant, who returns the money to the consumer. If the bill is not returned, the bill is wrongly issued (the bill is wrongly issued and is equivalent to the modified bill), which is represented as the wrong head raising, the amount of money or the tax rate on the blue-character bill, a small program or a PC management end is operated, a red-character bill is issued to the consumer, the amount of money on the red-character bill is negative, the number of the original blue-character bill is remarked, the red bill is marked on the original blue-character bill, a merchant directly inserts a correct blue-character bill (the correct blue-character bill is equivalent to the third electronic bill) into the account of the consumer, and the original wrong blue-character bill is not displayed for the consumer any more.
The method provided by the embodiment of the invention sends the generated second electronic bill to the first address through the processing type, the first secret key and the second secret key in the electronic bill processing request, transfers the first electronic bill to the first address, invalidates the first electronic bill in the first address and outputs the second electronic bill, so that the process of processing the electronic bill is not required for a consumer to go to a tax authority to make a relevant certificate, nor for the consumer to provide the relevant certificate made by the tax authority to a merchant, and the process of participation of the consumer is reduced, therefore, the process of processing the electronic bill is simpler for the consumer, namely the process of making a red-word invoice is simpler, so the process of processing the electronic bill can be independently completed by the second node device, the consumer does not need to go to the tax authority to make a relevant certificate, and the consumer does not need to provide the relevant certificate made by the tax authority to the merchant, the participation process of the consumer is reduced, so that the process of processing the electronic bill is simpler for the consumer, namely the process of issuing the red invoice is simpler. Moreover, the supervision node device can directly send the own first key and second key to the second node device without verifying the node identifiers in the first key acquisition request and the second key acquisition request, so that the efficiency of acquiring the first key and the second key by the second node device is improved, and whether the electronic bill processing request is correct or not can be further verified by inquiring the billing record and the consumption record, so that the wrong electronic bill processing request is avoided to be processed, and the error rate of processing the electronic bill processing request by the second node device is reduced. And by adding the bill identification of the second electronic bill in the first electronic bill, the first electronic bill can be made to correspond to the second electronic bill for later verification. And the second node device can add the note identifier of the first electronic note in the field of the second electronic note for recording the remarking information so as to add the note identifier of the first electronic note in the second electronic note, and further can establish the corresponding relation between the second electronic note and the first electronic note so as to be checked later.
In order to further explain the process of processing the first electronic ticket by the second node device in this case, referring to fig. 5, fig. 5 is a flowchart of an electronic ticket processing method provided by an embodiment of the present invention, where the flowchart specifically includes the following steps.
501. And the second node equipment receives the electronic bill processing request, wherein the electronic bill processing request carries the bill identification and the processing type of the first electronic bill.
It should be noted that, after the first electronic ticket has been reimbursed by the reimbursement enterprise, the second node device may be triggered to receive the electronic ticket processing request only through the operation of the merchant, where the electronic ticket processing request may carry a third flag, and the third flag is used to indicate that the first electronic ticket has been reimbursed.
502. And the second node equipment inquires the billing record according to the bill identification of the first electronic bill.
The process of step 502 is the same as the process shown in step 202, and the process of step 502 is not described in detail in this embodiment of the present invention.
503. When the processing type is a modified bill, if the record corresponding to the first electronic bill is stored in the billing record, the second node device compares the content of the sub-record corresponding to the first electronic bill in the transaction record with the content of the first electronic bill one by one, and when the content of the sub-record corresponding to the first electronic bill in the transaction record does not conform to the content corresponding to the first electronic bill, the second node device obtains the key of the monitoring node device.
The second node device can also directly compare the target content in the electronic bill processing request with the target content in the sub-record corresponding to the first electronic bill in the transaction record, and when the target content in the electronic bill processing request does not accord with the target content in the sub-record corresponding to the first electronic bill, the second node device obtains the key of the supervision node device.
It should be noted that, when the processing type is a revocation ticket, if the record corresponding to the first electronic ticket is stored in the billing record, the second node device obtains the key of the supervisory node device.
Step 502-.
Whether the electronic bill processing request is correct can be further verified through the steps 502 and 503, so that the wrong electronic bill processing request can be prevented from being processed, and the error rate of processing the electronic bill processing request by the second node equipment is further reduced.
504. When the electronic bill processing request carries a third mark, the second node device sends a state mark request to the first node device, wherein the state mark request is used for indicating bill transfer and marking, and the third mark is used for indicating that the first electronic bill has been reimbursed.
When the second node device receives the electronic ticket processing request, it will detect the content requested by the electronic ticket processor, and when the third mark is detected in the electronic ticket processing request, the second node device will execute this step 504.
505. After receiving the status marking request, the first node device transfers the first electronic bill stored in the second address to the first address based on the key of the supervising node device, and adds a second mark to the first electronic bill which does not carry a mark, wherein the second mark is used for indicating that the first electronic bill is to be invalidated.
The third node device may add a second mark to the target field in the first electronic ticket, where the second mark may be represented by any character string except the first mark, and the representation form of the second mark is not specifically limited in the embodiment of the present invention.
Before the first electronic bill is transferred, the first node device needs to acquire a second key of the supervision node device to have the authority of transferring the first electronic bill to the first address.
The first node device may obtain the second key of the supervising node device by sending a second key obtaining request to the supervising node device, and in a possible implementation, the first node device may obtain the second key of the supervising node device by a process shown in steps 505A to 505D described below.
Step 505A, the first node device sends a second key obtaining request to the supervisory node device, where the second key obtaining request is used to obtain a second key of the supervisory node device.
The node identifier of the first node device is used to indicate the first node device, and the node identifier of the first node device may be a public key or an address of the first node device, so that the supervising node device may verify the second key acquisition request.
Step 505B, after receiving the second key obtaining request, the supervising node device verifies the node identifier in the second key obtaining request.
When the blockchain system is initialized, the supervising node device stores the node identifier of each first node device, so that the supervising node device can verify the acquired second key acquisition request. The supervising node device may verify the node identification in the second key acquisition request by querying all the node identifications of the first node device stored by the supervising node device. In a possible implementation manner, when the supervising node device queries the node identifier in the second acquisition request from all the stored node identifiers, the node identifier passes the verification, otherwise, the node identifier does not pass the verification, wherein the remark information of the supervising node device is further used for storing the node identifiers of the first node devices. Then, when the node identification in the second key acquisition request is verified, that is, the second key acquisition request is verified.
And step 505C, when the node identifier in the second key obtaining request is verified, the supervising node device sends the second key of the supervising node device to the first node device.
In step 505D, the first node device receives the second key of the supervising node device sent by the supervising node device.
It should be noted that the second address here is a virtual address used for storing reimbursed electronic tickets on the blockchain system, the virtual address may be associated with accounts of a plurality of reimbursement enterprises, and the account of each reimbursement enterprise may be associated with a plurality of electronic tickets of the virtual address to indicate that one reimbursement enterprise has reimbursed a plurality of electronic tickets associated with the account of the reimbursement enterprise. The second address here is also the address of the first node device.
In summary, the second address is a virtual address on the blockchain system for storing electronic tickets, the second address is associated with the customer account when the electronic tickets within the second address are not reimbursed, and the second address is associated with the account of the reimbursement enterprise when the electronic tickets within the second address are reimbursed.
506. And after the first node equipment adds the second mark to the first electronic bill, sending an identification success response to the second node equipment, wherein the identification success response is used for indicating that the second mark is added to the first electronic bill in the first address.
507. The second node device receives an identify successful response.
It should be noted that, only after the second node device receives the successful response of the identifier, the second node device can perform the following steps.
It should be noted that, the process shown in the step 504-.
508. The second node device generates a second electronic ticket in the blockchain system based on the first electronic ticket indicated by the ticket identification and the processing type.
The process of step 508 is the same as the process shown in step 204, and the process of step 508 is not described in detail in this embodiment of the present invention.
509. And the second node equipment sends the second electronic bill to a first address in the blockchain system based on the key of the supervision node equipment in the blockchain system, wherein the first address is an address multiply signed based on the supervision node equipment and a bill object of the electronic bill processing request.
The process in step 509 is the same as the process in step 205, and the process in step 509 is not described in detail in this embodiment of the present invention.
510. The second node device replaces the second mark of the first electronic bill stored in the first address with the first mark based on the key of the supervisory node device in the blockchain system, adds the bill identification of the second electronic bill in the first electronic bill stored in the first address, and the first mark is used for indicating that the first electronic bill is invalid.
Because the first node equipment transfers the first electronic bill to the first address, the second node equipment does not need to transfer the first electronic bill again, and only needs to replace the second mark of the first electronic bill identifier stored in the first address with the first mark so as to indicate that the first electronic bill is invalid.
In a possible embodiment, the first node device replaces the second identifier in the destination field of the first electronic ticket stored in the first address with the first identifier.
It should be noted that, the second node device replaces the second token of the first electronic ticket stored in the first address with the process shown by the first token based on the key of the supervising node device in the blockchain system, that is, the second node device adds the first token to the first electronic ticket stored in the first address.
511. And when the processing type is the modification bill, the second node equipment generates a third electronic bill according to the modification target content carried by the electronic bill processing request.
The process of step 511 is the same as the process shown in step 207, and the process of step 511 is not described in detail in this embodiment of the present invention.
512. The second node device sends the third electronic bill to the first address based on the key of the supervisory node device in the blockchain system.
The process of step 512 is the same as the process shown in step 208, and the process of step 512 is not described in detail in this embodiment of the present invention.
513. The second node device adds the bill identification of the first electronic bill to the second electronic bill stored in the first address, and outputs the second electronic bill and the third electronic bill carrying the bill identification of the first electronic bill.
The first node device can output the second electronic bill and the third electronic bill by sending the second electronic bill and the third electronic bill to the second address for storing the first electronic bill.
When the second address is a virtual address, the second node equipment directly sends the second electronic bill and the third electronic bill to a position for storing the first electronic bill; and when the second address is the address of the first node equipment, the second node equipment sends the second electronic bill and the third electronic bill to the first node equipment.
When the second address has an access right, the second node device can send the second electronic bill and the third electronic bill to the second address only after acquiring the access right, for example, the second address reimbursed enterprise sets the access right, the second node device sends a bill issuing request to the second address, the bill issuing request carries the second electronic bill and the third electronic bill, when the reimbursed enterprise refuses to receive the bill issuing request through the first node device, the second node device cannot send the second electronic bill and the third electronic bill to the second address, and when the reimbursed enterprise receives the bill issuing request through the first node device, the second node device can send the second electronic bill and the third electronic bill to the second address.
It should be noted that, when the processing type is a revocation bill, the second node device does not generate the third electronic bill, and does not output the third electronic bill.
The first electronic bill is invalidated, the second node device generates a second electronic bill for punching and selling the first electronic bill and generates a third electronic bill, so that the second electronic bill and the third electronic bill can replace the first electronic bill, and the red punching of the bills is realized. In order to further show the process of the reimbursement note redemption, the flow chart of the reimbursement note redemption method provided by the embodiment of the invention and shown in fig. 6 is referred to, and the flow chart specifically comprises the following steps 6.1-6.7.
And 6.1, the billing enterprise initiates the hong Chong to the first electronic equipment of the reimbursement enterprise through the second electronic equipment.
This step 6.1 is equivalent to the above step in which the second node device sends a status flag request to the first node device.
And 6.2, calling a second secret key of the tax authority by the first node equipment, transferring the first electronic bill to a multi-signature address (of the tax authority and the reimbursement enterprise), and changing the state of the first electronic bill into a to-be-flushed state.
Wherein, the step 504 of changing the first electronic ticket state to the pending red punching state is equivalent to identifying the first electronic ticket stored in the first address as the second label, the pending red punching state is also the second label, and the multi-signature address of the tax authority + reimbursement enterprise) is equivalent to the first address.
And 6.3, the first node equipment feeds back to the billing enterprise that the state of the first electronic bill is changed into the red flushing waiting state to the second node equipment.
The procedure shown in this step 6.3 is equivalent to the first node device sending a status identifier success response to the second node device.
And 6.4, the second node equipment calls the first secret key of the tax authority and issues the second electronic bill to the multiple signature address (of the tax authority and the reimbursement enterprise).
And 6.5, calling a second secret key of the tax authority by the second node device, transferring the first electronic bill to the (tax authority + consumer) multiple signature address, and printing a red punching state on the first electronic bill.
And 6.6, the second node device calls the first secret key of the tax authority, and re-issues a new third electronic bill to the (tax authority + consumer) multiple signature address according to the processing type (whether the information in the first electronic bill is modified or the goods are returned) to realize re-invoicing, and the second node device reuses a normal invoicing interface when invoicing so as to execute the step 502 and the step 513.
It should be noted that steps 61-6.6 are performed in the blockchain system.
The method provided by the embodiment of the invention transfers the first electronic bill to the first address by sending the generated second electronic bill to the first address, invalidates the first electronic bill in the first address and outputs the second electronic bill, therefore, the process of processing the electronic bill does not need the consumer to interact with each mechanism off line, but directly utilizes the on-line process to regenerate the electronic bill, reduces the participation flow of the consumer, namely, simplifies the flow of issuing the electronic bill, therefore, the process of processing the electronic bill does not need the consumer to go to the tax authority to make relevant proofs and also does not need the consumer to provide the relevant proofs made by the tax authority to the merchant, thereby reducing the participation flow of the consumer, for consumers, the flow of processing the electronic bill is simpler, namely the flow of issuing the red invoice is simpler. Moreover, the supervision node device can directly send the own first key and second key to the second node device without verifying the node identifiers in the first key acquisition request and the second key acquisition request, so that the efficiency of the second node device in acquiring the first key and the second key is improved, and whether the electronic bill processing request is correct or not can be further verified by inquiring the billing record and the consumption record, so that the wrong electronic bill processing request is avoided, and the error rate of the second node device in processing the electronic bill processing request is reduced. And by adding the bill identification of the second electronic bill in the first electronic bill, the first electronic bill can be made to correspond to the second electronic bill for later verification. And the second node device can add the note identifier of the first electronic note in the field of the second electronic note for recording the remarking information so as to add the note identifier of the first electronic note in the second electronic note, and further can establish the corresponding relation between the second electronic note and the first electronic note so as to be checked later.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the invention, and the device comprises:
a receiving module 701, configured to receive an electronic ticket processing request, where the electronic ticket processing request carries a ticket identifier and a processing type of a first electronic ticket;
a generating module 702 configured to generate a second electronic ticket in the blockchain system based on the first electronic ticket indicated by the ticket identity and the processing type;
a sending module 703, configured to send the second electronic ticket to a first address in the blockchain system, where the first address is an address of performing multiple signatures on ticket objects based on the supervisory node device and the electronic ticket processing request;
a transfer module 704 for adding a first mark to the first electronic ticket stored in the first address, adding a ticket id of the second electronic ticket to the first electronic ticket stored in the first address, the first mark indicating that the first electronic ticket is invalidated;
the output module 705 is configured to add the ticket identifier of the first electronic ticket to the first electronic ticket, and output the first electronic ticket carrying the ticket identifier of the first electronic ticket.
Optionally, the transfer module 704 is configured to:
transferring the first electronic bill stored in the second address into the first address based on a key of a supervisory node device in the blockchain system, and adding the first mark to the first electronic bill which does not carry a mark; or the like, or, alternatively,
replacing a second token of the first electronic ticket stored in the first address with the first token based on a key of a supervisory node device in the blockchain system, the second token indicating that the first electronic ticket is to be voided.
Optionally, the sending module is further configured to send a status flag request when the electronic ticket processing request carries a third flag, where the status flag request is used to indicate that a ticket transfer and a flag are performed, and the third flag is used to indicate that the first electronic ticket has been reimbursed;
the receiving module is further configured to receive a mark success response, where the mark success response is used to indicate that a second mark has been added to the first electronic ticket in the first address.
Optionally, the sending module is further configured to send a first key obtaining request to the supervisory node device, where the first key obtaining request is used to obtain a first key of the supervisory node device, and the first key is used to provide a ticket sending right;
the receiving module is further configured to receive a first key of the supervisory node device sent by the supervisory node device;
the sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device, and the second key is used to provide a ticket transfer authority;
the receiving module is further configured to receive a second key of the supervisory node device sent by the supervisory node device.
Optionally, the apparatus further comprises:
the inquiry module is used for inquiring the billing record according to the bill identification of the first electronic bill;
the verification module is used for sending the second electronic bill to the first address in the block chain system if the record corresponding to the first electronic bill is stored in the billing record when the processing type is the revocation bill;
the verification module is further configured to, when the processing type is a modified ticket, compare the content of the sub-record corresponding to the first electronic ticket in the transaction record with the content of the first electronic ticket one by one if the record corresponding to the first electronic ticket is stored in the billing record, and execute the step of sending the second electronic ticket to the first address in the block chain system when any content in the sub-record does not match the content corresponding to the first electronic ticket.
Optionally, the device generating module is further configured to generate a third electronic ticket according to the modified content carried by the electronic ticket processing request when the processing type is a modified ticket;
the sending module is further configured to send the third electronic ticket to the first address based on a key of a supervisory node device in the blockchain system;
the output module is also used for outputting the third electronic bill.
Optionally, the first output module 705 is configured to send the second electronic ticket carrying the ticket identifier of the first electronic ticket to a second address where the first electronic ticket is stored.
Fig. 8 is a schematic structural diagram of an electronic bill processing device provided by an embodiment of the invention, and the device comprises:
a receiving module 801, configured to receive a status marking request, where the status marking request is used to instruct to perform ticket transfer and marking;
a transfer module 802, configured to transfer the first electronic ticket stored in the second address to the first address in the block chain system, add the second flag to the first electronic ticket without carrying a flag, where the second flag is used to indicate that the first electronic ticket is to be invalidated;
a sending module 803, configured to send an identification success response, where the mark success response is used to indicate that the first electronic ticket in the first address has the second mark added.
Optionally, the apparatus further comprises:
the sending module is further configured to send a second key acquisition request to the supervisory node device, where the second key acquisition request is used to acquire a second key of the supervisory node device;
the receiving module is further configured to receive a second key of the supervisory node device sent by the supervisory node device.
It should be noted that: in the electronic bill processing apparatus provided in the above embodiment, when processing an electronic bill, only the division of the above functional modules is exemplified, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the electronic bill processing apparatus and the electronic bill processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 9 is a schematic structural diagram of a node device provided in an embodiment of the present invention, where the node device 900 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 901 and one or more memories 902, where the memory 902 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 1001 to implement the methods provided in the foregoing method embodiments. Certainly, the node device may further have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and the node device may further include other components for implementing functions of the device, which is not described herein again.
In an exemplary embodiment, there is also provided a computer storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the electronic ticket processing method in the embodiments described below. For example, the computer storage medium may be a ROM (read-only memory), a RAM (random access memory), a CD-ROM (compact disc read-only memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. An electronic bill processing method, characterized in that the method comprises:
receiving a status marking request, wherein the status marking request is used for indicating bill transfer and marking;
transferring the first electronic bill stored in the second address into a first address in a block chain system, and adding a second mark to the first electronic bill which does not carry a mark, wherein the second mark is used for indicating that the first electronic bill is to be invalidated;
sending an identification success response indicating that the first electronic ticket in the first address has a second label added.
2. The method of claim 1, further comprising:
sending a second key acquisition request to the supervisory node device, wherein the second key acquisition request is used for acquiring a second key of the supervisory node device;
receiving a second key of the supervisory node device sent by the supervisory node device.
3. The method of claim 1, wherein transferring the first electronic ticket stored in the second address to the first address in the block chain system, adding a second label to the first electronic ticket that does not carry a label comprises:
transferring the first electronic ticket stored in the second address into the first address based on a second key of the supervising node device, adding a second label to the first electronic ticket not carrying a label.
4. The method of any of claims 1 or 3, wherein said adding a second label to said first electronic ticket without a label comprises:
adding the second mark on a target field within the first electronic ticket.
5. An electronic bill handling apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving a state marking request, and the state marking request is used for indicating bill transfer and marking;
the transfer module is used for transferring the first electronic bill stored in the second address to the first address in the block chain system, and adding a second mark to the first electronic bill which does not carry a mark, wherein the second mark is used for indicating that the first electronic bill is to be invalidated;
and the sending module is used for sending an identification success response, and the marking success response is used for indicating that the second mark is added to the first electronic bill in the first address.
6. The apparatus according to claim 5, wherein the sending module is further configured to send a second key obtaining request to the supervising node device, where the second key obtaining request is used to obtain a second key of the supervising node device;
the receiving module is further configured to receive a second key of the supervisory node device sent by the supervisory node device.
7. The apparatus of claim 1, wherein the transfer module is further configured to transfer the first electronic ticket stored in the second address to the first address based on a second key of the supervisory node device, and add a second token to the first electronic ticket without carrying a token.
8. The apparatus of any of claims 5 or 7, wherein the transfer module is further configured to add the second token to a destination field in the first electronic ticket.
9. A computer device comprising one or more processors and one or more memories having stored therein at least one instruction that is loaded and executed by the one or more processors to perform operations performed by the electronic ticket processing method of any one of claims 1 to 4.
10. A computer storage medium having stored therein at least one instruction, which is loaded and executed by a processor to perform the operations performed by the electronic ticket processing method of any one of claims 1 to 4.
CN201910866057.2A 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium Active CN110599265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910866057.2A CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910866057.2A CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN201910368302.7A CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910368302.7A Division CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110599265A true CN110599265A (en) 2019-12-20
CN110599265B CN110599265B (en) 2021-05-14

Family

ID=67418524

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910866057.2A Active CN110599265B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN201910368302.7A Active CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910368302.7A Active CN110084655B (en) 2019-05-05 2019-05-05 Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium

Country Status (1)

Country Link
CN (2) CN110599265B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111062766B (en) * 2019-12-20 2024-02-09 中国银联股份有限公司 Electronic invoice issuing method and device based on blockchain
CN111291335B (en) * 2020-01-19 2022-01-18 腾讯科技(深圳)有限公司 Bill data processing method and device, computer equipment and storage medium
CN111260488B (en) * 2020-01-23 2021-11-26 腾讯科技(深圳)有限公司 Data processing method and device and readable storage medium
CN111260421B (en) * 2020-02-11 2023-07-18 中国银联股份有限公司 Electronic invoice management and control method and device based on block chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933879A (en) * 2015-12-30 2017-07-07 航天信息股份有限公司 Invoice data tracking and system
CN108242000A (en) * 2017-10-27 2018-07-03 北京车和家信息技术有限公司 Invoice management method, system, computer installation and computer readable storage medium
CN109636414A (en) * 2018-11-28 2019-04-16 海南高灯科技有限公司 One kind cancelling system based on block chain electronic invoice and cancels method

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5465206B1 (en) * 1993-11-01 1998-04-21 Visa Int Service Ass Electronic bill pay system
US20020194127A1 (en) * 2001-04-30 2002-12-19 Randell Wayne L. Method and system for processing invoices
US6644546B2 (en) * 2002-01-02 2003-11-11 International Business Machines Corporation System and method for electronic check conversion at a point-of-sale terminal
JP2005057805A (en) * 2004-10-18 2005-03-03 Nec Corp Information providing apparatus, ticket providing apparatus, reproducing device, and information selling method used therefor, and program therefor
US10181149B1 (en) * 2006-03-06 2019-01-15 Versata, Inc. Electronic processing of invoices with no purchase orders
US8027890B2 (en) * 2007-08-03 2011-09-27 Mastercard International Incorporated Methods and systems for processing a financial transaction
US20120191579A1 (en) * 2011-01-20 2012-07-26 International Business Machines Corporation Selective Processing of Reverse Invoices in Computer Systems for Financial Transactions
CN103985205A (en) * 2014-05-30 2014-08-13 税友软件集团股份有限公司 Generation method, device and system of red-letter electronic invoices
CN104268779A (en) * 2014-09-30 2015-01-07 税友软件集团股份有限公司 Method and system for generating red mark electronic invoice
CN105550913A (en) * 2015-12-22 2016-05-04 北京握奇智能科技有限公司 Invoicing monitoring device, invoicing system and invoicing method applied to tax control
US20170193469A1 (en) * 2015-12-31 2017-07-06 Mastercard International Incorporated Method and system for providing e-invoices
CN107045695A (en) * 2016-02-05 2017-08-15 阿里巴巴集团控股有限公司 A kind of invoice new line information variation, device and managing bill system
US11049104B2 (en) * 2017-04-05 2021-06-29 Samsung Sds Co., Ltd. Method of processing payment based on blockchain and apparatus thereof
CN108830664A (en) * 2017-05-05 2018-11-16 平安科技(深圳)有限公司 Difference electronics indigo plant ticket generation method, equipment and computer readable storage medium
CN107784530A (en) * 2017-07-24 2018-03-09 平安科技(深圳)有限公司 Calcellation processing method, storage medium and the server of a kind of blank invoice
CN108921629A (en) * 2018-06-13 2018-11-30 西安艾润物联网技术服务有限责任公司 Billing method, system and computer readable storage medium
CN108922012B (en) * 2018-07-11 2020-05-19 北京大账房网络科技股份有限公司 Invoice checking method without leakage of original information based on block chain technology
CN110400188B (en) * 2018-08-16 2021-08-13 深圳市智税链科技有限公司 Electronic bill generating method, electronic bill generating device, storage medium and computer equipment
CN109325812B (en) * 2018-08-24 2023-02-07 深圳市智税链科技有限公司 Data processing method, device, storage medium and equipment for electronic bill

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106933879A (en) * 2015-12-30 2017-07-07 航天信息股份有限公司 Invoice data tracking and system
CN108242000A (en) * 2017-10-27 2018-07-03 北京车和家信息技术有限公司 Invoice management method, system, computer installation and computer readable storage medium
CN109636414A (en) * 2018-11-28 2019-04-16 海南高灯科技有限公司 One kind cancelling system based on block chain electronic invoice and cancels method

Also Published As

Publication number Publication date
CN110084655B (en) 2023-06-23
CN110084655A (en) 2019-08-02
CN110599265B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN110599265B (en) Electronic bill processing method, electronic bill processing device, computer equipment and computer storage medium
CN111311209B (en) Cross-block-chain data processing method, device, equipment and computer storage medium
CN110363665B (en) Credit right data processing method, device, equipment and medium
CN109118214B (en) Method and device for operating intelligent contract
WO2018161903A1 (en) Electronic bill management method, device, and storage medium
CN110599276B (en) Bill reimbursement method, device and equipment and computer storage medium
CN112801658B (en) Cross-border resource transfer authenticity auditing method and device and electronic equipment
CN111444209B (en) Data processing method, device, equipment and medium based on block chain
CN110020901A (en) Resource allocation methods and device and electronic equipment based on block chain
CN110163691B (en) Invoice creating method and device based on block chain and electronic equipment
CN110019326A (en) True from false of bills verification method and device and electronic equipment based on block chain
CN108133415A (en) A kind of electronics authority method of charging out, device and system
WO2019019777A1 (en) Insurance policy premium-withdrawing processing method and apparatus, computer device, and storage medium
CN112669140A (en) Financial account sales processing method and device, computer equipment and storage medium
CN111598502A (en) Block chain-based waybill processing method, system, equipment and storage medium
JP6187947B1 (en) Multi-bank pooling system and multi-bank pooling method
CN111242785A (en) Bill processing method and device, electronic equipment and storage medium
CN108985736A (en) Processing method, device and the terminal of bill
CN111144889A (en) Block chain-based integral settlement method and block chain accounting system
CN111260421A (en) Block chain-based electronic invoice management and control method and device
CN113032036B (en) Service data processing method, device, system, computer equipment and storage medium
CN111028025B (en) Bill data processing method, device, equipment and medium based on big data
CN114119243A (en) Pool financing management method, device, medium and electronic equipment based on block chain
JPWO2018179152A1 (en) Virtual currency payment agent, virtual currency payment agent method and program
CN108961039B (en) Transaction processing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40017407

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant