Account splitting processing method and device
By determining the policy processing category of the financial transaction log in the accounting split processing and calling the corresponding strategies, the high maintenance cost problem caused by transaction classification errors is solved, and processing efficiency is improved and code maintenance costs are reduced.
Patent Information
- Application Number
- CN202010553032.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-17
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, in accounting splitting processing, the code needs to be changed when there is an error in financial transaction classification, resulting in low operational efficiency and high code maintenance costs.
By obtaining the financial transaction log, determining its corresponding policy processing category, and calling the corresponding accounting split processing strategy for processing, the classification processing of different transaction categories is realized and the whole set of programs is avoided.
Improves the operational efficiency of accounting split processing, reduces code maintenance costs, and only needs to be processed separately for error categories without rewriting programs.
Smart Images

Figure CN111738814B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an account splitting processing method and device. Background Art
[0002] At present, when banks conduct financial transactions, they will record the financial transaction log table information, which includes transaction amount, account number, serial number, counterparty account number, currency and other related elements. Financial transactions involve changes in balances. Banks adopt the post-bookkeeping method and implement financial transaction logs to only record the relevant elements of financial transactions. The whole set of accounting entries will be split in batches at night. The system only records the current transaction information in the online transaction log table and does not generate a complete set of accounting entry information for the transaction. The account splitting process is the link to generate a full set of transaction entry information based on the online transaction log information and related parameters.
[0003] In the prior art, when splitting accounts, it is generally processed through a pipeline, that is, a program composed of multiple codes is used to split the financial transaction log table information, and then a full set of transaction entry information is generated.
[0004] The inventors found that the prior art has at least the following problems:
[0005] The existing technology uses one program through one flow to perform account splitting processing. If a financial transaction classification error occurs during the processing, which leads to errors in subsequent account splitting processing operations, it is necessary to change the code and rewrite the program to handle it, which has low operating efficiency and high code maintenance costs. Summary of the invention
[0006] The embodiment of the present invention provides an account splitting processing method for improving operation efficiency and reducing code maintenance costs. The method includes:
[0007] Obtain a log of pending financial transactions;
[0008] Determine a policy processing category corresponding to the financial transaction log to be processed, each of the policy processing categories corresponding to an account splitting processing policy;
[0009] Determine the policy processing categories for the financial transaction logs to be processed, including:
[0010] Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log;
[0011] Determining a policy processing category of a financial transaction log to be processed according to the transaction code attribute;
[0012] If the transaction code corresponds to a special financial transaction category, the transaction code attribute of the to-be-processed financial transaction log is determined through a pre-configured transaction code classification control table, and then the policy processing category of the to-be-processed financial transaction log is determined;
[0013] The policy processing categories include: transfer, unilateral, product transfer, provision, and transfer accounting; among them, the classification of transfer transactions comes from the financial transaction parameter attribute table, the transfer-in and transfer-out accounts of transfer transactions are both entity accounts, and the entries come from the entries defined at the product level; for the entries of intermediate bridging, it is determined whether it involves exchange. If it involves exchange, it comes from the exchange account, otherwise it comes from the general intermediate bridging account; one party of the unilateral transaction is a physical account and the other party is a virtual account within the bank. If the unilateral transaction involves exchange, two additional entries of the currency exchange account are split out on the basis of the transfer transaction entries; the account side accounting and counterparty accounting of provision transactions are both derived from parameter configuration; the account side accounting and counterparty accounting of transfer accounting transactions are both derived from the assignment of transaction logs;
[0014] The account splitting processing strategy corresponding to the policy processing category of the financial transaction log to be processed is called to process the financial transaction log to be processed, including: processing the financial transaction log of the transfer transaction:
[0015] Call the general assignment process of the financial transaction log to the general ledger amount record, and call the account side entry method to split the first entry of the financial transaction log:
[0016] Call the general assignment process of the financial transaction log to the general ledger amount record, and call the counterparty entry method to split the second entry of the financial transaction log, completing the splitting process of the financial transaction log of the transfer transaction;
[0017] If cross-currency issues are involved in the exchange business of transfer transactions, they will be processed according to pre-configured strategies; after the processing is completed, the processing results will be stored in the database and marked to indicate that the transaction has been processed.
[0018] Optionally, before obtaining the financial transaction log to be processed, the method further includes:
[0019] Configure different accounting splitting processing strategies for different policy processing categories.
[0020] The embodiment of the present invention further provides an account splitting processing device for improving operation efficiency and reducing code maintenance costs. The device includes:
[0021] A transaction log acquisition module, used to acquire financial transaction logs to be processed;
[0022] A policy processing category determination module, used to determine the policy processing category corresponding to the financial transaction log to be processed, each of which corresponds to an account splitting processing policy;
[0023] The policy processing category determination module is further used to:
[0024] Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log;
[0025] Determining a policy processing category of a financial transaction log to be processed according to the transaction code attribute;
[0026] If the transaction code corresponds to a special financial transaction category, the transaction code attribute of the to-be-processed financial transaction log is determined through a pre-configured transaction code classification control table, and then the policy processing category of the to-be-processed financial transaction log is determined;
[0027] The policy processing categories include: transfer, unilateral, product transfer, provision, and transfer accounting; among them, the classification of transfer transactions comes from the financial transaction parameter attribute table, the transfer-in and transfer-out accounts of transfer transactions are both entity accounts, and the entries come from the entries defined at the product level; for the entries of intermediate bridging, it is determined whether it involves exchange. If it involves exchange, it comes from the exchange account, otherwise it comes from the general intermediate bridging account; one party of the unilateral transaction is a physical account and the other party is a virtual account within the bank. If the unilateral transaction involves exchange, two additional entries of the currency exchange account are split out on the basis of the transfer transaction entries; the account side accounting and counterparty accounting of provision transactions are both derived from parameter configuration; the account side accounting and counterparty accounting of transfer accounting transactions are both derived from the assignment of transaction logs;
[0028] An account splitting processing module is used to call the account splitting processing strategy corresponding to the strategy processing category of the financial transaction log to be processed, and process the financial transaction log to be processed;
[0029] The account splitting processing module is further used to process the financial transaction logs of transfer transactions:
[0030] Call the general assignment process of the financial transaction log to the general ledger amount record, and call the account side entry method to split the first entry of the financial transaction log:
[0031] Call the general assignment process of the financial transaction log to the general ledger amount record, and call the counterparty entry method to split the second entry of the financial transaction log, completing the splitting process of the financial transaction log of the transfer transaction;
[0032] If cross-currency issues are involved in the exchange business of transfer transactions, they will be processed according to pre-configured strategies; after the processing is completed, the processing results will be stored in the database and marked to indicate that the transaction has been processed.
[0033] Optionally, the device further comprises:
[0034] The policy configuration module is used to configure different account splitting processing strategies for different policy processing categories.
[0035] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above method when executing the computer program.
[0036] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.
[0037] In the embodiment of the present invention, by obtaining a financial transaction log to be processed; determining the policy processing category corresponding to the financial transaction log to be processed, each policy processing category corresponds to an account splitting processing policy; calling the account splitting processing policy corresponding to the policy processing category of the financial transaction log to be processed, and processing the financial transaction log to be processed, the classification of financial transactions is realized, and each policy processing category corresponds to an account splitting processing policy. In this way, if an error in the classification of financial transactions occurs during the subsequent account splitting processing, it is only necessary to process the occurring class separately without rewriting the entire program, the operation efficiency is high, and the code maintenance cost is low. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] 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:
[0039] Figure 1 Flow chart of the method for processing account splitting in an embodiment of the present invention;
[0040] Figure 2 Another flow chart of the method for processing account splitting in an embodiment of the present invention;
[0041] Figure 3 It is a structural schematic diagram of an account splitting processing device in an embodiment of the present invention;
[0042] Figure 4 It is another structural schematic diagram of the account splitting processing device in the embodiment of the present invention;
[0043] Figure 5 It is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0044] To make the purpose, technical solution 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 exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.
[0045] The names involved in the present invention are explained below:
[0046] Financial transactions: transactions involving changes in account balances, which can be generated by online transactions or batch processing. Financial transactions will record financial transaction log table information, which includes transaction amount, account number, serial number, counterparty account number, currency and other related elements.
[0047] Account splitting: During online transactions, the system only records the current transaction information in the online transaction log table, and does not generate a complete set of accounting entry information for the transaction. Account splitting is the process of generating a complete set of transaction entry information based on the online transaction log information and related parameters.
[0048] Figure 1 A flowchart of an account splitting processing method provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0049] Step 101: Obtain a financial transaction log to be processed.
[0050] Step 102: Determine the policy processing category corresponding to the financial transaction log to be processed, each of the policy processing categories corresponding to an account splitting processing strategy.
[0051] In specific implementation, step 102 includes:
[0052] Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log;
[0053] A policy processing category of the financial transaction log to be processed is determined according to the transaction code attribute.
[0054] During this process, some transaction codes correspond to special financial transaction categories (for example, in the exchange business of transfer transactions, cross-currency issues are involved). If such special financial transaction categories are encountered, it is necessary to determine the transaction code attributes of the financial transaction log to be processed through the pre-configured transaction code classification control table, and then determine the policy processing category of the financial transaction log to be processed.
[0055] In this embodiment, the policy processing categories include: transfer category, unilateral category, product transfer category, provision category, and accounting transfer category.
[0056] Among them, for transfer transactions, their classification comes from the financial transaction parameter attribute table, their transfer-in and transfer-out accounts are both entity accounts, and the entries come from the entries defined at the product level. For the intermediate bridging entries, it is determined based on whether they involve exchange. If they involve exchange, they come from the exchange account, otherwise they come from the general intermediate bridging account.
[0057] For unilateral transactions, one party is a physical account and the other party is a virtual account within the bank. The splitting rules are similar to those for transfers. However, if exchange is involved, two additional entries for currency exchange accounts need to be split out.
[0058] For product transfer transactions, no specific entries are involved.
[0059] For provision transactions, both the account-side accounting and the counterparty-side accounting are derived from parameter configuration.
[0060] For transfer settlement transactions, the account settlement and counterparty settlement are both derived from the assignment of transaction logs.
[0061] For example, the account splitting processing strategy may include: obtaining account party accounting, obtaining counterparty accounting, obtaining exchange account accounting, additional special processing, etc. When applied specifically, it can be called accordingly according to the specific strategy processing category.
[0062] Step 103: Call the account splitting processing strategy corresponding to the strategy processing category of the financial transaction log to be processed to process the financial transaction log to be processed.
[0063] In specific implementation, taking transfer transactions as an example, when processing the financial transaction logs of transfer transactions:
[0064] Call the general assignment process of the financial transaction log to the general ledger amount record, and call the account side entry method to split the first entry of the financial transaction log:
[0065] The general assignment process of the financial transaction log to the general ledger amount record is called, and the counterparty entry method is called to split the second entry of the financial transaction log, thereby completing the splitting process of the financial transaction log of the transfer transaction.
[0066] If there are special circumstances during this process, for example, cross-currency issues are involved in the exchange business of transfer transactions, they will be handled according to pre-configured strategies.
[0067] After the processing is completed, the processing results can be stored in the database and marked to indicate that the transaction has been processed.
[0068] In order to ensure the smooth progress of subsequent account splitting, Figure 2 As shown, before obtaining the financial transaction log to be processed, the method further includes:
[0069] Step 201: configure different account splitting processing strategies for different strategy processing categories.
[0070] As can be seen from the above, the account splitting processing method provided by the embodiment of the present invention obtains the financial transaction log to be processed; determines the policy processing category corresponding to the financial transaction log to be processed, each policy processing category corresponds to an account splitting processing strategy; calls the account splitting processing strategy corresponding to the policy processing category of the financial transaction log to be processed, and processes the financial transaction log to be processed, thereby realizing the classification of financial transactions, and making each policy processing category correspond to an account splitting processing strategy. In this way, if a financial transaction classification error occurs in the subsequent account splitting processing process, it only needs to be processed separately for the occurring class, without rewriting the entire program, the operation efficiency is high, and the code maintenance cost is low.
[0071] Based on the same inventive concept, an account splitting processing device is also provided in the embodiments of the present invention, as described in the following embodiments. Since the principle of solving the problem by the account splitting processing device is similar to that of the account splitting processing method, the implementation of the account splitting processing device can refer to the implementation of the account splitting processing method, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements the predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0072] Figure 3 A schematic diagram of a structure of an account splitting processing device provided by an embodiment of the present invention, such as Figure 3 As shown, the device comprises:
[0073] The transaction log acquisition module 301 is used to acquire the financial transaction log to be processed;
[0074] A policy processing category determination module 302 is used to determine the policy processing category corresponding to the financial transaction log to be processed, each of which corresponds to an account splitting processing policy;
[0075] The account splitting processing module 303 is used to call the account splitting processing policy corresponding to the policy processing category of the financial transaction log to be processed, and process the financial transaction log to be processed.
[0076] In the embodiment of the present invention, the policy processing category determination module 302 is further used to:
[0077] Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log;
[0078] A policy processing category of the financial transaction log to be processed is determined according to the transaction code attribute.
[0079] In the embodiment of the present invention, Figure 4 As shown, the device also includes:
[0080] The policy configuration module 401 is used to configure different account splitting processing policies for different policy processing categories.
[0081] In the embodiment of the present invention, the policy processing categories include: transfer category, unilateral category, product transfer category, provision category, and transfer accounting category.
[0082] In order to achieve the above object, according to another aspect of the present application, a computer device is also provided. Figure 5 As shown, the computer device includes a memory, a processor, a communication interface and a communication bus. A computer program that can be executed on the processor is stored in the memory. When the processor executes the computer program, the steps in the above-mentioned embodiment method are implemented.
[0083] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0084] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer executable programs and units, such as the corresponding program units in the above method embodiments of the present invention. The processor executes various functional applications of the processor and works data processing by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiments.
[0085] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0086] The one or more units are stored in the memory, and when executed by the processor, the method in the above embodiment is performed.
[0087] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method.
[0088] In summary, the present invention obtains the financial transaction log to be processed; determines the policy processing category corresponding to the financial transaction log to be processed, each policy processing category corresponds to an account splitting processing strategy; calls the account splitting processing strategy corresponding to the policy processing category of the financial transaction log to be processed, and processes the financial transaction log to be processed, thereby realizing the classification of financial transactions, and making each policy processing category correspond to an account splitting processing strategy. In this way, if an error in the classification of financial transactions occurs during the subsequent account splitting processing, it is only necessary to process the occurring class separately without rewriting the entire program, so the operation efficiency is high and the code maintenance cost is low.
[0089] 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.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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 account splitting, characterized in that: include: Obtain a log of pending financial transactions; Determine a policy processing category corresponding to the financial transaction log to be processed, each of the policy processing categories corresponding to an account splitting processing policy; Determine the policy processing categories for the financial transaction logs to be processed, including: Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log; Determining a policy processing category of a financial transaction log to be processed according to the transaction code attribute; If the transaction code corresponds to a special financial transaction category, the transaction code attribute of the financial transaction log to be processed is determined through the pre-configured transaction code classification control table, and then the policy processing category of the financial transaction log to be processed is determined; the policy processing categories include: transfer category, unilateral category, product transfer category, provision category, and transfer accounting category; among them, the classification of transfer transactions comes from the financial transaction parameter attribute table, the transfer-in and transfer-out accounts of transfer transactions are both entity accounts, and the entries come from the entries defined at the product level; for the intermediate bridging entries, it is determined based on whether it involves exchange. If it involves exchange, it comes from the exchange account, otherwise it comes from the general intermediate bridging account; one party of the unilateral transaction is a physical account and the other party is a virtual account within the bank. If the unilateral transaction involves exchange, two additional currency exchange account entries are split on the basis of the transfer transaction entries; the account side accounting and counterparty accounting of the provision transaction are both derived from the parameter configuration; the account side accounting and counterparty accounting of the transfer accounting transaction are both derived from the assignment of the transaction log; The account splitting processing strategy corresponding to the policy processing category of the financial transaction log to be processed is called to process the financial transaction log to be processed, including: processing the financial transaction log of the transfer transaction: Call the general assignment process of the financial transaction log to the general ledger amount record, and call the account side entry method to split the first entry of the financial transaction log: Call the general assignment process of the financial transaction log to the general ledger amount record, and call the counterparty entry method to split the second entry of the financial transaction log, completing the splitting process of the financial transaction log of the transfer transaction; If cross-currency issues are involved in the exchange business of transfer transactions, they will be processed according to pre-configured strategies; after the processing is completed, the processing results will be stored in the database and marked to indicate that the transaction has been processed.
2. The method according to claim 1, characterized in that Before obtaining the financial transaction log to be processed, the method further includes: Configure different accounting splitting processing strategies for different policy processing categories.
3. An account splitting processing device, characterized in that: include: A transaction log acquisition module, used to acquire financial transaction logs to be processed; A policy processing category determination module, used to determine the policy processing category corresponding to the financial transaction log to be processed, each of which corresponds to an account splitting processing policy; The policy processing category determination module is further used to: Obtaining a transaction code attribute of a pending financial transaction according to a pending financial transaction log; Determining a policy processing category of a financial transaction log to be processed according to the transaction code attribute; If the transaction code corresponds to a special financial transaction category, the transaction code attribute of the to-be-processed financial transaction log is determined through a pre-configured transaction code classification control table, and then the policy processing category of the to-be-processed financial transaction log is determined; The policy processing categories include: transfer, unilateral, product transfer, provision, and transfer accounting; among them, the classification of transfer transactions comes from the financial transaction parameter attribute table, the transfer-in and transfer-out accounts of transfer transactions are both entity accounts, and the entries come from the entries defined at the product level; for the entries of intermediate bridging, it is determined whether it involves exchange. If it involves exchange, it comes from the exchange account, otherwise it comes from the general intermediate bridging account; one party of the unilateral transaction is a physical account and the other party is a virtual account within the bank. If the unilateral transaction involves exchange, two additional entries of the currency exchange account are split out on the basis of the transfer transaction entries; the account side accounting and counterparty accounting of provision transactions are both derived from parameter configuration; the account side accounting and counterparty accounting of transfer accounting transactions are both derived from the assignment of transaction logs; An account splitting processing module is used to call the account splitting processing strategy corresponding to the strategy processing category of the financial transaction log to be processed, and process the financial transaction log to be processed; The account splitting processing module is further used to process the financial transaction logs of transfer transactions: Call the general assignment process of the financial transaction log to the general ledger amount record, and call the account side entry method to split the first entry of the financial transaction log: Call the general assignment process of the financial transaction log to the general ledger amount record, and call the counterparty entry method to split the second entry of the financial transaction log, completing the splitting process of the financial transaction log of the transfer transaction; If cross-currency issues are involved in the exchange business of transfer transactions, they will be processed according to pre-configured strategies; after the processing is completed, the processing results will be stored in the database and marked to indicate that the transaction has been processed.
4. The device according to claim 3, characterized in that The device also includes: The policy configuration module is used to configure different account splitting processing strategies for different policy processing categories.
5. A computer 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 method according to any one of claims 1 to 2 is implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
