Business and financial integrated financial accounting method and device based on rule engine

By using a rule-based engine-based integrated business and finance accounting method and device, the problems of traditional accounting engines requiring customized development and data synchronization delays have been solved, realizing automated integrated business and finance accounting and improving data synchronization efficiency and accuracy.

CN121599787APending Publication Date: 2026-03-03CHINA SOUTHERN POWER GRID INTERNET SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511610740.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-05
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

Traditional accounting engines require custom development of accounting logic, and rule modifications require recoding. The accounting module is strongly coupled with the business system, and the synchronization delay of business and financial data is relatively long, making it impossible to achieve business and finance integration, accounting and reporting integration, and financial and tax integration.

Method used

This paper adopts a rule-engine-based integrated business and finance accounting method. By receiving business data and determining accounting books and accounting subjects based on influencing factor values, it generates real-time vouchers. It also provides a rule-engine-based integrated business and finance accounting device, including a receiving module, a determining module, a generating module, and a saving module, to realize automatic financial accounting and voucher generation.

Benefits of technology

It has achieved automation of integrated business and finance accounting, reduced development time, improved data synchronization efficiency, and ensured the real-time nature and accuracy of financial data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121599787A_ABST
    Figure CN121599787A_ABST
Patent Text Reader

Abstract

The invention discloses a business and financial integrated financial accounting method and device based on a rule engine, and relates to the technical field of financial accounting. The method comprises the steps that service data from a service system are received, and the service data are associated with specific source data and receipt types; based on the values of the influence factors contained in the business data, determining a target accounting book of the business data according to an accounting rule; based on values of influence factors contained in the business data, determining accounting subjects of the business data according to the classification definition and a subject comparison table; according to a conversion template corresponding to the target accounting book and the bill type, combining the field value of the business data with the accounting subject to generate a real-time voucher; and storing the real-time voucher as an accounting voucher under the target accounting book.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of financial accounting technology, and more specifically, to a rule engine-based integrated business and financial accounting method and apparatus. Background Technology

[0002] Financial accounting is the process of processing business activities and data according to accounting standards. The accounting platform adheres to accounting standards and basic financial work specifications, helping corporate finance personnel complete various accounting tasks and providing an accounting basis for internal and external financial reports. Through the accounting platform, a flexible voucher-generating engine is provided, aggregating vouchers generated from business documents in detailed accounting modules such as fixed assets, inventory, revenue, accounts receivable, and accounts payable into the general ledger system. It is closely integrated with supply chain, reporting platforms, treasury management, and tax management products, achieving business-finance integration, accounting-reporting integration, treasury integration, and tax integration. Traditional accounting engines require custom development of accounting logic, and rule modifications require recoding (averaging 15 person-days per modification). The accounting modules are strongly coupled with the business system, resulting in a data synchronization delay of ≥4 hours. Summary of the Invention

[0003] To address the shortcomings of existing technologies, this invention provides a method and apparatus for integrated business and finance accounting based on a rule engine.

[0004] According to one aspect of the present invention, a rule-engine-based integrated business and finance accounting method is provided, comprising:

[0005] Receive business data from the business system; the business data is associated with specific source data and document types.

[0006] Based on the values ​​of influencing factors contained in the business data, and in accordance with the accounting rules, determine the purpose of the business data for accounting ledgers;

[0007] Based on the values ​​of influencing factors contained in the business data, the accounting subjects of the business data are determined according to the classification definition and the account comparison table;

[0008] Based on the conversion template corresponding to the target accounting ledger and document type, the field values ​​of the business data are combined with the accounting subjects to generate real-time vouchers;

[0009] Save real-time vouchers as accounting vouchers under the purpose of accounting ledgers.

[0010] According to another aspect of the present invention, a rule-engine-based integrated business and finance accounting device is provided, comprising:

[0011] The receiving module is used to receive business data from the business system. The business data is associated with specific source data and document types.

[0012] The first determination module is used to determine the purpose of the accounting ledger for the business data based on the values ​​of the influencing factors contained in the business data and according to the accounting rules.

[0013] The second determination module is used to determine the accounting subject of the business data based on the values ​​of the influencing factors contained in the business data, according to the classification definition and the account comparison table;

[0014] The generation module is used to combine the field values ​​of business data with accounting subjects according to the conversion template corresponding to the target accounting ledger and document type to generate real-time vouchers;

[0015] The save module is used to save real-time vouchers as accounting vouchers under the target accounting ledger.

[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing a computer program for performing the methods described in any of the above aspects of the present invention.

[0017] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising: a processor; a memory for storing executable instructions of the processor; the processor being configured to read the executable instructions from the memory and execute the instructions to implement the method described in any of the preceding aspects of the present invention.

[0018] Therefore, this invention provides a complete financial accounting system. By setting rules and maintaining basic data, it forms a service platform that can automatically perform financial accounting, voucher generation, cash flow analysis, and statement generation. Based on the flexible configuration of the relationship between accounts, auxiliary data, and accounting items, financial data of any dimension can be queried and collected from the data layer. Attached Figure Description

[0019] Exemplary embodiments of the present invention can be more fully understood by referring to the following figures:

[0020] Figure 1 This is a flowchart illustrating an exemplary embodiment of the business-finance integrated financial accounting method based on a rule engine provided by the present invention.

[0021] Figure 2 This is a schematic diagram of the structure of an accounting platform provided in an exemplary embodiment of the present invention;

[0022] Figure 3 This is another flowchart illustrating the integrated business and finance accounting method based on a rule engine provided in an exemplary embodiment of the present invention;

[0023] Figure 4This is a schematic diagram of the structure of a rule engine-based integrated business and finance accounting device provided in an exemplary embodiment of the present invention;

[0024] Figure 5 This is the structure of an electronic device provided in an exemplary embodiment of the present invention. Detailed Implementation

[0025] Hereinafter, exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments of the present invention. It should be understood that the present invention is not limited to the exemplary embodiments described herein.

[0026] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps described in these embodiments do not limit the scope of the invention.

[0027] Those skilled in the art will understand that the terms "first," "second," etc., in the embodiments of the present invention are only used to distinguish different steps, devices, or modules, and do not represent any specific technical meaning, nor do they indicate a necessary logical order between them.

[0028] It should also be understood that in the embodiments of the present invention, "multiple" can refer to two or more, and "at least one" can refer to one, two or more.

[0029] It should also be understood that any component, data or structure mentioned in the embodiments of the present invention can generally be understood as one or more unless explicitly defined or given contrary instructions in the context.

[0030] Furthermore, the term "and / or" in this invention is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this invention generally indicates that the preceding and following related objects have an "or" relationship.

[0031] It should also be understood that the description of the various embodiments in this invention emphasizes the differences between the various embodiments, and the similarities or similarities can be referred to each other. For the sake of brevity, they will not be described in detail.

[0032] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0033] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.

