Accounting voucher generation method, computer program product, equipment and medium

By analyzing transaction event information and calling the associated accounting model, accounting vouchers are automatically generated, which solves the problem of complex and inefficient generation of accounting vouchers in the existing technology, and achieves the effect of simplifying the process and improving efficiency.

CN119693163APending Publication Date: 2025-03-25NANJING XINGLIAN DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411616686.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-03-25

AI Technical Summary

Technical Problem

In the prior art, the generation process of accounting vouchers is complicated and prone to errors and has low efficiency.

Method used

By obtaining event information of transaction events, analyzing event information to evaluate the accounting scenarios involved in transaction events, and calling the accounting model associated with each accounting scenario, mapping and conversion of event information, and automatically generating accounting vouchers.

Benefits of technology

It realizes the automation of accounting voucher generation, simplifies the accounting process, and improves the efficiency of financial information processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119693163A_ABST
    Figure CN119693163A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to an accounting voucher generation method, a computer program product, equipment and a medium. The accounting voucher generation method comprises the following steps: acquiring event information of a transaction event; analyzing the event information to evaluate an accounting scene involved in the transaction event; and calling an accounting model associated with each accounting scene, and performing mapping conversion processing on the event information to obtain an accounting voucher belonging to each accounting scene. By adopting the method, the accounting voucher can be automatically generated, the accounting process can be simplified, and the financial information processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method for generating accounting vouchers, a computer program product, a computer device, and a computer-readable storage medium. Background Technology

[0002] Accounting vouchers are prepared by the accounting department based on original documents. They record a brief summary of economic transactions, determine accounting entries, and serve as the basis for bookkeeping. Typically, accounting vouchers are prepared by specialized personnel based on original documents, which can easily lead to errors in filling out or calculating them, and is relatively inefficient. Summary of the Invention

[0003] Therefore, it is necessary to provide a method for generating accounting vouchers, a computer program product, a computer device, and a computer-readable storage medium to address the aforementioned technical problems. This method can automate the generation of accounting vouchers, simplify the accounting process, and improve the efficiency of financial information processing.

[0004] On the one hand, a method for generating accounting vouchers is provided. The method includes: obtaining event information of a transaction event; parsing the event information to evaluate the accounting scenario involved in the transaction event; calling the accounting model associated with each accounting scenario, and performing mapping and transformation processing on the event information respectively to obtain accounting vouchers belonging to each accounting scenario.

[0005] In one embodiment of this application, the mapping and transformation processing of event information includes: locating target keywords and their associated data information within the event information; wherein the target keywords are associated with the accounting subjects of the accounting vouchers, and the target keywords include at least one of event keywords, institutional keywords, and amount keywords; and writing the data information into the accounting subject associated with its target keyword.

[0006] In one embodiment of this application, the amount keyword includes at least one of the transaction amount keyword, handling fee keyword, and tax keyword; writing data information into the accounting subject associated with its target keyword includes: obtaining the amount data of the amount keyword associated with the current accounting scenario; inputting the amount data into the accounting model, and calculating the accounting data to be filled into the accounting subject based on the amount data.

[0007] In one embodiment of this application, parsing event information to assess the accounting scenario involved in a transaction event includes: identifying event categories associated with event keywords; wherein the event categories are associated with accounting scenarios and accounting models; obtaining event codes associated with each event category; obtaining accounting codes associated with the event codes; and obtaining accounting models associated with the accounting codes.

[0008] In one embodiment of this application, the accounting voucher generation method further includes: obtaining a requirements file; wherein the requirements file includes accounting voucher accounting requirements; configuring multiple accounting scenarios and multiple accounting models based on the requirements file; wherein each accounting model is associated with one or more accounting scenarios; constructing a voucher generation engine based on the accounting scenarios and accounting models; wherein the voucher generation engine is used to connect the front-end business system interface with the accounting scenarios, accounting models, and accounting vouchers.

