[0057] The technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
[0058] In the prior art, because accountants arbitrarily add account titles to the enterprise account set according to the current enterprise accounting requirements, it is prone to inconsistencies in the coding sequence of account titles and inconsistent account title names in different enterprise account sets, resulting in accountants in multi-enterprise accounts. When switching between sets of accounts, it is impossible to quickly edit accounting entries by memorizing the frequently used account title codes or names; due to the different account sets of accounts, each sub-module needs to adapt to the sub-account sets during the system integration process Automatic conversion rules reduce the efficiency of automation; due to the inability to ensure the consistency of the accounting subjects, when the accounting subjects are inconsistent, the accountant needs to manually change the statement access formula, resulting in the financial statement access formula cannot be automatically adapted, and the financial statement cannot be automatically generated Report.
[0059] Therefore, the embodiment of the present application discloses a report generation method, which can control the configuration of the report, effectively ensure the consistency of the accounting subjects and accounting methods in the report, improve the automatic efficiency of converting business documents into financial vouchers, and reduce manual configuration. Labor costs and risks.
[0060] See figure 2 As shown, a report generation method disclosed in the embodiment of the present application includes:
[0061] S101: Obtain a configuration request; the configuration request is an account title configuration request or an account title accounting method configuration request;
[0062] In this embodiment, the configuration request is first obtained. Specifically, the configuration request may be an account title configuration request or an account title accounting method configuration request. Among them, the account title configuration request can specifically be a request to configure any one or any combination of account title codes, account title names, account title types, and account title lending directions; the account title accounting method configuration request can be specifically Request for configuration of any one or any combination of quantity accounting methods, foreign currency accounting methods, and auxiliary accounting methods.
[0063] S102: Determine whether the configuration request meets a preset rule;
[0064] In this step, it is determined whether the above configuration request meets the preset rule. image 3 The detailed process flow chart for determining whether the configuration request meets the preset rules provided in this embodiment of the application, such as image 3 Shown, including:
[0065] S1021: Determine the target configuration item targeted by the configuration request;
[0066] S1022: Determine whether the target configuration item is allowed to be updated based on the preset rule; if not, go to S1023; if yes, go to S1024;
[0067] S1023: Determine that it does not meet the preset rule;
[0068] S1024: Determine whether the update operation corresponding to the configuration request is allowed to be performed according to the preset rule; if so, go to S1025; if not, go to S1023;
[0069] S1025: Determine that it meets the preset rule.
[0070] Specifically, the target configuration item targeted by the configuration request is determined, that is, the target account title or the calculation method of the target account title corresponding to the configuration request, and whether the target configuration item is allowed to be updated is determined according to preset rules. If the target configuration item is not allowed to be updated, it is determined that the current configuration request does not meet the preset rules; if the target configuration item is allowed to be updated, the specific update operation corresponding to the configuration request is further determined, and based on the preset rules, it is determined whether the update operation meets the preset rules. The preset rules, if the update operation meets the preset rules, it is determined that the configuration request meets the preset rules; if the update operation does not meet the preset rules, it is determined that the configuration request does not meet the preset rules.
[0071] In a specific embodiment, the foregoing process of judging whether the target configuration item is allowed to be updated according to the preset rule may be specifically: judging whether the target configuration item in the preset rule contains a preset identifier, and obtaining the judgment result; determining the target configuration according to the judgment result Whether the item is allowed to be updated. That is, in this embodiment, the configuration items that are not allowed to be updated can be marked in advance, so that it can be determined whether the configuration item can be updated by judging whether the configuration item contains identification information.
[0072] S103: If the configuration request does not meet the preset rule, it is forbidden to respond to the configuration request;
[0073] S104: If the configuration request complies with the preset rules, modify the preset account title template based on the configuration request to generate a financial report; the preset account title template is a template generated in advance based on standard account titles.
[0074] It is understandable that if it is determined that the configuration request does not meet the preset rules, the configuration request is prohibited from responding, and the update operation corresponding to the configuration request is not allowed; if it is determined that the configuration request meets the preset rules, the configuration request is allowed Respond and modify the preset accounting account template based on the configuration request to generate the financial statements required by the current user or enterprise.
[0075] It should be noted that the foregoing preset accounting template is a template generated in advance based on standard accounting titles. The standard account title can be an account title formulated in accordance with the accounting standards promulgated by the Ministry of Finance, which sets account codes, title names and other parameters for the account titles, for example: "1001, cash in stock"; "1002, bank deposits". For an agency bookkeeping company or a group enterprise, you can introduce the above-mentioned standard accounting titles, and add or change the account accounting methods on this basis, as a chart of accounts applicable to the whole organization or the whole group company, that is, the above-mentioned preset accounting template .
[0076] It can be seen from the above solution that a report generation method provided by this application includes: obtaining a configuration request; the configuration request is an account title configuration request or an account title accounting method configuration request; judging whether the configuration request meets the preset rules; if If the configuration request does not meet the preset rules, it is forbidden to respond to the configuration request; if the configuration request meets the preset rules, the preset accounting account template is modified based on the configuration request to generate Financial statements; the preset account title template is a template generated in advance based on standard account titles. In this application, after obtaining a request for configuration of accounting titles or accounting methods, it will be determined according to preset rules whether to allow a response to the configuration request, which can avoid performing configuration operations that do not meet the preset rules, and can The configuration is controlled to effectively ensure the consistency of the accounting subjects and accounting methods in the statements, thereby improving the efficiency of automation and reducing labor costs.
[0077] The embodiment of the present application discloses another report generation method. Compared with the previous embodiment, this embodiment further explains and optimizes the process of determining whether to allow the update operation in the technical solution. See Figure 4 Shown, specific:
[0078] S201: Obtain the preset attribute field corresponding to the target configuration item in the preset rule;
[0079] S202: Determine the first hash value corresponding to the preset attribute field;
[0080] S203: Obtain the attribute field to be configured for the target configuration item in the configuration request;
[0081] S204: Determine a second hash value corresponding to the attribute field to be configured;
[0082] S205: Determine whether the first hash value and the second hash value are equal;
[0083] S206: If yes, it is determined that the update operation corresponding to the configuration request is allowed to be performed.
[0084] In this embodiment, after the configuration request is obtained, the target configuration item for which the configuration request is targeted is determined, and the preset attribute field corresponding to the target configuration item in the preset rule and the attribute field to be configured for the target configuration item in the configuration request are obtained. The hash values of the aforementioned preset attribute field and the attribute field to be configured are respectively determined, and whether the update operation corresponding to the configuration request is allowed to be performed is determined by judging whether the two hash values are equal.
[0085] It is understandable that, after detecting that the preset account title template is updated in this embodiment, the financial statement may also be updated based on the updated account title template. Specifically, after the update is detected, a selection interface can be provided for the user to select the update mode, so that the financial statement can be updated in a full update mode or an incremental update mode based on the updated account title template.
[0086] Correspondingly, since the preset account title template is a template generated based on the standard account title in advance, if the standard account title changes, the preset account title template needs to be updated accordingly.
[0087] The following uses a specific example to further illustrate the report generation method disclosed in this application. First, introduce the terms involved in this embodiment: Accounting Standard Accounting title, which is abbreviated as S in this embodiment, Chinese name: Accounting Standard Accounting Subjects, that is, standard accounting subjects, which can be specifically accounting subjects formulated according to accounting standards; Organization Accounting Subject Template, abbreviated as O in this embodiment, Chinese name: Organizational accounting title template, that is, accounting title template. Specifically, it can be the organization's account based on the corporate accounting standards, combined with the industry attribute of the enterprise and the organization to encode the account or Name specification, one or more sets of accounting subjects; Enterprise Accounting Subject, referred to as E in this embodiment, Chinese name: Enterprise Accounting Set Accounting Subject, that is, accounting set of accounting subjects, specifically it can be accountants in the new enterprise accounting set or In the accounting process, according to the current enterprise accounting characteristics, specific accounting titles are adopted. Among them, enterprises generally refer to accounting entities, including unincorporated enterprises, such as workshops of industrial enterprises or project departments of engineering construction enterprises. SOE refers to the three-layer control method of "Accounting Standards Standard Accounting Subjects-Organizational Accounting Subject Templates-Enterprise A/C Sets of Accounting Subjects". Among them, the accounting standard standard accounting subjects belong to the standard layer, the organizational accounting subject templates belong to the organization layer, and the enterprise account set Accounting subjects belong to the enterprise level.
[0088] Specifically, see Figure 5 As shown, in this embodiment, when the financial software is upgraded, the financial software developer pre-sets the standard chart of accounts according to the standard accounting titles and the latest revisions of the corporate accounting standards. When the financial software system is initialized, the financial supervisor or person in charge of the institutional user or individual user who uses the financial software directly introduces the above-mentioned pre-set standard chart of accounts from the perspective of organizational management, and then according to the user’s industry accounting needs, Appropriately increase non-standard accounting subjects with industry attributes. Among them, the account title template inherits the consistency and constraint content of standard account titles, adds industry accounting accounting attributes, and agrees on specific accounting account accounting methods. According to the accounting characteristics of the accounting entity, the specific accountant introduces the above accounting title template, and then adjusts the accounting title or auxiliary accounting items within the bounds of the preset rules according to the business situation of the accounting entity. The specific content includes activation or suspension. Use accounts, add lower-level sub-accounts, modify or delete self-added accounts, generate final financial statements, and form corporate accounts.
[0089] It should be noted that in this embodiment, after O is issued at the organization level, O must be received at the enterprise level and the corresponding E must be updated. The financial software pre-sets the standard account title S, and the organization user or individual user establishes the account title template O based on the standard account title S. The financial software does not provide the function of importing external files. Specific accountants, in the process of creating a new enterprise account set or continuing to do the old account set, force the enterprise account set to receive the updated account title template O, so as to achieve the purpose of controlling the consistency of the account title.
[0090] It is understandable that accounting titles are the most basic element of accounting. The inconsistency of accounting titles directly leads to differences in accounting calculations, which in turn leads to differences in the recording methods of accounting vouchers and accounts, and ultimately makes further use of accounting vouchers and accounting The account balance sheet data has a significant impact on the feasibility and implementation cost of financial management or financial analysis activities or financial software internal system integration.
[0091] The report generation method provided in this embodiment uses the SOE three-layer control method to control step by step, adopts a centralized control strategy from the source of the account title and the attribute of the account title, and does not allow the import of external files in the functional process, which is effective The arbitrariness of the setting of accounting subjects is controlled, and the differences in personal experience and accounting habits of different accountants are prevented from destroying the integrity of the system. At the same time, the consistency of accounting subjects is the basis to ensure the integration between the various systems of the financial software, which can ensure that the internal accounts of group enterprises can be quickly offset and processed; it can significantly reduce the learning costs of accountants and reduce accounting errors. In addition, financial software can preset a large number of automated or intelligent processing rules based on standardized accounting subjects, which can minimize the workload of accountants in daily accounting calculations caused by inconsistent account settings, and especially improve the conversion of business documents into accounting vouchers Processing efficiency, the system automatically generates financial statements without the need for accountants to prepare financial statement access formulas, and improves the efficiency of bill processing and voucher processing automation, as well as the efficiency of accounting and tax declaration.
[0092] The following describes a report generation system provided by an embodiment of the present application. The report generation system described below and the report generation method described above can refer to each other.
[0093] See Image 6 As shown, a report generation system provided by an embodiment of the present application includes:
[0094] The obtaining module 11 is configured to obtain a configuration request; the configuration request is an account title configuration request or an account title accounting method configuration request;
[0095] The judging module 12 is used to judge whether the configuration request complies with preset rules;
[0096] The prohibition module 13 is configured to prohibit responding to the configuration request if the configuration request does not meet the preset rule;
[0097] The generating module 14 is configured to, if the configuration request meets the preset rules, modify the preset account title template based on the configuration request to generate financial statements; the preset account title template is based on the standard account title in advance The generated template.
[0098] For the specific implementation process of the foregoing modules 11 to 14, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not described herein again.
[0099] This application also provides an electronic device, see Figure 7 As shown, an electronic device provided by an embodiment of the present application includes:
[0100] The memory 100 is used to store computer programs;
[0101] The processor 200 is configured to implement the steps provided in the foregoing embodiments when executing the computer program.
[0102] Specifically, the memory 100 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for running the operating system and the computer-readable instructions in the non-volatile storage medium. The processor 200 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chip in some embodiments, providing computing and control capabilities for electronic devices, and executing the memory The computer program stored in 100 can implement the steps of the report generation method disclosed in any of the foregoing embodiments.
[0103] On the basis of the above-mentioned embodiments, as a preferred embodiment, see Figure 8 As shown, the electronic device further includes:
[0104] The input interface 300 is connected to the processor 200 and is used to obtain externally imported computer programs, parameters and instructions, and store them in the memory 100 under the control of the processor 200. The input interface 300 can be connected to an input device to receive parameters or instructions manually input by the user. The input device can be a touch layer covered on the display screen, a button, a trackball or a touchpad provided on the terminal shell, or a keyboard, a touchpad, or a mouse.
[0105] The display unit 400 is connected to the processor 200, and is used for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc.
[0106] The network port 500 is connected to the processor 200 and is used to communicate with external terminal devices. The communication technology used in the communication connection can be wired communication technology or wireless communication technology, such as mobile high-definition link technology (MHL), universal serial bus (USB), high-definition multimedia interface (HDMI), wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s, etc.
[0107] Figure 8 Only electronic devices with components 100-500 are shown, and those skilled in the art can understand that, Figure 8 The illustrated structure does not constitute a limitation on the electronic device, and may include fewer or more components than shown, or a combination of certain components, or a different component arrangement.
[0108] This application also provides a computer-readable storage medium, which may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic Various media that can store program codes, such as discs or optical discs. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the report generation method disclosed in any of the foregoing embodiments are realized.
[0109] In this application, after obtaining a request for configuration of accounting titles or accounting methods, it will be determined according to preset rules whether to allow a response to the configuration request, which can avoid performing configuration operations that do not meet the preset rules, and can The configuration is controlled to effectively ensure the consistency of the accounting titles and accounting methods in the statements, thereby improving the automation efficiency of the conversion of business documents into financial vouchers, and reducing the labor costs and risks of manual configuration.
[0110] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant information can be referred to the description of the method part. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.
[0111] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other same elements in the process, method, article, or equipment including the element.