A financial bill entry method and device based on blockchain

Verifying and recording financial bill information through blockchain technology solves the problems of repeated reimbursement and low efficiency in the accounting of financial bills, achieves higher accounting accuracy and efficiency, and simplifies the financial processing process.

CN114648394BActive Publication Date: 2024-09-24AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011504894.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-18
Publication Date
2024-09-24
Estimated Expiration
2040-12-18

AI Technical Summary

Technical Problem

In the existing technology, problems such as repeated reimbursement and low efficiency of manual verification are prone to occur during the accounting process of financial bills, resulting in accounting errors and low efficiency.

Method used

Adopt a blockchain-based financial bill entry method to record financial bill information through the blockchain, verify bill types and entry status, avoid repeated entries, and improve the accuracy of entry through the decentralization, transparency and autonomy of the blockchain rate and efficiency.

Benefits of technology

It improves the accuracy and efficiency of accounting for financial notes, avoids manual verification errors, simplifies the process of voiding and red flushing, and improves the accuracy and transparency of accounting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114648394B
    Figure CN114648394B
Patent Text Reader

Abstract

The present invention relates to a method and device for recording financial bills based on blockchain, and relates to the technical field of financial management. The method of the present invention comprises: verifying the financial bill information to be recorded and adding it to the blockchain, and performing recording processing according to the financial bill information recorded in the block in the blockchain. Since the embodiment of the present invention provides a new bill recording method through blockchain technology, the recording operation is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial management technology, and in particular to a method and device for recording financial bills based on blockchain. Background Art

[0002] Financial management is the management of asset acquisition, capital financing, cash flow in operations, and profit distribution under certain overall goals. Financial management is an integral part of corporate management and is usually managed by financial personnel. Among them, reimbursement of corporate personnel is one of the financial management tasks of financial personnel.

[0003] Currently, when reimbursing financial bills, the financial staff will check whether the financial bills can be reimbursed. If the financial bills are found to be reimbursable, they will be recorded in the accounts.

[0004] When corporate employees reimburse financial bills, duplicate reimbursements may occur, which can easily lead to accounting errors when manual accounting operations are performed. At the same time, the efficiency of manually checking financial bills for reimbursement will be relatively low. Summary of the invention

[0005] The present invention provides a method and device for recording financial bills based on blockchain, which are used to solve the problem in the prior art that manual recording operations are prone to errors and low efficiency.

[0006] In a first aspect, an embodiment of the present invention provides a method for recording financial bills based on blockchain, comprising:

[0007] If there is no financial bill information to be recorded in the target block of the group to which the user belongs in the blockchain, a new block is formed and added to the blockchain according to the financial bill information to be recorded and the information whose recording status corresponding to the financial bill information to be recorded is to be recorded;

[0008] In response to the user's deposit instruction, extract the financial bill information with the deposit status of pending deposit recorded in the target block of the group to which the user belongs, and for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs;

[0009] If so, the financial bill information is recorded, and according to the information that the recording status corresponding to the financial bill information has been recorded, a new block is formed and added to the blockchain.

[0010] The above method can record the relevant information of financial bills in the middle block of the blockchain. When entering the account, if there is no financial bill information to be recorded in the financial bill information recorded in the target block of the group to which the user belongs in the blockchain, it means that the financial bill information to be recorded has not been reimbursed repeatedly, then it will be added to the blockchain as a new block, and then the unrecorded financial bill information will be found in the blockchain and processed for accounting, so that the financial bills can be processed in batches. Through the above method, the accuracy of accounting can be improved and the efficiency of accounting can be improved.

[0011] In a possible implementation, determining that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain is performed in the following manner, including:

[0012] Determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and determine multiple second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block;

[0013] comparing the first verification string with a plurality of second verification strings;

[0014] If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

[0015] The above method compares the ticket number of the financial bill to be recorded and the identifier of the group to which the user belongs with the ticket number and the identifier of the corresponding group recorded in the blockchain, so that the financial bill in the block of the group to which the user belongs can be found in the blockchain for comparison, thereby improving the accuracy of querying whether the account is recorded repeatedly.

[0016] In a possible implementation, before the financial bill information is entered into an account, the method further includes:

[0017] Determine that the financial document information meets some or all of the following verification conditions;

[0018] Verification condition 1: The bill number in the financial bill information is legal;

[0019] Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs;

[0020] Verification condition three: the payee name in the financial note information is the same as the name of a member of the group to which the user belongs.

[0021] The above method can avoid recording false financial bills by verifying the legitimacy of the bill number, thereby improving the accuracy of recording; it can also determine whether the financial bill can be recorded by verifying whether the payee name in the financial bill information to be recorded is the group name of the user's group or the name of a member in the user's group, thereby avoiding the recording of unreimbursed financial bills and improving the accuracy of recording.

[0022] In a possible implementation, after determining whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs, the method further includes:

[0023] If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

