Accounting method, device, system, equipment, cluster, product and medium

By setting multiple accounting rules in the accounting rule base and selecting appropriate rules to generate accounting entries based on business data, the problem of high customization development costs caused by the diversity of business data in existing technologies is solved, and unified accounting and flexible adaptation to different business systems are achieved.

CN120876119APending Publication Date: 2025-10-31HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410533674.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

Existing accounting systems require customized development for each business system due to the diversity and variability of business data, resulting in high development costs and difficulty in adapting to changes in business needs.

Method used

An accounting system is provided that allows the user to set multiple accounting rules in an accounting rule base, select the appropriate accounting rule based on business data to generate accounting entries, support the accounting needs of different business systems, and allow flexible modification of the rule base to adapt to changes.

Benefits of technology

It enables unified accounting across different business systems, reduces development costs, improves system adaptability and flexibility, and effectively generates accounting entries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120876119A_ABST
    Figure CN120876119A_ABST
Patent Text Reader

Abstract

The invention provides an accounting method, device and system, equipment, a cluster, a product and a medium. The method comprises the steps that service data are acquired, and the service data are data generated when a service system manages services; according to the service data, an accounting rule associated with the service data is selected from an accounting rule base to serve as a target accounting rule, the accounting rule base comprises a plurality of accounting rules including the target accounting rule, and different accounting rules indicate different accounting entry generation modes respectively; according to the business data and the generation mode indicated by the target accounting rule, an accounting entry is generated, and the accounting entry is used for recording accounting transactions of the business. The method can provide accounting services for different business systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computing processing, and more particularly to a computing method, apparatus, system, device, cluster, product, and medium. Background Technology

[0002] Accounting is a crucial part of economic activities. To improve automation, existing accounting systems need to automatically convert business data into financial data for accounting purposes. However, the differences in business data across different business operations are significant. The reasons for these significant differences between different business systems can be summarized as follows:

[0003] (1) The diversity of business operations leads to the diversity of business data. Since business operations can include investment operations, foreign exchange operations, wealth management operations, financing operations, storage operations, trust operations, etc., the classification of business data includes investment business data, foreign exchange business data, financing business data, wealth management business data, storage business data, and trust business data, etc.

[0004] (2) Due to different business focuses, the corresponding business systems provide different functions, resulting in diverse business data. For example, investment business is usually characterized by pursuing high returns and bearing certain risks, aiming to obtain higher investment returns for customers, but it may also be accompanied by higher risks. Therefore, the focus of investment business is on the rate of return and risk-reward ratio, and investment business systems often add functions for calculating the rate of return and risk-reward ratio. Therefore, the investment data generated by the investment business system may include not only the aforementioned investment date, investment amount, interest rate, investment recovery date, investment income, and other investment-related data, but also data related to the rate of return and risk-reward ratio. Wealth management business is usually characterized by a stable investment portfolio and relatively low-risk investment methods, aiming to provide customers with stable returns and protect asset value. Therefore, the focus of wealth management business is on value preservation and appreciation and risk control, and wealth management business systems often add functions for value preservation and appreciation and risk control. Therefore, the wealth management data generated by the wealth management business system may include not only the aforementioned purchase date, effective date, wealth management income, and other wealth management-related data, but also data related to value preservation and appreciation and risk control.

[0005] (3) Different business systems used for the same business lead to diversity in business data. Even within the same business system, the systems used may differ, resulting in different business data. For example, Company A uses a customized A investment business system, while Company B uses a commercially available B investment business system. Therefore, the A investment business data generated by the A investment business system and the B investment business data generated by the B investment business system will be different.

[0006] As can be seen from the above records, the business data generated by different business systems are diverse. Therefore, it is necessary to configure a customized accounting system for each business, and the accounting system needs to be iteratively developed and designed according to the continuous changes in business needs, resulting in high development costs throughout the process. Summary of the Invention

[0007] This application provides an accounting method, apparatus, system, equipment, cluster, product, and medium that can provide accounting services for different business systems.

[0008] Firstly, an accounting method is provided. A business system sends business data to an accounting system. Correspondingly, the accounting system receives the business data sent by the business system. The business data is generated by the business system when managing its business operations. The accounting system selects an accounting rule associated with the business data from an accounting rule base as the target accounting rule. The accounting rule base includes multiple accounting rules, including the target accounting rule, with different rules indicating different methods for generating accounting entries. The accounting system generates accounting entries based on the business data and the generation method indicated by the target accounting rule. These accounting entries are used to record the accounting transactions of the business.

[0009] In the above scheme, multiple different accounting rules are set in the accounting rule base. The accounting system can select the corresponding accounting rule to perform accounting based on different business data, thereby enabling it to provide accounting services for different business systems.

[0010] In some possible designs, the accounting system selects an accounting rule associated with the business data from the accounting rule base as the target accounting rule based on the business data, and generates accounting entries according to the business data and the generation method indicated by the target accounting rule in the following specific ways:

[0011] The accounting system retrieves key accounting data from business data, selects target accounting rules associated with the key accounting data from the accounting rule base, and generates accounting entries according to the key accounting data and the generation method indicated by the target accounting rules. The key accounting data is part of the business data.

[0012] In the above solution, since some data in the business data is unrelated to accounting and some is related to accounting, key accounting data can be obtained from the business data, and accounting entries can be generated according to the key accounting data and the generation method indicated by the target accounting rules, thereby effectively reducing the amount of data required.

[0013] In some possible designs, where the key accounting data includes a business type, and the business type is the type of business, and the accounting rules include transaction actions used to indicate the type of business, the specific method by which the accounting system selects the target accounting rule associated with the key accounting data from the accounting rule base is as follows:

[0014] The accounting system selects a target accounting rule from the accounting rule base that is associated with the business type corresponding to the key accounting data, based on the business type corresponding to the key accounting data. The transaction action corresponding to the target accounting rule is the same as the business type corresponding to the key accounting data.

[0015] In some possible designs, where the key accounting data also includes the accounting date and accounting amount, and the accounting rules also include accounting subjects and accounting methods, the specific method for generating accounting entries based on the key accounting data and the generation method indicated by the target accounting rules is as follows:

[0016] (1) The accounting system generates the entry date corresponding to the accounting entry based on the accounting date corresponding to the key accounting data. The entry date is the date on which the transaction occurs or becomes effective.

[0017] (2) The accounting system generates the accounting subject corresponding to the accounting entry based on the accounting subject corresponding to the target accounting rule. The accounting subject is a classification item used in accounting.

[0018] (3) The accounting system extracts the debit information from the accounting rules of the target accounting rules as debit accounts, extracts the accounting amount from the key accounting data as the specific debit amount, and concatenates the debit accounts and the specific debit amount to obtain the debit amount. The debit amount refers to the debit amount record in the business transaction.

[0019] (4) The accounting system extracts the credit information from the accounting rules of the target accounting rules as the credit account, and extracts the accounting amount from the key accounting data as the specific credit amount. The credit account and the specific credit amount are then concatenated to obtain the credit amount. The credit amount refers to the credit amount record in the business transaction.

[0020] (5) The accounting system combines the debit amount and the credit amount to obtain the journal entry amount. The journal entry amount is the monetary record of the transaction.

[0021] The accounting date is the date on which the transaction occurs or takes effect; the accounting amount is the transaction amount of the transaction; the accounting subject is the classification subject for accounting the transaction; and the accounting method includes debit information and credit information. Debit information is used to indicate the debit information that reduces funds when conducting a transaction, and credit information is used to indicate the credit information that increases funds when conducting a transaction.

[0022] In some possible designs, the accounting rule base can be modified in the following ways:

[0023] The accounting system receives a rule update request and performs one or more operations indicated by the rule update request on the accounting rule base. Specifically, the rule update request instructs the system to perform one or more operations on the accounting rule base, including adding, deleting, and modifying accounting rules. For example, when the rule update request instructs the addition of an accounting rule, the rule can be added to the accounting rule base; when the rule update request instructs the reduction of an accounting rule, the rule can be reduced; and when the rule update request instructs the modification of an accounting rule, the rule can be modified. Furthermore, the above operations can be performed simultaneously; for example, one accounting rule can be removed from the accounting rule base while another accounting rule is added.

[0024] The above solution allows for flexible addition, deletion, and modification of the accounting rule base, thus enabling it to be matched with various different business systems.

[0025] Secondly, an accounting device is provided. The device includes an acquisition module, a selection module, and a generation module.

[0026] The acquisition module is used to acquire business data. This business data refers to data generated by the business system when managing business operations.

[0027] The selection module is used to select an accounting rule associated with the business data from the accounting rule base as the target accounting rule. The accounting rule base includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different methods for generating accounting entries.

[0028] The generation module is used to generate accounting entries based on the business data and the generation method indicated by the target accounting rules. These accounting entries are used to record the accounting transactions of the business.

[0029] In some possible designs, a selection module is used to obtain key accounting data from business data, and select a target accounting rule associated with the key accounting data from an accounting rule base. A generation module is used to generate accounting entries based on the key accounting data and the generation method indicated by the target accounting rule. The key accounting data is part of the business data.

