Invoice processing method and device, equipment, storage medium and program product

By automatically determining the invoicing status of flow data and generating electronic invoices, the problem of high invoice issuance and review costs is solved, the invoice issuance process is automated, and manual review costs and time are reduced.

CN118570004APending Publication Date: 2024-08-30PICC LIFE INSURANCE CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410831547.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The current invoice issuance and review method is costly and requires manual confirmation one by one, resulting in increased time and cost.

Method used

By obtaining the flow data and processing identification in the flow sheet, the invoicing status is automatically determined. If no paper invoice is issued, an electronic invoice is generated and sent to realize automatic issuance and review scheduling.

Benefits of technology

It reduces the review cost of invoice issuance, completes automatic scheduling and automatic issuance in the invoice issuance process, and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570004A
    Figure CN118570004A
Patent Text Reader

Abstract

The embodiment of the invention provides an invoice processing method and device, equipment, a storage medium and a program product. Belongs to the technical field of big data. The method comprises the following steps: acquiring pipeline data in a pipeline table and a processing identifier corresponding to the pipeline data; if the processing identifier corresponding to the target flow data in the flow data is unprocessed, determining an invoicing state corresponding to the target flow data; if the invoicing state is that no paper invoice is issued, generating a target invoice according to the target flow data; searching a target mailbox and customer information corresponding to the target flow data; generating a to-be-sent mail corresponding to the customer information and the target invoice; and sending the mail to be sent to the target mailbox. According to the method, the problem that the auditing process of current invoice issuing is high in cost is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to an invoice processing method, device, equipment, storage medium and program product. Background Art

[0002] With the continuous development of information technology, a large number of files are transmitted in electronic format. Currently, invoices can be in paper form or electronic form.

[0003] Currently, when an invoice with the same number is required to be issued only once, manual review is required to determine whether the invoice has been issued.

[0004] However, the inventors discovered that the prior art has at least the following technical problems: the current audit method is costly. Summary of the invention

[0005] The embodiments of the present application provide an invoice processing method, apparatus, device, storage medium and program product to solve the problem of high cost in the current invoice issuance review method.

[0006] In a first aspect, an embodiment of the present application provides an invoice processing method, including: obtaining transaction data in a transaction table and a processing identifier corresponding to the transaction data; if the processing identifier corresponding to target transaction data in the transaction data is unprocessed, determining the invoicing status corresponding to the target transaction data; if the invoicing status is that no paper invoice has been issued, generating a target invoice based on the target transaction data; searching for a target mailbox and customer information corresponding to the target transaction data; generating a to-be-sent email corresponding to the customer information and the target invoice; and sending the to-be-sent email to the target mailbox.

[0007] In one possible implementation, the target transaction data includes amount data; accordingly, generating a target invoice based on the target transaction data includes: obtaining a customer identifier in the target transaction data; finding an amount threshold corresponding to the customer identifier; if the amount data is greater than the amount threshold, splitting the amount data into at least two target amounts less than the amount threshold; generating at least two target invoices based on the target amount, the number of target amounts and the target transaction data.

[0008] In one possible implementation, at least two target invoices are generated based on the target amount and target transaction data, including: writing the serial number and quantity of the target amount into the remarks field of the invoice generation message; writing data of a preset data type in the target transaction data into the corresponding field of the invoice generation message according to the data type; sending the invoice generation message to the tax control system so that the tax control system generates corresponding invoice information; receiving the invoice information sent by the tax control system, and generating the target invoice based on the invoice information.

[0009] In a possible implementation, the target transaction data includes a policy number and an instalment number; accordingly, determining the invoicing status corresponding to the target transaction data includes: searching for the invoicing status corresponding to the policy number and the instalment number.

