Method, device, storage medium and server for calculating reimbursement amount

By parsing corporate expense reimbursement documentation to generate a standard rule tree for expense reimbursement and building a calculation rule service, the system automates the calculation of travel expense reimbursements, solving the calculation errors caused by manual entry and achieving efficient and accurate expense reimbursement management.

CN120013688BActive Publication Date: 2026-08-04YGSOFT INC
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
YGSOFT INC
Filing Date
2025-01-09
Publication Date
2026-08-04

AI Technical Summary

Technical Problem

Current technology relies on manual entry for travel expense reimbursement calculations, leading to frequent calculation errors, increased workload, reduced efficiency, and increased financial risk.

Method used

By parsing corporate expense reimbursement documentation to generate a standard rule tree for expense reimbursement, and building an expense calculation rule service, the system can receive expense calculation requests, automatically calculate and populate the results, reducing manual intervention.

Benefits of technology

It improved the accuracy and efficiency of expense reimbursement calculations, reduced financial risks, simplified processes, enhanced user experience, and maintained the system's maintainability and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120013688B_ABST
    Figure CN120013688B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, storage medium, and server for calculating reimbursement amounts, relating to the field of financial reimbursement. Addressing the complexity of corporate travel reimbursement management and the limitations of manual operation, this application proposes an automated processing flow. It parses the company's reimbursement documentation, generates reimbursement calculation rules for various expense types, and constructs a standard reimbursement rule tree. Subsequently, these rule trees are published as corresponding reimbursement calculation rule services. When an employee fills out a reimbursement form, the system receives the reimbursement calculation request, automatically selects and calls the corresponding service for calculation based on the expense type. The calculation result is directly filled back into the reimbursement form, eliminating the need for manual calculation by the employee. This solution not only improves the accuracy and efficiency of reimbursement and reduces financial risks but also simplifies the reimbursement process, enhances user experience, and maintains the system's maintainability and scalability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of financial reimbursement, and more particularly to a method, apparatus, storage medium, and server for calculating reimbursement amounts. Background Technology

[0002] In corporate management practice, financial reimbursement management is a crucial aspect, as its standardization and accuracy directly affect the company's financial security and operational efficiency. This is especially true for travel reimbursements, which involve differences in expense standards across different regions and under various conditions, such as travel expenses, accommodation standards, and travel allowances, making the reimbursement process particularly complex and requiring a high degree of precision.

[0003] Currently, companies generally use manual form filling when processing travel expense reimbursement applications. The person submitting the application needs to determine whether the specific business trip location is in a remote area, and manually calculate the corresponding expenses based on the number of days of the trip. This process requires the person not only to be familiar with and master complex reimbursement rules, but also to possess a certain level of manual calculation ability to ensure the accuracy of the reimbursement amount. However, in practice, the diversity and complexity of reimbursement rules often exceed the processing capacity of the person submitting the application, and coupled with misjudgments and calculation errors caused by human factors, inaccurate information frequently appears in reimbursement applications.

[0004] The drawbacks of this manual reporting method not only increase the workload of reimbursement personnel and reduce work efficiency, but more importantly, it significantly increases financial risk. Incorrect or incomplete reporting can lead to overspending, improper subsidy disbursement, and other problems, thereby affecting the company's budget and cost control. In the long run, this can also have an adverse impact on the company's financial situation. Summary of the Invention

[0005] This application provides a method, apparatus, storage medium, and server for calculating reimbursement amounts, which can solve the problems of easy calculation errors and low efficiency caused by manually calculating and filling in reimbursement amounts in the prior art. The technical solution is as follows:

[0006] In a first aspect, embodiments of this application provide a method for calculating reimbursement amounts, the method comprising:

[0007] Obtain the company's expense reimbursement instructions document;

[0008] The semantic information in the reimbursement instructions document is analyzed to obtain the reimbursement calculation rules for each expense type;

[0009] Each reimbursement calculation rule is reviewed, and after approval, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated.

[0010] After publishing each reimbursement standard rule tree, generate the corresponding reimbursement calculation rule service;

[0011] Receive a reimbursement calculation request from the person seeking reimbursement, the reimbursement calculation request carrying the expense type and the corresponding input parameter value;