[0034] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, they should be considered part of the specification.

[0035] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0036] The embodiments of this invention can be applied to electronic devices such as terminal devices, computer systems, and servers, and can operate together with a wide range of other general-purpose or special-purpose computing system environments or configurations. Well-known examples of terminal devices, computing systems, environments, and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, and servers include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the above systems, etc.

[0037] Electronic devices such as terminal devices, computer systems, and servers can be described in the general context of computer system executable instructions (such as program modules) executed by a computer system. Typically, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in distributed cloud computing environments, where tasks are executed by remote processing devices linked through communication networks. In distributed cloud computing environments, program modules can reside on local or remote computing system storage media, including storage devices.

[0038] Exemplary methods

[0039] Figure 1 This is a flowchart illustrating an exemplary embodiment of the business-finance integrated financial accounting method based on a rule engine provided by the present invention. This embodiment can be applied to electronic devices, such as… Figure 1 As shown, the rule engine-based integrated business and finance accounting method 100 includes the following steps:

[0040] Step 101: Receive business data from the business system. The business data is associated with specific source data and document types.

[0041] Step 102: Based on the values ​​of the influencing factors contained in the business data, determine the purpose accounting ledger for the business data according to the accounting rules;

[0042] Step 103: Based on the values ​​of the influencing factors contained in the business data, determine the accounting subjects of the business data according to the classification definition and the subject comparison table;

[0043] Step 104: Based on the conversion template corresponding to the target accounting ledger and document type, combine the field values ​​of the business data with the accounting subjects to generate real-time vouchers;

[0044] Step 105: Save the real-time voucher as an accounting voucher under the target accounting ledger.

[0045] Specifically, the invention provides a complete financial accounting system that, by setting rules and maintaining basic data, forms a service platform that can automatically perform financial accounting, voucher generation, cash flow analysis, and statement generation.

[0046] The accounting platform is an accounting engine and data conversion platform that transforms front-end business documents into accounting vouchers. It serves as a tool and bridge connecting front-end business documents and accounting vouchers. By setting conversion rules, it can automatically generate accounting vouchers (documents) for the general ledger system, profit center accounting, and cost system—the main accounting systems—from business data of any format, thereby ensuring the integration of business and finance. The overall architecture is as follows: Figure 2 As shown:

[0047] Key technical aspects include: Accounting settings, used to define the accounting requirements for each business transaction and whether accounting is required; an account lookup table defining specific account categories and codes; an element lookup table defining auxiliary items and values ​​corresponding to business data; conversion template settings for the style, data, and formula configuration of financial vouchers, flexibly supporting complex calculations and data retrieval; and basic file conversion, configuring data mapping processing to handle merging, splitting, and conversion.

[0048] Our solution consists of an interface adaptation layer, a rules engine, and a data output layer.

[0049] I. Interface Adaptation Layer: This layer provides a data entry point for all business data and is a prerequisite for financial accounting processing.

[0050] 1. Standard interface implementation: This solution uses a unified interface protocol.

[0051] Communication protocols: Supports multiple protocols such as HTTP / REST, WebService, and MQ.

[0052] Data format: Standardized JSON Schema definition, compatible with XML format conversion.

[0053] Security mechanism: Employs TLS 1.3 encryption and OAuth 2.0 authentication and authorization.

[0054] 2. Business System Adaptation Module

[0055] The pre-built connector library contains dedicated adapters for mainstream business systems such as SAP, Oracle ERP, and Yonyou NC. Each adapter implements the mapping and conversion from standard interfaces to specific system APIs.

[0056] A general adapter framework that uses configuration interfaces to implement business data input through configuration fields;

[0057] 3. Data Transformation Engine

[0058] Field Mapper: Visually configures the mapping between business fields and accounting elements. Data Cleaner: Built-in rules for data validation, format conversion, and default value handling. Batch Processing Component: Supports paginated extraction and parallel processing of large volumes of data.

[0059] II. Details of Core Function Implementation

[0060] 1. Real-time data integration process:

[0061] Business events trigger (such as the completion of purchase order approval);

[0062] The adapter captures events and extracts key business data;

[0063] Data standardization and transformation (business data → accounting events);

[0064] It is pushed to the core engine of the accounting platform for processing.

[0065] 2. Batch data synchronization mechanism:

[0066] Incremental synchronization: Incremental data acquisition based on timestamp / version number;

[0067] Full synchronization: Regularly perform full data verification and completion;

[0068] Conflict resolution: Optimistic locking mechanism is used to handle data conflicts.

[0069] III. Anomaly Handling and Monitoring

[0070] 1. Error handling strategy

[0071] Retry mechanism: Configurable exponential backoff retry strategy;

[0072] Dead letter queue: Messages that cannot be processed are transferred to the exception handling process;

[0073] Compensation transactions: a mechanism for compensating key business operations.

[0074] 2. Monitoring indicator system

[0075] Interface availability monitoring (99.99% SLA guaranteed);

[0076] Data transmission delay monitoring (P99 < 500ms);

[0077] Data consistency verification (daily reconciliation mechanism).

[0078] IV. Performance Optimization Solutions

[0079] Connection pool management: Reuse business system connections to reduce handshake overhead. Data compression: Enable LZ4 compression for large data volume transmissions.

[0080] Local caching: Frequently accessed metadata cache

[0081] Asynchronous processing: Non-critical paths are processed asynchronously.

[0082] V. Security Control Measures: Access Control - Fine-grained permission management based on the RBAC model

[0083] Data masking: Automatic masking of sensitive fields

[0084] Audit logs: Complete record of all API call details

[0085] Flow control: Preventing abnormal traffic from impacting business systems

[0086] The interface adaptation layer design has been verified in actual projects, supporting stable integration of over 1 million business documents per day, with average latency controlled within 200ms and data accuracy reaching 99.999%. Through standardized integration methods, the access cycle for new business systems has been shortened from the original 2-4 weeks to 3-5 working days.