[0010] In a possible implementation, after obtaining the transaction data in the transaction table and the processing identifier corresponding to the transaction data, it also includes: if there are at least two transaction data corresponding to the same policy number and tax rate, and the corresponding period number is within the preset period number range, and the corresponding processing identifier is unprocessed, then the at least two transaction data are merged to obtain the target transaction data; if there are at least two transaction data corresponding to the same policy number and tax rate, and the corresponding period number is within the preset period number range, and the corresponding processing identifier of at least two transaction data is unprocessed, then the transaction data with the corresponding processing identifier as unprocessed are merged to obtain the target transaction data.

[0011] In a possible implementation, after sending the email to be sent to the target mailbox, the method further includes: changing the processing flag corresponding to the target flow data to processed.

[0012] In a second aspect, an embodiment of the present application provides an invoice processing device, comprising: a data acquisition module, used to acquire transaction data in a transaction table and a processing identifier corresponding to the transaction data; a status determination module, used to determine the invoicing status corresponding to the target transaction data if the processing identifier corresponding to the target transaction data in the transaction data is unprocessed; an invoice generation module, used to generate a target invoice based on the target transaction data if the invoicing status is that no paper invoice has been issued; an information search module, used to search for a target mailbox and customer information corresponding to the target transaction data; an email generation module, used to generate a to-be-sent email corresponding to the customer information and the target invoice; and an email sending module, used to send the to-be-sent email to the target mailbox.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the first aspect above and / or various possible implementations of the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0016] The invoice processing method, device, equipment, storage medium and program product provided in the embodiments of the present application obtain the transaction data and the corresponding processing identifier in the transaction table, and find the invoicing status corresponding to the target transaction data with the processing identifier as unprocessed. If the invoicing status is that no paper invoice has been issued, an invoice will be generated according to the target transaction data, and the invoice will be sent to the corresponding mailbox, so as to judge whether the invoice has been issued. For the transaction data for which the paper invoice has been issued, the invoice will no longer be issued, thereby reducing the audit cost of invoice issuance, and completing the automatic scheduling of audit tasks and automatic issuance of invoices during the invoice issuance process. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] Figure 1 A schematic diagram of the scenario of the invoice processing method provided for this application;

[0019] Figure 2 A flowchart of an invoice processing method provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of the overall process of the invoice processing method provided in the embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of an invoice processing device provided in an embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0023] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0025] With the rapid development of information technology, digitalization has become an indispensable part of all walks of life. In the field of file transmission, electronic formats have gradually replaced traditional paper formats and become the mainstream. Therefore, invoices now have more ways to issue. In addition to traditional paper invoices, you can also choose convenient and fast electronic invoices.

[0026] However, in order to ensure the authenticity of the invoice and avoid duplicate issuance, it is stipulated that invoices with the same number can only be issued once. This requires us to manually review and confirm the issuance of each invoice one by one. Although this method can ensure the accuracy and legality of the invoice, it also increases labor costs and review time.

[0027] In response to the above technical problems, the inventors proposed the following technical concept: by obtaining the transaction data in the transaction table and the processing identifier corresponding to the transaction data, when the processing identifier corresponding to the transaction data is unprocessed, the invoicing status is searched; if the invoicing status is that no paper invoice has been issued, a target invoice is generated according to the target transaction data, and the target invoice is sent to the corresponding mailbox.

[0028] This application is used in the scenario of invoice processing. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation portals for users to choose to authorize or refuse.

[0029] Figure 1 A schematic diagram of the scenario of the invoice processing method provided for this application. Figure 1 , this scenario includes: terminal device 101 and server 102.

[0030] In a specific implementation process, the terminal device 101 may include a computer, a server, a tablet, a mobile phone, a PDA (Personal Digital Assistant), a notebook, etc., which can input data.

[0031] The server 102 can be implemented using a server or a cluster of multiple servers with more powerful processing capabilities and higher security. If possible, it can also be replaced by a computer, laptop, etc. with stronger computing power.

[0032] The connection between the server 102 and the terminal device 101 can be a wired connection or a wireless connection.

[0033] Server 102 is used to obtain transaction data and processing identifiers corresponding to the transaction data. If the processing identifier is unprocessed, the corresponding invoicing status is searched. If the invoicing status is that no paper invoice has been issued, an invoice corresponding to the transaction data is generated and sent to the terminal device 101 via the corresponding mailbox.