[0012] Based on the type of expense carried, the target reimbursement calculation rule service is determined from multiple preset reimbursement calculation rule services. Then, the target reimbursement calculation rule service is used to calculate the input parameter value to obtain the reimbursement calculation result.

[0013] The reimbursement calculation results are returned to the person requesting reimbursement.

[0014] Secondly, embodiments of this application provide an apparatus for calculating reimbursement amounts, the apparatus comprising:

[0015] The acquisition unit is used to retrieve the company's expense reimbursement documentation.

[0016] The parsing unit is used to parse the semantic information of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type;

[0017] The review unit is used to review each reimbursement calculation rule. After the review is approved, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated.

[0018] The publishing unit is used to publish each reimbursement standard rule tree and generate its corresponding reimbursement calculation rule service.

[0019] The receiving unit is used to receive a reimbursement calculation request from the person seeking reimbursement, the reimbursement calculation request carrying the expense type and the corresponding input parameter value;

[0020] The execution unit is used to determine the target reimbursement calculation rule service from a plurality of preset reimbursement calculation rule services according to the type of expense carried, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain the reimbursement calculation result.

[0021] The return unit is used to return the reimbursement calculation result to the person seeking reimbursement.

[0022] Thirdly, embodiments of this application provide a computer storage medium storing a plurality of instructions adapted for loading by a processor and executing the above-described method steps.

[0023] Fourthly, embodiments of this application provide a terminal device, which may include: a processor and a memory; wherein the memory stores a computer program, the computer program being adapted to be loaded by the processor and to execute the above-described method steps.

[0024] The beneficial effects of the technical solutions provided in some embodiments of this application include at least the following:

[0025] By parsing the company's expense reimbursement documentation and generating a standard rule tree, the accuracy and consistency of the reimbursement rules are ensured. This process reduces errors caused by human understanding and application of rules, improving the precision of reimbursement calculations. Employees no longer need to manually calculate expenses; instead, they initiate a reimbursement calculation request, and the system automatically calls the corresponding reimbursement calculation rule service based on the expense type. This significantly reduces the workload of reimbursement personnel and improves work efficiency. Automated calculations reduce the possibility of misfilling or omissions, avoiding issues such as overspending and improper subsidy disbursement. This not only helps companies achieve stricter budget and cost control but also reduces financial risks caused by human error. Employees only need to fill in basic travel information, and the system can automatically complete complex reimbursement calculations, simplifying the reimbursement process and enhancing the user experience. The design of the standard rule tree and reimbursement calculation rule service makes the system easy to maintain and expand. When the company's reimbursement rules change, only the corresponding rule tree and service need to be updated, without requiring large-scale modifications to the entire system. Attached Figure Description

[0026] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic diagram of the network architecture provided in the embodiments of this application;

[0028] Figure 2 This is a flowchart illustrating the method for calculating reimbursement amounts provided in an embodiment of this application;

[0029] Figure 3 This is a schematic diagram of the editing interface for the reimbursement calculation rules provided in the embodiments of this application;

[0030] Figure 4 This is a schematic diagram of the structure of a device for calculating reimbursement amounts provided in this application;

[0031] Figure 5 This is a schematic diagram of the structure of a server provided in this application. Detailed Implementation

[0032] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0033] It should be noted that the method for calculating reimbursement amounts provided in this application is generally executed by terminal devices, and correspondingly, the device for calculating reimbursement amounts is generally located in a server.

[0034] Figure 1 An exemplary system architecture is shown that can be applied to the method or apparatus for calculating reimbursement amounts in this application.

[0035] like Figure 1 As shown, the system architecture may include: terminal device 101 and server 102. Terminal device 101 and server 102 can communicate via a network, which serves as the medium for providing communication links between the various units. The network may include various types of wired or wireless communication links, such as: wired communication links including fiber optic cables, twisted-pair cables, or coaxial cables; and wireless communication links including Bluetooth communication links, Wi-Fi communication links, or microwave communication links.

[0036] The server 102 is configured and deployed with multiple reimbursement calculation rule services. When a person is filling in the reimbursement amount for a certain expense type on the reimbursement form, the terminal device 101 can call the corresponding reimbursement calculation rule service from the server 102 to automatically calculate and fill in the reimbursement amount.

