Cost form generation method and device based on unified configuration

By generating expense form templates through unified configuration, the problems of cumbersome configuration work and inconsistent data processing in existing technologies are solved, and the automatic generation of expense forms and efficient data governance are realized.

CN120671655APending Publication Date: 2025-09-19GUANGZHOU PINWEI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510892860.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

In existing technologies, the creation and processing of expense invoices rely on predefined business rules and manual configuration, resulting in cumbersome configuration work, high maintenance costs, and difficulty in coping with changes in expense types and high-concurrency scenarios. The lack of a unified verification standard affects the accuracy and compliance of expense data.

Method used

Through a unified configuration process, information is configured for each expense type, an expense form template is generated, and business data matching and configuration field values ​​are used to achieve automatic generation and unified processing of expense forms.

Benefits of technology

It reduces the workload of expense form development, improves the data governance efficiency of different business systems, and ensures the accuracy and compliance of expense data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120671655A_ABST
    Figure CN120671655A_ABST
Patent Text Reader

Abstract

The invention discloses a cost form generation method based on unified configuration, and the method comprises the steps: carrying out the information configuration of each cost type, and determining the configuration information of each cost type; generating an expense form template corresponding to the expense type according to the configuration information of each expense type; obtaining business data and matching a cost form template according to the business data; and the value of each field in the business data configuration cost form template is utilized to generate the cost form, so that unified configuration processing of cost form creation and data processing is realized, the form development workload is reduced, and the data management efficiency of different business systems is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to expense management technology, and in particular relates to an expense form generation method and device based on unified configuration. Background Art

[0002] In current e-commerce platforms and corporate financial management systems, the generation, recording, and accounting of expenses are core components of operations. As platform operations become increasingly complex, expense types are becoming increasingly diverse, including marketing subsidies, service fees, performance-based rewards and penalties, platform deductions, and technical service fees. These expenses all require accurate and efficient creation, review, and archiving. To meet the demand for refined expense management, the industry has gradually introduced the fee sheet mechanism as a key vehicle for expense accounting and collection.

[0003] In existing technologies, the creation and processing of expense invoices typically rely on predefined business rules, manual configuration processes, or static coding methods. For example, some systems use manual entry or semi-automatic means to maintain various expense templates, lacking a unified configuration management mechanism and dynamic template generation logic. This approach not only leads to cumbersome configuration work and high maintenance costs, but also easily leads to problems such as inconsistent rules and mismatched expense logic. In addition, there is a lack of effective linkage between expense templates and upstream business systems. When the expense type or rules change, there is a lag in template updates, which in turn affects the accuracy and compliance of expense invoices.

[0004] On the other hand, the expense invoice generation process in most systems relies on manual triggering or hard-coded logic and data judgment, lacking the ability to automatically match and execute expense templates. This not only increases operational complexity but also makes it difficult to cope with the large-scale expense generation needs in high-concurrency scenarios. Furthermore, the expense invoice review process is fragmented across multiple systems, lacking unified verification criteria and standard interfaces, which limits the sharing and reconciliation efficiency of expense data within the platform and across external systems. Summary of the Invention

[0005] Based on this, the present invention aims to propose a method and device for generating expense forms based on unified configuration, which performs template configuration on the expense data in the business data through a unified configuration process, thereby automatically generating a unified expense form, improving the integration efficiency of expense management and data unification between different business systems.

[0006] In a first aspect, the present invention provides a method for generating an expense form based on a unified configuration, comprising:

[0007] Configure information for each expense type and determine the configuration information for each expense type;

[0008] Generate an expense form template corresponding to each expense type based on the configuration information of each expense type;

[0009] Obtain business data and match expense form templates based on the business data;

[0010] Use business data to configure the values ​​of each field in the expense form template and generate the expense form.

[0011] Furthermore, the configuration information of the fee type includes at least one of the fee field name, field type, field value rule, and fee calculation method.

[0012] Furthermore, generating an expense form template corresponding to each expense type according to the configuration information of each expense type includes:

[0013] Determine the fee header field and fee detail field corresponding to the fee type according to the configuration information of the fee type;

[0014] Assemble and render the expense header field and expense detail field to generate an expense form template corresponding to the expense type.

[0015] Furthermore, matching the expense form template according to business data includes:

[0016] Determine the type identifier of each expense type in the business data;

[0017] Match expense form templates based on the type ID of the expense type.

[0018] Furthermore, the values ​​of each field in the expense form template configured using business data include:

[0019] Extract expense details from business data;

[0020] Determine the mapping relationship between each field in the expense form and the expense details data, which is recorded as field mapping relationship;

[0021] Configure the values ​​of each field in the expense form based on the expense details data and field mapping relationship.

[0022] Furthermore, the values ​​of each field in the expense form are configured based on the expense details data and field mapping relationship, including:

[0023] Convert and calculate the expense details data according to the field mapping relationship to obtain the expense calculation value;

[0024] Configure the values ​​of each field in the expense form based on the expense calculation value.

[0025] Furthermore, generating the expense form includes:

[0026] Use the expense type identifier to determine the expense order number of the expense form;

[0027] A unique verification is performed based on the unique verification rules and the expense form's expense order number. Once it is confirmed that the expense form has not been created repeatedly, the final expense form is generated.

[0028] In a second aspect, the present invention provides a device for generating a fee form based on a unified configuration, comprising:

[0029] The expense information configuration module is used to configure information for each expense type and determine the configuration information for each expense type;

[0030] A form template generation module is used to generate an expense form template corresponding to each expense type based on the configuration information of each expense type;

[0031] Form template matching module, used to obtain business data and match expense form templates according to the business data;

[0032] The expense form generation module is used to configure the values ​​of each field in the expense form template using business data to generate the expense form.

[0033] In a third aspect, the present invention provides an electronic device comprising a memory storing computer-executable instructions and a processor, wherein when the computer-executable instructions are executed by the processor, the device executes the various steps of the expense form generation method based on unified configuration provided in the first aspect.

[0034] In a fourth aspect, the present invention provides a readable storage medium storing a computer executable program, which, when executed, can implement the various steps of the expense form generation method based on unified configuration provided in the first aspect.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] The present invention provides an expense form generation method based on unified configuration, which completes the creation of different expense types through a unified expense information configuration process, thereby creating an expense form template corresponding to the expense type. When an expense form needs to be created, it is only necessary to match the corresponding expense form template according to business data and configure the values ​​of each field in the form template, thereby realizing unified configuration processing of expense form creation and data processing, reducing the workload of form development, and improving the data governance efficiency of different business systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0038] Figure 1 A flowchart of a method for generating a fee form based on a unified configuration according to an embodiment of the present invention;

[0039] Figure 2 A schematic diagram of the structure of a device for generating expense lists based on a unified configuration according to an embodiment of the present invention;

[0040] Figure 3 This is a diagram of the electronic device architecture provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0042] See Figure 1 One embodiment of the present invention provides a method for generating an expense form based on a unified configuration, comprising the following steps:

[0043] Step S110: Configure information for each fee type and determine the configuration information for each fee type.

[0044] The expense types configured in this step refer to expense categories with independent accounting implications generated during platform operations, such as platform compensation, marketing subsidies, service fees, and withholding fees. The configuration information refers to a structured information set used to describe expense generation, field structure, data rules, etc. Further configuration information can include expense field names, field types, field value rules, expense calculation methods, etc.

[0045] Specifically, the fee field name can be divided into the fee header data field and the fee detail data field, as well as other necessary component fields for the form, where the fee header data field represents the overall information of the fee type, and the fee detail data field represents the specific composition of each business data (such as an order). For example, taking the platform compensation fee type as an example, its fee header data field may include fee type, product name, fee status, compensation scenario, total amount, attribution entity, data source, etc., and the fee detail data field may include order identification, product name, compensation reason, compensation amount, data source, etc. It is understandable that the fields of the fee header data and the fee detail data may have common fields or different fields, and there may be a summary mapping relationship between the fields, for example, the total amount in the fee header data is equal to the sum of the compensation amounts in the fee detail data, so as to reflect the overall situation of the fee type through the fee header data.

[0046] Step S120: Generate an expense form template corresponding to each expense type according to the configuration information of each expense type.

[0047] Specifically, by parsing the configuration information, the field definition, validation logic, calculation rules, etc. are encapsulated into a structure or database object. The template generates a DSL (domain-specific language) expression parsing engine that translates the rules into an execution syntax tree that can be recognized by the template at runtime.

[0048] Furthermore, the expense header field and expense detail field corresponding to the expense type are determined according to the configuration information of the expense type, and the expense header field and expense detail field are assembled and rendered to generate an expense form template corresponding to the expense type.

[0049] Specifically, by parsing the configuration information, the field ownership is marked according to the "field purpose", the template structure is divided into the expense header structure and the expense detail structure, and the template is rendered using a structured language.

[0050] In an optional embodiment, the expense form template can be persisted to a template library, with a version number and a release status, and can further support nested structures, such as detail line field groups.

[0051] Step S130: Acquire business data and match the expense form template according to the business data.

[0052] The business data obtained in this step is structured data related to expenses from upstream systems, such as order data, work order data, user complaint data, etc. Specifically, the business data stream can be pulled through the API interface or middleware, and the processing method can be real-time or batch processing.

[0053] In a further implementation, before data matching, the business data transmitted from the upstream system can be verified, and the verification rules include character length, fee type coding rules, fee generation method, fee currency, data transmission specifications, etc.

