A method and device for processing accounting data
By receiving pending transactions and generating the latest accounting details based on the new accounting template and account mapping template, the time-consuming and laborious update of old accounting standards in the existing technology is solved, and fast and efficient accounting adjustments are achieved.
Patent Information
- Application Number
- CN202111341468.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2041-11-12
AI Technical Summary
When the old account set is updated, it is time-consuming and labor-intensive to fill in the accounting parameters for all transactions of the entire product.
By receiving pending transactions, product elements are obtained based on transaction data. If a new accounting template is queried, an account details will be generated based on transaction data and the new accounting template; if the accounts in the accounting details need to be replaced, the replacement accounts will be queried in the new account system mapping template and the account details will be updated.
It realizes rapid accounting adjustments, improves the efficiency of accounting data processing, and avoids the tedious process of full replacement.
Smart Images

Figure CN114119185B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method and device for processing accounting data. Background Art
[0002] Accounting is the recording, calculation and reporting of the economic activities of a specific entity. It runs through the entire process of economic activities. Any company will inevitably have to conduct accounting.
[0003] With the continuous development of banking business, the continuous introduction of new financial products, and the change of accounting standards, there will be a need to replace the old account sets. In the existing technology, the method adopted is to add a new full accounting scheme and account system based on the new accounting standards, and directly replace the old account sets. Since the accounting parameters of all transaction behaviors of all products need to be filled in, it is time-consuming and laborious. Summary of the invention
[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for processing accounting data, which can at least partially solve the problems in the prior art.
[0005] In one aspect, the present invention provides a method for processing accounting data, comprising:
[0006] Receiving a pending transaction, and obtaining product elements according to transaction data included in the pending transaction;
[0007] If a corresponding new accounting template is obtained according to the product element query, the account details corresponding to the transaction data are obtained according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset;
[0008] If a replacement account is obtained by querying the account included in the account details corresponding to the transaction data in the new account system mapping template, the account details corresponding to the transaction data are updated according to the replacement account obtained in the query to obtain the latest version of the account details corresponding to the pending transaction; wherein the new account system mapping template is preset.
[0009] In another aspect, the present invention provides a device for processing accounting data, comprising:
[0010] A receiving module, used for receiving a transaction to be processed, and obtaining product elements according to transaction data included in the transaction to be processed;
[0011] A first obtaining module, configured to obtain the account details corresponding to the transaction data according to the transaction data and the corresponding new accounting template if the corresponding new accounting template is obtained according to the product element query; wherein the new accounting template is preset;
[0012] The second acquisition module is used to update the account details corresponding to the transaction data according to the replacement subjects obtained by querying in the new account system mapping template according to the subjects included in the account details corresponding to the transaction data, and obtain the latest version of the account details corresponding to the pending transaction; wherein the new account system mapping template is preset.
[0013] On the other hand, the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for processing accounting data described in any of the above embodiments when executing the program.
[0014] On the other hand, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for processing accounting data described in any of the above embodiments.
[0015] The method and device for processing accounting data provided by the embodiments of the present invention can receive pending transactions and obtain product elements based on the transaction data included in the pending transactions. If a corresponding new accounting template is obtained by querying based on the product elements, the accounting details corresponding to the transaction data are obtained based on the transaction data and the corresponding new accounting template. If a replacement account is obtained by querying in a new account system mapping template based on the account included in the accounting details corresponding to the transaction data, the accounting details corresponding to the transaction data are updated based on the replacement account obtained by querying, and the latest version of the accounting details corresponding to the pending transactions is obtained, so that accounting adjustments can be quickly implemented and the efficiency of accounting data processing is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0017] Figure 1 It is a flowchart of the method for processing accounting data provided by the first embodiment of the present invention.
[0018] Figure 2 It is a flowchart of a method for processing accounting data provided by the second embodiment of the present invention.
[0019] Figure 3 It is a flowchart of a method for processing accounting data provided by the third embodiment of the present invention.
[0020] Figure 4It is a schematic diagram of the structure of an accounting data processing device provided by the fourth embodiment of the present invention.
[0021] Figure 5 It is a schematic diagram of the structure of an accounting data processing device provided in the fifth embodiment of the present invention.
[0022] Figure 6 It is a schematic diagram of the structure of an accounting data processing device provided by the sixth embodiment of the present invention.
[0023] Figure 7 It is a schematic diagram of the structure of the accounting data processing device provided by the seventh embodiment of the present invention.
[0024] Figure 8 It is a schematic diagram of the structure of an accounting data processing device provided in the eighth embodiment of the present invention.
[0025] Fig. 9 It is a schematic diagram of the structure of an accounting data processing device provided by the ninth embodiment of the present invention.
[0026] Fig.10 It is a schematic diagram of the physical structure of an electronic device provided by the tenth embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical scheme and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention. It should be noted that, in the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other arbitrarily.
[0028] In order to facilitate understanding of the technical solution provided by this application, the relevant contents of the technical solution of this application are first explained below.
[0029] An accounting scheme refers to a method of measuring accounting elements such as assets, liabilities, owner's equity, income, expenses and profits according to the economic characteristics of products and transactions. Accounts refer to the categories in the accounting scheme that are classified and accounted for according to the specific contents of accounting elements, with a maximum of four levels of accounts. An accounting scheme can be made into an accounting template, which includes account entries and calculation methods for each account included in the account entries. The accounting template is matched with the product elements, and the corresponding accounting template can be obtained through the product elements. A product element can be at least one transaction field selected from the transaction data.
[0030] The following takes the server as an example of the execution subject to illustrate the specific implementation process of the processing of the accounting data provided by the embodiment of the present invention.
[0031] Figure 1FIG. 1 is a flow chart of a method for processing accounting data provided by a first embodiment of the present invention. Figure 1 As shown, the method for processing accounting data provided by the embodiment of the present invention includes:
[0032] S101, receiving a transaction to be processed, and obtaining product elements according to transaction data included in the transaction to be processed;
[0033] Specifically, the server receives a pending transaction, and the pending transaction includes transaction data. The server obtains product elements according to the transaction data. The product elements include at least one transaction field, which is set according to actual needs and is not limited in the embodiment of the present invention. The transaction data includes but is not limited to transaction fields such as transaction time, transaction amount, transaction type, asset classification, and buying and selling direction, which are set according to actual needs and are not limited in the embodiment of the present invention.
[0034] For example, for a bond purchase transaction, the transaction data includes transaction fields such as bond code, bond type, counterparty, transaction time, interest date, transaction amount, asset classification, and buying and selling direction. The server can obtain the bond type, buying and selling direction, and asset classification from the above transaction data as product elements. Among them, what product elements need to be used in a transaction can be determined based on the transaction type included in the transaction data, and the correspondence between the transaction type and the product element is pre-set. The product element corresponding to the transaction type is obtained according to the transaction type included in the transaction data. The transaction type includes but is not limited to bond type, bank deposit, loan, etc., which is set according to actual needs and is not limited in the embodiment of the present invention. For some transactions, the product element can also be determined based on the transaction fields other than the product type in the transaction data, and is set according to actual needs, which is not limited in the embodiment of the present invention.
[0035] S102: if a corresponding new accounting template is obtained according to the product element query, then the account details corresponding to the transaction data are obtained according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset;
[0036] Specifically, the server will query whether the product element corresponds to a new accounting template based on the product element. If the new accounting template corresponding to the product element is found, the transaction data will be accounted for according to the new accounting template corresponding to the transaction data to obtain the accounting details corresponding to the transaction data. Among them, the new accounting template is preset, and after the accounting element measurement method is reclassified or the product and transaction behavior are updated, the accounting template is changed or newly created for the product elements involved in the reclassification or adjustment. The new accounting template includes account entries and the calculation method of the amount corresponding to each account included in the account entry. The calculation method of the amount corresponding to each account is set according to actual needs, and the embodiment of the present invention does not limit it.
[0037] For example, the original accounting template corresponding to product element A includes debit account a, debit account b and credit account c, as well as the calculation method corresponding to account a, the calculation method corresponding to account b and the calculation method corresponding to account c. Based on the transaction data of a transaction amount of 1000 corresponding to product element A and the original accounting template, the server can obtain the following account details:
[0038] Debit: Account a 900
[0039] Subject B 100
[0040] Credit: Account c 1000
[0041] Due to the change in the accounting scheme, a new accounting template corresponding to product element A is set, including debit account a, debit account b, debit account d and credit account c, as well as the calculation method corresponding to account a, the calculation method corresponding to account b, the calculation method corresponding to account d and the calculation method corresponding to account c. For the transaction data corresponding to the above product element A with a transaction amount of 1000, the server can obtain the following account details based on the above transaction data and the new accounting template corresponding to product element A:
[0042] Debit: Account A 850
[0043] Subject B 100
[0044] Subject D 50
[0045] Credit: Account c 1000
[0046] It can be understood that, compared with the original accounting template, the new accounting template corresponding to product element A adds account d and the calculation method corresponding to account d.
[0047] S103. If a replacement account is obtained by querying the account included in the account details corresponding to the transaction data in the new account system mapping template, the account details corresponding to the transaction data are updated according to the replacement account obtained, and the latest version of the account details corresponding to the pending transaction is obtained; wherein the new account system mapping template is preset.
[0048] Specifically, after obtaining the account details corresponding to the transaction data, the server can obtain the various subjects included in the account details from the account details, and then query whether there are replacement subjects from the new subject system mapping template according to the various subjects included in the account details. For the subjects included in the account details with replacement subjects, the corresponding subjects included in the account details will be replaced with the replacement subjects, so as to obtain the latest version of the account details corresponding to the pending transaction. Among them, the new subject system mapping template is preset. When the subject name changes or the subject classification needs to be reclassified, the mapping relationship between the old subject and the new subject is established to obtain the new subject system mapping template. The new subject in the new subject system mapping template is the replacement subject of the corresponding old subject.
[0049] For example, the name of the old account a is changed to a1, and the old account b is divided into b1 and b2. Then the new account system mapping template established includes the correspondence between the old account a and the new account a1, and the correspondence between the old account b and the new accounts b1 and b2, and the sum of the amount corresponding to the new account b1 and the amount corresponding to the new account b2 is equal to the amount corresponding to the old account b.
[0050] The method for processing accounting data provided by the embodiment of the present invention can receive pending transactions and obtain product elements based on the transaction data included in the pending transactions. If a corresponding new accounting template is obtained by querying based on the product elements, the accounting details corresponding to the transaction data are obtained based on the transaction data and the corresponding new accounting template. If a replacement account is obtained by querying in a new account system mapping template based on the account included in the accounting details corresponding to the transaction data, the accounting details corresponding to the transaction data are updated based on the replacement account obtained by querying, and the latest version of the accounting details corresponding to the pending transactions is obtained, so that accounting adjustments can be quickly implemented and the efficiency of accounting data processing is improved.
[0051] On the basis of the above embodiments, the method for processing accounting data provided by the embodiment of the present invention further includes:
[0052] If no replacement account is obtained by querying the account details corresponding to the transaction data in the new account system mapping template, the account details corresponding to the transaction data are used as the latest version of the account details corresponding to the pending transaction.
[0053] Specifically, after obtaining the account details corresponding to the transaction data, the server can obtain the various subjects included in the account details from the account details, and then query whether there are replacement subjects from the new subject system mapping template based on the various subjects included in the account details. If no corresponding replacement subjects are found for all the subjects included in the account details, it means that the subjects in the account details do not need to be replaced, and the account details corresponding to the transaction data can be used as the latest version of the account details corresponding to the pending transaction.
[0054] Figure 2 FIG. 1 is a flow chart of a method for processing accounting data provided by a second embodiment of the present invention. Figure 2 As shown, based on the above embodiments, the method for processing accounting data provided by the embodiment of the present invention further includes:
[0055] S201. If no corresponding new accounting template is obtained according to the product element, old account details corresponding to the pending transaction are obtained;
[0056] Specifically, the server queries whether the product element corresponds to a new accounting template according to the product element. If no new accounting template corresponding to the product element is found, it means that the accounting template corresponding to the product element has not changed, and the server can obtain the old account details corresponding to the pending transaction. The old account details corresponding to the pending transaction can be pre-generated or generated in real time by the server according to the original accounting template corresponding to the product element and the transaction data.
[0057] S202: If a replacement account is obtained by querying the new account system mapping template according to the account included in the old account details corresponding to the pending transaction, the old account details corresponding to the pending transaction are updated according to the replacement account obtained, and the latest version of the account details corresponding to the pending transaction is obtained.
[0058] Specifically, the server obtains each subject included in the old account details from the old account details corresponding to the pending transaction, and then queries from the new subject system mapping template whether there is a replacement subject based on the each subject included in the old account details. For the subjects included in the old account details for which there are replacement subjects, the corresponding subjects included in the old account details will be replaced with the replacement subjects, thereby obtaining the latest version of the account details corresponding to the pending transaction.
[0059] On the basis of the above embodiments, the method for processing accounting data provided by the embodiment of the present invention further includes:
[0060] If no replacement account is obtained by querying the account included in the old account details corresponding to the pending transaction in the new account system mapping template, the old account details corresponding to the pending transaction are directly used as the latest version of the account details corresponding to the pending transaction.
[0061] Specifically, the server obtains each subject included in the old account details corresponding to the pending transaction from the old account details, and then queries from the new subject system mapping template whether there is a replacement subject based on the each subject included in the old account details. If no corresponding replacement subject is found for all subjects included in the old account details, it means that the subjects in the old account details do not need to be replaced, and the old account details corresponding to the pending transaction can be directly used as the latest version of the account details corresponding to the pending transaction.
[0062] When processing actual accounting data, if the measurement method and / or account of the accounting elements changes, the accounting data processing method provided by the embodiment of the present invention does not need to re-establish the full accounting scheme and account system, which facilitates accounting adjustments and improves the efficiency of accounting adjustments. Furthermore, in order to ensure the reliability of accounting data, the old and new accounting methods will run in parallel for a period of time. When it is necessary to convert the old accounting details to the latest version of the accounting details, the accounting data processing method provided by the embodiment of the present invention can improve the efficiency of accounting conversion.
[0063] On the basis of the above embodiments, further, the method for processing accounting data provided by the embodiment of the present invention also includes recording accounts through multiple parallel account sets.
[0064] Specifically, in order to reduce the operational risks brought about by the adjustment of accounting methods, multiple parallel sets of accounts can be used for accounting. When there is a problem with the account details of one set of accounts, the account details of other sets of accounts can be used.
[0065] For example, two parallel account sets are used for accounting. Since the original accounting method has been used for a long time and has high reliability, one account set uses the original accounting method for accounting. The changed accounting method is the accounting method that is expected to be promoted in the future, and one account set can use the changed accounting method for accounting.
[0066] On the basis of the above embodiments, further, the method for processing accounting data provided by the embodiments of the present invention also includes: the multiple parallel account sets include at least two of the first account set, the second account set and the third account set; wherein, the first account set uses the original accounting template for accounting; the second account set uses the original accounting template and the new accounting template for accounting; the third account set uses the original accounting template, the new accounting template and the new account system mapping template for accounting.
[0067] Specifically, the multiple parallel account sets may include any two of the first account set, the second account set and the third account set, or three account sets including the first account set, the second account set and the third account set. The first account set uses the original accounting template, which is an existing accounting template in the prior art. The second account set uses the original accounting template and the new accounting template for accounting. Under the second account set, for transactions whose accounting method has not changed, the original accounting template is used for accounting, and for transactions whose accounting method has changed, the new accounting template is used for accounting. The third account set uses the original accounting template, the new accounting template and the new account system mapping template for accounting. Under the third account set, for transactions whose accounting method and account have not changed, the original accounting template is used for accounting; for transactions whose accounting method has changed, the new accounting template is used for accounting; for transactions whose account has changed, the original accounting template and the new account system mapping template are used for accounting, or the new accounting template and the new account system mapping template are used for accounting.
[0068] Figure 3 FIG. 1 is a flow chart of a method for processing accounting data provided by a third embodiment of the present invention. Figure 3 As shown, based on the above embodiments, the method for processing accounting data provided by the embodiment of the present invention further includes:
[0069] S301, comparing the accounting data of the first account set and the third account set based on the subject;
[0070] Specifically, the server can obtain the accounting data of the first account set and the third account set, and then compare the accounts and account balances starting from the first-level account. If the two accounts are the same and the account balances are equal, there is no need to compare the next-level accounts of the two accounts. If the two accounts are the same but the account balances are not equal, the next-level accounts of the two accounts are compared until the last-level account is compared. If it is determined based on the new account system mapping template that the accounts in the financial data of the first account set and the accounts in the financial data of the third account set have a corresponding relationship, then compare the account balances in the financial data of the first account set with the account balances in the financial data of the third account set. If the above two account balances do not match, then continue to compare the next-level accounts until the last-level account is compared.
[0071] S302. If there are accounts with mismatched account balances, a prompt message is sent.
[0072] Specifically, when the server compares the account data of the first account set and the third account set, if it is found that there are accounts with mismatched account balances, it can send prompt information through email or system message to prompt business personnel to pay attention to the accounts with mismatched account balances and promptly correct accounting errors caused by account adjustments and other reasons. Among them, for the same accounts in the first account set and the third account set, if the corresponding account balances are not equal, then the account balances do not match; for the accounts in the first account set and the third account set that have a corresponding relationship, if it is a one-to-one corresponding relationship, the corresponding account balances are not equal, then the account balances do not match; if it is a one-to-many relationship, then the balance of one account is not equal to the sum of the corresponding multiple account balances, then the account balances do not match.
[0073] For example, compare the accounting data of the first account set Z1 and the third account set Z3. First, compare the account balances of the first-level accounts of the first account set Z1 and the third account set Z3. If the account balances of the two first-level accounts of the first account set Z1 and the third account set Z3 with the same account are equal, then there is no need to continue to compare the second-level accounts, third-level accounts and fourth-level accounts of the two first-level accounts, and it can be reported that the two accounts are consistent; if the account balances of the two first-level accounts of the first account set Z1 and the third account set Z3 with the same account are not equal, then continue to compare the second-level accounts, third-level accounts and fourth-level accounts of the two accounts to find out the accounts with mismatched account balances. For account a1 of the first account set Z1 and account a2 of the third account set Z3 that have a corresponding relationship determined by the new account system mapping template, compare whether the account balance of account a1 is equal to the account balance of account a2. If they are equal, then the next-level accounts of account a1 and account a2 will not be compared, and it can be reported that the two accounts match. If they are not equal, then continue to compare the next-level accounts of account a1 and account a2 to find out all accounts with mismatched account balances. For the account b1 of the first account set Z1 and the accounts b2 and b3 of the third account set Z3 that have a corresponding relationship determined by the new account system mapping template, the sum c of the account balance of account b2 and the account balance of account b3 is calculated, and then the account balance of account b1 is compared with c to see if they are equal. If they are equal, the next-level accounts of accounts b1, b2 and b3 will not be compared, and b2 and b3 can be fed back to match b1. If they are not equal, the next-level accounts of accounts b2 and b3 will continue to be compared with the next-level accounts of account b1 to find out all accounts with mismatched account balances. For the mismatched accounts found, they can be highlighted and reminded to the business personnel. The business personnel can analyze the reasons for the difference in account balances and correct the accounting errors.
[0074] Figure 4 is a schematic diagram of the structure of the accounting data processing device provided by the fourth embodiment of the present invention. Figure 4As shown, the accounting data processing device provided by the embodiment of the present invention includes a receiving module 401, a first obtaining module 402 and a second obtaining module 403, wherein:
[0075] The receiving module 401 is used to receive pending transactions and obtain product elements based on the transaction data included in the pending transactions; the first obtaining module 402 is used to obtain the account details corresponding to the transaction data based on the transaction data and the corresponding new accounting template if the corresponding new accounting template is obtained by querying based on the product elements; wherein the new accounting template is preset; the second obtaining module 403 is used to update the account details corresponding to the transaction data based on the replacement subjects obtained by querying based on the subjects included in the account details corresponding to the transaction data in the new subject system mapping template, and obtain the latest version of the account details corresponding to the pending transactions; wherein the new subject system mapping template is preset.
[0076] Specifically, the receiving module 401 receives a pending transaction, and the pending transaction includes transaction data. The server obtains product elements according to the transaction data. The product elements include at least one transaction field, which is set according to actual needs and is not limited in the embodiment of the present invention. The transaction data includes but is not limited to transaction fields such as transaction time, transaction amount, bond type, asset classification, and buying and selling direction, which are set according to actual needs and are not limited in the embodiment of the present invention.
[0077] The first acquisition module 402 will query whether the product element corresponds to a new accounting template based on the product element. If the new accounting template corresponding to the product element is found, the transaction data will be accounted for according to the new accounting template corresponding to the transaction data to obtain the accounting details corresponding to the transaction data. Among them, the new accounting template is preset, and after the accounting element measurement method is reclassified or the product and transaction behavior are updated, the accounting template is changed or newly created for the product elements involved in the reclassification or adjustment. The new accounting template includes account entries and the calculation method of the amount corresponding to each account included in the account entry. The calculation method of the amount corresponding to each account is set according to actual needs, and the embodiment of the present invention does not limit it.
[0078] After obtaining the account details corresponding to the transaction data, the second obtaining module 403 can obtain the various subjects included in the above account details from the above account details, and then query whether there are replacement subjects from the new subject system mapping template according to the various subjects included in the above account details. For the subjects included in the above account details with replacement subjects, the corresponding subjects included in the above account details will be replaced with the replacement subjects, so as to obtain the latest version of the account details corresponding to the pending transaction. Among them, the new subject system mapping template is preset. When the subject name changes or the subject classification needs to be reclassified, the mapping relationship between the old subject and the new subject is established to obtain the new subject system mapping template. The new subject in the new subject system mapping template is the replacement subject of the corresponding old subject.
[0079] The accounting data processing device provided by the embodiment of the present invention can receive pending transactions and obtain product elements based on the transaction data included in the pending transactions. If the corresponding new accounting template is obtained by querying based on the product elements, the accounting details corresponding to the transaction data are obtained based on the transaction data and the corresponding new accounting template. If the replacement subjects are obtained by querying in the new subject system mapping template based on the subjects included in the accounting details corresponding to the transaction data, the accounting details corresponding to the transaction data are updated according to the replacement subjects obtained by querying, and the latest version of the accounting details corresponding to the pending transactions is obtained, so that accounting adjustments can be quickly implemented and the efficiency of accounting data processing is improved.
[0080] Figure 5 is a schematic diagram of the structure of an accounting data processing device provided by a fifth embodiment of the present invention. Figure 5 As shown, based on the above embodiments, the accounting data processing device provided by the embodiment of the present invention further includes a third obtaining module 404, wherein:
[0081] The third obtaining module 404 is used to use the account details corresponding to the transaction data as the latest version of the account details corresponding to the pending transaction if no replacement account is obtained by querying the account details corresponding to the transaction data in the new account system mapping template.
[0082] Figure 6 is a schematic diagram of the structure of the accounting data processing device provided by the sixth embodiment of the present invention. Figure 6 As shown, based on the above embodiments, further, the accounting data processing device provided by the embodiment of the present invention further includes an acquisition module 405 and a fourth acquisition module 406, wherein:
[0083] The acquisition module 405 is used to obtain the old account details corresponding to the pending transaction if no corresponding new accounting template is queried according to the product elements; the fourth acquisition module 406 is used to update the old account details corresponding to the pending transaction according to the replacement subjects obtained by querying in the new subject system mapping template if the subjects included in the old account details corresponding to the pending transaction are queried to obtain replacement subjects, so as to obtain the latest version of the account details corresponding to the pending transaction.
[0084] Figure 7 is a schematic diagram of the structure of the accounting data processing device provided by the seventh embodiment of the present invention. Figure 7 As shown, based on the above embodiments, the accounting data processing device provided by the embodiment of the present invention further includes a fifth obtaining module 407, wherein:
[0085] The fifth obtaining module 407 is used to directly use the old account details corresponding to the pending transaction as the latest version of the account details corresponding to the pending transaction if no replacement account is obtained by querying the account included in the old account details corresponding to the pending transaction in the new account system mapping template.
[0086] Figure 8 is a schematic diagram of the structure of the accounting data processing device provided by the eighth embodiment of the present invention. Figure 8 As shown, based on the above embodiments, the accounting data processing device provided by the embodiment of the present invention further includes an accounting module 408, wherein:
[0087] The accounting module 408 is used to perform accounting through multiple parallel account sets.
[0088] On the basis of the above embodiments, further, the multiple parallel account sets include at least two of the first account set, the second account set and the third account set; wherein, the first account set uses the original accounting template for accounting; the second account set uses the original accounting template and the new accounting template for accounting; the third account set uses the original accounting template, the new accounting template and the new account system mapping template for accounting.
[0089] Fig. 9 is a schematic diagram of the structure of an accounting data processing device provided by a ninth embodiment of the present invention. Fig. 9 As shown, based on the above embodiments, the accounting data processing device provided by the embodiment of the present invention further includes a comparison module 409 and a sending module 410, wherein:
[0090] The comparison module 409 is used to compare the account data of the first account set and the third account set according to the new account system mapping template; the sending module 410 is used to send a prompt message if there are accounts with mismatched account balances.
[0091] The embodiments of the apparatus provided in the embodiments of the present invention can be specifically used to execute the processing flow of the above-mentioned method embodiments, and its functions are not described in detail here, and reference can be made to the detailed description of the above-mentioned method embodiments.
[0092] It should be noted that the method and device for processing accounting data provided in the embodiments of the present invention can be used in the financial field, and can also be used in any technical field other than the financial field. The embodiments of the present invention do not limit the application field of the method and device for processing accounting data.
[0093] Fig.10 is a schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention, such as Fig.10 As shown, the electronic device may include: a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 communicate with each other through the communication bus 1004. The processor 1001 may call the logic instructions in the memory 1003 to execute the following method: receiving a pending transaction, and obtaining a product element according to the transaction data included in the pending transaction; if a corresponding new accounting template is obtained by querying according to the product element, then obtaining the account details corresponding to the transaction data according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset; if a replacement account is obtained by querying in the new account system mapping template according to the account included in the account details corresponding to the transaction data, then updating the account details corresponding to the transaction data according to the replacement account obtained by querying, and obtaining the latest version of the account details corresponding to the pending transaction; wherein the new account system mapping template is preset.
[0094] In addition, the logic instructions in the above-mentioned memory 1003 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0095] The present embodiment discloses a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a pending transaction, and obtaining product elements according to the transaction data included in the pending transaction; if a corresponding new accounting template is obtained by querying according to the product elements, then obtaining the account details corresponding to the transaction data according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset; if a replacement account is obtained by querying in a new account system mapping template according to the account included in the account details corresponding to the transaction data, then updating the account details corresponding to the transaction data according to the replacement account obtained by the query, and obtaining the latest version of the account details corresponding to the pending transaction; wherein the new account system mapping template is preset.
[0096] The present embodiment provides a computer-readable storage medium, which stores a computer program, and the computer program enables the computer to execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a transaction to be processed, and obtaining product elements according to the transaction data included in the transaction to be processed; if a corresponding new accounting template is obtained by querying according to the product elements, then obtaining the account details corresponding to the transaction data according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset; if a replacement account is obtained by querying in a new account system mapping template according to the account included in the account details corresponding to the transaction data, then updating the account details corresponding to the transaction data according to the replacement account obtained by the query, and obtaining the latest version of the account details corresponding to the transaction to be processed; wherein the new account system mapping template is preset.
[0097] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0098] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0099] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0100] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0101] In the description of this specification, the description with reference to the terms "one embodiment", "a specific embodiment", "some embodiments", "for example", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0102] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for processing accounting data, characterized in that: include: Receiving a pending transaction, and obtaining product elements according to transaction data included in the pending transaction; If no corresponding new accounting template is obtained according to the product element, the latest version of the account details corresponding to the pending transaction is determined according to the old account details corresponding to the pending transaction; If a corresponding new accounting template is obtained according to the product element query, the account details corresponding to the transaction data are obtained according to the transaction data and the corresponding new accounting template; wherein the new accounting template is preset; If a replacement account is obtained by querying the account included in the account details corresponding to the transaction data in the new account system mapping template, the account details corresponding to the transaction data are updated according to the replacement account obtained by querying, and the latest version of the account details corresponding to the pending transaction is obtained; wherein the new account system mapping template is preset; If no replacement account is obtained by querying the account details corresponding to the transaction data in the new account system mapping template, the account details corresponding to the transaction data are used as the latest version of the account details corresponding to the pending transaction.
2. The processing method according to claim 1, characterized in that: Also includes: If no corresponding new accounting template is obtained according to the product element, then old account details corresponding to the pending transaction are obtained; If a replacement account is obtained by querying the new account system mapping template according to the account included in the old account details corresponding to the pending transaction, the old account details corresponding to the pending transaction are updated according to the replacement account obtained to obtain the latest version of the account details corresponding to the pending transaction.
3. The processing method according to claim 2, characterized in that: Also includes: If no replacement account is obtained by querying the account included in the old account details corresponding to the pending transaction in the new account system mapping template, the old account details corresponding to the pending transaction are directly used as the latest version of the account details corresponding to the pending transaction.
4. The processing method according to any one of claims 1 to 3, characterized in that: It also includes accounting through multiple parallel sets of accounts.
5. The processing method according to claim 4, characterized in that: The multiple parallel account sets include at least two of the first account set, the second account set and the third account set; wherein the first account set uses the original accounting template for accounting; the second account set uses the original accounting template and the new accounting template for accounting; the third account set uses the original accounting template, the new accounting template and the new account system mapping template for accounting.
6. The processing method according to claim 5, characterized in that: Also includes: Compare the accounting data of the first and third sets of accounts based on the subject; If there are accounts with mismatched account balances, a prompt message will be sent.
7. A device for processing accounting data, characterized in that: include: A receiving module, used for receiving a transaction to be processed, and obtaining product elements according to transaction data included in the transaction to be processed; A fourth obtaining module is used to determine the latest version of the account details corresponding to the pending transaction according to the old account details corresponding to the pending transaction if no corresponding new accounting template is obtained by querying according to the product element; A first obtaining module, configured to obtain the account details corresponding to the transaction data according to the transaction data and the corresponding new accounting template if the corresponding new accounting template is obtained according to the product element query; wherein the new accounting template is preset; A second obtaining module is used for, if a replacement account is obtained by querying the account included in the account details corresponding to the transaction data in the new account system mapping template, updating the account details corresponding to the transaction data according to the replacement account obtained by querying, and obtaining the latest version of the account details corresponding to the pending transaction; wherein the new account system mapping template is preset; The third obtaining module is used to use the account details corresponding to the transaction data as the latest version of the account details corresponding to the pending transaction if no replacement account is obtained by querying the account details corresponding to the transaction data in the new account system mapping template.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. 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 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for processing accounting data according to any one of claims 1 to 6.
Citation Information
Patent Citations
Accounting method, accounting system, account system and payment system
CN111699486A
Data processing method and device based on subjects and auxiliary attributes
CN111797099A