[0024] In the above method, when the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, the accounting status corresponding to the financial bill information is recorded as failed accounting, thereby avoiding accounting operations on bills that cannot be accounted for and improving the accuracy of accounting.

[0025] In a possible implementation, the method further includes:

[0026] In response to the user's cancellation instruction, if the target block of the group to which the user belongs in the blockchain records that the entry status corresponding to the to-be-cancelled financial bill information corresponding to the cancellation instruction is to-be-cancelled, a new block is formed and added to the blockchain according to the cancellation information of the to-be-cancelled financial bill information; and / or

[0027] In response to the user's red-check instruction, if the target block record of the group to which the user belongs in the blockchain records that the accounting status of the financial bill information to be red-checked corresponding to the red-check instruction is pending accounting, then based on the red-letter voucher added to the financial bill information to be red-checked, the new financial bill information corresponding to the red-letter instruction, and the blue-letter voucher corresponding to the new financial bill information and the red-letter voucher, a new block is formed and added to the blockchain.

[0028] The above method can query unrecorded financial bills through blockchain and cancel or offset them, avoiding financial personnel from manually querying the accounting status of financial bills, thereby simplifying the manual process of canceling or offsetting.

[0029] In a second aspect, an embodiment of the present invention provides a financial bill entry device based on blockchain, comprising:

[0030] The chain entry module is used to form a new block and add it to the blockchain if there is no financial bill information to be recorded in the financial bill information recorded in the target block of the group to which the user belongs in the blockchain, according to the financial bill information to be recorded and the information that the recording status corresponding to the financial bill information to be recorded is to be recorded;

[0031] The accounting module is used to respond to the user's accounting instruction, extract the financial bill information with the accounting status of the target block record of the group to which the user belongs as to be accounted, and for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs; if so, the financial bill information is accounted, and according to the information that the accounting status corresponding to the financial bill information is already accounted, a new block is formed and added to the blockchain.

[0032] In a possible implementation manner, the device further includes:

[0033] A first verification module, configured to determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and to determine a plurality of second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block;

[0034] comparing the first verification string with a plurality of second verification strings;

[0035] If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

[0036] In a possible implementation manner, the device further includes:

[0037] A second verification module is used to determine whether the financial bill information meets some or all of the following verification conditions;

[0038] Verification condition 1: The bill number in the financial bill information is legal;

[0039] Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs;

[0040] Verification condition three: the payee name in the financial note information is the same as the name of a member of the group to which the user belongs.

[0041] In a possible implementation, the account entry module is further used to:

[0042] If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

[0043] In a possible implementation manner, the device further includes:

[0044] A cancellation module, used to respond to a user's cancellation instruction, if the target block of the group to which the user belongs in the blockchain records that the entry status corresponding to the to-be-cancelled financial bill information corresponding to the cancellation instruction is to-be-cancelled, then a new block is formed and added to the blockchain according to the cancellation information of the to-be-cancelled financial bill information; and / or

[0045] The red-check module is used to respond to the red-check instruction of the user. If the target block record of the group to which the user belongs in the blockchain shows that the entry status of the financial bill information to be red-checked corresponding to the red-check instruction is pending entry, then a new block is formed and added to the blockchain based on the red-letter voucher added to the financial bill information to be red-checked, the new financial bill information corresponding to the red-letter voucher, and the blue-letter voucher corresponding to the new financial bill information and the red-letter voucher.

[0046] In a third aspect, the present application also provides a computer storage medium on which a computer program is stored, which, when executed by a processing unit, implements the steps of the blockchain-based financial note entry method described in the first aspect.

[0047] In addition, the technical effects brought about by any implementation method in the second aspect and the third aspect can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here.

[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the description are used to explain the principles of the present invention, and do not constitute improper limitations of the present invention.

[0050] Figure 1 is a schematic diagram of a blockchain structure provided according to an embodiment of the present invention;

[0051] Figure 2 It is a flowchart of a financial bill entry method based on blockchain provided according to an embodiment of the present invention;

[0052] Figure 3is a schematic diagram of interaction between an electronic device and a fiscal electronic ticket server provided according to an embodiment of the present invention;

[0053] Figure 4 This is a flowchart of a complete method for entering financial bills based on blockchain according to an embodiment of the present invention;

[0054] Figure 5 It is a structural diagram of a financial bill entry device based on blockchain provided according to an embodiment of the present invention;

[0055] Figure 6 It is a schematic diagram of an account entry system provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to enable ordinary persons in the art to better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

[0057] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0058] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is

[0059] The embodiment of the present invention provides a method and device for recording financial bills based on blockchain. Before introducing the specific solution, the blockchain used in the embodiment of the present invention is first introduced.

[0060] 1. Blockchain is chosen because its characteristics are very consistent with the special situation of financial bill entry management for the following reasons:

[0061] (1) Blockchain decentralization ensures the credibility of data. Account entry is an internal operation of enterprises and institutions. In a market economy, government agencies have no obligation to participate in it. Therefore, as a market behavior, the credibility of account entry management is the first problem to be solved. The decentralization of blockchain just solves this problem.

