Invoicing method, device, storage medium and electronic device

By generating an enterprise business card database and obtaining candidate enterprise business card information based on the preset purchaser's identification of the preset number of characters, the problem of incomplete enterprise data in the invoice scenario is solved, and the invoice efficiency and user experience are improved.

CN112613932BActive Publication Date: 2025-01-14AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011562462.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2025-01-14
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

In the invoice issuance scenario, information such as the company name, bank account, taxpayer identification number, address, etc. is easy to change and the information is too long and difficult to remember, resulting in invoice information errors or slow invoice issuance, affecting the user experience, and the amount of enterprise data of the existing invoice software Limited, outdated and incomplete, affects the invoice efficiency.

Method used

By generating an enterprise business card database, including enterprise business card information of multiple enterprises, the server receives the invoice request message sent by the terminal, obtains the candidate enterprise business card information from the database based on the preset purchaser identification of the preset number of characters, and sends it to the terminal , users only need to enter part of the information to obtain all the business card information and update the database to ensure the accuracy of the information.

Benefits of technology

It solves the problem of incomplete data inquiry of the buyer when corporate invoice issuing, improves invoice efficiency and user experience, and reduces the time for invoice queuing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112613932B_ABST
    Figure CN112613932B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an invoicing method, device, storage medium and electronic device. A server can receive an invoicing request message sent by a terminal, wherein the invoicing request message includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; a preset number of candidate corporate business card information is obtained from a pre-generated corporate business card database according to the preset purchaser identifier with the preset number of characters, and the corporate business card database includes corporate business card information of multiple companies; the preset number of candidate corporate business card information is sent to the terminal, so that the terminal determines target corporate business card information from the preset number of candidate corporate business card information, and issues an invoice according to the target corporate business card information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of invoicing, and in particular, to an invoicing method, device, storage medium and electronic device. Background Art

[0002] In actual invoicing scenarios, the company name, bank account number, taxpayer identification number, address, telephone number and other information involved in the invoice is easy to change, and the information is too long to be remembered or easy to remember incorrectly, resulting in incorrect invoicing information or slow invoicing, which affects the user experience.

[0003] In order to improve the efficiency of invoicing, the relevant technology changes the original process of the seller filling in the header information to the buyer scanning the same QR code and filling in the header information, and then the seller continues to complete the subsequent invoicing operations through the invoicing software. However, when most invoicing software is used for invoicing, the amount of enterprise data that can be recommended is limited, the data is outdated, and the header information is incomplete or inaccurate, which still affects the efficiency of invoicing. Summary of the invention

[0004] The purpose of the present disclosure is to provide a method, device, storage medium and electronic device for issuing invoices.

[0005] In a first aspect, an invoicing method is provided, which is applied to a server, and the method comprises: receiving an invoicing request message sent by a terminal, the invoicing request message comprising a preset purchaser identifier of a preset number of characters, wherein the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; obtaining a preset number of candidate corporate business card information from a pre-generated corporate business card database according to the preset purchaser identifier of the preset number of characters, wherein the corporate business card database comprises corporate business card information of multiple companies; sending the preset number of candidate corporate business card information to the terminal, so that the terminal determines target corporate business card information from the preset number of candidate corporate business card information, and issues an invoice according to the target corporate business card information.

[0006] Optionally, obtaining a preset number of candidate corporate business card information from a pre-generated corporate business card database based on a preset purchaser identifier with a preset number of characters includes: if the preset purchaser identifier is the purchaser's taxpayer identification number, determining a preset number of the candidate corporate business card information according to a preset right-matching fuzzy matching algorithm; if the preset purchaser identifier is the purchaser's name, determining a preset number of the candidate corporate business card information according to a preset left-right matching fuzzy matching algorithm.

[0007] Optionally, the method further includes: pre-generating the enterprise business card database in the following manner:

[0008] For each of the multiple information collection invoices, the information of the selling company and the purchasing company are collected from the information collection invoice respectively; multiple first invoice sets are determined according to the selling company information corresponding to each information collection invoice, and different selling companies correspond to different first invoice sets; the target purchasing company is determined according to the purchasing company information corresponding to each information collection invoice, and the target purchasing company includes other companies among the purchasing companies except the selling company; the corporate business card database is generated according to the multiple first invoice sets and the second invoice sets corresponding to the target purchasing companies, and different target purchasing companies correspond to different second invoice sets.

[0009] Optionally, the generating of the corporate business card database according to the plurality of the first invoice sets and the second invoice set corresponding to the target purchasing enterprise comprises: for each first invoice set in the plurality of the first invoice sets, determining whether the selling enterprise information on each invoice in the first invoice set is consistent; if it is determined that the selling enterprise information on each invoice in the first invoice set is consistent, using the selling enterprise information corresponding to the first invoice set as the corporate business card information of the selling enterprise corresponding to the first invoice set; if it is determined that there is inconsistency in the selling enterprise information on the invoices in the first invoice set, using the selling enterprise information on the first target invoice in the first invoice set as the corporate business card information of the selling enterprise corresponding to the first invoice set; The first target invoice is the invoice with the highest frequency of use in the first invoice set; for each second invoice set in the plurality of second invoice sets, determine whether the purchaser company information on each invoice in the second invoice set is consistent; if it is determined that the purchaser company information on each invoice in the second invoice set is consistent, use the purchaser company information corresponding to the second invoice set as the corporate business card information of the purchaser company corresponding to the second invoice set; if it is determined that there is inconsistency in the purchaser company information on the invoices in the second invoice set, use the purchaser company information on the second target invoice in the second invoice set as the corporate business card information of the purchaser company corresponding to the second invoice set; the second target invoice is the invoice with the highest frequency of use in the second invoice set.

[0010] Optionally, the method also includes: when the invoices in the first invoice set have the same usage frequency, the selling company information on the invoice corresponding to the latest invoice date in the first invoice set is used as the corporate business card information of the selling company corresponding to the first invoice set; when the invoices in the second invoice set have the same usage frequency, the purchasing company information on the invoice corresponding to the latest invoice date in the second invoice set is used as the corporate business card information of the purchasing company corresponding to the second invoice set.

[0011] Optionally, before generating the corporate business card database based on the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise, the method further includes: obtaining the invoicing region corresponding to each of the information collection invoices; generating the corporate business card database based on the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise includes: generating the corporate business card database based on the invoicing region, the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise.