[0030] In some possible designs, the selection module is used to select a target accounting rule from the accounting rule base that is associated with the business type corresponding to the accounting key data, based on the business type corresponding to the accounting key data. The transaction action corresponding to the target accounting rule is the same as the business type corresponding to the accounting key data.

[0031] In some possible designs, the generation module is used for:

[0032] (1) Generate the entry date corresponding to the accounting entry based on the accounting date corresponding to the key accounting data. The entry date is the date on which the transaction occurs or becomes effective.

[0033] (2) Generate the accounting subject corresponding to the accounting entry based on the accounting subject corresponding to the target accounting rule. The accounting subject is a classification item used in accounting.

[0034] (3) Extract the debit information from the accounting rules of the target accounting rules as debit accounts, extract the accounting amount from the key accounting data as the specific debit amount, and concatenate the debit accounts and the specific debit amounts to obtain the debit amount. The debit amount refers to the debit amount record in the business transaction.

[0035] (4) Extract the credit information from the accounting rules of the target accounting rules as the credit account, extract the accounting amount from the key accounting data as the specific credit amount, and concatenate the credit account and the specific credit amount to obtain the credit amount. The credit amount refers to the amount recorded by the credit party in the business transaction.

[0036] (5) The debit amount and the credit amount are concatenated by strings to obtain the journal entry amount. The journal entry amount is the monetary record of the transaction.

[0037] The accounting date is the date on which the transaction occurs or takes effect; the accounting amount is the transaction amount of the transaction; the accounting subject is the classification subject for accounting the transaction; and the accounting method includes debit information and credit information. Debit information is used to indicate the debit information that reduces funds when conducting a transaction, and credit information is used to indicate the credit information that increases funds when conducting a transaction.

[0038] In some possible designs, the device also includes a modification module.

[0039] The acquisition module is used to receive rule update requests.

[0040] The modification module is used to perform one or more operations indicated by the rule update request on the accounting rule base according to the rule update request. Specifically, the rule update request indicates that one or more operations be performed on the accounting rule base, including adding accounting rules, deleting accounting rules, and modifying accounting rules.

[0041] For example, when a rule update request indicates the addition of an accounting rule, an accounting rule can be added to the accounting rule library; when a rule update request indicates the reduction of an accounting rule, an accounting rule can be reduced to the accounting rule library; and when a rule update request indicates the modification of an accounting rule, an accounting rule can be modified to the accounting rule library. Furthermore, the above operations can be performed simultaneously; for example, one accounting rule can be reduced to the accounting rule library while another accounting rule is added to it.

[0042] Thirdly, a business accounting system is provided, the system comprising: a business device and an accounting device.

[0043] The service device is used to send service data.

[0044] The accounting device is used to select an accounting rule associated with the business data from an accounting rule base as a target accounting rule, and to generate accounting entries according to the business data and the generation method indicated by the target accounting rule. The accounting rule base includes multiple accounting rules, including the target accounting rule, with different accounting rules indicating different methods for generating accounting entries. These accounting entries are used to record the accounting transactions of the business.

[0045] Fourthly, a chip system is provided, the chip system including a processor and a power supply circuit, the power supply circuit being used to supply power to the processor, the processor being used to perform operational steps as described in any of the methods in the first aspect.

[0046] Fifthly, a computing device is provided, the computing device including a processor and a memory;

[0047] The processor is configured to execute instructions stored in the memory to cause the computing device to perform operational steps as described in any of the methods in the first aspect.

[0048] In a sixth aspect, a computing device cluster is provided, including at least one computing device, each computing device including a processor and a memory; the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the computing device cluster to perform operational steps as described in any of the methods in the first aspect.

[0049] In a seventh aspect, a computer program product containing instructions is provided, which, when executed by a cluster of computing devices, cause the cluster of computing devices to perform the operational steps of any of the methods described in the first aspect.

[0050] Eighthly, a computer-readable storage medium is provided, including computer program instructions that, when executed by a cluster of computing devices, perform operational steps as described in any of the methods in the first aspect.

[0051] Based on the implementation methods provided in the above aspects, this application can be further combined to provide more implementation methods. Attached Figure Description

[0052] Figure 1 This is a schematic diagram of the structure of a business accounting system provided in this application;

[0053] Figure 2 This is a flowchart illustrating an accounting method provided in this application;

[0054] Figure 3 This is a schematic diagram of the structure of a business accounting system provided in this application;

[0055] Figure 4 This is a schematic diagram of the structure of a computing device provided in this application;

[0056] Figure 5 This is a schematic diagram of the structure of a computing cluster provided in this application;

[0057] Figure 6 This is a schematic diagram of another computing cluster structure provided in this application. Detailed Implementation

[0058] To facilitate understanding, the terminology used in this application will be introduced first.

[0059] 1. Accounting Subjects:

[0060] Accounting subjects (or simply subjects) are categories (classification names) used to classify and account for the specific content of accounting objects. By setting up accounting subjects, complex economic transactions can be scientifically classified. Accounting objects with similar specific content are grouped together and assigned a single subject. All economic transactions exhibiting these characteristics are accounted for under that subject. For example, to reflect and monitor changes in various assets, subjects such as "Cash on Hand," "Bank Deposits," "Accounts Receivable," "Raw Materials," "Finished Goods Inventory," and "Fixed Assets" can be set up. Similarly, to reflect and monitor changes in various liabilities, subjects such as "Short-Term Loans," "Long-Term Loans," "Accounts Payable," "Employee Compensation Payable," and "Taxes Payable" can be set up.

[0061] Accounting subjects can be broadly categorized based on the economic content they reflect, including asset subjects, liability subjects, common subjects, owner's equity subjects, cost subjects, and profit and loss subjects. Each category can be further divided into several specific subjects according to certain criteria. For example, asset subjects include cash on hand, bank deposits, prepayments, accounts receivable, allowance for doubtful accounts, raw materials, and finished goods inventory, while liability subjects include advances from customers, accounts payable, notes payable, employee compensation payable, taxes payable, dividends payable, long-term loans, and short-term loans. The subjects listed above are for illustrative purposes only and do not constitute specific limitations.

[0062] To address the high cost of customized development for existing accounting systems, this application provides an accounting method. This method involves acquiring business data, selecting an accounting rule associated with the business data from an accounting rule library as the target accounting rule, and generating accounting entries based on the business data and the generation method indicated by the target accounting rule. This enables accounting for various types of business data. The accounting rule library includes multiple accounting rules, including the target accounting rule, with different rules indicating different methods for generating accounting entries. Accounting entries are used to record accounting transactions within the business.

[0063] The accounting system of this application will now be described in detail with reference to the accompanying drawings.

[0064] See Figure 1 , Figure 1 This is a schematic diagram of the structure of a business accounting system provided in this application. Figure 1 As shown, the business accounting system of this application includes: client 110, business system 120 and accounting system 130.

[0065] Client 110 is used for human-computer interaction and can be deployed on terminal devices or computing devices. Terminal devices include personal computers, smartphones, wearable devices, handheld processors, tablets, mobile laptops, augmented reality (AR) devices, virtual reality (VR) devices, all-in-one handheld consoles, wearable devices, in-vehicle devices, smart conferencing devices, smart advertising devices, smart home appliances, etc. Smart home appliances can be robot vacuums, robot mops, etc., without specific limitations here. Computing devices can be implemented through servers, virtual machines, containers, or edge computing devices. Virtual machines and containers both refer to computing systems composed of hardware resources such as computing, storage, and networking that are virtualized through a virtualization platform. Edge computing devices are devices deployed close to data sources and end users, featuring low latency and high bandwidth, such as smart routers and edge servers.

[0066] Client 110 can be software or application running on a terminal device or computing device controlled by the user, such as a personal computer (PC) client, a web client accessed through a browser, an application (APP) client running on a mobile terminal, or a console of a cloud platform. This application does not make any specific limitations.

[0067] Client 110 can also be a cloud platform client, such as a cloud platform console. Specifically, it can be a console based on the World Wide Web (web) or a console based on an application programming interface (API). This application does not make any specific limitations.

[0068] The business system 120 can be deployed on computing devices, computing device clusters, or terminal devices. The implementation of the computing devices is similar to that of the computing devices implementing the client 110 function described above, and will not be repeated here for simplicity. The computing device cluster may include multiple of the aforementioned computing devices, such as a data center; this application does not specifically limit its scope. The description of the terminal devices can be found in the foregoing content and will not be repeated here.

[0069] The accounting system 130 can be deployed on computing devices, computing device clusters, or terminal devices. Figure 1The example described uses a general-purpose computing system 130 deployed on a computing device. The computing device includes servers, virtual machines, containers, or edge computing devices. Virtual machines and containers both refer to computing systems composed of hardware resources such as computing, storage, and networking that are virtualized through a virtualization platform. Edge computing devices are devices that are closer to the data source and end users, featuring low latency and high bandwidth, such as intelligent routers and edge servers. A computing device cluster may include multiple of the above-mentioned computing devices, such as a data center; this application does not specifically limit this. The description of the end devices can be found in the foregoing content and will not be repeated here. For ease of description, the following description uses the general-purpose computing system 130 running on a computing device as an example.

