Financial report accounting method and system, and related device

By generating calculation scripts for financial statement accounting, the method and system solve the problems of high labor costs and low efficiency in financial statement accounting, realize automated and flexible financial data processing, reduce labor and development costs, and improve the efficiency and accuracy of financial statement accounting.

WO2025247032A1PCT designated stage Publication Date: 2025-12-04HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/096144
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-29
Filing Date
2025-05-20
Publication Date
2025-12-04

AI Technical Summary

Technical Problem

The current financial statement accounting process suffers from high labor costs and low efficiency. Manual processing relies on the professional knowledge of accountants or the development of calculation scripts, which are costly and lack flexibility, making it difficult to adapt quickly to business changes.

Method used

This paper provides a financial statement accounting method and system that generates calculation scripts by obtaining the accounting template and configuration options selected by the user, thereby achieving automated financial statement accounting and reducing manual intervention and developer involvement.

Benefits of technology

It improved the efficiency and flexibility of financial reporting, reduced labor costs, shortened development cycles, and ensured the accuracy and compliance of financial data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025096144_04122025_PF_FP_ABST
    Figure CN2025096144_04122025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a financial report accounting method and system, and a related device. The method comprises the following steps: acquiring a financial report accounting type from a first client; determining an accounting template corresponding to the financial report accounting type, wherein the accounting template comprises a configuration option and corresponding accounting factors; providing the configuration option to the first client; acquiring configuration information from the first client, wherein the configuration information comprises configuration parameters which are input by a first user on the basis of the configuration option; then, on the basis of the accounting factors and the configuration parameters, determining a code segment corresponding to the configuration option; and on the basis of code segments corresponding to a plurality of configuration options, obtaining a calculation script. In this way, users can run calculation scripts to complete financial report accounting, thereby reducing the learning costs of financial staff and improving the financial report accounting efficiency of enterprises; moreover, users can flexibly customize the calculation scripts on the basis of service requirements without the involvement of developers, thereby reducing the labor costs of the developers and shortening the development cycle.
Need to check novelty before this filing date? Find Prior Art

Description

A financial statement accounting method, system and related equipment

[0001] This application claims priority to Chinese Patent Application No. 202410687520.8, filed with the China National Intellectual Property Administration on May 29, 2024, entitled "A Financial Statement Accounting Method, System and Related Equipment", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of big data, and in particular to a financial statement accounting method, system and related equipment. Background Technology

[0003] Financial statement accounting refers to the process of collecting, organizing, processing, and analyzing a company's financial data to prepare financial reports. During this process, accountants record and process data related to the company's transactions, assets, revenues, and expenses in accordance with accounting standards, generating financial reports such as balance sheets, income statements, and cash flow statements. Through financial statement accounting, companies can understand their financial condition and operating performance, providing open, transparent, and reliable financial data to internal management, external investors, and regulatory agencies.

[0004] However, multiple accounting standards exist globally, such as International Financial Reporting Standards (IFRS), Chinese Accounting Standards (CAS), and US Generally Accepted Accounting Principles (GAAP). Different regions use different accounting standards, and each standard has different financial reporting requirements for different application scenarios. If financial reporting is handled manually by accountants, it requires extensive professional knowledge, resulting in high labor costs and uncertainty about accuracy. If accounting scripts are used, these scripts require developers to write code for each accounting standard and application scenario, also incurring significant labor costs. Furthermore, each script needs rigorous verification and testing before being used by accountants, further extending the development cycle. Therefore, current financial reporting requires high labor costs, relying either on manual accounting by accountants or on developers to manually write calculation scripts, leading to low efficiency and high labor costs. Summary of the Invention

[0005] This application provides a financial statement accounting method, system, and related equipment to solve the problems of high labor costs and low efficiency in current financial statement accounting.

[0006] Firstly, a financial statement accounting method is provided, which includes the following steps: the financial statement accounting system obtains the financial statement accounting type from a first client, determines the accounting template corresponding to the financial statement accounting type, the accounting template includes configuration options and corresponding accounting factors, the accounting factors include code templates that implement the functions described by the configuration options, provides configuration options to the first client, obtains configuration information from the first client, the configuration information includes configuration parameters input by the first user based on the configuration options, determines the code snippets corresponding to the configuration options based on the accounting factors and configuration parameters, generates calculation scripts corresponding to the configuration information based on the code snippets, and the calculation scripts are used to complete the financial statement accounting.

[0007] The method described in the first aspect involves first obtaining the accounting template selected by the user, then providing the user with multiple configuration options corresponding to the accounting template, receiving configuration parameters input by the user based on the configuration options, and filling in the corresponding accounting factors based on the configuration parameters. Each accounting factor is a code template, thereby generating a code segment corresponding to each configuration option, thus obtaining a calculation script. This calculation script can complete the financial statement accounting. This method allows financial statement accounting to be implemented based on the calculation script, eliminating the need for manual processing by financial personnel, thereby improving the efficiency of financial statement accounting. Furthermore, the calculation script can be flexibly customized by financial personnel based on the configuration options, not only improving the system's flexibility and reducing the development cycle, but also eliminating the need for developer involvement, reducing developer labor costs, and improving the efficiency of the enterprise's financial statement accounting.

[0008] In one possible implementation, the configuration options include read options, processing options, and storage options. The read options are used to configure the reading process of the source data, the processing options are used to configure the accounting processing process of obtaining accounting results from the source data through financial statement accounting, and the storage options are used to configure the storage process of storing the accounting results. The code snippets corresponding to the configuration options include read code corresponding to the read option, processing code corresponding to the processing option, and storage code corresponding to the storage option. When generating the calculation script corresponding to the configuration information based on the code snippets, the calculation script can be generated based on the read code, processing code, and storage code.

[0009] The above implementation divides configuration options into reading, processing, and storage, and then generates corresponding code snippets based on these options to obtain the calculation script. This modularizes the calculation script, allowing each module to implement the user's configuration independently. The calculation script can be flexibly customized according to the user's needs. At the same time, modifications to one module will not affect other modules. If a module introduces new configuration options, other modules do not need to be updated accordingly. This makes the system more scalable and easier to maintain and modify.

[0010] In one possible implementation, the accounting factor includes basic code and variables. When determining the code segment corresponding to the configuration option based on the accounting factor and configuration parameters, the variable values ​​in the accounting factor can be determined first based on the configuration parameters input by the first user based on the configuration options. Then, the code segment corresponding to the configuration option can be determined based on the variable values ​​and the basic code.

[0011] In the above implementation, when configuring the calculation script, users only need to input or select configuration parameters without writing code directly. The system can automatically generate corresponding code snippets based on the accounting factors and these configuration parameters to obtain the calculation script. This configuration process is simple and fast, reducing the difficulty of user operation. Moreover, by abstracting the code templates corresponding to each configuration option through the accounting factors, the readability and maintainability of the code are improved. When new business scenarios require the addition of new calculation scripts, users do not need to write code from scratch. They can obtain new calculation scripts by inputting or selecting configuration parameters based on business logic. Furthermore, since the accounting factors used in the calculation scripts have been pre-verified and tested, new calculation scripts do not need to undergo lengthy verification and testing, thereby improving the efficiency of system deployment and iteration.

[0012] In one possible implementation, configuration options include the execution time of the calculation script, during which the financial statement accounting system can run the calculation script to complete the financial statement accounting. Alternatively, the financial statement accounting system can receive a script execution request from a second client, the script execution request including an identifier of the calculation script requested by the second user, obtain the calculation script based on the identifier, and run the calculation script to complete the financial statement accounting.

[0013] Optionally, the first user is the user who configures the calculation script, and the second user is the user who runs the calculation script. The two users can be the same user or different users. This application does not make any specific limitations.

[0014] The above implementation method, by configuring the execution time of the calculation scripts, enables the system to automatically run the calculation scripts without requiring manual triggering by the user, further saving human resources and reducing the need for human intervention. Simultaneously, the system can rationally arrange the execution order and interval of the calculation scripts based on their execution times and the system resources required for each script, improving the overall operational efficiency and stability of the financial accounting system. This application also supports manual script execution by users; whether it's internal automation or external user requests, the system can respond quickly and complete the financial statement calculation.

[0015] In one possible implementation, after obtaining configuration information from the first client, the financial reporting system can provide the configuration information to the third client and obtain the audit result from the third client. The audit result is generated after the third user determines whether the configuration information complies with accounting rules. If the audit result is unsatisfactory, a reconfiguration notification message is sent to the first client. If the audit result is satisfactory, the accounting factor corresponding to each configuration option is determined based on the configuration parameters under each configuration option.

[0016] The above implementation method, due to the high accuracy and compliance requirements of financial reporting, reduces the occurrence of configuration errors in calculation scripts by having a third-party user (i.e., an auditor) approve the configuration information. Auditors only need to ensure that the configuration information complies with accounting rules and internal control requirements; they do not need to understand the underlying code logic of the calculation scripts, simplifying their workflow. Furthermore, since the configuration information meets financial requirements and each accounting factor is verified and tested before deployment, calculation scripts generated in this way do not require further verification and testing. This allows users to quickly configure and deploy calculation scripts when new business scenarios emerge, improving the flexibility of the financial reporting system and preventing efficiency losses due to new business scenarios.

[0017] In one possible implementation, the financial statement accounting type includes one or more of the following: reclassification adjustment, financial statement translation, carry-forward calculation, general elimination, non-controlling interest elimination, and consolidated taxation.

[0018] The reclassification template is used to implement reclassification adjustments in financial statement accounting, reclassifying certain items in the financial statements to ensure compliance with accounting rules, regulations, or company business needs. The carry-forward calculation template is used to calculate and record carry-forward expenses for a specific period, transferring these expenses from one accounting period to another. An accounting period refers to the time frame during which a company prepares and reports its financial statements. The statement translation template is used to translate financial statements into a specific currency or reporting standard. The general elimination template is used to record and calculate elimination items in the financial statements. The non-controlling interest elimination template is used to calculate the elimination of income from subsidiaries with non-controlling interests in consolidated financial statements. Non-controlling interests refer to subsidiaries owned but not fully controlled by the parent company; for example, if a holding company holds less than 50% equity in a subsidiary, that subsidiary is considered a non-controlling interest subsidiary of the holding company. The consolidated tax calculation template is used to consolidate and process the tax matters of multiple subsidiaries in the financial statements. It should be understood that the above accounting templates are for illustrative purposes only. This application can establish more accounting templates for more accounting types, and this application does not impose specific limitations.

[0019] It should be understood that because the processing flow is different for different accounting types, the configuration parameters under the configuration options of different accounting templates are different. The following explanation uses the reclassification template as an example. The reclassification template requires the reclassification of certain items in the financial statements to ensure that the financial statements comply with accounting rules, regulatory requirements or company business needs. Therefore, the configuration parameters in the reclassification template are related to the reclassification of items.

