Invoice authentication method and device

By automatically switching the authentication mode according to the issuance date of the invoice, the problem of inefficient invoice authentication caused by the instability of the tax bureau service platform and the mismatch of the invoice period is solved, and the efficiency and stability of the invoice authentication are achieved, especially when the next tax period belongs. A response mechanism is provided in the period's invoice certification.

CN114266607BActive Publication Date: 2024-10-25AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010972443.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2024-10-25
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

When the existing tax bureau service platform is unstable or the invoice period does not match, the efficiency of invoice authentication processing is reduced. Especially in the invoice authentication for the next tax period, there are problems with authentication failure or interruption.

Method used

According to the invoice issuance date, the authentication mode is automatically switched. If the invoice date belongs to the current tax period, the check authentication mode is used. If it belongs to the next tax period, the decryption authentication mode is used, and prompts and processing are provided when the mode is switched. Mechanism to ensure continuity and efficiency of invoice certification.

Benefits of technology

Improved the processing efficiency of invoice authentication, ensuring that the appropriate authentication mode is automatically selected without increasing the complexity of authentication, ensuring the success rate and stability of invoice authentication, especially providing solutions for invoice authentication in the next tax period Solution for unstable platforms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114266607B_ABST
    Figure CN114266607B_ABST
Patent Text Reader

Abstract

The present application discloses an invoice authentication method and device. After obtaining the invoice information of at least one invoice to be authenticated of a taxable object and the current tax period of the taxable object, the method performs invoice authentication on the invoice to be authenticated according to the configured current invoice authentication mode for each invoice to be authenticated if the invoice issuance date belongs to the current tax period; the current invoice authentication mode is a decryption authentication mode or a check authentication mode; if the invoice issuance date belongs to the next tax period, the decryption authentication mode is used to authenticate the invoice to be authenticated. The method supports two invoice authentication modes, and automatically selects the appropriate authentication mode for the taxable object without increasing the complexity of invoice authentication, thereby improving the processing efficiency of invoice authentication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to an invoice authentication method and device. Background Art

[0002] The country has fully implemented the "business tax to value-added tax" reform, and the industries involved have expanded to finance, insurance, construction, services and other industries. The number of value-added tax invoices issued has continued to rise, and invoice certification has become a task that is stressful for taxpayers and tax authorities. Taxpayers mainly complete the certification of value-added tax invoices through hall certification, online certification and tax bureau self-service tax terminal certification.

[0003] In fact, most companies prefer to choose online certification to complete the certification of value-added tax invoices, because in this way the company can complete the invoice certification without leaving home, and can independently choose the certification time and the number of certified invoices according to the company's situation. Therefore, this method is more convenient and practical, especially for medium and large enterprises with a large number of invoices.

[0004] At present, in order to facilitate enterprises to handle taxes online, the tax bureau provides a value-added tax invoice comprehensive service platform (or "tax bureau service platform") for invoice authentication. You only need to collect simple information such as the invoice code number and send it to the tax bureau service platform. The tax bureau service platform can then determine the invoices to be checked and authenticated, and check them for authentication. This method has a simple information collection process and a high accuracy rate.

[0005] However, if the tax bureau's service platform is unstable, or the invoice to be certified belongs to the next tax period, but the declaration work has not been completed in the current period, it will result in the inability to check and certify the invoice at the moment, reducing the processing efficiency of invoice certification. Summary of the invention

[0006] The embodiments of the present application provide an invoice authentication method and device, which solve the above-mentioned problems existing in the prior art and improve the processing efficiency of invoice authentication.

[0007] In a first aspect, a method for invoice authentication is provided, which may include:

[0008] Obtaining invoice information of at least one invoice to be authenticated of the taxpayer and the current tax period of the taxpayer; the invoice information includes the invoice date;

[0009] For each invoice to be authenticated, if the invoice issuance date belongs to the current tax period, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode; the current invoice authentication mode is a decryption authentication mode or a check authentication mode;

[0010] If the invoice date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated.

[0011] In an optional implementation, the method further includes:

[0012] If the invoice date belongs to the current tax period and the current invoice authentication mode is not configured, the selected authentication mode is determined as the current invoice authentication mode;

[0013] The invoice to be authenticated is authenticated using the check authentication mode.