[0070] The accounting system provided in this application has been introduced above. The following section will combine... Figure 1 The illustrated accounting system architecture details the accounting method provided in this application, which is executed by the accounting system. See also... Figure 2 , Figure 2 This is a flowchart illustrating an accounting method provided in this application. For example... Figure 2 As shown, the accounting method provided in this application includes the following steps:

[0071] S101: Client 110 sends an accounting notification to business system 120.

[0072] Accordingly, business system 120 receives the accounting notification sent by the client.

[0073] The accounting notification is used to trigger the business system to send business data to the accounting system for accounting.

[0074] Business data refers to the data generated by business systems when managing business operations. The following is a detailed introduction to business data. Business operations can include investment, foreign exchange, wealth management, financing, storage, trust, and so on. Business systems can include investment systems, foreign exchange systems, wealth management systems, financing systems, storage systems, trust systems, and so on. Business data can include investment data, foreign exchange data, wealth management data, financing data, storage data, and trust data, etc. Investment data typically includes investment date, investment amount, interest rate, investment recovery date, investment return, etc. Foreign exchange data typically includes transaction date, settlement date, purchase amount, sales amount, spot exchange rate, contract exchange rate, etc. Financing data includes effective date, expiration date, financing amount, interest rate, etc. Wealth management data typically includes purchase date, effective date, wealth management return, etc. Storage data includes storage date, storage amount, interest rate, etc. Trust data includes trust date, trust amount, trust fees, etc. Business data can be stored in business systems using one or more of the following methods: tables, databases, cloud storage, data warehouses, or data lakes. When business data is stored in the form of a table, the business data can include multiple fields, each of which includes a field name and a field value.

[0075] The following examples, presented in tabular form, illustrate the business data by showing an investment transaction in the investment business system, a foreign exchange transaction in the foreign exchange business system, and a financing transaction in the financing business system.

[0076] As shown in Table 1, an investment of 1.3 million yuan made on June 22, 2023, with an expected interest rate of 2.3%, and expected to be recovered on December 22, 2023, along with interest of 14,950 yuan, could have the following investment data:

[0077] Table 1 Investment Business Data Table

[0078] Investment Date Investment amount interest rate Investment recovery date Investment income June 22, 2023 1.3 million yuan 2.3% December 22, 2023 14,950 yuan

[0079] In this table, "Investment Date" is the field name for the "Investment Date" field, and "June 22, 2023" is the field value; "Investment Amount" is the field name for the "Investment Amount" field, and "1.3 million yuan" is the field value; "Interest Rate" is the field name for the "Interest Rate" field, and "2.3%" is the field value; "Investment Recovery Date" is the field name for the "Investment Recovery Date" field, and "December 22, 2023" is the field value; and "Investment Return" is the field name for the "Investment Return" field, and "14,950 yuan" is the field value. It is understood that the above investment transaction data table is merely a specific example. In practical applications, the investment transaction data table may include more or fewer fields. As shown in Table 2, a foreign exchange transaction stating "On January 24, 2024, 6,000 RMB was exchanged for 120,000,000 Japanese Yen, the spot exchange rate was 21, the contract exchange rate was 20, and the settlement date was January 29, 2024" could have the following foreign exchange transaction data:

[0080] Table 2 Foreign Exchange Business Data Table

[0081]

[0082] In this table, "Transaction Date" is the field name for the "Transaction Date" field, and "January 24, 2024" is the field value; "Settlement Date" is the field name for the "Settlement Date" field, and "January 29, 2024" is the field value; "Amount Exchanged In" is the field name for the "Amount Exchanged In," and "120,000 Japanese Yen" is the field value; "Amount Exchanged Out" is the field name for the "Amount Exchanged Out," and "6,000 Chinese Yuan" is the field value; "Spot Exchange Rate" is the field name for the "Spot Exchange Rate" field, and "21" is the field value; and "Contract Exchange Rate" is the field name for the "Contract Exchange Rate" field, and "20" is the field value. It is important to understand that the above foreign exchange transaction data table is merely a specific example; in actual applications, foreign exchange transaction data tables may include more or fewer fields.

[0083] As shown in Table 3, a financing transaction with the following details could be: "On January 11, 2024, the financing amount was 1 million, the interest rate was 15%, and the expected repayment was to be made in full on January 11, 2025, along with an interest payment of 150,000."

[0084] Table 3 Financing Business Data Table

[0085] Effective Date Funding amount interest rate expiration date Interest repayment January 11, 2024 1 million yuan 15% January 11, 2025 150,000 yuan

[0086] In this table, "Effective Date" is the field name for the "Effective Date" field, and "January 11, 2024" is the field value; "Financing Amount" is the field name for the "Financing Amount" field, and "1 million yuan" is the field value; "Interest Rate" is the field name for the "Interest Rate" field, and "15%" is the field value; "Deadline" is the field name for the "Deadline" field, and "January 11, 2025" is the field value; and "Interest Repayment" is the field name for the "Interest Repayment" field, and "150,000 yuan" is the field value. It is important to understand that the above financing business data table is merely a specific example; in actual applications, the financing business data table may include more or fewer fields.

[0087] Furthermore, Table 1 illustrates an investment transaction from the investment business system, Table 2 illustrates a foreign exchange transaction from the foreign exchange business system, and Table 3 illustrates a financing transaction from the financing business system. In practical applications, the number of rows for investment transactions in Table 1 will increase with more investments, the number of rows for foreign exchange transactions in Table 2 will increase with more foreign exchange transactions, and the number of rows for financing transactions in Table 3 will increase with more financing transactions. When the business system is another type of business system, such as a wealth management business system, tables for wealth management business data may also be included, etc.

[0088] For different business systems, client 110 can send accounting notifications to each business system to send its business data to the accounting system for accounting. However, because the business data of different business systems are different, it is not easy to use the accounting system to perform accounting on the business data generated by different business systems.

[0089] S102: Business system 120 sends business data to accounting system 130.

[0090] Accordingly, the accounting system 130 receives business data sent by the business system 120.

[0091] S103: The accounting system 130 obtains key accounting data from business data.

[0092] Key accounting data refers to the data used for accounting. One or more key accounting data items can be extracted from a single business transaction. Each key accounting data item may include the accounting date, business type, and accounting amount, etc. The accounting date is the date on which the key accounting data item occurred. The business type is the type of business to which the key accounting data item belongs. The accounting amount is the monetary value of the key accounting data item.

[0093] Although the differences between business data from different business systems are significant, and even among business data from the same type of business system, the key accounting data to be extracted from business data of the same type of business system are generally similar. Therefore, for business data from the same business system, the extraction methods corresponding to that business system can be used to extract the key accounting data. That is, if the business data is investment business data, the extraction methods for key accounting data corresponding to investment business data are used to extract the key accounting data. If the business data is foreign exchange business data, the extraction methods for key accounting data corresponding to foreign exchange business data are used to extract the key accounting data. If the business data is financing business data, the extraction methods for key accounting data corresponding to financing business data are used to extract the key accounting data, and so on.

[0094] The accounting system can use predefined field names as input parameters for selection statements, such as the "SELECT table" statement in SQL, to extract key accounting data from business data. These field names can be one or more fields from the business data. Users can pre-define these field names, allowing for different field names for different business systems. During selection, the accounting system extracts the field values ​​corresponding to field names in the business data that have identical characters to the predefined field names, using these as the key accounting data. When the business data table contains multiple rows, other selection conditions can be combined to retrieve key data. For example, selection conditions can be one or more of the following: a specified number of rows, a specified date, or a specified amount.

[0095] The following sections will use investment business data, foreign exchange business data, and financing business data as examples to explain in detail how to extract key accounting data from business data according to the corresponding key accounting data extraction methods.

[0096] (1) Assuming the business data is investment business data, the types of business that need to be accounted for include investment expenditures, investment returns, and investment income. Therefore, the method for extracting key accounting data from investment business data is as follows:

[0097] Taking the first item in the key accounting data table for investment business data as an example, with the business type being "investment expenditure", the investment date and investment amount are used as input parameters for the selection statement. The investment date "June 22, 2023" and the investment amount "1.3 million" are extracted from the investment business data shown in Table 1 and used as the accounting date and accounting amount in the first key accounting data of the investment business data, respectively. Based on the business type being "investment expenditure", the business type in the first key accounting data of the investment business data is determined to be "investment expenditure", thus generating the first key accounting data of the investment business data: accounting date is "June 22, 2023", business type is "investment expenditure", and accounting amount is "1.3 million".