[0020] The reclassification template's read options define the data read process for reclassification accounting. Its configuration parameters can include the data read range and data read method. The data read range can specifically include: viewpoint, currency, counterparty, account, and custom dimension. Specifically, viewpoint defines the angle, scope, and level of data extraction; currency defines the currency unit used for data extraction; account defines the specific account to be reclassified, usually distinguished by account code; counterparty defines the transaction object, which can be used to identify transactions between subsidiaries within the company; and custom dimension is the read address of the project data to be reclassified, such as dimension information and member information. The data read method can include a merging procedure, which defines how the data is read and merged into the report. The merging procedure can define merging methods and adjustment methods during merging. Merging methods can include full merging, proportional merging, etc., and adjustment methods can include exchange rate changes, internal transaction elimination, etc. The above examples are for illustration only and are not specific limitations in this application.

[0021] The reclassification template's processing options define the accounting process for reclassification. Configuration parameters may include: elimination account type (some accounts require elimination processing after reclassification; for example, internal liabilities between two consolidated entities may be classified as assets and liabilities in separate reports, but after consolidation, these internal liabilities need to be eliminated and removed from the asset and liability accounts accordingly, thus requiring elimination account type settings); elimination level (the corresponding organizational level needs to be configured for elimination processing during reclassification, such as elimination at the parent company level); elimination coefficient (the calculation coefficient during elimination processing); and consolidation method (some accounts may be consolidated during reclassification, requiring configuration of the consolidation method; for example, all accounts of a wholly-owned company may need to be fully consolidated into the parent company's accounts, while associates can only be consolidated according to shareholding ratio). The above examples are for illustration; the processing options may include more configuration parameters, which are not specifically limited in this application.

[0022] The storage options for the reclassification template define the data storage process for reclassification accounting. Configuration parameters can include the data storage scope and method. The data storage scope can specifically include: debit / credit, description, account, accounts receivable / payable, and custom dimensions. Debit / credit refers to the account information of the debit / creditor, the receiving accounts that may be affected by the reclassification operation. In accounting, every transaction is designed with debit and credit changes, specifying which account is the debit (account with increased assets or decreased liabilities) and which account's credit (account with decreased assets or increased liabilities) is necessary. Such specification facilitates automated processing of accounting entries and ensures that each reclassification complies with the principle of accounting debit-credit balance. Description is a description of the reclassification operation, aiding in auditing and traceability. Account is the code of the account after reclassification. Accounts receivable / payable may change after reclassification. Custom dimensions are the addresses where the reclassified project data needs to be stored, such as dimension information and member information. Storage methods may include consolidation procedures. The purpose of consolidating financial statements is to combine data from multiple financial entities into a single report representing overall economic activity. Reclassification is the process of processing transactions between individual entities or entities to meet specific accounting reporting or presentation requirements. Consolidation procedures define how to integrate these adjusted data into the overall financial statements, including how to display adjusted accounts and how to handle multi-level accounting information. The above examples are for illustrative purposes only and are not intended to be specific.

[0023] The above example uses a reclassification template; other templates can also define their accounting template configuration parameters in a similar way. Examples will not be repeated here.

[0024] The above implementation method establishes multiple accounting templates for different financial accounting processes and accounting rules in financial accounting scenarios. Each accounting template includes configuration options and configuration parameters required for the corresponding financial accounting process, so that the financial accounting system can adapt to various financial accounting needs of enterprises and improve the applicability and flexibility of the system.

[0025] Secondly, a financial statement accounting system is provided. This system may include a configuration unit for obtaining the financial statement accounting type from a first client; a configuration unit for determining the accounting template corresponding to the financial statement accounting type; the accounting template includes configuration options and corresponding accounting factors; the accounting factors include code templates that implement the functions described by the configuration options; a configuration unit for providing configuration options to the first client and obtaining configuration information from the first client; the configuration information includes configuration parameters input by the first user based on the configuration options; a script generation unit for determining the code snippets corresponding to the configuration options based on the accounting factors and configuration parameters; and a script generation unit for generating a calculation script corresponding to the configuration information based on the code snippets. The calculation script is used to complete the financial statement accounting.

[0026] Implementing the system described in the second aspect involves first obtaining the accounting template selected by the user, then providing the user with multiple configuration options corresponding to the accounting template, receiving configuration parameters input by the user based on the configuration options, and filling in the corresponding accounting factors based on the configuration parameters. Each accounting factor is a code template, thereby generating a code segment corresponding to each configuration option, thus obtaining a calculation script. This calculation script can complete the financial statement accounting. This method allows financial statement accounting to be implemented based on the calculation script, eliminating the need for manual processing by financial personnel, thereby improving the efficiency of financial statement accounting. Furthermore, the calculation script can be flexibly customized by financial personnel based on the configuration options, not only improving the system's flexibility and reducing the development cycle, but also eliminating the need for developer involvement, reducing developer labor costs, and improving the efficiency of the enterprise's financial statement accounting.

[0027] In one possible implementation, the configuration options include read options, processing options, and storage options. The read options are used to configure the read process of the source data, the processing options are used to configure the accounting processing process of the source data to obtain accounting results, and the storage options are used to configure the storage process of the accounting results. The code snippets corresponding to the configuration options include read code corresponding to the read option, processing code corresponding to the processing option, and storage code corresponding to the storage option. The script generation unit is used to generate a calculation script based on the read code, processing code, and storage code.

[0028] In one possible implementation, the accounting factor includes basic code and variables, a script generation unit for determining the variable values ​​in the accounting factor based on the configuration parameters input by the first user based on the configuration options, and a script generation unit for determining the code snippets corresponding to the configuration options based on the variable values ​​and the basic code.

[0029] In one possible implementation, the configuration options include the execution time of the calculation script, and the system also includes a running unit for running the calculation script to complete the financial statement calculation within the execution time; or, the running unit is used to receive a script execution request from a second client, the script execution request including an identifier of the calculation script requested by the second user, and the running unit is used to obtain the calculation script according to the identifier and run the calculation script to complete the financial statement calculation.

[0030] In one possible implementation, the system further includes an audit unit, which provides configuration information to a third client and obtains an audit result from the third client. The audit result is generated after the third user determines whether the configuration information complies with accounting rules. The audit unit is used to send a reconfiguration notification message to the first client if the audit result is unsuccessful. The script generation unit is used to determine the accounting factor corresponding to each configuration option based on the configuration parameters under each configuration option if the audit result is successful.

[0031] In one possible implementation, the financial statement accounting type includes one or more of the following: reclassification adjustment, financial statement translation, carry-forward calculation, general elimination, non-controlling interest elimination, and consolidated taxation.

[0032] Thirdly, a computing device is provided, the computing device including a processor and a memory, the memory for storing instructions and the processor for executing the instructions, such that the computing device implements the method described in the first aspect.

[0033] Fourthly, a computer-readable storage medium is provided, wherein instructions are stored in the computer-readable storage medium, and the instructions are executed by a computing device or a cluster of computing devices to implement the method described in the first aspect.

[0034] Fifthly, a computing device cluster is provided, the computing device cluster including at least one computing device, each computing device including a processor and a memory, the processor of the at least one computing device being configured to execute instructions stored in the memory of the at least one computing device, such that the computing device cluster implements the method described in the first aspect.

[0035] In a sixth aspect, a computer program product comprising instructions is provided, the computer program product including instructions capable of running on a computing device or stored in any available medium, and when the computer program product is run on a computing device or a cluster of computing devices, causing the computing device or the cluster of computing devices to perform the method described in the first aspect.

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

[0037] Figure 1 is an architecture diagram of a financial statement accounting system provided in this application;

[0038] Figure 2 is an example diagram of a financial reporting system deployed in a cloud environment according to this application;

[0039] Figure 3 is a flowchart illustrating the steps of a financial statement accounting method provided in this application;

[0040] Figure 4 is an example of a configuration interface provided in this application;

[0041] Figure 5 is a schematic diagram of the structure of a financial statement accounting system provided in this application;

[0042] Figure 6 is a structural schematic diagram of a computing device provided in this application;

[0043] Figure 7 is an example diagram of a computing device cluster provided in this application;

[0044] Figure 8 is an example diagram of another computing device cluster provided in this application. Detailed Implementation

[0045] Financial statement accounting refers to the process of collecting, organizing, processing, and analyzing a company's financial data to prepare financial reports. During this process, accountants record and process data related to the company's transactions, assets, revenues, and expenses in accordance with accounting standards, generating financial reports such as balance sheets, income statements, and cash flow statements. Through financial statement accounting, companies can understand their financial condition and operating performance, providing open, transparent, and reliable financial data to internal management, external investors, and regulatory agencies.

[0046] However, there are currently multiple accounting standards in the world, such as International Financial Reporting Standards (IFRS), Chinese Accounting Standards (CAS), and US Generally Accepted Accounting Principles (US GAAP). Different regions use different accounting standards, and different application scenarios under each accounting standard also have different financial statement accounting requirements. If financial statement accounting is handled manually, accountants need to have extensive professional knowledge, which not only results in high labor costs but also makes it impossible to ensure the accuracy of manual accounting.

[0047] Therefore, accountants typically use calculation scripts to complete financial statement accounting. A calculation script is a series of program codes or instructions used to automate and standardize the financial statement accounting process. Using calculation scripts can improve the efficiency and accuracy of financial statement accounting, reduce the error rate of manual operation, and ensure the consistency and traceability of financial data.

[0048] However, calculation scripts also have many drawbacks. First, accountants need to inform developers of accounting standards when writing the scripts, which can incur communication costs and require developers to spend considerable time understanding business requirements, increasing development cycle costs. Second, financial reporting requires high accuracy and compliance. After developers write the calculation scripts, they need to rigorously verify and test them to ensure compliance with accounting rules and internal control requirements, resulting in a long script development cycle and impacting the efficiency of financial reporting. Finally, for new business scenarios, existing calculation scripts may not fully adapt to the new requirements, necessitating developers to write new calculation scripts for these scenarios, followed by rigorous verification and testing. This makes the company's financial reporting system inflexible, unable to quickly adapt to changing business needs, and ultimately impacts the efficiency of financial reporting.

[0049] In conclusion, if companies process financial statements manually, accountants need extensive professional knowledge and a thorough understanding of various accounting standards. This not only results in high labor costs but also cannot guarantee the accuracy of manual calculations. While using calculation scripts reduces the labor costs for accountants, it increases the labor costs for developers and presents problems such as long development cycles and poor flexibility. Regardless of the method used, high labor costs contribute to low efficiency in financial statement processing.