[0009] In one embodiment of this application, building a voucher generation engine based on an accounting scenario and accounting model includes: acquiring transaction event information of the business process; wherein the transaction event information includes transaction event categories and elements; defining an event interface based on the transaction event information; configuring the association between the event interface and the accounting code and accounting model identifier; and defining a connection interface for connecting to the front-end business in conjunction with the requirements document.

[0010] In one embodiment of this application, after obtaining the requirements file, the method further includes: configuring the event information format based on the requirements file; wherein, the event information includes keywords and data information, and the event information format includes the name of the keyword, the accounting event definition field, and the value retrieval method.

[0011] On the other hand, a computer program product is provided, including a computer program, characterized in that, when executed by a processor, the computer program implements the steps of the accounting voucher generation method as described in any of the above embodiments.

[0012] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the accounting voucher generation method as described in any of the above embodiments.

[0013] In another aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the accounting voucher generation method as described in any of the above embodiments.

[0014] The aforementioned accounting voucher generation method, computer program product, computer equipment, and computer-readable storage medium abstract and modularize the process for generating accounting vouchers, forming a pre-defined association between accounting scenarios and their corresponding accounting models. Thus, when generating accounting vouchers based on transaction events, the accounting scenarios involved in the transaction events are analyzed to invoke the pre-associated accounting models, achieving automated voucher generation and simplifying the accounting process. Furthermore, by performing relevant mapping and transformation processing through the abstracted accounting models, the efficiency of accounting voucher completion can be improved, thereby enhancing the efficiency of financial information processing. Attached Figure Description

[0015] Figure 1 This is a flowchart illustrating an embodiment of the accounting voucher generation method of this application; Figure 2 This is a schematic diagram of the structure of an embodiment of the accounting voucher generation system of this application; Figure 3 This is a flowchart illustrating another embodiment of the accounting voucher generation method of this application; Figure 4 This is a flowchart illustrating an embodiment of the event information extraction method described in this application; Figure 5 This is a schematic diagram of an embodiment of the accounting voucher in this application; Figure 6 This is a schematic diagram of a scenario of an embodiment of the configuration credential generation engine interface of this application; Figure 7 This is a schematic diagram of the structure of an embodiment of the computer device of this application. Detailed Implementation

[0016] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0017] Accounting is the work of recording, calculating, controlling, analyzing, and reporting the economic activities of enterprises, groups, and other economic organizations, using currency as the primary unit of measurement, to provide financial and management information. The main functions of accounting are to reflect and control the economic process, ensure the authenticity, accuracy, and completeness of accounting information, provide necessary financial data for economic management, and participate in decision-making to optimize economic efficiency. The specialized methods of accounting mainly include: setting up accounts and ledgers, and preparing and verifying accounting vouchers.

[0018] Accounting documents are fundamental financial documents that record and reflect the economic activities of a business or organization. They form the basis of accounting and ensure that all transactions are correctly recorded in accordance with accounting standards and relevant regulations. Accounting documents typically include source documents and journal vouchers.

[0019] The key characteristics and components of accounting vouchers include basic accounting elements and business elements. Accounting elements may include voucher number, voucher type, accounting period, summary, accounting subject, amount, and attachments; business elements may include invoices for business transactions, primary keys used for reconciliation during the business process, and auxiliary information related to the business process. Accounting vouchers are not only crucial for recording economic activities but also the foundation for preparing financial statements (such as balance sheets, income statements, and cash flow statements). Through accounting vouchers, the accuracy and transparency of financial data are ensured, which is beneficial for internal management decision-making and for external investors and creditors to understand the company's financial situation.

[0020] To address the technical problems of complex and error-prone accounting processes in related technologies, this application provides a method for generating accounting vouchers, a computer program product, a computer device, and a computer-readable storage medium. The method for generating accounting vouchers includes obtaining event information of transaction events; parsing the event information to assess the accounting scenarios involved in the transaction events; and calling the accounting models associated with each accounting scenario to perform mapping and transformation processing on the event information, thereby obtaining accounting vouchers belonging to each accounting scenario. The specific working principle of this application is described in detail below.