[0087] Furthermore, the rule engine in this application is the core of transforming business data into financial accounting vouchers, such as... Figure 3 As shown.

[0088] Business data is imported into the system business data via the interface adapter;

[0089] (1) Entry settings (rules): The general ledger for business data entry settings;

[0090] (2) Document Items: Extract the corresponding fields from the business data as the data for accounting;

[0091] (3) Definition and association of influencing factors: Extract the basic files corresponding to the fields in the business data; for example, customer files, department files, the associated information of the records is customer ID, and the complete information such as customer code and name can be found through the association relationship.

[0092] (4) Correlation of influencing factors: Convert business data into corresponding accounting subjects through correlation relationships;

[0093] (5) Template Conversion: Convert business data into the final financial voucher format;

[0094] (6) Voucher generation: Users can view and save vouchers here;

[0095] 1.1 Definition of Influencing Factors

[0096] The influencing factor definition defines the influencing factors referenced by each business module in the accounting settings and classification definitions. Influencing factors and their corresponding basic file types are set according to business modules. The influencing factor source file reference, accounting rules, and auxiliary accounting (files) are defined. The file reference visibility scope includes all organizations with an accounting entrustment relationship with the current source organization, as well as organizations with a source relationship with this source organization or entrusting organization. The format is shown in Table 1.

[0097] Table 1. Definition style of image factors

[0098]

[0099]

[0100] 1.2 Main Fields

[0101] Source data: Since the definition of influencing factors is based on business systems, and different business systems have different influencing factors, the source system must be determined first when defining influencing factors.

[0102] Influencing Factor Name: Influencing factors are required when setting up accounting rules or category definitions to impose constraints. The names of the influencing factors should be simple and clear in meaning. This is a required field and cannot be repeated within the same business system.

[0103] Corresponding basic file type: This refers to the type of basic file corresponding to the influencing factor. You can select this option, but it is a required field.

[0104] Important Notes: Influencing factors can only be viewed and defined after selecting the source system on the left. Switching system types is not allowed while the table body is in edit mode. Within the same business module, the mapping relationship between influencing factor names and their corresponding basic file types is unique; one-to-many relationships are not allowed.

[0105] 1.3 Correlation of Influencing Factors on Documents

[0106] Document influencing factor association links the influencing factors of each business module with the field attributes of its subordinate business documents. The association relationships between the influencing factors of each business system and the document items of its subordinate business documents are set separately for each business module. The style is shown in Table 2.

[0107] Table 2. Relationship of Influencing Factors in Documents:

[0108]

[0109]

[0110] 1.4 Main Fields

[0111] Influencing factors: Refer to the names of the influencing factors defined in the Influencing Factors Definition node.

[0112] Document Fields: Refer to the fields on the selected business document or transaction type. You can select them based on metadata or document items to associate the influencing factors with the actual items of the document in the business system.

[0113] Important Notes: You can only view and associate influencing factors after selecting a specific document type or transaction type. Within the same business document, the mapping relationship between influencing factors and document items is unique; one-to-many relationships are not allowed. Switching the source system is not allowed when the table body on the right is in edit mode. Associating document types and transaction types is supported. If there is no transaction type, the association set by the document type will apply. If there is a transaction type and an association has been established, the association set by that transaction type will apply, and the association set by the document type will no longer apply (following the principle of detail priority).

[0114] 1.5. Document Items

[0115] The document item list displays the fields on the business document, their location on the document, and the associated underlying files. The system provides automatic registration (XML automatic registration) and import functions. The accounting platform supports XML automatic registration, and documents from other system modules can be automatically registered.

[0116] Table 3. Document Item Templates:

[0117]

[0118] Main fields:

[0119] Field encoding: The system reads the document item metadata of the business document.

[0120] Field Name: The name of the document item read by the system from the business document.

[0121] Location: The system reads the position of the document item on the business document, including the header, body and footer.

[0122] Basic Files: Describes the basic files associated with document items on a business document, and can be modified.

[0123] Note: You can only view and set the location of document items and associated basic files after selecting a business document type.

[0124] 1.6 Accounting Settings (Rules)

[0125] The accounting settings (rules) define the rules for generating vouchers for different business systems, specifying which organization (financial organization / profit center) and which ledger (accounting ledger / responsibility accounting ledger / tax ledger) the business system documents generate.

[0126] Supports cross-organizational reference to departmental personnel files. The scope of visible organizations for file reference includes all organizations with an accounting entrustment relationship with the current source organization, as well as organizations with a source relationship with this source organization or entrusting organization. The accounting rule is shown in icon 4.

[0127] Table 4 Receipt Rules

[0128]

[0129] 1.7 Subject Comparison Table

[0130] Among the many basic archives, archives of different types have different correspondences and conversion relationships. This conversion relationship is the function of combining one or more archives to generate another archive value. Specifically, it is the lookup table under the classification definition of the accounting platform, used to clarify the relationship between other archive combinations and the conversion into accounting subjects or elements.

[0131] As a complex system integrating various business systems, the fixed relationships between files are used by multiple business systems. If each business system were to define its own such relationships, it would not only increase the implementation workload but also make later maintenance difficult. Therefore, it is necessary to encapsulate these relationship definitions to achieve the effect of defining them once and using them multiple times. The subject lookup table is used for this purpose.

[0132] The account lookup table is used to set filtering conditions for various influencing factors in the business system. The lookup table is extracted as a common setting, enabling documents in the business system to generate vouchers or other information according to the rules of the lookup table. The account lookup table is set up at two levels: group and business unit. The group definition refers to the group-level archives, while the business unit definition refers to the current organization-level archives.

[0133] Main operations and fields:

[0134] (1) Ledgers_Ledger Type: Refer to the selection. The target file type can only be defined as accounting subject, so the financial accounting ledger type must be selected.

[0135] (2) Encoding / Name: The encoding and name of each node should be unique.

[0136] (3) Source Files: The file type can refer to all basic files, including custom files; multiple files can be selected, and attention should be paid to the setting order when there are multiple files. The system distinguishes them by serial number by default.

[0137] (4) Purpose file type: The purpose file type for subject file comparison can only define accounting subjects. Under the specified ledger type, the specific chart of subjects must be found through the current group or organization and ledger type.

[0138] (5) Reference Table: Displayed as a sub-table, grouped by the selected source file; the reference table is editable when adding or modifying new or modified subjects, supporting adding, deleting, and moving rows up / down. The rules for setting up the reference table include:

[0139] (5.1) The records in the lookup table have an order requirement;

[0140] (5.2) The combination of archive values ​​of the source archive type cannot be repeated;

[0141] (5.3) Null values ​​can be defined, and null values ​​represent all values;

[0142] (5.4) The source file can be defined as a non-final level file, but the destination file must be a final level subject.

[0143] Important Notes: Once a file type in a reference table is referenced, its order cannot be changed, and file types cannot be added or removed. Referenced reference tables cannot be deleted, but they can be modified. Reference tables cannot be duplicated to avoid system misjudgments.

[0144] 1.8 Accounting Setup (Comparison)

[0145] The entry settings (matching) define the rules for generating vouchers for different business systems based on the file matching method, specifying which organization (financial organization / profit center) and which ledger (accounting ledger / responsibility accounting ledger / tax ledger).

[0146] Main fields:

[0147] Source organization: The organization to which the business document that generated the target voucher belongs.

[0148] Influencing factors: Refer to the influencing factors defined by the selected business system.

[0149] Reference table: Refer to the reference table set.

[0150] Ledgers_Financial Accounting Ledgers Default Value: Sets the financial accounting ledger to which the target document generated by the source system belongs.

[0151] Organization: Displays the name of the source organization.

[0152] Important Notes: Before setting up accounting rules based on document matching, select the source organization and business system. Set up accounting rules according to the document matching method within the business system. After setting up the matching table, carefully modify any influencing factors, especially reducing influencing factors, as this may cause serious errors.

[0153] 1.9 Classification Definition

[0154] When generating general ledger vouchers, responsibility vouchers, tax difference vouchers, and self-made consumption vouchers from business documents, the documents describe the occurrence of the original business transactions and do not record account or responsibility element information according to accounting requirements. Therefore, conversion is necessary. This involves identifying the correspondence between fields on the document based on the accounting content of the accounting subjects or accounting elements, and recording this as a lookup table. When generating vouchers, the appropriate accounting subjects or accounting elements are found based on the corresponding field content on the document according to the correspondence. All accounting subjects or elements that may be used when generating vouchers from business documents should be categorized and defined here.

[0155] Main fields:

[0156] Encoding: Defines the accounting subject codes that need to be used in the conversion template.

[0157] Name: Defines the name of the accounting subject to be used in the conversion template.

[0158] Influencing factors: Refer to the influencing factors defined by the selected business system.

[0159] Reference table: Refer to the reference table set.

[0160] Default values ​​for account association information: Refer to the specific values ​​in the accounting file corresponding to the accounting account set.

[0161] Precautions:

[0162] a. Filter the lookup table according to the generation target selected in the table header (whether it is a general ledger voucher or a responsibility voucher) and the ledger type; and the source file type set in the lookup table should be completely consistent with the basic file type corresponding to the influencing factors referenced in the current classification definition, with no more and no less.

[0163] b. Based on the selected influencing factors, the system displays the correspondence between the source file types and the influencing factors in the lookup table, ensuring that the document fields can be correctly converted according to the content of the lookup table. At this time, the system automatically displays the correspondence, with a default match. Users can modify it. After the modification is confirmed, the system writes back the file type order of the influencing factors defined in the current classification according to the modified file type order.

[0164] c. Be cautious when modifying the default accounting entries (elements) and the comparison table records, as modifications may result in the inability to find accounts that meet the conditions when recalculating real-time vouchers.

[0165] d. When setting up a group, the type of ledger must be determined before a reference table can be set up. The referenced accounts are the contents of the policy-based account table designated by the group.

[0166] After setting up the e-reference table, please modify the influencing factors carefully, especially reducing the influencing factors may cause serious errors.

[0167] f. In the lookup table, when the system searches for document information that meets the conditions, it executes the search from the first to the last based on the influencing factors, so that the different levels of accounting entries are matched according to the order of the influencing factors. See Case 1 in Table 5 for reference:

[0168] Table 5 Case 1

[0169] Sending / receiving category (influencing factor 1) Inventory Classification (Influencing Factor 2) Accounting entries illustrate Production requisition Components Production costs - semi-finished products Requisition of parts Production requisition raw materials Production Costs - Raw Materials Requisition of raw materials Other requisitions Office supplies Management expenses - office expenses Requisition of office supplies

[0170] In Case 1, when influencing factor 1 is the same, the accounting entry is determined according to the order of influencing factor 2.

[0171] g. If all influencing factors are the same, different accounting entries cannot be defined. Refer to Case 2 in Table 6:

[0172] Table 6 Case 2

[0173] Sending / receiving category (influencing factor 1) Inventory Classification (Influencing Factor 2) Accounting entries illustrate Production requisition Components Production costs - semi-finished products Requisition of parts Production requisition raw materials Production Costs - Raw Materials Requisition of raw materials

[0174] In Case 2, because all the influencing factors are the same, the second record cannot be saved normally.

[0175] Classification Definition - Group: The name of "[Responsibility Accounting - Scope of Control]" has been changed to "[Book Type]", which is based on the system's book type archive; the element table referenced by the accounting elements in the classification definition comparison table is the group policy element table of the element system corresponding to the book type;

[0176] It supports cross-organizational reference to departmental personnel files. The scope of visible organizational references includes all organizations with an accounting entrustment relationship with the current source organization, as well as organizations with a source relationship with that source organization or entrusting organization. For example, if a business employee of Unit A works for Unit B, and Unit B entrusts Unit C with its accounting, then when configuring departmental influencing factors in Unit C, the departmental reference scope includes all departments of organizations C, B, and A.

[0177] 1.9 Convert Template

[0178] The conversion template defines a voucher template, which is an accounting description corresponding to documents and business processes. It serves as the basis and starting point for generating vouchers from documents and business processes. The voucher template completes the description of the voucher entry structure by specifying the correspondence between document items and voucher fields.

[0179] The process of defining a voucher template involves clarifying the data sources for each item on the voucher, such as the account (responsibility element, difference adjustment item), summary, amount, and auxiliary accounting items.

[0180] Main fields:

[0181] Business Process: This is a method of storing voucher templates. A single document can have different voucher templates set for different business types. The voucher templates are referenced from the company's business type archive. If a business type is set in this field, vouchers will be generated according to the voucher template for that business type if the business type field on the document meets the conditions. If no business type is selected, the defined voucher template is the default voucher template.

