Subject versioning processing methods, devices, computer equipment, and storage media

By determining whether the target account has historical business data, creating a new version of the account and setting the master identification information to be consistent, the problem of low account version processing efficiency in the existing technology is solved, and the version management of a single account is realized and the user experience is improved.

CN113537933BActive Publication Date: 2024-09-06KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110790785.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2024-09-06
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

The existing account versioning processing method is inefficient. Users need to perform overall versioning operations on the entire chart of accounts, resulting in low efficiency and poor user experience.

Method used

By judging whether the target account has historical business data, create a new version of the account and record the versioning date, set the main identification information to be consistent, support changes in accounting dimensions and add subordinate accounts, and avoid the need for overall versioning operations for each modification.

Benefits of technology

It improves the efficiency of subject versioning processing, supports versioning management of single subjects, makes the user experience more convenient, and reduces unnecessary operation steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113537933B
    Figure CN113537933B
Patent Text Reader

Abstract

The present application relates to a method, device, computer equipment and storage medium for processing subject versioning. It includes: in response to the versioning operation of the target subject, judging whether the target subject has historical business data; if the target subject has historical business data, creating a new version subject; the new version subject is used to record the business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation; if the versioning operation is a versioning operation of a non-newly added subordinate subject, the main identification information of the new version subject is set to be consistent with the main identification information of the target subject; the main identification information is used to trace the historical version of the subject; if the versioning operation is a versioning operation of a newly added subordinate subject, the main identification information of the newly added subordinate subject is set to be consistent with the main identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject. The use of this method can improve the efficiency of subject versioning processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device and storage medium for processing subject versioning. Background Art

[0002] With the development of computer technology and the advent of the 5G era, the emergence of the Internet has brought great convenience to modern life. More and more companies can use the system business platform to process a variety of businesses online, bringing convenience to users. In the current enterprise management system, only the entire account table in the system is supported for versioning operations, which includes multiple accounts.

[0003] However, in the current way of handling account versioning, when a user needs to modify a certain account and needs to perform versioning management on the account, the only way is to perform a versioning operation on the entire account table as a whole. Each modification requires a versioning operation on the entire account table as a whole, which is time-consuming and easily leads to low efficiency in account versioning, inconvenience in business management for users, and a poor user experience. Summary of the invention

[0004] Based on this, it is necessary to provide a subject versioning processing method, device, computer equipment and storage medium that can improve the efficiency of subject versioning processing in response to the above technical problems.

[0005] A method for processing account versioning, the method comprising:

[0006] In response to the versioning operation of the target account, determining whether the target account has historical business data;

[0007] If the target account has historical business data, a new version account is created; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation;

[0008] If the versioning operation is not a versioning operation for adding a new subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account; the primary identification information is used to trace the historical version of the account;

[0009] If the versioning operation is a versioning operation of adding a subordinate subject, the primary identification information of the newly added subordinate subject is set to be consistent with the primary identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

[0010] In one embodiment, the versioning operation includes changing the accounting dimension of the target account; the changing the accounting dimension of the target account includes adding or reducing the accounting dimension;

[0011] The method further comprises:

[0012] If the versioning operation is to add or reduce the accounting dimension of the target account, determine whether the target account has historical business data;

[0013] If there is historical business data, a new version of the account is created. The new version of the account inherits the accounting dimensions of the original account and adds or reduces the accounting dimensions of the new version of the account.

[0014] In one embodiment, the versioning operation includes adding a subordinate subject of the target subject; the method further includes:

[0015] If the versioning operation is to add a subordinate account of the target account, then determine whether the target account has historical business data;

[0016] If so, a new version of the subject is generated based on the target subject, the data of the target subject is transferred and stored to the subordinate subject, and the basic data of the target subject is replaced with the subordinate subject; the attribute information of the new version of the subject is a non-leaf subject; the attribute information of the subordinate subject is a leaf subject; the version date of the new version of the subject is the same as the version date of the subordinate subject.

[0017] In one embodiment, the versioning operation includes modifying the name of the target subject; the method further includes:

[0018] If the versioning operation is to modify the name of the target account, then determine whether the target account is a leaf account of the smallest granularity; the leaf account of the smallest granularity is used to record business data;

[0019] If the target account is a leaf account of the smallest granularity, determine whether the target account has historical business data; if so, generate a new version of the account with a modified name;

[0020] If the target subject is not a leaf subject of the smallest granularity, the name of the subordinate subject of the target subject is modified in a linked manner.

[0021] In one embodiment, the method further comprises:

[0022] In response to an account table query operation on the target account, a filtered account version of the target account is displayed; the filtered account version of the target account is filtered according to a versioning date to obtain the displayed content of the filtered target account.

[0023] In one embodiment, the method further comprises:

[0024] If the query period of the account table query operation on the target account is after the versioning date, the data of the target account after versioning and the balance data of the target account before versioning are displayed; wherein the balance data is the balance data of the target account before versioning queried from the balance table.

[0025] In one embodiment, after creating a new version of a subject, the method further includes:

[0026] Through the background scheduling task, the account on the document that references the target account in the basic settings is replaced with the new version of the account;

[0027] If the versioning operation of the target account is performed in a superior accounting organization, the new version account is updated to the subordinate accounting organization according to the superior-subordinate allocation relationship corresponding to the target account.

[0028] A device for processing subject versioning, the device comprising:

[0029] A judgment module, configured to judge whether the target account has historical business data in response to the versioning operation of the target account;

[0030] A creation module, used to create a new version account if the target account has historical business data; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation;

[0031] A setting module is used for setting the main identification information of the new version of the subject to be consistent with the main identification information of the target subject if the versioning operation is a versioning operation of not adding a new subordinate subject; the main identification information is used to trace the historical version of the subject; if the versioning operation is a versioning operation of adding a new subordinate subject, the main identification information of the newly added subordinate subject is set to be consistent with the main identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