[0054] Form template matching is to find the most suitable expense template in the template library based on the expense type and context information. Specifically, matching can be based on field values, expense types, business scenarios, etc.

[0055] Furthermore, the incoming business data carries a type identifier of the expense type, and the expense form template related to the expense type is matched in the template library according to the type identifier.

[0056] Step S140: Use the business data to configure the values ​​of each field in the expense form template to generate the expense form.

[0057] This step requires mapping or converting the original fields in the business data to the final values ​​of each field in the expense target template.

[0058] Specifically, step S140 includes the following steps:

[0059] Step S141. Extract the expense details data from the business data.

[0060] The expense details data in this step refers to the various expense-related fields in business data, such as order data and claim ticket records. This data is structured into multiple records, each of which can be mapped to a detail line in the expense form. Using a unified data storage format, such as JSON, allows flexible access based on the expense type configuration during expense form creation, reducing database table storage pressure.

[0061] Step S142: Determine the mapping relationship between each field in the expense form and the expense detail data, which is recorded as the field mapping relationship.

[0062] This step maps the expense form fields to the expense detail data fields based on the business details. Further implementation methods may also introduce field value conversion operation rules.

[0063] Specifically, the mapping relationship can be configured in the database during the expense type information configuration phase. This mapping relationship can be a direct mapping, a calculated mapping, or a derived mapping. For example, for fields with completely consistent expressions, the direct mapping relationship can be understood as a direct mapping between a specific field in the form template and a specific field in the business data. This mapping does not require operations or conversions on the field values, such as A.vendor.id = d.vendor.code, template.order_id = data.order_id. Calculated mapping involves the conversion of field values, such as amount = raw_amount × exchange_rate. Derived mapping may involve the combined generation of multiple field values, such as the expense reason field generated from the combination of "work order status + compensation type".

[0064] Step S143: Configure the values ​​of each field in the expense form according to the expense details data and the field mapping relationship.

[0065] This step extracts key fields related to the expense form fields from the expense detail data based on the determined field mapping relationships, and configures the values ​​of each field in the expense form based on the values ​​of these key fields.

[0066] Furthermore, for the expense header data fields, some fields may need to be converted based on the expense details in each business data, such as the total amount, exchange rate conversion, etc. In this case, the expense details data needs to be converted and calculated based on the field mapping relationship to obtain the expense calculation value; then, the values ​​of each field in the expense form are configured based on the expense calculation value.

[0067] In an optional embodiment, if a template field is missing a value, a compensation process may be initiated to pull additional data sources or interactively supplement the data.

[0068] Furthermore, generating the expense form includes the following steps:

[0069] Use the expense type identifier to determine the expense order number of the expense form;

[0070] A unique verification is performed based on the unique verification rules and the expense form's expense order number. Once it is confirmed that the expense form has not been created repeatedly, the final expense form is generated.

[0071] Specifically, data validation logic can be added before rendering the generated form, such as adding a unique key field to verify the uniqueness of the expense form. For example, the unique key field can be defined as: expense type + expense period + entity identifier. In a further embodiment, the unique key field can also be a globally unique order number automatically generated by the system. After the uniqueness verification is passed, the final expense form is created and stored in a database or cache middleware for subsequent approval processes.

[0072] The above embodiments provide a method for generating expense forms based on unified configuration, which completes the creation of different expense types through a unified expense information configuration process, thereby creating an expense form template corresponding to the expense type. When an expense form needs to be created, it is only necessary to match the corresponding expense form template according to the business data and configure the values ​​of each field in the form template, thereby realizing unified configuration processing of expense form creation and data processing, reducing the workload of form development, and improving the data governance efficiency of different business systems.

[0073] The disclosed method can be implemented using various devices, so the present invention also discloses a device corresponding to the method, which will be described in detail with specific embodiments given below.

[0074] like Figure 2 As shown, one embodiment of the present invention provides a fee form generation device based on a unified configuration, comprising:

[0075] The expense information configuration module 202 is used to configure information for each expense type and determine the configuration information for each expense type;

[0076] The form template generation module 204 is used to generate an expense form template corresponding to each expense type according to the configuration information of each expense type;

[0077] Form template matching module 206, used to obtain business data and match expense form templates according to the business data;

[0078] The expense form generation module 208 is used to configure the values ​​of each field in the expense form template using business data to generate the expense form.

[0079] The device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference can be made to the corresponding content in the aforementioned method embodiment.

[0080] The methods and related devices mentioned in the above embodiments are described with reference to the method flow charts and / or structural diagrams provided in the embodiments of the present application. Specifically, each process and / or block in the method flow charts and / or structural diagrams, as well as the combination of processes and / or blocks in the flow charts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including the instruction device, which implements the function specified in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the process. Figure 1 The flow or flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.