[0182] b. Business Association Information X: This setting determines the value of the association information between different documents. For example, if some accounts receivable and receipts are related to the same transaction (such as the same sales order), the accounts receivable system generates two documents: one for accounts receivable and one for receipts. If they need to be merged into a single voucher in the general ledger, the Business Association Information X field should be the "Order Number" field from the document when defining the voucher templates for both the accounts receivable and receipts. In the voucher generation node, both the accounts receivable and receipt vouchers should be retrieved in real-time. Then, click the "Batch Selection" button and select the "Business Association Information X" field in the batch selection criteria. The system will automatically merge and generate vouchers based on real-time vouchers with the same business association information. The Business Association Information field can be a statistical field or a memo field from the document.

[0183] Generation Method: The system provides four options: Immediate Processing, Scheduled Processing, Standby Processing, and No Processing. Immediate Processing: The accounting platform immediately converts and generates real-time vouchers or accounting vouchers upon receiving a message from the business system. Scheduled Processing: Processing is performed at a fixed time as set by parameters, rather than immediately. Standby Processing: The system determines when to process the voucher when idle. No Processing: No conversion or processing is performed upon receiving a message from the business system.

[0184] d. Target document status: Provides two options: formal voucher and temporary voucher. When set to formal voucher, the document generates a formal voucher directly through the accounting platform without manual intervention. When set to temporary voucher, a temporary voucher is generated first, requiring manual intervention, before a formal voucher is generated.

[0185] If processing fails, the document will be prevented from taking effect: When this option is not selected, asynchronous service is supported for business transfer to the accounting platform. Asynchronous service means that after the business document is processed during the business transfer process to the accounting platform, the business operation can be completed without waiting for the platform's voucher creation result. The accounting platform will automatically complete the voucher creation function when computer resources are idle. Specifically, if the message sent to the accounting platform during the document's activation stage cannot be converted into a voucher according to the template, the document's activation operation will not be allowed. If this option is not selected, the accounting platform will place this message in the platform log as an error data entry, but it will not affect the document's related operations.

[0186] f. Filter table body by entry rules: In multi-ledger accounting mode, if this option is selected, when a document generates a voucher based on the voucher template, the entry rules will be re-filtered according to the table body rows. If this setting is not selected, the entry rules will not be filtered when a document generates a voucher based on the voucher template. For example, if the ledger entry rules define generating ledger vouchers by department, such as "Department 1" generating "Ledger 1" voucher and "Department 2" generating "Ledger 2" voucher, and the business system has a document like this: Table body row 1 Department 1 1000 Table body row 2 Department 2 2000, then if both ledger 1 and ledger 2 vouchers corresponding to this option are selected, vouchers of 1000 and 2000 yuan will be generated for ledger 1 and ledger 2 respectively. If neither option is selected, both ledger 1 and ledger 2 will generate a voucher of 3000 yuan.

[0187] Main operation: The conversion template needs to be defined by the destination party, i.e., the party that will generate the voucher. In other words, whoever generates my voucher must generate it using my conversion template to ensure accuracy. Defining the conversion template needs to follow a specific operational procedure.

[0188] 1) Select the source system and source document type or transaction type.

[0189] 2) Select the target to generate and the ledger type for the target to generate.

[0190] 3) Select the business type (this step is not mandatory, but if a document needs to generate different vouchers under different processes, it needs to be defined separately).

[0191] 4) Prior to this, if the template needs to reference the category definition, the category definition needs to be set in advance.

[0192] 5) Define the header and footer content of the template respectively.

[0193] 6) Define the content of the template table body. Note that if the account has auxiliary accounting, you also need to define the fields of the corresponding documents for auxiliary accounting.

[0194] Precautions:

[0195] 1) The category selected on the template should have a defined lookup table or default value; otherwise, vouchers cannot be generated.

[0196] 2) When copying voucher templates by document or by business type, they can only be copied from an existing voucher template to an empty voucher template. Documents or business types with defined voucher templates cannot be referenced.

[0197] 3) When defining a formula, if you manually enter a string in the formula box, be sure to enclose the string in double quotes.

[0198] 4) Cash flow information in general ledger vouchers does not need to be configured. As long as the cash flow item is specified on the document, the accounting platform will generate the journal entry based on the specified value.

[0199] 5) When retrieving document items using formula definitions in the accounting platform, document items are displayed separately in the header and body, making it difficult to select many items together; you can locate them by right-clicking the header.

[0200] 6) If multiple formulas are nested, they should be defined in the following form: a->getcolvalue(...); b->getcolvalue(...a); c->getcolvalue(...b);

[0201] 7) The conversion template defined by the group does not involve the issue of generating vouchers across organizations, because everyone uses the same template, and only the voucher templates of the financial accounting books and their classification and posting rules can be defined at the group level.

[0202] When editing the conversion template, a check button is added. When the check button is clicked, the system checks whether all auxiliary accounting items of the accounts associated with the accounting entries in the document conversion template are configured completely. For any missing auxiliary accounting items, the system needs to provide detailed prompts, such as: "The auxiliary accounting item in line x2 of the account category (accounts receivable) is not configured. Please check the correctness of the configuration."

[0203] Template Conversion - Group:

[0204] The name of "[Responsibility Accounting - Scope of Control]" has been changed to "[Ledger Type]", and its reference is the system's ledger type file.

[0205] In the conversion template, the element table referenced by the accounting elements is the group policy element table of the element system corresponding to the ledger type.

[0206] Support cross-organization reference to department personnel files. The visible organization scope for file reference: all organizations with an accounting entrustment relationship with the current source organization, as well as those with a source relationship with the source organization or the entrusted organization. For example: The business personnel of Unit A work in Unit B, and Unit B entrusts Unit C for accounting. Then, when configuring department influencing factors in Unit C, the department reference scope includes all departments of the three organizations C + B + A.

[0207] 1.10. Voucher Generation

[0208] Document generation is one of the core functions of the accounting platform. In the case of push-style voucher generation, when a document becomes effective, a request for voucher generation will be sent to the accounting platform. The accounting platform will match which destination ledger's vouchers need to be generated according to the posting rules, and then find the voucher template defined under this destination ledger for voucher conversion. If classification definitions are also used on the voucher, it is also necessary to refer to the cross-reference table on the classification definition for matching to determine the specific accounting subjects. When pull-style generation is used, the destination party queries the documents of the source party and then performs conversion through the conversion template to generate the documents (vouchers) of the destination party.