[0021] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the accounting voucher generation method of this application.

[0022] S101: Obtain event information for transaction events.

[0023] In this embodiment, a transaction event refers to an event in which financial flows occur between entities such as financial institutions, merchants, and customers according to a signed agreement. For example, a transaction event could be a cash withdrawal event, a balance disbursement event, or a loan event, which will not be elaborated further here.

[0024] Event information includes relevant information that represents the changes in financial flows resulting from a transaction event. Event information can be all relevant data or a portion of pre-selected data. For example, event information may include at least one of the following: the transaction entity, account, account set, account opening institution, transaction event, amount, currency, business information, etc.

[0025] In this embodiment, a transaction event may have one or more accounting vouchers to be generated. The event information of the transaction event is obtained, and several accounting vouchers involved in the transaction event are generated based on the information contained in the event information.

[0026] Accounting vouchers are prepared based on original documents, recording a brief summary of economic transactions, determining accounting entries, and serving as the basis for bookkeeping. Accounting vouchers are records that meet the requirements for registering ledgers, specifying account names, posting direction, and amount; they are the basis for registering subsidiary ledgers and general ledgers.

[0027] S102: Analyze event information to assess the accounting scenarios involved in the transaction event.

[0028] In this embodiment, the accounting scenarios are used to analyze the subcategories of the total amount of transaction events, and the number of accounting scenarios can be matched with the number of accounting vouchers. For example, taking a withdrawal event as an example, the accounting scenarios can include withdrawal, withdrawal fees, taxes, etc.

[0029] If so, the event information of the transaction event can be analyzed to assess the accounting scenario involved in the transaction event based on the event information.

[0030] S103: Call the accounting model associated with each accounting scenario, and perform mapping and transformation processing on the event information to obtain accounting vouchers belonging to each accounting scenario.

[0031] In this embodiment, the calculations and processing of each accounting scenario can be abstracted in advance to form an accounting model associated with each accounting scenario. Thus, when generating several accounting vouchers for a transaction event, the accounting models of each accounting scenario involved in the transaction event can be called, and the event information can be adaptively mapped and transformed using each accounting model to obtain accounting vouchers belonging to each accounting scenario.

[0032] Among them, mapping and transformation processing means that the information / data in the event information can be directly mapped to the accounting voucher, and / or the information / data in the event information can be transformed, calculated and processed before being filled into the accounting voucher, which will not be elaborated here.

[0033] In other words, in this embodiment, a transaction event can have one or more accounting scenarios. The number of accounting scenarios is related to the composition of the total amount of the transaction event, and each accounting scenario is associated with an accounting model. Optionally, the accounting scenario and the accounting model can be a one-to-one mapping relationship; or, the accounting scenario and the accounting model can also be a many-to-one mapping relationship. For example, multiple different accounting scenarios may have the same data processing, information mapping, amount calculation formula, etc., and can share a single accounting model.

[0034] Therefore, this embodiment can abstract and modularize the process for generating accounting vouchers in advance, forming an accounting model that is adapted to and associated with various accounting scenarios. Thus, when generating accounting vouchers based on transaction events, the accounting scenarios involved in the transaction events are analyzed to call the pre-associated accounting models, achieving automated voucher generation and simplifying the accounting process. Furthermore, by performing relevant mapping and transformation processing through the abstracted accounting models, the efficiency of accounting voucher completion can be improved, thereby enhancing the efficiency of financial information processing.

[0035] like Figure 2 The examples shown in the text, Figure 2 This is a schematic diagram of the structure of an embodiment of the accounting voucher generation system of this application. In this embodiment, the accounting voucher generation process can be abstracted into three stages: acquiring transaction events, evaluating one or more accounting scenarios involved in the transaction events, and calling the accounting model corresponding to the accounting scenario. Thus, the event information of the transaction event can be input into its associated accounting model, and the event information can be mapped and transformed to obtain accounting vouchers belonging to each accounting scenario.