[0034] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the invoice processing method. In other feasible implementations of the present application, the above architecture may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently, which can be determined according to the actual application scenario and is not limited here. Figure 1 The components shown may be implemented by hardware, software, or a combination of software and hardware.

[0035] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0036] Figure 2 A flowchart of the invoice processing method provided in the embodiment of the present application. The execution subject of the embodiment of the present application may be Figure 1 The server 102 in the embodiment may also be a computer and / or a mobile phone, etc., which is not particularly limited in this embodiment. Figure 2 As shown, the method includes:

[0037] S201: Obtain the flow data in the flow table and the processing identifier corresponding to the flow data.

[0038] In this step, the flow meter may be read to obtain the flow data and the corresponding processing identifier in the flow meter. This step may be performed regularly or automatically at preset time intervals.

[0039] The flow data may be received by the server through the Kafka module and stored in the flow table. The flow data may be sent by an upstream business system or transaction system.

[0040] S202: If the processing mark corresponding to the target transaction data in the transaction data is unprocessed, the invoicing status corresponding to the target transaction data is determined.

[0041] In this step, searching for the invoicing status corresponding to the target transaction data may include reading data of a preset type in the target transaction data, querying a database based on the data of the preset type to obtain the corresponding invoicing status, or searching for the correspondence between the data and the invoicing status based on the data of the preset type to obtain the corresponding invoicing status.

[0042] Among them, the correspondence between data and invoicing status can be stored in the format of table, dictionary, document, etc.

[0043] S203: If the invoicing status is that no paper invoice has been issued, a target invoice is generated according to the target transaction data.

[0044] In this step, the target data in the target flow data may be written into the invoice template to obtain the target invoice; or the target data in the target flow data may be sent to the invoice generation interface to obtain the target invoice returned by the invoice generation interface.

[0045] S204: Searching for the target mailbox and customer information corresponding to the target transaction data.

[0046] In this step, it may include searching for the correspondence between data, target mailbox and customer information according to specific data in the target flow data to obtain the corresponding target mailbox and customer information; it may also include writing characteristic data of a preset type in the target flow data into a preset data acquisition request template to obtain a data acquisition request, sending the data acquisition request to the database, and obtaining the target mailbox and customer information returned by the database.

[0047] Among them, the correspondence between data, target mailbox and customer information can be stored in a table format.

[0048] S205: Generate an email to be sent corresponding to the customer information and the target invoice.

[0049] In this step, the target invoice corresponding to the layout file can be generated and the layout file can be used as an attachment to the email; the customer information can be filled in the email body template to obtain the email to be sent. The process of generating the layout file can include converting the target invoice into a preset format and adding an electronic seal and a digital certificate.

[0050] The preset format is, for example, PDF (Portable Document Format).

[0051] S206: Send the email to be sent to the target mailbox.

[0052] In this step, the target mailbox may be used as the recipient address of the email to be sent and sent to the target mailbox.

[0053] From the description of the above embodiments, it can be seen that the embodiments of the present application obtain the transaction data and the corresponding processing identifier in the transaction table, and find the invoicing status corresponding to the target transaction data with the processing identifier as unprocessed. If the invoicing status is that no paper invoice has been issued, an invoice will be generated according to the target transaction data, and the invoice will be sent to the corresponding mailbox to determine whether the invoice has been issued. For the transaction data for which paper invoices have been issued, invoices will no longer be issued, thereby reducing the audit cost of invoice issuance and completing the automatic scheduling of audit tasks and automatic issuance of invoices during the invoice issuance process.

[0054] Figure 3 The overall flow diagram of the invoice processing method provided in the embodiment of the present application is as follows. Figure 3 As shown, after the above step S201, if the processing mark corresponding to the running data is processed, the running data is not processed again. After the above step S204, if the corresponding target mailbox is not found, the email is not sent and the process ends.