[0050] To address the current problems of high labor costs, long development cycles, and poor flexibility in financial statement accounting, this application provides a financial statement accounting method. In the configuration phase, this method can receive multiple configuration options selected by the user and determine multiple corresponding accounting factors based on these options. Each accounting factor includes a code template that implements the function corresponding to the configuration option. Thus, calculation scripts corresponding to multiple configuration options can be generated based on the code templates of multiple accounting factors. In the application phase, when the user needs to perform financial statement accounting, they can run this calculation script to complete the process. In the configuration phase, users can flexibly customize the calculation script based on the configuration options, which not only improves the system's flexibility and reduces the development cycle but also eliminates the need for developer intervention, reducing developer labor costs. In the application phase, financial statement accounting no longer relies on manual processing, reducing the learning and labor costs for financial personnel and improving the efficiency of financial statement accounting for enterprises.

[0051] Figure 1 is an architecture diagram of a financial statement accounting system provided in this application. As shown in Figure 1, the architecture includes a client 100, a financial statement accounting system 200, and a storage system 300. The client 100, the financial statement accounting system 200, and the storage system 300 establish a communication connection through a network. This communication connection can be a wired connection or a wireless connection. The network can be the public internet, an internal local area network (LAN), a virtual private network (VPN), a dedicated line such as fiber optic lines, copper wires, satellite connections, etc., or a wireless network such as wireless fidelity (Wi-Fi) or cellular networks. This application does not impose specific limitations. The number of clients 100 and storage systems 300 establishing communication connections with the financial statement accounting system 200 can be one or more, and this application does not impose specific limitations.

[0052] Client 100 is deployed on terminal devices or computing devices to enable human-computer interaction. Terminal devices include personal computers, smartphones, wearable devices, handheld processors, tablets, mobile laptops, augmented reality (AR) devices, virtual reality (VR) devices, smart conferencing devices, etc., without specific limitations here. The description of computing devices can be found above and will not be repeated here. Computing devices can be bare metal servers (BMS), virtual machines, containers, or storage devices. BMS refers to a general-purpose physical server, such as an ARM server or an x86 server; a virtual machine refers to a complete computer system simulated by software, possessing full hardware system functionality and running in a completely isolated environment. Any task that can be performed on a physical computer can also be performed in a virtual machine. When creating a virtual machine on a computing device, a portion of the physical machine's hard drive and memory capacity needs to be used as the virtual machine's hard drive and memory capacity. Each virtual machine has its own independent basic input / output system (BIOS), hard disk, and operating system, and can be operated like a physical machine. A container is a portable software unit that can combine an application and all its dependencies into a single software package. This package is not limited by the underlying host operating system, thus eliminating the need to build complex environments and simplifying the application development and deployment process.

[0053] The financial reporting system 200 and storage system 300 can be deployed on computing devices or on a cluster of computing devices. The description of the computing devices is as described above and will not be repeated here. Storage system 300 can also be deployed on storage devices, which may include individual hardware storage devices such as hard disk drives (HDDs), solid-state drives (SSDs), mechanical hard disks (HDDs), USB flash drives, flash memory, SD cards, Memory Sticks, etc., without specific limitations in this application. Storage devices may also include storage arrays composed of multiple hardware storage devices. Storage arrays may be redundant arrays of independent disks (RAID), network attached storage (NAS), storage area networks (SANs), etc., without specific limitations in this application. Storage devices may also include virtual storage devices, such as cloud storage services provided by cloud data centers, without specific limitations in this application.

[0054] Storage system 300 is used to store financial data for financial statement accounting. This financial data can come from different business systems within the enterprise. Specifically, the financial data may include financial statements, transaction data, cost and expense data, asset and liability data, tax data, and more; this application does not specify a particular type of financial data. Specifically, storage system 300 can be a multidimensional database (MDD). A multidimensional database is a database model that stores data by combining multiple dimensions. Each dimension represents an attribute or characteristic of the data. This storage method decouples the data, forming business tables by combining dimensional data. Users can flexibly slice and read data based on the dimensions they want to observe, making data reading more flexible, efficient, and intuitive, and also increasing the computational efficiency, making it very suitable for financial statement accounting.

[0055] Optionally, as shown in Figure 1, the financial statement accounting system 200 and the storage system 300 are deployed on different computing devices or different computing device clusters. Alternatively, the financial statement accounting system 200 and the storage system 300 may be deployed on the same computing device or the same computing device cluster; this application does not impose specific limitations.

[0056] Optionally, client 100 can be software or an application running on a user-controlled terminal device or computing device, such as a personal computer (PC) client, a browser-based World Wide Web (WWW) client, an application (APP) client running on a mobile terminal, or a cloud platform console; this application does not impose specific limitations. Users holding client 100 can be financial personnel of an enterprise, such as accountants or financial managers; this application does not impose specific limitations.

[0057] Optionally, client 100 can be a client specifically designed for financial statement accounting. This type of client is specifically designed for users to perform financial statement accounting. It includes financial statement accounting functions, allowing users to select the required accounting template and input configuration information based on the template. The system then generates a calculation script corresponding to the configuration information and pre-configured accounting factors. When users need to perform financial statement accounting, they simply run the calculation script. This allows financial statement accounting to be completed based on the calculation script, reducing the labor costs for financial personnel. Furthermore, the configuration of the calculation script does not require the involvement of developers, further reducing development costs, shortening the development cycle, and improving the efficiency of financial statement accounting for enterprises.

[0058] Optionally, client 100 can also be a comprehensive client that includes a financial statement accounting function module. For example, this comprehensive client can be a financial management software client that includes financial management-related modules, such as an accounting module and a tax management module, as well as a financial statement accounting module that can implement the financial statement accounting functions described above.

[0059] Optionally, client 100 can also be a client of a cloud platform, used for users to purchase and rent various cloud services. The financial statement accounting method provided in this application can be one of the cloud services, and users can purchase the cloud service separately for financial statement accounting; or, the cloud platform provides users with a comprehensive service, and the financial statement accounting scheme provided in this application can be a sub-service of the comprehensive cloud service. For example, the financial statement accounting scheme provided in this application can be a sub-service of the financial management cloud service. This application does not make any specific limitations.

[0060] The preceding text described in detail the possible deployment methods for the financial reporting system 200, client 100, and storage system 300. In actual deployment, flexible deployment can be carried out based on specific application scenarios and business needs. The following section provides examples of actual deployment methods for the financial reporting system 200, client 100, and storage system 300 in specific application scenarios.

[0061] For example, in one application scenario, the financial statement accounting system 200, client 100, and storage system 300 can be deployed on office equipment within an enterprise. For instance, the financial statement accounting system 200 and multiple storage systems 300 can be deployed on a service or server cluster purchased by the enterprise, while client 100 can be deployed on the enterprise's office computers. Employees can use their office computers to run client 100, select the required accounting template, and then input configuration information based on the template. The system then generates a calculation script corresponding to the configuration information and pre-configured accounting factors. When a user needs to perform financial statement accounting, they simply run this calculation script. This allows financial statement accounting to be completed based on the calculation script, reducing the labor costs for finance personnel. Furthermore, the configuration of the calculation script does not require the involvement of developers, further reducing development costs, shortening the development cycle, and improving the efficiency of the enterprise's financial statement accounting.

[0062] In another application scenario, the financial statement accounting system 200 can be deployed in a cloud environment. For example, Figure 2 is an example diagram of a financial statement accounting system deployed in a cloud environment according to this application. As shown in Figure 2, a user can initiate a purchase request for financial statement accounting cloud services through the client 100. After the client 100 sends the purchase request to the cloud platform, the cloud platform can provide the client 100 with the cloud service access rights of the financial statement accounting system 200, so that the user can use the financial statement accounting system 200 through the client 100 to complete the financial statement accounting of the enterprise.

[0063] The cloud platform also maintains various basic resources, including computing resources, storage resources, network resources, and security resources, to meet the computing needs of the financial accounting system 200 under different scales and loads. Furthermore, these computing resources can be dynamically scaled according to the usage needs of the financial accounting system 200 to ensure the stable operation of the financial accounting system 200 and provide users with reliable financial accounting services.

[0064] Optionally, the storage system 300 can also be a cloud service. The cloud service corresponding to the storage system 300 and the financial statement accounting cloud service can be provided by the same cloud platform. In this case, the cloud platform in Figure 2 also includes the storage system 300. Similarly, users can initiate a purchase request for the cloud service corresponding to the storage system 300 through the client 100. After the client 100 sends the purchase request to the cloud platform, the cloud platform can provide the client 100 with the access rights to the cloud service of the storage system 300, so that users can use the storage system 300 through the client 100 to complete related business, such as storing financial data. The storage system 300 can establish a communication connection with the financial statement accounting system 200, so that when the calculation script runs, it can read financial data from the storage system 300 to perform financial statement accounting.

[0065] Optionally, the cloud service corresponding to the storage system 300 and the financial statement accounting cloud service can also be services provided by different cloud platforms. In this case, a hybrid cloud architecture can be used to realize data communication between the financial statement accounting system 200 and the storage system 300. That is, the financial statement accounting system 200 is deployed in data center A, and the storage system 300 is deployed in data center B. Data center A and data center B realize data communication between the financial statement accounting system 200 and the storage system 300 through their respective cloud platforms.

[0066] It should be understood that the above application scenarios are for illustrative purposes only. The financial reporting system 200, storage system 300, and client 100 can be flexibly deployed according to actual business needs. They will not be listed here.

[0067] In this embodiment, the financial statement accounting system 200 may include an accounting template 210 and a calculation script space 220. The accounting template 210 includes configuration options 211 and corresponding accounting factors 212. The accounting factors include code templates that implement the functions corresponding to the configuration options. During the configuration phase, the financial statement accounting system 200 can generate calculation scripts corresponding to the user's configuration information based on the configuration options and corresponding accounting factors selected by the user, and store them in the calculation script space 220. During the application phase, when the user needs to perform financial statement accounting, they can select a calculation script from the calculation script space 220 to run. The calculation scripts are calculation scripts in a multidimensional database, used to process data in a multidimensional database environment, defining calculation relationships between data, data transformation, aggregation, querying, analysis, and other operations. Executing the calculation scripts can realize their defined functions.

[0068] In a specific implementation, the calculation script space 220 can be deployed inside the financial statement accounting system 200, as shown in Figure 1. In other implementations, the calculation script space 220 can also be deployed outside the financial statement accounting system 200. This application does not make any specific limitations.

[0069] Optionally, there can be multiple accounting templates 210. Different accounting templates correspond to different accounting types. It should be understood that financial statement accounting can include multiple accounting types, such as reclassification adjustments and general translations. Different accounting types require different types of accounting operations. For example, reclassification is to adjust the category of a certain item, and general translation is to convert the amount of some items into a specific currency or reporting standard. Therefore, it is necessary to design corresponding templates for different accounting types.