[0032] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] In response to the versioning operation of the target account, determining whether the target account has historical business data;

[0034] If the target account has historical business data, a new version account is created; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation;

[0035] If the versioning operation is not a versioning operation for adding a new subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account; the primary identification information is used to trace the historical version of the account;

[0036] If the versioning operation is a versioning operation of adding a subordinate subject, the primary identification information of the newly added subordinate subject is set to be consistent with the primary identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

[0037] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0038] In response to the versioning operation of the target account, determining whether the target account has historical business data;

[0039] If the target account has historical business data, a new version account is created; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation;

[0040] If the versioning operation is not a versioning operation for adding a new subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account; the primary identification information is used to trace the historical version of the account;

[0041] If the versioning operation is a versioning operation of adding a subordinate subject, the primary identification information of the newly added subordinate subject is set to be consistent with the primary identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

[0042] The above-mentioned subject versioning processing method, device, computer equipment and storage medium respond to the versioning operation of the target subject and determine whether the target subject has historical business data; if the target subject has historical business data, a new version subject is created; the new version subject is used to record the business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation; if the versioning operation is a versioning operation of a non-new subordinate subject, the main identification information of the new version subject is set to be consistent with the main identification information of the target subject; the main identification information is used to trace the historical version of the subject; if the versioning operation is a versioning operation of a new subordinate subject, the main identification information of the new subordinate subject is set to be consistent with the main identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject. As a result, by adding different versions of accounts that record the activation date, a new version is created after the versioning operation of the accounts that have been used for business, that is, the accounts that already have historical business data, and the main identification information of the accounts in different versions is kept consistent. The versioning operation of a single account can support changes in accounting dimensions, account names, and the addition of subordinate accounts without changing historical business data, without the need for unnecessary operations, thereby achieving versioning management for a single account. It is not necessary to perform overall versioning operations on the entire account table every time a modification is made, effectively improving the efficiency of account versioning processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A flowchart of a method for processing subject versioning in one embodiment;

[0044] Figure 2 A flowchart of a step in which the versioning operation is to add or reduce an accounting dimension of a target account in an embodiment;

[0045] Figure 3 A flowchart of a step of adding a subordinate subject of a target subject when the versioning operation is performed in an embodiment;

[0046] Figure 4 A flowchart of a step in which the versioning operation is to modify the name of a target subject in an embodiment;

[0047] Figure 5A This is a diagram showing an interface for querying versioned records of a single subject in one embodiment;

[0048] Figure 5B This is an interface display diagram when the accounting date selected by the user in one embodiment is before the versioning date;

[0049] Figure 5C This is an interface display diagram when the accounting date selected by the user in one embodiment is after the versioning date;

[0050] Figure 5D This is a diagram showing an interface for querying an account table in an embodiment;

[0051] Figure 6 This is a diagram showing an interface when a user performs a versioning operation in one embodiment;

[0052] Figure 7 It is a structural block diagram of a processing device for subject versioning in one embodiment;

[0053] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] In one embodiment, Figure 1 As shown, a method for processing subject versioning is provided. This embodiment uses the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0056] Step 102, in response to the versioning operation of the target account, determine whether the target account has historical business data.

[0057] Each enterprise can manage all resources and information on the supply and demand chain inside and outside the enterprise in a unified manner by adopting a unified business management information platform. This integration can eliminate various information barriers and information islands caused by departmental divisions within the enterprise. For example, the enterprise resource planning system can be used to achieve effective management of the entire supply chain. ERP (Enterprise Resource Planning) is an enterprise information management system that mainly integrates material resources, financial resources and information resources for the manufacturing industry. It is understandable that the business management information platform in this application may include various types of subject information, such as accounting subject information. The subject information set for accounting subjects may include: subject code, Chinese name of subject, English name of subject, subject type, account page format, quantity accounting, nature of subject, auxiliary accounting, etc.

[0058] Specifically, the terminal responds to the user's versioning operation on the target account and determines whether the target account has historical business data. The target account refers to the account selected by the user that needs to be versioned. The versioning operation refers to a series of change operations performed on the target account. For example, the versioning operation may include changing the accounting dimension of the account, adding a subordinate of the account, or modifying the name of the account. Historical business data refers to the record data of historical business generated by the business that has occurred.

[0059] Taking the target subject as an accounting subject as an example, it is assumed that the user performs a versioning operation on the accounts receivable in the accounting subject. Then, in response to the user's versioning operation on the target subject (ie, accounts receivable), the terminal determines whether the target subject (accounts receivable) has historical business data.

[0060] Among them, historical business data may include data that has been initialized in the general ledger for accounting subjects or voucher data that has been entered by daily financial personnel. That is, when the terminal responds to the user's versioning operation on accounts receivable, the terminal needs to determine whether there is any business in the current versioned subject (accounts receivable). The current versioned subject (accounts receivable) has business, which means that the subject (accounts receivable) has initialized data recorded in the general ledger, or the subject (accounts receivable) has voucher data entered by daily financial personnel; that is, whether there is business can be determined by determining whether there is initialized data recorded in the general ledger or whether there is voucher data that has been entered, and the data of other business systems are not considered when determining whether there is business in the accounting subject.

[0061] Step 104, if the target account has historical business data, a new version account is created, and the new version account is used to record the business data generated after the versioning date, and the versioning date is the activation date corresponding to the set versioning operation.

[0062] In response to the user's versioning operation on the target account, the terminal determines whether the target account has historical business data. If the target account has historical business data, the terminal creates a new version account. The new version account is used to record business data generated after the versioning date. The versioning date is the activation date corresponding to the set versioning operation. Among them, the new version account refers to a new version of the account generated after the original account is modified. The new version account is used to record business data generated after the versioning date. The versioning date is the activation date corresponding to the versioning operation set by the user.