[0055] In a possible implementation, the target transaction data includes amount data.

[0056] The amount data may include the amount of the transaction.

[0057] Accordingly, in the above step S203, generating a target invoice according to the target transaction data includes:

[0058] S2031: Obtain the customer ID in the target transaction data.

[0059] In this step, the step may include reading the customer identification from the customer identification field in the target flow data.

[0060] The customer identification field may be preset by the staff, and the customer identification may include the customer's name, the customer's ID number, etc.

[0061] S2032: Find the amount threshold corresponding to the customer ID.

[0062] In this step, the process may include searching for a preset correspondence between the customer identifier and the amount threshold value according to the customer identifier, and obtaining the amount threshold value corresponding to the customer identifier.

[0063] The correspondence between the customer identifier and the amount threshold may be stored in a table, key-value pair, or other format.

[0064] S2033: If the amount data is greater than the amount threshold, split the amount data into at least two target amounts that are less than the amount threshold.

[0065] In this step, the split can be an equal amount split or a split based on the size of the amount threshold.

[0066] For example, if the amount threshold is 1 million and the amount data is 3.3 million, it can be split into 4 parts to get a target amount of 825,000; for another example, if the amount threshold is 1 million and the amount data is 3.3 million, it can be split according to the amount threshold to get 3 target amounts, namely 1 million, 1 million, and 300,000, to get a target amount of 825,000; for another example, if the amount threshold is 500,000 and the amount data is 4 million, no matter it is split equally or according to the size of the amount threshold, it is split into 8 target amounts, each of which is 500,000.

[0067] S2034: Generate at least two target invoices based on the target amount, the quantity of the target amount and the target transaction data.

[0068] In this step, it may include generating an invoice generation request according to the target amount, the quantity of the target amount and the target transaction data, and sending the invoice generation request to the invoicing interface to obtain the target invoice returned by the invoicing interface.

[0069] Among them, the invoicing interface may include the invoicing interface of the tax control system.

[0070] In a possible implementation, if the invoicing interface returns a failure message, the invoice processing flow is terminated.

[0071] From the description of the above embodiments, it can be seen that the embodiments of the present application obtain the customer identifier in the target transaction data, find the amount threshold corresponding to the customer identifier, and split the amount data when the amount data is greater than the amount threshold to obtain at least two target amounts. The target amounts are used to issue invoices, thereby splitting large transaction flows to facilitate financial management, auditing and other matters.

[0072] In a possible implementation, in the above step S2034, at least two target invoices are generated according to the target amount and the target transaction data, including:

[0073] S341: Write the serial number and quantity of the target amount into the remarks field of the invoice generation message.

[0074] In this step, the sequence number of the target amount can indicate the target amount is the target amount obtained by splitting, and the sequence number of the target amount is also the sequence number of the generated invoice. The number of the target amount can be the total number of the target amounts obtained by splitting. The sequence number and the number of the target amount are written into the remark field of the invoice generation message, including splicing the sequence number and the number of the target amount to obtain the remark content, and writing the remark content into the remark field of the invoice generation message. In the splicing process, the sequence number and the number of the target amount can be spliced ​​with a preset character string.

[0075] For example, if the serial number of the target amount is 1 and the quantity of the target amount is 3, then add " / " between 1 and 3 to get "1 / 3" and write it into the remarks field of the invoice generation message. Another example, if the serial number of the target amount is 2 and the quantity of the target amount is 5, then add "No." before 2, add " / " in the middle, and finally add "copy" to get "No. 2 / 5 copy" and write it into the remarks field of the invoice generation message.

[0076] S342: Write the data of the preset data type in the target transaction data into the corresponding field of the invoice generation message according to the data type.

[0077] In this step, the data type can correspond to the field in the invoice generation message. This step may include copying the data of the preset data type in the target transaction data and pasting it into the field corresponding to the data type in the invoice generation message.

[0078] S343: Send the invoice generation message to the tax control system so that the tax control system generates the corresponding invoice information.