[0070] Optionally, since each accounting type may differ in different application scenarios, for example, the accounting type of reclassification adjustment differs between the retail and manufacturing industries. The retail industry may need to reclassify marketing expenses, operating costs and management expenses, while the manufacturing industry needs to reclassify raw material costs, labor costs and manufacturing expenses. Moreover, the rules on which the reclassification is based also differ. Therefore, each accounting template 210 may include multiple configuration options. For each configuration option, users can select the required configuration from the configuration options according to their own business needs to meet the usage requirements of different accounting types in different application scenarios.

[0071] For example, Figure 1 provides several accounting templates, such as reclassification template, carry-forward calculation template, financial statement conversion template, general offset template, non-controlling interest offset template, and consolidated tax template. This application does not specifically limit these templates. The reclassification template is used to implement reclassification adjustments in financial statement accounting, reclassifying certain items in the financial statements to ensure compliance with accounting rules, regulations, or company business needs. The carry-forward calculation template is used to calculate and record carry-forward expenses for a specific period, transferring these expenses from one accounting period to another. An accounting period refers to the time frame during which a company prepares and reports its financial statements. The statement translation template is used to translate financial statements into a specific currency or reporting standard. The general elimination template is used to record and calculate elimination items in the financial statements. The non-controlling interest elimination template is used to calculate the elimination of income from subsidiaries with non-controlling interests in consolidated financial statements. Non-controlling interests refer to subsidiaries owned but not fully controlled by the parent company; for example, if a holding company holds less than 50% equity in a subsidiary, that subsidiary is considered a non-controlling interest subsidiary of the holding company. The consolidated tax calculation template is used to consolidate and process the tax matters of multiple subsidiaries in the financial statements. It should be understood that the above accounting templates are for illustrative purposes only. This application can establish more accounting templates for more accounting types, and this application does not impose specific limitations.

[0072] Optionally, the configuration options in each accounting template may include read options, processing options, and storage options. Each configuration option may include multiple configuration parameters. Specifically, the read option may include configuration parameters for various data read methods, the processing option may include configuration parameters for various accounting processing rules, and the storage option may include configuration parameters for various data storage methods. This allows users to select the data read method, accounting processing rules, and data storage method according to their business needs by combining configuration parameters.

[0073] Furthermore, each configuration option can correspond to one or more calculation factors. These calculation factors can include code templates and variables. The value of the variable can be determined based on the configuration parameters selected by the user. In this way, based on the configuration options and configuration parameters selected by the user, code snippets for the calculation factors corresponding to the configuration options can be generated. Then, based on the code snippets for reading, processing, and storing the calculation factors, code data corresponding to the calculation script can be generated.

[0074] In practice, multiple accounting factors can be abstracted by combining the processing flow of financial statement accounting under different accounting types and application scenarios. These accounting factors are used to implement reusable steps in these processing flows. Then, configuration options are created based on the accounting factors, so that users can flexibly customize the calculation script through the configuration options.

[0075] In summary, the financial statement accounting system provided in this application, during the configuration phase, can receive multiple configuration options selected by the user. Based on these options, it determines multiple corresponding accounting factors. Each accounting factor includes a code template that implements the function corresponding to the configuration option. Thus, based on these code templates, calculation scripts corresponding to multiple configuration options can be generated. During the application phase, when the user needs to perform financial statement accounting, they can run these calculation scripts to complete the process. In the configuration phase, users can flexibly customize calculation scripts based on configuration options, which not only improves the system's flexibility and reduces the development cycle but also eliminates the need for developer intervention, reducing developer labor costs. In the application phase, financial statement accounting no longer relies on manual processing, reducing the learning and labor costs for financial personnel and improving the efficiency of financial statement accounting for enterprises.

[0076] The financial statement accounting system provided in this application has been described in detail above. The financial statement accounting method provided in this application will be explained below with reference to Figures 3 and 4. This method can be applied to the financial statement accounting system shown in Figures 1 and 2.

[0077] Figure 3 is a flowchart illustrating the steps of a financial statement accounting method provided in this application. As shown in Figure 3, the method may include the following steps:

[0078] S310: Client 100 sends the accounting type entered by the user to financial statement accounting system 200.

[0079] In practice, client 100 can display multiple selectable accounting types to users through the user interface. Different accounting types correspond to different processing flows in financial statement accounting. For example, reclassification adjustment adjusts the category of a certain item, while general conversion converts the amount of some items into a specific currency or reporting standard. Since the processing flows of different accounting types are different, the configuration content will also be different. Therefore, users need to input the accounting type first, and then enter the corresponding configuration process to complete the configuration.

[0080] Optionally, the accounting type may include reclassification adjustments. During the financial statement accounting process, certain items in the financial statements may need to be reclassified to ensure that the financial statements comply with accounting rules, regulatory requirements, or the company's business needs. For example, certain financial assets may be reclassified from available-for-trade financial assets to held-to-maturity financial assets; or, exchange rate fluctuations may cause foreign currency monetary items to be reclassified from the income statement to other comprehensive income; or, during business restructuring or asset restructuring, the assets and liabilities held by subsidiaries may be reclassified as assets for sale and liabilities for sale. The above examples are for illustrative purposes only and are not specifically limited in this application. The processing flow involved in the reclassification adjustment accounting type typically includes identifying items that need to be reclassified, determining the new classification items, recording relevant item information, and implementing the reclassification operation. If the user selects the reclassification adjustment accounting type for configuration, subsequent configuration needs to be completed based on the relevant reclassification adjustment processing flow.

[0081] Optionally, the accounting type may include carry-forward calculation, which is used to calculate and record carry-forward expenses for a specific period, transferring carry-forward expenses from one accounting period to another. An accounting period refers to the time period used by an enterprise to prepare financial statements and make financial reports; typically, accounting periods are based on years, quarters, or months. For example, Company A paid $1,000 for advertising in December 2023, but the advertisement was actually broadcast in January 2024. In this case, the advertising expense needs to be adjusted from 2023 to 2024. That is, the 2023 financial report should not record this expense, but the 2024 financial report should. The above example is for illustration only and is not a specific limitation in this application.

[0082] Optionally, the accounting type may include financial statement translation, which is used to translate financial statements into a specific currency or reporting standard. For example, Company A includes a US subsidiary, a Chinese subsidiary, and a UK subsidiary. The US subsidiary has revenue of US$1 million, the Chinese subsidiary has revenue of RMB8 million, and the UK subsidiary has revenue of £5 million. Company A needs to translate the revenues of these different subsidiaries in different currencies into a unified currency, such as RMB, for overall financial analysis. The above example is for illustration only and is not intended to be specific.

[0083] Optionally, the accounting type may include general elimination, which is used to record and calculate items to be eliminated in the financial statements, simplifying the financial statements and reducing duplicate information and redundant entries. For example, if Company A has revenue of US$10 million and costs of US$5 million, then general elimination can be used to combine the revenue and cost data, directly displaying net profit in the financial statements. If Company A includes multiple subsidiaries, the revenue and costs of each subsidiary can also be combined, directly displaying the sum of revenue and costs of all subsidiaries in the financial statements. The specific general elimination can be performed according to actual business needs, and this application does not impose specific limitations.

[0084] Optionally, the accounting type may include non-controlling interest elimination. Non-controlling interest elimination is the process of eliminating the income of subsidiaries with non-controlling interests in the consolidated financial statements. Non-controlling interests refer to subsidiaries owned by the parent company but not fully controlled. For example, if a holding company holds less than 50% of the equity in a subsidiary, that subsidiary is a non-controlling interest subsidiary of the holding company. The income of such subsidiaries cannot be fully recognized as the holding company's income and needs to be eliminated based on the detailed information of the non-controlling interests. For example, if Company A owns 40% of the equity in Company B, and Company B's net profit is $100,000, then only $40,000 may be considered as income of Company A. In this case, the financial statements need to reflect Company A's actual control over Company B and its actual income. The above example is for illustration only and is not specifically limited in this application.

[0085] Optionally, the accounting type may include consolidated taxation. Consolidated taxation is used to combine and process the tax matters of multiple subsidiaries in the financial statements, simplifying the tax processing procedure. Consolidated taxation needs to consider whether it complies with laws and regulations. For example, suppose company A includes subsidiaries B and C, which are different subsidiaries in the same region. The tax law of that region allows consolidated taxation. In this case, company A can combine the financial data of companies B and C into a single entity and pay taxes at a uniform tax rate, instead of each branch filing and paying taxes separately to the tax authorities. This simplifies the tax processing procedure and reduces the complexity and management costs of tax processing. The above example is for illustration only and is not intended to be specific.

[0086] It should be understood that the above accounting template is for illustrative purposes only. This application can create more accounting templates for more accounting types, and this application does not make any specific limitations.

[0087] S320: Financial statement accounting system 200 determines the accounting template corresponding to the accounting type.

[0088] Optionally, one accounting type corresponds to one accounting template. Referring to S310, accounting types may include reclassification adjustments, carry-forward calculations, financial statement translations, general offsets, non-controlling interest offsets, and consolidated tax calculations, etc. The corresponding accounting templates may include reclassification templates, carry-forward calculation templates, financial statement translation templates, general offset templates, non-controlling interest offset templates, and consolidated tax calculation templates, etc. This application does not make specific limitations.

[0089] Optionally, each accounting template may include multiple configuration options required to implement the financial reporting process for the corresponding processing type. Specifically, these multiple configuration options include at least read options, processing options, and storage options. Read options allow users to configure the source data read process, processing options allow users to configure the accounting processing process, and storage options allow users to configure the accounting result storage process. Of course, each accounting template may also include other configuration options, which can be determined based on the actual business scenario; this application does not impose specific limitations.

[0090] Optionally, each configuration option may include multiple configuration parameters that the user can select. The user can configure each configuration option by combining configuration parameters. Specifically, the read option may include multiple configuration parameters related to data read, such as the dimension information and member information of the data source, the data type, subject, and read method of the data source; the processing option may include multiple configuration parameters related to accounting processing, such as the offset level, offset coefficient, and merging method; the storage option may include multiple configuration parameters related to the storage of accounting results, such as the storage method, the dimension of the storage location, and member information, etc. This application does not impose specific limitations on these parameters.

[0091] It should be understood that because the processing flow is different for different accounting types, the configuration parameters under the configuration options of different accounting templates are different. The following explanation uses the reclassification template as an example. The reclassification template requires the reclassification of certain items in the financial statements to ensure that the financial statements comply with accounting rules, regulatory requirements or company business needs. Therefore, the configuration parameters in the reclassification template are related to the reclassification of items.