[0036] In other words, this embodiment establishes a three-tiered accounting system. Transaction events are used to interface with the front-end business system, describing business activities or transaction records. Accounting scenarios are used to distinguish the contexts and / or instances of financial transaction records involved in transaction events. Accounting models are used to implement standardized accounting, enabling accounting reuse. Thus, this embodiment can improve the efficiency and accuracy of accounting processing, and ensure the reliability of the process through relatively standardized online operations.

[0037] Furthermore, the accounting voucher generation system may also include a control module (not shown in the figure) for implementing the accounting voucher generation method. Specifically, the control module can acquire event information of transaction events; parse the event information to assess the accounting scenarios involved in the transaction events; and call the accounting models associated with each accounting scenario to perform mapping and transformation processing on the event information, thereby obtaining accounting vouchers belonging to each accounting scenario.

[0038] Specific limitations regarding the accounting voucher generation system can be found in the limitations on the accounting voucher generation method described above and below, and will not be repeated here. Each module in the aforementioned accounting voucher generation system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0039] Please see Figure 3 as well as Figure 4 , Figure 3 This is a flowchart illustrating another embodiment of the accounting voucher generation method of this application. Figure 4 This is a flowchart illustrating an embodiment of the event information extraction method described in this application. It should be noted that... Figure 3 This is illustrated using a withdrawal event as an example of a transaction event, and does not strictly limit the transaction events used to generate accounting vouchers. Figure 3 The diagram is illustrated using configuration information.

[0040] In one embodiment, the event information includes multiple event-related keywords, with the keywords required in the accounting voucher generation process serving as target keywords. For example, target keywords include at least one of event keywords, institutional keywords, and amount keywords. In other words, the event information may include keywords and data information about specific transaction events related to each keyword.

[0041] It can retrieve event information for transactions that are currently awaiting the creation of accounting vouchers. For example... Figure 4As illustrated in the example, taking the current perspective in the image as an example, the rounded box on the left can be considered the event information for the transaction event. Event information can include event keywords, institutional keywords, amount keywords, and information keywords. Event keywords include the current transaction event (i.e., withdrawal) and event category (i.e., event: withdrawal + transaction fee); institutional keywords include account number, account opening institution, trading institution, and product code; amount keywords include currency, transaction amount, and transaction fee, and amount keywords can further include taxes (not shown in the image); information keywords include business information.

[0042] In response to the acquisition of event information for transaction events, the event information can be parsed to assess the accounting scenario involved in the transaction event.

[0043] Specifically, it can identify the event categories associated with event keywords. These event categories are linked to the accounting scenario and accounting model, and represent the various components of the total transaction amount. For example... Figure 4 As illustrated in the example, the event category may include the transaction amount (i.e., the withdrawal amount) and a transaction fee. In an alternative embodiment, the event category may also include only the transaction amount, without transaction fees or taxes; or, the event category may include the transaction amount and taxes, but without transaction fees; or, as... Figure 3 The examples shown can include transaction amount, transaction fees, and taxes, but are not limited here.

[0044] In this embodiment, event codes can be pre-set for each event category, and accounting codes can be pre-associated with each event code, and accounting codes can be associated with accounting models respectively.

[0045] Alternatively, transaction events are generally diverse, and the accounting scenarios derived from these events are even more complex, often numbering in the thousands or even more, with the specific accounting subjects being quite complicated as well.

[0046] Therefore, in this embodiment, each accounting model can be associated with one or more accounting codes, that is, each accounting model can be associated with one or more accounting scenarios. This reduces the number of accounting models by using reusable accounting models, thereby lowering development costs and improving the simplification of the accounting voucher generation system. For example, multiple fees with the same calculation method can share the same accounting model.

[0047] Specifically, the event codes associated with each event category can be obtained separately. Among them, the event codes can be predefined for each event category. After obtaining the event categories included in the transaction event, the event codes of the event categories can be mapped in the event processing configuration to obtain the accounting codes associated with the event codes, and the accounting models associated with the accounting codes can be obtained, so as to call the accounting models associated with each accounting scenario associated with the accounting code based on the accounting code.