[0079] In this step, the invoice generation message can be sent to the tax control system by wired or wireless means, specifically, it can be sent to the invoicing interface of the tax control system. The invoice information can also be in the form of a message.

[0080] S344: Receive the invoice information sent by the tax control system and generate the target invoice according to the invoice information.

[0081] In this step, the invoice information can also be received through a wired or wireless network. The method of generating the target invoice according to the invoice information can include filling the invoice template with the invoice information to obtain the target invoice.

[0082] As can be seen from the description of the above embodiments, in the embodiments of the present application, by writing the serial number and quantity of the target amount into the remarks field of the invoice generation message, writing the data of the preset data type into the corresponding field of the invoice generation message, sending the invoice generation message to the tax control system, enabling the tax control system to generate the corresponding invoice information, and generating the target invoice according to the invoice information after receiving the invoice information, the invoice corresponding to the transaction data is generated, which is convenient for subsequent invoice sending, and invoices are used for financial management, financial audit and other work.

[0083] In a possible implementation manner, the target transaction data includes the policy number and the number of periods.

[0084] Among them, the policy number is the single number of the insurance, and the number of periods is the premium payment period corresponding to the policy.

[0085] Correspondingly, in the above step S202, determining the invoicing status corresponding to the target transaction data includes:

[0086] S2021: Find the invoicing status corresponding to the policy number and period.

[0087] In this step, it can include searching for the corresponding relationship between the policy number, the issue number and the billing status according to the policy number and the issue number to obtain the billing status; it can also include searching for the invoice corresponding to the policy number and the issue number. If the invoice can be found, the billing status is that a paper invoice has been issued.

[0088] From the description of the above embodiment, it can be seen that the embodiment of the present application avoids re-issuing invoices for policies for which paper invoices have already been issued by searching for the invoicing status corresponding to the policy number and the period.

[0089] In a possible implementation, in the above step S201, after obtaining the flow data in the flow table and the processing identifier corresponding to the flow data, the following is further included:

[0090] S2011: If there are at least two transaction data with the same policy number and tax rate, and the corresponding periods are within the preset period range, and the corresponding processing mark is unprocessed, then the at least two transaction data are merged to obtain the target transaction data.

[0091] In this step, it can include reading all the transaction data, comparing the policy number and tax rate of each transaction data, finding the transaction data with the same corresponding policy number and tax rate, and finding the processing identifier of these transaction data. If the processing identifiers are all unprocessed, then merge these at least two transaction data to obtain the target transaction data.

[0092] The period range may be preset by the staff. Merging the transaction data may include using the transaction data to perform the above steps S202 to S206 together, or may include adding the amounts of the price data and performing the above steps S202 to S206 using the added amount.

[0093] The period range may be within 1 year, within 6 months, within 3 months, etc.

[0094] S2012: If there are at least two transaction data with the same policy number and tax rate, and the corresponding periods are within the preset period range, and at least two transaction data have processing marks corresponding to them as unprocessed, then the transaction data with the corresponding processing marks as unprocessed will be merged to obtain the target transaction data.

[0095] This step is similar to the above step S2011, and the transaction data marked as unprocessed are merged and invoiced together.

[0096] From the description of the above embodiments, it can be seen that the embodiments of the present application obtain the target transaction data by merging and processing the transaction data with the same corresponding policy number, tax rate, and period number within the preset period number range, so as to facilitate the subsequent issuance of multiple transaction invoices at one time, reduce the number of data processing times, reduce the number of invoice details, avoid issuing invoices containing invoice lists, and make the invoice as a whole more neat and clear.

[0097] In a possible implementation, after sending the email to be sent to the target mailbox, the method further includes:

[0098] S220: Change the processing flag corresponding to the target pipeline data to processed.

[0099] In this step, it may include using the processed identifier to overwrite the original processed identifier corresponding to the target flow data, or it may include deleting the original processed identifier corresponding to the target flow data and then writing the new processed identifier into the processed identifier position corresponding to the target flow data.

[0100] The processing identifier may be represented by 0, 1, or other characters.