[0012] Optionally, after sending a preset number of candidate corporate business card information to the terminal, the method further includes: receiving the latest invoice sent by the terminal; and when it is determined that the seller's company information in the latest invoice is inconsistent with the corresponding corporate business card information in the corporate business card database, updating the corporate business card database according to the seller's company information in the latest invoice.

[0013] In a second aspect, an invoicing method is provided, which is applied to a terminal, and the method includes: obtaining an invoicing request message input by a user, the invoicing request message including a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; sending the invoicing request message to a server; receiving a preset number of candidate corporate business card information sent by the server, the candidate corporate business card information is information queried by the server from a pre-generated corporate business card database based on part of the information of the preset purchaser identifier, and the corporate business card database includes corporate business card information of multiple companies; determining target corporate business card information from the preset number of candidate corporate business card information based on a trigger operation of the user, and issuing an invoice based on the target corporate business card information.

[0014] Optionally, after issuing an invoice based on the target enterprise's business card information, the method further includes: sending the latest issued invoice to the server, so that when the server determines that the seller's enterprise information in the latest issued invoice is inconsistent with the corresponding business card information in the business card database, the server updates the business card database based on the seller's enterprise information in the latest issued invoice.

[0015] According to a third aspect, an invoicing device is provided, which is applied to a server, and the device includes: a first receiving module, which is used to receive an invoicing request message sent by a terminal, and the invoicing request message includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; a first acquiring module, which is used to acquire a preset number of candidate corporate business card information from a pre-generated corporate business card database according to the preset purchaser identifier with the preset number of characters, and the corporate business card database includes corporate business card information of multiple companies; a first sending module, which is used to send a preset number of candidate corporate business card information to the terminal, so that the terminal determines the target corporate business card information from the preset number of candidate corporate business card information, and issues an invoice according to the target corporate business card information.

[0016] Optionally, the first acquisition module is used to determine a preset number of the candidate corporate business card information according to a preset right-matching fuzzy matching algorithm if the preset purchaser identifier is the purchaser's taxpayer identification number; and to determine a preset number of the candidate corporate business card information according to a preset left-right matching fuzzy matching algorithm if the preset purchaser identifier is the purchaser's name.

[0017] Optionally, the device also includes: a corporate business card generation module, which is used to pre-generate the corporate business card database in the following manner: for each information collection invoice among multiple information collection invoices, respectively collect the selling company information and the purchasing company information from the information collection invoice; determine multiple first invoice sets based on the selling company information corresponding to each information collection invoice, and different selling companies correspond to different first invoice sets; determine the target purchasing company based on the purchasing company information corresponding to each information collection invoice, and the target purchasing company includes other companies among the purchasing companies except the selling company; generate the corporate business card database based on multiple first invoice sets and the second invoice sets corresponding to the target purchasing companies, and different target purchasing companies correspond to different second invoice sets.

[0018] Optionally, the business card generation module is used to determine, for each first invoice set in the plurality of first invoice sets, whether the seller enterprise information on each invoice in the first invoice set is consistent; if it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, use the seller enterprise information corresponding to the first invoice set as the business card information of the seller enterprise corresponding to the first invoice set; if it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, use the seller enterprise information on the first target invoice in the first invoice set as the business card information of the seller enterprise corresponding to the first invoice set; the first target invoice is the seller enterprise information on the first invoice set in the first invoice set. the invoice with the highest frequency of use; for each second invoice set in the plurality of second invoice sets, determining whether the purchasing company information on each invoice in the second invoice set is consistent; if it is determined that the purchasing company information on each invoice in the second invoice set is consistent, using the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; if it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, using the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; the second target invoice is the invoice with the highest frequency of use in the second invoice set.

[0019] Optionally, the corporate business card generation module is used to, when the invoices in the first invoice set have the same usage frequency, use the selling company information on the invoice corresponding to the latest invoice date in the first invoice set as the corporate business card information of the selling company corresponding to the first invoice set; and when the invoices in the second invoice set have the same usage frequency, use the purchasing company information on the invoice corresponding to the latest invoice date in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set.

[0020] Optionally, the corporate business card generation module is used to obtain the invoicing region corresponding to each of the information collection invoices; and generate the corporate business card database according to the invoicing region, multiple first invoice sets and the second invoice set corresponding to the target purchasing company.

[0021] Optionally, the device also includes: a second receiving module, used to receive the latest invoice sent by the terminal; and a corporate business card updating module, used to update the corporate business card database according to the seller's company information in the latest invoice when it is determined that the seller's company information in the latest invoice is inconsistent with the corresponding corporate business card information in the corporate business card database.

[0022] In a fourth aspect, an invoicing device is provided, which is applied to a terminal, and the device includes: a second acquisition module, used to obtain an invoicing request message input by a user, the invoicing request message includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; a second sending module, used to send the invoicing request message to a server; a third receiving module, used to receive a preset number of candidate corporate business card information sent by the server, the candidate corporate business card information is information queried by the server from a pre-generated corporate business card database based on part of the information of the preset purchaser identifier, and the corporate business card database includes corporate business card information of multiple companies; an invoicing module, used to determine target corporate business card information from the preset number of candidate corporate business card information based on a trigger operation of the user, and to issue an invoice based on the target corporate business card information.

[0023] Optionally, the device also includes: a third sending module, used to send the latest invoice to the server, so that when the server determines that the seller's company information in the latest invoice is inconsistent with the corresponding business card information in the business card database, the server updates the business card database according to the seller's company information in the latest invoice.

[0024] In a fifth aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect of the present disclosure; or implements the steps of the method described in the second aspect of the present disclosure.

[0025] In a sixth aspect, an electronic device is provided, comprising: a memory on which a computer program is stored; a processor for executing the computer program in the memory to implement the steps of the method described in the first aspect of the present disclosure; or, a processor for executing the computer program in the memory to implement the steps of the method described in the second aspect of the present disclosure.

[0026] Through the above technical solution, the server can receive an invoice request message sent by the terminal, wherein the invoice request message includes a preset purchaser identifier of a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; then, a preset number of candidate corporate business card information is obtained from a pre-generated corporate business card database according to the preset purchaser identifier of the preset number of characters, and the corporate business card database includes corporate business card information of multiple companies; the preset number of candidate corporate business card information is sent to the terminal, so that the terminal determines the target corporate business card information from the preset number of candidate corporate business card information, and issues an invoice according to the target corporate business card information. In this way, the user only needs to enter part of the header information (that is, the preset purchaser identifier of the preset number of characters) to obtain all the corporate business card information corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated corporate business card database, thereby solving the problem of incomplete corporate data when querying the purchaser corporate data during corporate invoicing, and at the same time improving the invoicing efficiency, solving the problem of invoicing queues, and improving user experience.