[0081] The following embodiments illustrate this method using a computer device as an example. It is understood that the computer device may be any device with computing and processing capabilities, including, but not limited to, a server or a personal laptop. In one embodiment, the computer device may be an application server, which may be a server for running the application under test.

[0082] See Figure 3 , which shows a hardware block diagram of an electronic device, which is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or claimed herein.

[0083] like Figure 3 As shown, the electronic device includes: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;

[0084] In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 communicate with each other through the communication bus 4;

[0085] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;

[0086] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory;

[0087] The memory stores a program, and the processor can call the program stored in the memory, wherein the program is used to implement various processing flows of the expense form generation solution based on the unified configuration.

[0088] An embodiment of the present invention further provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program implements the various processing flows of the expense form generation solution based on a unified configuration provided in the above embodiment and / or any possible implementation method in combination with the embodiment.

[0089] The above embodiments have described the invention in particular detail with respect to possible scenarios, and those skilled in the art will recognize that the invention can be practiced through other embodiments. The specific naming of components, capitalization of terms, attributes, data structures, or any other programming or structural aspects are not mandatory or important, and the mechanisms or features of the invention may have different names, forms, or procedures. The system may be implemented through a combination of hardware and software (as described), entirely through hardware elements, or entirely through software elements. The specific division of functions between the various system components described herein is exemplary only and not mandatory; rather, the functions performed by a single system component may be performed by multiple components, or the functions performed by multiple components may be performed by a single component.

[0090] Those skilled in the art will appreciate that the various steps of the method disclosed above can be implemented by a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the embodiments disclosed herein are not limited to any specific combination of hardware and software.

[0091] The programs executable by these computing devices (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., a magnetic disk, an optical disk, a memory, a programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0092] Certain aspects of the present invention include the process steps and instructions described herein in the form of algorithms. It should be noted that the process steps and instructions of the present invention can be implemented in software, firmware and / or hardware, and when implemented in software, they can be downloaded, stored on different platforms used by various operating systems, and operated from the platforms.

[0093] Those skilled in the art will understand that the structures shown in the accompanying drawings are merely block diagrams of partial structures related to the scheme of the present application, and do not constitute a limitation on the terminal device to which the scheme of the present application is applied. The specific terminal device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "possible design" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are mutually inconsistent.

[0095] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating an expense form based on unified configuration, characterized in that: include: Configure information for each expense type and determine the configuration information for each expense type; Generate an expense form template corresponding to the expense type according to the configuration information of each expense type; Acquiring business data and matching an expense form template according to the business data; The business data is used to configure the values ​​of each field in the expense form template to generate an expense form.

2. The method according to claim 1, characterized in that Generating a fee form template corresponding to each fee type according to the configuration information of each fee type includes: Determine the fee header field and fee detail field corresponding to the fee type according to the configuration information of the fee type; The expense header field and the expense detail field are assembled and rendered to generate an expense form template corresponding to the expense type.

3. The method according to claim 1, characterized in that Matching the expense form template according to the business data includes: Determine the type identifier of each expense type in the business data; Match expense form templates based on the type ID of the expense type.

4. The method according to claim 1, wherein The configuration of the values ​​of each field in the expense form template using the business data includes: Extracting detailed expense data from the business data; Determine the mapping relationship between each field in the expense form and the expense details data, which is recorded as field mapping relationship; The values ​​of each field in the expense form are configured according to the expense detail data and field mapping relationship.

5. The method according to claim 4, characterized in that The configuration of the values ​​of each field in the expense form according to the expense details data and the field mapping relationship includes: Convert and calculate the expense details data according to the field mapping relationship to obtain the expense calculation value; Configure the values ​​of each field in the fee form according to the fee calculation value.

6. The method according to claim 3, characterized in that The fee generation form includes: Determining the expense order number of the expense form using the type identifier; A unique verification is performed based on the unique verification rules and the expense form's expense order number. Once it is confirmed that the expense form has not been created repeatedly, the final expense form is generated.

7. The method according to claim 1, characterized in that The configuration information of the fee type includes at least one of a fee field name, a field type, a field value rule, and a fee calculation method.

8. A device for generating expense forms based on a unified configuration, characterized in that: include: The expense information configuration module is used to configure information for each expense type and determine the configuration information for each expense type; A form template generation module is used to generate an expense form template corresponding to each expense type based on the configuration information of each expense type; A form template matching module, used to obtain business data and match the expense form template according to the business data; The expense form generation module is used to configure the values ​​of each field in the expense form template using the business data to generate the expense form.

9. An electronic device, characterized in that: The device comprises a memory storing computer-executable instructions and a processor. When the computer-executable instructions are executed by the processor, the device executes a method for generating a fee form based on a unified configuration as claimed in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: A computer executable program is stored, and when the program is executed, a method for generating a fee form based on a unified configuration as described in any one of claims 1 to 7 can be implemented.