[0062] (2) Openness, more convenient for social application. The blockchain system is open. Except for the private information of the interacting parties, which is encrypted, the blockchain data is open to everyone. Anyone can query the blockchain data and develop related applications through the public interface. Therefore, the information of the entire system is highly transparent, which makes it possible for the bill entry data to serve the general public.

[0063] (3) Autonomy, ensuring objectivity. The blockchain uses consensus-based norms and protocols, allowing all blocks in the entire system to freely and securely exchange data in a trustless environment, so that trust in "people" is replaced by trust in machines, and any human intervention is ineffective.

[0064] (4) Anonymity and privacy protection. Since the exchange between blocks follows a fixed algorithm, the interacting parties do not need to disclose their identities to gain trust in each other. Therefore, users do not need to publish specific information about bills (especially medical bills, which are very sensitive to privacy), nor do they need to know the specific company to which the recipient reports the bill, which has a strong privacy protection effect.

[0065] 2. Blockchain type selection;

[0066] Common types of blockchains include public chains, private chains, and alliance chains. The blockchain mentioned in the embodiments of the present invention can be an alliance chain or a public chain for the following reasons:

[0067] Consortium chain refers to a blockchain whose consensus process is controlled by pre-selected nodes. The consortium chain is used to achieve partial decentralization. First, some large enterprises and institutions are used as basic nodes to establish a blockchain alliance. In this way, first, the alliance members can benefit from each other; second, as many votes as possible can be obtained to attract more members to join. Moreover, under the premise of not being recognized by the society, the alliance chain dominated by large enterprises and institutions has stronger feasibility.

[0068] A public chain is a blockchain where anyone can read and send transactions, and transactions can be effectively confirmed, and everyone can participate in the consensus process. Since data tampering of a blockchain requires modifying more than 51% of the node data, when the number of members and the number of bills on the alliance chain reaches a certain base, it becomes impossible to modify 51% of the nodes, which makes it possible to establish a public chain.

[0069] 3. Blockchain architecture and platform selection;

[0070] Combination Figure 1 As shown, the architecture of the blockchain mentioned in the embodiment of the present invention consists of 6 layers: application layer, incentive layer, consensus layer, contract layer, network layer, and data layer;

[0071] Among them, the data layer: divides data blocks by date, uses hash functions to prevent tampering, and establishes an asymmetric encryption mechanism. Among them, the application of hash functions in blockchain can be: 1. Quick verification. In the blockchain, the hash function generates summaries of various data. When comparing whether two data are equal, you only need to compare their summaries. For example, to compare whether two transactions are equal, you only need to compare the hash values ​​of the two, which is quick and convenient. 2. Prevent tampering. To pass a piece of data, to ensure that it is not tampered with during the transmission process, you only need to pass its summary at the same time. The person who receives the data regenerates the summary of this data, and then compares whether the transmitted summary and the generated summary are equal. If they are equal, it means that the data has not been tampered with during the transmission process.

[0072] Network layer: Distributed deployment, using servers for broadcasting.

[0073] Consensus layer: Use the Pool verification pool, which is based on traditional distributed consistency technology and supplemented by a data verification mechanism. The consensus mechanism used in the consensus layer can reward users who provide resources and maintain the blockchain, and punish malicious offenders, thereby making the blockchain in the embodiment of the present invention more fair.

[0074] Incentive layer: Provide the account entry status and you can use the account entry status query. Users can query the account entry status of their own financial bills from the blockchain provided by the embodiment of the present invention.

[0075] Contract layer: Agree on how to use data.

[0076] Application layer: The client software is an independent blockchain node, and the users are companies and individuals.

[0077] 4. Blockchain platform selection;

[0078] Blockchain platforms can include Ethereum, IBM HyperLedger (fabric), LISK, etc.:

[0079] Ethereum: It is an open source platform and the most widely used platform. Its advantage is that it can be built for free. Its disadvantage is that it has many vulnerabilities due to lack of developer maintenance, and it needs to be "cleared" during use. Therefore, it is suitable for use when there is not enough R&D investment and time is sufficient.

[0080] Fabric: Developed by IBM, it is easy to use and maintained by the developer. The disadvantage is that it is currently free but may be charged later. The reason for recommending this platform is that it can shorten the initial development cycle.

[0081] LISK: A new generation of blockchain platform, based on distributed decentralized applications, its advantages are easy to use, full-featured, and it solves the network congestion problem under large user volumes; its disadvantage is that the platform is relatively new and its stability needs to be verified. Therefore, it is suitable for subsequent applications with large data volumes and large user volumes.

[0082] The following introduces the method of recording financial bills based on the above blockchain.

[0083] Combination Figure 2 As shown, an embodiment of the present invention provides a financial bill entry method based on blockchain, comprising:

[0084] S200: If there is no financial bill information to be recorded in the financial bill information recorded in the target block of the group to which the user belongs in the blockchain, a new block is formed and added to the blockchain according to the financial bill information to be recorded and the information whose recording status corresponding to the financial bill information to be recorded is to be recorded.

[0085] The blockchain mainly records the relevant information of financial bills of multiple groups. Each group includes multiple members, and the blocks of the blockchain record the relevant information of financial bills reimbursed by multiple members.

[0086] For example, the block records the bill number of the financial bill, the group identifier, the names of multiple members in the group, the name of the group, the account status of the financial bill, whether the financial bill is an invalid bill, whether the financial bill is a red-offset bill, and other information.

[0087] It should be noted that the user is a financial staff, or any member included in the group. In the embodiments of the present invention, the user is often taken as an example of a financial staff.

[0088] If the financial bill information to be recorded in the target block of the group to which the user belongs in the blockchain contains financial bill information to be recorded, it means that the financial bill information to be recorded is a duplicate entry. In this case, the entry into the chain will not be processed, and the user will be prompted that this is a duplicate financial bill.

[0089] A specific prompting method may be to display the information of duplicate financial bills.

[0090] S201: Responding to the user's deposit instruction, extracting the financial bill information of the target block record of the user's group whose deposit status is to be deposited, and for each extracted financial bill information, determining whether the bill type in the financial bill information is a reimbursable type of the target block record of the user's group;

[0091] Among them, for each extracted financial bill information, you can also first determine the account entry type. If the account entry type is reimbursement, it means that the financial bill information is the financial bill information reimbursed by members of the group, and then determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs. If the account entry type is invoicing, it means that the financial bill information is a financial bill issued by the group, which is not used for reimbursement and only needs to be directly entered into the account.

[0092] The bill type in the financial bill information is determined in the following manner: the bill type is directly extracted from the financial bill information, or the bill type is determined based on keywords in the financial bill information.

[0093] For example, when a user inputs financial bill information, the input interface has a function of selecting a bill type, and the user can select the bill type so that the bill type is included in the financial bill information.

[0094] For another example, when there is no function to select the bill type, the bill type can be determined by the keywords in the financial bill information. When the keywords in the financial bill information are XX hospital, outpatient, hospitalization, specific payment content, drug name, etc., the disease type can be analyzed through these contents. When the reimbursable type includes the treatment disease type, the above content is analyzed to determine whether it belongs to the treatment disease type. If so, it is determined to be in line with the reimbursable type. The reimbursable type does not include outpatient, but the keywords of the analyzed financial bill information include outpatient, which means that it does not meet the reimbursable type.

[0095] The reimbursable types for each group can be preset.

[0096] S202: If yes, the financial bill information is recorded, and a new block is formed and added to the blockchain according to the recorded status corresponding to the financial bill information.

[0097] Among them, in order to ensure the security of blocks in the blockchain, for financial bills that have been added to the block, when the status of the financial bill changes, the changed status will be added to the blockchain as a new block. Of course, in addition to the information that the entry status corresponding to the financial bill information is already entered, the new block can also include interactive information with which block to interact, etc., so that when querying the entry status of the financial bill, it is possible to trace the source and determine the latest status of the financial bill information.

[0098] If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

[0099] That is, when it does not belong to the type that can be reimbursed, it will not be recorded in the account, and the reason for not recording it and the information about the failure of recording will form a new block.

[0100] pass Figure 2 The method introduced in the text can add unrecorded financial bills to the blockchain. At the same time, when they are recorded in the blockchain, the accounting status is also recorded. When the user makes an account entry, the unrecorded financial bills are found in the blockchain, and when it is determined that the unrecorded financial bills meet the reimbursable type, the financial bills are recorded and a new block of the accounting status is added to the blockchain. Not only does the information in the blockchain have the latest information, but the accuracy and efficiency of accounting are also improved through the above-mentioned automatic verification method.

[0101] Since the blockchain provided by the embodiment of the present invention may be a public chain, it may include blocks of multiple different groups. In order to be able to compare with the information in the block of the group to which the user belongs, the embodiment of the present invention determines that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain by the following method, including:

[0102] Determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and determine multiple second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block;

[0103] comparing the first verification string with a plurality of second verification strings;

[0104] If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

[0105] The step of determining the first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs comprises: encrypting the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs respectively to form a string as the first verification string;

[0106] Determining multiple second verification strings according to at least one ticket number recorded in each block of the blockchain and the identifier of the group recorded in the block, including: for each ticket number recorded in the block of the blockchain, encrypting the ticket number and the corresponding group in the same encryption method as the first verification string to form a string as the second verification string;

[0107] If the two are the same, it means that the financial note to be recorded has been added to the blockchain and does not need to be added again, thus avoiding the problem of subsequent duplicate recording.

[0108] Take Company A as an example, the bill number in the financial bill information to be recorded is 12345, and the identification of Company A is abcde. Then 12345 is encrypted to obtain a string, and abcde is encrypted to obtain a string. The string composed of the two strings is used as the first verification string.