[0037] It should be noted that the terminal device 101 and the server 102 can be either hardware or software. When the terminal device 101 and the server 102 are hardware, they can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the terminal device 101 and the server 102 are software, they can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module; no specific limitations are made here.

[0038] The terminal device of this application can be equipped with various communication client applications, such as video recording applications, video playback applications, voice interaction applications, search applications, instant messaging tools, email clients, social platform software, etc.

[0039] A terminal device can be either hardware or software. When the terminal device is hardware, it can be various terminal devices with a display screen, including but not limited to smartphones, tablets, laptops, and desktop computers. When the terminal device is software, it can be installed on the terminal devices listed above. It can be implemented as multiple software programs or software modules (e.g., used to provide distributed services) or as a single software program or software module; no specific limitation is made here.

[0040] When the terminal device is hardware, it can also be equipped with a display device and a camera. The display device can be any device capable of displaying information, and the camera is used to capture video streams. For example, the display device can be a cathode ray tube display (CR), a light-emitting diode display (LED), an e-ink screen, a liquid crystal display (LCD), or a plasma display panel (PDP). Users can use the display device on the terminal device to view displayed text, images, videos, and other information.

[0041] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is for illustrative purposes only. Depending on implementation needs, there can be any number of terminal devices, networks, and servers.

[0042] The following will be combined with the appendix Figure 2 This application provides a detailed description of the method for calculating reimbursement amounts provided in its embodiments. The apparatus for calculating reimbursement amounts in these embodiments may be... Figure 1 The terminal device shown.

[0043] Please see Figure 2 This is a flowchart illustrating a method for calculating reimbursement amounts, as provided in an embodiment of this application. Figure 2 As shown, the method described in this application embodiment may include the following steps:

[0044] S201. Obtain the company's expense reimbursement instructions document.

[0045] The server receives expense reimbursement documents submitted by the company through the API interface or file upload service of the company's internal document management system (such as DMS). These documents may be stored in formats such as PDF, Word, and Excel. The server uses document parsing libraries (such as PDFBox for PDF and Apache POI for Word) to parse the received documents and extract the text content. For encrypted documents, the server first decrypts them. The parsed text content is stored in the server's storage system for further processing in subsequent steps.

[0046] S202. Parse the semantic information of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type.

[0047] The server employs Natural Language Processing (NLP) technologies, such as deep learning-based text understanding models, to perform semantic analysis on the text content of the reimbursement document. Through NLP techniques like Named Entity Recognition (NER) and Dependency Parsing, the server identifies key information in the document, including expense type (e.g., accommodation, communication, overtime pay), calculation conditions (e.g., region, level, number of days), rates, and caps. The server then stores this identified key information in a structured format, forming a preliminary set of reimbursement rules. Each rule contains detailed information such as expense type, calculation conditions, calculation formula, or rate.

[0048] In some embodiments of this application, the configuration personnel can edit the reimbursement calculation rules for each parsed expense type. See also Figure 3 The diagram shows the editing interface for reimbursement calculation rules. The left side of the interface displays the reimbursement standard rule tree, and the right side displays a detailed table of reimbursement calculation rules for accommodation expenses. The server displays the reimbursement calculation rules for each expense type on the interface; it allows users to edit the reimbursement calculation rules based on their edit commands. These edit operations include adding or deleting condition nodes, adding or deleting result nodes, or modifying node content in the reimbursement standard rule tree; and it updates the corresponding reimbursement standard rule tree based on the edited reimbursement calculation rules.

[0049] After parsing the reimbursement instruction document and structuring the reimbursement calculation rules, the server needs to prepare these rules for display on the user interface. The server sends the reimbursement calculation rules to the front-end interface in an appropriate format (such as JSON, XML, or a custom data structure). The front-end interface uses this data to render a table, list, or tree structure of the reimbursement calculation rules, displaying the calculation rules, conditions, rates, and other information corresponding to each expense type. The front-end interface design should allow configuration personnel to view detailed rule information and provide entry points for editing rules (such as buttons or links).