[0014] In an optional implementation, the method further includes:

[0015] If an abnormality is detected in the selected authentication mode, a prompt message is outputted indicating whether the decryption authentication mode is determined as the current invoice authentication mode;

[0016] According to the received instruction to determine the decryption authentication mode as the current invoice authentication mode, the decryption authentication mode is adopted to perform invoice authentication on the invoice to be authenticated.

[0017] In an optional implementation, the method further includes:

[0018] Outputting prompt information for executing invoice authentication for the next tax period;

[0019] According to the decryption authentication mode, the invoice to be authenticated is authenticated, including:

[0020] According to the received invoice authentication instruction for executing the next tax period, the invoice to be authenticated is authenticated in a decryption authentication mode.

[0021] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount, a ciphertext on the face of the invoice, a purchaser's tax number, a seller's tax number and a tax amount;

[0022] The decryption authentication mode is adopted to authenticate the invoice to be authenticated, including:

[0023] Encrypting the invoice information to generate ciphertext information;

[0024] Sending a decryption authentication request to the unified acceptance platform of the tax bureau, wherein the decryption authentication request includes the ciphertext information;

[0025] Receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, wherein the decryption authentication response includes an invoice authentication result;

[0026] If the authentication result is authentication failure, an instruction is given to modify the invoice information, and the modified invoice information is determined as the new invoice information, and the process returns to execute: encrypting the invoice information to generate ciphertext information.

[0027] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount and a purchaser's tax number;

[0028] The invoice to be authenticated is authenticated by adopting the check authentication mode, including:

[0029] Matching the invoice information with the invoice information in the invoice database for the current tax period;

[0030] If the match is successful, it is determined that the invoice to be authenticated is authenticated successfully;

[0031] If the matching fails, an instruction is given to modify the invoice information, the modified invoice information is determined as the new invoice information, and the execution is returned to the step of matching the invoice information with the invoice information in the invoice database of the current tax period.

[0032] In an optional implementation, after performing invoice authentication on the invoice to be authenticated, the method further includes:

[0033] Output invoice authentication information, the invoice authentication information including the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the current tax period, and the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the next tax period.

[0034] In a second aspect, an invoice authentication device is provided, which may include: an acquisition unit and an invoice authentication unit;

[0035] The acquisition unit is used to acquire invoice information of at least one invoice to be authenticated of the tax payer and the current tax period of the tax payer; the invoice information includes the invoice issuance date;

[0036] The invoice authentication unit is used to authenticate each invoice to be authenticated according to the configured current invoice authentication mode if the invoice issuance date belongs to the current tax period; the current invoice authentication mode is a decryption authentication mode or a check authentication mode;

[0037] And, if the invoice issuance date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated.

[0038] In an optional implementation, the apparatus further includes: a determining unit;

[0039] The determining unit is configured to determine the selected authentication mode as the current invoice authentication mode if the invoice date belongs to the current tax period and the current invoice authentication mode is not configured;

[0040] The invoice authentication unit is further used to adopt the check authentication mode to perform invoice authentication on the invoice to be authenticated.

[0041] In an optional implementation, the device further includes: a first output unit;

[0042] The first output unit is used to output prompt information on whether to determine the decryption authentication mode as the current invoice authentication mode if an abnormality is detected in the selected authentication mode;

[0043] The invoice authentication unit is further configured to perform invoice authentication on the invoice to be authenticated by using the decryption authentication mode according to the received instruction to determine the decryption authentication mode as the current invoice authentication mode.

[0044] In an optional implementation, the device further includes: a second output unit;

[0045] The second output unit is used to output prompt information for executing invoice authentication for the next tax period;

[0046] The invoice authentication unit is further used to perform invoice authentication on the invoice to be authenticated in a decryption authentication mode according to the received invoice authentication instruction for executing the next tax period.

[0047] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount, a ciphertext on the face of the invoice, a purchaser's tax number, a seller's tax number and a tax amount;

[0048] The invoice authentication unit is specifically used to perform the following steps:

[0049] Encrypting the invoice information to generate ciphertext information;

[0050] Sending a decryption authentication request to the unified acceptance platform of the tax bureau, wherein the decryption authentication request includes the ciphertext information;