[0063] Take the target account as an accounting account as an example. Assuming that the user modifies the accounting dimension of accounts receivable in the accounting account, that is, the user modifies the accounting dimension of accounts receivable from customer to customer + salesperson, the terminal responds to the user's versioning operation on accounts receivable and determines that the target account (i.e., accounts receivable) has historical business data. That is, the terminal determines that the current versioned account (accounts receivable) has initialized data recorded in the general ledger, or the account (accounts receivable) has voucher data entered by daily financial personnel, then the terminal creates a new version account (accounts receivable). Some information (accounting dimension) in the new version account (accounts receivable) is inconsistent with the information in the original account (accounts receivable) due to the user's modification. When the user performs a versioning operation on accounts receivable, the user can also set the corresponding versioning date for the versioning operation of the account (accounts receivable), and the versioning date can be set to the date when the new version account needs to be enabled. The new version of the account (accounts receivable) is used to record business data generated after the versioning date, that is, this new version of the account will be used to record voucher data in the future, and the data in the original account (accounts receivable) in the historical business data will remain unchanged.

[0064] In addition, if the user does not initialize the data for the account (accounts receivable) in the general ledger or does not enter the voucher data, that is, the terminal determines that the current versioned account (accounts receivable) does not have initialized data in the general ledger, or the account (accounts receivable) does not have the voucher data entered by the daily financial personnel, it means that there is no historical data for this account (accounts receivable), then the terminal can process according to the user's modification operation according to the conventional modification logic, that is, the terminal can directly modify the information corresponding to the account (accounts receivable), and there is no need to set the versioning activation date for versioning operation, because the intention of setting the versioning operation activation date is to ensure that the historical data of the account (accounts receivable) is not changed. If there is no historical data under the account (accounts receivable), the terminal can directly modify the corresponding information. That is, when there is business in the account itself, the original account cannot be directly modified during the versioning operation. It is necessary to create a new version account that is consistent with the original account master identification information, and use this new version account to record voucher data in the future. In this way, the original account in the historical data is still the original master identification information, and the historical data will not change.

[0065] Step 106: If the versioning operation is not a versioning operation for adding a new subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account, and the primary identification information is used to trace the historical version of the account.

[0066] If the target account has historical business data, after the terminal creates a new version of the account, if the versioning operation is not a versioning operation of adding a subordinate account, the terminal sets the master identification information of the new version of the account to be consistent with the master identification information of the target account, and the master identification information is used to trace the historical version of the account. Among them, the master identification information is the Master ID, which can be understood as the key or main ID, that is, the master identification information is an account management ID. All accounts with the same Master ID are a group of accounts, and there will be a summary relationship or inheritance relationship between the upper and lower levels in this group of accounts. For example, the Master ID of accounts receivable is: 1121, the Master ID of accounts receivable-domestic is: 1121.01, and the Master ID of accounts receivable-foreign is: 1121.02, which means that accounts receivable, accounts receivable-domestic and accounts receivable-foreign are a group of accounts, and there will be a summary relationship or inheritance relationship between the upper and lower levels in this group of accounts. The versioning operation of non-newly added subordinate accounts refers to the modification operation performed on the target account except for the addition of new subordinate accounts. For example, the versioning operation of non-newly added subordinate accounts can include modifying the account name or modifying the accounting dimension of the account.

[0067] Specifically, the target account is an accounting account. If the versioning operation is a versioning operation that does not add a subordinate account, that is, the user modifies the name of the target account (i.e., accounts receivable) or modifies the accounting dimension of the target account (i.e., accounts receivable), the terminal sets the Master ID of the new version account to be consistent with the Master ID of the target account (i.e., accounts receivable), both of which are 1121. 1121, i.e., the master identification information, is used to trace the historical version of the accounts receivable (account). Since the Master ID of the new version account is set to be consistent with the Master ID of the old version account, if the query period selected by the user when querying the account table is after the versioning date, the terminal will filter out the version information of the account to be displayed in the interface according to the versioning date, that is, the terminal will search for all the data corresponding to the query account according to the Master ID of the query account and display it, which is equivalent to being able to query at least two data corresponding to the same account when querying the account table in the business system, one is the data before versioning, and the other is the data after versioning.

[0068] Step 108, if the versioning operation is a versioning operation of adding a subordinate account, the primary identification information of the newly added subordinate account is set to be consistent with the primary identification information of the target account, and the attribute information of the target account is changed to a non-leaf account.

[0069] If the target account has historical business data, after the terminal creates a new version of the account, if the versioning operation is a versioning operation of adding a subordinate account, the main identification information of the newly added subordinate account is set to be consistent with the main identification information of the target account, and the attribute information of the target account is changed to a non-leaf account. Among them, non-leaf accounts are used as a tree-shaped basic data. Non-leaf accounts refer to non-detailed accounts. Non-detailed accounts are used to summarize data. No business can occur, that is, no business data can be recorded. Leaves refer to detailed accounts. Business occurs in detailed accounts, that is, detailed accounts are used to record business data.

[0070] Specifically, the target account is an accounting account. If the versioning operation is a versioning operation of adding a subordinate account, that is, the user adds a subordinate account of the target account (i.e., 1121 Accounts Receivable) Accounts Receivable - Domestic, then the terminal sets the Master ID of the newly added subordinate account (Accounts Receivable - Domestic) to be consistent with the Master ID of the target account (Accounts Receivable), both of which are 1121, and changes the attribute information of the target account to a non-leaf account, that is, 1121 Accounts Receivable (Non-Detailed Level - Non-Leaf); 1121.01 Accounts Receivable - Domestic (Detailed Level - Leaf). The Master ID of the subordinate account (Accounts Receivable - Domestic) is kept consistent with the superior account (Accounts Receivable) because the superior-subordinate relationship of the account can only be established when the Master ID of the subordinate account is consistent with the Master ID of the superior account. If the Master ID is inconsistent, it means that there is no superior-subordinate aggregation relationship between the two accounts, and the data does not need to be aggregated upward. Since the two accounts (1121 Accounts Receivable) and (1121.01 Accounts Receivable - Domestic) have a superior-subordinate relationship, the data in the 1121.01 account needs to be aggregated into the 1121 account, so the master ids of the two accounts need to be consistent. The attribute of the superior account (Accounts Receivable) is a new version account that is not a leaf, and the attribute of the original target account (i.e., 1121 Accounts Receivable) is a leaf. When the user adds a subordinate operation to the original target account (i.e., 1121 Accounts Receivable), the original account (1121 Accounts Receivable) is a detailed account (leaf). The terminal adds a subordinate account under the detailed account, which is equivalent to changing the original detailed account to a non-detailed account (non-leaf). The newly added subordinate account is a detailed account (leaf). The business data that occurs in the future needs to be recorded using the subordinate account (leaf).