[0209] Main Operations

[0210] 1) Select - Mark / Unmark: For records selected by highlighting with the cursor, these records can be marked with a grouping number through [Mark] for the next step of voucher generation (Note: Records without a grouping number will not perform the voucher generation operation); the grouping number field of these records can also be cleared through [Unmark].

[0211] 2) Select - Batch Selection: Select certain documents with the same attributes as the same batch according to certain rules for merging into one voucher for generation; the so-called same attributes can be determined during batch selection, such as according to document date, business association number, source organization, etc.

[0212] 3) Select - Inverse Selection: For the temporary documents retrieved, if it is found that the selected documents are not what is wanted, while the unselected documents are the ones to be processed currently, the inverse selection function can be executed.

[0213] 4) Select - Merge: Change the grouping numbers of all the selected documents to the same for merging into one voucher for generation.

[0214] 5) Generate - Generate at Front End: After clicking this button, if it is a single voucher, directly switch to the voucher generation card interface, where the content of the voucher can be modified and saved as a formal voucher; if multiple vouchers are generated, first go to the voucher list interface, where you can select each one and switch to the detailed content interface for modification and saving.

[0215] 6) Generate - Background Generation: After executing this button, the official voucher will be generated directly based on the group number without any further manual intervention.

[0216] 7) Generate - Summary Generation: For documents in inventory accounting systems that support summary generation, the documents to be summarized can be queried and the summary generation can be performed to create temporary documents.

[0217] 8) Pull-to-retrieve data: If the target is a cost document or a responsibility voucher, you need to use this button to retrieve the voucher data from the source party, and then use the conversion template to generate the voucher for the destination party.

[0218] 9) Recalculation: If the generated temporary voucher is not the desired one, the conversion template needs to be modified. After modification, a recalculation function is performed for that document (transaction) type, that is, the temporary message of the document is re-matched according to the modified conversion template to generate a new temporary destination voucher.

[0219] 10) Joint investigation: This is divided into joint investigation source and joint investigation target. Joint investigation source refers to joint investigation of upstream documents, and joint investigation target refers to joint investigation of downstream documents.

[0220] 11) Options—Merge Rules: Define and save the merging scheme; once a default scheme is set, it can be invoked when merging multiple temporary vouchers into a single formal voucher. It can also be referenced by conversion templates defined by business units, and merging will occur when generating temporary vouchers.

[0221] 12) Options—Control Conditions: Sets which content on temporary vouchers can be modified and which cannot be modified when temporary vouchers are merged to generate formal vouchers.

[0222] Precautions:

[0223] 1) Temporary vouchers should be deleted with caution, because once a temporary voucher is deleted, it can only be regenerated after the business document has been rejected and then reviewed again.

[0224] 2) In the recalculation, the "Re-entry Rules" option cannot be selected in the multi-ledger accounting mode if accounting vouchers have been generated in some entity ledgers but not in others for the same business document.

[0225] 3) The first column in the voucher generation column is the grouping column, which is mainly used to fill in the serial number of the generated voucher. If the serial numbers are not repeated, one document corresponds to one voucher. If several documents have the same serial number, then the documents with the same serial number will be merged to generate one voucher.

[0226] 4) If a formal voucher has already been generated and subsequent operations have been performed, such as voucher signing or reconciliation, the generation status cannot be canceled.

[0227] 5) After the control conditions are modified, the real-time vouchers need to be recalculated for them to take effect.

[0228] 6) When querying, selecting a business module is equivalent to selecting all document types and transaction types designed for that module. Selecting a document type is equivalent to selecting all transaction types under that document type.

[0229] 7) Both the query results interface for ungenerated vouchers and the query results interface for generated vouchers support double-clicking to sort columns.

[0230] 1.11 Platform Log

[0231] Platform log management is the display and processing of information when errors occur during the generation of real-time vouchers and accounting vouchers from information transmitted from business documents of various systems.

[0232] Main fields;

[0233] 1) Target organization: Which organization's credentials are generated?

[0234] 2) Generation objective: Generate general ledger vouchers or responsibility vouchers.

[0235] 3) Ledgers - Financial Accounting Ledgers: Vouchers for generating the accounting ledgers of the target organization.

[0236] 4) Group number: Group the records.

[0237] 5) Source organization: Which organization's business documents were transferred from to record the business.

[0238] 6) Source document: Which business document from which source organization the business record was transmitted.

[0239] 7) Source User: Which user from the source organization transmitted the business record.

[0240] 8) Processing Status: There are two states: Executing and Suspended Execution. The system defaults to Executing. Executing indicates that the system is still processing the erroneous business transaction, but cannot generate real-time vouchers. Suspended Execution indicates that the system has temporarily stopped processing the erroneous business transaction. Only when the system is in the Executing state can the generation of formal / temporary vouchers or documents be performed.

[0241] 9) Processing Messages: This section displays errors that occurred during the document's execution process. Operators can use this information to identify and correct the errors.

[0242] Important Notes: Log entries in the "Executing" state cannot be deleted; only log entries in the "Paused" state can be selected for deletion. Log entries only provide information about document execution, not the specific business operations performed on the document.

[0243] 1.12 Basic File Conversion

[0244] In group enterprises, due to business and management needs, there are many business connections between business units and between upper and lower-level business units, such as internal transactions and the allocation of expenses in different business units. This results in the need to generate vouchers for the same document in different business units, and it is necessary to establish a conversion relationship between the basic files of two different business units.

[0245] Main fields:

[0246] 1) File entity to be converted: The file that needs to be converted between the two business units. This file entity is used in both business units.

[0247] 2) Source coding rule: When an archive entity is transferred from business unit A to business unit B, the encoding of the archive entity in unit A is the source coding rule.

[0248] 3) Target coding rule: When a file entity is transferred from business unit A to another business unit B, the coding of the file entity in unit B is the target coding rule.

[0249] Note: This version only supports setting basic file conversion relationships based on encoding.

[0250] 1.13 Equation Editor

[0251] In the accounting platform, all configuration work is aimed at converting business data into financial data. In these configuration work, the conditional filtering function is needed to determine which business documents are converted into which vouchers.

[0252] The function used to set filtering conditions is called the formula editor in the accounting platform.