[0051] Receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, wherein the decryption authentication response includes an invoice authentication result;

[0052] If the authentication result is authentication failure, an instruction is given to modify the invoice information, and the modified invoice information is determined as the new invoice information, and the process returns to execute: encrypting the invoice information to generate ciphertext information.

[0053] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount and a purchaser's tax number;

[0054] The invoice authentication unit is further specifically used to perform the following steps:

[0055] Matching the invoice information with the invoice information in the invoice database for the current tax period;

[0056] If the match is successful, it is determined that the invoice to be authenticated is authenticated successfully;

[0057] If the matching fails, an instruction is given to modify the invoice information, the modified invoice information is determined as the new invoice information, and the execution is returned to the step of matching the invoice information with the invoice information in the invoice database of the current tax period.

[0058] In an optional implementation, the device further includes: a third output unit;

[0059] The third output unit is used to output invoice authentication information, which includes a summary of the authenticated invoice amounts, a link to the authenticated invoice details, and a link to the invoice details of failed authentication in the current tax period, and a summary of the authenticated invoice amounts, a link to the authenticated invoice details, and a link to the invoice details of failed authentication in the next tax period.

[0060] In a third aspect, an electronic device is provided, the electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0061] Memory, used to store computer programs;

[0062] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0063] In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0064] The invoice authentication method provided by the embodiment of the present invention obtains the invoice information of at least one invoice to be authenticated of the taxpayer and the current tax period of the taxpayer. For each invoice to be authenticated, if the invoice date belongs to the current tax period, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode; the current invoice authentication mode is the decryption authentication mode or the check authentication mode; if the invoice date belongs to the next tax period, the decryption authentication mode is used to authenticate the invoice to be authenticated. The method supports two invoice authentication modes, and automatically selects the appropriate authentication mode for the taxpayer without increasing the complexity of invoice authentication, thereby improving the processing efficiency of invoice authentication. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A flowchart of an invoice authentication method provided by an embodiment of the present invention;

[0066] Figure 2 A schematic diagram of the structure of an invoice authentication device provided by an embodiment of the present invention;

[0067] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0068] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0069] The invoice authentication method of the present application is applied in an invoice authentication system, which includes a unified acceptance platform for terminals and tax bureaus and an invoice library for storing invoice information. The invoice information may include invoice code, invoice number, invoice date and invoice amount.

[0070] Figure 1 The following is a flow chart of an invoice authentication method provided by an embodiment of the present invention. Figure 1 As shown, the method may include:

[0071] Step 110: Obtain invoice information of at least one invoice to be authenticated of the taxpayer and the current tax period of the taxpayer.

[0072] Call a scanner to scan at least one invoice to be authenticated, obtain the invoice image of the corresponding invoice to be authenticated, and recognize the acquired invoice image based on the optical character recognition (OCR) recognition technology to obtain the face ciphertext of at least one invoice to be authenticated, such as a QR code or ciphertext numbers, and invoice element information: invoice code, invoice date, invoice number, purchaser tax number, seller tax number and tax amount, etc.

[0073] Among them, the tax period refers to the time when the taxable object, such as an individual or enterprise, obtains taxable income and incurs tax obligations.

[0074] Step 120: Perform invoice authentication on at least one invoice to be authenticated according to whether the invoice issuance date of at least one invoice to be authenticated belongs to the current tax period.

[0075] For each invoice to be certified, if the invoice date belongs to the current tax period, the invoice to be certified will be certified according to the configured current invoice certification mode.

[0076] Among them, the current invoice authentication mode is the decryption authentication service of the tax bureau system, that is, the decryption authentication mode or the check authentication service of the VAT invoice comprehensive service platform, that is, the check authentication mode;

[0077] If the invoice date belongs to the next tax period, the decryption authentication mode is used to authenticate the invoice to be authenticated.

[0078] Specifically, if the invoice date belongs to the next tax period, a prompt message for executing invoice authentication for the next tax period is output, so that the taxpayer can determine whether to continue to authenticate the invoice to be authenticated that belongs to the next tax period;