[0027] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0029] Figure 1 is a flow chart showing a first invoicing method according to an exemplary embodiment;

[0030] Figure 2 is a flow chart showing a second invoicing method according to an exemplary embodiment;

[0031] Figure 3 is a flow chart of a third invoicing method according to an exemplary embodiment;

[0032] Figure 4 is a flow chart showing a method for pre-generating a corporate business card database according to an exemplary embodiment;

[0033] Figure 5 is a block diagram of a first invoicing device according to an exemplary embodiment;

[0034] Figure 6 is a block diagram of a second invoicing device according to an exemplary embodiment;

[0035] Figure 7 is a block diagram of a third invoicing device according to an exemplary embodiment;

[0036] Figure 8 is a block diagram of a fourth invoicing device according to an exemplary embodiment;

[0037] Fig. 9 is a block diagram of a fifth invoicing device according to an exemplary embodiment;

[0038] Fig.10 is a structural block diagram of an electronic device according to an exemplary embodiment;

[0039] Fig.11 is a structural block diagram of yet another electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0040] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0041] First, the application scenario of the present invention is introduced. The present invention is mainly used in the scenario of issuing invoices. Usually, when consumers apply for invoices, the information involved in the invoices, such as the company name, bank account number, taxpayer identification number, address, telephone number, etc., is easy to change, and the information is too long to be remembered, or it is easy to remember incorrectly, resulting in incorrect invoicing information or slow invoicing speed, thus affecting the user experience.

[0042] In order to improve the efficiency of invoicing, the relevant technology changes the original process of the seller filling in the header information to the buyer filling in the header information after scanning the same QR code, and then the seller continues to complete the subsequent invoicing operations through the invoicing software. However, when most invoicing software is used for invoicing, the amount of enterprise data that can be recommended is limited, the data is outdated, the header information is incomplete or inaccurate, and the data cannot be updated in time, which affects the efficiency of invoicing. Therefore, a universal, accurate and comprehensive enterprise business card information database is needed to provide data support for various invoicing software.

[0043] In order to solve the above-mentioned problems, the present disclosure provides an invoicing method, device, storage medium and electronic device, which can pre-generate a corporate business card database by sorting out the invoice information issued by the enterprise and the invoice information received by the enterprise, and the corporate business card database includes corporate business card information of multiple enterprises (such as enterprise name, enterprise unified social credit code, taxpayer identification number, address, telephone number, bank and account number, region and other information). In this way, the server can receive an invoicing request message sent by the terminal, and the invoicing request message includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; according to the preset purchaser identifier with the preset number of characters, the server can generate an invoicing request message from the preset purchaser identifier. A preset number of candidate business card information is obtained from the generated business card database, and the preset number of candidate business card information is sent to the terminal, so that the terminal determines the target business card information from the preset number of candidate business card information, and issues an invoice based on the target business card information. In this way, the user only needs to enter part of the header information (that is, the preset purchaser identification with a preset number of characters) to obtain all the business card information corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data during business invoicing, and at the same time improving the invoicing efficiency, solving the problem of invoicing queuing, and improving user experience.

[0044] In addition, the corporate business card database can be used as a public service to provide an external interface for the invoicing software, and the plug-in design makes it easier to deploy new extended functions.

[0045] The specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0046] Figure 1 is a flowchart of a method for issuing invoices according to an exemplary embodiment, which can be applied to a server, such as Figure 1 As shown, the method comprises the following steps:

[0047] In step S101, an invoicing request message sent by a receiving terminal includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier.

[0048] Among them, the preset purchaser identification may include identification information such as the purchaser's name, the purchaser's taxpayer identification number, or the purchaser's enterprise's unified social credit code.

[0049] Taking into account that some corporate business card information is too long and difficult to remember, users who apply for invoices (generally purchasing users) can usually only provide partial information about the purchasing company. Therefore, the preset purchaser identifier with a preset number of characters is the partial information of the purchasing company entered by the user. For example, the preset purchaser identifier with a preset number of characters can be the last four digits of the purchaser's taxpayer identification number, or any three characters in the purchaser's name. This is only an example and the present disclosure does not limit this.

[0050] In step S102, a preset number of candidate business card information is obtained from a pre-generated business card database according to the preset buyer identifier having the preset number of characters.

[0051] Among them, the corporate business card database includes corporate business card information of multiple companies, which may include company name (or "taxpayer name"), taxpayer identification number, company address, telephone number, bank and account number, region and other information. The region is usually the prefecture-level city where the company is located.

[0052] Normally, the preset purchaser identifier entered by the user when issuing an invoice is different, and the corresponding strategy for obtaining the candidate company business card information is also different. In this step, if the preset purchaser identifier is the purchaser's taxpayer identification number, a preset number of the candidate company business card information is determined according to a preset right-matching fuzzy matching algorithm; if the preset purchaser identifier is the purchaser's name, a preset number of the candidate company business card information is determined according to a preset left-right matching fuzzy matching algorithm.

[0053] In step S103, a preset number of candidate enterprise business card information is sent to the terminal, so that the terminal determines target enterprise business card information from the preset number of candidate enterprise business card information and issues an invoice according to the target enterprise business card information.

[0054] By adopting the above method, the user only needs to enter part of the header information (i.e. the preset purchaser identifier with a preset number of characters) to obtain all the information of the business card corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data when the company issues the invoice. At the same time, it improves the invoicing efficiency, solves the problem of invoicing queuing, and improves the user experience.

[0055] Figure 2 is a flow chart of a method for issuing invoices according to an exemplary embodiment, which is applied to a terminal provided with invoicing software, such as Figure 2 As shown, the method comprises the following steps:

[0056] In step S201, an invoicing request message input by a user is obtained, the invoicing request message including a preset purchaser identifier with a preset number of characters, the preset number of characters being less than the total number of characters corresponding to the preset purchaser identifier.

[0057] Among them, the preset purchaser identification may include identification information such as the purchaser's name, the purchaser's taxpayer identification number, or the purchaser's enterprise's unified social credit code.

[0058] In an actual invoicing scenario, the selling user can issue an invoice for the purchasing user through the invoicing software set on the terminal. Specifically, the invoice header information and other relevant information can be filled in the purchasing information on the interface of the invoicing software. In this case, the terminal can obtain the invoicing request message.