[0092] The reclassification template's read options define the data read process for reclassification accounting. Its configuration parameters can include the data read range and data read method. The data read range can specifically include: viewpoint, currency, counterparty, account, and custom dimension. Specifically, viewpoint defines the angle, scope, and level of data extraction; currency defines the currency unit used for data extraction; account defines the specific account to be reclassified, usually distinguished by account code; counterparty defines the transaction object, which can be used to identify transactions between subsidiaries within the company; and custom dimension is the read address of the project data to be reclassified, such as dimension information and member information. The data read method can include a merging procedure, which defines how the data is read and merged into the report. The merging procedure can define merging methods and adjustment methods during merging. Merging methods can include full merging, proportional merging, etc., and adjustment methods can include exchange rate changes, internal transaction elimination, etc. The above examples are for illustration only and are not specific limitations in this application.

[0093] The reclassification template's processing options define the accounting process for reclassification. Configuration parameters may include: elimination account type (some accounts require elimination processing after reclassification; for example, internal liabilities between two consolidated entities may be classified as assets and liabilities in separate reports, but after consolidation, these internal liabilities need to be eliminated and removed from the asset and liability accounts accordingly, thus requiring elimination account type settings); elimination level (the corresponding organizational level needs to be configured for elimination processing during reclassification, such as elimination at the parent company level); elimination coefficient (the calculation coefficient during elimination processing); and consolidation method (some accounts may be consolidated during reclassification, requiring configuration of the consolidation method; for example, all accounts of a wholly-owned company may need to be fully consolidated into the parent company's accounts, while associates can only be consolidated according to shareholding ratio). The above examples are for illustration; the processing options may include more configuration parameters, which are not specifically limited in this application.

[0094] The storage options for the reclassification template define the data storage process for reclassification accounting. Configuration parameters can include the data storage scope and method. The data storage scope can specifically include: debit / credit, description, account, accounts receivable / payable, and custom dimensions. Debit / credit refers to the account information of the debit / creditor, the receiving accounts that may be affected by the reclassification operation. In accounting, every transaction is designed with debit and credit changes, specifying which account is the debit (account with increased assets or decreased liabilities) and which account's credit (account with decreased assets or increased liabilities) is necessary. Such specification facilitates automated processing of accounting entries and ensures that each reclassification complies with the principle of accounting debit-credit balance. Description is a description of the reclassification operation, aiding in auditing and traceability. Account is the code of the account after reclassification. Accounts receivable / payable may change after reclassification. Custom dimensions are the addresses where the reclassified project data needs to be stored, such as dimension information and member information. Storage methods may include consolidation procedures. The purpose of consolidating financial statements is to combine data from multiple financial entities into a single report representing overall economic activity. Reclassification is the process of processing transactions between individual entities or entities to meet specific accounting reporting or presentation requirements. Consolidation procedures define how to integrate these adjusted data into the overall financial statements, including how to display adjusted accounts and how to handle multi-level accounting information. The above examples are for illustrative purposes only and are not intended to be specific.

[0095] The above example uses the reclassification template; other templates can also define their accounting template configuration parameters in a similar manner. The read and storage options for each template are quite similar. Read options include the data read range and data read method. The data read range can be the dimensional information and member information of the source data. Storage options include the data storage range and data storage method. The data storage range can be the dimensional information and member information of the accounting results. Different templates may have different specific configuration parameters for the data read range and data read method, and the data storage range and data storage method, depending on their accounting process. For example, the read options for non-controlling interest offset may also include the shareholding ratio, and the data read options for financial statement translation may include exchange rate information; these will not be elaborated further here. The configuration parameters under the processing options of each accounting template should at least include parameters related to the processing rules, which can be determined based on the actual accounting process. The following examples illustrate the possible configuration parameters under the processing options of the templates for carry-forward calculation, financial statement translation, general offset, non-controlling interest offset, and consolidated tax calculation.

[0096] Carry-over calculation is used to calculate and record carry-over expenses for a specific period, transferring carry-over expenses from one accounting period to another. Therefore, the processing options for the carry-over calculation template can include the following configuration parameters: carry-over period, used to specify the length of the carry-over time period; carry-over object, used to specify the accounting subject to be carried over; carry-over method, used to define which accounting period or account the carry-over object will be transferred to; carry-over conditions, used to specify the conditions or rules that trigger the carry-over, such as specific dates, amount thresholds, etc.; carry-over rules, defining different types of accounting items such as completion of the carry-over. For example, carry-over rules for expense items may include carry-over by usage period, carry-over by actual occurrence date, carry-over by payment date, carry-over by receipt date, etc.; carry-over rules for asset items may include depreciation and amortization, asset transfer, etc.; carry-over rules for cross-period carry-over may include year-end carry-over, cross-month carry-over, etc., and of course, more can be included, but this application does not specifically limit this.

[0097] Financial statement translation is used to translate financial statements into a specific currency or reporting standard. The processing options for the financial statement translation template may include the following configuration parameters: translation type, such as currency translation or reporting standard conversion; currency selection, specifying the target currency type; exchange rate adjustment rules, defining the adjustment rules to be considered during the translation process, such as handling exchange rate differences or adjusting for inflation; and reporting standard, defining the reporting standard to be converted, such as International Financial Reporting Standards (IFRS). Of course, more configuration parameters may be included, but this application does not specify them.

[0098] General elimination is used to record and calculate items to be eliminated in financial statements, simplifying financial statements and reducing duplicate information and redundant entries. The processing options for the general elimination template can include the following configuration parameters: elimination type, defining the type of elimination to be performed, such as debt elimination on the balance sheet; elimination conditions, setting the conditions or rules that trigger elimination, such as triggering based on time, money, or business entity; elimination rules, including how to determine the data involved in the elimination; and elimination method, including the method of calculating the elimination amount, such as standard elimination, proportional elimination, and trade-off elimination. Of course, more configuration parameters can be included, but this application does not specifically limit this.

[0099] Non-controlling interest offset is used to offset the income of subsidiaries with non-controlling interests in the consolidated financial statements. The processing options of the non-controlling interest offset template include the scope of offset, which determines the income items that can be offset by non-controlling interests; the offset method, which is generally a proportional offset method, which offsets the income of non-controlling interests according to the ratio of controlling interest to non-controlling interest. Other offset methods are also possible, such as offsetting according to contractual requirements or company policies. Of course, more configuration parameters can also be included, but this application does not make specific limitations.

[0100] Consolidated tax calculation is used to combine and process the tax matters of multiple subsidiaries in financial statements, simplifying the tax processing procedure. The processing options of the consolidated tax calculation template include tax calculation and tax rules. Tax calculation includes income tax calculation, pre-tax profit adjustment, depreciation and amortization calculation, tax disclosure, etc. Tax rules include applicable tax rates, tax deduction items, rules for handling consolidated related party transactions, etc. Of course, more configuration parameters can be included, which are not specifically limited in this application.

[0101] It should be understood that the above description provides examples of possible configuration parameters for the storage, processing, and reading options of each accounting template, and this application does not impose any specific limitations.

[0102] Optionally, the system can generate multiple configuration interfaces based on the accounting template. These interfaces include multiple configuration options within the template, as well as multiple configuration parameters under each option. After the user selects an accounting type, the financial reporting system 200 can determine the corresponding accounting template and then display the configuration page for that template to the user through the client 100. As mentioned earlier, different accounting templates may have the same configuration options, such as read, process, and store options. However, since different accounting templates correspond to different accounting types and have different accounting processing flows, the configuration parameters under each option in different accounting templates are different, and the corresponding configuration interfaces are also different.

[0103] Optionally, the financial reporting system 200 records the correspondence between accounting types and accounting templates, for example, through a mapping table or configuration file. The mapping table or configuration file records a unique identifier or name of the accounting template corresponding to each accounting type. Thus, when a user selects an accounting type, the financial reporting system 200 can determine the accounting template based on this correspondence, ensuring that each accounting type is correctly associated with its corresponding accounting template.

[0104] S330: Client 100 sends the configuration information entered by the user to the financial statement accounting system 200.

[0105] Optionally, the configuration information includes the parameter values ​​of the configuration parameters. Users can input the parameter values ​​of each configuration parameter according to the multiple configuration parameters under each configuration option displayed on the configuration interface. The parameter values ​​can be manually entered by the user or multiple parameter values ​​provided by the configuration interface for the user to choose from. This application does not impose any specific limitations.

[0106] For example, the read options for a reclassification template may include the following configuration parameters: the dimension and member information of the data source, the data type, subject, and read method of the data source. Users can set each configuration parameter. For example, the parameter value for the dimension information of the data source is 'x', the parameter value for the member information is 'y', the parameter value for the data type is 'Z', the parameter value for the subject is '1001', and the parameter value for the read method is 'method A'. Similarly, the parameter values ​​for the processing and storage options of the reclassification template, as well as the parameter values ​​for the read, processing, and storage options of other accounting templates, can be obtained. Examples of these are not provided here.

[0107] S340: Financial statement accounting system 200 determines the accounting factors corresponding to the configuration information based on the accounting template.

[0108] In the specific implementation, each configuration option in the accounting template has a mapping relationship with an accounting factor. Each accounting factor is used to generate the code snippet corresponding to the configuration option. In the specific implementation, one configuration option corresponds to one or more accounting factors. When corresponding to multiple accounting factors, the accounting factor corresponding to the configuration option can be determined according to the configuration parameters under the configuration option. For example, when a configuration parameter is A, it corresponds to accounting factor A, and when a configuration parameter is B, it corresponds to accounting factor B. Or, when configuration parameter 1 is A and configuration parameter 2 is B, it corresponds to accounting factor A, and when configuration parameter 3 is C and configuration parameter 4 is D, it corresponds to accounting factor B. The mapping relationship between the configuration option and the accounting factor can be flexibly set according to the actual business needs. This application does not make specific limitations.

[0109] For example, the processing options in the reclassification template include offsetting account type, offsetting level, offsetting coefficient, and merging method. Different merging methods have different processing logic. In this case, the merging method configuration parameter can be used to guide the selection of different accounting factors. Specifically, one merging method can correspond to one processing accounting factor, and each processing accounting factor can determine the corresponding code snippet for the processing option based on the user-input account type, offsetting level, and offsetting coefficient. The above example is for illustration only and is not intended to be specific.

[0110] Optionally, the financial statement accounting system 200 can send the user's configuration information to the reviewing user. The reviewing user approves the configuration information and then determines the accounting factor corresponding to the configuration information, and executes S340 and subsequent operations.

