Rule engine-based automatic invoicing method and device, computer equipment and medium
Through the automatic invoice billing method based on the rules engine, the traditional low efficiency of manual invoice is solved, and the automated processing from order to invoice is realized, the invoice billing efficiency and accuracy are improved, manual intervention is reduced, and different user needs are adapted.
Patent Information
- Application Number
- CN202411173789.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-11-08
AI Technical Summary
The traditional manual invoice is inefficient, which results in the invoice process taking up more manual processing time and being less efficient.
Using the automatic invoice billing method based on the rules engine, by obtaining order data from multiple business platforms, generating reconciliation data, receiving user confirmation results, calculating resource bills, and generating invoice billing applications based on the preset rule engine, sending them to the electronic invoice system, receiving And process the invoice results.
It realizes the entire process from order to invoice issuance, improves the efficiency and accuracy of invoice issuance, reduces manual intervention, flexibly adapts to the invoice needs of different users, and improves the efficiency and flexibility of invoice issuance.
Smart Images

Figure CN118917908A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an automatic invoicing method, apparatus, computer equipment, computer-readable storage medium, and computer program product based on a rule engine. Background Art
[0002] With the development of computer technology, invoicing has important applications in many fields. By improving the efficiency of invoicing, the overall efficiency of subsequent resource processing can be improved. Therefore, how to efficiently issue invoices has become an important research direction.
[0003] Traditional technology usually performs invoicing operations through manual invoicing; however, invoicing through this method requires a lot of manual processing time, resulting in low invoicing efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a rule-engine-based automatic invoicing method, apparatus, computer device, computer-readable storage medium and computer program product that can improve the efficiency of invoicing in response to the above technical problems.
[0005] In a first aspect, the present application provides an automatic invoicing method based on a rule engine. The method comprises:
[0006] Obtain order data from multiple business platforms;
[0007] Generate reconciliation data according to the order data, and send the reconciliation data to the user terminal;
[0008] Receiving a confirmation result of the user terminal on the reconciliation data;
[0009] According to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a reconciliation successful order;
[0010] Calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio;
[0011] Generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0012] Sending the invoicing application to the electronic invoicing system;
[0013] Receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0014] In one embodiment, the multiple business platforms include a business travel platform, a personal shopping mall platform, an enterprise shopping mall platform and a supply chain finance platform;
[0015] The obtaining of order data from multiple business platforms includes:
[0016] Obtain, by means of an offline collection tool, the first order sub-data of the business travel platform, the second order sub-data of the personal mall platform, the third order sub-data of the enterprise mall platform, and the fourth order sub-data of the supply chain finance platform;
[0017] The first order sub-data, the second order sub-data, the third order sub-data and the fourth order sub-data are used as the order data.
[0018] In one embodiment, generating the invoicing application corresponding to the resource bill according to a preset rule engine includes:
[0019] According to the rule engine, determining whether the resource bill is split and invoiced by cost center;
[0020] In the case where the resource bill is not invoiced separately according to the cost center, a combined invoicing application process is performed on the attribute information of the resource bill and the invoicing header information of the resource bill to obtain an invoicing application corresponding to the resource bill.
[0021] In one embodiment, the method further comprises:
[0022] In the case where the resource bill is split and invoiced according to the cost center, determining whether the resource bill is split and invoiced in full according to the cost center;
[0023] In the case where the resource bill is not invoiced completely separately according to the cost center, the attribute information, the cost center, the invoicing header information, the invoicing details of the resource bill and the buyer and seller display information of the resource bill are processed for a combined invoicing application to obtain an invoicing application corresponding to the resource bill;
[0024] In the case where the resource bill is invoiced separately according to the cost center, the attribute information, the cost center, the invoicing header information, the invoicing detail information and the buyer and seller display information are processed without combining the invoicing application to obtain the invoicing application corresponding to the resource bill.
[0025] In one embodiment, after receiving the invoicing result corresponding to the invoicing application returned by the electronic invoice system, the method further includes:
[0026] Sending the invoicing result to the settlement terminal through a preset first notification method;
[0027] The invoicing result is sent to the settlement terminal through a preset second notification method.
[0028] In one embodiment, generating reconciliation data according to the order data includes:
[0029] Selecting order data in a completed state from the order data as target order data;
[0030] The reconciliation data is generated according to the target order data.
[0031] In a second aspect, the present application also provides an automatic invoicing device based on a rule engine. The device comprises:
[0032] Data acquisition module, used to obtain order data from multiple business platforms;
[0033] A data sending module, used to generate reconciliation data according to the order data, and send the reconciliation data to the user end;
[0034] A first receiving module, configured to receive a confirmation result of the reconciliation data from the user end;
[0035] A data marking module, used for marking the order data corresponding to the confirmed correct reconciliation data as a successfully reconciled order according to the confirmation result;
[0036] A bill calculation module, used to calculate the resource bill corresponding to the successfully reconciled order according to a preset resource ratio;
[0037] An application generation module, used to generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0038] An application sending module, used for sending the invoicing application to the electronic invoice system;
[0039] The second receiving module is used to receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0040] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0041] Obtain order data from multiple business platforms;
[0042] Generate reconciliation data according to the order data, and send the reconciliation data to the user terminal;
[0043] Receiving a confirmation result of the user terminal on the reconciliation data;
[0044] According to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a reconciliation successful order;
[0045] Calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio;
[0046] Generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0047] Sending the invoicing application to the electronic invoicing system;
[0048] Receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0049] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0050] Obtain order data from multiple business platforms;
[0051] Generate reconciliation data according to the order data, and send the reconciliation data to the user terminal;
[0052] Receiving a confirmation result of the user terminal on the reconciliation data;
[0053] According to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a reconciliation successful order;
[0054] Calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio;
[0055] Generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0056] Sending the invoicing application to the electronic invoicing system;
[0057] Receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0058] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0059] Obtain order data from multiple business platforms;
[0060] Generate reconciliation data according to the order data, and send the reconciliation data to the user terminal;
[0061] Receiving a confirmation result of the user terminal on the reconciliation data;
[0062] According to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a reconciliation successful order;
[0063] Calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio;
[0064] Generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0065] Sending the invoicing application to the electronic invoicing system;
[0066] Receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0067] The above-mentioned automatic invoicing method, device, computer equipment, computer-readable storage medium and computer program product based on the rule engine obtain order data of multiple business platforms; generate reconciliation data according to the order data, and send the reconciliation data to the user end; receive the confirmation result of the reconciliation data by the user end; according to the confirmation result, mark the order data corresponding to the confirmed correct reconciliation data as a successfully reconciled order; calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio; generate the invoicing application corresponding to the resource bill according to the preset rule engine; send the invoicing application to the electronic invoice system; receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system. This solution is conducive to improving the efficiency and accuracy of invoicing and reducing manual intervention by automating the entire process from order acquisition to invoicing. At the same time, the automatic invoicing application generation based on the rule engine is conducive to flexibly adapting to the invoicing needs of different users, thereby improving the efficiency and flexibility of invoicing. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0069] Figure 1 A schematic diagram of a process of an automatic invoicing method based on a rule engine in one embodiment;
[0070] Figure 2 A flowchart of an automatic invoicing method based on a rule engine in another embodiment;
[0071] Figure 3 It is a flowchart of an automatic invoicing method based on a rule engine in another embodiment;
[0072] Figure 4 A timing diagram of an automatic invoicing method based on a rule engine in one embodiment;
[0073] Figure 5 It is a structural block diagram of an automatic invoicing device based on a rule engine in one embodiment;
[0074] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0076] 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 regulations.
[0077] In an exemplary embodiment, Figure 1 As shown, an automatic invoicing method based on a rule engine is provided. This embodiment uses the method applied to a terminal as an example for illustration; it can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be but is not limited to various personal computers, laptops, smart phones, tablet computers, etc.; the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. In this embodiment, the method includes the following steps:
[0078] Step S101, obtaining order data of multiple business platforms.
[0079] Step S102, generating reconciliation data according to the order data, and sending the reconciliation data to the user end.
[0080] Step S103, receiving the confirmation result of the reconciliation data from the user end.
[0081] Step S104: based on the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a successfully reconciled order.
[0082] Step S105, calculating the resource bill corresponding to the successfully reconciled order according to the preset resource ratio.
[0083] Step S106: Generate an invoicing application corresponding to the resource bill according to a preset rule engine.
[0084] Step S107: Send the invoicing application to the electronic invoice system.
[0085] Step S108, receiving the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0086] Among them, the multiple business platforms can be online systems that provide various business services. For example, the multiple business platforms can be business travel platforms, personal malls, corporate malls and / or supply chain financial platforms.
[0087] Among them, order data can be information records generated when users transfer resources (such as transactions) on the business platform. For example, order data can be business travel orders, personal mall orders, corporate mall orders and / or supply chain orders.
[0088] Among them, the reconciliation data can be data generated based on the order data for verifying resource transfer information. For example, the reconciliation data can be an enterprise business travel order reconciliation statement, a personal mall order reconciliation statement, an enterprise mall order reconciliation statement and / or a supply chain order reconciliation statement, etc.
[0089] Among them, the user end can be a terminal device used by a user (such as a customer) to view and confirm reconciliation data.
[0090] The confirmation result may be feedback from the user after verifying the reconciliation data. For example, the confirmation result may be a mark indicating that the reconciliation is undisputed or successful.
[0091] The successfully reconciled order may be an order that has been confirmed by the user to be correct, for example, the successfully reconciled order may be an order that is marked as successfully reconciled.
[0092] The preset resource ratio may be a service fee ratio pre-set according to a contract agreement. For example, the preset resource ratio may be a service fee ratio agreed upon in a contract agreement signed by a supplier.
[0093] The resource bill may be a fee bill calculated based on successfully reconciled orders and a preset resource ratio.
[0094] Among them, the preset rule engine can be a preset set of logical rules or models for automatically generating invoicing applications. For example, the preset rule engine can include rules or models for invoicing processing based on information such as cost center and invoice header, where the model can be a neural network model.
[0095] The invoicing application may be invoice application information generated according to a resource bill and a preset rule engine.
[0096] Among them, the electronic invoice system can be an external service system for processing the issuance of electronic invoices. For example, the electronic invoice system can be a platform that can receive invoice applications and return electronic invoice results.
[0097] The invoicing result may be information returned by the electronic invoice system after processing the invoicing application. For example, the invoicing result may include a QR code of the electronic invoice and files in various formats.
[0098] Optionally, the terminal obtains order data from multiple business platforms through data collection tools, including order information of business travel platforms, personal malls, corporate malls and supply chain financial platforms; generates a corresponding statement based on the obtained order data, and sends the statement to the user end for confirmation; receives the confirmation result of the reconciliation data sent by the user end; based on the confirmation result, the confirmed correct order is marked as a successfully reconciled order; calculates the receivables of the successfully reconciled order according to a pre-set service fee ratio, and generates a resource bill; automatically generates an invoicing application corresponding to the resource bill according to a preset rule engine; sends the invoicing application to the electronic invoice system for processing, and receives the invoicing result returned by the electronic invoice system.
[0099] In the above automatic invoicing method based on the rule engine, order data of multiple business platforms are obtained; reconciliation data is generated according to the order data, and the reconciliation data is sent to the user end; the confirmation result of the reconciliation data by the user end is received; according to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a successfully reconciled order; according to the preset resource ratio, the resource bill corresponding to the successfully reconciled order is calculated; according to the preset rule engine, the invoicing application corresponding to the resource bill is generated; the invoicing application is sent to the electronic invoice system; and the invoicing result corresponding to the invoicing application returned by the electronic invoice system is received. This solution automates the entire process from order acquisition to invoicing, which is conducive to improving the efficiency and accuracy of invoicing and reducing manual intervention. At the same time, the automatic invoicing application generation based on the rule engine is conducive to flexibly adapting to the invoicing needs of different users, thereby improving the efficiency and flexibility of invoicing.
[0100] In an exemplary embodiment, in step S101, order data of multiple business platforms are obtained, specifically including the following contents: through an offline collection tool, the first order sub-data of the business travel platform, the second order sub-data of the personal mall platform, the third order sub-data of the enterprise mall platform and the fourth order sub-data of the supply chain finance platform are obtained; the first order sub-data, the second order sub-data, the third order sub-data and the fourth order sub-data are used as order data.
[0101] Among them, multiple business platforms include business travel platform, personal mall platform, enterprise mall platform and supply chain finance platform.
[0102] Among them, the business travel platform can be an online system that provides travel services. For example, the business travel platform can be a platform that provides services such as air tickets and hotel reservations.
[0103] Among them, the personal shopping mall platform can be an online shopping system for individual users. For example, the personal shopping mall platform can be an e-commerce platform that provides daily necessities, electronic products and other commodities.
[0104] Among them, the enterprise mall platform can be an online procurement system for corporate users. For example, the enterprise mall platform can be a procurement platform that provides office supplies, corporate equipment and other commodities.
[0105] Among them, the supply chain finance platform can be an online system that provides financial services to enterprises.
[0106] Among them, the offline collection tool can be a data collection tool used to obtain order data from various business platforms.
[0107] Optionally, the terminal obtains the first order sub-data from the business travel platform, the second order sub-data from the personal mall platform, the third order sub-data from the enterprise mall platform, and the fourth order sub-data from the supply chain finance platform through an offline collection tool; after the acquisition is completed, the first order sub-data, the second order sub-data, the third order sub-data and the fourth order sub-data are merged to form complete order data.
[0108] The technical solution provided in this embodiment obtains different types of order sub-data from multiple business platforms through offline collection tools, which is conducive to centralized management and unified processing of data, thereby facilitating improving the efficiency and accuracy of subsequent invoicing.
[0109] In an exemplary embodiment, in step S106, an invoicing application corresponding to the resource bill is generated according to a preset rule engine, which specifically includes the following contents: according to the rule engine, it is determined whether the resource bill is invoiced separately by cost center; if the resource bill is not invoiced separately by cost center, the attribute information of the resource bill and the invoicing header information of the resource bill are combined for invoicing application processing to obtain the invoicing application corresponding to the resource bill.
[0110] Among them, the cost center can be an organizational unit within the enterprise for accounting for costs and expenses. For example, the cost center can be a company's different departments, project groups or business units.
[0111] The attribute information may be basic characteristic data of the resource bill, for example, the attribute information may include name, reconciliation status, order-related information, etc.
[0112] The invoicing header information may be the purchaser information displayed on the invoice, for example, the invoicing header information may include company information.
[0113] The combined invoicing application processing may be a process of combining multiple qualified resource bills into one invoicing application. For example, the combined invoicing application processing may be a process of combining multiple resource bills with the same user name and invoicing header into one invoicing application.
[0114] Optionally, the terminal analyzes the resource bill according to a preset rule engine to determine whether it is necessary to split the invoice by cost center; if the judgment result is that it is not necessary to split the invoice by cost center, the attribute information of the resource bill and the invoice header information of the resource bill are combined for invoicing application processing to obtain the invoicing application corresponding to the resource bill.
[0115] For example, the terminal will detect the name, invoice header and other information of the resource bill; if multiple resource bills have the same name and invoice header, the terminal will merge these resource bills; during the merging process, the terminal will give priority to the invoice header of the last invoicing application. If there is no last invoicing record, the default invoice header corresponding to the user will be selected; in this way, the terminal can generate a comprehensive invoicing application containing information of multiple resource bills, thereby simplifying the invoicing process and improving processing efficiency.
[0116] The technical solution provided in this embodiment helps to simplify the invoicing process and improve invoicing efficiency by judging whether the resource bill is split and invoiced by cost center, and merging the bills with the same attributes and invoicing headers without splitting them.
[0117] In an exemplary embodiment, the following contents are also included: when the resource bill is invoiced separately by cost center, determine whether the resource bill is invoiced separately by cost center; when the resource bill is not invoiced separately by cost center, perform combined invoicing application processing on the attribute information, cost center, invoicing header information, invoicing details information of the resource bill and the buyer and seller display information of the resource bill to obtain the invoicing application corresponding to the resource bill; when the resource bill is invoiced separately by cost center, perform uncombined invoicing application processing on the attribute information, cost center, invoicing header information, invoicing details information and the buyer and seller display information to obtain the invoicing application corresponding to the resource bill.
[0118] The invoicing details may be specific commodity or service information that needs to be listed on the invoice, for example, the invoicing details may be commodity name, specification model, unit price, quantity, etc.
[0119] The buyer and seller display information may be the detailed information of the seller and the buyer displayed on the invoice, for example, the buyer and seller display information may include the name, address, etc. of the seller and the buyer.
[0120] Optionally, the terminal determines whether the resource bill is invoiced separately by cost center; if the resource bill needs to be invoiced separately by cost center, it will further determine whether the invoicing needs to be split completely by cost center; in the case that the resource bill is not invoiced completely by cost center, the attribute information, cost center, invoice header information, invoice detail information and buyer and seller display information are processed for a combined invoicing application to generate a combined invoicing application, for example, order information with the same user name, same cost center, same invoice header, same invoice detail requirements and same buyer and seller display requirements are merged to generate an invoicing application; in the case that the resource bill is invoiced completely by cost center, the attribute information, cost center, invoice header information, invoice detail information and buyer and seller display information are processed for a non-combined invoicing application to obtain the invoicing application corresponding to the resource bill, for example, a separate invoicing application is generated for each order of each cost center without merging.
[0121] The technical solution provided in this embodiment is conducive to flexibly adapting to the invoicing needs of different enterprises by judging whether the resource bill is fully split and invoiced according to the cost center, and choosing to merge or not merge according to the judgment result, so as to improve the efficiency and accuracy of invoicing and meet the diversified financial data processing requirements of enterprises.
[0122] In an exemplary embodiment, after receiving the invoicing result corresponding to the invoicing application returned by the electronic invoice system, it also includes the following content: sending the invoicing result to the settlement end through a preset first notification method; sending the invoicing result to the settlement end through a preset second notification method.
[0123] The preset first notification method may be a preset information transmission method for sending the invoicing result to the settlement end. For example, the preset first notification method may be a text message notification.
[0124] The preset second notification method may be another preset information transmission method for sending the invoicing result to the settlement end. For example, the preset second notification method may be an email notification.
[0125] Among them, the settlement end can be a terminal or system that receives the invoicing results and is responsible for processing and managing invoice-related information. For example, the settlement end can be a device or system used by financial settlement personnel.
[0126] Among them, the invoicing results may include the electronic invoice's QR code, XML (Extensible Markup Language) format file, PDF (Portable Document Format) format file, and OFD (Open Document Format) format file, etc.
[0127] Optionally, the terminal first sends the invoicing result to the mobile phone of the financial settlement personnel registered with the supplier through a preset first notification method (such as SMS), and then sends the invoicing result to the email address of the financial settlement personnel through a preset second notification method (such as email).
[0128] The technical solution provided in this embodiment sends the invoicing results to the settlement end through a double notification mechanism, which is beneficial to improving the reliability and timeliness of information transmission, thereby helping to improve the efficiency and accuracy of financial data processing.
[0129] In an exemplary embodiment, in step S102, reconciliation data is generated according to order data, which specifically includes the following contents: selecting order data in a completed state from the order data as target order data; and generating reconciliation data according to the target order data.
[0130] The completion status may refer to a status in which the order has completed resource transfer.
[0131] The target order data may be order information that is in a resource transfer completion state and is screened out from the order data.
[0132] Optionally, the terminal collects order data from multiple business platforms through a scheduled task or trigger mechanism, and aggregates the order data; filters out order data in a completed state from the aggregated order data, and marks the order data in a completed state as target order data; and automatically generates reconciliation data based on the target order data.
[0133] The technical solution provided in this embodiment helps to ensure the accuracy of the reconciliation data by selecting order data in a completed state as target order data and generating reconciliation data based on the target order data, thereby helping to improve the accuracy of subsequent invoicing.
[0134] The following is an application example to illustrate the automatic invoicing method based on the rule engine provided by this application. This application example uses the method applied to the terminal as an example. Figure 2 , the main steps include:
[0135] In the first step, the terminal uses offline collection tools to extract orders from the business travel platform, personal mall, corporate mall, and supply chain finance platform to the settlement platform.
[0136] In the second step, the terminal selects orders with completed transaction status according to business type (business travel, personal, enterprise, finance), creates supplier statements, sends them to users for reconciliation, and marks the reconciliation success for orders without objection.
[0137] In the third step, the terminal calculates the expense bill to be received based on the service fee ratio agreed in the contract with the supplier.
[0138] In the fourth step, the terminal automatically selects the expense bill according to the business type and daily and applies for invoicing.
[0139] In the fifth step, the terminal combines the supplier name and invoice header of the statement to be invoiced with the rule engine for automatic invoicing. The rule engine is as follows: Whether the invoice is split by cost center:
[0140] (1) No. Invoices will be processed by directly combining the same user name and invoice title (if available, the invoice title of the last invoice application will be selected first; if not available, the default invoice title corresponding to the user will be selected).
[0141] (2) Yes.
[0142] 1) Invoicing is fully split by cost center:
[0143] ①No. According to user name + cost center + invoice title (if available, the invoice title of the last invoice application is preferred, if not available, the default invoice title corresponding to the user is selected) + whether invoice details are required + whether the buyer and seller are displayed, the same merged invoice processing;
[0144] ②Yes. According to user name + cost center + invoice title (if available, the invoice title of the last invoice application is preferred, if not available, the default invoice title corresponding to the user is selected) + whether invoice details are required + whether the buyer and seller are displayed, invoice processing is performed directly without merging.
[0145] In the sixth step, the terminal automatically calls the interface of the electronic invoice system, submits the invoice application, and obtains the invoice result, and calls the return status of the digital invoice platform, the corresponding QR code of the electronic invoice, and the corresponding format file of the electronic invoice.
[0146] In the seventh step, the terminal pushes the invoicing results to the financial settlement personnel registered with the supplier via SMS + email.
[0147] For example, refer to Figure 3 The terminal generates a business travel platform order statement based on the business travel order, generates a personal mall order statement based on the personal mall order, generates an enterprise mall order statement based on the enterprise mall order, and generates a supply chain finance platform order statement based on the supply chain finance platform order; generates an expense bill according to the contract service fee rules based on the successfully reconciled business travel platform order statement, the successfully reconciled personal mall order statement, the successfully reconciled enterprise mall order statement and the successfully reconciled supply chain finance platform order statement; selects the expense bill; matches the invoicing rule engine to generate an invoicing application; obtains the electronic invoice result from the invoice system; and pushes the invoicing result to the supplier settlement personnel.
[0148] For example, refer to Figure 4The terminal synchronizes data through scheduled tasks every day; the settlement center processes the order data in the warehouse; the business end creates a new statement, and the settlement center selects the bill for reconciliation according to the business type; the settlement center confirms the reconciliation and the reconciliation ends; the business end selects the bill to apply for invoicing; the settlement center verifies the bill invoicing information to see if it meets the invoicing conditions; assembles the invoicing content according to the bill data; requests the invoicing system to apply for the invoicing interface; the invoicing system processes the information, the application is successful, and the application ends; the terminal schedules tasks regularly and queries the invoicing system for invoicing information at regular intervals according to the configuration; the settlement center queries the invoicing data; requests the invoice information query interface of the invoicing system according to the invoice serial number; the invoicing system queries the invoice information and returns the invoice information; the settlement center updates the bill and ticket amount data according to the invoice information such as the electronic QR code and file returned by the invoice system.
[0149] Among them, the settlement center: is mainly used to collect business system orders, reconcile, calculate receivables, and issue electronic invoices in an integrated manner, solving the problem of generating financial accounting data from receivables and payables data on the business side.
[0150] Among them, the invoicing system: electronic invoicing platform, the external service end for issuing electronic invoices in the settlement center.
[0151] The technical solution provided by this application example helps to improve the efficiency and accuracy of invoicing and reduce manual intervention by automating the entire process from order acquisition to invoicing. At the same time, the automatic invoicing application generation based on the rule engine helps to flexibly adapt to the invoicing needs of different users, thereby improving the efficiency and flexibility of invoicing.
[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides a rule-engine-based automatic invoicing device for implementing the rule-engine-based automatic invoicing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more rule-engine-based automatic invoicing device embodiments provided below can refer to the above limitations on the rule-engine-based automatic invoicing method, and will not be repeated here.
[0154] In an exemplary embodiment, Figure 5 As shown, an automatic invoicing device based on a rule engine is provided. The automatic invoicing device based on a rule engine 500 may include:
[0155] Data acquisition module 501, used to acquire order data from multiple business platforms;
[0156] The data sending module 502 is used to generate reconciliation data according to the order data and send the reconciliation data to the user end;
[0157] The first receiving module 503 is used to receive the confirmation result of the reconciliation data from the user end;
[0158] The data marking module 504 is used to mark the order data corresponding to the confirmed correct reconciliation data as a reconciliation successful order according to the confirmation result;
[0159] The bill calculation module 505 is used to calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio;
[0160] The application generation module 506 is used to generate an invoicing application corresponding to the resource bill according to a preset rule engine;
[0161] The application sending module 507 is used to send the invoicing application to the electronic invoice system;
[0162] The second receiving module 508 is used to receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
[0163] In an exemplary embodiment, the multiple business platforms include a business travel platform, a personal mall platform, an enterprise mall platform and a supply chain finance platform; the data acquisition module 501 is also used to acquire the first order sub-data of the business travel platform, the second order sub-data of the personal mall platform, the third order sub-data of the enterprise mall platform and the fourth order sub-data of the supply chain finance platform through an offline collection tool; and use the first order sub-data, the second order sub-data, the third order sub-data and the fourth order sub-data as order data.
[0164] In an exemplary embodiment, the application generation module 506 is also used to determine whether the resource bill is invoiced separately by cost center based on the rule engine; if the resource bill is not invoiced separately by cost center, the attribute information of the resource bill and the invoicing header information of the resource bill are combined for invoicing application processing to obtain the invoicing application corresponding to the resource bill.
[0165] In an exemplary embodiment, the device 500 also includes: a bill judgment module, which is used to determine whether the resource bill is invoiced separately by cost center when the resource bill is invoiced separately by cost center; when the resource bill is not invoiced separately by cost center, the attribute information, cost center, invoicing header information, invoicing details of the resource bill and the buyer and seller display information of the resource bill are processed for a combined invoicing application to obtain an invoicing application corresponding to the resource bill; when the resource bill is invoiced separately by cost center, the attribute information, cost center, invoicing header information, invoicing details and buyer and seller display information are processed for a non-combined invoicing application to obtain an invoicing application corresponding to the resource bill.
[0166] In an exemplary embodiment, the device 500 further includes: a result sending module, configured to send the invoicing result to the settlement end through a preset first notification method; and send the invoicing result to the settlement end through a preset second notification method.
[0167] In an exemplary embodiment, the data sending module 502 is further used to select order data in a completed state from the order data as target order data; and generate reconciliation data according to the target order data.
[0168] Each module in the above-mentioned automatic invoicing device based on rule engine can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0169] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an automatic invoicing method based on a rule engine is realized. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0170] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0171] In an exemplary embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0172] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0173] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.
[0174] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0175] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0176] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An automatic invoicing method based on rule engine, It is characterized in that The method comprises: Obtain order data from multiple business platforms; Generate reconciliation data according to the order data, and send the reconciliation data to the user terminal; Receiving a confirmation result of the user terminal on the reconciliation data; According to the confirmation result, the order data corresponding to the confirmed correct reconciliation data is marked as a reconciliation successful order; Calculate the resource bill corresponding to the successfully reconciled order according to the preset resource ratio; Generate an invoicing application corresponding to the resource bill according to a preset rule engine; Sending the invoicing application to the electronic invoicing system; Receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
2. The method according to claim 1, It is characterized in that The multiple business platforms include a business travel platform, a personal shopping mall platform, an enterprise shopping mall platform and a supply chain finance platform; The obtaining of order data from multiple business platforms includes: Obtain, by means of an offline collection tool, the first order sub-data of the business travel platform, the second order sub-data of the personal mall platform, the third order sub-data of the enterprise mall platform, and the fourth order sub-data of the supply chain finance platform; The first order sub-data, the second order sub-data, the third order sub-data and the fourth order sub-data are used as the order data.
3. The method according to claim 1, It is characterized in that The generating, according to a preset rule engine, an invoicing application corresponding to the resource bill comprises: According to the rule engine, determining whether the resource bill is split and invoiced by cost center; In the case where the resource bill is not invoiced separately according to the cost center, a combined invoicing application process is performed on the attribute information of the resource bill and the invoicing header information of the resource bill to obtain an invoicing application corresponding to the resource bill.
4. The method according to claim 3, It is characterized in that The method further comprises: In the case where the resource bill is split and invoiced according to the cost center, determining whether the resource bill is split and invoiced in full according to the cost center; In the case where the resource bill is not invoiced completely separately according to the cost center, the attribute information, the cost center, the invoicing header information, the invoicing details of the resource bill and the buyer and seller display information of the resource bill are processed for a combined invoicing application to obtain an invoicing application corresponding to the resource bill; In the case where the resource bill is invoiced separately according to the cost center, the attribute information, the cost center, the invoicing header information, the invoicing detail information and the buyer and seller display information are processed without combining the invoicing application to obtain the invoicing application corresponding to the resource bill.
5. The method according to claim 1, It is characterized in that After receiving the invoicing result corresponding to the invoicing application returned by the electronic invoice system, the method further includes: Sending the invoicing result to the settlement terminal through a preset first notification method; The invoicing result is sent to the settlement terminal through a preset second notification method.
6. The method according to any one of claims 1 to 5, It is characterized in that The generating reconciliation data according to the order data includes: Selecting order data in a completed state from the order data as target order data; The reconciliation data is generated according to the target order data.
7. An automatic invoicing device based on rule engine, It is characterized in that The device comprises: Data acquisition module, used to obtain order data from multiple business platforms; A data sending module, used to generate reconciliation data according to the order data, and send the reconciliation data to the user end; A first receiving module, configured to receive a confirmation result of the reconciliation data from the user end; A data marking module, used for marking the order data corresponding to the confirmed correct reconciliation data as a successfully reconciled order according to the confirmation result; A bill calculation module, used to calculate the resource bill corresponding to the successfully reconciled order according to a preset resource ratio; An application generation module, used to generate an invoicing application corresponding to the resource bill according to a preset rule engine; An application sending module, used for sending the invoicing application to the electronic invoice system; The second receiving module is used to receive the invoicing result corresponding to the invoicing application returned by the electronic invoice system.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Bill and invoice automatic processing method and corresponding device
CN119693078A
Method and corresponding device for the automated processing of bills and invoices
CN119693078B