[0059] In step S202, the invoicing request message is sent to the server.

[0060] In step S203, a preset number of candidate enterprise business card information sent by the server is received.

[0061] Among them, the candidate corporate business card information is the information retrieved by the server from a pre-generated corporate business card database based on part of the information of the preset purchaser identifier. The corporate business card database includes corporate business card information of multiple companies. The corporate business card information may include company name (or "taxpayer name"), taxpayer identification number, company address, telephone number, bank and account number, region and other information. The region is usually the prefecture-level city where the company is located.

[0062] In step S204, target enterprise business card information is determined from a preset number of candidate enterprise business card information according to a triggering operation of the user, and invoices are issued according to the target enterprise business card information.

[0063] By adopting the above method, the user only needs to enter part of the header information (i.e., a preset purchaser identifier with a preset number of characters) to obtain all the information of the business card corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data when the company issues the invoice. At the same time, it improves the invoicing efficiency, solves the problem of invoicing queuing, and improves the user experience.

[0064] Figure 3 is a flow chart of a method for issuing invoices according to an exemplary embodiment. Figure 3 As shown, the method comprises the following steps:

[0065] In step S301, the terminal obtains an invoicing request message input by a user, and sends the invoicing request message to a server, where the invoicing request message includes a preset purchaser identifier with a preset number of characters.

[0066] Among them, the preset number of characters is less than the total number of characters corresponding to the preset buyer identification, and the preset buyer identification may include identification information such as the buyer's name, the buyer's taxpayer identification number or the unified social credit code of the buyer's enterprise.

[0067] In an actual invoicing scenario, the selling user can issue an invoice for the purchasing user through the invoicing software set on the terminal. Specifically, the invoice header information and other relevant information can be filled in the purchasing information on the interface of the invoicing software. In this case, the terminal can obtain the invoicing request message.

[0068] Taking into account that some corporate business card information is too long and difficult to remember, users who apply for invoices (generally purchasing users) can usually only provide partial information about the purchasing company. Therefore, the preset purchaser identifier with a preset number of characters is the partial information of the purchasing company entered by the user. For example, the preset purchaser identifier with a preset number of characters can be the last four digits of the purchaser's taxpayer identification number, or any three characters in the purchaser's name. This is only an example and the present disclosure does not limit this.

[0069] In step S302, the server obtains a preset number of candidate business card information from a pre-generated business card database according to a preset buyer identifier with a preset number of characters.

[0070] Among them, the corporate business card database includes corporate business card information of multiple companies. Among them, corporate business card generation refers to the process of sorting out the invoice information issued by the company and the invoice information received by the company, classifying them according to the invoicing region, and forming a corporate business card information data set. After that, data integration and analysis can be carried out according to the region, and the company's invoicing frequency can be calculated to generate or update the corporate business card. The corporate business card information may include the company name (or "taxpayer name"), taxpayer identification number, company address, telephone number, bank and account number, region and other information. The region is usually the prefecture-level city where the company is located.

[0071] Normally, the preset purchaser identifier entered by the user when issuing an invoice is different, and the corresponding strategy for obtaining the candidate company business card information is also different. In this step, if the preset purchaser identifier is the purchaser's taxpayer identification number, the server can determine a preset number of the candidate company business card information according to the preset right-matching fuzzy matching algorithm; if the preset purchaser identifier is the purchaser's name, the server can determine a preset number of the candidate company business card information according to the preset left-right matching fuzzy matching algorithm.

[0072] For example, if the query is based on the purchaser's taxpayer identification number, the query begins after it is determined that the user has entered the last 4 digits (i.e., the preset number of characters) of the taxpayer identification number, and fuzzy matching can be performed in the business card database in a right-matching manner to obtain a preset number (for example, 15) of the candidate business card information. In addition, if the query is based on the purchaser's name, the query begins after it is determined that the user has entered 3 (i.e., the preset number of characters) of the purchaser's name, and fuzzy matching can be performed in a left-right matching manner to obtain a preset number of the candidate business card information. The above examples are for illustrative purposes only and the present disclosure is not limited to this.

[0073] It should be noted that the specific implementation method of determining the candidate enterprise business card information according to the fuzzy matching algorithm can refer to the relevant description in the prior art, and the present disclosure does not limit this.

[0074] In step S303, the server sends the preset number of candidate business card information to the terminal.

[0075] After obtaining the preset number of candidate business card information, the terminal can display the candidate business card information to the user in the form of a recommended result list. In order to facilitate the user to find the target business card information they actually need more quickly, the list can display each candidate business card information from top to bottom according to the frequency of use, so as to improve the user experience.

[0076] In addition, to save display space, the purchaser name and / or taxpayer identification number corresponding to each candidate enterprise business card information may be displayed in the recommendation result list, so that users can quickly find the target enterprise business card information.

[0077] In step S304, the terminal determines target enterprise business card information from a preset number of candidate enterprise business card information according to the user's triggering operation, and issues an invoice according to the target enterprise business card information.

[0078] After the terminal displays a preset number of candidate corporate business card information to the user in the form of a recommended result list, the user can select the target corporate business card information in the recommended result list through a trigger operation. In this way, after determining the target corporate business card information, the terminal can automatically fill in all the corporate business card information required for invoicing of the target company in the corporate business card database into the purchaser information of the invoice, thereby realizing automatic invoicing based on the target corporate business card information, avoiding the complicated operation of users filling in each purchaser information one by one, and improving the accuracy and efficiency of invoicing.

[0079] In step S305, the terminal sends the latest issued invoice to the server.

[0080] The latest invoice issued may be the latest invoice issued by the invoice software on the terminal at the current moment.

[0081] In order to ensure the accuracy of the corporate business card information stored in the corporate business card database, it is necessary to timely update the corporate business card information of each company stored in the corporate business card database. Therefore, in this step, the terminal can send the latest invoice to the server so that the server can update the corporate business card information of the corresponding company according to the seller information in the latest invoice.

[0082] In step S306, when the server determines that the seller's enterprise information in the latest invoice is inconsistent with the corresponding enterprise business card information in the enterprise business card database, it updates the enterprise business card database according to the seller's enterprise information in the latest invoice.