[0071] In this embodiment, in response to the versioning operation of the target account, it is determined whether the target account has historical business data; if the target account has historical business data, a new version account is created; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation; if the versioning operation is a versioning operation that does not add a new subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account; the primary identification information is used to trace the historical versions of the account; if the versioning operation is a versioning operation that adds a new subordinate account, the primary identification information of the newly added subordinate account is set to be consistent with the primary identification information of the target account, and the attribute information of the target account is changed to a non-leaf account. As a result, by adding different versions of accounts with activation dates, accounts that have done business, that is, accounts with historical business data, will generate a new version after versioning, and keep the main identification information of different versions of accounts consistent, so that the versioning operation of a single account can support changes in accounting dimensions, account names, and the addition of subordinate accounts without changing historical business data, without requiring redundant operations, thereby achieving versioning management for a single account, without having to perform overall versioning operations on the entire account table every time a modification is made, effectively improving the efficiency of account versioning processing. Versioning management of a single account can make user business management more convenient and flexible, and provide a good user experience.

[0072] In one embodiment, Figure 2 As shown, the versioning operation includes changing the accounting dimension of the target account, and changing the accounting dimension of the target account includes adding or reducing the accounting dimension. The method also includes the step of adding or reducing the accounting dimension of the target account if the versioning operation is the step of:

[0073] Step 202: If the versioning operation is to add or reduce the accounting dimension of the target account, it is determined whether the target account has historical business data.

[0074] Step 204: If there is historical business data, a new version of the account is created. The new version of the account inherits the accounting dimensions of the original account and adds or reduces the accounting dimensions of the new version of the account.

[0075] The terminal responds to the user's versioning operation on the target account and determines whether the target account has historical business data. Specifically, if the versioning operation is to add or reduce the accounting dimension of the target account, the terminal determines whether the target account has historical business data. If there is historical business data, the terminal creates a new version of the account, and the new version of the account inherits the accounting dimension of the original account, and adds or reduces the accounting dimension of the new version of the account. If there is no historical business data, the terminal processes it according to the logic of the accounting dimension of the conventional change account. That is, when the target account has business, the terminal will create a new version of the account, and this new version of the account will inherit the accounting dimension of the original account, and also add the dimension of this change. The accounting dimension of the historical account remains unchanged, that is, there is no newly added dimension data in the historical account.

[0076] Take the target account 1121 accounts receivable as an example. Before the versioning operation, the accounting dimension corresponding to the account 1121 accounts receivable is: customer, that is, when a business occurs, it is necessary to record which customer it is caused by. Based on the demand for refined accounting, a new accounting dimension needs to be added: salesperson, that is, when a business occurs in the future, in addition to the customer dimension, it is also necessary to record which salesperson is responsible for the customer of this 1121 account receivable. That is, when the accounting dimension is changed, the new version of the 1121 account must have not only the customer accounting dimension, but also the salesperson, a new accounting dimension. If the versioning operation is to add the accounting dimension of the target account: salesperson, the terminal determines whether the target account has historical business data. If there is historical business data, the terminal creates a new version of the account, and the new version of the account inherits the accounting dimension (customer) of the original account, and adds the accounting dimension (customer + salesperson) of the new version of the account, that is, the new version of the account is: 1121 accounts receivable customer + salesperson, and the original historical account: 1121 accounts receivable customer remains unchanged. Furthermore, the terminal can determine whether the target account (1121 accounts receivable) has subordinate accounts. If there are subordinate accounts, the terminal needs to determine whether the subordinate accounts have historical business data, and the processing logic is the same as the above target account. If there are no subordinate accounts, the terminal will replace the basic data of the original target account (1121 accounts receivable) with the new version account. If there is balance data in the original target account (1121 accounts receivable), it will not be carried forward for the time being, because when performing account table queries in the business system of this application, at least two data corresponding to the same account can be queried based on the Master ID, one is the data before versioning, and the other is the data after versioning, that is, cross-period and cross-version queries can be realized.

[0077] In this embodiment, changing the accounting dimension of the target account refers to increasing, decreasing, or eliminating the accounting dimension of the target account. For example, the target account: 1121 Accounts Receivable Customer + Salesperson (Accounting Dimension), increasing the accounting dimension means changing to 1121 Accounts Receivable Customer + Salesperson + Department; decreasing the accounting dimension means changing to 1121 Accounts Receivable Customer or 1121 Accounts Receivable Salesperson; eliminating the accounting dimension means changing to 1121 Accounts Receivable. As a result, the versioning operation of a single account can support the change of accounting dimensions, account names, and the addition of subordinate accounts without changing historical business data, without the need for redundant operations, thereby effectively improving the efficiency of account versioning processing.

[0078] In one embodiment, Figure 3 As shown, the versioning operation includes adding a subordinate account of the target account. The method further includes the following steps if the versioning operation is adding a subordinate account of the target account:

[0079] Step 302: If the versioning operation is to add a subordinate account of the target account, it is determined whether the target account has historical business data.