[0050] After the reimbursement calculation rules are approved and a standard reimbursement rule tree is generated (after step S203), the server needs to provide editing functionality for these rules on the front-end interface. The front-end interface receives editing commands from configuration personnel via UI operations (such as clicking, dragging, and typing). These commands may include adding or deleting condition nodes, adding or deleting result nodes, or modifying node content. The front-end interface encapsulates the editing commands into an appropriate request format and sends it to the server. The server receives and parses these commands, preparing to make corresponding modifications to the standard reimbursement rule tree.

[0051] The server modifies the reimbursement standard rule tree based on received editing instructions. This may include adding, deleting, or modifying the content of existing nodes. Adding a node: The server adds a new condition or result node at the appropriate location in the rule tree and sets its attributes and values. Deleting a node: The server removes the specified condition or result node from the rule tree. Modifying node content: The server updates the attributes or values ​​of the specified node to reflect the administrator's edits. After each modification, the server validates the reimbursement standard rule tree to ensure the logical correctness and consistency of the rules. The server stores the modified reimbursement standard rule tree back into the database or memory for later use.

[0052] S203. Review each reimbursement calculation rule, and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is approved.

[0053] The server performs logical verification and rationality checks on each rule in the initial reimbursement rule set to ensure that the rules are unambiguous and free of logical errors. After approval, the server transforms each rule into a reimbursement standard rule tree. A rule tree is a hierarchical data structure that intuitively reflects the hierarchical relationship and decision path of reimbursement rules. Each node represents a part of a rule (such as condition, operation, or result), and edges represent logical relationships between nodes (such as AND, OR, and NOT). The server optimizes the generated rule tree to improve subsequent computational efficiency. Optimization measures may include merging similar nodes and reducing redundant calculations.

[0054] S204. After publishing each reimbursement standard rule tree, multiple reimbursement calculation rule services are generated.

[0055] The server deploys the optimized reimbursement standard rule tree into a microservice architecture, with each rule tree corresponding to an independent reimbursement calculation rule service. These services adhere to a unified interface specification, allowing external requests to invoke the corresponding calculation logic by specifying parameters. The server is configured with service registration and discovery mechanisms (such as Eureka and Consul) to enable services to be dynamically discovered and invoked. Simultaneously, the server is configured with a load balancing mechanism to ensure high availability and response speed. For security, the server employs API gateways and authentication and authorization mechanisms (such as OAuth2 and JWT) to protect service interfaces, preventing unauthorized access and data leakage.

[0056] Furthermore, each expense calculation rule is provided as an API service. Each expense calculation rule is reviewed to ensure compliance with company policies and regulations. Based on the approved rules, multiple API services are deployed, each corresponding to an expense type's expense calculation rule. The API services are configured with routing, authentication, and authorization mechanisms to ensure service security and availability.

[0057] Publish the API service to your enterprise API management platform or a cloud service provider's API gateway. Provide documentation for the API service, including interface specifications, request parameters, response formats, etc., for use by expense reimbursement personnel and developers. Set up a test environment to allow expense reimbursement personnel and developers to test the API service without affecting the production environment.

[0058] The server receives expense calculation requests submitted by employees via a RESTful API or GraphQL interface. Based on the expense type in the request, it determines the API service to be invoked. The parameters from the request are passed to the API service, and the server waits for the calculation result to be returned.

[0059] Call the API service, pass in the necessary parameters, and execute the reimbursement calculation logic. Receive the calculation results returned by the API service and perform necessary validation and processing. If the API service call fails or returns an abnormal result, the server should log the error information and return a user-friendly error message to the person requesting reimbursement.

[0060] The verified reimbursement calculation results are packaged into response data and returned to the person seeking reimbursement through the original request channel. The response data provides instructions for subsequent operations, such as submitting a reimbursement application or viewing reimbursement details. If the reimbursement calculation results contain multiple expense items or require further review, the server should provide clear explanations and instructions.

[0061] It should be noted that, to support the updating and iteration of reimbursement calculation rules, the server should implement an API version management strategy. Each time the reimbursement calculation rules are updated, a new API version should be created, while older versions should be retained for future use. The server should ensure the security of the API service, including using HTTPS, implementing authentication and authorization mechanisms, and limiting the frequency of API access. The server should monitor the operational status and performance metrics of the API service and log detailed information. This helps to promptly identify and resolve potential problems, improving the stability and reliability of the API service.