[0098] Taking the second row of the key data table for investment business data as an example, where the business type is "investment recovery", the investment recovery date and investment amount are used as input parameters for the selection statement. The investment recovery date "December 22, 2023" and the investment amount "1.3 million" are extracted from the investment business data shown in Table 1. These are used as the accounting date and accounting amount in the second key data of investment business data, respectively. Based on the business type "investment recovery", the business type in the second key data of investment business data is determined to be "investment recovery". Thus, the second key data of investment business data is generated as follows: accounting date is "December 22, 2023", business type is "investment recovery", and accounting amount is "1.3 million".

[0099] Taking the third row of the key data table for investment business data as an example, where the business type is "investment income", the investment recovery date and investment income are used as input parameters for the selection statement. The selection statement extracts the investment recovery date "December 22, 2023" and the investment income "14,950 yuan" from the investment business data shown in Table 1. These are used as the accounting date and accounting amount in the third key data of investment business data, respectively. Based on the business type "investment income", the business type in the third key data of investment business data is determined to be "investment income". Thus, the third key data of investment business data is generated as follows: accounting date is "December 22, 2023", business type is "investment income", and accounting amount is "14,950 yuan".

[0100] In summary, after obtaining the accounting date, business type, and accounting amount for each item, we can use table creation statements, such as the "create table" statement in SQL, to create the key data table for investment business data as shown in Table 4:

[0101] Table 4 Key Data Table for Investment Business Data Calculation

[0102] Accounting date Business type Accounting Amount June 22, 2023 Investment expenditure 1.3 million December 22, 2023 Investment recovery 1.3 million December 22, 2023 Investment income 14,950 yuan

[0103] It is understood that the above key data table for calculating investment business data is merely a specific example. In practical applications, the key data table for calculating investment business data may include more or fewer fields.

[0104] (2) Assuming the business data is foreign exchange business data, the business types that need to be accounted for include foreign exchange outflow, foreign exchange inflow, and exchange fees. Therefore, the method for extracting key accounting data from the foreign exchange business data is as follows:

[0105] Taking the first row of the key data table for foreign exchange business data as an example, where the business type is "foreign exchange out", the settlement date and the amount exchanged are used as input parameters for the selection statement. The settlement date "January 29, 2024" and the amount exchanged "6,000 RMB" are extracted from the foreign exchange business data shown in Table 2. These are used as the accounting date, transaction amount, and accounting amount in the first key data of the foreign exchange business data, respectively. Based on the business type "foreign exchange out", the business type in the first key data of the foreign exchange business data is determined to be "foreign exchange out", thus generating the first key data of the foreign exchange business data: accounting date is "January 29, 2024", business type is "foreign exchange out", transaction amount is 6,000 RMB, and accounting amount is "6,000 RMB".