[0079] Since the decryption authentication mode does not require prior invoice declaration for authentication, in order to improve the efficiency of tax processing, when the taxpayer enters the invoice authentication instruction for the next tax period, that is, the taxpayer still chooses the authentication operation, the decryption authentication mode is used to authenticate the invoice to be authenticated according to the received invoice authentication instruction.

[0080] It should be noted that the current invoice authentication mode may be a preferred invoice authentication mode set by the taxpayer according to usage habits. That is to say, if the current invoice authentication mode is set in advance, the invoice to be authenticated will be authenticated according to the current invoice authentication mode.

[0081] If the invoice date belongs to the current tax period and the current invoice authentication mode is not configured, the checked authentication mode will be determined as the current invoice authentication mode, and the checked authentication mode will be used to perform invoice authentication on the invoice to be authenticated.

[0082] In a possible embodiment, if the current invoice authentication mode is a check authentication mode, and an abnormality is detected in the check authentication mode, such as an abnormality in the processor executing the check authentication mode, a prompt message is output as to whether the decryption authentication mode is determined as the current invoice authentication mode; based on the received instruction to determine the decryption authentication mode as the current invoice authentication mode, the decryption authentication mode is adopted to perform invoice authentication on the invoice to be authenticated.

[0083] If the current invoice authentication mode is the decryption authentication mode, and an abnormality is detected in the decryption authentication mode, such as an abnormality in the processor executing the decryption authentication mode, a prompt message is output as to whether to determine the checked authentication mode as the current invoice authentication mode, and based on the received instruction to determine the checked authentication mode as the current invoice authentication mode, the checked authentication mode is used to perform invoice authentication on the invoice to be authenticated.

[0084] That is to say, when one of the invoice authentication services is unstable, you can switch to another invoice authentication service to avoid the termination of invoice authentication and improve the processing efficiency of invoice authentication.

[0085] Optionally, the decryption authentication mode is adopted to perform invoice authentication on the invoice to be authenticated, which may include the following steps:

[0086] Encrypt the invoice information including invoice code, invoice number, invoice amount, invoice ciphertext, purchaser tax number, seller tax number and tax amount to generate ciphertext information;

[0087] Send a decryption authentication request to the tax bureau's unified acceptance platform, which includes ciphertext information;

[0088] Receive the decryption authentication response sent by the unified acceptance platform of the tax bureau, which includes the invoice authentication result;

[0089] If the authentication result is authentication failure, manual verification is instructed and the invoice information is modified; the modified invoice information is determined as the new invoice information, and the steps of encrypting the invoice information and generating ciphertext information are re-executed, so as to re-authenticate the invoice to be authenticated.

[0090] Optionally, the invoice to be authenticated is authenticated in the selected authentication mode, which may include the following steps:

[0091] Match the invoice information of the invoice code, invoice number, invoice amount and purchaser's tax number with the invoice information in the invoice database of the current tax period;

[0092] If the match is successful, it is determined that the invoice to be authenticated is authenticated successfully;

[0093] If the match fails, you will be instructed to manually modify the invoice information, and then rematch it. After matching the unique invoice information, check the authentication, as follows:

[0094] The modified invoice information is determined as the new invoice information, and the step of matching the invoice information with the invoice information in the invoice database of the current tax period is re-executed, so as to re-certify the invoice to be certified.

[0095] If the modified invoice information still cannot be successfully matched, a prompt message indicating that there is a problem with the certified invoice will be output.

[0096] Furthermore, after the invoice to be certified is certified, invoice certification information can be output, which may include a summary of the certified invoice amounts, a link to the certified invoice details, and a link to the invoice details of invoices that failed certification in the current tax period, as well as a summary of the certified invoice amounts, a link to the certified invoice details, and a link to the invoice details of invoices that failed certification in the next tax period.

[0097] The invoice authentication information can summarize and display all the invoice information of the current authentication, which is convenient for taxpayers to perform summary statistics and can also find out the invoices with authentication abnormalities in time.

[0098] The invoice authentication method provided by the embodiment of the present invention obtains the invoice information of at least one invoice to be authenticated of the tax payer and the current tax payment period of the tax payer. For each invoice to be authenticated, if the invoice date belongs to the current tax payment period, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode; the current invoice authentication mode is the decryption authentication mode or the check authentication mode; if the invoice date belongs to the next tax payment period, the decryption authentication mode is used to authenticate the invoice to be authenticated. The method supports two invoice authentication modes, and automatically selects the appropriate authentication mode for the tax payer without increasing the complexity of invoice authentication, thereby improving the processing efficiency of invoice authentication.

