Business accounting method, device and equipment, storage medium and computer program product

By analyzing business transaction requests and generating transaction details, combined with the entry definition template parser for accounting, it solves the problems of strong coupling between accounting and business scenarios and non-visualization of accounting rules in banking business, and improves accounting efficiency.

CN118747685APending Publication Date: 2024-10-08CHINA MERCHANTS BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410779164.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

In the existing technology, banking business accounting is strongly coupled with business scenarios and cannot be reused, and accounting rules cannot be displayed visually, resulting in low accounting efficiency.

Method used

By analyzing the business transaction request, the transaction definition template is obtained, the amount is calculated, and the transaction details are generated. Then the entry definition template parser is used for accounting and the accounting entry details are generated.

Benefits of technology

It improves the efficiency of business accounting and solves the problem of low accounting efficiency caused by the lack of transaction definition templates and entry definition templates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118747685A_ABST
    Figure CN118747685A_ABST
Patent Text Reader

Abstract

The invention discloses a business accounting method, device and equipment, a storage medium and a computer program product, and relates to the technical field of accounting processing, and the method comprises the steps: analyzing a business transaction request obtained in advance to obtain a first transaction definition template corresponding to the business transaction request, and carrying out the amount calculation according to the first transaction definition template, obtaining a transaction detail table; and based on the transaction detail table, performing accounting through a preset entry definition template parser to obtain accounting entry details. Therefore, business accounting is realized, the problem of low accounting efficiency caused by no corresponding transaction definition template and entry definition template for business analysis and accounting is solved, and the business accounting efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of accounting processing, and in particular to a business accounting method, apparatus, device, storage medium and computer program product. Background Art

[0002] With the development of commodity economy, the double-entry bookkeeping method has been widely used. It is a double-entry bookkeeping method that uses the accounting equation as the bookkeeping principle and debit and credit as bookkeeping symbols to reflect the increase and decrease of economic activities.

[0003] In banking business, when recording debits and credits, it is common to assemble accounting entries according to scenario requirements and then complete the accounting. Although this method solves the accounting needs, the accounting is strongly coupled with the business scenario, cannot be reused, and the accounting rules cannot be visualized.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a business accounting method, device, equipment, storage medium and computer program product, aiming to solve the technical problem of low accounting efficiency due to the lack of corresponding transaction definition templates and entry definition templates for parsing and accounting of business.

[0006] To achieve the above objectives, the present application proposes a business accounting method, which includes:

[0007] Analyze the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculate the amount according to the first transaction definition template to obtain a transaction details table;

[0008] Based on the transaction details table, accounting is performed through a preset entry definition template parser to obtain accounting entry details.

[0009] In one embodiment, the step of analyzing the pre-acquired business transaction request to obtain the first transaction definition template corresponding to the business transaction request includes:

[0010] Parsing the business transaction request to obtain a business transaction scenario, and analyzing the business transaction scenario to obtain business elements and account elements;

[0011] Inputting the business elements and account elements into a pre-built transaction definition template parser, wherein the business elements include one or more of a transaction amount, a transaction account, and a transaction code, and the account elements include an account transaction sequence and an account balance;

[0012] According to the business elements and the account elements, template matching is performed by the transaction definition template parser to obtain a first transaction definition template.

[0013] In one embodiment, the step of calculating the amount according to the first transaction definition template to obtain a transaction details table includes:

[0014] According to the account transaction sequence and the account balance, the amount is calculated by using the amount type of the first transaction definition template to obtain the transaction amount;

[0015] A transaction details table is generated based on the transaction amount.

[0016] In one embodiment, the step of performing accounting based on the transaction details table through a preset entry definition template parser to obtain accounting entry details includes:

[0017] Based on the copy code of the transaction details table, the first entry definition template and the transaction record are obtained by parsing through the entry definition template parser, wherein the transaction record includes one or more of an account type and an account source;

[0018] According to the transaction record, accounting is performed using the first entry definition template to obtain an accounting amount;

[0019] Output accounting entry details based on the accounting amount.

[0020] In one embodiment, the step of analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculating the amount according to the first transaction definition template to obtain the transaction details table also includes:

[0021] Analyze the preset transaction process to obtain a transaction scenario corresponding to the transaction process, and define a template according to the transaction scenario to obtain an initial transaction definition template, wherein the initial transaction definition template includes a transaction code and an amount type;

[0022] Perform formula analysis according to the amount type corresponding to the transaction scenario to obtain an amount formula;

[0023] A template is defined based on the amount formula to obtain an entry definition template, and an entry code of the entry definition template is bound to the initial transaction definition template to obtain a transaction definition template.

[0024] In one embodiment, after the step of performing template definition based on the amount formula to obtain an entry definition template and binding the entry code of the entry definition template to the initial transaction definition template to obtain a transaction definition template, the step further includes:

[0025] Parsing the transaction definition template to obtain first template data;

[0026] Parsing the entry definition template to obtain second template data, and sending the first template data and the second template data to a preset template database for storage;

[0027] A back-end interface is created based on the template database, the back-end interface is connected to a pre-set front-end interface, and a template maintenance platform is generated based on the front-end interface, the template database and the back-end interface.

[0028] In addition, to achieve the above purpose, the present application also proposes a business accounting device, the business accounting device comprising:

[0029] A calculation module, used for analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and performing amount calculation according to the first transaction definition template to obtain a transaction details table;

[0030] The accounting module is used to perform accounting based on the transaction details table through a preset entry definition template parser to obtain accounting entry details.

[0031] In addition, to achieve the above objectives, the present application also proposes a business accounting device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the business accounting method described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the business accounting method described above are implemented.

[0033] In addition, to achieve the above objectives, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the business accounting method described above are implemented.

[0034] One or more technical solutions proposed in this application have at least the following technical effects:

[0035] The embodiment of the present application proposes a business accounting method, device, equipment, storage medium and computer program product, which obtains the first transaction definition template corresponding to the business transaction request by analyzing the pre-acquired business transaction request, and calculates the amount according to the first transaction definition template to obtain a transaction detail table; based on the transaction detail table, the preset entry definition template parser is used to perform accounting to obtain accounting entry details. Thus, the pre-acquired business transaction request is analyzed to obtain the corresponding first transaction definition template, and then the amount is calculated by the first transaction definition template to obtain the transaction detail table, and finally the preset entry definition template parser is used to record the transaction detail table to obtain the accounting entry details, which solves the problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates to parse and account for the business, and improves the efficiency of business accounting. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0038] Figure 1 A flowchart of the first embodiment of the business accounting method of this application is provided;

[0039] Figure 2 A flow chart of the second embodiment of the business accounting method of this application;

[0040] Figure 3 A schematic diagram of obtaining a transaction details table for the business accounting method of this application;

[0041] Figure 4 The accounting method for this application business involves a schematic diagram of obtaining the details of accounting entries;

[0042] Figure 5 This is a schematic diagram of the module structure of the business accounting device according to an embodiment of the present application;

[0043] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the business accounting method in the embodiment of the present application.

[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0047] The main solution of the embodiment of the present application is: parsing the business transaction request to obtain the business transaction scenario, and analyzing the business transaction scenario to obtain the business elements and account elements; inputting the business elements and account elements into the pre-built transaction definition template parser, the business elements include one or more of the transaction amount, transaction account and transaction code, and the account elements include the account transaction sequence and account balance; according to the business elements and account elements, the transaction definition template parser performs template matching to obtain the first transaction definition template. According to the account transaction sequence and account balance, the amount is calculated by the amount type of the first transaction definition template to obtain the transaction amount; based on the transaction amount, a transaction detail table is generated. Based on the copy code of the transaction detail table, the entry definition template parser parses to obtain the first entry definition template and transaction record, the transaction record includes one or more of the account type and account source; according to the transaction record, the first entry definition template is used to record the account to obtain the account amount; based on the account amount, the account entry details are output. Analyze the preset transaction process to obtain the transaction scenario corresponding to the transaction process, and define the template according to the transaction scenario to obtain the initial transaction definition template, which includes the transaction code and the amount type; perform formula analysis according to the amount type corresponding to the transaction scenario to obtain the amount formula; define the template based on the amount formula to obtain the entry definition template, and bind the entry code of the entry definition template to the initial transaction definition template to obtain the transaction definition template. Parse the transaction definition template to obtain the first template data; parse the entry definition template to obtain the second template data, and send the first template data and the second template data to the preset template database for storage; create a back-end interface according to the template database, connect the back-end interface to the pre-set front-end interface, and generate a template maintenance platform based on the front-end interface, the template database and the back-end interface.