[0083] For example, assuming that the seller information in the latest invoice is: the seller's name is A, the taxpayer identification number is 123456, the address is B, and the bank account is Industrial and Commercial Bank of China, the corporate business card information of Company A stored in the corporate business card database is: name is A, taxpayer identification number is 123456, address is A, and the bank account is China Construction Bank. After the server obtains the latest invoice, it can identify that the seller information in the latest invoice is inconsistent with the corporate business card information of Company A stored in the corporate business card database. In this case, the server can update the corporate business card information of Company A in the corporate business card database according to the seller information in the latest invoice. Specifically, the address of Company A is updated from A to B, and the bank account of Company A is updated from China Construction Bank to Industrial and Commercial Bank of China, so as to ensure the accuracy of the corporate business card information of Company A stored in the corporate business card database and improve the accuracy of subsequent invoicing. The above examples are only illustrative examples and the present disclosure is not limited to this.

[0084] By adopting the above method, the user only needs to enter part of the header information (i.e., a preset purchaser identifier with a preset number of characters) to obtain all the information of the business card corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data when the company issues the invoice. At the same time, it improves the invoicing efficiency, solves the problem of invoicing queuing, and improves the user experience.

[0085] Figure 4 is a flowchart of a method for pre-generating a corporate business card database according to an exemplary embodiment. The method can be applied to a server. Figure 4 The pre-generation process of the enterprise business card database is described as follows: Figure 4 As shown, the method comprises the following steps:

[0086] In step S401, for each of the multiple information collection invoices, the seller's company information and the buyer's company information are collected from the information collection invoice.

[0087] Normally, the server can form a corporate information data set by organizing the invoice information issued by the company and the invoice information received by the company, and dynamically generate the latest corporate business card after data integration and comparative analysis.

[0088] In a possible application scenario, the server can obtain invoices issued by the invoicing software on each terminal, and the information collection invoice is the invoice obtained by the server from the invoicing software on each terminal.

[0089] In addition, invoice information generally includes two parts: buyer information and seller information. It can be understood that the seller information in the invoice is closer to the actual latest corporate business card information than the buyer information. Therefore, in the present disclosure, corporate business card information is collected from the seller information in the invoice first. In the case that the company does not issue an invoice as the seller, the corporate business card information can be collected from the buyer information in the invoice.

[0090] In step S402, multiple first invoice sets are determined based on the seller enterprise information corresponding to each information collection invoice, and different seller enterprises correspond to different first invoice sets.

[0091] For example, assume that there are currently six information collection invoices, 1, 2, 3, 4, 5, and 6, among which the seller on invoice 1 is A and the buyer is C, the seller on invoice 2 is B and the buyer is E, the seller on invoice 3 is C and the buyer is E, the seller on invoice 4 is A and the buyer is F, the seller on invoice 5 is D and the buyer is F, and the seller on invoice 6 is B and the buyer is E. After determining multiple first invoice sets according to the seller enterprise information corresponding to each information collection invoice, the following first invoice sets can be determined: the set corresponding to seller A {invoice 1, invoice 4}, the set corresponding to seller B {invoice 2, invoice 6}, the set corresponding to seller C {invoice 3}, and the set corresponding to seller D {invoice 5}. The above examples are only illustrative and the present disclosure is not limited to this.

[0092] In step S403, the target purchasing enterprise is determined according to the purchasing enterprise information corresponding to each information collection invoice, and the target purchasing enterprise includes other enterprises in the purchasing enterprise except the selling enterprise.

[0093] In the case where the company does not issue an invoice as the seller, the company's business card information can be collected from the buyer's information in the invoice. Therefore, in this step, the target buyer company can be determined based on the buyer company information corresponding to each information collection invoice.

[0094] Continuing with the above example, the purchasing company in invoice 1 is C, the purchasing company in invoice 2 is E, the purchasing company in invoice 3 is E, the purchasing company in invoice 4 is F, the purchasing company in invoice 5 is F, and the purchasing company in invoice 6 is E. Based on the sales companies obtained in step S402, the four companies A, B, C, and D, then the target purchasing companies are companies E and F. This is just an example, and the present disclosure does not limit this.

[0095] In step S404, the enterprise business card database is generated according to the plurality of first invoice sets and the second invoice sets corresponding to the target purchasing enterprise, and different target purchasing enterprises correspond to different second invoice sets.

[0096] For example, based on the above example, the second invoice sets corresponding to the two target purchasing companies E and F are: the set corresponding to buyer E is {invoice 2, invoice 3, invoice 6}, and the set corresponding to buyer F is {invoice 4, invoice 5}.

[0097] In this step, for each first invoice set in the multiple first invoice sets, it is determined whether the seller company information on each invoice in the first invoice set is consistent. When it is determined that the seller company information on each invoice in the first invoice set is consistent, the seller company information corresponding to the first invoice set can be used as the corporate business card information of the seller company corresponding to the first invoice set; when it is determined that there is inconsistency in the seller company information on the invoices in the first invoice set, the seller company information on the first target invoice in the first invoice set can be used as the corporate business card information of the seller company corresponding to the first invoice set, wherein the first target invoice is the most frequently used invoice in the first invoice set.

[0098] In addition, if the invoices in the first invoice set have the same usage frequency, the seller's company information on the invoice corresponding to the latest invoice issuance date in the first invoice set can be used as the business card information of the seller's company corresponding to the first invoice set.

[0099] In this step, for each second invoice set in the multiple second invoice sets, it can be determined whether the purchasing company information on each invoice in the second invoice set is consistent. When it is determined that the purchasing company information on each invoice in the second invoice set is consistent, the purchasing company information corresponding to the second invoice set can be used as the corporate business card information of the purchasing company corresponding to the second invoice set; when it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, the purchasing company information on the second target invoice in the second invoice set can be used as the corporate business card information of the purchasing company corresponding to the second invoice set, wherein the second target invoice is the most frequently used invoice in the second invoice set.

[0100] In addition, when the invoices in the second invoice set have the same usage frequency, the purchaser company information on the invoice corresponding to the latest invoice issuance date in the second invoice set is used as the business card information of the purchaser company corresponding to the second invoice set.

[0101] It should also be noted that, in order to improve the accuracy of recommending invoicing information based on the corporate business card information stored in the corporate business card database, in another possible implementation method of the present disclosure, the corporate business card information of enterprises located in different invoicing areas can be further classified and stored in combination with the invoicing region. Therefore, in the present disclosure, before generating the corporate business card database based on the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise, the invoicing region corresponding to each invoice collected by the information can be obtained. In this way, the corporate business card database can be generated based on the invoicing region, the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise.