[0062] S205. Receive a reimbursement calculation request from the person seeking reimbursement. The reimbursement calculation request carries the expense type and the corresponding input parameter value.

[0063] When an employee fills out a reimbursement form, they send a reimbursement calculation request to the server based on the various expense types listed. The server receives these requests via RESTful APIs or GraphQL interfaces. The request includes the expense type (e.g., accommodation, communication fees) and corresponding parameter values ​​(e.g., travel location, number of days, rank). The server validates the received request, checking its validity, parameter completeness, and user permissions. For invalid or incomplete requests, the server returns an error message.

[0064] Furthermore, when receiving expense reimbursement calculation requests, the server should ensure that it is using the latest version of the expense reimbursement standard rule tree (i.e., the version that takes into account all editing operations). Calculations should also be performed based on the latest rule tree. Finally, when returning the expense reimbursement calculation results, the server can include version information so that the person requesting reimbursement understands which version of the rules the calculation was based on.

[0065] If multiple administrators simultaneously edit the same expense reimbursement calculation rule, the server needs to implement a concurrency control mechanism to avoid data conflicts and inconsistencies. To track historical changes to the expense reimbursement calculation rule and allow rollback to a specific version, the server can implement a version control system. After each edit, a new version is created, and a certain number of older versions can be retained for review and restoration. The server should log all editing operations on the expense reimbursement calculation rule, including the editing time, the editor, and the edited content, for subsequent auditing and tracking.

[0066] S206. Based on the type of expense carried, determine the target reimbursement calculation rule service from among the preset multiple reimbursement calculation rule services, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain the reimbursement calculation result.

[0067] The process involves the server retrieving and determining the target reimbursement calculation rule service from the service registry based on the expense type field in the request. After determining the target service, the server preprocesses the input parameter values ​​in the request, performing tasks such as type conversion and format validation to ensure the parameters meet the service's requirements. The server then calls the target reimbursement calculation rule service, passing the preprocessed parameter values ​​to the service. The service executes its calculation logic based on its built-in reimbursement standard rule tree, yielding an accurate reimbursement calculation result. The service returns the calculation result to the server. The server then validates and formats the returned result to ensure its accuracy and readability.

[0068] S207. Return the reimbursement calculation results to the person seeking reimbursement.

[0069] The server encapsulates the validated and formatted reimbursement calculation results into response data and returns it to the person seeking reimbursement through the original request channel. The response data may include the total reimbursement amount, details of each expense, and the basis for the calculation. The person seeking reimbursement can view the received reimbursement calculation results through a web interface, mobile application, or other channels. After receiving the reimbursement calculation results, the person's terminal device automatically fills the results into the designated location on the reimbursement form. In case of anomalies or errors, the server will provide error codes and error messages in the response data so that the person seeking reimbursement can correct or resubmit the request.

[0070] The embodiments of this application specifically include the following beneficial effects:

[0071] To address the complexity of corporate travel expense management and the limitations of manual operations, an automated processing workflow is proposed. The system parses the company's expense reimbursement documentation, generates calculation rules for various expense types, and constructs a standard rule tree. These rule trees are then published as corresponding expense calculation rule services. When an employee fills out an expense report, the system receives their calculation request, automatically selects and calls the appropriate service based on the expense type, and directly updates the calculation results to the expense report, eliminating the need for manual calculation. This solution not only improves the accuracy and efficiency of expense reimbursements and reduces financial risks but also simplifies the process, enhances user experience, and maintains system maintainability and scalability.

[0072] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.

[0073] Please see Figure 4 This document illustrates a schematic diagram of an apparatus for calculating reimbursement amounts, provided in an exemplary embodiment of this application, hereinafter referred to as apparatus 4. Apparatus 4 can be implemented as all or part of a server through software, hardware, or a combination of both. Apparatus 4 includes: an acquisition unit 401, a parsing unit 402, an approval unit 403, a publishing unit 404, a receiving unit 405, an execution unit 406, and a return unit 407.

[0074] Unit 401 is used to retrieve the company's expense reimbursement documentation.

[0075] Parsing unit 402 is used to parse the semantic information of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type;