[0048] Within the accounting model, the event information can be mapped and transformed separately. For example, the target keywords and their associated data information within the event information can be located. Among them, the target keywords are associated with the accounting subjects of the accounting vouchers. The data information can be written into the accounting subjects associated with their respective target keywords.

[0049] Among them, the amount keywords include at least one of the transaction amount keyword, the handling fee keyword, and the tax keyword.

[0050] Thus, the amount data of the amount keywords associated with the current accounting scenario is obtained; the amount data is input into the accounting model, and the accounting data to be filled into the accounting subjects is calculated based on the amount data.

[0051] Thus, the accounting vouchers belonging to each accounting scenario can be obtained. As Figure 5 shown by way of example Figure 5 is the schematic diagram of the illustration of an embodiment of the accounting voucher of the present application, which includes the accounting vouchers of multiple accounting scenarios.

[0052] Please refer to Figure 6 , Figure 6 is the schematic diagram of the scenario of an embodiment of the configuration voucher generation engine interface of the present application.

[0053] In one embodiment, requirement documents such as MRD (Market Requirement Document) can be obtained. Among them, the requirement documents include the accounting voucher accounting requirements. That is to say, the requirement documents belong to "process" documents in the product project process and include the description requirements for a product.

[0054] Thus, the event information format can be configured based on the requirement documents to meet the real business requirements. As described above, the event information can include keywords and data information, so the event information format can include the name of the keywords, the accounting event definition fields, and the value-taking methods. As Figure 6 shown by way of example

[0055] As shown by way of example in Table 1, the event information format can be configured in a manner similar to the following table: Table 1 Event Information Format Configuration Table

[0056] In Table 1, the first column lists the English names of the event information template keyword fields, the second column lists the corresponding event information template keyword fields, the third column allows you to enter value conditions, such as when the handling fee is not 0, etc., and the fourth column lists the fields or fixed values ​​defined for the transaction event. ZUONR is an allocation field on financial documents; CACODE indicates a digital signature. #{&merchant number? substring(0,4)} indicates that the merchant field has a value, and if it does, the first four digits are truncated.

[0057] Furthermore, when an accounting voucher generation system already exists, in response to obtaining a new requirements file, the system can configure new accounting scenarios and / or accounting models added in the requirements file based on the existing accounting voucher generation system. For the same accounting scenarios and / or the same accounting models, the existing accounting scenarios and accounting models can be reused.

[0058] Optionally, a query function for accounting requirements can be added to query published or under-writing accounting requirements and their detailed information. This would allow users to check if accounting requirements already exist in new requirement documents and quickly locate existing accounting requirements, improving the efficiency of accounting requirement comparison.

[0059] Therefore, multiple accounting scenarios and models can be configured based on the requirements document. In other words, the accounting model of the accounting voucher generation system can be integrated into the accounting requirements implementation process, gradually structuring and configuring transaction events, accounting scenarios, and accounting models to form a configuration file. Thus, when actual business occurs, relevant accounting models and engines can be used to perform layer-by-layer mapping and transformation based on transaction events, accounting scenarios, and accounting models, ultimately generating accounting vouchers and other accounting documents.

[0060] A voucher generation engine is built based on accounting scenarios and accounting models; the voucher generation engine is used to connect the front-end business system interface with accounting scenarios, accounting models and accounting vouchers.

[0061] Specifically, transaction event information of the business process can be obtained. This transaction event information includes transaction event categories and elements. Event interfaces are defined based on this information. The association between the event interfaces and the accounting codes and accounting model identifiers is configured. Finally, in conjunction with the requirements document, the connection interface for connecting to the front-end business is defined.

[0062] In layman's terms, the accounting scenario and accounting model configuration in this embodiment digitizes the accounting process. By analyzing the uploaded MRD and other requirement documents, as well as relevant accounting standards, the system analyzes the accounting scenarios and applicable accounting rules included in the requirements, fills in the elements of the accounting scenario and accounting model, and generates the accounting process—that is, configuring the information on what kind of vouchers are generated under what accounting scenario. This part of the element can be mapped from fields in the business system. After configuration, the writing process of the accounting voucher generation system can be transferred to the corresponding product position.