[0102] Among them, in the process of obtaining the invoicing region corresponding to each invoice of the information collection, the invoicing region can be intercepted according to the unified social credit code or taxpayer identification number of the sales enterprise, and priority is given to intercepting from the unified social credit code. Under normal circumstances, the region represented by the 3-8 digit administrative division code in the unified social credit code of the sales enterprise is the invoicing region; the region represented by the 3-6 digit regional code in the taxpayer identification number of the sales enterprise is the invoicing region.

[0103] By adopting the above method, the latest business card information of each enterprise can be recorded through a pre-generated business card database, so as to provide comprehensive and accurate enterprise information for invoicing and improve invoicing efficiency. In addition, the business card database can be used as a public service to provide an external interface for invoicing software, and the plug-in design makes it easier to deploy new extended functions.

[0104] Figure 5 is a block diagram of a billing device according to an exemplary embodiment, which can be applied to a server, such as Figure 5 As shown, the device comprises:

[0105] The first receiving module 501 is used to receive an invoicing request message sent by a terminal, where the invoicing request message includes a preset purchaser identifier with a preset number of characters, where the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier;

[0106] A first acquisition module 502 is used to acquire a preset number of candidate business card information from a pre-generated business card database according to a preset buyer identifier with a preset number of characters, wherein the business card database includes business card information of multiple companies;

[0107] The first sending module 503 is used to send a preset number of candidate enterprise business card information to the terminal, so that the terminal determines the target enterprise business card information from the preset number of candidate enterprise business card information and issues an invoice according to the target enterprise business card information.

[0108] Optionally, the first acquisition module 502 is used to determine a preset number of candidate corporate business card information according to a preset right-matching fuzzy matching algorithm if the preset purchaser identifier is the purchaser's taxpayer identification number; if the preset purchaser identifier is the purchaser's name, determine a preset number of candidate corporate business card information according to a preset left-right matching fuzzy matching algorithm.

[0109] Optionally, Figure 6 is based on Figure 5 The embodiment shown is a block diagram of a billing device, such as Figure 5 As shown, the device also includes:

[0110] The business card generation module 504 is used to pre-generate the business card database in the following manner:

[0111] For each of the multiple information collection invoices, the information of the selling enterprise and the purchasing enterprise are collected from the information collection invoice respectively; multiple first invoice sets are determined according to the selling enterprise information corresponding to each information collection invoice, and different selling enterprises correspond to different first invoice sets; the target purchasing enterprise is determined according to the purchasing enterprise information corresponding to each information collection invoice, and the target purchasing enterprise includes other enterprises in the purchasing enterprise except the selling enterprise; the enterprise business card database is generated according to the multiple first invoice sets and the second invoice sets corresponding to the target purchasing enterprise, and different target purchasing enterprises correspond to different second invoice sets.

[0112] Optionally, the business card generation module 504 is used to determine, for each first invoice set in the plurality of first invoice sets, whether the seller enterprise information on each invoice in the first invoice set is consistent; if it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, the seller enterprise information corresponding to the first invoice set is used as the business card information of the seller enterprise corresponding to the first invoice set; if it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, the seller enterprise information on the first target invoice in the first invoice set is used as the business card information of the seller enterprise corresponding to the first invoice set; the first target invoice is the seller enterprise information on the first invoice set. the invoice with the highest frequency of use; for each second invoice set in the plurality of second invoice sets, determining whether the purchasing company information on each invoice in the second invoice set is consistent; if it is determined that the purchasing company information on each invoice in the second invoice set is consistent, using the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; if it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, using the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; the second target invoice is the invoice with the highest frequency of use in the second invoice set.

[0113] Optionally, the business card generation module 504 is further used to, when the invoices in the first invoice set have the same usage frequency, use the selling company information on the invoice corresponding to the latest invoice date in the first invoice set as the business card information of the selling company corresponding to the first invoice set; and, when the invoices in the second invoice set have the same usage frequency, use the purchasing company information on the invoice corresponding to the latest invoice date in the second invoice set as the business card information of the purchasing company corresponding to the second invoice set.

[0114] Optionally, the corporate business card generation module 504 is used to obtain the invoicing region corresponding to each of the information collection invoices; and generate the corporate business card database according to the invoicing region, multiple first invoice sets and the second invoice set corresponding to the target purchasing enterprise.

[0115] Optionally, Figure 7 is based on Figure 6 The embodiment shown is a block diagram of a billing device, such as Figure 7 As shown, the device also includes:

[0116] The second receiving module 505 is used to receive the latest invoice sent by the terminal;

[0117] The business card updating module 506 is used to update the business card database according to the seller's business information in the latest invoice when it is determined that the seller's business information in the latest invoice is inconsistent with the corresponding business card information in the business card database.

[0118] By adopting the above device, the user only needs to input part of the header information (i.e., a preset purchaser identification with a preset number of characters) to obtain all the information of the business card corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data when the company issues the invoice. At the same time, it improves the invoicing efficiency, solves the problem of invoicing queuing, and improves the user experience.

[0119] Figure 8 is a block diagram of an invoicing device according to an exemplary embodiment, which can be applied to a terminal equipped with invoicing software, such as Figure 8 As shown, the device comprises:

[0120] The second acquisition module 801 is used to acquire an invoicing request message input by a user, wherein the invoicing request message includes a preset purchaser identifier with a preset number of characters, and the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier;

[0121] The second sending module 802 is used to send the invoicing request message to the server;

[0122] The third receiving module 803 is used to receive a preset number of candidate enterprise business card information sent by the server, where the candidate enterprise business card information is information retrieved by the server from a pre-generated enterprise business card database according to part of the preset buyer identification information, and the enterprise business card database includes enterprise business card information of multiple enterprises;

[0123] The invoicing module 804 is used to determine target enterprise business card information from a preset number of candidate enterprise business card information according to a user's triggering operation, and issue an invoice according to the target enterprise business card information.

[0124] Optionally, Fig. 9 is based on Figure 8 The embodiment shown is a block diagram of a billing device, such as Fig. 9 As shown, the device also includes:

[0125] The third sending module 805 is used to send the latest invoice to the server, so that when the server determines that the seller's company information in the latest invoice is inconsistent with the corresponding business card information in the business card database, it updates the business card database according to the seller's company information in the latest invoice.

[0126] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0127] By adopting the above device, the user only needs to input part of the header information (i.e., a preset purchaser identification with a preset number of characters) to obtain all the information of the business card corresponding to the purchaser message to be filled in the invoice to be issued from the pre-generated business card database, thereby solving the problem of incomplete business data when querying the purchaser's business data when the company issues the invoice. At the same time, it improves the invoicing efficiency, solves the problem of invoicing queuing, and improves the user experience.