[0109] Similar to the above, multiple second verification character strings are obtained for comparison.

[0110] It should be noted that the method for determining the first verification string based on the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and determining multiple second verification strings based on at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block chain can also be other encryption methods, as long as the first verification string and the second verification string can be obtained. As for the specific method, other methods can also be used to implement it, and the present invention does not make any specific limitations on this.

[0111] In order to ensure that the financial bills recorded are regular and legal bills and avoid the bills recorded being fake bills, the embodiment of the present invention also provides a method for determining that the financial bill information meets some or all of the following verification conditions:

[0112] Verification condition 1: The bill number in the financial bill information is legal;

[0113] Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs;

[0114] Verification condition three: the payee name in the financial bill information is the same as the user name in the group to which the user belongs.

[0115] Of course, the above-mentioned verification process can be completed before or after any step before the financial bill information is recorded in the account. For example, after there is no financial bill information to be recorded in the financial bill information recorded in the target block of the user's group in the blockchain, the above-mentioned verification process can be performed before a new block is formed and added to the blockchain based on the financial bill information to be recorded and the corresponding recording status of the financial bill information to be recorded is to be recorded.

[0116] For verification condition one, the financial electronic invoice server can be used to verify whether the ticket number in the financial invoice information to be recorded is legal.

[0117] The specific implementation process may be that the electronic device 300 executing the method of the embodiment of the present invention is connected to the financial electronic ticket server 301, and the electronic ticket server 301 is connected to the financial electronic ticket server 301. Figure 3 As shown, the electronic device 300 sends a request to verify whether the ticket number is legal, wherein the request includes the ticket number in the financial bill information to be recorded; after receiving the request, the financial electronic ticket server 301 verifies the legality of the ticket number in the financial bill information to be recorded, that is, whether it is in the ticket number of the financial bill recorded in the financial electronic ticket server 301, and sends the verification result to the electronic device 300. Specifically, if the ticket number of the financial bill recorded in the financial electronic ticket server 301 indicates the legality of the ticket number in the financial bill information to be recorded, and the verification is successful, then the financial electronic ticket server 301 sends a verification success message to the electronic device 300; if the ticket number of the financial bill is not in the ticket number of the financial bill recorded in the financial electronic ticket server 301, it indicates that the ticket number in the financial bill information to be recorded is illegal, then the financial electronic ticket server 301 sends a verification failure message to the electronic device 300.

[0118] In addition, the second and third verification conditions mainly take into account the situation that the financial bill information to be recorded may not belong to the group to which the user belongs. For example, when recording the financial account of Company A, only the bills spent by Company A or the bills of employees of Company A need to be recorded. The bills of employees of Company B or the bills spent by Company B generally cannot be entered into Company A for recording. In order to avoid such errors, the embodiment of the present invention proposes the second and third verification conditions;

[0119] Verify whether the payee name in the financial bill information to be credited is the same as the group name of the group to which the user belongs; or verify whether the payee name in the financial bill information to be credited is the same as the user name in the group to which the user belongs.

[0120] Only one of the two verification conditions needs to be met in order to proceed to the next step of account entry.

[0121] Of course, some companies do not need to check whether the user does not belong to the group to which the user belongs. Therefore, at this time, the next step can be performed by verifying condition 1 only.

[0122] When the financial staff performs account entry management, the financial bills issued by the user group usually involve the situation of bill cancellation and the situation of red cancellation. In the existing situation, the user will first use the account entry system to query the invalid or red cancellation financial bills. If it is an invalid situation, the invalid financial bills in the account entry list will be deleted. If it is a red cancellation situation, the red cancellation financial bill will be added to the red cancellation financial bill. The new financial bill entered by the user is set with a blue voucher. The user performs multiple operations in the above process, and the process is relatively cumbersome. In this regard, the embodiment of the present invention also provides a simplified method:

[0123] In response to the user's cancellation instruction, if the target block record of the group to which the user belongs in the blockchain records that the entry status of the financial bill information to be canceled corresponding to the cancellation instruction is pending entry, then a new block is formed and added to the blockchain based on the cancellation information of the financial bill information to be canceled.

[0124] In detail, for cancellation, the user can input the financial bill information to be canceled in the input device of the electronic device that executes the method provided by the embodiment of the present invention, and click the cancellation button to start the cancellation process of the financial bill information to be canceled. The electronic device responds to the user's cancellation instruction. When the electronic device queries the blockchain and the corresponding account status of the financial bill information to be canceled is pending, the cancellation process is performed, which can be specifically the information of canceling the financial bill information to be canceled, forming a new block and adding it to the blockchain.

[0125] When the electronic device queries the blockchain and finds that the corresponding account status of the financial bill information to be invalidated is already accounted for, the invalidation process cannot be performed, the process ends, and the user is prompted that the financial bill information to be invalidated has been accounted for.