[0048] Thus, the problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates for parsing and accounting for business is solved, the accounting of business is realized, and the efficiency of business accounting is improved. Based on the scheme of the present invention, a business accounting method is designed based on the problem that the existing technology is strongly coupled with the business scenario, cannot be reused, and the accounting rules cannot be visualized, and the accounting cannot be performed through the flexibly configured transaction definition templates and entry definition templates, thus resulting in low efficiency. The effectiveness of the business accounting method of the present invention is verified when the business is accounted for, and finally the efficiency of business accounting is significantly improved through the method of the present invention.

[0049] In this embodiment, for ease of description, the following description is made with the business accounting device as the execution entity.

[0050] Due to the development of commodity economy, the double-entry bookkeeping method has been widely used. It is a double-entry bookkeeping method that uses the accounting equation as the bookkeeping principle and debit and credit as bookkeeping symbols to reflect the increase and decrease of economic activities. In banking business, there are many cases where accounting entries are assembled according to scenario requirements and then the bookkeeping is completed. Although this method solves the bookkeeping needs, due to the lack of corresponding templates for bookkeeping, it is easy to cause the bookkeeping to be strongly coupled with the business scenario and cannot be reused. In addition, the bookkeeping rules cannot be visualized, and the efficiency will also decrease.

[0051] The present application provides a solution, which analyzes the pre-acquired business transaction request to obtain the transaction definition template to be used, then uses the transaction definition template to calculate the amount to obtain a transaction details table, and finally uses the entry definition template parser to account for the transaction details table to obtain accounting entry details, thereby providing users with better services.

[0052] As can be seen from the above embodiments, the present application obtains the first transaction definition template corresponding to the business transaction request by analyzing the pre-acquired business transaction request, and calculates the amount according to the first transaction definition template to obtain a transaction detail table; based on the transaction detail table, the preset entry definition template parser is used to record the account to obtain the accounting entry details. Thus, the pre-acquired business transaction request is analyzed to obtain the corresponding first transaction definition template, and then the amount is calculated through the first transaction definition template to obtain the transaction detail table, and finally the preset entry definition template parser is used to record the transaction detail table to obtain the accounting entry details, which solves the problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates to parse and record the business, and improves the efficiency of business accounting.