[0253] The formula editor allows you to set various flexible filtering conditions based on document items, metadata, or fixed values. It is primarily used for setting filtering conditions on the platform, as well as for formula-based accounting rules and conversion templates.

[0254] Main operations:

[0255] 1) If you want to directly retrieve a field from a document, you can select the document item or metadata tab, find the corresponding field, double-click to write the variable into the edit box, and then confirm.

[0256] 2) To retrieve a fixed value, select the Fixed Value tab, choose the file type through the metadata entity, select the specific value, and confirm to write the variable into the edit box.

[0257] 3) If you are not directly retrieving fields from the document, nor are you directly retrieving fixed values, then you need to use a function to convert them.

[0258] 4) The accounting platform provides corresponding conversion functions for use. Specific function descriptions are as follows:

[0259] a. `convertDoc(file type, corresponding document fields)`: This function converts basic files based on a template-related conversion scheme. It's generally used for organization-level files when generating vouchers or documents across organizations. For example, when Company A's expense report needs to generate a voucher for Company B, if the income and expense items filled in by Company A are different from those of Company B but have a corresponding relationship, then the `convertDoc` function and the basic file conversion functionality are needed. If the expense-bearing company and department filled in on Company A's expense report are directly in Company B's file, then no conversion is needed, and the `convertDoc` function and basic file conversion are not required.

[0260] Note: If the template does not reference a conversion scheme, it will default to conversion based on the same encoding.

[0261] b. `getaccountbook(financial organization, ledger type)`: Retrieves the financial accounting ledger based on the financial organization and ledger type. Returns null if the financial organization does not have an accounting ledger of the specified type enabled.

[0262] c. getdefaultaccountbook(business unit): Retrieves the main financial accounting book to which the business unit belongs. That is, if the business unit is a financial organization and has established a financial accounting book, it returns the main financial book corresponding to the organization; otherwise, it returns the main financial book of the company to which the business unit belongs.

[0263] d. `getmainaccountbook(Financial Organization)`: Retrieves the main accounting book based on the financial organization. Returns null if the financial organization does not have an accounting book enabled.

[0264] e. getliabilitybook (profit center): Retrieve the responsibility accounting book activated by the profit center.

[0265] f. `getliabilitybook(profit center, ledger type)`: Retrieves the responsibility accounting ledger based on the profit center and ledger type. Returns null if the profit center does not have an accounting ledger of the specified ledger type enabled.

[0266] g. `getexchangerate(source currency primary key, destination currency primary key, date)`: This function retrieves the exchange rate based on the source currency, destination currency, and date.

[0267] Note: The exchange rate used is the one adopted by the target organization.

[0268] 5) After editing the formula, you can check whether the formula is written correctly by clicking the "Verify" button.

[0269] 6) If the edited formula is not needed, you can use the "Clear" button to remove all the edited content.

[0270] Precautions:

[0271] 1) When defining a formula, if you manually enter a string in the formula box, you must enclose the string in double quotes.

[0272] 2) When retrieving document items using formula definitions in the accounting platform, document items are displayed separately in the header and body, making it difficult to select many items together; you can locate them by right-clicking the header.

[0273] 3) If multiple formulas are nested, they should be defined in the following form: a->getcolvalue(...); b->getcolvalue(...a); c->getcolvalue(...b).

[0274] Data output layer: The data output layer mainly consists of generated financial vouchers and financial statements.

[0275] Financial vouchers: Record the generated financial vouchers for financial users to view and modify.

[0276] Trial Balance: Statistical analysis of financial documents to generate a trial balance of accounts in the financial system;

[0277] Supplementary Balance Sheet: Statistical analysis of supplementary information to generate supplementary financial balance reports;

[0278] Auxiliary detailed report: Statistical analysis of auxiliary information and log information to generate a financial auxiliary balance report with business-related information.

[0279] Therefore, this invention provides a complete financial accounting system. By setting rules and maintaining basic data, it forms a service platform that can automatically perform financial accounting, voucher generation, cash flow analysis, and statement generation. Based on the flexible configuration of the relationship between accounts, auxiliary data, and accounting items, financial data of any dimension can be queried and collected from the data layer.

[0280] Exemplary device

[0281] Figure 4 This is a schematic diagram of the structure of a rule-engine-based integrated business and finance accounting device provided in an exemplary embodiment of the present invention. Figure 4 As shown, the device 400 includes:

[0282] The receiving module 410 is used to receive business data from the business system, which is associated with specific source data and document type.

[0283] The first determining module 420 is used to determine the purpose of the accounting ledger for the business data based on the values ​​of the influencing factors contained in the business data and according to the accounting rules.

[0284] The second determination module 430 is used to determine the accounting subject of the business data based on the values ​​of the influencing factors contained in the business data, according to the classification definition and the subject comparison table;

[0285] The generation module 440 is used to combine the field values ​​of business data with accounting subjects according to the conversion template corresponding to the target accounting ledger and document type to generate real-time vouchers;

[0286] The storage module 450 is used to save real-time vouchers as accounting vouchers under the purpose of accounting ledgers.

[0287] Exemplary electronic devices

[0288] Figure 5 This is the structure of an electronic device provided in an exemplary embodiment of the present invention. For example... Figure 5 As shown, the electronic device 50 includes one or more processors 51 and a memory 52.

[0289] The processor 51 may be a central processing unit (CPU) or other form of processing unit with data processing and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.

[0290] The memory 52 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 51 may execute the program instructions to implement the methods of the software programs of the various embodiments of the present invention described above, and / or other desired functions. In one example, the electronic device may also include an input device 53 and an output device 54, these components being interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0291] In addition, the input device 53 may also include, for example, a keyboard, a mouse, etc.

[0292] The output device 54 can output various information to the outside. The output device 54 may include, for example, a display, a speaker, a printer, and a communication network and its connected remote output devices, etc.

[0293] Of course, for the sake of simplicity, Figure 5 Only some of the components of this electronic device relevant to the present invention are shown, omitting components such as buses, input / output interfaces, etc. In addition, the electronic device may include any other suitable components depending on the specific application.

[0294] Exemplary computer program products and computer-readable storage media

[0295] In addition to the methods and apparatus described above, embodiments of the present invention may also be computer program products, which include computer program instructions that, when executed by a processor, cause the processor to perform the steps in the methods according to various embodiments of the present invention described in the "Exemplary Methods" section above.