[0080] Step 304, if yes, a new version of the subject is generated based on the target subject, the data of the target subject is transferred and stored to the subordinate subject, and the basic data of the target subject is replaced with the subordinate subject. The attribute information of the new version of the subject is a non-leaf subject, and the attribute information of the subordinate subject is a leaf subject. The version date of the new version of the subject is the same as the version date of the subordinate subject.

[0081] The terminal responds to the user's versioning operation on the target subject and determines whether the target subject has historical business data. Specifically, if the versioning operation is to add a subordinate subject of the target subject, the terminal determines whether the target subject has historical business data. If there is historical business data, the terminal generates a new version subject based on the target subject, transfers and stores the data of the target subject to the newly added subordinate subject, and replaces the basic information of the target subject with the subordinate subject. The attribute information of the new version subject is a non-leaf subject, and the attribute information of the subordinate subject is a leaf subject. The new version subject is the parent subject of the newly added subordinate subject, and the version date of the new version subject is the same as the version date of the subordinate subject. If there is no historical business data, the terminal processes it according to the logic of adding a conventional subordinate subject.

[0082] Take the target account 1121 accounts receivable as an example. Before the versioning operation, the account 1121 accounts receivable has no subordinate accounts. Based on user needs, a new subordinate account needs to be added: accounts receivable-domestic, that is, when business occurs in the future, this subordinate account (accounts receivable-domestic) is used to record the business data that occurs. That is, the versioning operation is to add a subordinate account of accounts receivable, and the terminal determines whether the accounts receivable has historical business data. If there is historical business data, the terminal generates a new version account (accounts receivable) based on accounts receivable, transfers and stores the data of the target account to the subordinate account (accounts receivable-domestic), and replaces the basic data of the target account with the subordinate account (accounts receivable-domestic). The attribute information of the new version account (accounts receivable) is a non-leaf account, and the attribute information of the subordinate account (accounts receivable-domestic) is a leaf account. The version date of the new version account is the same as the version date of the subordinate account. Because when a business occurs, when a subordinate is added to the current account, it is equivalent to changing the attributes of two accounts at once, changing the attribute of the current account from a detailed account to a non-detailed account, and adding a new subordinate detailed account (accounts receivable-domestic). These two actions are generated in one operation, so the versioning date of these two accounts is the same. That is, for the original account 1121 accounts receivable, when a subordinate is added, the system will perform two operations at the same time to change it to:

[0083] 1121 Accounts receivable (detail level - changed to non-detail level account)

[0084] 1121.01 Accounts receivable - domestic (newly added sub-level detailed account)

[0085] In this embodiment, by adding different versions of the account record of versioned dates, a new version is generated after the account that has done business, that is, the account with historical business data, is versioned, and a subordinate account is generated under the new version account. The subordinate account uses the main identification information of the upper-level account, that is, in the scenario of adding a subordinate account, since the main identification information is consistent, it conforms to the background logic of the balance sheet. When querying the report, the balance of the new account can be automatically found without the need for extra operations. That is, the new version of the subordinate account data can be directly queried when the report is queried, so that the versioning operation of a single account can support the change of accounting dimensions, account names and the addition of subordinate accounts without changing the historical business data, without the need for extra operations, thereby effectively improving the efficiency of account versioning processing.

[0086] In one embodiment, Figure 4 As shown, the versioning operation includes modifying the name of the target subject. The method further includes the following steps if the versioning operation is to modify the name of the target subject:

[0087] Step 402, if the versioning operation is to modify the name of the target account, it is determined whether the target account is a leaf account of the smallest granularity, and the leaf account of the smallest granularity is used to record business data.

[0088] Step 404: If the target account is a leaf account of the smallest granularity, determine whether the target account has historical business data; if it has historical business data, generate a new version of the account with a modified name.

[0089] Step 406: If the target subject is not a leaf subject of the smallest granularity, the names of the subordinate subjects of the target subject are modified in a linked manner.

[0090] In response to the user's versioning operation on the target subject, the terminal determines whether the target subject has historical business data. Specifically, if the versioning operation is to modify the name of the target subject, the terminal determines whether the target subject is a leaf subject of the smallest granularity, and the leaf subject of the smallest granularity is used to record business data. If the target subject is a leaf subject of the smallest granularity, the terminal determines whether the target subject has historical business data; if there is historical business data, the terminal generates a new version of the subject with the modified name, and replaces the basic information of the target subject with the new version of the subject. If there is no historical business data, the terminal processes it according to the conventional logic of name modification, that is, directly modifies the name of the target subject. If the target subject is not a leaf subject of the smallest granularity, the terminal will modify the name of the subordinate subject of the target subject in a linked manner.

[0091] In this implementation, whether it is a leaf account with the smallest granularity, that is, whether it is a most detailed account, is determined because the business occurs on the most detailed account. Non-detailed accounts are only responsible for summarizing data and cannot generate business. Only detailed accounts are used to record the business data that occurs. Among them, the leaf account with the smallest granularity, that is, the most detailed account, refers to the lowest level of the account. There will be no lower-level accounts under the most detailed account. If it is not the most detailed account, the operation of modifying the target account name will not affect the display of the name of the lower-level account itself, but the lower-level account will be affected when the name of the upper-level account is displayed.

[0092] For example: 1121 Accounts receivable (non-detailed account)

[0093] 1121.01 Domestic (detailed subject)