[0126] For red check: in response to the user's red check instruction, if the target block of the group to which the user belongs in the blockchain records that the accounting status of the financial bill information to be red checked corresponding to the red check instruction is pending accounting, then based on the red-letter voucher added to the financial bill information to be red checked, the new financial bill information corresponding to the red check instruction, and the blue-letter voucher corresponding to the new financial bill information and the red-letter voucher, a new block is formed and added to the blockchain.

[0127] Specifically, a user can input the financial bill information to be red-checked in the input device of the electronic device that executes the method provided by the embodiment of the present invention, and click the red-check button to start the red-check processing of the financial bill information to be red-checked. The electronic device responds to the red-check instruction of the user. When the electronic device queries the blockchain and the corresponding account entry status of the financial bill information to be red-checked is to be entered, the red-check processing is performed. Specifically, a red-letter voucher can be added to the financial bill information to be red-checked, and a blue-letter voucher corresponding to the red-letter voucher can be added to the input new financial bill information. According to the red-letter voucher and the blue-letter voucher, a new block is formed and added to the blockchain.

[0128] Among them, the process of adding a red-letter voucher to the information of the financial bill to be offset in red can be: use blue words to make a financial bill that is consistent with the information content of the financial bill to be offset in red, and indicate the offset of the financial bill to be offset in red, and the production is completed.

[0129] The process of adding the corresponding blue-letter voucher to the red-letter voucher for the input new financial bill information is: create the new financial bill information in red and record the information that offsets the red-letter voucher.

[0130] When recording the account in this block, the correct financial bill information can be determined based on the red-letter voucher and the blue-letter voucher, and the financial bill can be recorded.

[0131] When the electronic device queries the blockchain and finds that the corresponding account status of the financial bill information to be red-converted is already accounted for, the red-converting process cannot be performed, the process ends, and the user is prompted that the financial bill information to be red-converted has been accounted for.

[0132] For the above process, the embodiment of the present invention also provides a complete method for recording financial bills based on blockchain, combining Figure 4 As shown, including:

[0133] S400: Verify whether the ticket number in the financial ticket information to be recorded is legal through the financial electronic ticket server; if so, execute S401, otherwise execute S402;

[0134] S401: Determine whether there is any financial bill information to be recorded in the financial bill information recorded in the target block of the group to which the user belongs in the blockchain; if yes, execute S403; otherwise, execute S404;

[0135] S402: Displaying information that the financial bill to be recorded is illegal;

[0136] S403: According to the financial bill information to be recorded, and the information whose recording status is "to be recorded" corresponding to the financial bill information to be recorded, a new block is formed and added to the blockchain;

[0137] S404: Displaying information that the financial bill to be recorded is a duplicate recording;

[0138] S405: Responding to the user's deposit instruction, extracting the financial bill information with the deposit status of pending deposit recorded in the target block of the group to which the user belongs;

[0139] S406: for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs; if yes, execute S407; otherwise, execute S408;

[0140] S407: The financial bill information is processed for accounting, and according to the information that the accounting status corresponding to the financial bill information is already accounted for, a new block is formed and added to the blockchain;

[0141] S408: Displaying information that the financial bill to be recorded is not recordable.

[0142] Combination Figure 5 As shown, the embodiment of the present invention provides a financial bill entry device 500 based on blockchain, comprising:

[0143] The chain entry module 501 is used to form a new block and add it to the blockchain according to the financial bill information to be recorded and the information that the recording status corresponding to the financial bill information to be recorded is to be recorded, if there is no financial bill information to be recorded in the financial bill information to be recorded in the target block of the group to which the user belongs in the blockchain;

[0144] The accounting module 502 is used to respond to the user's accounting instruction, extract the financial bill information with the accounting status of the target block record of the user's group to be recorded as to be recorded, and for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the user's group; if so, the financial bill information is processed for accounting, and according to the information that the accounting status corresponding to the financial bill information is already recorded, a new block is formed and added to the blockchain.

[0145] Optionally, the device 500 further includes:

[0146] A first verification module, configured to determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and to determine a plurality of second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block;

[0147] comparing the first verification string with a plurality of second verification strings;

[0148] If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

[0149] Optionally, the device 500 further includes:

[0150] A second verification module is used to determine whether the financial bill information meets some or all of the following verification conditions;

[0151] Verification condition 1: The bill number in the financial bill information is legal;

[0152] Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs;

[0153] Verification condition three: the payee name in the financial note information is the same as the name of a member of the group to which the user belongs.

[0154] Optionally, the account entry module 502 is further used for:

[0155] If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

[0156] Optionally, the device 500 further includes:

[0157] A cancellation module, used to respond to a user's cancellation instruction, if the target block of the group to which the user belongs in the blockchain records that the entry status corresponding to the to-be-cancelled financial bill information corresponding to the cancellation instruction is to-be-cancelled, then a new block is formed and added to the blockchain according to the cancellation information of the to-be-cancelled financial bill information; and / or