[0296] The computer program product can be written in any combination of one or more programming languages ​​to perform the operations of the embodiments of the present invention. The programming languages ​​include object-oriented programming languages ​​such as Java and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0297] Furthermore, embodiments of the present invention may also be computer-readable storage media storing computer program instructions thereon, which, when executed by a processor, cause the processor to perform the steps of the methods according to various embodiments of the present invention described in the "Exemplary Methods" section above.

[0298] The computer-readable storage medium may be any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.

[0299] The basic principles of the present invention have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in the present invention are merely examples and not limitations, and should not be considered as essential features of each embodiment of the present invention. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the present invention to the necessity of employing the aforementioned specific details.

[0300] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For system embodiments, since they largely correspond to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0301] The block diagrams of devices, systems, devices, and systems involved in this invention are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, systems, devices, and systems can be connected, arranged, and configured in any manner. Words such as “comprising,” “including,” “having,” etc., are open-ended terms meaning “including but not limited to,” and are used interchangeably with them. The terms “or” and “and” as used herein refer to the terms “and / or,” and are used interchangeably with them unless the context clearly indicates otherwise. The term “such as” as used herein refers to the phrase “such as but not limited to,” and is used interchangeably with it.

[0302] The methods and systems of the present invention may be implemented in many ways. For example, they may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps for the methods is for illustrative purposes only, and the steps of the methods of the present invention are not limited to the order specifically described above unless otherwise specifically stated. Furthermore, in some embodiments, the present invention may also be implemented as a program recorded on a recording medium, the program comprising machine-readable instructions for implementing the methods according to the present invention. Thus, the present invention also covers recording media storing programs for performing the methods according to the present invention.

[0303] It should also be noted that in the systems, apparatus, and methods of the present invention, the components or steps can be disassembled and / or recombined. These disassemblies and / or recombinations should be considered equivalents of the present invention. The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the invention. Therefore, the invention is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.

[0304] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the invention to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.

Claims

1. A business-finance integrated financial accounting method based on a rule engine, characterized in that, include: Receive business data from the business system, the business data being associated with specific source data and document types; Based on the values ​​of the influencing factors contained in the business data, the target accounting ledger for the business data is determined according to the accounting rules; Based on the values ​​of the influencing factors contained in the business data, the accounting subjects of the business data are determined according to the classification definition and the subject comparison table; Based on the conversion template corresponding to the target accounting ledger and the document type, the field values ​​of the business data are combined with the accounting subject to generate real-time vouchers; The real-time voucher is saved as an accounting voucher under the target accounting ledger.

2. The method according to claim 1, characterized in that, Based on the values ​​of the influencing factors contained in the business data, and according to the accounting rules, a target accounting ledger is determined for the business data, including: By defining influencing factors, the available influencing factors and their corresponding basic archive types are defined for the source data; By associating influencing factors with documents, the defined influencing factors are linked to specific document items under the document type to obtain the association relationship; Based on the aforementioned relationships and the aforementioned accounting rules, a target accounting ledger is determined for the business data.

3. The method according to claim 1, characterized in that, Based on the values ​​of the influencing factors contained in the business data, and according to the classification definitions and account lookup tables, accounting subjects are determined for the business data, including: The subject mapping table defines the mapping rules from combinations of values ​​from one or more source files to the target accounting subject; The classification definition references the influencing factors and the account lookup table, enabling the system to determine the accounting subject by matching the values ​​of document items in the business data with the rules in the account lookup table.

4. The method according to claim 1, characterized in that, Before generating the real-time credential, the following is also included: By converting basic files, the mapping relationship between basic files of different financial organizations can be configured; In the conversion template, based on the basic file conversion, the file conversion function is called through the formula editor to convert the basic file value of the source financial organization in the business data into the basic file value corresponding to the destination financial organization.

5. The method according to claim 1, characterized in that, Based on the conversion template corresponding to the target accounting ledger and the document type, the field values ​​of the business data are combined with the accounting subjects to generate real-time vouchers, including: Based on the business association information defined in the conversion template, add the same association tag to real-time vouchers that come from different business documents but have the same business identifier; Based on the associated marker, multiple real-time vouchers are merged to generate a single accounting voucher.

6. The method according to claim 1, characterized in that, Also includes: The system actively retrieves business data that meets the specified criteria from a designated data source through a pull-based data retrieval operation. Based on the retrieved business data, real-time vouchers or accounting vouchers are generated sequentially through the aforementioned accounting rules, classification definitions, account comparison tables, and conversion templates.

7. The method according to claim 1, characterized in that, Also includes: When the conversion template, classification definition, or accounting rule related to the business data is modified, a recalculation operation is triggered at the voucher generation node. The recalculation operation reprocesses the generated real-time vouchers according to the modified rules to generate new real-time vouchers.

8. The method according to claim 1, characterized in that, Also includes: When an error occurs in the process of generating real-time vouchers or accounting vouchers, the error information is recorded in the platform log, which includes the source organization, destination organization, source document, processing status, and processing messages.

9. The method according to claim 1, characterized in that, In the conversion template, the data retrieval or calculation rules are configured through the formula editor; the formula editor supports the use of at least one of the following functions: The convertdoc function is used to perform basic file conversions across organizations. The getaccountbook function retrieves accounting books based on the financial organization and ledger type. The `getexchangerate` function is used to retrieve the exchange rate for a currency.

10. The method according to claim 1, characterized in that, Also includes: Based on the aforementioned accounting vouchers, generate a trial balance. Based on the accounting vouchers and the auxiliary accounting information they contain, auxiliary balance sheets and auxiliary detailed statements are generated.

11. A business-finance integrated accounting device based on a rule engine, characterized in that, include: A receiving module is used to receive business data from a business system, the business data being associated with specific source data and document types; The first determining module is used to determine the target accounting ledger of the business data based on the values ​​of the influencing factors contained in the business data and according to the accounting rules. The second determining module is used to determine the accounting subject of the business data based on the values ​​of the influencing factors contained in the business data, according to the classification definition and the subject comparison table; The generation module is used to combine the field values ​​of the business data with the accounting subjects according to the conversion template corresponding to the target accounting ledger and the document type to generate real-time vouchers; The saving module is used to save the real-time voucher as an accounting voucher under the target accounting ledger.

12. A computer-readable storage medium, characterized in that, The storage medium stores a computer program for performing the method described in any one of claims 1-10.

13. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store the processor's executable instructions; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1-10.