[0101] It can be seen from the description of the above embodiment that the embodiment of the present application changes the processing identifier corresponding to the target pipeline data to processed, so that the target pipeline data will not be processed repeatedly.

[0102] Figure 4 This is a schematic diagram of the structure of the invoice processing device provided in the embodiment of the present application. Figure 4 As shown, the invoice processing device 400 includes: a data acquisition module 401, a state determination module 402, an invoice generation module 403, an information search module 404, an email generation module 405 and an email sending module 406.

[0103] The data acquisition module 401 is used to acquire the flow data in the flow table and the processing identifier corresponding to the flow data.

[0104] The status determination module 402 is used to determine the invoicing status corresponding to the target transaction data if the processing mark corresponding to the target transaction data in the transaction data is unprocessed.

[0105] The invoice generation module 403 is used to generate a target invoice according to the target transaction data if the invoicing status is that no paper invoice has been issued.

[0106] The information search module 404 is used to search for the target mailbox and customer information corresponding to the target transaction data.

[0107] The email generation module 405 generates an email to be sent corresponding to the customer information and the target invoice.

[0108] The mail sending module 406 is used to send the mail to be sent to the target mailbox.

[0109] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0110] In one possible implementation, the target transaction data includes amount data; the invoice generation module 403 is specifically used to obtain the customer identifier in the target transaction data; find the amount threshold corresponding to the customer identifier; if the amount data is greater than the amount threshold, split the amount data into at least two target amounts less than the amount threshold; generate at least two target invoices based on the target amount, the number of target amounts and the target transaction data.

[0111] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0112] In one possible implementation, the invoice generation module 403 is specifically used to write the serial number and quantity of the target amount into the remarks field of the invoice generation message; write the data of the preset data type in the target flow data into the corresponding field of the invoice generation message according to the data type; send the invoice generation message to the tax control system so that the tax control system generates the corresponding invoice information; receive the invoice information sent by the tax control system, and generate the target invoice according to the invoice information.

[0113] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0114] In a possible implementation, the target flow data includes the policy number and the instalment number; the status determination module 402 is used to find the invoicing status corresponding to the policy number and the instalment number.

[0115] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0116] In a possible implementation, the invoice processing apparatus 400 further includes: a data merging module 407 .

[0117] The data merging module 407 is used to merge at least two transaction data to obtain target transaction data if the policy numbers and tax rates corresponding to at least two transaction data are the same, and the corresponding periods are within the preset period range, and the corresponding processing mark is unprocessed; if the policy numbers and tax rates corresponding to at least two transaction data are the same, and the corresponding periods are within the preset period range, and the corresponding processing mark is unprocessed, the transaction data with the corresponding processing mark as unprocessed will be merged to obtain the target transaction data.

[0118] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0119] In a possible implementation, the invoice processing apparatus 400 further includes: an identification change module 408 .

[0120] The identification changing module 408 is used to change the processing identification corresponding to the target flow data to processed.

[0121] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0122] In order to implement the above embodiment, the embodiment of the present application also provides an electronic device.

[0123] refer to Figure 5 , which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present application, and the electronic device 500 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (Portable Media Players, PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0124] like Figure 5As shown, the electronic device 500 may include a processor (such as a central processing unit, a graphics processing unit, etc.) 501, and a memory 502 that is communicatively connected to the processor, which can perform various appropriate actions and processes according to the program stored in the memory 502, the computer execution instruction, or the program loaded from the storage device 508 to the random access memory (Random Access Memory, referred to as RAM) 503, to implement the invoice processing method in any of the above embodiments, wherein the memory may be a read-only memory (Read Only Memory, referred to as ROM). In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the memory 502, and the RAM 503 are connected to each other via a bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.

[0125] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Figure 5 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0126] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 509, or installed from the storage device 508, or installed from the memory 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0127] It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable storage medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0128] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0129] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0130] The computer program code for performing the operation of the present application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] The modules involved in the embodiments of the present application may be implemented by software or hardware. The name of a unit does not limit the module itself in some cases. For example, the status determination module may also be described as a "invoicing status determination module".