[0099] Corresponding to the above method, the embodiment of the present invention also provides an invoice authentication device, such as Figure 2 As shown, the invoice authentication device includes: an acquisition unit 210 and an invoice authentication unit 220;

[0100] The acquisition unit 210 is used to acquire invoice information of at least one invoice to be authenticated of the tax payer and the current tax period of the tax payer; the invoice information includes the invoice issuance date;

[0101] The invoice authentication unit 220 is used to authenticate the invoice to be authenticated according to the configured current invoice authentication mode for each invoice to be authenticated if the invoice issuance date belongs to the current tax period; the current invoice authentication mode is a decryption authentication mode or a check authentication mode;

[0102] And, if the invoice issuance date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated.

[0103] In an optional implementation, the apparatus further includes: a determining unit 230;

[0104] A determination unit 230, configured to determine the selected authentication mode as the current invoice authentication mode if the invoice date belongs to the current tax period and the current invoice authentication mode is not configured;

[0105] The invoice authentication unit 220 is further configured to perform invoice authentication on the invoice to be authenticated by adopting the check authentication mode.

[0106] In an optional implementation, the apparatus further includes: a first output unit 240;

[0107] The first output unit 240 is used to output a prompt message of whether to determine the decryption authentication mode as the current invoice authentication mode if an abnormality is detected in the selected authentication mode;

[0108] The invoice authentication unit 220 is further configured to perform invoice authentication on the invoice to be authenticated by using the decryption authentication mode according to the received instruction to determine the decryption authentication mode as the current invoice authentication mode.

[0109] In an optional implementation, the apparatus further includes: a second output unit 250;

[0110] The second output unit 250 is used to output prompt information for executing the invoice authentication of the next tax period;

[0111] The invoice authentication unit 220 is further configured to perform invoice authentication on the invoice to be authenticated in a decryption authentication mode according to the received invoice authentication instruction for executing the next tax period.

[0112] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount, a ciphertext on the face of the invoice, a purchaser's tax number, a seller's tax number and a tax amount;

[0113] The invoice authentication unit 220 is specifically configured to perform the following steps:

[0114] Encrypting the invoice information to generate ciphertext information;

[0115] Sending a decryption authentication request to the unified acceptance platform of the tax bureau, wherein the decryption authentication request includes the ciphertext information;

[0116] Receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, wherein the decryption authentication response includes an invoice authentication result;

[0117] If the authentication result is authentication failure, an instruction is given to modify the invoice information, and the modified invoice information is determined as the new invoice information, and the process returns to execute: encrypting the invoice information to generate ciphertext information.

[0118] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount and a purchaser's tax number;

[0119] The invoice authentication unit 220 is further specifically configured to perform the following steps:

[0120] Matching the invoice information with the invoice information in the invoice database for the current tax period;

[0121] If the match is successful, it is determined that the invoice to be authenticated is authenticated successfully;

[0122] If the matching fails, an instruction is given to modify the invoice information, the modified invoice information is determined as the new invoice information, and the execution is returned to the step of matching the invoice information with the invoice information in the invoice database of the current tax period.

[0123] In an optional implementation, the apparatus further includes: a third output unit 260;

[0124] The third output unit 260 is used to output invoice authentication information, which includes a summary of the authenticated invoice amounts, links to the authenticated invoice details and links to the invoice details of invoices that failed authentication in the current tax period, and a summary of the authenticated invoice amounts, links to the authenticated invoice details and links to the invoice details of invoices that failed authentication in the next tax period.

[0125] The functions of the various functional units of the invoice authentication device provided in the above embodiment of the present invention can be realized through the above method steps. Therefore, the specific working process and beneficial effects of each unit in the invoice authentication device provided in the embodiment of the present invention are not repeated here.

[0126] The embodiment of the present invention further provides an electronic device, such as Figure 3 As shown, it includes a processor 310 , a communication interface 320 , a memory 330 and a communication bus 340 , wherein the processor 310 , the communication interface 320 , and the memory 330 communicate with each other via the communication bus 340 .