[0128] Fig.10 FIG. 1 is a block diagram of an electronic device 1000 according to an exemplary embodiment. Fig.10 As shown, the electronic device 1000 may include: a processor 1001 and a memory 1002. The electronic device 1000 may also include one or more of a multimedia component 1003, an input / output (I / O) interface 1004, and a communication component 1005.

[0129] The processor 1001 is used to control the overall operation of the electronic device 1000 to complete all or part of the steps in the above-mentioned invoicing method. The memory 1002 is used to store various types of data to support the operation of the electronic device 1000. For example, these data may include instructions for any application or method used to operate on the electronic device 1000, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 1002 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 1003 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone, which is used to receive external audio signals. The received audio signal may be further stored in the memory 1002 or sent through the communication component 1005. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 1004 provides an interface between the processor 1001 and other interface modules, and the above-mentioned other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 1005 is used for wired or wireless communication between the electronic device 1000 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 1005 may include: Wi-Fi module, Bluetooth module, NFC module, etc.

[0130] In an exemplary embodiment, the electronic device 1000 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned invoicing method.

[0131] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned invoicing method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 1002 including program instructions, and the above-mentioned program instructions can be executed by the processor 1001 of the electronic device 1000 to complete the above-mentioned invoicing method.

[0132] Fig.11 1 is a block diagram of an electronic device 1100 according to an exemplary embodiment. For example, the electronic device 1100 may be provided as a server. Fig.11 The electronic device 1100 includes a processor 1122, which may be one or more, and a memory 1132 for storing a computer program executable by the processor 1122. The computer program stored in the memory 1132 may include one or more modules each corresponding to a set of instructions. In addition, the processor 1122 may be configured to execute the computer program to perform the above-mentioned invoicing method.

[0133] In addition, the electronic device 1100 may further include a power supply component 1126 and a communication component 1150. The power supply component 1126 may be configured to perform power management of the electronic device 1100, and the communication component 1150 may be configured to implement communication of the electronic device 1100, for example, wired or wireless communication. In addition, the electronic device 1100 may further include an input / output (I / O) interface 1158. The electronic device 1100 may operate based on an operating system stored in the memory 1132, such as Windows Server 2003. TM , Mac OS X TM , Unix TM , Linux TM etc.

[0134] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned invoicing method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 1132 including program instructions, and the above-mentioned program instructions can be executed by the processor 1122 of the electronic device 1100 to complete the above-mentioned invoicing method.

[0135] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned invoicing method when executed by the programmable device.

[0136] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0137] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

[0138] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.

Claims

1. A method for issuing invoices, characterized in that: Applied to a server, the method comprises: A receipt request message sent by a receiving terminal, wherein the receipt request message includes a preset purchaser identifier having a preset number of characters, wherein the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; Acquire a preset number of candidate business card information from a pre-generated business card database according to the preset purchaser identifier with the preset number of characters, wherein the business card database includes business card information of multiple companies; Sending a preset number of candidate business card information to the terminal, so that the terminal determines target business card information from the preset number of candidate business card information, and issues invoices according to the target business card information; The method further includes: pre-generating the enterprise business card database in the following manner: For each of the multiple information collection invoices, collect the seller's enterprise information and the buyer's enterprise information from the information collection invoice; Determine multiple first invoice sets based on the seller enterprise information corresponding to each information collection invoice, and different seller enterprises correspond to different first invoice sets; Determine the target purchasing enterprise according to the purchasing enterprise information corresponding to each information collection invoice, wherein the target purchasing enterprise includes other enterprises among the purchasing enterprises except the selling enterprise; Obtain the invoicing region corresponding to each invoice collected with the information; The corporate business card database is generated according to the invoicing region, the plurality of the first invoice sets and the second invoice sets corresponding to the target purchasing enterprise; wherein different target purchasing enterprises correspond to different second invoice sets, and the corporate business card information of enterprises in different invoicing regions in the corporate business card database is classified and stored; Also includes: For each of the first invoice sets in the plurality of first invoice sets, determine whether the seller enterprise information on each invoice in the first invoice set is consistent; if it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, use the seller enterprise information corresponding to the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set; if it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, use the seller enterprise information on the first target invoice in the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set, wherein the first target invoice is the invoice with the highest frequency of use in the first invoice set; For each of the multiple second invoice sets, determine whether the purchasing company information on each invoice in the second invoice set is consistent. When it is determined that the purchasing company information on each invoice in the second invoice set is consistent, use the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; when it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, use the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set, wherein the second target invoice is the invoice with the highest frequency of use in the second invoice set.

2. The method according to claim 1, characterized in that The step of acquiring a preset number of candidate business card information from a pre-generated business card database according to the preset buyer identifier having a preset number of characters comprises: If the preset purchaser identifier is the purchaser's taxpayer identification number, a preset number of candidate corporate business card information is determined according to a preset right-side matching fuzzy matching algorithm; If the preset buyer identifier is a buyer name, a preset number of candidate corporate business card information is determined according to a preset left-right matching fuzzy matching algorithm.

3. The method according to claim 1 or 2, characterized in that: After sending the preset number of candidate enterprise business card information to the terminal, the method further includes: Receiving the latest issued invoice sent by the terminal; When it is determined that the seller's enterprise information in the latest invoice is inconsistent with the corresponding enterprise business card information in the enterprise business card database, the enterprise business card database is updated according to the seller's enterprise information in the latest invoice.