[0133] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0134] The present application also provides a computer-readable storage medium, which stores computer executable instructions. When the processor executes the computer executable instructions, the technical solution of the invoice processing method in any of the above embodiments is implemented. The implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the invoice processing method. Please refer to the implementation principle and beneficial effects of the invoice processing method, which will not be repeated here.

[0135] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0136] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the technical solution of the invoice processing method in any of the above embodiments. Its implementation principle and beneficial effects are similar to the implementation principle and beneficial effects of the invoice processing method. Please refer to the implementation principle and beneficial effects of the invoice processing method, and no further details will be given here.

[0137] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.

[0138] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0139] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for processing invoices, It is characterized in that include: Obtaining the flow data in the flow table and the processing identifier corresponding to the flow data; If the processing mark corresponding to the target transaction data in the transaction data is unprocessed, determining the invoicing status corresponding to the target transaction data; If the invoicing status is that no paper invoice has been issued, generating a target invoice according to the target transaction data; Find the target mailbox and customer information corresponding to the target transaction data; Generate an email to be sent corresponding to the customer information and the target invoice; Send the email to be sent to the target mailbox.

2. The method according to claim 1, It is characterized in that The target transaction data includes amount data; Accordingly, generating a target invoice according to the target transaction data includes: Obtaining a customer identifier in the target flow data; Find the amount threshold corresponding to the customer ID; If the amount data is greater than the amount threshold, splitting the amount data into at least two target amounts that are less than the amount threshold; At least two target invoices are generated according to the target amount, the quantity of the target amount and the target transaction data.

3. The method according to claim 2, It is characterized in that The step of generating at least two target invoices according to the target amount and the target transaction data includes: Writing the target amount's serial number and quantity into the remarks field of the invoice generation message; Writing data of a preset data type in the target flow data into a field corresponding to the invoice generation message according to the data type; Sending the invoice generation message to the tax control system so that the tax control system generates corresponding invoice information; The invoice information sent by the tax control system is received, and a target invoice is generated according to the invoice information.

4. The method according to claim 1, It is characterized in that The target transaction data includes the policy number and the number of instalments; Accordingly, determining the invoicing status corresponding to the target transaction data includes: Find the invoicing status corresponding to the policy number and the number of instalments.

5. The method according to claim 1, It is characterized in that After acquiring the flow data in the flow table and the processing identifier corresponding to the flow data, the method further includes: If there are at least two pieces of transaction data corresponding to the same policy number and tax rate, and the corresponding periods are within the preset period range, and the corresponding processing mark is unprocessed, then the at least two pieces of transaction data are merged to obtain the target transaction data; If there are at least two transaction data corresponding to the same policy number and tax rate, and the corresponding period number is within the preset period number range, and at least two transaction data corresponding to the processing mark as unprocessed, then the transaction data corresponding to the processing mark as unprocessed will be merged to obtain the target transaction data.

6. The method according to claim 5, It is characterized in that After sending the email to be sent to the target mailbox, the method further includes: The processing flag corresponding to the target flow data is changed to processed.

7. An invoice processing device, It is characterized in that include: A data acquisition module, used to acquire the flow data in the flow table and the processing identifier corresponding to the flow data; A status determination module, configured to determine the invoicing status corresponding to the target transaction data if the processing identifier corresponding to the target transaction data in the transaction data is unprocessed; An invoice generation module, configured to generate a target invoice according to the target transaction data if the invoicing status is that no paper invoice has been issued; An information search module, used to search for a target mailbox and customer information corresponding to the target transaction data; An email generation module generates an email to be sent corresponding to the customer information and the target invoice; The mail sending module is used to send the mail to be sent to the target mailbox.

8. An electronic device, It is characterized in that include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the invoice processing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the invoice processing method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, It is characterized in that The invention comprises a computer program, which, when executed by a processor, implements the invoice processing method according to any one of claims 1 to 6.