[0076] The review unit 403 is used to review each reimbursement calculation rule and generate a reimbursement standard rule tree corresponding to each reimbursement calculation rule after the review is approved.

[0077] The publishing unit 404 is used to publish each reimbursement standard rule tree and generate its corresponding reimbursement calculation rule service.

[0078] The receiving unit 405 is used to receive a reimbursement calculation request from the person seeking reimbursement, the reimbursement calculation request carrying the expense type and the corresponding input parameter value;

[0079] The execution unit 406 is used to determine the target reimbursement calculation rule service from a plurality of preset reimbursement calculation rule services according to the type of expense carried, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain the reimbursement calculation result.

[0080] The return unit 407 is used to return the reimbursement calculation result to the person seeking reimbursement.

[0081] In one or more possible embodiments, it also includes:

[0082] The editing unit is used to display the reimbursement calculation rules for various expense types on the interface;

[0083] Editing operations are performed on the reimbursement calculation rules based on the editing instructions of the configuration personnel. The editing operations are used to add condition nodes, delete condition nodes, add result nodes, delete result nodes, or modify the content of nodes in the reimbursement standard rule tree.

[0084] Update the corresponding reimbursement standard rule tree based on the edited reimbursement calculation rules.

[0085] In one or more possible embodiments, the reimbursement calculation rules for each expense type include: accommodation expense reimbursement calculation rules, communication expense reimbursement calculation rules, training expense reimbursement calculation rules, and overtime pay reimbursement calculation rules.

[0086] In one or more possible embodiments, each reimbursement calculation rule service is an API service.

[0087] In one or more possible embodiments, the step of generating corresponding reimbursement calculation rule services after publishing each reimbursement standard rule tree includes:

[0088] The system publishes each expense calculation rule service to the enterprise's cloud service provider's API gateway, and uploads the API service documentation to the API gateway, including: interface specifications, request parameters, and response format.

[0089] In one or more possible embodiments, obtaining the company's expense reimbursement documentation includes:

[0090] Receive expense reimbursement documentation submitted by the company through the API interface or file upload service of the document management system.

[0091] In one or more possible embodiments, the semantic information of the parsed reimbursement documentation is used to obtain reimbursement calculation rules for each expense type, including:

[0092] Based on a deep learning-based text understanding model, semantic analysis is performed on the text content of the reimbursement instructions document to obtain reimbursement calculation rules for each expense type.

[0093] It should be noted that the device 4 provided in the above embodiments is only illustrated by the division of the above functional modules when performing the method of calculating reimbursement amount. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the above functions. In addition, the device for calculating reimbursement amount and the method for calculating reimbursement amount provided in the above embodiments belong to the same concept, and the implementation process is detailed in the method embodiments, which will not be repeated here.

[0094] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0095] This application also provides a computer storage medium that can store multiple instructions, which are adapted to be loaded and executed by a processor as described above. Figure 2 The method steps of the illustrated embodiment can be found in the following documentation for detailed execution. Figure 2 The specific details of the illustrated embodiments will not be elaborated here.

[0096] This application also provides a computer program product that stores at least one instruction, which is loaded and executed by the processor to implement the method for calculating reimbursement amounts as described in the above embodiments.

[0097] Please see Figure 5 This provides a schematic diagram of a server structure for an embodiment of this application. For example... Figure 5 As shown, the server 500 may include: at least one processor 501, at least one network interface 504, a user interface 503, a memory 505, and at least one communication bus 502.

[0098] The communication bus 502 is used to enable communication between these components.

[0099] The user interface 503 may include a display screen and a camera. Optionally, the user interface 503 may also include a standard wired interface and a wireless interface.

[0100] The network interface 504 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0101] The processor 501 may include one or more processing cores. The processor 501 connects to various parts of the server 500 via various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and by calling data stored in the memory 505. Optionally, the processor 501 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 501 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content to be displayed on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 501 and may be implemented as a separate chip.

[0102] The memory 505 may include random access memory (RAM) or read-only memory. Optionally, the memory 505 may include a non-transitory computer-readable storage medium. The memory 505 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 505 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 505 may also be at least one storage device located remotely from the aforementioned processor 501. Figure 5 As shown, the memory 505, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and application programs.