[0127] Memory 330, for storing computer programs;

[0128] The processor 310 is used to execute the program stored in the memory 330 to implement the following steps:

[0129] Obtaining invoice information of at least one invoice to be authenticated of the taxpayer and the current tax period of the taxpayer; the invoice information includes the invoice date;

[0130] For each invoice to be authenticated, if the invoice issuance date belongs to the current tax period, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode; the current invoice authentication mode is a decryption authentication mode or a check authentication mode;

[0131] If the invoice date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated.

[0132] In an optional implementation, the method further includes:

[0133] If the invoice date belongs to the current tax period and the current invoice authentication mode is not configured, the selected authentication mode is determined as the current invoice authentication mode;

[0134] The invoice to be authenticated is authenticated using the check authentication mode.

[0135] In an optional implementation, the method further includes:

[0136] If an abnormality is detected in the selected authentication mode, a prompt message is outputted indicating whether the decryption authentication mode is determined as the current invoice authentication mode;

[0137] According to the received instruction to determine the decryption authentication mode as the current invoice authentication mode, the decryption authentication mode is adopted to perform invoice authentication on the invoice to be authenticated.

[0138] In an optional implementation, the method further includes:

[0139] Outputting prompt information for executing invoice authentication for the next tax period;

[0140] According to the decryption authentication mode, the invoice to be authenticated is authenticated, including:

[0141] According to the received invoice authentication instruction for executing the next tax period, the invoice to be authenticated is authenticated in a decryption authentication mode.

[0142] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount, a ciphertext on the face of the invoice, a purchaser's tax number, a seller's tax number and a tax amount;

[0143] The decryption authentication mode is adopted to authenticate the invoice to be authenticated, including:

[0144] Encrypting the invoice information to generate ciphertext information;

[0145] Sending a decryption authentication request to the unified acceptance platform of the tax bureau, wherein the decryption authentication request includes the ciphertext information;

[0146] Receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, wherein the decryption authentication response includes an invoice authentication result;

[0147] If the authentication result is authentication failure, an instruction is given to modify the invoice information, and the modified invoice information is determined as the new invoice information, and the process returns to execute: encrypting the invoice information to generate ciphertext information.

[0148] In an optional implementation, the invoice information also includes an invoice code, an invoice number, an invoice amount and a purchaser's tax number;

[0149] The invoice to be authenticated is authenticated by adopting the check authentication mode, including:

[0150] Matching the invoice information with the invoice information in the invoice database for the current tax period;

[0151] If the match is successful, it is determined that the invoice to be authenticated is authenticated successfully;

[0152] If the matching fails, an instruction is given to modify the invoice information, the modified invoice information is determined as the new invoice information, and the execution is returned to the step of matching the invoice information with the invoice information in the invoice database of the current tax period.

[0153] In an optional implementation, after performing invoice authentication on the invoice to be authenticated, the method further includes:

[0154] Output invoice authentication information, the invoice authentication information including the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the current tax period, and the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the next tax period.

[0155] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0156] The communication interface is used for communication between the above electronic device and other devices.

[0157] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0158] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0159] The implementation methods and beneficial effects of the components of the electronic device in the above embodiments to solve the problems can be seen in Figure 1 The various steps in the illustrated embodiment are implemented, therefore, the specific working process and beneficial effects of the electronic device provided by the embodiment of the present invention are not repeated here.

[0160] In another embodiment provided by the present invention, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the invoice authentication method described in any of the above embodiments.

[0161] In another embodiment provided by the present invention, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the invoice authentication method described in any one of the above embodiments.

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

[0163] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of 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 device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0164] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising 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.

[0165] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing 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.