[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a business accounting device, etc. The following takes the business accounting device as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, the present application embodiment provides a business accounting method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the business accounting method of this application.

[0055] In this embodiment, the business accounting method includes steps S07 to S08:

[0056] Step S07, analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculating the amount according to the first transaction definition template to obtain a transaction details table;

[0057] Before the scheme of this embodiment is described, it should be clear that with the development of commodity economy, the double-entry bookkeeping method has been widely used. It is a double-entry bookkeeping method that uses the accounting equation as the bookkeeping principle and debit and credit as bookkeeping symbols to reflect the increase and decrease of economic business.

[0058] In banking business, when recording debits and credits, accounting entries are often assembled according to scenario requirements, and then the accounting is completed. Although this method solves the accounting needs, the accounting is strongly coupled with the business scenario and cannot be reused, and the accounting rules cannot be visualized;

[0059] Therefore, this embodiment uses a business accounting method to first receive a business transaction request. The business transaction request in this embodiment refers to a business transaction request obtained in the business system, which can be obtained in real time, that is, accounting is performed synchronously during the transaction process, or after the transaction is completed, the corresponding business transaction request is retrieved for accounting due to the needs of the business personnel;

[0060] After completing the analysis of the business transaction request, the transaction definition template (first transaction definition template) used by the current transaction request can be known, and then the transaction definition template is used to calculate the amount of the business transaction request to obtain the corresponding transaction details table.

[0061] Step S08, based on the transaction details table, accounting is performed through a preset entry definition template parser to obtain accounting entry details.

[0062] After obtaining the transaction details table of the business transaction request, since the transaction definition is the link between the business and the entry, the obtained transaction details table at least includes the transaction scenario, transaction code and transaction amount. Then, the entry definition template used for this transaction type can be obtained through the transaction code.

[0063] The above-mentioned entry definition template cannot be obtained directly through the transaction code. It is parsed by the entry definition template parser to parse the transaction details table, and then the corresponding accounting can be performed to obtain the final accounting entry details.

[0064] It should be clear that the main means of implementation of this embodiment is through transaction definition templates and entry definition templates. Therefore, in the above step S07, the business transaction request obtained in advance is analyzed to obtain the first transaction definition template corresponding to the business transaction request, and the amount is calculated according to the first transaction definition template. Before the step of obtaining the transaction details table, the steps S01 to S03 are also included:

[0065] Step S01, analyzing a preset transaction process to obtain a transaction scenario corresponding to the transaction process, and performing template definition according to the transaction scenario to obtain an initial transaction definition template, wherein the initial transaction definition template includes a transaction code and an amount type;

[0066] Step S02, performing formula analysis according to the amount type corresponding to the transaction scenario to obtain an amount formula;

[0067] Step S03, performing template definition based on the amount formula to obtain an entry definition template, and binding the entry code of the entry definition template to the initial transaction definition template to obtain a transaction definition template.

[0068] There is a corresponding transaction process for different business scenarios. In this embodiment, the process of debit and credit accounting is used for explanation. The transaction process of the debit and credit accounting scenario is analyzed to obtain the corresponding transaction scenario. Then, the template is defined according to the transaction scenario to obtain the initial transaction definition template. The initial transaction definition template includes the transaction code corresponding to the template and several amount types, such as amount 1 type, amount 2 type, amount 3 type, amount 4 type and amount 5 type. The amount type is an abstraction of the source and destination of funds. For example, issuing principal, recovering principal, overdue principal, recovering interest, arrears of interest, recovering fees, arrears of fees, value-added tax, etc. can all be used as different amount types. Different amount types are given some default common logics;

[0069] After knowing the amount type corresponding to the transaction definition template, you can parse the corresponding formula to get the amount formula corresponding to each amount type, then define the template based on the amount formula to get the entry definition template, and finally bind the entry code of the entry definition template to the initial transaction definition template to get the transaction definition template. In the amount formula, one formula represents an algorithm, which calculates the transaction amount, the amount of account 1 to the amount of account 5, and finally gets the final accounting amount.

[0070] Based on the above scheme, it can be clearly known that the transaction definition template includes: transaction definition table, key fields include: transaction code, entry code (for the parser to obtain matching entry template), amount 1 type, amount 2 type, amount 3 type, amount 4 type and amount 5 type;

[0071] The entry definition template includes: entry definition table, key fields include: entry code, debit and credit direction, account type (determine the specific account according to the type), account source (distinguish existing accounts), newly opened accounts to be synchronized when accounting, and amount formula (a formula represents an algorithm, which is calculated through the transaction amount, account 1 amount to account 5 amount, and these amounts are calculated together).

[0072] After the construction of the transaction definition template and the entry definition template is clear, it is also necessary to provide a corresponding method to implement the maintenance of the template. Therefore, in the above step S03, after the step of defining the template based on the amount formula to obtain the entry definition template and binding the entry code of the entry definition template to the initial transaction definition template to obtain the transaction definition template, the following steps are also included:

[0073] Step S04, parsing the transaction definition template to obtain first template data;

[0074] Step S05, parsing the entry definition template to obtain second template data, and sending the first template data and the second template data to a preset template database for storage;

[0075] Step S06, creating a backend interface according to the template database, connecting the backend interface to a preset frontend interface, and generating a template maintenance platform based on the frontend interface, the template database and the backend interface.

[0076] After obtaining a transaction definition template and an entry definition template corresponding to a transaction process each time, the two are parsed to obtain first template data corresponding to the transaction definition template and second template data corresponding to the entry definition template, and the first template data and the second template data are sent to a pre-built template database for storage;

[0077] Subsequently, a back-end interface is created based on the template database and connected to the front-end interface that can be used to modify the template, thus completing the data transmission. Finally, a template maintenance platform is generated based on the front-end interface, template database and back-end interface for template modification and maintenance.

[0078] This embodiment adopts the above scheme, specifically by analyzing the pre-acquired business transaction request to obtain the first transaction definition template corresponding to the business transaction request, and calculating the amount according to the first transaction definition template to obtain the transaction details table; based on the transaction details table, the preset entry definition template parser is used to record the account to obtain the accounting entry details. Thus, the pre-acquired business transaction request is analyzed to obtain the corresponding first transaction definition template, then the amount is calculated through the first transaction definition template to obtain the transaction details table, and finally the preset entry definition template parser is used to record the transaction details table to obtain the accounting entry details, which solves the problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates to parse and record the business, and improves the efficiency of business accounting.

[0079] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 Step S07, analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, further includes steps S71 to S73:

[0080] Step S071, parsing the business transaction request to obtain a business transaction scenario, and analyzing the business transaction scenario to obtain business elements and account elements;

[0081] Step S072, inputting the business elements and account elements into a pre-built transaction definition template parser, wherein the business elements include one or more of a transaction amount, a transaction account, and a transaction code, and the account elements include an account transaction sequence and an account balance;

[0082] Step S073: performing template matching through the transaction definition template parser according to the business elements and the account elements to obtain a first transaction definition template.

[0083] In the first embodiment, the construction of the transaction definition template and the entry definition template has been described. After receiving the business transaction request, it can be parsed to obtain the business transaction scenario corresponding to the business transaction request. The debit and credit accounting is also used as an example. In the debit and credit accounting scenario, the necessary business elements may include the transaction amount, transaction account, and transaction code, etc., and the account elements include the account transaction sequence and account balance, etc.;

[0084] After the contents of the business elements and account elements are understood, they are input into a pre-built transaction definition template parser, and the transaction definition parser outputs a first transaction definition template, which can be used to calculate a corresponding transaction details table.

[0085] After determining the first transaction definition template to be used, the corresponding amount calculation can be performed. Therefore, step S07, performing amount calculation according to the first transaction definition template to obtain a transaction details table includes:

[0086] Step S074, according to the account transaction sequence and the account balance, the amount is calculated by the amount type of the first transaction definition template to obtain the transaction amount;

[0087] Step S075, generating a transaction details table based on the transaction amount.

[0088] Transaction details record, the most important of which are transaction code, entry code, and various transaction amounts. The transaction code is used to obtain the transaction definition template. Since the first transaction definition template obtained previously has the amount type and entry code, according to the passed in account elements (such as account transaction sequence and account balance), using the amount type on the transaction definition template, the values ​​that should be filled in amount 1, amount 2 to amount 5 can be calculated, that is, the transaction details table.

[0089] How to obtain the transaction details table Figure 3 As shown:

[0090] First, on the business side, you can know the transaction scenarios that occurred (such as loan issuance, loan recovery, interest deduction, fee deduction, etc.), which can be used to determine which transaction template to match, that is, the specific transaction code pointed to;

[0091] Then, according to the transaction code, you can get the specific transaction definition template to be used;

[0092] Then, the business end can calculate the transaction amount of this transaction;

[0093] Then, the transaction definition template specifies the transactions in this transaction scenario and the customer fund accounts that may be involved. Through the input information of the business end, all customer fund accounts of this transaction can be obtained, and then the available balance of the corresponding fund accounts can be obtained. In addition, the business end can also know the order of deducting accounts for such transactions;

[0094] Then, the amount of the customer's account can be allocated according to the transaction amount, the customer's account balance, and the order of the deduction account;

[0095] Finally, generate the transaction record (transaction details table): transaction code (matched according to the specific business scenario), entry code (bound to the transaction template), transaction amount (calculated according to business rules), transaction amount 1 (amount to be deducted from account 1), transaction amount 2 (amount to be deducted from account 2) and transaction amount 3 (advance amount).

[0096] Furthermore, in the first embodiment, in order to obtain the accounting entry details, it is also necessary to perform accounting through the preset entry definition template analysis. Therefore, in step S08 of the first embodiment, based on the transaction details table, the accounting is performed through the preset entry definition template parser, and the step of obtaining the accounting entry details includes:

[0097] Step S081, based on the copy code of the transaction details table, the entry definition template parser parses to obtain a first entry definition template and a transaction record, wherein the transaction record includes one or more of an account type and an account source;

[0098] Step S082, according to the transaction record, accounting is performed through the first entry definition template to obtain the accounting amount;

[0099] Step S083, output accounting entry details based on the accounting amount.

[0100] The transaction details table and the existing accounts associated with the business scenario are passed to the entry definition template parser, and then the entry definition template parser performs the following steps:

[0101] (1) Get the entry template: Read the entry template according to the entry code of the transaction detail record. There are multiple records, each of which is a debit or credit.

[0102] (2) Account confirmation: Each record in the entry template contains two fields: account type and account source. The account type is used to directly associate and obtain the account from the existing account type. If the account type cannot be associated, the account source is checked. The account source is obtained from a fixed configuration or business record table according to pre-set rules, or a new account is generated according to the rules specified by the account source and the account is opened.

[0103] (3) Amount determination: Each record in the entry template contains an amount formula. The transaction amount and account amount 1 to account amount 8 in the incoming transaction detail record are passed to the amount calculation algorithm to obtain the bookkeeping amount of this account.

[0104] Finally, output the accounting entry details based on the calculated accounting amount.

[0105] How to obtain the details of accounting entries Figure 4 As shown:

[0106] First, you can get the entry template in the transaction details table, and loop through the entry template to traverse the entry details one by one. The entry details set the debit and credit direction, the source of the debit and credit account, the debit and credit account type, and the debit and credit amount calculation formula.

[0107] Then, search for specific loan accounts based on the loan account source and account type. There are three types of account sources: customer fund accounts input by business, default accounts in business information, and accounts automatically opened according to accounting rules. If the account source is input by business, match the account by type from the input interface. If the account source is business records, query the account by type from the business table. If the account source is default account opening, obtain accounting subjects and other elements according to the type and complete the account opening according to the default rules.

[0108] Then, according to the debit and credit amount calculation formula, substitute the transaction amount, transaction amount 1, transaction amount 2, and transaction amount 3 on the transaction record into the amount calculation formula to parse the accounting amount of this detail;

[0109] Finally, the transaction details are output based on the accounting amount.

[0110] This embodiment adopts the above scheme, specifically by parsing the business transaction request to obtain the business transaction scenario, and analyzing the business transaction scenario to obtain the business elements and account elements; the business elements and account elements are input into a pre-built transaction definition template parser, the business elements include one or more of the transaction amount, transaction account and transaction code, and the account elements include the account transaction sequence and the account balance; according to the business elements and account elements, the transaction definition template parser performs template matching to obtain the first transaction definition template. The pre-acquired business transaction request is analyzed to obtain the corresponding first transaction definition template, and then the amount is calculated through the first transaction definition template to obtain a transaction details table, and finally the preset entry definition template parser is used to record the transaction details table to obtain the accounting entry details, which solves the problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates to parse and record the business, thereby improving the efficiency of business accounting.

[0111] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the business accounting method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0112] This application also provides a business accounting device, please refer to Figure 5 , the business accounting device comprises:

[0113] A calculation module 10 is used to analyze the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculate the amount according to the first transaction definition template to obtain a transaction details table;

[0114] The accounting module 20 is used to perform accounting based on the transaction details table through a preset entry definition template parser to obtain accounting entry details.

[0115] The business accounting device provided by the present application adopts the business accounting method in the above embodiment, which can solve the technical problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates for parsing and accounting of business. Compared with the prior art, the beneficial effects of the business accounting device provided by the present application are the same as the beneficial effects of the business accounting method provided by the above embodiment, and other technical features in the business accounting device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0116] The present application provides a business accounting device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the business accounting method in the above-mentioned embodiment 1.

[0117] Reference below Figure 6 , which shows a schematic diagram of the structure of a business accounting device suitable for implementing an embodiment of the present application. The business accounting device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The business accounting device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0118] like Figure 6As shown, the business accounting device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the business accounting device to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a business accounting device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.

[0119] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0120] The business accounting device provided by the present application adopts the business accounting method in the above embodiment, which can solve the technical problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates for parsing and accounting of business. Compared with the prior art, the beneficial effects of the business accounting device provided by the present application are the same as the beneficial effects of the business accounting method provided by the above embodiment, and other technical features in the business accounting device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0121] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0122] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0123] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, wherein the computer-readable program instructions are used to execute the business accounting method in the above-mentioned embodiment.