[0094] In the business system, both the 1121 account and the 1121.01 account have their own names, but the 1121.01 account itself is still a long name that includes the parent name, that is, accounts receivable-domestic. If the name of the non-detailed account (1121 accounts receivable) is modified, the impact on the subordinate accounts will only be when the long name of the subordinate account is displayed, and there will be no impact if the long name is not displayed. Therefore, when the terminal determines that the target account is not a leaf account with the smallest granularity, the terminal will modify the name of the subordinate account of the target account in a linked manner, that is, when modifying the name of a non-detailed account, the terminal will automatically modify the long name of the corresponding subordinate account in a linked manner. For example, if the user modifies the name of the target account 1121 Accounts Receivable (non-detailed level) to 1121 Notes Receivable, the terminal responds to the user's versioning operation on the target account, determines that the target account is not a leaf account of the smallest granularity, and then modifies the name of the subordinate account of the target account, that is, modifies the subordinate account 1121.01 Accounts Receivable - Domestic (detailed level account) to 1121.01 Notes Receivable - Domestic (detailed level account). If the user modifies the name of the target account 1121.01 Accounts Receivable - Domestic (detailed level account) to 1121.01 Accounts Receivable - Foreign (detailed level account), the terminal responds to the user's versioning operation on the target account, determines that the target account is a leaf account of the smallest granularity, and then determines whether the target account has historical business data; if there is historical business data, a new version account 1121.01 Accounts Receivable - Foreign (detailed level account) with the modified name is generated, and the basic data of the target account is replaced with the new version account. If there is no historical business data, the terminal will process it according to the conventional name modification logic, that is, directly change the name of the target account 1121.01 Accounts Receivable - Domestic (detailed level account) to 1121.01 Accounts Receivable - Foreign (detailed level account).

[0095] In this embodiment, when the name of an account for which business has occurred, that is, an account with historical business data, is modified, a new version of the account with the modified name will be generated. The main identification information of different versions of the account remains consistent. When the name is modified, all subordinate accounts can be found based on the main identification information, and the long name can be modified synchronously. This allows the versioning operation of a single account to support changes in accounting dimensions, account names, and the addition of new subordinate accounts without changing historical business data, without the need for unnecessary operations, thereby effectively improving the efficiency of account versioning processing.

[0096] In one embodiment, the method further comprises:

[0097] In response to an account table query operation on a target account, a filtered account version of the target account is displayed. The filtered account version of the target account is filtered according to a versioning date to obtain display content of the filtered target account.

[0098] When querying accounts and tables, the business system will determine the display content and display mode of the account according to the versioning date. That is, in response to the user's account and table query operation on the target account, the terminal displays the account version of the filtered target account. The account version of the filtered target account is filtered according to the versioning date, and the display content of the filtered target account is obtained. For example, Figure 5A The following figure shows the interface display for querying versioned records of a single subject. If the user wants to query versioned records of a single subject, he can select the subject in the subject list interface and click on the versioned record to query the versioned records of a single subject. The business system searches for the versioned records corresponding to the target subject based on the primary identification information of the target subject; at the same time, the business system can determine what data to display in the interface based on the primary identification information of the target subject according to the query period selected by the user.

[0099] For example, when adding voucher data, after selecting the accounting date, the terminal (system) will obtain the corresponding version of the account based on this accounting date, such as Figure 5B As shown in the figure, the interface display diagram is when the accounting date selected by the user is before the versioning date. That is, the account with account code 2202.06 is versioned in March. When the accounting date selected by the user is February, the system displays the account data before the versioning. Figure 5C The figure below shows the interface display when the accounting date selected by the user is after the versioning date. That is, when the accounting date selected by the user is March, when a voucher is added, the system automatically displays the account data after the versioning date.

[0100] When querying accounts and tables, the system will determine the display content of the account based on the versioning date. When the selected account and table query period is before the versioning date, the business system will display the account data between the versioning dates in the interface; when the selected account and table query period is after the versioning date, the business system will display the versioned data in the interface. If there is balance data for the account before versioning, it will also be displayed in the interface. Take the account balance table as an example. Figure 5DAs shown in the figure, it is the interface display diagram for account table query. When the query period is 1-3 periods, the business system will display both the data before and after versioning. That is, the business system will filter out the version of the subject to be displayed in the interface according to the versioning date. The business system will query according to the Master ID of the subject and display all the data of the queried subject. The business system can determine whether there is a relationship between the two subjects by whether the Master ID is consistent, and then query the versioned records of the corresponding subject through this Master ID, and display the versioned records of this subject in which period in the interface. That is, the business system can decide what data to display in the interface according to the filtering period of the query report and the Master ID. At the same time, the Master ID can be used to know how the subject aggregates data upward.

[0101] Compared with the traditional account versioning method, the Master ID of different versions of accounts in this implementation remains consistent, so the versioning operation of a single account becomes very convenient, without the need to update historical data or perform overall account table versioning operations. Even in the scenario of adding a new subordinate account, since the Master ID is consistent, it fits the background query logic of the balance table. When querying the report, the balance of the new version of the account can be automatically found, that is, the subordinate account uses the Master ID of the upper-level account, so that the report query can directly query the new version of the subordinate account data without unnecessary operations, thereby effectively improving the efficiency of account versioning processing.

[0102] In one embodiment, if the query period during which the user performs an account table query operation on the target account is after the versioning date, the terminal displays the data of the target account after versioning and the balance data of the target account before versioning; wherein the balance data is the balance data of the target account before versioning queried from the balance table. That is, the terminal performs balance judgment in a manner including but not limited to querying according to the balance table in the system, or other methods. The balance table is a balance table between the account and the accounting dimension, and the terminal can directly query whether the account has a balance from the background balance table. Since the upper and lower level accounts use the same Master ID, there is no need to repeatedly write redundant data into the balance table.

[0103] Take 1121 accounts receivable as an example. Assume that the opening balance of 1121 accounts receivable before the 6th version was 1 million yuan. The 6th version added the customer accounting dimension, that is, when future business occurs, the 1121 accounts receivable account must record the business data of which customer when doing business. The traditional account versioning processing method is: default to a customer A, transfer the 1 million yuan balance before versioning to 1121 customer A, and after versioning, the balance of 1121 customer A is displayed in the interface; when there is business of 1.5 million yuan to customer B in the future, the interface will display:

[0104] 1121 Accounts receivable RMB 2.5 million

[0105] Customer A 1 million yuan

[0106] Customer B 1.5 million yuan