[0111] It should be understood that because financial reporting requires a high degree of accuracy and compliance, having users approve configuration information can reduce the occurrence of errors in calculation script configuration. Approving users only need to ensure that the configuration information complies with accounting rules and internal control requirements; they do not need to understand the underlying code logic of the calculation script, thus simplifying their workflow. Furthermore, since the configuration information complies with financial requirements and each accounting factor is verified and tested before deployment, calculation scripts generated in this way do not require further verification and testing. This allows users to quickly configure and deploy calculation scripts when new business scenarios emerge, improving the flexibility of the financial reporting system and preventing efficiency losses due to new business scenarios.

[0112] S350: Financial statement accounting system 200 generates calculation scripts corresponding to configuration information based on accounting factors.

[0113] In this embodiment, the financial reporting system 200 can first determine the code segment implementing each configuration option based on the accounting factor corresponding to each configuration option, and then obtain the calculation script corresponding to the configuration information based on the code segment of each configuration option. Simply put, it obtains a reading code segment based on the reading accounting factor corresponding to the reading option, a processing code segment based on the processing accounting factor corresponding to the processing option, and a storage code segment based on the storage accounting factor corresponding to the storage option. Based on the reading code segment, the processing code segment, and the storage code segment, it obtains the calculation script.

[0114] In a specific implementation, the computation script may include main program logic, which integrates the code snippets corresponding to various configuration options. This includes functions for calling code snippets, processing code snippets, and storing code snippets, as well as execution order functions to ensure that the code snippets are executed in the correct order. The computation script may also include additional logic, such as error handling, logging, and performance optimization, which are not specifically limited in this application.

[0115] In this embodiment, the accounting factor can be a parameterized code template. When determining the code snippet corresponding to each configuration option based on the accounting factor, the code template is filled in based on the configuration information input by the user to obtain the code snippet corresponding to the configuration option. Specifically, the accounting factor includes basic code and variables. The basic code includes the basic code structure for implementing the function corresponding to the accounting factor, including the algorithm for implementing the main function, data processing logic, core library calls, etc. The basic code is fixed and is not affected by the parameter values ​​input by the user. The variables correspond to the configuration parameters in the accounting template. The parameter values ​​of the configuration parameters input by the user can determine the values ​​of the variables. The variables in the accounting factor are filled in based on the configuration information input by the user to obtain the code snippet corresponding to the configuration option. It should be understood that the combination of basic code and configuration parameters allows the accounting factor to maintain the stability and reliability of the core calculation logic while flexibly adapting to the user's needs.

[0116] Furthermore, a variable can correspond to a parameter, such as an offset coefficient value, or it can correspond to a piece of code. For example, if the user selects different offset levels, the offset processing logic will be different, and different offset levels will correspond to different code. The specific code can be flexibly defined according to the business scenario, and this application does not impose any specific limitations.

[0117] For example, taking the read factor of a reclassification template as an example, its basic code may include data connection basic code, data query basic code, and data loading basic code. Its variables can correspond to the configuration parameters in the read options, including viewpoint, currency, counterparty, account, and custom dimension. The data connection basic code is used to establish a data connection based on database variables, which can be determined based on the account, and is used to populate the data connection basic code. The data query basic code is used to construct a query statement based on the data read variables, which can be determined based on configuration parameters such as viewpoint, currency, counterparty, and custom dimension, for example, generating multidimensional expressions or data analysis expressions in a multidimensional database. The data loading basic code is used to load the queried data to be processed into memory. Here, the memory address can be preset, so this basic code may not include variables that need to be populated. Thus, based on the basic code and variables of the read factor, the read code fragment corresponding to the user-configured read options can be obtained. The above example is for illustration only and is not intended to be specific.

[0118] For example, taking the processing factor of the reclassification template, its basic code may include data filtering code, offsetting logic code, and merging processing code. The variables correspond to the configuration parameters in the processing options, including offsetting subject type, offsetting level, offsetting coefficient, and merging method. Specifically, the data filtering code is used to filter the target data that needs to be reclassified from the data to be processed based on the filtering variables, which can be determined according to the offsetting subject type. The offsetting logic code is used to reclassify the target data by subject, offsetting the records that need to be offset in the subject reclassification according to the offsetting method variable, which can be determined according to the offsetting level and offsetting coefficient. Here, the offsetting method variable can also be a piece of code that can be flexibly changed according to the offsetting level and offsetting coefficient. The merging processing code is used to generate the merging result based on the merging method variable, for example, merging data from multiple subjects into one subject. The merging method variable is determined according to the merging method selected by the user. The above examples are for illustrative purposes only and are not intended to be specific.

[0119] For example, taking the storage factor of a reclassification template, its basic code may include data formatting code, data validation code, and data writing code. The variables correspond to the configuration parameters in the storage options, including debit / credit, description, account, counterparty, and custom dimensions. The data formatting code converts the processed data into the required format, the data validation code verifies the integrity and accuracy of the data, and the data writing code writes the formatted and validated data to the address corresponding to the storage variable. The storage variable can be determined based on the custom dimension, debit / credit, account, and counterparty. The above example is for illustration only and does not constitute a specific limitation in this application.

[0120] The above example of the reclassification template illustrates the accounting factors. Other accounting templates can also be configured with accounting factors in a similar manner, and this application does not impose any specific limitations.

[0121] S360: Financial Statement Calculation System 200 stores calculation scripts.

[0122] In its implementation, the financial statement accounting system 200 can store calculation scripts in a calculation script space. This space can be a local file system, a database, a cloud storage service, etc., and this application does not impose any specific limitations. The calculation script space also records an identifier corresponding to each calculation script. This identifier can be the name of the calculation script or a unique identifier, and this application does not impose any specific limitations. This label is used by the financial statement accounting system 200 to distinguish calculation scripts.

[0123] Optionally, the computation script space can also store metadata information for each computation script, including script description, author, creation time, last modification time, and runtime. The script description helps the system and users identify and understand the script's function and purpose. The author information can be used to find and record the script's creator. If script review and authorization management are needed later, this information can be used to ensure script security and compliance. The creation time is used for version control; different versions of the computation script can be identified based on the creation time to implement version rollback functionality. The runtime indicates the script's automatic execution time, typically a time period during which the system will automatically run the computation script. This runtime is usually configured by the user; in other words, the configuration information entered by the user in the S330 also includes the computation script's runtime. It should be understood that the above examples illustrate the possible contents of metadata information. In actual application scenarios, metadata information may include more or less content, depending on actual business needs. This application does not impose specific limitations.

[0124] It should be understood that steps S310–S360 constitute the configuration phase, during which calculation scripts are generated based on the user's configuration information. Steps S370–S390 constitute the application phase, during which financial statement calculations are completed based on the calculation script selected by the user. In practice, the users in the configuration and application phases can be the same user or different users; this application does not impose specific limitations. Simply put, the user in the configuration phase is the first user, the user in the application phase is the second user, and the reviewer is the third user. The first and second users can be the same or different users, and the third user is the reviewer of the first user, such as the first user's supervisor; this application does not impose specific limitations.

[0125] It should be noted that the first user communicates with the financial reporting system 200 using the first client, the second user uses the second client, and the third user uses the third client. The first, second, and third clients are all client 100 as shown in Figure 1, held by different users. Furthermore, if the first and second users are the same user, meaning the user is running their own configured script, then the first and second clients can also be the same client. However, if the first and second users are different users, meaning the user is running a script configured by someone else, then the first and second users are different clients.

[0126] S370: Client 100 sends a script execution request to financial statement accounting system 200.

[0127] Optionally, the script execution request can be triggered by the user. Specifically, the client 100 can display metadata information of multiple computation scripts in the computation script space to the user, such as script name, script author, script description, creation time, etc. The user can select the computation script to be run from the information. The client 100 can trigger a script execution request based on the user's selection, and the request can carry the identifier of the computation script selected by the user.

[0128] Optionally, the script execution request can be automatically triggered based on the script's execution time. Specifically, the financial reporting system may include a time scheduler that records the execution time of user-configured calculation scripts. The time scheduler can trigger the script execution request at a predetermined execution time. For example, if the user sets calculation script 1 to run from 8:00 AM to 12:00 PM every day, then calculation script 1 will automatically run from 8:00 AM to 12:00 PM every day. The above examples are for illustrative purposes only and are not intended to limit the scope of the application.

[0129] It should be noted that if the time scheduler stores runtime and corresponding calculation script identifiers, the script execution request can carry the calculation script identifier, and the financial statement accounting system 200 can retrieve the corresponding script from the calculation script space based on the identifier. If the time scheduler only has runtime, the script execution request does not need to carry the calculation script identifier. The financial statement accounting system 200 can select a suitable script from the calculation script space based on the runtime. If multiple calculation scripts are configured for the same runtime, they can be executed in a queue, or the execution order can be determined by setting priorities for the calculation scripts. This application does not impose specific limitations on this.

[0130] S380: Financial statement accounting system 200 runs calculation scripts.

[0131] In its implementation, the financial statement accounting system 200 can run a calculation script. This script, following its code logic, first executes the read code snippet corresponding to the read option to read the source data involved in the accounting. Then, it executes the processing code snippet corresponding to the processing option to perform financial statement accounting processing on the source data, such as reclassification, consolidated tax calculation, and carry-forward calculation, to obtain the accounting results. Finally, it executes the storage code snippet corresponding to the storage option to store the accounting results in the user-configured storage address.

[0132] S390: The financial statement accounting system 200 sends a notification message to the client 100 indicating that the process has been completed.

[0133] Optionally, if the user selects to run the calculation script, a notification message indicating completion can be sent to the client 100. This notification message may include the execution time, end time, calculation result summary, error information, suggested operations, etc., which are not specifically limited in this application.

[0134] Optionally, if the financial reporting system 200 automatically selects a calculation script from the calculation script space to run based on the user-set runtime, the aforementioned notification message can be sent. Alternatively, no notification message can be sent, but the runtime report can be updated. This runtime report records the runtime, duration, runtime logs, exception handling, and suggested operations for each calculation script. This runtime report can be stored in a preset storage space for users to query at any time. Specific configuration can be tailored to the user's actual business needs; this application does not impose specific limitations.

[0135] To facilitate a better understanding of this application, the configuration interface for obtaining user configuration information in the financial reporting system provided in this application is illustrated below with reference to Figure 4. Figure 4 is an example diagram of a configuration interface provided in this application, which is the configuration interface for a reclassification template. As shown in Figure 4, the configuration interface may include a template selection area 410, a basic information display area 420, a configuration area 430, and controls 440.

[0136] The template selection area 410 includes multiple accounting templates available for users to choose from, including reclassification template, consolidated tax calculation template, carry-forward calculation template, report conversion template, general offset template, opinion billing control rights offset template. Users can select a template to configure according to their needs. In the example shown in Figure 4, the user selected the reclassification template and configured it. Correspondingly, the basic information display area 420 and the configuration area 430 can display the information corresponding to the reclassification template.