[0124] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0125] The above-mentioned computer-readable storage medium may be included in the business accounting device; or it may exist independently without being assembled into the business accounting device.

[0126] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the business accounting device, the business accounting device: analyzes the pre-acquired business transaction request to obtain the first transaction definition template corresponding to the business transaction request, and calculates the amount according to the first transaction definition template to obtain a transaction details table; based on the transaction details table, performs accounting through a preset entry definition template parser to obtain accounting entry details.

[0127] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0128] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0129] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0130] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned business accounting method, and can solve the technical problem that there is no corresponding transaction definition template and entry definition template to parse and account for the business, resulting in low accounting efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the business accounting method provided by the above-mentioned embodiment, and will not be repeated here.

[0131] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned business accounting method when executed by a processor.

[0132] The computer program product provided by the present application can solve the technical problem of low accounting efficiency caused by the lack of corresponding transaction definition templates and entry definition templates for parsing and accounting of business. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the business accounting method provided by the above embodiment, and will not be elaborated here.

[0133] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A business accounting method, characterized in that: The business accounting method comprises: Analyze the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculate the amount according to the first transaction definition template to obtain a transaction details table; Based on the transaction details table, accounting is performed through a preset entry definition template parser to obtain accounting entry details.

2. The method according to claim 1, characterized in that The step of analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request includes: Parsing the business transaction request to obtain a business transaction scenario, and analyzing the business transaction scenario to obtain business elements and account elements; Inputting the business elements and account elements into a pre-built transaction definition template parser, wherein the business elements include one or more of a transaction amount, a transaction account, and a transaction code, and the account elements include an account transaction sequence and an account balance; According to the business elements and the account elements, template matching is performed by the transaction definition template parser to obtain a first transaction definition template.