[0107] In the above-mentioned traditional account versioning processing method, it is difficult to distinguish the balance of the customer accounting dimension in the historical data, while the display content in the interface of this embodiment is:

[0108] 1121 Accounts receivable RMB 2.5 million

[0109] No dimension 1 million yuan

[0110] Customer B 1.5 million yuan

[0111] Compared with the traditional account versioning processing method, the original data is automatically moved to the existing new data, that is, the balance of 1 million yuan is automatically updated to the default customer A accounting dimension. The data appears to be continuous in the interface display, but in fact, continuous query of the business cannot be realized. In this embodiment, when performing versioning operations, since the historical data (historical data: no dimension 1 million yuan) is not changed, when querying data after the versioning date, the system will not automatically filter out the data that existed before the versioning, that is, no data will be missed when querying report data, and continuous query of business data can be realized, that is, the report query logic is coherent, and cross-period and cross-version queries can be realized.

[0112] In one embodiment, after creating a new version of a subject, the method further includes:

[0113] Through the background scheduling task, replace the account on the target account document referenced in the basic settings with the new version account;

[0114] If the versioning operation of the target account is performed in the upper-level accounting organization, the new version of the account is updated to the lower-level accounting organization according to the upper-lower-level allocation relationship corresponding to the target account.

[0115] In response to the user's versioning operation on the target account, the terminal determines whether the target account has historical business data. If the target account has historical business data, the terminal creates a new version of the account. Specifically, after the terminal creates a new version of the account, the terminal can replace the account on the document that references the target account in the basic settings with the new version of the account through the background scheduling task. That is, if a new version of the account is generated in the business system, the background scheduling task is started to replace the account on various documents that reference the historical version of the account with the latest version. However, the account in the original historical business data remains unchanged, for example, the voucher data of the original historical version remains unchanged. Furthermore, the terminal can determine whether the versioning operation of the target account is a versioning operation performed in the superior accounting organization. If the versioning operation of the target account is a versioning operation performed in the superior accounting organization, the terminal will update the new version of the account to the subordinate accounting organization according to the superior-subordinate allocation relationship corresponding to the target account. The superior accounting organization can be the business data of the parent company, and the subordinate organization can be the business data of the subsidiary. This enables the update of new versions of accounts across organizations and enterprises. The documents that reference the accounts are automatically replaced according to the update of the account version. The versioning operation of a single account also becomes very convenient, without the need to update historical data or perform overall operations on the account table versioning. Even if a single account is versioned in the superior organization, the account on the referenced target account document in the basic settings can be automatically replaced with the new version account and updated to the corresponding subordinate organization without the need for redundant operations, thereby effectively improving the efficiency of account versioning.

[0116] In one embodiment, the target subject is an accounting subject. When the user changes the accounting dimension of the subject, modifies the subject name, or adds a subordinate subject, the user can set the versioning date that he wants to enable corresponding to the versioning operation. Figure 6As shown, this is the interface display diagram when the user performs versioning operations. The user clicks the versioning button to enter the accounting subject editing page. There is a versioning date in the accounting subject editing interface. The user can set a custom versioning date to 2021-04-07. Furthermore, the business system responds to the user's versioning operation on the target subject and determines whether the target subject has historical business data. If the versioning operation is to add or reduce the accounting dimension of the target subject, the business system determines whether the target subject has historical business data. If there is historical business data, the business system creates a new version of the subject. The new version of the subject inherits the accounting dimension of the original subject and adds or reduces the accounting dimension of the new version of the subject. If there is no historical business data, the business system processes it according to the logic of the accounting dimension of the conventional change subject. If the versioning operation is to add a subordinate subject of the target subject, the business system determines whether the target subject has historical business data. If there is historical business data, the business system generates a new version of the account based on the target account, transfers and stores the data of the target account to the newly added subordinate account, and replaces the basic data of the target account with the subordinate account. The attribute information of the new version of the account is a non-leaf account, and the attribute information of the subordinate account is a leaf account. The new version of the account is the parent account of the newly added subordinate account, and the version date of the new version of the account is the same as the version date of the subordinate account. If there is no historical business data, the business system processes it according to the logic of adding a new subordinate account. If the versioning operation is to modify the name of the target account, the business system determines whether the target account is a leaf account with the smallest granularity. If the target account is a leaf account with the smallest granularity, the business system determines whether the target account has historical business data; if there is historical business data, the business system generates a new version of the account with the modified name, and replaces the basic data of the target account with the new version of the account. If there is no historical business data, the business system processes it according to the logic of conventional name modification, that is, directly modifying the name of the target account. If the target account is not a leaf account with the smallest granularity, the business system will modify the name of the subordinate account of the target account in a linked manner. As a result, the versioning operation of a single account can support changes in accounting dimensions, account names, and the addition of sub-accounts without changing historical business data, without the need for unnecessary operations, thereby effectively improving the efficiency of account versioning processing.

[0117] It should be understood that although Figure 1-6 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1-6At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0118] In one embodiment, Figure 7 As shown, a processing device for subject versioning is provided, including: a judgment module 702, a creation module 704 and a setting module 706, wherein:

[0119] The judgment module 702 is used to judge whether the target account has historical business data in response to the versioning operation of the target account.

[0120] The creation module 704 is used to create a new version account if the target account has historical business data. The new version account is used to record the business data generated after the versioning date. The versioning date is the activation date corresponding to the set versioning operation.

[0121] Setting module 706 is used to set the main identification information of the new version of the subject to be consistent with the main identification information of the target subject if the versioning operation is not a versioning operation of adding a new subordinate subject, and the main identification information is used to trace the historical version of the subject; if the versioning operation is a versioning operation of adding a new subordinate subject, the main identification information of the new subordinate subject is set to be consistent with the main identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

[0122] In one embodiment, the judgment module is further used to judge whether the target account has historical business data if the versioning operation is to add or reduce the accounting dimension of the target account. The creation module is further used to create a new version account if there is historical business data, and the new version account inherits the accounting dimension of the original account and adds or reduces the accounting dimension of the new version account.