[0137] The basic information display area 420 is used to display the basic information corresponding to the accounting template selected by the user, so that the user can understand the meaning of each configuration parameter of the template and complete the configuration in the configuration area 430. For example, the basic information display area 420 may include template name, processing rules, applicable scenarios, processing logic, etc. Among them, the job frequency and effective time can be configured by the user through other configuration interfaces, which is not specifically limited in this application. The processing rules and processing logic are pre-built content of the system, which are displayed to the user to help them understand and facilitate the user to complete the configuration of processing options in the configuration area 430. For example, the processing rules display each configuration parameter in the processing options: offset level, offset coefficient, and merging method. It also displays the possible parameter values ​​in each configuration parameter. For example, the offset level includes the current level and the common parent level. It also displays the definition of each parameter value. For example, the current level represents the offsetting of equity / capital premium at the merging level of the entity.

[0138] Furthermore, the basic information display area 420 also includes a rule name dropdown menu, which can display multiple rule names for the user to select. It should be understood that each accounting template can be subdivided for different processing rules. When a user selects different processing rules, different applicable scenarios, processing logic, processing rules, operation frequency, and effective time will be displayed. The configuration area 430 will also display the corresponding information. In the example in Figure 4, the user selected the deferred income tax reclassification rule, so the basic information display area 420 and the configuration area 430 display the content corresponding to this rule.

[0139] The configuration area 430 is used for users to input configuration information. Specifically, the configuration area 430 may include configuration areas for storage options, processing options, and retrieval options. Storage options may include configuration parameters such as debit / credit, account, merging procedure, accounts receivable / payable, and custom dimensions. Processing options may include configuration parameters such as offset level, coefficient, and merging method. Retrieval options may include configuration coefficients such as account, merging procedure, accounts receivable / payable, and custom dimensions.

[0140] Furthermore, users can configure one or more configuration items according to different processing needs. One configuration item corresponds to one processing method, or one configuration item corresponds to one data source, or one configuration item corresponds to one storage method. This application does not make specific limitations.

[0141] Control 440 is used to save or reset configuration information.

[0142] Furthermore, after the user clicks control 440 to save the configuration information, the system can execute S340 to S360 to determine the accounting factors corresponding to the read option, processing option, and storage option. Based on the accounting factors and the configuration information input by the user as shown in Figure 4, the system generates a calculation script corresponding to the configuration information shown in Figure 4. The operation frequency of this calculation script is 1 month, and the effective time is January 2022. Starting from January 2022, the system will run this calculation script every month, read the source data corresponding to the read option, process the metadata according to the deferred income tax reclassification operation corresponding to the processing option, and store the obtained processing results according to the address corresponding to the storage option.

[0143] It should be understood that Figure 4 is an example of the configuration interface for the deferred income tax reclassification rule under the reclassification template provided in this application. Other classification rules under the reclassification template can also be configured according to a similar configuration interface. Other accounting templates (such as the consolidated tax calculation template, the carry-forward calculation template, etc.) can also be configured according to a similar configuration interface. They will not be illustrated one by one here.

[0144] It should be understood that displaying basic information of the accounting template to users through the basic information display area 420 allows users to understand the configuration requirements of each template. Then, based on their own business needs, users can complete the configuration of the calculation script in the configuration area 430. The system can automatically generate the calculation script according to the configuration information and automatically complete the financial statement accounting within the running time configured by the user. This makes the financial statement accounting independent of manual processing by financial personnel and the writing of calculation scripts by developers. The entire process only requires financial personnel to select configuration parameters according to business logic. This not only reduces labor costs but also has high configuration efficiency and flexibility, and can meet the ever-changing business needs. Even if new scenarios arise, calculation scripts can be generated quickly without affecting the company's financial statement accounting process.

[0145] In summary, the financial statement accounting method provided in this application, during the configuration phase, can receive multiple configuration options selected by the user. Based on these options, it determines multiple corresponding accounting factors. Each accounting factor includes a code template that implements the function corresponding to the configuration option. Thus, based on these code templates, calculation scripts corresponding to multiple configuration options can be generated. During the application phase, when the user needs to perform financial statement accounting, they can run this calculation script to complete the process. In the configuration phase, users can flexibly customize the calculation script based on the configuration options, which not only improves the system's flexibility and reduces the development cycle but also eliminates the need for developer intervention, reducing developer labor costs. In the application phase, financial statement accounting no longer relies on manual processing, reducing the learning and labor costs for financial personnel and improving the efficiency of financial statement accounting for enterprises.

[0146] The financial statement accounting method provided in this application has been described in detail above. The financial statement accounting system provided in this application will be explained below with reference to Figure 5. This financial statement accounting system is the financial statement accounting system 200 described in Figures 1-4.

[0147] Figure 5 is a schematic diagram of the structure of a financial statement accounting system provided in this application. As shown in Figure 5, the financial statement accounting system 200 may include a configuration unit 510, a review unit 520, a script generation unit 530, and a running unit 540. It should be understood that Figure 5 is an exemplary division method, and the financial statement accounting system 200 may be divided into more or fewer unit targets, which is not specifically limited in this application.

[0148] The configuration unit 510, review unit 520, script generation unit 530, and execution unit 540 can all be implemented in software or in hardware. For example, the implementation of the configuration unit 510 will be described below. Similarly, the implementation of the review unit 520, script generation unit 530, and execution unit 540 can refer to the implementation of the configuration unit 510.

[0149] Configuration unit 510, as an example of a software functional unit, 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, and a container. Further, the aforementioned computing instance may be one or more. For example, configuration unit 510 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 in the same region or in different regions. Further, 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.

[0150] 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.

[0151] Configuration unit 510, as an example of a hardware functional unit, may include at least one computing device, such as a server. Alternatively, configuration unit 510 may be implemented using a central processing unit (CPU), an application-specific integrated circuit (ASIC), or a programmable logic device (PLD). The aforementioned PLD may be implemented using 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-a-chip (SoC), an offload card, an accelerator card, or any combination thereof.

[0152] The multiple computing devices included in configuration unit 510 can be distributed in the same region or in different regions. Similarly, the multiple computing devices included in configuration unit 510 can be distributed in the same Availability Zone (AZ) or in different AZs. Likewise, the multiple computing devices included in configuration unit 510 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.

[0153] It should be noted that, in other embodiments, the steps implemented by the configuration unit 510, the review unit 520, the script generation unit 530, and the running unit 540 can be specified as needed. The configuration unit 510, the review unit 520, the script generation unit 530, and the running unit 540 respectively implement different steps in the financial statement accounting method to realize all the functions of the financial statement accounting system 200.

[0154] The functions of the configuration unit 510, the review unit 520, the script generation unit 530, and the execution unit 540 are explained below.

[0155] The configuration unit 510 is used to obtain the financial statement accounting type input by the first user, determine the accounting template corresponding to the financial statement accounting type, the accounting template includes configuration options and corresponding accounting factors, and the accounting factors include code templates that implement the functions described by the configuration options, specifically used to implement S310, S320 and their optional steps in the embodiment of Figure 3.

[0156] The configuration unit 510 is used to display configuration options to the first user and obtain configuration information input by the first user. The configuration information includes configuration parameters input by the first user under the configuration options. Specifically, it is used to implement S330 and its optional steps in the embodiment of FIG3.

[0157] The script generation unit 530 is used to determine the code segment corresponding to the configuration option based on the accounting factor and configuration parameters, specifically to implement S340, S350 and their optional steps in the embodiment of Figure 3.

[0158] The script generation unit 530 is used to generate a calculation script corresponding to the configuration information based on the code snippet. The calculation script is used to complete the financial statement calculation, and is specifically used to implement S350, S360 and their optional steps in the embodiment of Figure 3.

[0159] In one possible implementation, the configuration options include reading options, processing options, and storage options. The reading options are used to configure the reading process of the source data, the processing options are used to configure the accounting processing process of performing financial statement accounting on the source data to obtain accounting results, and the storage options are used to configure the storage process of storing the accounting results. The code snippets corresponding to the configuration options include reading code corresponding to the reading option, processing code corresponding to the processing option, and storage code corresponding to the storage option. The script generation unit 530 is used to generate a calculation script based on the reading code, processing code, and storage code, specifically to implement S350 and its optional steps in the embodiment of Figure 3.

[0160] In one possible implementation, the accounting factor includes basic code and variables. The script generation unit 530 is used to determine the variable values ​​in the accounting factor based on the configuration parameters input under the configuration options, and to determine the code snippets corresponding to the configuration options based on the variable values ​​and the basic code. Specifically, it is used to implement S350 and its optional steps in the embodiment of Figure 3.

[0161] In one possible implementation, the configuration options include the execution time of the calculation script. The system also includes a running unit 540, which is used to run the calculation script to complete the financial statement calculation within the execution time; or, the running unit 540 is used to receive a script execution request sent by a second user, the script execution request including an identifier of the calculation script, obtain the calculation script according to the identifier, and run the calculation script to complete the financial statement calculation. Specifically, this is used to implement steps S370 to S390 and their optional steps in the embodiment of Figure 3.

[0162] In one possible implementation, the system further includes a review unit 520, which is used to send the configuration information to a third user for review and obtain the review result. The third user is used to determine whether the configuration information complies with accounting rules. If the review result is unsuccessful, the review unit 520 is used to send a reconfiguration notification message to the first user. If the review result is successful, the script generation unit 530 is used to determine the accounting factor corresponding to each configuration option based on the configuration parameters under each configuration option.

[0163] In one possible implementation, the financial statement accounting type includes one or more of the following: reclassification adjustment, financial statement translation, carry-forward calculation, general elimination, non-controlling interest elimination, and consolidated taxation.

[0164] In summary, the financial statement accounting system provided in this application, during the configuration phase, can receive multiple configuration options selected by the user. Based on these options, it determines multiple corresponding accounting factors. Each accounting factor includes a code template that implements the function corresponding to the configuration option. Thus, based on these code templates, calculation scripts corresponding to multiple configuration options can be generated. During the application phase, when the user needs to perform financial statement accounting, they can run these calculation scripts to complete the process. In the configuration phase, users can flexibly customize calculation scripts based on configuration options, which not only improves the system's flexibility and reduces the development cycle but also eliminates the need for developer intervention, reducing developer labor costs. In the application phase, financial statement accounting no longer relies on manual processing, reducing the learning and labor costs for financial personnel and improving the efficiency of financial statement accounting for enterprises.

[0165] The financial statement accounting method and financial statement accounting system provided in this application have been described in detail above. The computing device provided in this application will be explained below with reference to Figures 6-8.