3. The method according to claim 2, characterized in that The step of calculating the amount according to the first transaction definition template to obtain a transaction details table includes: According to the account transaction sequence and the account balance, the amount is calculated by using the amount type of the first transaction definition template to obtain the transaction amount; A transaction details table is generated based on the transaction amount.

4. The method according to claim 1, characterized in that The step of performing accounting based on the transaction details table through a preset entry definition template parser to obtain accounting entry details includes: Based on the copy code of the transaction details table, the first entry definition template and the transaction record are obtained by parsing through the entry definition template parser, wherein the transaction record includes one or more of an account type and an account source; According to the transaction record, accounting is performed using the first entry definition template to obtain an accounting amount; Output accounting entry details based on the accounting amount.

5. The method according to claim 1, characterized in that Before the step of analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and calculating the amount according to the first transaction definition template to obtain a transaction details table, the step further includes: Analyze the preset transaction process to obtain a transaction scenario corresponding to the transaction process, and define a template according to the transaction scenario to obtain an initial transaction definition template, wherein the initial transaction definition template includes a transaction code and an amount type; Perform formula analysis according to the amount type corresponding to the transaction scenario to obtain an amount formula; A template is defined based on the amount formula to obtain an entry definition template, and an entry code of the entry definition template is bound to the initial transaction definition template to obtain a transaction definition template.

6. The method according to claim 5, characterized in that After the step of performing template definition based on the amount formula to obtain an entry definition template, and binding the entry code of the entry definition template to the initial transaction definition template to obtain a transaction definition template, the step further includes: Parsing the transaction definition template to obtain first template data; Parsing the entry definition template to obtain second template data, and sending the first template data and the second template data to a preset template database for storage; A back-end interface is created based on the template database, the back-end interface is connected to a pre-set front-end interface, and a template maintenance platform is generated based on the front-end interface, the template database and the back-end interface.

7. A business accounting device, characterized in that: The device comprises: A calculation module, used for analyzing the pre-acquired business transaction request to obtain a first transaction definition template corresponding to the business transaction request, and performing amount calculation according to the first transaction definition template to obtain a transaction details table; The accounting module is used to perform accounting based on the transaction details table through a preset entry definition template parser to obtain accounting entry details.

8. A business accounting device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the business accounting method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the business accounting method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the business accounting method according to any one of claims 1 to 6 are implemented.