[0123] In one embodiment, the device further includes: a generating module.

[0124] The judgment module is also used to judge whether the target account has historical business data if the versioning operation is to add a subordinate account of the target account. The generation module is used to generate a new version account based on the target account, transfer and store the data of the target account to the subordinate account, and replace the basic data of the target account with the subordinate account; the attribute information of the new version account is a non-leaf account; the attribute information of the subordinate account is a leaf account; the version date of the new version account is the same as the version date of the subordinate account.

[0125] In one embodiment, the device further includes: a modification module.

[0126] The judgment module is also used to judge whether the target account is a leaf account of the smallest granularity if the versioning operation is to modify the name of the target account; the leaf account of the smallest granularity is used to record business data; if the target account is a leaf account of the smallest granularity, it is judged whether the target account has historical business data. The generation module is also used to generate a new version of the account with the modified name if there is historical business data. The modification module is used to modify the name of the subordinate account of the target account if the target account is not a leaf account of the smallest granularity.

[0127] In one embodiment, the device further includes: a display module.

[0128] The display module is used to respond to the account table query operation on the target account and display the account version of the filtered target account. The account version of the filtered target account is filtered according to the versioning date to obtain the display content of the filtered target account.

[0129] In one embodiment, the display module is also used to display the data of the target account after versioning and the balance data of the target account before versioning if the query period of the account table query operation on the target account is after the versioning date; wherein the balance data is the balance data of the target account before versioning queried from the balance table.

[0130] In one embodiment, the device further includes: a replacement module and an update module.

[0131] The Replace module is used to replace the account on the target account document referenced in the basic settings with the new version account through background scheduling tasks. The Update module is used to update the new version account to the subordinate accounting organization according to the superior-subordinate allocation relationship corresponding to the target account if the versioning operation of the target account is performed in the superior accounting organization.

[0132] For the specific limitations on the subject versioning processing device, please refer to the limitations on the subject versioning processing method above, which will not be repeated here. The various modules in the above-mentioned subject versioning processing device can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0133] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for processing subject versioning is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.

[0134] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0135] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned method embodiments when executing the computer program.

[0136] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for processing subject versioning, the method comprising: In response to a versioning operation of a target account, determining whether the target account has historical business data; the versioning operation refers to a change operation on account information of the target account; If the target account has historical business data, a new version account is created; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation; If the versioning operation is not a versioning operation of adding a subordinate account, the primary identification information of the new version account is set to be consistent with the primary identification information of the target account; The main identification information is used to trace the historical version of the subject; If the versioning operation is a versioning operation of adding a subordinate subject, the primary identification information of the newly added subordinate subject is set to be consistent with the primary identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

2. The method according to claim 1, characterized in that The versioning operation includes changing the accounting dimension of the target account; the changing the accounting dimension of the target account includes adding or reducing the accounting dimension; The method further comprises: If the versioning operation is to add or reduce the accounting dimension of the target account, determine whether the target account has historical business data; If there is historical business data, a new version of the account is created. The new version of the account inherits the accounting dimensions of the original account and adds or reduces the accounting dimensions of the new version of the account.

3. The method according to claim 1, characterized in that The versioning operation includes adding a subordinate subject of the target subject; the method further includes: If the versioning operation is to add a subordinate account of the target account, then determine whether the target account has historical business data; If so, a new version of the subject is generated based on the target subject, the data of the target subject is transferred and stored to the subordinate subject, and the basic data of the target subject is replaced with the subordinate subject; the attribute information of the new version of the subject is a non-leaf subject; the attribute information of the subordinate subject is a leaf subject; the version date of the new version of the subject is the same as the version date of the subordinate subject.

4. The method according to claim 1, characterized in that: The versioning operation includes modifying the name of the target subject; the method further includes: If the versioning operation is to modify the name of the target account, then determine whether the target account is a leaf account of the smallest granularity; the leaf account of the smallest granularity is used to record business data; If the target account is a leaf account of the smallest granularity, determine whether the target account has historical business data; if so, generate a new version of the account with a modified name; If the target subject is not a leaf subject of the smallest granularity, the name of the subordinate subject of the target subject is modified in a linked manner.

5. The method according to claim 1, characterized in that: The method further comprises: In response to an account table query operation on the target account, a filtered account version of the target account is displayed; the filtered account version of the target account is filtered according to a versioning date to obtain the displayed content of the filtered target account.

6. The method according to claim 5, characterized in that The method further comprises: If the query period of the account table query operation on the target account is after the versioning date, the data of the target account after versioning and the balance data of the target account before versioning are displayed; wherein the balance data is the balance data of the target account before versioning queried from the balance table.

7. The method according to claim 1, characterized in that After creating a new version of the subject, the method further includes: Through the background scheduling task, the account on the document that references the target account in the basic settings is replaced with the new version of the account; If the versioning operation of the target account is performed in a superior accounting organization, the new version account is updated to the subordinate accounting organization according to the superior-subordinate allocation relationship corresponding to the target account.

8. A device for processing subject versioning, characterized in that: The device comprises: A judgment module, used for judging whether the target account has historical business data in response to a versioning operation of the target account; the versioning operation refers to a change operation on the account information of the target account; A creation module, used to create a new version account if the target account has historical business data; the new version account is used to record business data generated after the versioning date; the versioning date is the activation date corresponding to the set versioning operation; A setting module is used for setting the main identification information of the new version of the subject to be consistent with the main identification information of the target subject if the versioning operation is a versioning operation of not adding a new subordinate subject; the main identification information is used to trace the historical version of the subject; if the versioning operation is a versioning operation of adding a new subordinate subject, the main identification information of the new subordinate subject is set to be consistent with the main identification information of the target subject, and the attribute information of the target subject is changed to a non-leaf subject.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

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