[0063] Furthermore, the accounting engine can be configured. Based on the established accounting scenarios and models for financial accounting needs, analysis and refinement are performed, and the system is integrated with the front-end product to identify events and elements in the business process. Event interfaces are defined, and the mapping relationships between event interfaces and accounting codes and models are established. In other words, by combining accounting information, the interface for connecting to the front-end business system is defined, and the fields transmitted by the front-end business system interface are mapped to specific accounting scenarios and voucher information.

[0064] Furthermore, configurations for voucher generation engines and accounting voucher generation systems can be deployed to test or production environments.

[0065] In other words, this application can detect the definition of accounting events (i.e., transaction events), accounting scenarios, and accounting models during the accounting requirement processing process, and configure the relationships between accounting events and accounting scenarios, as well as the relationships between accounting scenarios and accounting templates. Furthermore, it can configure the conversion and mapping relationships between accounting events and accounting elements on the accounting template. When the voucher generation engine executes, it can determine whether the current accounting event contains an accounting scenario that requires posting based on the accounting event elements. It can then match the corresponding accounting model based on the accounting scenario. In response to matching the accounting model, it can convert the mapping relationship between event fields and accounting model fields based on the field mapping relationship, and finally generate accounting vouchers based on the template, indicating that the verification has passed.

[0066] In summary, this application enables fully online management from MRD (Medium-terminal Reporting) to the release of the accounting voucher generation system, and allows for configurable implementation during the actual implementation process, which improves the efficiency of requirement transformation and implementation. Furthermore, online management of accounting procedures allows accounting requirements to be directly applied to the configuration of the accounting voucher generation system, reducing the need for human intervention, understanding, and separate adaptation in design and implementation. The resulting accounting models and other accounting templates can be archived and reused, improving the quality of accounting procedures while reducing system development costs. Moreover, during the accounting requirement process, structured and modular configuration reduces the tedious work of manually releasing accounting vouchers, which helps lower the implementation costs of the accounting voucher generation method and system, and also improves the efficiency of responding to business requirements.

[0067] It should be understood that, although Figure 1 , Figure 3 as well as Figure 4 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 , Figure 3 as well as Figure 4 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0068] In one embodiment, a computer program product is provided, including a computer program. When executed by a processor, the computer program implements the steps of the accounting voucher generation method described above, which will not be repeated here.

[0069] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an embodiment of the computer device of this application.

[0070] In one embodiment, a computer device is provided, which may be a terminal or a server.

[0071] Taking a computer device as an example, its internal structure diagram can be as follows: Figure 7 The example shown illustrates this. The computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for generating accounting vouchers. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad located on the computer device's casing, or an external keyboard, touchpad, or mouse, etc.

[0072] Those skilled in the art will understand that Figure 7The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0073] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: S101: Obtain event information for transaction events.

[0074] S102: Analyze event information to assess the accounting scenarios involved in the transaction event.

[0075] S103: Call the accounting model associated with each accounting scenario, and perform mapping and transformation processing on the event information to obtain accounting vouchers belonging to each accounting scenario.

[0076] In one embodiment, when performing the mapping and transformation processing of event information in step S103, the processor also performs the following steps when executing the computer program: locating the target keyword and its associated data information within the event information; wherein the target keyword is associated with the accounting subject of the accounting voucher, and the target keyword includes at least one of event keyword, institution keyword, and amount keyword; and writing the data information into the accounting subject associated with its target keyword.

[0077] In one embodiment, the amount keyword includes at least one of the transaction amount keyword, handling fee keyword, and tax keyword; when writing data information into the accounting subject associated with its target keyword, the processor executes the computer program and further performs the following steps: obtaining the amount data of the amount keyword associated with the current accounting scenario; inputting the amount data into the accounting model, and calculating the accounting data to be filled into the accounting subject based on the amount data.