[0106] Taking the second row of the key data table for determining foreign exchange transaction data as "foreign exchange inflow" as an example, the settlement date and the inflow amount are used as input parameters for the selection statement. The settlement date "January 29, 2024" and the inflow amount "120,000 yen" are extracted from the foreign exchange transaction data shown in Table 2. These are used as the settlement date and transaction amount in the second key data item of the foreign exchange transaction data, respectively. The transaction amount of 120,000 yen is then calculated at the spot exchange rate of 21(12) on January 29, 2024. The calculation yields an accounting amount of 5714.29 RMB (since accounting can be done in the same country's currency). Based on the business type being "foreign exchange inflow," the second key accounting data for foreign exchange transactions is determined to be "foreign exchange inflow." Thus, the second key accounting data for foreign exchange transactions is generated as follows: accounting date is "January 29, 2024," business type is "foreign exchange inflow," business amount is 120,000 Japanese Yen, and accounting amount is "5714.29 RMB."

[0107] Taking the determination of the business type as "exchange fee" in the third row of the key data table for foreign exchange business data as an example, the settlement date and the amount exchanged are used as input parameters for the selection statement. The settlement date "January 29, 2024" is extracted from the foreign exchange business data shown in Table 2. The amount of RMB 285.71 is obtained by subtracting the amount of RMB 5714.29 in the second row from the amount of RMB 6000 in the first row. These are used as the transaction amount and the amount of the third key data for foreign exchange business data. Based on the business type "exchange fee", the business type in the third key data for foreign exchange business data is determined to be "exchange fee". Thus, the third key data for foreign exchange business data is generated as follows: the settlement date is "January 29, 2024", the business type is "exchange fee", the business amount is RMB 285.71, and the amount of the calculation is "RMB 285.71".

[0108] In summary, after obtaining the accounting date, business type, and accounting amount for each item, you can use table creation statements, such as the "create table" statement in SQL, to create the key accounting data table for foreign exchange business data as shown in Table 5:

[0109] Table 5 Key Data Table for Foreign Exchange Business Calculation

[0110] Accounting date Business type Transaction amount Accounting Amount January 29, 2024 Foreign exchange 6000 RMB 6000 RMB January 29, 2024 Foreign exchange inflow 120,000 yen 5714.29 RMB January 29, 2024 Currency exchange fees 285.71 RMB 285.71 RMB

[0111] It is understood that the above-mentioned key data table for foreign exchange business data is merely a specific example. In practical applications, the key data table for foreign exchange business data may include more or fewer keys and more or fewer values, and the keys and values ​​may be other content.

[0112] (3) Assuming the business data is financing business data, the business types that need to be accounted for include financing, financing repayment, and interest repayment. Therefore, the method for extracting key accounting data from the financing business data is as follows:

[0113] Taking the first row of the key data table for financing business data as an example, with the business type being "financing", the effective date and financing amount are used as input parameters for the selection statement. The effective date "January 11, 2024" and the financing amount "1 million" are extracted from the financing business data shown in Table 3 and used as the accounting date and accounting amount in the first key data of the financing business data, respectively. Based on the business type being "financing", the business type in the first key data of the financing business data is determined to be "financing", thus generating the first key data of the financing business data: accounting date is "January 11, 2024", business type is "financing", and accounting amount is "1 million".

[0114] Taking the second row of the key data table for financing business data as an example, where the business type is "financing repayment", the deadline "January 11, 2025" and the financing amount "1 million" are extracted from the financing business data shown in Table 3 using a selection statement. These are used as the accounting date and accounting amount in the second key data of the financing business data, respectively. Based on the business type "financing repayment", the business type in the second key data of the financing business data is determined to be "financing repayment". Thus, the second key data of the financing business data is generated as follows: accounting date is "January 11, 2025", business type is "financing repayment", and accounting amount is "1 million".

[0115] Taking the business type "interest repayment" in the third row of the key data table for financing business data as an example, the cut-off date and interest repayment are used as input parameters for the selection statement. The cut-off date "January 11, 2025" and the interest repayment "150,000 yuan" are extracted from the financing business data shown in Table 3. These are used as the accounting date and accounting amount in the third key data of financing business data, respectively. Based on the business type "interest repayment", the business type in the third key data of financing business data is determined to be "interest repayment". Thus, the third key data of financing business data is generated as follows: accounting date is "January 11, 2024", business type is "interest repayment", and accounting amount is "150,000 yuan".

[0116] In summary, after obtaining the accounting date, business type, and accounting amount for each item, you can use table creation statements, such as the "create table" statement in SQL, to create the key accounting data table for financing business data as shown in Table 6:

[0117] Table 6 Key Data Table for Financing Business Data Calculation

[0118] Accounting date Business type Accounting Amount January 11, 2024 Financing 1 million yuan January 11, 2025 Financing repayment 1 million yuan January 11, 2025 Interest repayment 150,000 yuan

[0119] It is understood that the above-mentioned key data table for calculating financing business data is merely a specific example. In actual applications, the key data table for calculating financing business data may include more or fewer fields.

[0120] The above-described method for extracting key accounting data is merely a specific example. In practical applications, the extraction methods can be more complex. For instance, Table 1 assumes that the date on which a business system transfers investment funds to the other party's account is called the investment date "June 22, 2023." However, some business systems might use terms like transaction date or effective date. Therefore, the business data from these systems can be input into a large language model to translate the transaction date or effective date into the investment date. Then, the above-described method for extracting key accounting data can be applied. Common large language models include, for example, generative pre-trained transformer (GPT) subnetworks, bidirectional encoder representations from transformers (BERT) subnetworks, XLNet subnetworks, robustly optimized BERT pretraining approach (RoBERTa) subnetworks, and text-to-text transfer transformer (T5) subnetworks, among others. Alternatively, a knowledge graph can be used to record that the transaction date and effective date are equivalent to the investment date. When extracting key accounting data, the date "June 22, 2023" can be extracted from the transaction date or effective date as the investment date.

[0121] Optionally, the key accounting data may also include a business summary field, etc. The business summary is used to briefly describe the content of the business.

[0122] S104: The accounting system 130 selects the target accounting rule associated with the accounting key data from the accounting rule base based on the accounting key data.

[0123] Accounting rules include transaction actions, accounting subjects, accounting methods, etc. Transaction actions are used to match the business types in the key accounting data to determine the corresponding accounting rules. Accounting subjects indicate the accounting subjects corresponding to the accounting rule. Accounting methods describe how to perform accounting on the key accounting data. Accounting rules can be stored in the accounting system in one or more of the following ways: arrays, linked lists, structures, tables, databases, cloud storage, data warehouses, or data lakes. This collection of accounting rules can be called an accounting rule library.

[0124] Corresponding to the investment, foreign exchange, and financing data shown in Tables 1 to 3, the corresponding accounting rule bases will be illustrated in tabular form below. The following descriptions will use the example of the accounting rule base being housed within a data table.

[0125] Table 7 Accounting Rule Base

[0126]

[0127] It is understandable that Table 7 only illustrates some accounting rules. In practical applications, the accounting rule base can include more or fewer accounting rules. Furthermore, the accounting rules in the base can be divided into more detailed accounting rules based on accounting subjects. For example, investment accounting can be divided into investment accounting - high risk, investment accounting - low risk, etc. Moreover, the accounting rule base can be dynamically changed; users can add, delete, or modify accounting rules as needed. Examples will be provided below to illustrate this.

[0128] When a first business system is added, a first accounting rule corresponding to the first business system is added to the accounting rule base. Here, the first business data generated by the first business system can be accounted for using the first accounting rule, which is not an accounting rule in the accounting rule base.

[0129] When reducing the number of second business systems, the corresponding second accounting rules for the second business systems are reduced in the accounting rule base. Here, the second business data generated by the second business systems can be accounted for using the second accounting rules, which are accounting rules in the accounting rule base.

[0130] When modifying the third business system, the corresponding third accounting rules for the third business system are modified in the accounting rule base. Here, the third business data generated by the third business system can be accounted for using the third accounting rules, which are accounting rules belonging to the accounting rule base.

[0131] Taking the accounting rule base as an example, when an accounting rule needs to be added, the content of the accounting rule can be added to the accounting rule base through SQL statements. When an accounting rule needs to be deleted, the corresponding rule can be found in the accounting rule base through SQL statements and deleted. When an accounting rule needs to be modified, the corresponding rule can be found in the accounting rule base through SQL statements and modified.

[0132] Although the differences between business data from different business systems are significant, and even among business data from the same type of business system, the key accounting data for the same type of business system is often similar, as indicated in step S103. Therefore, the accounting rules for key accounting data of the same type of business system are the same. For business data from the same business system, the accounting rules corresponding to that business system can be used to calculate the data. That is, when the business data is investment business data, the accounting rules corresponding to investment business data are used. When the business data is foreign exchange business data, the accounting rules corresponding to foreign exchange business data are used. When the business data is financing business data, the accounting rules corresponding to financing business data are used, and so on.

[0133] The accounting system selects target accounting rules associated with key accounting data from the accounting rule base based on the key accounting data. Specifically, the accounting system uses a selection statement, such as the SQL "SELECT table" statement, to select the target accounting rule associated with the key accounting data from the accounting rule base. Specifically, under certain rule selection conditions, the system selects the target accounting rule associated with the key accounting data from the accounting rule base itself. The rule selection condition is that the transaction action and the business type of the key accounting data are the same. In other words, when using the selection statement, the accounting system compares the business type in the key accounting data with the transaction actions of each accounting rule in the accounting rule base, and selects the accounting rule whose transaction action matches the business type in the key accounting data as the target accounting rule. Since a single piece of business data can often generate multiple key accounting data, for each key accounting data, the business type of that key accounting data can be matched with the transaction action of each accounting rule in the accounting rule library. The accounting rule whose transaction action is exactly the same as the business type of that key accounting data is used as the target accounting rule for that key accounting data.

[0134] The following sections will use the key accounting data shown in Tables 4 to 6 and the accounting rule base shown in Table 7 as examples to explain in detail how the target accounting rule corresponding to each key accounting data is determined.

[0135] (1) For each key accounting data item in Table 4, the corresponding target accounting rule is determined in the following way:

[0136] The business type "investment expenditure" is extracted from the first key accounting data in Table 4. Then, the business type "investment expenditure" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the first accounting rule in Table 7 is "investment expenditure", which is exactly the same as the business type "investment expenditure" of the first key accounting data in Table 4. Therefore, the first accounting rule in Table 7 can be extracted as the target accounting rule for the first key accounting data in Table 4.

[0137] The business type "investment recovery" is extracted from the second key accounting data in Table 4. Then, the business type "investment recovery" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the second accounting rule in Table 7 is "investment recovery", which is exactly the same as the business type "investment recovery" in the second key accounting data in Table 4. Therefore, the second accounting rule in Table 7 can be extracted as the target accounting rule for the second key accounting data in Table 4.

[0138] The business type "investment income" is extracted from the third key accounting data in Table 4. Then, the business type "investment income" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the third accounting rule in Table 7 is "investment income", which is exactly the same as the business type "investment income" in the third key accounting data in Table 4. Therefore, the third accounting rule in Table 7 can be extracted as the target accounting rule for the third key accounting data in Table 4.

[0139] (2) For each key accounting data item in Table 5, the corresponding target accounting rule is determined in the following way:

[0140] The business type extracted from the first key accounting data in Table 5 is "Foreign Exchange Inflow". The business type extracted from the second key accounting data is "Foreign Exchange Outflow". The business type extracted from the third key accounting data is "Foreign Exchange Fees". According to the pre-stored mapping relationship, the transaction action mapped to the fourth accounting rule in Table 7 is "Foreign Exchange Settlement and Sale". Comparing "Foreign Exchange Settlement and Sale" with the transaction actions of each accounting rule in Table 7, it is determined that it is exactly the same as the transaction action of the fourth accounting rule in Table 7, "Foreign Exchange Settlement and Sale". Therefore, the fourth accounting rule in Table 7 can be extracted as the target accounting rule for the first to third key accounting data in Table 5.

[0141] (3) For each key accounting data item in Table 6, the corresponding target accounting rule is determined in the following way:

[0142] The business type "financing" is extracted from the first key accounting data in Table 6. Then, the transaction action of the business type "financing" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the sixth accounting rule in Table 7 is "financing", which is exactly the same as the business type "financing" in the first key accounting data in Table 6. Therefore, the sixth accounting rule in Table 7 can be extracted as the target accounting rule for the first key accounting data in Table 6.

[0143] The business type "financing repayment" is extracted from the second key accounting data in Table 6. Then, the transaction action of the business type "financing repayment" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the seventh accounting rule in Table 7 is "financing repayment", which is exactly the same as the business type "financing repayment" in the second key accounting data in Table 6. Therefore, the seventh accounting rule in Table 7 can be extracted as the target accounting rule for the second key accounting data in Table 6.

[0144] The business type "interest repayment" is extracted from the third key accounting data in Table 6. Then, the transaction action of the business type "interest repayment" is compared with the transaction action of each accounting rule in Table 7. It is determined that the transaction action of the eighth accounting rule in Table 7 is "interest repayment", which is exactly the same as the business type "interest repayment" in the third key accounting data in Table 6. Therefore, the eighth accounting rule in Table 7 can be extracted as the target accounting rule for the third key accounting data in Table 6.

[0145] It is understood that the above example of determining the target accounting rule corresponding to each key accounting data is only a specific example. In practical applications, other methods can also be used to determine the target accounting rule corresponding to each key accounting data, which are not specifically limited here.

[0146] S105: Generate accounting entries based on the business data and the generation method indicated by the target accounting rules.

[0147] Accounting entries are the basis of accounting and a method for recording accounting transactions. Accounting entries can include the entry date, accounting accounts, and entry amounts. Among them, the entry date is obtained from the accounting date in the key accounting data. The accounting accounts are obtained from the accounting accounts in the target accounting rules. The entry amounts include debit amounts and credit amounts. The debit amount includes the debit account and the specific amount. The debit account can be obtained from the accounting method in the target accounting rules, and the specific amount can be obtained from the accounting amount in the key accounting data. Since a single business data can often generate one or more key accounting data, and there is a corresponding target accounting rule for each key accounting data for accounting, each key accounting data can generate an accounting entry. Therefore, each business data can generate one or more accounting entries.

[0148] The way for the accounting system to generate accounting entries for key accounting data using the generation method indicated by the target accounting rules is as follows: The accounting system generates the entry date of the accounting entry according to the accounting date of the key accounting data, generates the accounting accounts of the accounting entry according to the accounting accounts of the target accounting rules, and generates the entry amount of the accounting entry according to the accounting amount of the key accounting data and the accounting rules of the target accounting rules.

[0149] Generating the entry amount of the accounting entry according to the accounting amount of the key accounting data and the accounting rules of the target accounting rules includes:

[0150] Extract the debit information from the accounting rules of the target accounting rules as the debit account, and the accounting amount extracted from the key accounting data as the specific debit amount, and splice the debit account and the specific debit amount to obtain the debit amount. Among them, the debit amount is the amount record of the debit in the business.

[0151] Extract the credit information from the accounting rules of the target accounting rules as the credit account, and the accounting amount extracted from the key accounting data as the specific credit amount, and splice the credit account and the specific credit amount to obtain the credit amount. Among them, the credit amount is the amount record of the credit in the business.

[0152] Splice the debit amount and the credit amount to obtain the entry amount. Among them, the entry amount is the amount record of the business.

[0153] Next, taking the key accounting data shown in Tables 4 to 6 and the accounting rule library shown in Table 7 as examples, it will be detailed how to generate accounting entries for key accounting data using target accounting rules.

[0154] (1) For each key accounting data corresponding to Table 4, each key accounting data in Table 4 uses the corresponding target accounting rule to generate the corresponding accounting entry 1:

[0155] For the first key accounting data item in Table 4, the accounting rule in Table 7 is used to calculate this key accounting data item. During the calculation, "June 22, 2023" is extracted from the accounting date of the first key accounting data item in Table 4 as the entry date for this accounting entry; "Investment Accounting" is extracted from the accounting subject of the first item in Table 7 as the accounting subject for this accounting entry; the debit information "Long-term Investment" is extracted from the debit (DR) in the accounting method of the first accounting rule in Table 7; then, "1.3 million" is extracted from the accounting amount of the first key accounting data item in Table 4, and the debit amount "Long-term Investment 1.3 million" is obtained through string concatenation; the credit information "Bank Account" is extracted from the credit (DR) in the accounting method of the first accounting rule in Table 7, and then "1.3 million" is extracted from the accounting amount of the first key accounting data item in Table 4, and the credit amount "Bank Account 1.3 million" is obtained through string concatenation. Therefore, the first accounting entry corresponding to the first key accounting data in Table 4 is as follows: Entry Date: "June 22, 2023", Accounting Subject: "Investment Accounting", Entry Amount: Debit Amount "Long-term Investment 1.3 million", Credit Amount "Bank Account 1.3 million". The character concatenation string can be a "+", "concat", etc. Alternatively, the select statement and the "concat" statement can be combined to concatenate the two strings simultaneously while selecting the two characters.

[0156] For the second key accounting data in Table 4, the accounting rules in Table 7 are used to calculate this key accounting data. During the calculation, "December 22, 2023" is extracted from the accounting date of the second key accounting data in Table 4 as the entry date for this accounting entry; "Investment Recovery Accounting" is extracted from the accounting subjects in the second item of Table 7 as the accounting subject for this accounting entry; the debit information "Bank Account" is extracted from the debit (DR) in the accounting method of the second accounting rule in Table 7; then, "1.3 million" is extracted from the accounting amount of the second key accounting data in Table 4, and the debit amount "Bank Account 1.3 million" is obtained through string concatenation; the credit information "Long-term Investment" is extracted from the credit (DR) in the accounting method of the second accounting rule in Table 7, and the credit amount "Long-term Investment 1.3 million" is obtained through string concatenation. Therefore, the second accounting entry corresponding to the second key accounting data in Table 4 is as follows: entry date: "December 22, 2023", accounting subject: "investment recovery accounting", entry amount: debit amount "bank account 1.3 million", credit amount "long-term investment 1.3 million".

[0157] For the third key accounting data in Table 4, use the third accounting rule in Table 7 to account for this key accounting data. When accounting, extract "December 22, 2023" from the accounting date of the third key accounting data in Table 4 as the entry date of this accounting entry; extract "Investment Income Accounting" from the accounting subject of the third item in Table 4 as the accounting subject of this accounting entry; use a SELECT statement to extract the debit information "Bank Account" from the debit side (DR) in the accounting method in the third accounting rule in Table 7. Then, extract "14,950" from the accounting amount of the third key accounting data in Table 4, and combine them through string concatenation to get the debit amount "Bank Account 14,950". Extract the credit information "Long-term Investment" from the credit side (CR) in the accounting method in the third accounting rule in Table 7. Then, extract "14,950" from the accounting amount of the third key accounting data in Table 4, and combine them through string concatenation to get the credit amount "Long-term Investment 14,950". Therefore, the third accounting entry corresponding to the third key accounting data in Table 4 is: Entry Date: "December 22, 2023", Accounting Subject: "Investment Income Accounting", Entry Amount: Debit Amount "Bank Account 14,950 yuan", Credit Amount "Long-term Investment 14,950 yuan".

[0158] In summary, after obtaining the entry date, accounting subject, and entry amount for each item, you can use a table creation statement, such as the "CREATE TABLE" statement in SQL, to create accounting entries. Therefore, the accounting entry 1 generated from the key accounting data shown in Table 4 can be as shown in Table 8:

[0159] Table Accounting Entry 1

[0160]

[0161] It can be understood that the above Accounting Entry 1 is only a specific example. In actual applications, Accounting Entry 1 can include more or fewer keys, can include more or fewer values, and both the keys and values can be other content.

[0162] (2) For each key accounting data in Table 5, each key accounting data in Table 5 uses the corresponding target accounting rule to generate the corresponding Accounting Entry 2:

[0163] For the first to third key accounting data in Table 5, use the fourth accounting rule in Table 7 to account for this key accounting data. When accounting, extract "January 29, 2024" from any one of the accounting dates of the first to third key accounting data in Table 5 as the entry date of this accounting entry; determine "foreign exchange settlement and sale" as the accounting subject of this accounting entry from the business types (foreign exchange sold, foreign exchange bought, foreign exchange conversion fee) of the first to third key accounting data in Table 5; extract the debit information "bank deposit - incoming" from the first debit (DR) in the accounting method in the fourth accounting rule in Table 7. Then, extract "5,714.29 RMB yuan" from the accounting amount of the second key accounting data in Table 5, and combine them through string concatenation to get the debit amount "bank deposit - incoming 5,714.29 RMB yuan". Extract the debit information "financial expenses" from the second debit (DR) in the accounting method in the fourth accounting rule in Table 7. Then, extract "285.71 RMB yuan" from the accounting amount of the third key accounting data in Table 5, and combine them through string concatenation to get the debit amount "financial expenses 5,714.29 RMB yuan". Extract the debit information "bank deposit - outgoing" from the credit (DR) in the accounting method in the fourth accounting rule in Table 7. Then, extract "6,000 RMB yuan" from the accounting amount of the first key accounting data in Table 5, and combine them through string concatenation to get the credit amount "bank deposit - outgoing 6,000 RMB yuan".

[0164] Based on the above, after obtaining the entry date, accounting subject, and entry amount for each item, you can use statements to create tables, such as the "create table" statement in SQL statements, to create accounting entries. Therefore, the accounting entry 2 generated from the key accounting data shown in Table 5 can be as shown in Table 9:

[0165] Table 9 Accounting Entry 2

[0166]

[0167] It can be understood that the above Accounting Entry 2 is only a specific example. In actual applications, Accounting Entry 2 may include more or fewer keys, may include more or fewer values, and both keys and values can be other contents.

[0168] (3) Corresponding to each key accounting data in Table 6, each key accounting data in Table 6 uses the corresponding target accounting rule to generate the corresponding Accounting Entry 3:

[0169] For the first key accounting data item in Table 6, the accounting rule in the fifth item of Table 7 is used to calculate this key accounting data item. During the calculation, "January 11, 2024" is extracted from the accounting date of the first key accounting data item in Table 6 as the entry date for this accounting entry; "financing accounting" is extracted from the accounting subject in the fifth item of Table 7 as the accounting subject for this accounting entry; the debit information "bank deposit" is extracted from the debit (DR) in the accounting method of the first accounting rule in Table 7; then, "1 million" is extracted from the accounting amount of the first key accounting data item in Table 6, and the debit amount "bank deposit 1 million" is obtained through string concatenation; the credit information "long-term loan / short-term loan" is extracted from the credit (DR) in the accounting method of the fifth accounting rule in Table 7; then, "1 million" is extracted from the accounting amount of the first key accounting data item in Table 6, and the credit amount "long-term loan / short-term loan 1 million" is obtained through string concatenation. Therefore, the first accounting entry corresponding to the first key accounting data in Table 6 is as follows: entry date: "January 11, 2024", accounting subject: "financing accounting", entry amount: debit amount "bank deposit 1 million", credit amount "long-term loan / short-term loan 1 million".

[0170] For the second key accounting data item in Table 6, the accounting rule in Table 7, item 6, is used to calculate this key accounting data item. During the calculation, "January 11, 2025" is extracted from the accounting date of the second key accounting data item in Table 6 as the entry date for this accounting entry; "Financing Repayment Accounting" is extracted from the accounting subject in item 6 of Table 7 as the accounting subject for this accounting entry; the debit information "Long-term Loans / Short-term Loans" is extracted from the debit (DR) in the accounting method of item 6 of Table 7; then, "1 million" is extracted from the accounting amount of the second key accounting data item in Table 6, and the debit amount "Long-term Loans / Short-term Loans 1 million" is obtained through string concatenation; the credit information "Bank Deposits" is extracted from the credit (DR) in the accounting method of item 6 of Table 7 through a selection statement; then, "1 million" is extracted from the accounting amount of the second key accounting data item in Table 6, and the credit amount "Bank Deposits 1 million" is obtained through string concatenation. Therefore, the second accounting entry corresponding to the second key accounting data in Table 6 is as follows: entry date: "January 11, 2025", accounting subject: "financing repayment accounting", entry amount: debit amount "long-term loan / short-term loan 1 million", credit amount "bank deposit 1 million".

[0171] For the third key accounting data in Table 6, use the seventh accounting rule in Table 7 to account for this key accounting data. When accounting, extract "January 11, 2025" from the accounting date of the third key accounting data in Table 6 as the entry date of this accounting entry; extract "Interest repayment accounting" from the accounting subject of the seventh item in Table 7 as the accounting subject of this accounting entry; extract the debit information "Financial expenses - Interest expense" from the debit (DR) in the accounting method of the seventh accounting rule in Table 7. Then, extract "150,000" from the accounting amount of the third key accounting data in Table 6, and combine it through string concatenation to obtain the debit amount "Financial expenses - Interest expense 150,000". Extract the credit information "Bank deposit" from the credit (CR) in the accounting method of the seventh accounting rule in Table 7. Then, extract "150,000" from the accounting amount of the third key accounting data in Table 6, and combine it through string concatenation to obtain the credit amount "Bank deposit 150,000". Therefore, the third accounting entry corresponding to the third key accounting data in Table 6 is: Entry date: "January 11, 2025", Accounting subject: "Interest repayment accounting", Entry amount: Debit amount "Financial expenses - Interest expense 150,000", Credit amount "Bank deposit 150,000".

[0172] In summary, after obtaining the entry date, accounting subject, and entry amount for each item, you can use a table creation statement, such as the "create table" statement in SQL, to create accounting entries. Therefore, the accounting entry 3 generated from the key accounting data shown in Table 6 can be as shown in Table 10:

[0173] Table 10 Accounting entry 3

[0174]

[0175] It can be understood that the above accounting entry 3 is only a specific example. In actual applications, accounting entry 3 can include more or fewer keys, can include more or fewer values, and both the keys and values can be other contents.

[0176] See Figure 3 , Figure 3 which is a schematic structural diagram of a business accounting system provided by this application. As Figure 3 shown, the business accounting system of this application includes:

[0177] A client 210, used to send an accounting notice to a business device.

[0178] A business device 220, used to send business data when receiving an accounting notice.

[0179] The accounting device 230 is used to select an accounting rule associated with the business data from the accounting rule base as the target accounting rule, and generate accounting entries according to the business data and the generation method indicated by the target accounting rule. The accounting rule base includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different methods for generating accounting entries. These accounting entries are used to record the accounting transactions of the business.

[0180] Both the business unit 220 and the accounting unit 230 can be implemented in software or in hardware. For example, the implementation of the accounting unit 230 will be described below. Similarly, the implementation of the business unit 220 can refer to the implementation of the accounting unit 230.

[0181] As an example of a software functional unit, the computing device 230 may include code running on a computing instance. The computing instance may be at least one of a physical host (computing device), a virtual machine, a container, or other computing devices. Furthermore, the aforementioned computing device may be one or more. For example, the computing device 230 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the application may be distributed in the same region or in different regions. The multiple hosts / virtual machines / containers used to run the code may be distributed in the same Availability Zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0182] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same VPC or across multiple VPCs. Typically, a VPC is set up within a single region. Communication between two VPCs within the same region, and between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0183] As an example of a hardware functional unit, a YY device can include at least one computing device, such as a server. Alternatively, a YY device can also be a device implemented using a CPU, ASIC, PLD, CPLD, FPGA, GAL, DPU, NPU, SoC, offloading card, accelerator card, etc. The aforementioned PLD can be implemented using a CPLD, FPGA, GAL, or any combination thereof.