[0103] exist Figure 5In the server 500 shown, the user interface 503 is mainly used to provide an input interface for users and obtain user input data; while the processor 501 can be used to call the application program stored in the memory 505 and specifically execute, such as Figure 2 The method shown can be referred to for details. Figure 2 As shown, it will not be elaborated further here.

[0104] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory, or random access memory, etc.

[0105] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A method for calculating reimbursement amounts, characterized in that, include: Obtain the company's expense reimbursement instructions document; The semantic information in the reimbursement instructions document is analyzed to obtain the reimbursement calculation rules for each expense type; The reimbursement calculation rules for each expense type include: accommodation expense reimbursement calculation rules, communication expense reimbursement calculation rules, training expense reimbursement calculation rules, and overtime pay reimbursement calculation rules; each rule contains detailed information on the expense type, calculation conditions, calculation formula, or rate; each reimbursement calculation rule service is provided via API. Each reimbursement calculation rule is reviewed, and after approval, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated. The server optimizes the generated rule tree to improve subsequent calculation efficiency. Optimization measures include merging similar nodes and reducing redundant calculations. After publishing each reimbursement standard rule tree, the corresponding reimbursement calculation rule service is generated, including: The document describes how to publish various expense calculation rules to the enterprise's cloud service provider's API gateway and upload the API service documentation to the API gateway, including: interface specifications, request parameters, and response format. Receive a reimbursement calculation request from the person seeking reimbursement, the reimbursement calculation request carrying the expense type and the corresponding input parameter value; Based on the type of expense carried, the target reimbursement calculation rule service is determined from multiple preset reimbursement calculation rule services. Then, the target reimbursement calculation rule service is used to calculate the input parameter value to obtain the reimbursement calculation result. The reimbursement calculation results are returned to the person requesting reimbursement.

2. The method according to claim 1, characterized in that, Also includes: The interface displays the reimbursement calculation rules for each expense type; Editing operations are performed on the reimbursement calculation rules based on the editing instructions of the configuration personnel. The editing operations are used to add condition nodes, delete condition nodes, add result nodes, delete result nodes, or modify the content of nodes in the reimbursement standard rule tree. Update the corresponding reimbursement standard rule tree based on the edited reimbursement calculation rules.

3. The method according to claim 1 or 2, characterized in that, The document obtained from the company's expense reimbursement documentation includes: Receive expense reimbursement documentation submitted by the company through the API interface or file upload service of the document management system.

4. The method according to claim 3, characterized in that, The semantic information of the reimbursement instruction document is parsed to obtain the reimbursement calculation rules for each expense type, including: Based on a deep learning-based text understanding model, semantic analysis is performed on the text content of the reimbursement instructions document to obtain reimbursement calculation rules for each expense type.

5. A device for calculating reimbursement amounts, characterized in that, For implementing the method as described in any one of claims 1-4, comprising: The acquisition unit is used to retrieve the company's expense reimbursement documentation. The parsing unit is used to parse the semantic information of the reimbursement instruction document to obtain the reimbursement calculation rules for each expense type. The reimbursement calculation rules for each expense type include: accommodation expense reimbursement calculation rules, communication expense reimbursement calculation rules, training expense reimbursement calculation rules, and overtime pay reimbursement calculation rules. The review unit is used to review each reimbursement calculation rule. After the review is approved, a reimbursement standard rule tree corresponding to each reimbursement calculation rule is generated. The publishing unit is used to publish each reimbursement standard rule tree and generate its corresponding reimbursement calculation rule service. The receiving unit is used to receive a reimbursement calculation request from the person seeking reimbursement, the reimbursement calculation request carrying the expense type and the corresponding input parameter value; The execution unit is used to determine the target reimbursement calculation rule service from a plurality of preset reimbursement calculation rule services according to the type of expense carried, and then use the target reimbursement calculation rule service to calculate the input parameter value to obtain the reimbursement calculation result. The return unit is used to return the reimbursement calculation result to the person seeking reimbursement.

6. A computer storage medium, characterized in that, The computer storage medium stores a plurality of instructions, which are adapted to be loaded by a processor and executed as method steps as claimed in any one of claims 1 to 4.

7. A server, characterized in that, include: A processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed the method steps as claimed in any one of claims 1 to 4.