[0078] In one embodiment, when parsing event information in step S102 to evaluate the accounting scenario involved in the transaction event, the processor further performs the following steps when executing the computer program: identifying the event category associated with the event keyword; wherein the event category is associated with the accounting scenario and the accounting model; obtaining the event code associated with each event category respectively; obtaining the accounting code associated with the event code; and obtaining the accounting model associated with the accounting code.

[0079] In one embodiment, when the processor executes the computer program, it further performs the following steps: obtaining a requirements file; wherein the requirements file includes accounting voucher accounting requirements; configuring multiple accounting scenarios and multiple accounting models based on the requirements file; wherein each accounting model is associated with one or more accounting scenarios; constructing a voucher generation engine based on the accounting scenarios and accounting models; wherein the voucher generation engine is used to connect the front-end business system interface with the accounting scenarios, accounting models, and accounting vouchers.

[0080] In one embodiment, when building a voucher generation engine based on accounting scenarios and accounting models, the processor also performs the following steps when executing the computer program: obtaining transaction event information of the business process; wherein, the transaction event information includes transaction event categories and elements; defining event interfaces based on transaction event information; configuring the association between event interfaces and accounting codes and accounting model identifiers; and defining connection interfaces for connecting to front-end businesses in conjunction with the requirements document.

[0081] In one embodiment, after obtaining the requirements file, the processor executes the computer program and further performs the following steps: configuring the event information format based on the requirements file; wherein, the event information includes keywords and data information, and the event information format includes the name of the keyword, the accounting event definition field, and the value retrieval method.

[0082] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps: S101: Obtain event information for transaction events.

[0083] S102: Analyze event information to assess the accounting scenarios involved in the transaction event.

[0084] S103: Call the accounting model associated with each accounting scenario, and perform mapping and transformation processing on the event information to obtain accounting vouchers belonging to each accounting scenario.

[0085] In one embodiment, when performing the mapping and transformation processing of event information in step S103, the computer program, when executed by the processor, also performs the following steps: locating the target keyword and its associated data information within the event information; wherein the target keyword is associated with the accounting subject of the accounting voucher, and the target keyword includes at least one of event keyword, institution keyword, and amount keyword; and writing the data information into the accounting subject associated with its target keyword.

[0086] In one embodiment, the amount keyword includes at least one of the transaction amount keyword, handling fee keyword, and tax keyword; when writing data information into the accounting subject associated with its target keyword, the computer program, when executed by the processor, also performs the following steps: obtaining the amount data of the amount keyword associated with the current accounting scenario; inputting the amount data into the accounting model, and calculating the accounting data to be filled into the accounting subject based on the amount data.

[0087] In one embodiment, when parsing event information in step S102 to evaluate the accounting scenario involved in the transaction event, the computer program, when executed by the processor, further implements the following steps: identifying the event category associated with the event keyword; wherein the event category is associated with the accounting scenario and the accounting model; obtaining the event code associated with each event category respectively; obtaining the accounting code associated with the event code; and obtaining the accounting model associated with the accounting code.

[0088] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: obtaining a requirements file; wherein the requirements file includes accounting voucher accounting requirements; configuring multiple accounting scenarios and multiple accounting models based on the requirements file; wherein each accounting model is associated with one or more accounting scenarios; constructing a voucher generation engine based on the accounting scenarios and accounting models; wherein the voucher generation engine is used to connect the front-end business system interface with the accounting scenarios, accounting models, and accounting vouchers.

[0089] In one embodiment, when constructing a voucher generation engine based on accounting scenarios and accounting models, the computer program, when executed by the processor, further implements the following steps: obtaining transaction event information of the business process; wherein, the transaction event information includes transaction event categories and elements; defining event interfaces based on transaction event information; configuring the association between the event interfaces and accounting codes and accounting model identifiers; and defining connection interfaces for connecting to the front-end business in conjunction with the requirements document.