[0158] The red-check module is used to respond to the red-check instruction of the user. If the target block record of the group to which the user belongs in the blockchain shows that the entry status of the financial bill information to be red-checked corresponding to the red-check instruction is pending entry, then a new block is formed and added to the blockchain based on the red-letter voucher added to the financial bill information to be red-checked, the new financial bill information corresponding to the red-letter voucher, and the blue-letter voucher corresponding to the new financial bill information and the red-letter voucher.

[0159] An embodiment of the present invention further provides an electronic device, comprising: a processor and a memory;

[0160] The memory is used to store program codes used when the electronic device is running;

[0161] The processor is used to execute the program code to implement the blockchain-based financial note entry method introduced above.

[0162] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory, and when the processor executes the program code in the memory, the embodiments of the present invention can be implemented. Figure 2 part or all of the process.

[0163] Optionally, the memory may mainly include a program storage area and a data storage area. The program storage area may store an operating system, various application programs (such as communication applications), and a face recognition module, etc.; the data storage area may store data created according to the use of the terminal (such as various multimedia files such as pictures and video files, and face information templates), etc.

[0164] In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device.

[0165] The processor is the control center of the electronic device. It connects various components using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory and calling data stored in the memory, thereby realizing various services based on the electronic device.

[0166] Optionally, the processor may include one or more processing units. Optionally, the processor may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor.

[0167] In addition to the above structure, the electronic device 300 also includes a communication interface; the electronic device 300 can be physically connected to other electronic devices through the communication interface. Optionally, the communication interface is connected to the communication interface of the other electronic device through a cable to achieve data transmission between the electronic device 300 and the other electronic device.

[0168] For example Figure 3 As shown, the electronic device 300 is connected to the fiscal electronic ticket server 301 via a communication interface, so that the legality of the fiscal bill can be verified through the fiscal electronic ticket server 301.

[0169] The electronic device 300 also includes a power source (such as a battery) for supplying power to various components in the electronic device 300. Optionally, the power source may be logically connected to the processor via a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0170] In actual application, the electronic device 300 is actually a server. The embodiment of the present invention also provides a front-end part. The user can call the front-end part by entering the URL on other electronic devices. The front-end part includes an account entry button, a cancel button, a redemption button, a financial bill information input window, a query, etc. to start the corresponding operation.

[0171] The device provided in the embodiment of the present invention also has an identity authentication module, which is used to authenticate the user who logs in through the front-end part.

[0172] For example, if the account used to log in by the user is authenticated as a group account, the page fed back by the device to the front end is a page corresponding to group operations. With this identity, the functional modules introduced by the device provided in the embodiment of the present invention can be implemented.

[0173] If the account used by the user to log in is authenticated as a personal account, the page that the device feeds back to the front end is the page corresponding to the personal operation. With this identity, the account entry status of personal tickets can be queried.

[0174] For example, user A is a member of group A, and user B is a member of group A. After user B logs in through the account of group A, he can process the financial bills provided by user A. For the specific processing process, please refer to the above-mentioned financial bills accounting method based on blockchain. After user A logs in through his own account, he can query the financial bills provided by user A, that is, query the results of user B's accounting.

[0175] Combination Figure 6 As shown, an embodiment of the present invention provides an accounting system, including: multiple clients, multiple blockchain servers (only blockchain server 21 and blockchain server 22 are used as examples in the figure), and a fiscal electronic ticket server 301.

[0176] The plurality of clients are clients 1 to 7 and clients 11 to 17. Clients 1 to 7 are individual clients, and clients 11 to 17 are group clients.

[0177] The client can be a computer, mobile phone, or iPad.

[0178] The blockchain server is used to execute the blockchain-based financial bill entry method provided in the embodiment of the present invention, process the protocol when the block is added to the chain, and broadcast the newly added block.

[0179] The fiscal electronic ticket server 301 is used to verify the legitimacy of the ticket. Only after the verification is passed can the fiscal ticket be added to the blockchain.

[0180] The client of the group can be the reimbursement party or the invoice issuing party. When acting as the reimbursement party, it can perform accounting operations and query the accounting status. When acting as the invoice issuing party, it can invalidate or red-check the financial bills that have been linked but not recorded.

[0181] Personal clients can check the account status of their reimbursement financial bills.

[0182] When querying the blockchain server, you can check whether the issuer or recipient of the bill in the block record is the name of the logged-in user. If so, the corresponding financial bill entry status will be displayed to the user.

[0183] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by a processor of the endoscope to complete the above data management method. Optionally, the storage medium can be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0184] An embodiment of the present invention further provides a computer program product. When the computer program product is run on an electronic device, the endoscope executes any one of the data management methods described above in the embodiments of the present invention.