[0184] The computing device 230 includes multiple computing devices that can be distributed in the same region or in different regions. Similarly, the YY device includes multiple computing devices that can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the YY device includes multiple computing devices that can be distributed in the same Virtual Private Cloud (VPC) or multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, GALs, DPUs, NPUs, SoCs, offloading cards, and accelerator cards.

[0185] Specifically, the accounting device may include:

[0186] The acquisition module 231 is used to acquire business data. This business data refers to the data generated by the business system when managing business operations.

[0187] Selection module 232 is used to select an accounting rule associated with the business data from the accounting rule base as the target accounting rule based on the business data. The accounting rule base includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different ways of generating accounting entries.

[0188] The generation module 233 is used to generate accounting entries based on business data and the generation method indicated by the target accounting rules. These accounting entries are used to record the accounting transactions of the business.

[0189] The modification module 234 is used to execute one or more operations indicated by the rule update request on the accounting rule base according to the rule update request. The rule update request is used to instruct the accounting rule base to perform one or more operations, including adding accounting rules, deleting accounting rules, and modifying accounting rules.

[0190] The acquisition module 231, selection module 232, and generation module 233 can all be implemented in software or in hardware. For example, the implementation of the generation module 233 will be described below. Similarly, the implementation of the acquisition module 231 and selection module 232 can be referenced from the implementation of the generation module 233.

