Bill generation method and device
By responding to bill generation requests and screening and confirming project expenses in the bill generation method, the problem of inability to adapt to the variable transaction scenarios of project expenses in the prior art is solved, and automated and intelligent bill generation and settlement bill collection are realized.
Patent Information
- Application Number
- CN202311294482.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2043-10-08
AI Technical Summary
The existing bill generation method cannot meet the transaction scenarios with variable project costs, resulting in the need for manual confirmation and adjustment, which consumes human resources and affects the efficiency of bill generation.
By responding to bill generation requests, determine the bill type, and when the type is the first type, obtain the item expense details, filter the attributes according to the preset filtering rules, obtain the fixed and to be confirmed project expenses, and confirm it, and finally generate the bill.
It realizes automated, intelligent and flexible settlement and billing, reduces manual adjustment steps, improves bill generation efficiency, and is suitable for business scenarios with varying project costs.
Smart Images

Figure CN119784374A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating a bill. Background Art
[0002] In daily trading activities, the settlement business of both parties cannot be separated from the support of bills. In the current conventional billing system, when the billing period of a periodic bill (such as a monthly bill or a weekly bill) or a specified billing period arrives, the billing system automatically executes the billing task and generates a bill that meets the needs for settlement.
[0003] In the process of implementing the present invention, the inventors found that the prior art has the following problems:
[0004] The existing bill generation method is suitable for transaction scenarios where the item costs of the bill are relatively stable. For transaction scenarios with higher demand for billing flexibility, the item costs in the bill to be generated may need to be confirmed again. The existing bill generation method cannot meet the demand and can only be done through manual offline operations, which consumes human resources, affects the efficiency of bill generation, and further involves the settlement business. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for bill generation, which can be better applicable to business transaction activities with variable project costs, eliminate the steps of manual adjustment of bills, realize automatic, intelligent and flexible settlement and billing, improve the efficiency of bill generation, and better meet actual needs.
[0006] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for generating a bill is provided, comprising:
[0007] In response to receiving a request for generating a bill, determining a type of the bill to be generated from the request for generating the bill;
[0008] In the case that the type of the bill to be generated is the first type, obtaining the item expense details of the bill to be generated, performing attribute screening on the item expense details according to a preset screening rule, obtaining fixed item expenses and unconfirmed item expenses, and confirming the unconfirmed item expenses;
[0009] A bill is generated according to the confirmation result of the unconfirmed project expenses and the fixed project expenses.
[0010] Optionally, confirming the expenses of the project to be confirmed includes: storing the expenses of the project to be confirmed into a cost resource pool and generating a cost verification task; within a preset confirmation time, checking whether a verification result of the cost verification task has been received, and if the verification result of the cost verification task has been received, using the verification result as the confirmation result of the expenses of the project to be confirmed; if the verification result of the cost verification task has not been received, defining the confirmation result of the expenses of the project to be confirmed as a null value.
[0011] Optionally, a bill is generated based on the confirmation result of the to-be-confirmed item expenses and the fixed item expenses, including: determining the billing task of the to-be-generated bill according to a preset billing policy; when the confirmation result is a null value, executing the billing task and generating the bill according to the fixed item expenses; when the confirmation result is a non-null value, executing the billing task and generating the bill according to the confirmation result of the to-be-confirmed item expenses and the fixed item expenses.
[0012] Optionally, based on the confirmation result of the to-be-confirmed project expenses and the fixed project expenses, before generating the bill, the method also includes: pushing the confirmation result and the fixed project expenses to the settlement personnel and recipient of the bill for verification and review, and determining that the verification and review are passed.
[0013] Optionally, the method also includes: when the receipt time of the verification result of the expense verification task exceeds the confirmation time, in response to monitoring the attribute screening of a new bill with the same business information as the bill, updating the verification result to the item expense to be confirmed, and marking and inserting it into the item expense details of the new bill, so that the settlement personnel of the new bill can determine whether to include it in the new bill business.
[0014] Optionally, the method also includes: when the type of the bill to be generated is the second type, determining the bill task of the bill according to a preset billing policy; generating a bill by executing the bill task, and pushing the bill to the settlement personnel and the recipient of the bill for verification and review; in response to receiving the review approval information from the settlement personnel and the recipient, confirming the bill.
[0015] Optionally, the bill generation request is triggered by a preset bill period or manually; the type of bill to be generated is determined from the generation request, including: determining the type of bill to be generated based on the business type in the generation request, the business type including merchant type and user type.
[0016] According to a second aspect of an embodiment of the present invention, there is provided a bill generating device, comprising:
[0017] A type determination module, configured to determine the type of the bill to be generated from the generation request in response to receiving the bill generation request;
[0018] An attribute screening module, used for obtaining, when the type of the invoice to be generated is the first type, item expense details of the invoice to be generated, performing attribute screening on the item expense details according to a preset screening rule, obtaining fixed item expenses and unconfirmed item expenses, and confirming the unconfirmed item expenses;
[0019] The bill generation module is used to generate a bill according to the confirmation result of the to-be-confirmed project expenses and the fixed project expenses.
[0020] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for bill generation, comprising:
[0021] one or more processors;
[0022] a storage device for storing one or more programs,
[0023] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0024] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0025] An embodiment of the invention has the following advantages or beneficial effects: by responding to a request for generating a bill, determining the type of the bill to be generated from the request for generating the bill; when the type of the bill to be generated is the first type, obtaining the project cost details of the bill to be generated, performing attribute screening on the project cost details according to preset screening rules, obtaining fixed project costs and project costs to be confirmed, and confirming the project costs to be confirmed; based on the confirmation results of the project costs to be confirmed and the fixed project costs, a technical solution for generating bills realizes automated, intelligent and flexible settlement and billing, and eliminates the steps of manually adjusting the bill when the project costs are variable, which not only improves the efficiency of bill generation, but also supports more settlement and billing scenarios, and better meets actual needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0027] Figure 1 is a schematic diagram of the main process of the method for generating a bill according to an embodiment of the present invention;
[0028] Figure 2 is a detailed flow chart of bill generation and settlement according to an embodiment of the present invention;
[0029] Figure 3 is a schematic diagram of main modules of a device for bill generation according to an embodiment of the present invention;
[0030] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0031] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0032] It should be noted that in the technical solution of the present invention, the collection / collection, updating, analysis, use, transmission, storage and other aspects of user personal information involved are in compliance with the provisions of relevant laws and regulations, are used for legal and reasonable purposes, are not shared, disclosed or sold outside of these legal uses, and are subject to supervision and management by national regulatory authorities. Necessary measures should be taken for user personal information to selectively block the use or access to personal information data to prevent illegal access to such personal information data, ensure that persons who have access to personal information data comply with the provisions of relevant laws and regulations, and ensure the security of user personal information. In addition, once these user personal information data are no longer needed, the risks should be minimized by limiting or even prohibiting data collection and / or deleting data.
[0033] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0034] The existing bill generation method is suitable for transaction scenarios where the item costs of the bill are relatively stable. For transaction scenarios with high demand for bill flexibility, the item costs in the bill to be generated may need to be confirmed again. The existing bill generation method cannot meet the demand and can only be done through manual offline operations, which consumes human resources and affects the efficiency of bill generation, which in turn involves settlement business and cannot meet practical applications well.
[0035] In order to solve the above problems existing in the prior art, the present invention proposes a method for generating bills. When the type of the bill to be generated is the first type, the project expense details of the bill to be generated are attribute-screened according to a preset screening rule, and at least part of the expenses in the project expense details are confirmed according to the attribute screening result to generate the bill. The method for flexibly generating bills in the embodiment of the present invention can be better applied to business transaction activities with variable project expenses, eliminates the steps of manually adjusting bills, and realizes automated, intelligent, and flexible settlement and billing, which not only improves the efficiency of bill generation, but also supports more settlement and billing scenarios, and better meets actual needs.
[0036] In the introduction to the embodiments of the present invention, the terms and their meanings are as follows:
[0037] 2C: Business to Customer means business to customers;
[0038] 2B: Business to Business means business to business;
[0039] Billing: The system correctly generates bills and forms billing detail files;
[0040] Billing period: From the billing start date to the billing end date.
[0041] Figure 1 Schematic diagram of the main process of the bill generation method according to an embodiment of the present invention. Figure 1 As shown, the bill generation method of the embodiment of the present invention includes the following steps S101 to S103.
[0042] Step S101: In response to receiving a request for generating a bill, determining the type of the bill to be generated from the request for generating the bill.
[0043] Specifically, in daily transaction activities, bills are used to record detailed information on consumption and expenditures, and bills are generated by aggregating the expense information that meets the conditions. Bills can be divided into different types according to different classification dimensions, such as weekly bills, monthly bills, and annual bills according to the bill generation cycle; they can also be divided into detailed bills, general bills, etc. according to the content of the bill. When the billing system receives a request to generate a bill, it determines the type of bill to be generated based on the type information contained in the generation request or the type information obtained by parsing the generation request.
[0044] According to one embodiment of the present invention, the request for generating the bill is triggered by a preset bill period or manually; the type of the bill to be generated is determined from the generation request, including: determining the type of the bill to be generated based on the business type in the generation request, the business type including merchant type and user type.
[0045] Specifically, the above-mentioned billing system uses the preset billing period as the trigger condition for the bill generation request, and triggers the bill generation request when the system time reaches the preset billing period. Usually, the preset billing period is a periodic time interval, including the bill start date and end date. Of course, in order to improve the flexibility of billing, the system also supports manual triggering of bill generation requests, and the bill generation request can be triggered through the corresponding functional buttons on the interface.
[0046] Furthermore, the embodiment of the present invention is based on general transaction activities, and the types of bills to be generated are divided according to the business type. The specific business types include merchant type 2B for conducting transaction activities for merchants and user type 2C for conducting transaction activities for users. Different business types have different transaction characteristics, and accordingly have different bill generation needs. Specifically, the project costs of 2C business are relatively stable. When the periodic account period arrives, the project cost details are summarized as needed to generate bills; the transaction scale involved in 2B business is large, especially export business, and the problem of product damage caused by sea transportation often occurs. For example, the international freight of a product is 100,000 yuan. Because of the damage claim, the actual freight is 90,000 yuan. For this reason, for the international freight cost part included in the bill, the business personnel need to discuss with the merchant first, and then perform subsequent operations such as settlement. The bill that was originally scheduled to be settled in this account period can only be settled in the next account period because the international freight included in the bill needs to be confirmed. In this way, different business types correspond to different bill generation requirements, and the corresponding business type needs to be obtained from the generation request, and the type of the corresponding bill to be generated is determined according to the business type, whether it is a merchant bill type or a user bill type.
[0047] Step S102: when the type of the bill to be generated is the first type, obtain the project cost details of the bill to be generated, perform attribute screening on the project cost details according to preset screening rules, obtain fixed project costs and unconfirmed project costs, and confirm the unconfirmed project costs.
[0048] Specifically, the bill generation method provided by the embodiment of the present invention can select the corresponding bill generation process according to the type of the bill. The type of the bill to be generated that needs to confirm the project expense details in the bill is defined as the first type. According to the characteristics of the current business type, the embodiment of the present invention uses the above-mentioned merchant bill type, that is, the type of the bill to be generated determined when the business type is the merchant type, as the first type. In the case of determining that the type of the bill to be generated is the first type, according to the identification of the merchant, the screening conditions of the project expense details of the bill to be generated are obtained from the system, such as the specific collection object, payment object, transaction time, etc., and the project expense details of the bill to be generated are obtained from the cost resource pool of the system according to the screening conditions. Then, attribute screening is performed according to the preset screening rules, wherein the screening rules can enumerate the project names corresponding to each fixed project and / or the project names corresponding to the project to be confirmed, and regular expressions can also be used to define the project names corresponding to the fixed project and / or the project names corresponding to the project to be confirmed. It is also possible to determine whether it is a fixed project or a project to be confirmed by the result of the logical operation through the logical operation of the specified field. For example, if a specific project name is designated as a fixed project name, then in the project expense details of the bill to be generated, the project names that match the preset fixed project names are fixed project expenses, and the other project expenses are pending confirmation project expenses.
[0049] According to one embodiment of the present invention, confirming the expenses of the project to be confirmed includes: storing the expenses of the project to be confirmed into a cost resource pool and generating a cost verification task; within a preset confirmation time, checking whether the verification result of the cost verification task has been received, and if the verification result of the cost verification task has been received, using the verification result as the confirmation result of the expenses of the project to be confirmed; if the verification result of the cost verification task has not been received, defining the confirmation result of the expenses of the project to be confirmed as a null value.
[0050] Specifically, for the unconfirmed project costs obtained by the above attribute screening, the unconfirmed project costs can be deleted from the above acquired project cost details, and the deleted unconfirmed project costs can be stored in the system's cost resource pool at the same time or subsequently. In order to better distinguish other project costs in the cost resource pool, these unconfirmed project costs can also be marked, and a cost verification task can be generated and issued to the corresponding verification interface. The verification interface issues the cost verification task and receives the verification result. Considering that the verification time of the unconfirmed project costs is different, and the verification time of some unconfirmed project costs is shorter, in order to ensure that the current generated bill contains complete project cost details, a confirmation time can be set, such as 8 hours, that is, the confirmation time is within 8 hours from the generation of the verification task. During the confirmation time, monitor whether the verification interface receives the verification result of the cost verification task. If it is received, the verification result is used as the confirmation result of the unconfirmed project costs. If the verification result is not received, the confirmation result of the unconfirmed project costs is defined as a null value to indicate that the confirmation result has not been received yet.
[0051] Step S103: Generate a bill based on the confirmation result of the to-be-confirmed item costs and the fixed item costs.
[0052] Specifically, based on the confirmation results of the project expenses to be confirmed and the fixed project expenses, determine the project expense details that can be included in the invoice to be generated, and generate an invoice with the project expense details that can be determined at the current moment according to the format of invoice generation and necessary additional information (such as electronic seal, signature, etc.).
[0053] According to one embodiment of the present invention, a bill is generated based on the confirmation result of the to-be-confirmed item expenses and the fixed item expenses, including: determining the billing task of the to-be-generated bill according to a preset billing strategy; when the confirmation result is a null value, executing the billing task and generating the bill according to the fixed item expenses; when the confirmation result is a non-null value, executing the billing task and generating the bill according to the confirmation result of the to-be-confirmed item expenses and the fixed item expenses.
[0054] Specifically, when a request to generate a bill is received, the recipient information of the bill can also be determined according to the request to generate the bill, and the preset billing strategy is obtained from the system according to the recipient information, which can specifically include the bill template, the bill reconciliation channel, the settlement channel, the settlement method, etc., to generate a bill task. It can be understood that the bill task can be generated after the project expense details are confirmed, or it can be generated after the type of the bill to be generated is determined, and a project expense detail list is added to the bill task to store and display the acquired project expense details of the bill to be generated, and then the bill task is suspended to perform the property screening of the project expense details and the confirmation of the project expenses to be confirmed, and after the confirmation time arrives, the bill task is started again to generate the bill.
[0055] Furthermore, if the confirmation result of the above-mentioned unconfirmed project costs is null, it means that the confirmation result of the unconfirmed project costs has not yet been completed, and the current bill cannot include these unconfirmed project costs. It is only necessary to execute the billing task based on the fixed project costs to generate a bill including the fixed project costs. If the confirmation result is a non-null value, it means that at least part of the unconfirmed project costs have been obtained, and the obtained at least part of the unconfirmed project costs and the fixed project costs are summarized, and the billing task is executed based on these project costs to generate a bill including the fixed project costs and at least part of the unconfirmed project costs.
[0056] According to another embodiment of the present invention, before generating the bill based on the confirmation result of the confirmation of the unconfirmed project expenses and the fixed project expenses, the method also includes: pushing the confirmation result and the fixed project expenses to the settlement personnel and the recipient of the bill for verification and review, and determining that the verification and review are passed.
[0057] Specifically, the embodiment of the present invention places the display of the project expense details of the bill to be generated before the bill task is executed. This not only allows the project expense details to be screened for attributes to flexibly and automatically generate bills that meet the needs, but also allows the expense verification (reconciliation) process to be advanced. While confirming the expenses of the project to be confirmed, the settlement personnel and the recipient of the bill can verify and check the fixed project expenses. Usually, fixed project expenses account for a large proportion. After obtaining the confirmation results of the expenses of the project to be confirmed, only the confirmation results of the expenses of the project to be confirmed need to be verified and audited. This can not only effectively improve the verification and audit (reconciliation) efficiency of the bill, but also the recipient can estimate the income / cost before issuing the bill and make a benefit analysis in advance, which solves the problem of delayed reconciliation and improves the recipient's experience.
[0058] According to another embodiment of the present invention, the method also includes: when the receipt time of the verification result of the expense verification task exceeds the confirmation time, in response to monitoring the attribute screening of a new bill with the same business information as the bill, updating the verification result to the item expense to be confirmed, and marking and inserting it into the item expense details of the new bill, so that the settlement personnel of the new bill can determine whether to include it in the new bill business.
[0059] Specifically, when the time of the verification result of the above-mentioned expense verification task is later than the confirmation time, that is, when the time of the verification result received through the verification interface is later than the waiting time for bill generation, when the attribute screening of the new bill of the next account period of the bill is monitored, the verification result is updated to the project expenses to be confirmed, and the corresponding bill mark is attached and inserted into the project expense details of the new bill, prompting the settlement personnel of the new bill that these project expenses are the verification results of the project expenses to be confirmed of the previous bill, so that the settlement personnel can determine whether to include these project expenses in the new bill business. If included, they will be deleted from the expense resource pool. If not included, they will be retained in the expense resource pool so that the settlement personnel can perform separate settlement or add them to the agreed bill later.
[0060] According to another embodiment of the present invention, the method also includes: when the type of the bill to be generated is the second type, determining the bill task of the bill according to a preset billing policy; generating a bill by executing the bill task, and pushing the bill to the settlement personnel and the recipient of the bill for verification and review; in response to receiving the review approval information from the settlement personnel and the recipient, confirming the bill.
[0061] Specifically, considering ordinary 2C services, since their project costs are relatively stable, there is no need to perform attribute screening and confirmation on the project cost details. In the embodiment of the present invention, when the type of bill to be generated is the second type, that is, the 2C user bill type, you can choose not to perform attribute screening. According to the recipient user information of the bill contained in the generation request, obtain the preset billing policy from the system and generate a bill task. Then execute the bill task, obtain the project cost details of the bill to be generated from the cost resource pool, directly generate the bill, and then push the generated bill to the settlement personnel and the recipient user of the bill for verification and review (reconciliation). Finally, after receiving the information that the review has passed, complete the confirmation of the bill.
[0062] Figure 2It is a detailed flow chart of bill generation and settlement of an embodiment of the present invention. When the set bill period arrives, the billing strategy is obtained from the system to generate a bill task according to the recipient information of the bill, and the type of the bill to be generated is determined. For the second type (2C user bill type), the bill is generated by executing the bill task; and pushed to the settlement personnel and the recipient of the bill for verification and review, and the bill is confirmed (reconciled) based on the information received that the review is passed; and then pushed to the settlement interface to perform the collection / payment business, completing the bill generation, reconciliation and settlement process of the bill 2C business.
[0063] For the first type (2B merchant bill type), start the flexible billing process, add a new project expense detail list in the bill task; suspend the execution of the bill task; store the project expenses of the bill to be generated obtained from the expense resource pool in the project expense detail list, and display the project expense details of the bill to be generated; filter the project expense details according to the preset filtering rules to obtain fixed project expenses and unconfirmed project expenses; delete the unconfirmed project expenses from the project expense detail list of the bill task, store them in the expense resource pool, and generate an expense verification task; when the verification result of the expense verification task is received within the preset confirmation time, the verification task will be completed. The result is used as the confirmation result of the project expenses to be confirmed and included in the project expense detail list stored in the fixed project expenses. According to the confirmation result and the fixed project expenses, the billing task is started to verify and review the confirmation result of the project expenses to be confirmed and the fixed project expenses. After the verification and review are passed, the billing task is continued to generate the bill; the subsequent process is similar to the second type, and the generated bill is pushed to the settlement personnel and the recipient of the bill for verification and review. According to the information received that the review is passed, the bill is confirmed (reconciled); then it is pushed to the settlement interface for collection / payment business, completing the bill generation, reconciliation and settlement process of the bill 2B business.
[0064] It should be noted that if the verification result of the expense verification task is not received within the preset confirmation time, Figure 2 If not explicitly stated, the relevant methods of this application can be followed: when the verification results are received, the verification results are stored in the expense resource pool, and when the attribute screening of the new bill of the next bill period is monitored, the verification results are updated to the item expenses to be confirmed, and marked and inserted into the item expense detail list of the new bill for new bill screening.
[0065] The bill generation method provided by the embodiment of the present invention can simultaneously support two business types, namely merchant business 2B and user business 2C, and perfectly integrates the 2B and 2C mixed business processes, realizes the separation of project cost details within the bill period, and facilitates more flexible bill generation; at the same time, the reconciliation business is also pre-placed in the flexible bill generation process, so that the recipient of the bill can estimate the income / cost before the bill is generated, and eliminates the steps of manually adjusting the bill in business transaction scenarios with variable project costs, thereby realizing automated and intelligent bill generation, reconciliation and settlement of the entire process, which not only improves the bill generation efficiency and billing settlement efficiency, but also supports more settlement and billing scenarios, and better meets actual needs.
[0066] Figure 3 Schematic diagram of the main modules of the apparatus for bill generation according to an embodiment of the present invention. Figure 3 As shown, the bill generating device 300 mainly includes a type determining module 301 , an attribute screening module 302 and a bill generating module 303 .
[0067] A type determination module 301, configured to determine the type of the bill to be generated from the generation request in response to receiving the bill generation request;
[0068] The attribute screening module 302 is used to obtain the item expense details of the to-be-generated invoice when the type of the to-be-generated invoice is the first type, screen the item expense details by attributes according to a preset screening rule, obtain fixed item expenses and to-be-confirmed item expenses, and confirm the to-be-confirmed item expenses;
[0069] The bill generation module 303 is used to generate a bill according to the confirmation result of the to-be-confirmed item costs and the fixed item costs.
[0070] According to one embodiment of the present invention, the attribute screening module 302 is also used to: store the expenses of the project to be confirmed into the expense resource pool and generate an expense verification task; within a preset confirmation time, check whether the verification result of the expense verification task has been received, and if the verification result of the expense verification task has been received, use the verification result as the confirmation result of the expenses of the project to be confirmed; if the verification result of the expense verification task has not been received, define the confirmation result of the expenses of the project to be confirmed as a null value.
[0071] According to another embodiment of the present invention, the bill generation module 303 is further used to: determine the bill task of the bill to be generated according to a preset billing strategy; when the confirmation result is a null value, execute the bill task and generate the bill according to the fixed item costs; when the confirmation result is a non-null value, execute the bill task and generate the bill according to the confirmation result of the item costs to be confirmed and the fixed item costs.
[0072] According to another embodiment of the present invention, the bill generating device 300 also includes a verification module (not shown in the figure), which is used to: based on the confirmation result of the confirmation of the to-be-confirmed item expenses and the fixed item expenses, before generating the bill, push the confirmation result and the fixed item expenses to the settlement personnel and the recipient of the bill for verification and review, and determine that the verification and review are passed.
[0073] According to another embodiment of the present invention, the bill generating device 300 also includes a module for updating expenses of items to be confirmed (not shown in the figure), which is used for: when the receiving time of the verification result of the expense verification task exceeds the confirmation time, in response to monitoring the attribute screening of a new bill with the same business information as the bill, updating the verification result to the expenses of the items to be confirmed, and marking and inserting it into the item expense details of the new bill, so that the settlement personnel of the new bill can determine whether to include it in the new bill business.
[0074] According to another embodiment of the present invention, the bill generating device 300 also includes a second type bill generating module (not shown in the figure), which is used to: when the type of the bill to be generated is the second type, determine the bill task of the bill according to a preset billing policy; generate a bill by executing the bill task, and push the bill to the settlement personnel and the recipient of the bill for verification and review; in response to receiving the review approval information from the settlement personnel and the recipient, confirm the bill.
[0075] According to another embodiment of the present invention, the request for generating the bill is triggered by a preset bill period or manually; the type determination module 301 is also used to determine the type of the bill to be generated according to the business type in the generation request, and the business type includes a merchant type and a user type.
[0076] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention can be applied.
[0077] like Figure 4As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0078] Users can use terminal devices 401, 402, 403 to interact with server 405 via network 404 to receive or send messages, etc. Various communication client applications, such as bill generation applications, etc., can be installed on terminal devices 401, 402, 403 (only as an example).
[0079] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0080] Server 405 may be a server that provides various services, such as a background management server (only an example) that provides support for bill generation by users using terminal devices 401, 402, and 403. In response to receiving a request to generate a bill, the background management server may determine the type of bill to be generated from the generation request; if the type of the bill to be generated is the first type, obtain the item cost details of the bill to be generated, perform attribute screening on the item cost details according to preset screening rules, obtain fixed item costs and unconfirmed item costs, and confirm the unconfirmed item costs; generate a bill based on the confirmation result of the unconfirmed item costs and the fixed item costs, and feed back the processing result (such as a bill, etc. - only an example) to the terminal device.
[0081] It should be noted that the bill generation method provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the bill generation device is generally set in the server 405 .
[0082] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0083] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device or a server suitable for implementing an embodiment of the present invention. Figure 5 The terminal device or server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0084] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0085] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0086] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable 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 part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0087] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the 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 invention, 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 invention, 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. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, 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 medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination thereof.
[0088] 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 invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, 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 box can also occur in a sequence different from that marked in the accompanying drawings. For example, two 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 box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0089] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes: a type determination module, an attribute screening module and a bill generation module.
[0090] Among them, the names of these modules do not constitute a limitation of the module itself in some cases. For example, the type determination module can also be described as "a module for determining the type of bill to be generated from the generation request in response to receiving a bill generation request."
[0091] On the other hand, the present invention also provides a computer-readable medium, which may be included in the device described in the embodiment; or it may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs, and when the one or more programs are executed by a device, the device includes: in response to receiving a request to generate a bill, determining the type of the bill to be generated from the generation request; when the type of the bill to be generated is the first type, obtaining the project cost details of the bill to be generated, performing attribute screening on the project cost details according to preset screening rules, obtaining fixed project costs and project costs to be confirmed, and confirming the project costs to be confirmed; generating a bill according to the confirmation result of the project costs to be confirmed and the fixed project costs.
[0092] The technical solution according to the embodiment of the present invention has the following advantages or beneficial effects: by responding to a request for generating a bill received, determining the type of the bill to be generated from the request for generating the bill; when the type of the bill to be generated is the first type, obtaining the project cost details of the bill to be generated, performing attribute screening on the project cost details according to preset screening rules, obtaining fixed project costs and project costs to be confirmed, and confirming the project costs to be confirmed; based on the confirmation results of the project costs to be confirmed and the fixed project costs, a technical solution for generating bills realizes automated, intelligent and flexible settlement and billing, and eliminates the steps of manually adjusting the bill when the project costs are variable, which not only improves the efficiency of bill generation, but also supports more settlement and billing scenarios, and better meets actual needs.
[0093] The specific implementation methods described herein do not constitute limitations on the scope of protection of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A method for generating a bill, characterized in that: include: In response to receiving a request for generating a bill, determining a type of the bill to be generated from the request for generating the bill; In the case that the type of the bill to be generated is the first type, obtaining the item expense details of the bill to be generated, performing attribute screening on the item expense details according to a preset screening rule, obtaining fixed item expenses and unconfirmed item expenses, and confirming the unconfirmed item expenses; A bill is generated according to the confirmation result of the unconfirmed project expenses and the fixed project expenses.
2. The method according to claim 1, characterized in that Confirm the expenses of the items to be confirmed, including: Deposit the project expenses to be confirmed into the expense resource pool and generate an expense verification task; Within the preset confirmation time, check whether the verification result of the expense verification task is received. If the verification result of the expense verification task is received, use the verification result as the confirmation result of the expense of the item to be confirmed; if the verification result of the expense verification task is not received, define the confirmation result of the expense of the item to be confirmed as a null value.
3. The method according to claim 2, characterized in that Generate a bill based on the confirmation result of the unconfirmed project expenses and the fixed project expenses, including: Determine the billing task for the bill to be generated according to a preset billing strategy; When the confirmation result is a null value, the bill task is executed according to the fixed item cost to generate a bill; In the case where the confirmation result is a non-null value, the bill task is executed to generate a bill according to the confirmation result of the to-be-confirmed item cost and the fixed item cost.
4. The method according to claim 1, characterized in that: According to the confirmation result of the to-be-confirmed item costs and the fixed item costs, before generating the bill, the method further includes: The confirmation result and the fixed item fee are pushed to the settlement personnel and the recipient of the bill for verification and review, and it is determined that the verification and review have passed.
5. The method according to claim 2, characterized in that: The method further comprises: When the time of receiving the verification result of the expense verification task exceeds the confirmation time, in response to monitoring the attribute screening of a new bill with the same business information as the bill, the verification result is updated to the item expense to be confirmed and marked and inserted into the item expense details of the new bill so that the settlement personnel of the new bill can determine whether to include it in the new bill business.
6. The method according to claim 1, characterized in that The method further comprises: In a case where the type of the bill to be generated is the second type, determining a billing task for the bill according to a preset billing policy; Generate an invoice by executing the invoice task, and push the invoice to the settlement personnel and recipient of the invoice for verification and review; In response to receiving the approval information from the settlement personnel and the recipient, the bill is confirmed.
7. The method according to claim 1, characterized in that The bill generation request is triggered by a preset bill period or manually; Determining the type of the bill to be generated from the generation request includes: The type of the bill to be generated is determined according to the business type in the generation request, where the business type includes a merchant type and a user type.
8. A bill generating device, characterized in that: include: A type determination module, configured to determine the type of the bill to be generated from the generation request in response to receiving the bill generation request; An attribute screening module, for obtaining, when the type of the invoice to be generated is the first type, item expense details of the invoice to be generated, performing attribute screening on the item expense details according to a preset screening rule, obtaining fixed item expenses and item expenses to be confirmed, and confirming the item expenses to be confirmed; The bill generation module is used to generate a bill according to the confirmation result of the to-be-confirmed project expenses and the fixed project expenses.
9. A mobile electronic device terminal, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Payment method for water, electricity, gas and networks of family and system thereof
CN104063782A
Logistics business data processing method and device, electronic equipment and storage medium
CN113393219A
Information processing device and program
JP2022047916A
Systems and methods for real-time, distributed processing of group bill payments
US20200013037A1
Blockchain-based settlement method, blockchain node and client
WO2019179278A1