[0185] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0186] The present application is described with reference to the flowcharts and / or block diagrams of the methods, electronic devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0187] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0188] These computer program instructions can also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable electronic device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0189] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for recording financial bills based on blockchain, characterized in that: include: If there is no financial bill information to be recorded in the target block of the group to which the user belongs in the blockchain, a new block is formed and added to the blockchain according to the financial bill information to be recorded and the information whose recording status corresponding to the financial bill information to be recorded is to be recorded; In response to the user's deposit instruction, extract the financial bill information with the deposit status of pending deposit recorded in the target block of the group to which the user belongs, and for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs; If yes, the financial bill information is recorded, and according to the information that the recording status corresponding to the financial bill information is recorded, a new block is formed and added to the blockchain; Determine that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain by the following methods, including: Determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and determine multiple second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block; comparing the first verification string with a plurality of second verification strings; If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

2. The method for entering financial bills into accounts based on blockchain according to claim 1, characterized in that: Before the financial bill information is entered into the account, the method further includes: Determine that the financial document information meets some or all of the following verification conditions; Verification condition 1: The bill number in the financial bill information is legal; Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs; Verification condition three: the payee name in the financial note information is the same as the name of a member of the group to which the user belongs.

3. The method for entering financial bills into accounts based on blockchain according to claim 1, characterized in that: After determining whether the bill type in the financial bill information is a reimbursable type recorded in the target block of the group to which the user belongs, the method further includes: If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

4. The method for entering financial bills based on blockchain according to any one of claims 1 to 3, characterized in that: The method further comprises: In response to the user's cancellation instruction, if the target block of the group to which the user belongs in the blockchain records that the entry status corresponding to the to-be-cancelled financial bill information corresponding to the cancellation instruction is to-be-cancelled, a new block is formed and added to the blockchain according to the cancellation information of the to-be-cancelled financial bill information; and / or In response to the user's red-check instruction, if the target block record of the group to which the user belongs in the blockchain records that the accounting status of the financial bill information to be red-checked corresponding to the red-check instruction is pending accounting, then based on the red-letter voucher added to the financial bill information to be red-checked and the blue-letter voucher corresponding to the new financial bill information corresponding to the red-letter instruction and the red-letter voucher, a new block is formed and added to the blockchain.

5. A financial bill entry device based on blockchain, characterized in that: include: The chain entry module is used to form a new block and add it to the blockchain if there is no financial bill information to be recorded in the financial bill information recorded in the target block of the group to which the user belongs in the blockchain, according to the financial bill information to be recorded and the information that the recording status corresponding to the financial bill information to be recorded is to be recorded; An accounting module is used to respond to the user's accounting instruction, extract the financial bill information of the target block record of the user's group with the accounting status of waiting to be accounted, and for each extracted financial bill information, determine whether the bill type in the financial bill information is a reimbursable type of the target block record of the user's group; if so, account the financial bill information, and according to the information that the accounting status corresponding to the financial bill information is already accounted, form a new block and add it to the blockchain; The device also includes: A first verification module, configured to determine a first verification string according to the ticket number in the financial ticket information to be recorded and the identifier of the group to which the user belongs, and to determine a plurality of second verification strings according to at least one ticket number recorded in each block in the blockchain and the identifier of the group recorded in the block; comparing the first verification string with a plurality of second verification strings; If the first verification string is different from the multiple second verification strings, it is determined that there is no financial bill information to be recorded in the financial bill information in the target block of the group to which the user belongs in the blockchain.

6. The financial bill entry device based on blockchain according to claim 5 is characterized in that: The device also includes: A second verification module is used to determine whether the financial bill information meets some or all of the following verification conditions; Verification condition 1: The bill number in the financial bill information is legal; Verification condition 2: the payee name in the financial bill information is the same as the group name of the group to which the user belongs; Verification condition three: the payee name in the financial note information is the same as the name of a member of the group to which the user belongs.

7. The financial bill entry device based on blockchain according to claim 5, characterized in that: The account entry module is also used for: If the bill type in the financial bill information is not a reimbursable type recorded in the target block of the group to which the user belongs, a new block is formed and added to the blockchain based on the information that the entry status corresponding to the financial bill information is failed entry.

8. The blockchain-based financial bill entry device according to any one of claims 5 to 7, characterized in that: The device also includes: A cancellation module, used to respond to a user's cancellation instruction, if the target block of the group to which the user belongs in the blockchain records that the entry status corresponding to the to-be-cancelled financial bill information corresponding to the cancellation instruction is to-be-cancelled, then a new block is formed and added to the blockchain according to the cancellation information of the to-be-cancelled financial bill information; and / or The red-check module is used to respond to the red-check instruction of the user. If the target block record of the group to which the user belongs in the blockchain shows that the entry status of the financial bill information to be red-checked corresponding to the red-check instruction is pending entry, then a new block is formed and added to the blockchain based on the red-letter voucher added to the financial bill information to be red-checked, the new financial bill information corresponding to the red-letter voucher, and the blue-letter voucher corresponding to the new financial bill information and the red-letter voucher.