[0191] As an example of a software functional unit, the generation module 233 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, or a container. Furthermore, the aforementioned computing instance may be one or more. For example, the generation module 233 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed within the same region or in different regions. Further, the multiple hosts / virtual machines / containers used to run the code may be distributed within the same availability zone (AZ) or in different AZs, each AZ including one or more geographically proximate data centers. Typically, a region may include multiple AZs.

[0192] Similarly, multiple hosts / virtual machines / containers used to run this code can be distributed within the same Virtual Private Cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Communication between two VPCs within the same region, as well as between VPCs in different regions, requires a communication gateway to be set up within each VPC to enable interconnection between VPCs.

[0193] As an example of a hardware functional unit, the generation module 233 may include at least one computing device, such as a server. Alternatively, the generation module 233 may be implemented using a central processing unit (CPU), an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), a data processing unit (DPU), a neural network processing unit (NPU), a system-on-chip (SoC), an offload card, an accelerator card, or any combination thereof.

[0194] The multiple computing devices included in generation module 233 can be distributed in the same region or in different regions. Similarly, the multiple computing devices included in generation module 233 can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the multiple computing devices included in generation module 233 can be distributed in the same Virtual Private Cloud (VPC) or in multiple VPCs. These multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, GALs, DPUs, NPUs, SoCs, offloading cards, and accelerator cards.

[0195] It should be noted that, in other embodiments, the generation module 233 can be used to execute any step in the accounting method, the acquisition module 231 can be used to execute any step in the accounting method, and the selection module 232 can be used to execute any step in the accounting method. The steps implemented by the acquisition module 231, the selection module 232, and the generation module 233 can be specified as needed. By implementing different steps in the accounting method through the acquisition module 231, the selection module 232, and the generation module 233, all functions of the accounting device can be realized.

[0196] This application also provides a chip system including a processor and a power supply circuit. The power supply circuit supplies power to the processor, which executes the operation steps corresponding to the calculation method. For simplicity, further details are omitted here. The processor can be implemented using a GPU, or it can be implemented using computing devices such as a DPU, NPU, XPU, SoC, offloading card, or accelerator card.

[0197] This application also provides a computing device 300. For example... Figure 4 As shown, the computing device 300 includes a bus 302, a processor 304, a memory 306, and a communication interface 308. The processor 304, the memory 306, and the communication interface 308 communicate with each other via the bus 302. The computing device 300 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 300.

[0198] Bus 302 can be a Peripheral Component Interconnect Express (PCIe) bus, an Extended Industry Standard Architecture (EISA) bus, a Unified Bus (Ubus or UB), a Compute Express Link (CXL), a Cache Coherent Interconnect for Accelerators (CCIX), etc. The Unified Bus is also known as the Lingqu Bus. Buses can be divided into address buses, data buses, control buses, etc. For ease of representation, Figure 4 The bus 304 is represented by a single line, but this does not mean that there is only one bus or one type of bus. Bus 304 may include pathways for transmitting information between various components of computing device 300 (e.g., memory 306, processor 304, communication interface 308). The unified bus may also be referred to as the Lingqu bus.

[0199] Processor 304 may include any one or more computing devices such as central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP) or digital signal processor (DSP), ASIC, FPGA, CPLD, NPU, SoC, offload card, accelerator card, etc.

[0200] Memory 306 may include volatile memory, such as random access memory (RAM). Processor 304 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD). Furthermore, memory 306 may also be implemented using storage class memory (SCM), phase change memory (PCM), or other types of storage media.

[0201] It is worth noting that the same type of storage medium can be configured in the same computing device to realize the function of memory 306, or two or more types of storage media can be configured to realize the function of memory 306. This application does not limit this.

[0202] The memory 306 stores executable program code, which the processor 304 executes to implement the functions of the aforementioned acquisition module, selection module, and generation module, thereby realizing the accounting method. In other words, the memory 306 stores instructions for executing the accounting method.

[0203] Alternatively, the memory 306 stores executable code, which the processor 304 executes to implement the functions of the aforementioned accounting device, thereby implementing the accounting method. That is, the memory 306 stores instructions for executing the accounting method.