[0090] In one embodiment, after obtaining the requirements file, the computer program, when executed by the processor, further performs the following steps: configuring the event information format based on the requirements file; wherein the event information includes keywords and data information, and the event information format includes the name of the keyword, the accounting event definition field, and the value retrieval method.

[0091] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0092] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0093] The embodiments described above are merely examples of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application.

Claims

1. A method for generating accounting vouchers, characterized in that: The accounting voucher generation method is applied to an accounting voucher generation system, and the accounting voucher generation system includes: a transaction event layer, an accounting scenario layer, and an accounting model layer; the accounting voucher generation method includes: Get event information of transaction events; Parsing the event information to evaluate the accounting scenario involved in the transaction event; Calling the accounting models associated with each of the accounting scenarios, respectively performing mapping and conversion processing on the event information, and obtaining accounting vouchers belonging to each of the accounting scenarios; Perform event processing configuration at the transaction event layer, identify the event category in the event information, obtain the event code corresponding to the event category, and obtain the accounting code associated with the event code; wherein the accounting code is associated with each event code in advance, and each accounting model can be associated with one or more accounting codes; The parsing of the event information to evaluate the accounting scenario involved in the transaction event includes: configuring an accounting code at an accounting scenario layer, and acquiring an accounting model associated with the accounting code obtained at the transaction event layer; Calling the accounting model associated with each of the accounting scenarios and mapping and converting the event information includes: recording and accounting configuration at the accounting model layer, calling the accounting model associated with each of the accounting scenarios associated with the accounting code based on the accounting code, locating the target keyword and its associated data information in the event information, and writing the data information into the accounting subject associated with the target keyword to which it belongs.

2. The accounting voucher generation method according to claim 1, characterized in that: The target keyword is associated with the accounting subject of the accounting voucher, and the target keyword includes at least one of an event keyword, an organization keyword, and an amount keyword.

3. The accounting voucher generation method according to claim 2, characterized in that: The amount keyword includes at least one of a transaction amount keyword, a handling fee keyword, and a tax keyword; The step of writing the data information into the accounting subject associated with the target keyword to which it belongs comprises: Acquire the amount data of the amount keyword associated with the current accounting scenario; The amount data is input into the accounting model, and the accounting data to be filled in the accounting subject is calculated based on the amount data.

4. The accounting voucher generation method according to claim 2, characterized in that: The parsing of the event information to evaluate the accounting scenario involved in the transaction event includes: Identifying an event category associated with the event keyword; wherein the event category is associated with the accounting scenario and the accounting model; Respectively obtain event codes associated with each of the event categories; Acquire the accounting code associated with the event code, and acquire the accounting model associated with the accounting code.

5. The accounting voucher generation method according to claim 1, characterized in that: The accounting voucher generation method also includes: Obtaining a demand document; wherein the demand document includes accounting voucher calculation requirements; Based on the requirement file, multiple accounting scenarios and multiple accounting models are configured; wherein each of the accounting models is associated with one or more of the accounting scenarios; A voucher generation engine is constructed based on the accounting scenario and the accounting model; wherein the voucher generation engine is used to connect the front-end business system interface with the accounting scenario, the accounting model and the accounting voucher.

6. The accounting voucher generation method according to claim 5, characterized in that: The construction of the voucher generation engine based on the accounting scenario and the accounting model includes: Acquire transaction event information of a business process; wherein the transaction event information includes transaction event categories and elements; Defining an event interface based on the transaction event information; Configure the association relationship between the event interface and the accounting code and accounting model identifier; In conjunction with the requirement document, a connection interface for connecting the front-end service is defined.

7. The accounting voucher generation method according to claim 5, characterized in that: The obtaining of the requirement file further includes: The event information format is configured based on the demand file; wherein the event information includes keywords and data information, and the event information format includes the name of the keyword, the accounting event definition field, and the value obtaining method.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the accounting voucher generation method described in any one of claims 1 to 7 are implemented.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the accounting voucher generation method described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the accounting voucher generation method described in any one of claims 1 to 7 are implemented.