[0166] Figure 6 is a schematic diagram of a computing device provided in this application. As shown in Figure 6, the computing device 600 includes a bus 602, a processor 604, a memory 606, and a communication interface 608. The processor 604, the memory 606, and the communication interface 608 communicate with each other via the bus 602. The computing device 600 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 600. The computing device 600 can be the financial reporting system 200 in the embodiments of Figures 1-5 above.

[0167] Bus 602 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 categorized as address buses, data buses, control buses, etc. For ease of representation, only one line is used in Figure 6, but this does not indicate that there is only one bus or one type of bus. Bus 602 can include pathways for transmitting information between various components of computing device 600 (e.g., memory 606, processor 604, communication interface 608). The Unified Bus can also be referred to as the Lingqu Bus.

[0168] Processor 604 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.

[0169] Memory 606 may include volatile memory, such as random access memory (RAM). Processor 604 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 606 may also be implemented using storage class memory (SCM), phase change memory (PCM), or other types of storage media.

[0170] 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 606, or two or more types of storage media can be configured to realize the function of memory 606. This application does not limit this.

[0171] The memory 606 stores executable program code, which the processor 604 executes to implement the functions of the aforementioned financial statement accounting system 200, including the configuration unit, review unit, and script generation unit shown in FIG. 5, thereby realizing the steps of the configuration stage of the financial statement accounting method provided in this application. That is, the memory 606 stores instructions for executing the financial statement accounting method.

[0172] Alternatively, the memory 606 stores executable code, which the processor 604 executes to implement the functions of the configuration unit, review unit, script generation unit, and execution unit, thereby realizing the application stage and configuration stage steps of the financial statement accounting method provided in this application. That is, the memory 606 stores instructions for executing the financial statement accounting method.

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

[0174] As one possible implementation, the computing device 600 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 financial statement calculation method. For simplicity, further details are omitted here. The processor can be implemented using a CPU, or it can be implemented using computing devices or AI chips such as GPUs, DPUs, NPUs, XPUs, SoCs, offloading cards, or accelerator cards.

[0175] As one possible implementation, the computing device 600 may include multiple types of processors 604, meaning the computing device 600 is a heterogeneous device. For example, the computing device 600 may include a CPU and a GPU, and at least one of the processors 604 may execute the operation steps corresponding to the financial statement accounting method. For the sake of brevity, further details will not be elaborated here.

[0176] This application also provides a computing device cluster. As shown in Figure 7, which is an example diagram of a computing device cluster provided in this application, 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.

[0177] As shown in Figure 7, the computing device cluster includes at least one computing device 600. The memory 606 of one or more computing devices 600 in the computing device cluster may store the same instructions for executing financial statement calculation methods.

[0178] In some possible implementations, the memory 606 of one or more computing devices 600 in the computing device cluster may also store partial instructions for executing financial statement calculation methods. In other words, a combination of one or more computing devices 600 can jointly execute instructions for executing financial statement calculation methods.

[0179] It should be noted that the memory 606 in different computing devices 600 within the computing device cluster can store different instructions, each used to execute a portion of the functions of the financial reporting system 200. That is, the instructions stored in the memory 606 of different computing devices 600 can implement the functions of one or more modules within the financial reporting system 200.

[0180] 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 8 illustrates one possible implementation. As shown in Figure 8, Figure 8 is a schematic diagram of another computing device cluster structure provided in this application. Two computing devices 600A and 600B are connected via a network. Specifically, they are connected to the network through communication interfaces in each computing device. In this type of possible implementation, the memory 606 in computing device 600A stores instructions for executing the functions of the execution unit. Simultaneously, the memory 606 in computing device 600B stores instructions for executing the functions of the configuration unit, the review unit, and the script generation unit.

[0181] The connection method between the computing device clusters shown in Figure 8 can be based on the fact that the financial accounting method provided in this application has a configuration stage and an application stage. The configuration stage needs to generate a calculation script based on the user's configuration information, which requires a certain amount of storage space. The application stage needs to run multiple calculation scripts. Therefore, it is considered to distribute the unit modules on different computing devices. The function of the running unit in the application stage is handed over to the computing device 600A for execution, and the functions of the configuration unit, review unit and script generation unit in the configuration stage are handed over to the computing device 600B for execution.

[0182] It should be understood that the functions of computing device 600A shown in Figure 8 can also be performed by multiple computing devices 600. Similarly, the functions of computing device 600B can also be performed by multiple computing devices 600.

[0183] In some possible implementations, the memory 606 of one or more computing devices 600 in the computing device cluster may also store partial instructions for executing financial statement calculation methods. In other words, a combination of one or more computing devices 600 can jointly execute instructions for executing financial statement calculation methods.

[0184] It should be noted that the memory 606 in different computing devices 600 within the computing device cluster can store different instructions for executing certain functions of the financial reporting system. That is, the instructions stored in the memory 606 of different computing devices 600 can implement the functions of one or more devices within the financial reporting system.

[0185] 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 financial reporting method.

[0186] This application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that a computing device can store, 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 financial statement accounting method, or instruct the computing device to perform a financial statement accounting method. Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit it; 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; and these 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. A method of financial reporting, characterized by, The method is applied to a financial reporting system, and the method includes: Retrieve the financial statement accounting type from the first client; Determine the accounting template corresponding to the financial statement accounting type. The accounting template includes configuration options and corresponding accounting factors. The accounting factors include code templates that implement the functions described by the configuration options. The configuration options are provided to the first client, and configuration information from the first client is obtained, including configuration parameters input by the first user based on the configuration options; Based on the accounting factor and the configuration parameters, determine the code snippet corresponding to the configuration option; Based on the code snippet, a calculation script corresponding to the configuration information is generated, and the calculation script is used to complete the financial statement calculation.

2. The method of claim 1, wherein, The configuration options include reading options, processing options, and storage options. The reading options are used to configure the reading process of source data. The processing options are used to configure the accounting processing process of performing financial statement accounting on the source data to obtain accounting results. The storage options are used to configure the storage process of storing the accounting results. The code snippets corresponding to the configuration options include reading code corresponding to the reading option, processing code corresponding to the processing option, and storage code corresponding to the storage option. The step of generating the calculation script corresponding to the configuration information based on the code snippet includes: generating the calculation script based on the reading code, the processing code, and the storage code.

3. The method according to claim 1 or 2, characterized in that, The calculation factor includes basic code and variables. The step of determining the code snippet corresponding to the configuration option based on the calculation factor and the configuration parameters includes: The variable values ​​in the accounting factor are determined based on the configuration parameters input by the first user based on the configuration options. The code snippet corresponding to the configuration option is determined based on the variable value and the base code.

4. The method according to any one of claims 1 to 3, characterized in that, The configuration options include the runtime of the computation script, and the method further includes: The calculation script is executed within the specified runtime to complete the financial statement calculation; or, Receive a script execution request from a second client, the script execution request including an identifier of the computational script requested by the second user to be executed; The calculation script is obtained based on the identifier, and the calculation script is run to complete the financial statement calculation.

5. The method according to any one of claims 1 to 4, characterized in that, After obtaining the configuration information from the first client, the method further includes: The configuration information is provided to a third client, and an audit result is obtained from the third client. The audit result is generated after the third user determines whether the configuration information complies with accounting rules. If the audit result is unsuccessful, a reconfiguration notification message is sent to the first client; The step of determining the calculation factor corresponding to each configuration option based on the configuration parameters under each configuration option includes: If the audit result is approved, the accounting factor corresponding to each configuration option is determined based on the configuration parameters under each configuration option.

6. The method according to any one of claims 1 to 5, characterized in that, The financial statement accounting types include one or more of the following: reclassification adjustment, financial statement translation, carry-forward calculation, general offset, non-controlling interest offset, and consolidated taxation.

7. A financial reporting system, characterized by The system includes: The configuration unit is used to obtain the financial statement accounting type from the first client; The configuration unit is used to determine the accounting template corresponding to the financial statement accounting type. The accounting template includes configuration options and corresponding accounting factors. The accounting factors include code templates that implement the functions described by the configuration options. The configuration unit is used to provide the configuration options to the first client and obtain configuration information from the first client, the configuration information including configuration parameters input by the first user based on the configuration options; The script generation unit is used to determine the code snippet corresponding to the configuration option based on the accounting factor and the configuration parameters. The script generation unit is used to generate a calculation script corresponding to the configuration information based on the code snippet, and the calculation script is used to complete the financial statement calculation.

8. The system of claim 7, wherein, The configuration options include reading options, processing options, and storage options. The reading options are used to configure the reading process of source data. The processing options are used to configure the accounting processing process of performing financial statement accounting on the source data to obtain accounting results. The storage options are used to configure the storage process of storing the accounting results. The code snippets corresponding to the configuration options include reading code corresponding to the reading option, processing code corresponding to the processing option, and storage code corresponding to the storage option. The script generation unit is used to generate the calculation script based on the reading code, the processing code, and the storage code.

9. The system of claim 7 or 8, wherein, The accounting factors include basic code and variables. The script generation unit is used to determine the variable values ​​in the accounting factor based on the configuration parameters input by the first user based on the configuration options; The script generation unit is used to determine the code snippet corresponding to the configuration option based on the variable value and the basic code.

10. The system of any of claims 7 to 9, wherein, The configuration options include the runtime of the computation script, and the system also includes a runtime unit. The running unit is used to run the calculation script to complete the financial statement calculation within the running time. or, The running unit is configured to receive a script running request from a second client, the script running request including an identifier of a computational script requested by the second user to run; The running unit is used to obtain the calculation script according to the identifier and run the calculation script to complete the financial statement calculation.

11. The system of any of claims 7 to 10, wherein, The system also includes a review unit. The review unit is used to provide the configuration information to the third client and obtain the review result from the third client. The review result is generated after the third user determines whether the configuration information complies with accounting rules. The review unit is configured to send a reconfiguration notification message to the first client if the review result is unsuccessful. The script generation unit is used to determine the accounting factor corresponding to each configuration option based on the configuration parameters under each configuration option, provided that the review result is approved.

12. The system of any of claims 7 to 11, wherein, The financial statement accounting types include one or more of the following: reclassification adjustment, financial statement translation, carry-forward calculation, general offset, non-controlling interest offset, and consolidated taxation.

13. A computing device, comprising: 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 6.

14. 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 6.

15. A computer program product containing instructions, characterized in that, When the instruction is executed by a computing device or a cluster of computing devices, it causes the computing device or cluster of computing devices to perform the operational steps of the method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Automatic script generation method and apparatus, and electronic device

    CN107291438A

  • Method for managing development jobs in development environment, equipment and program product

    CN113032004A

  • Accounting method and device and medium

    CN115880081A

  • Code construction method and device, computer equipment and storage medium

    CN116009852A

  • Platform construction method and device based on low code, medium and electronic equipment

    CN116414370A