[0204] The communication interface 303 uses transceiver modules such as, but not limited to, network interface cards and transceivers to enable communication between the computing device 300 and other devices or communication networks.

[0205] As one possible implementation, the computing device 300 may also include a chip system, which includes a processor and a power supply circuit. The power supply circuit supplies power to the processor, and the processor executes the operation steps corresponding to the calculation method. For simplicity, further details are omitted here. The processor can be implemented using a GPU, or it can be implemented using computing devices or AI chips such as a DPU, NPU, XPU, SoC, offloading card, or accelerator card.

[0206] As one possible implementation, the computing device 300 may include multiple types of processors 304, meaning the computing device 300 is a heterogeneous device. For example, the computing device 300 may include a CPU and a GPU, and the operation steps corresponding to the calculation method can be executed by at least one of the processors 304. For the sake of brevity, further details will not be provided here.

[0207] This application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.

[0208] like Figure 5 As shown, the computing device cluster includes at least one computing device 300. The memory 306 of one or more computing devices 300 in the computing device cluster may store the same instructions for executing the computation method.

[0209] In some possible implementations, the memory 306 of one or more computing devices 300 in the computing device cluster may also store partial instructions for executing the calculation method. In other words, a combination of one or more computing devices 300 can jointly execute the instructions for executing the calculation method.

[0210] It should be noted that the memory 306 in different computing devices 300 within the computing device cluster can store different instructions, each used to execute a portion of the computing device's functions. That is, the instructions stored in the memory 306 of different computing devices 300 can implement the functions of one or more modules among the acquisition module, selection module, and generation module.

[0211] In some possible implementations, one or more computing devices in a computing device cluster can be connected via a network. This network can be a wide area network (WAN) or a local area network (LAN), etc. Figure 6 One possible implementation is shown. For example... Figure 6 As shown, the two computing devices 300A and 300B are connected via a network. Specifically, they are connected to the network through communication interfaces in each computing device. In this possible implementation, the memory 306 in computing device 300A stores instructions for executing the functions of the generation module. Simultaneously, the memory 306 in computing device 300B stores instructions for executing the functions of the acquisition and selection modules.

[0212] Figure 6 The connection method between the computing device clusters shown can be such that, considering the accounting method provided in this application requires a large amount of data storage and a large amount of computation, the functions implemented by the acquisition module and the selection module are delegated to the computing device 300B.

[0213] It should be understood that Figure 6 The functions of the computing device 300A shown can also be performed by multiple computing devices 300. Similarly, the functions of the computing device 300B can also be performed by multiple computing devices 300.

[0214] This application also provides another type of computing device cluster. The interconnection relationships between the computing devices in this computing device cluster can be similarly referenced. Figure 5 and Figure 6 The connection method of the computing device cluster is shown. The difference is that the memory 306 of one or more computing devices 300 in this computing device cluster can store the same instructions for executing the computing method.

[0215] In some possible implementations, the memory 306 of one or more computing devices 300 in the computing device cluster may also store partial instructions for executing the calculation method. In other words, a combination of one or more computing devices 300 can jointly execute the instructions for executing the calculation method.

[0216] It should be noted that the memory 306 in different computing devices 300 within the computing device cluster can store different instructions for executing some functions of the business accounting system. That is, the instructions stored in the memory 306 of different computing devices 300 can implement the functions of one or more devices within the accounting unit.

[0217] This application also provides a computer program product containing instructions. The computer program product may be a software or program product containing instructions, capable of running on a computing device or stored on any usable medium. When the computer program product is run on at least one computing device, it causes the at least one computing device to perform a calculation method.

[0218] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium capable of being stored by a computing device, or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to perform a calculation method, or instruct the computing device to perform a calculation method.

[0219] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of this application.

Claims

1. An accounting method, characterized in that, Applied to accounting systems, including: Acquire business data, wherein the business data is data generated by the business system when managing business; Based on the business data, an accounting rule associated with the business data is selected from the accounting rule library as the target accounting rule. The accounting rule library includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different ways of generating accounting entries. Accounting entries are generated based on the business data and the generation method indicated by the target accounting rules, wherein the accounting entries are used to record the accounting transactions of the business.

2. The method according to claim 1, characterized in that, Based on the business data, a target accounting rule is selected from the accounting rule base, including: Key accounting data is obtained from business data, wherein the key accounting data belongs to the business data; Based on the key accounting data, select the target accounting rule associated with the key accounting data from the accounting rule base; Accounting entries are generated based on the business data and the generation method indicated by the target accounting rules, including: Accounting entries are generated based on the key accounting data and the generation method indicated by the target accounting rules.

3. The method according to claim 2, characterized in that, The key accounting data includes business type, which is the type of business, and the accounting rules include transaction actions used to indicate the type of business. Then, based on the key accounting data, a target accounting rule associated with the key accounting data is selected from the accounting rule base, including: Based on the business type corresponding to the key accounting data, a target accounting rule associated with the business type corresponding to the key accounting data is selected from the accounting rule library, wherein the transaction action corresponding to the target accounting rule is the same as the business type corresponding to the key accounting data.

4. The method according to claim 3, characterized in that, The key accounting data also includes the accounting date and accounting amount. The accounting rules also include accounting subjects and accounting methods. The accounting date is the date the transaction occurs or becomes effective; the accounting amount is the transaction amount; the accounting subject is a classification subject for accounting the transaction; and the accounting method includes debit information and credit information. Debit information indicates information on debits that reduce funds during a transaction, and credit information indicates information on credits that increase funds during a transaction. Accounting entries are generated according to the key accounting data and the generation method indicated by the target accounting rules, including: The journal entry date is generated based on the accounting date corresponding to the key accounting data, wherein the journal entry date is the date on which the business transaction occurs or becomes effective; The accounting entries are generated according to the accounting accounts corresponding to the target accounting rules, wherein the accounting accounts are classification items when performing accounting. The debit information is extracted from the accounting rules of the target accounting rules as the debit account, and the accounting amount is extracted from the accounting key data as the specific debit amount. The debit account and the specific debit amount are concatenated to obtain the debit amount, wherein the debit amount is the debit amount record in the business. The credit information is extracted from the accounting rules of the target accounting rules as the credit account, and the accounting amount is extracted from the accounting key data as the specific credit amount. The credit account and the specific credit amount are concatenated to obtain the credit amount, wherein the credit amount is the amount record of the credit in the business. The debit amount and the credit amount are concatenated to obtain the journal entry amount, wherein the journal entry amount is the amount record of the transaction.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: Receive a rule update request, wherein the rule update request is used to instruct the accounting rule base to perform one or more of the following operations: adding accounting rules, deleting accounting rules, and modifying accounting rules; According to the rule update request, perform one or more operations indicated by the rule update request on the accounting rule base.

6. An accounting method, characterized in that, The method includes: The business system sends a request for business data to the accounting system, wherein the business data is data generated by the business system when managing the business. The accounting system selects an accounting rule associated with the business data from the accounting rule library as the target accounting rule based on the business data. The accounting rule library includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different ways of generating accounting entries. The accounting system generates accounting entries based on the business data and the generation method indicated by the target accounting rules, wherein the accounting entries are used to record the accounting transactions of the business.

7. An accounting device, characterized in that, The device includes: The acquisition module is used to acquire business data, wherein the business data is data generated by the business system when managing the business; The selection module is used to select an accounting rule associated with the business data from the accounting rule library as the target accounting rule based on the business data. The accounting rule library includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different ways of generating accounting entries. The generation module is used to generate accounting entries based on the business data and the generation method indicated by the target accounting rules, wherein the accounting entries are used to record the accounting transactions of the business.

8. An accounting generation system, characterized in that, The system includes: Service device, used to send service data; An accounting device is configured to select an accounting rule associated with the business data from an accounting rule library as a target accounting rule based on the business data, and generate accounting entries according to the business data and the generation method indicated by the target accounting rule. The accounting rule library includes multiple accounting rules, including the target accounting rule, and different accounting rules indicate different generation methods for accounting entries. The accounting entries are used to record the accounting transactions of the business.

9. A chip system, characterized in that, The chip system includes a processor and a power supply circuit, the power supply circuit being used to supply power to the processor, and the processor being used to perform the operation steps of the method as described in any one of claims 1 to 5.

10. A computing device, characterized in that, The computing device includes a processor and memory; The processor is configured to execute instructions stored in the memory to cause the computing device to perform the operational steps of the method as described in any one of claims 1 to 5.

11. A computing device cluster, characterized in that, It includes at least one computing device, each computing device including a processor and memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the cluster of computing devices to perform the operational steps of the method as described in any one of claims 1 to 5.

12. A computer program product containing instructions, characterized in that, When the instruction is executed by the computing device cluster, the computing device cluster causes the computing device cluster to perform the operation steps of the method as described in any one of claims 1 to 5.

13. A computer-readable storage medium, characterized in that, It includes computer program instructions, which, when executed by a cluster of computing devices, perform the operational steps of the method as described in any one of claims 1 to 5.