[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present application.

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

Claims

1. An invoice authentication method, characterized in that: The method comprises: Obtaining invoice information of at least one invoice to be authenticated of the taxpayer and the current tax period of the taxpayer; the invoice information includes the invoice date; For each invoice to be authenticated, if the invoice issuance date belongs to the current tax period, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode; the current invoice authentication mode is a decryption authentication mode or a check authentication mode; If the invoice date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated; Wherein, when the current invoice authentication mode is the decryption authentication mode, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode, including: encrypting the invoice information to generate ciphertext information; sending a decryption authentication request to the unified acceptance platform of the tax bureau, the decryption authentication request including the ciphertext information; receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, the decryption authentication response including the invoice authentication result; if the authentication result is an authentication failure, instructing to modify the invoice information, determining the modified invoice information as the new invoice information, and returning to execute: encrypting the invoice information to generate ciphertext information; When the current invoice authentication mode is the checked authentication mode, invoice authentication is performed on the invoice to be authenticated according to the configured current invoice authentication mode, including: matching the invoice information with the invoice information in the invoice library of the current tax period; if the match is successful, determining that the authentication of the invoice to be authenticated is successful; if the match fails, instructing to modify the invoice information, determining the modified invoice information as the new invoice information, and returning to execute: the step of matching the invoice information with the invoice information in the invoice library of the current tax period.

2. The method according to claim 1, characterized in that The method further comprises: If the invoice date belongs to the current tax period and the current invoice authentication mode is not configured, the selected authentication mode is determined as the current invoice authentication mode; The invoice to be authenticated is authenticated by adopting the check authentication mode.

3. The method according to claim 2, characterized in that The method further comprises: If an abnormality is detected in the selected authentication mode, a prompt message is outputted indicating whether the decryption authentication mode is determined as the current invoice authentication mode; According to the received instruction to determine the decryption authentication mode as the current invoice authentication mode, the decryption authentication mode is adopted to perform invoice authentication on the invoice to be authenticated.

4. The method according to claim 1, characterized in that Using the decryption authentication mode, before performing invoice authentication on the invoice to be authenticated, the method further includes: Outputting prompt information for executing invoice authentication for the next tax period; According to the decryption authentication mode, the invoice to be authenticated is authenticated, including: According to the received invoice authentication instruction for executing the next tax period, the invoice to be authenticated is authenticated in a decryption authentication mode.

5. The method according to claim 1, characterized in that The invoice information also includes the invoice code, invoice number, invoice amount, invoice ciphertext, buyer's tax number, seller's tax number and tax amount.

6. The method according to claim 2, characterized in that The invoice information also includes the invoice code, invoice number, invoice amount and purchaser's tax number.

7. The method according to claim 1, characterized in that After performing invoice authentication on the invoice to be authenticated, the method further includes: Output invoice authentication information, the invoice authentication information including the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the current tax period, and the summary of the authenticated invoice amounts, the authenticated invoice detail links and the invoice detail links of failed authentication in the next tax period.

8. An invoice authentication device, characterized in that: The device comprises: an acquisition unit and an invoice authentication unit; The acquisition unit is used to acquire invoice information of at least one invoice to be authenticated of the tax payer and the current tax period of the tax payer; the invoice information includes the invoice issuance date; The invoice authentication unit is used to authenticate each invoice to be authenticated according to the configured current invoice authentication mode if the invoice issuance date belongs to the current tax period; the current invoice authentication mode is a decryption authentication mode or a check authentication mode; And, if the invoice issuance date belongs to the next tax period, the decryption authentication mode is adopted to authenticate the invoice to be authenticated; Wherein, when the current invoice authentication mode is the decryption authentication mode, the invoice to be authenticated is authenticated according to the configured current invoice authentication mode, including: encrypting the invoice information to generate ciphertext information; sending a decryption authentication request to the unified acceptance platform of the tax bureau, the decryption authentication request including the ciphertext information; receiving a decryption authentication response sent by the unified acceptance platform of the tax bureau, the decryption authentication response including the invoice authentication result; if the authentication result is an authentication failure, instructing to modify the invoice information, determining the modified invoice information as the new invoice information, and returning to execute: encrypting the invoice information to generate ciphertext information; When the current invoice authentication mode is the checked authentication mode, invoice authentication is performed on the invoice to be authenticated according to the configured current invoice authentication mode, including: matching the invoice information with the invoice information in the invoice library of the current tax period; if the match is successful, determining that the authentication of the invoice to be authenticated is successful; if the match fails, instructing to modify the invoice information, determining the modified invoice information as the new invoice information, and returning to execute: the step of matching the invoice information with the invoice information in the invoice library of the current tax period.

9. An electronic device, characterized in that: The electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 7 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.