4. A method for issuing invoices, characterized in that: Applied to a terminal, the method comprises: Acquire an invoice request message input by a user, wherein the invoice request message includes a preset purchaser identifier with a preset number of characters, wherein the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; Sending the invoicing request message to the server; Receiving a preset number of candidate business card information sent by the server, the candidate business card information is information queried by the server from a pre-generated business card database according to part of the preset buyer identification information, the business card database including business card information of multiple companies; Determine target enterprise business card information from a preset number of candidate enterprise business card information according to a user's trigger operation, and issue invoices according to the target enterprise business card information; The enterprise business card database is pre-generated in the following manner: For each of the multiple information collection invoices, collect the seller's enterprise information and the buyer's enterprise information from the information collection invoice; Determine multiple first invoice sets based on the seller enterprise information corresponding to each information collection invoice, and different seller enterprises correspond to different first invoice sets; Determine the target purchasing enterprise according to the purchasing enterprise information corresponding to each information collection invoice, wherein the target purchasing enterprise includes other enterprises among the purchasing enterprises except the selling enterprise; Obtain the invoicing region corresponding to each invoice collected with the information; The corporate business card database is generated according to the invoicing region, the plurality of the first invoice sets and the second invoice sets corresponding to the target purchasing enterprise; wherein different target purchasing enterprises correspond to different second invoice sets, and the corporate business card information of enterprises in different invoicing regions in the corporate business card database is classified and stored; Also includes: For each of the first invoice sets in the plurality of first invoice sets, determine whether the seller enterprise information on each invoice in the first invoice set is consistent; if it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, use the seller enterprise information corresponding to the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set; if it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, use the seller enterprise information on the first target invoice in the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set, wherein the first target invoice is the invoice with the highest frequency of use in the first invoice set; For each of the multiple second invoice sets, determine whether the purchasing company information on each invoice in the second invoice set is consistent. When it is determined that the purchasing company information on each invoice in the second invoice set is consistent, use the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; when it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, use the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set, wherein the second target invoice is the invoice with the highest frequency of use in the second invoice set.

5. A billing device, characterized in that: Applied to a server, the device comprises: A first receiving module, configured to receive an invoicing request message sent by a terminal, wherein the invoicing request message includes a preset purchaser identifier with a preset number of characters, wherein the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; A first acquisition module is used to acquire a preset number of candidate business card information from a pre-generated business card database according to a preset purchaser identifier with a preset number of characters, wherein the business card database includes business card information of multiple companies; A first sending module, used for sending a preset number of candidate enterprise business card information to the terminal, so that the terminal determines target enterprise business card information from the preset number of candidate enterprise business card information, and issues invoices according to the target enterprise business card information; The device also includes: a business card generation module, which is used to pre-generate the business card database in the following manner: for each information collection invoice in the multiple information collection invoices, respectively collect the information of the selling company and the purchasing company from the information collection invoice; determine multiple first invoice sets according to the selling company information corresponding to each information collection invoice, and different selling companies correspond to different first invoice sets; determine the target purchasing company according to the purchasing company information corresponding to each information collection invoice, and the target purchasing company includes other companies among the purchasing companies except the selling company; obtain the invoicing area corresponding to each of the information collection invoices; generate the business card database according to the invoicing area, multiple first invoice sets and the second invoice set corresponding to the target purchasing company; wherein different target purchasing companies correspond to different second invoice sets. Invoice set, the corporate business card information of enterprises in different invoicing areas in the corporate business card database is classified and stored; it is also used to determine whether the seller enterprise information on each invoice in the first invoice set is consistent for each of the first invoice sets in multiple first invoice sets, and when it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, the seller enterprise information corresponding to the first invoice set is used as the corporate business card information of the seller enterprise corresponding to the first invoice set; when it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, the seller enterprise information on the first target invoice in the first invoice set is used as the corporate business card information of the seller enterprise corresponding to the first invoice set, wherein the first target invoice is the invoice with the highest frequency of use in the first invoice set; For each of the multiple second invoice sets, determine whether the purchasing company information on each invoice in the second invoice set is consistent. When it is determined that the purchasing company information on each invoice in the second invoice set is consistent, use the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; when it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, use the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set, wherein the second target invoice is the invoice with the highest frequency of use in the second invoice set.

6. A billing device, characterized in that: Applied to a terminal, the device comprises: A second acquisition module is used to acquire an invoice request message input by a user, wherein the invoice request message includes a preset purchaser identifier with a preset number of characters, wherein the preset number of characters is less than the total number of characters corresponding to the preset purchaser identifier; A second sending module, used for sending the invoicing request message to a server; A third receiving module is used to receive a preset number of candidate enterprise business card information sent by the server, wherein the candidate enterprise business card information is information queried by the server from a pre-generated enterprise business card database according to part of the preset purchaser identifier information, and the enterprise business card database includes enterprise business card information of multiple enterprises; An invoicing module, used to determine target enterprise business card information from a preset number of candidate enterprise business card information according to a user's trigger operation, and issue an invoice according to the target enterprise business card information; The enterprise business card database is pre-generated in the following manner: For each of the multiple information collection invoices, collect the seller's enterprise information and the buyer's enterprise information from the information collection invoice; Determine multiple first invoice sets based on the seller enterprise information corresponding to each information collection invoice, and different seller enterprises correspond to different first invoice sets; Determine the target purchasing enterprise according to the purchasing enterprise information corresponding to each information collection invoice, wherein the target purchasing enterprise includes other enterprises among the purchasing enterprises except the selling enterprise; Obtain the invoicing region corresponding to each invoice collected with the information; The corporate business card database is generated according to the invoicing region, the plurality of the first invoice sets and the second invoice sets corresponding to the target purchasing enterprise; wherein different target purchasing enterprises correspond to different second invoice sets, and the corporate business card information of enterprises in different invoicing regions in the corporate business card database is classified and stored; For each of the first invoice sets in the plurality of first invoice sets, determine whether the seller enterprise information on each invoice in the first invoice set is consistent; if it is determined that the seller enterprise information on each invoice in the first invoice set is consistent, use the seller enterprise information corresponding to the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set; if it is determined that the seller enterprise information on the invoices in the first invoice set is inconsistent, use the seller enterprise information on the first target invoice in the first invoice set as the corporate business card information of the seller enterprise corresponding to the first invoice set, wherein the first target invoice is the invoice with the highest frequency of use in the first invoice set; For each of the multiple second invoice sets, determine whether the purchasing company information on each invoice in the second invoice set is consistent. When it is determined that the purchasing company information on each invoice in the second invoice set is consistent, use the purchasing company information corresponding to the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set; when it is determined that there is inconsistency in the purchasing company information on the invoices in the second invoice set, use the purchasing company information on the second target invoice in the second invoice set as the corporate business card information of the purchasing company corresponding to the second invoice set, wherein the second target invoice is the invoice with the highest frequency of use in the second invoice set.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented; or when the program is executed by a processor, the steps of the method described in claim 4 are implemented.

8. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor for executing the computer program in the memory to implement the steps of the method according to any one of claims 1 to 3; or a processor for executing the computer program in the memory to implement the steps of the method according to claim 4.

Citation Information

Patent Citations

  • Method of obtaining title information of electronic invoice and associated system

    CN107392684A

  • Rapid invoicing method

    CN108765038A