Method, device, electronic device and medium for automatically generating accounting entries

By calling the accounting engine's interface and matching accounting auxiliary codes, the problem that accounting engines in the prior art is difficult to adapt to multiple scenarios, realizing the automatic generation of accounting entries and the seamless connection between business systems and accounting processing.

CN112488814BActive Publication Date: 2025-02-07CCB FINTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011237198.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-09
Publication Date
2025-02-07
Estimated Expiration
2040-11-09

AI Technical Summary

Technical Problem

It is difficult to design an accounting engine with a simple structure but can adapt to multiple scenarios to realize the automatic generation of scenario rules configuration and accounting entries.

Method used

By calling the accounting engine interface, the accounting auxiliary code corresponding to the transaction is matched in the accounting auxiliary setting table according to the interface field combination, and the entry information is determined in the accounting entries setting table, and the value in the entry information is replaced with accounting The value of the specified field in the engine's interface is obtained to obtain an accounting entry.

Benefits of technology

It realizes automatic generation of accounting entries, simplifies the connection between business systems and accounting processing, simple and convenient porting and deployment, and can flexibly expand functions according to management needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112488814B_ABST
    Figure CN112488814B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, electronic device and medium for automatically generating accounting entries, the method comprising: calling an interface of an accounting engine, the interface of the accounting engine comprising multiple fields; matching an accounting auxiliary code corresponding to a transaction in an accounting auxiliary setting table according to a field combination of the interface, the accounting auxiliary setting table comprising multiple accounting auxiliary codes, each accounting auxiliary code matching a specified field combination; determining entry information in an accounting entry setting table according to the matched accounting auxiliary code; replacing the value in the entry information with the value of a specified field in the interface of the accounting engine, to obtain an accounting entry. The method realizes the automatic generation of accounting entries based on the interface of the accounting engine, the accounting auxiliary setting table and the accounting entry setting table, can organically connect the business system and the accounting processing, is not only simple and convenient to transplant and deploy, but also can flexibly expand functions from various dimensions according to management needs.
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 engines, and more specifically, to a method, device, electronic device, and medium for automatically generating accounting entries. Background Art

[0002] The high degree of integration between business and finance has always been an important research topic that everyone in the field of business financial management pays great attention to and expects to be solved. The connection between information systems is the foundation for us to build business and financial integration. More often, the consistency of business and finance is caused by human factors. One situation is that the accounting system retains the entrance for direct data entry or there is a pre-entry entrance, resulting in the direct entry of business vouchers without support; or there is a ledger entrance for data; the most complicated situation is the front end of the chain, that is, the business system is not systematized from the source, and there is a link for manual data entry. In addition, any situation in the entire chain that allows data to be modified manually will lead to the destruction of business and financial consistency. Although it is difficult for us to rely on a single tool or means to completely solve the problem of high integration and consistency of business and finance, some tools can help us improve it from a certain link, and accounting engine is one of them.

[0003] The accounting engine is an important part of automated accounting processing. It can be simply understood as a translator that converts business system language into financial language. It obtains business system data from the business system and converts it into accounting voucher information, that is, automatically generates accounting entries, thereby realizing automatic accounting. In the process of building an accounting engine, the most important point is to systematize all scenarios that need to be translated from business language to financial language. Through scenario combing, conversion rules can be defined for each type of business scenario that requires the generation of accounting vouchers. It seems that this is a basic requirement for an accounting engine, but in practice, it is relatively difficult to achieve comprehensive and complete scenario combing. Of course, this kind of scenario combing depends on the accumulation of experience. If we cannot comb it clearly at one time, we must consider how to retain sufficient flexibility in the design process of the accounting engine, allowing us to quickly and flexibly configure and add scenario rules, thereby reducing the disadvantages caused by the complexity of scenario combing.

[0004] The technical problem to be solved by the present invention is to design and implement an accounting engine with a simple structure but adaptable to a variety of scenarios, and to realize the automatic generation of scenario rule configuration and accounting entries. Summary of the invention

[0005] In view of the shortcomings of the existing methods, the present application proposes a method, device, electronic device and medium for automatically generating accounting entries to solve at least one of the above-mentioned technical problems.

[0006] In a first aspect, an embodiment of the present application provides a method for automatically generating accounting entries, comprising: calling an interface of an accounting engine, wherein the interface of the accounting engine includes multiple fields; matching an accounting auxiliary code corresponding to the transaction in an accounting auxiliary setting table according to a field combination of the interface, wherein the accounting auxiliary setting table includes multiple accounting auxiliary codes, and each accounting auxiliary code matches a specified field combination; determining entry information in the accounting entry setting table according to the matched accounting auxiliary code; replacing the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry.

[0007] In one embodiment of the present application, the interface of the accounting engine includes multiple static fields and multiple dynamic fields, the static fields are used to characterize a first attribute of the transaction, and the dynamic fields are used to characterize a second attribute of the transaction.

[0008] In one embodiment of the present application, static fields include tenant number, account book name, business type, business number, business source, summary, business date and accounting date; dynamic fields include organization, currency, amount and elements, where elements are used to characterize sub-business types.

[0009] In one embodiment of the present application, the value of the static field is preset by the caller, and the value of the dynamic field is obtained based on the accounting standards of the caller's business.

[0010] In one embodiment of the present application, the field combination includes at least one element in a dynamic field and an element in a dynamic field.

[0011] In one embodiment of the present application, the field combination includes at least the tenant number, account book name, business source and business type in the static fields, and the elements in the dynamic fields.

[0012] In one embodiment of the present application, the entry information includes a tenant number, an account book name, a debit and credit identifier, an account number, an organization field, a currency field, and an amount field; the value in the entry information is replaced with the value of a specified field in the interface of the accounting engine to obtain an accounting entry, including: replacing the value of the organization field, the value of the currency field, and the value of the amount field in the entry information with the value of the organization, the value of the currency, and the value of the amount in the dynamic field of the accounting engine, respectively, to obtain an accounting entry.

[0013] In the second aspect, an embodiment of the present application provides a device for automatically generating accounting entries, and the device for automatically generating accounting entries includes an interface calling module, an accounting auxiliary code module, and an accounting entry module; the interface calling module is used to call the interface of the accounting engine, wherein the interface of the accounting engine includes multiple fields; the accounting auxiliary code module is used for the accounting engine to match the accounting auxiliary code corresponding to the transaction in the accounting auxiliary setting table according to a field combination of the interface, wherein the accounting auxiliary setting table includes multiple accounting auxiliary codes, and each accounting auxiliary code matches a specified field combination; the accounting entry module is used to determine the entry information in the accounting entry setting table according to the matched accounting auxiliary code, and replace the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry.

[0014] In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor, wherein the processor is communicatively connected to the memory; the memory stores a computer program, and when the computer program is executed by the processor, the above-mentioned method of automatically generating accounting entries is implemented.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method of automatically generating accounting entries is implemented.

[0016] The technical solution provided in the embodiments of the present application has at least the following beneficial effects:

[0017] The method and device for automatically generating accounting entries provided in the embodiments of the present application start from the core principles of the accounting engine, and realize the automatic generation of accounting entries based on the interface of the accounting engine, the accounting auxiliary setting table, and the accounting entry setting table. It can organically connect the business system and accounting processing, which is not only simple and convenient to transplant and deploy, but also can flexibly expand functions from various dimensions according to management needs.

[0018] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 Generate accounting entries for existing accounting engine-based flowcharts;

[0021] Figure 2 A flowchart of a method for automatically generating accounting entries in this application;

[0022] Figure 3 A schematic diagram of a module of a device for automatically generating accounting entries in the present application;

[0023] Figure 4 A schematic diagram of a module of an electronic device provided in this application. DETAILED DESCRIPTION

[0024] The present application is described in detail below, and examples of embodiments of the present application are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar components or components with the same or similar functions. In addition, if the detailed description of the known technology is unnecessary for the features of the present application shown, it will be omitted. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0025] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0026] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0027] First, a brief explanation of the terms involved in the embodiments of the present application is given:

[0028] Accounting Entry: English name Accounting Entry, also known as "accounting formula", abbreviated as "entry", it is a record of the corresponding two parties' accounts and their amounts for each economic transaction based on the requirements of the double-entry bookkeeping principle.

[0029] Accounting engine, whose English name is Accounting Engine, is a step or mechanism for automatically generating accounting entries.

[0030] Figure 1 The existing process of generating accounting entries based on accounting engines is shown. Accounting engines on the market are relatively rare and are mainly used in medium and large enterprises. Because enterprises have fine division of labor, independent business systems and financial systems, many business scenarios that require accounting, and complex accounting entries, they borrow ideas from foreign products to independently develop accounting systems, or directly purchase mature large-scale financial management software on the market, such as UFIDA's NC system. Although this type of accounting engine has powerful functions, on the one hand, it is closely integrated with the entire financial management system and cannot be separated and used flexibly. On the other hand, it involves many database tables and fields, and various configuration relationships are complex, requiring professional personnel guidance and training before it can be used.

[0031] A method for automatically generating accounting entries provided in an embodiment of the present application starts from the core principle of an accounting engine and realizes the automatic generation of accounting entries with two simple configuration tables and one interface table. It can organically connect the business system and accounting processing. It is not only simple and convenient to transplant and deploy, but also can flexibly expand functions from various dimensions according to management needs.

[0032] Figure 2 1 is a flowchart of a method for automatically generating accounting entries provided by an embodiment of the present application, and the method for automatically generating accounting entries comprises the following steps:

[0033] S110: Call the accounting engine interface.

[0034] It should be noted that the interface of the accounting engine may include multiple fields. In one embodiment of the present application, the interface of the accounting engine includes multiple static fields and multiple dynamic fields, the static fields are used to characterize the first attribute of the transaction, and the dynamic fields are used to characterize the second attribute of the transaction.

[0035] In one embodiment of the present application, static fields include tenant number, account book name, business type, business number, business source, summary, business date and accounting date; dynamic fields include organization, currency, amount and elements, where elements are used to characterize sub-business types.

[0036] In one embodiment of the present application, the value of the static field is preset by the caller, and the value of the dynamic field is obtained based on the accounting standards of the caller's business.

[0037] The multiple fields included in the interface of the accounting engine can be recorded in the form of an interface table. The structure of the interface table is shown in Table 1.

[0038]

[0039] Table 1

[0040] The functions and / or meanings of the multiple fields included in the accounting engine interface are explained below.

[0041] Tenant number: To meet the needs of multi-tenancy, it is pre-set by both parties.

[0042] Account book name: It is set by the caller and is applied to the general ledger system or module docking scenario to meet the situation of multiple account books in a company.

[0043] Business type: determined and set by the caller to distinguish different businesses, such as deposit business, loan business, etc.

[0044] Business number: determined and set by the caller to distinguish different transactions of the same type.

[0045] Business source: determined and set by the caller to distinguish different business systems, such as procurement system, purchase and sales system, etc.

[0046] Summary: Determined and set by the caller to describe the transaction.

[0047] Business Date: Determined and set by the caller, that is, the date when the accounting engine is called.

[0048] Accounting Date: Determined and set by the caller, the date on which the transaction needs to be recorded, required when connecting to the general ledger system.

[0049] Institution: Map or List structure, Key-Value pair list, multiple can be set, suitable for business scenarios where accounting is done between different institutions and accounts are subsequently cleared, determined based on the accounting standards of the caller's business.

[0050] Currency: Map or List structure, Key-Value pair list, multiple can be set, suitable for conversion between currencies or when a business involves multiple currencies, determined according to the accounting standards of the caller's business.

[0051] Amount: Map or List structure, Key-Value pair list, multiple amounts can be set. It is applicable to situations where a business involves multiple amounts, and is determined based on the accounting standards of the caller for the business.

[0052] Elements: Map or List structure, Key-Value pair list, multiple elements can be set, used for the same business type to generate different accounting entries according to different elements. For example: two deposit businesses, their business types are the same, one is a time deposit, the other is a demand deposit, time deposits and demand deposits are sub-business types under the deposit business. It can be understood that the accounting engine can distinguish different sub-business types under the same business type based on elements, so as to select the correct accounting entry.

[0053] In step S110, the business information required for generating a set of accounting entries is obtained through an interface, and then the relevant information of the set of accounting entries is automatically generated according to subsequent steps.

[0054] S120: Match the accounting auxiliary code corresponding to the transaction in the accounting auxiliary setting table according to a field combination of the interface.

[0055] It should be noted that the accounting auxiliary setting table includes multiple accounting auxiliary codes, and each accounting auxiliary code matches a specified field combination.

[0056] In one embodiment of the present application, the field combination includes at least one element in a dynamic field and an element in a dynamic field. For example, the field combination includes at least a tenant number, account book name, business source and business type in a static field and an element in a dynamic field.

[0057] The accounting auxiliary setting table can distinguish various entry business scenarios, so that the only set of accounting entries can be automatically located. The structure of the accounting auxiliary setting table is shown in Table 2.

[0058]

[0059] Table 2

[0060] The functions and / or meanings of the multiple fields in the accounting auxiliary settings table are explained below.

[0061] Tenant ID: To meet the needs of multi-tenancy, it needs to be set to the same value as the corresponding field in the interface table.

[0062] Account Book Name: To meet the situation where a company has multiple account books, it needs to be set to the same value as the corresponding field in the interface table.

[0063] Accounting auxiliary code: This is the most critical field in the table. It is unique and different business scenarios have different accounting auxiliary code values.

[0064] Auxiliary explanation: The fields used for management queries are descriptions of business scenarios.

[0065] Business source: used to distinguish different business systems, and needs to be set to the same value as the corresponding field in the interface table.

[0066] Business type: used to distinguish different businesses, and needs to be set to the same value as the corresponding field in the interface table.

[0067] Element name, element value: corresponds to the element list in the interface table, and the Key and Value values ​​in the column are flattened.

[0068] S130: Determine the entry information in the accounting entry setting table according to the matched accounting auxiliary code.

[0069] It can be understood that the accounting entry setting table includes the accounting auxiliary code, and the information related to the matched accounting auxiliary code is used as the entry information in the accounting entry setting table. The structure of the accounting entry setting table is shown in Figure 3.

[0070]

[0071] Table 3

[0072] The following explains the functions and / or meanings of the multiple fields in the accounting entry setup table.

[0073] Tenant ID: To meet the needs of multi-tenancy, it needs to be set to the same value as the corresponding field in the interface table.

[0074] Account Book Name: To meet the situation of multiple account books for a company, it needs to be set to the same value as the corresponding field in the interface table.

[0075] Accounting auxiliary code: determines a unique accounting business scenario, which is consistent with the accounting auxiliary code in the accounting auxiliary setting table.

[0076] Organization field: The organization field value required for this entry. The set value must be in the organization list passed in from the interface table.

[0077] Currency field: The currency field value that needs to be obtained for this entry. The set value must be in the currency list passed in from the interface table.

[0078] Amount field: The amount field value required for this entry. The set value must be in the amount list passed in from the interface table.

[0079] Account number: The account number of this entry is determined by the accounting standards and account system of the caller.

[0080] Debit / credit sign: The debit / credit direction of the entry is determined by the accounting standards and account system of the caller.

[0081] S140: Replace the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry.

[0082] Optionally, step S140 may include: replacing the value of the organization field, the value of the currency field, and the value of the amount field in the entry information with the value of the organization, the value of the currency, and the value of the amount in the dynamic field of the accounting engine, respectively, to obtain an accounting entry.

[0083] Based on the method for automatically generating accounting entries provided by the present invention, the accounting engine can handle multiple complex businesses such as multiple tenants, multiple books, multiple institutions, multiple currencies, multiple amounts, multiple debits and multiple loans, and adapt to multiple complex business scenarios. The following is a specific example to illustrate the process of the method for automatically generating accounting entries provided by the present invention.

[0084] Assume that a bank sets up a unified account book for the entire bank. For the convenience of explanation and description, except for the amount, other fields are expressed in text. In actual situations, they can be expressed in codes. Example business scenario: On July 12, 2020, a depositor went to a bank A institution to deposit a RMB 100 time deposit, and then went to B institution to deposit a USD 50 demand deposit.

[0085] The transaction system calls the accounting engine interface, and multiple fields of the called accounting engine interface are shown in Table 4 and Table 5, wherein Table 4 shows multiple fields related to the RMB 100 time deposit business, and Table 5 shows multiple fields related to the USD 50 demand deposit business.

[0086]

[0087] Table 4

[0088]

[0089] Table 5

[0090] The accounting engine matches the corresponding accounting auxiliary codes in the accounting auxiliary setting table through corresponding field combinations, among which part of the contents of the accounting auxiliary setting table is shown in Table 6.

[0091] Tenant ID Account Book Name Calculation auxiliary code Helpful Instructions Business Sources Business Type Feature name 1 Element value 1 A bank Unified account book Deposit 0001 Personal Fixed Deposit Counter system deposit Deposit Type Fixed Deposits A bank Unified account book Deposit 0002 Personal current deposit Counter system deposit Deposit Type Current deposit

[0092] Table 6

[0093] The accounting engine uses the tenant number, account book name, business source, business type, element name, and element value field combination to match the accounting auxiliary code for the 100-yuan time deposit transaction to deposit 0001, and the accounting auxiliary code for the 50-yuan demand deposit transaction to deposit 0002.

[0094] Next, the entry information is determined in the accounting entry setting table according to the matched accounting auxiliary codes Deposit 0001 and Deposit 0002. The entry information related to Deposit 0001 and Deposit 0002 is shown in Table 7.

[0095] Tenant ID Account Book Name Calculation auxiliary code Institution Field Currency field Amount field Subject Number Loan Sign A bank Unified account book Deposit 0001 Institution 1 Currency 1 Amount 1 Cash Account borrow A bank Unified account book Deposit 0001 Institution 1 Currency 1 Amount 1 Time deposit account loan A bank Unified account book Deposit 0002 Institution 1 Currency 1 Amount 1 Cash Account borrow A bank Unified account book Deposit 0002 Institution 1 Currency 1 Amount 1 Current deposit account loan

[0096] Table 7

[0097] Next, replace the value of the institution field, the value of the currency field, and the value of the amount field in the entry information related to deposit 0001 with the value of the institution, the value of the currency, and the value of the amount in the dynamic field of the accounting engine shown in Table 4, respectively. The resulting accounting entry is shown in Table 8.

[0098] Tenant ID Account Book Name Institution Field Currency field Amount field Subject Number Loan Sign A bank Unified account book A institution RMB 100 Cash Account borrow A bank Unified account book A institution RMB 100 Time deposit account loan

[0099] Table 8

[0100] Replace the value of the institution field, the value of the currency field, and the value of the amount field in the entry information related to deposit 0002 with the value of the institution, the value of the currency, and the value of the amount in the dynamic field of the accounting engine shown in Table 5, and the resulting accounting entry is shown in Table 9.

[0101] Tenant ID Account Book Name Institution Field Currency field Amount field Subject Number Loan Sign A bank Unified account book Institution B Dollar 50 Cash Account borrow A bank Unified account book Institution B Dollar 50 Current deposit account loan

[0102] Table 9

[0103] The method for automatically generating accounting entries provided in the embodiment of the present application can be developed using the JAVA language, and the database uses Mysql. It can be understood that the method for automatically generating accounting entries can also be implemented using other development languages ​​and databases.

[0104] The method for automatically generating accounting entries provided in the embodiment of the present application starts from the core principle of the accounting engine, and realizes the automatic generation of accounting entries based on the interface of the accounting engine, the accounting auxiliary setting table and the accounting entry setting table. It can organically connect the business system and accounting processing, which is not only simple and convenient to transplant and deploy, but also can flexibly expand functions from various dimensions according to management needs.

[0105] In addition, the method for automatically generating accounting entries provided by the embodiment of the present application can realize the setting of accounting entries with a flexible configuration method, eliminating the difficulty of operators or program developers to understand specific accounting processing. The method has a strong adaptability, can support the configuration of accounts and entries of different accounting standards at the same time, and also supports multiple business scenarios of multiple tenants, multiple account books, multiple institutions, and multiple currencies. The method abstracts and encapsulates the generation of accounting entries, eliminates the tight coupling between the general ledger system and the financial system, and enhances the independence and maintainability of the system. The method enables the accounting engine to be flexibly connected to various business systems and accounting systems, which helps to improve the flexibility of the accounting engine in architecture design and use. The concise architecture of the method enables it to have good scalability, and its management functions can be expanded in various dimensions according to actual needs, and various encapsulations and extensions can be made in terms of interfaces to adapt to more complex business needs. The method can be implemented using the JAVA language, and based on ANSI SQL, it can support deployment on different databases and support embedded development of other general development languages. This method can be matched with a self-developed Web front end, which can provide users with a friendly configuration interface, making it convenient for users to maintain the accounting auxiliary setting table and the accounting entry setting table through the configuration interface.

[0106] Based on the same inventive concept, the embodiment of the present application also provides a device 200 for automatically generating accounting entries, such as Figure 3 As shown, the device 200 for automatically generating accounting entries includes an interface calling module 210, an accounting auxiliary code module 220, and an accounting entry module 230.

[0107] The interface calling module 210 is used to call the interface of the accounting engine, wherein the interface of the accounting engine includes multiple fields.

[0108] The accounting auxiliary code module 220 is used for the accounting engine to match the accounting auxiliary code corresponding to the transaction in the accounting auxiliary setting table according to a field combination of the interface, wherein the accounting auxiliary setting table includes multiple accounting auxiliary codes, and each accounting auxiliary code matches a specified field combination.

[0109] The accounting entry module 230 is used to determine the entry information in the accounting entry setting table according to the matched accounting auxiliary code, and replace the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry.

[0110] In one embodiment of the present application, the interface of the accounting engine includes multiple static fields and multiple dynamic fields, the static fields are used to characterize a first attribute of the transaction, and the dynamic fields are used to characterize a second attribute of the transaction.

[0111] In one embodiment of the present application, static fields include tenant number, account book name, business type, business number, business source, summary, business date and accounting date; dynamic fields include organization, currency, amount and elements, where elements are used to characterize sub-business types.

[0112] In one embodiment of the present application, the value of the static field is preset by the caller, and the value of the dynamic field is obtained based on the accounting standards of the caller's business.

[0113] In one embodiment of the present application, the field combination includes at least one element in a dynamic field and an element in a dynamic field.

[0114] In one embodiment of the present application, the field combination includes at least the tenant number, account book name, business source and business type in the static fields, and the elements in the dynamic fields.

[0115] In one embodiment of the present application, the entry information includes a tenant number, an account book name, a debit and credit identifier, an account number, an organization field, a currency field, and an amount field. The accounting entry module 230 is specifically used to replace the value in the entry information with the value of a specified field in the interface of the accounting engine to obtain an accounting entry, including: replacing the value of the organization field, the value of the currency field, and the value of the amount field in the entry information with the value of the organization, the value of the currency, and the value of the amount in the dynamic field of the accounting engine, respectively, to obtain an accounting entry.

[0116] The device 200 for automatically generating accounting entries provided in the embodiment of the present application has the same inventive concept as the embodiments described above. The contents not shown in detail in the device 200 for automatically generating accounting entries can be referred to the embodiments described above and will not be repeated here.

[0117] The device for automatically generating accounting entries provided in the embodiment of the present application starts from the core principle of the accounting engine, and realizes the automatic generation of accounting entries based on the interface of the accounting engine, the accounting auxiliary setting table and the accounting entry setting table. It can organically connect the business system and accounting processing, which is not only simple and convenient to transplant and deploy, but also can flexibly expand functions from various dimensions according to management needs.

[0118] In addition, the device for automatically generating accounting entries provided by the embodiment of the present application can realize the setting of accounting entries with a flexible configuration device, eliminating the difficulty of operators or program developers to understand the specific accounting processing. The device has a strong adaptability, can support the configuration of accounts and entries of different accounting standards at the same time, and also supports multiple business scenarios of multiple tenants, multiple account books, multiple institutions, and multiple currencies. The device abstracts and encapsulates the generation of accounting entries, eliminates the tight coupling between the general ledger system and the financial system, and enhances the independence and maintainability of the system. The device enables the accounting engine to flexibly connect with various business systems and accounting systems, which helps to improve the flexibility of the accounting engine in architecture design and use. The simple architecture of the device enables it to have good scalability, and its management functions can be expanded in various dimensions according to actual needs, and various encapsulations and extensions can be made in terms of interfaces to adapt to more complex business needs. The device can be implemented using the JAVA language, and based on ANSI SQL, it can support deployment on different databases and support embedded development of other general development languages. The device can be equipped with a self-developed Web front end, which can provide users with a friendly configuration interface, making it convenient for users to maintain the accounting auxiliary setting table and the accounting entry setting table through the configuration interface.

[0119] Based on the same inventive concept, the embodiment of the present application further provides an electronic device 300, such as Figure 4 As shown, the electronic device 300 includes a memory 303 and a processor 301 , and the processor 301 is communicatively connected with the memory 303 .

[0120] The memory 303 stores a computer program, and when the computer program is executed by the processor 301, the method for automatically generating accounting entries provided in the above embodiment of the present application is implemented.

[0121] Optionally, the processor 301 and the memory 303 may be connected via a bus 302. Optionally, the electronic device 300 may further include a transceiver 304. It should be noted that in actual applications, the transceiver 304 is not limited to one, and the structure of the electronic device 300 does not constitute a limitation on the embodiments of the present application.

[0122] The processor 301 is applied in the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 304 may include a receiver and a transmitter. The transceiver 304 is applied in the embodiment of the present application to implement the function of the electronic device 300 of the embodiment of the present application communicating with other devices when executed.

[0123] Processor 301 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 301 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0124] The bus 302 may include a path to transmit information between the above components. The bus 302 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 302 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0125] The memory 303 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0126] The electronic device 300 provided in the embodiment of the present application has the same inventive concept as the embodiments described above. The contents not shown in detail in the electronic device 300 can be referred to the embodiments described above, and will not be repeated here.

[0127] Based on the same inventive concept, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for automatically generating accounting entries provided in the above embodiment of the present application is implemented.

[0128] The computer-readable storage media provided herein include, but are not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM, RAM, EPROM (Erasable Programmable Read-Only Memory), EEPROM, flash memory, magnetic card or optical card. In other words, the readable medium includes any medium that can store or transmit information in a readable form by a device (e.g., a computer).

[0129] The computer-readable storage medium provided in the embodiment of the present application has the same inventive concept as the embodiments described above. The contents not shown in detail in the computer-readable storage medium can be referred to the embodiments described above and will not be repeated here.

[0130] Those skilled in the art will appreciate that the various operations, methods, steps, measures, and schemes in the processes discussed in this application may be alternated, altered, combined, or deleted. Further, other steps, measures, and schemes in the various operations, methods, and processes discussed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and schemes in the prior art that are similar to those disclosed in this application may also be alternated, altered, rearranged, decomposed, combined, or deleted.

[0131] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the feature. In the description of this application, unless otherwise specified, "plurality" means two or more.

[0132] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence based on the indications of the arrows, these steps are not necessarily executed in sequence based on the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0133] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for automatically generating accounting entries, characterized in that: include: Calling an interface of an accounting engine, wherein the interface of the accounting engine includes a plurality of static fields and a plurality of dynamic fields, wherein the static fields are used to characterize a first attribute of a transaction, and the dynamic fields are used to characterize a second attribute of a transaction; the static fields include a tenant number, an account book name, a business type, a business number, a business source, a summary, a business date, and an accounting date; the dynamic fields include an institution, a currency, an amount, and an element, wherein the element is used to characterize a sub-business type; the value of the static field is preset by the caller, and the value of the dynamic field is obtained based on the accounting standards of the caller's business; Matching the accounting auxiliary code corresponding to the transaction in the accounting auxiliary setting table according to a field combination of the interface, wherein the accounting auxiliary setting table includes a plurality of accounting auxiliary codes, each of which matches a specified field combination; Determine the entry information in the accounting entry setting table according to the matched accounting auxiliary code; Replacing the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain an accounting entry, wherein the entry information includes a tenant number, a book name, a debit and credit identifier, a subject number, an institution field, a currency field, and an amount field; Replacing the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry, including: replacing the value of the organization field, the value of the currency field, and the value of the amount field in the entry information with the value of the organization, the value of the currency, and the value of the amount in the dynamic field of the accounting engine, respectively, to obtain the accounting entry.

2. The method for automatically generating accounting entries according to claim 1, characterized in that: The field combination includes at least one element in the dynamic field and the elements in the dynamic field.

3. The method for automatically generating accounting entries according to claim 2, characterized in that: The field combination includes at least the tenant number, account book name, business source and business type in the static field, and the elements in the dynamic field.

4. A device for automatically generating accounting entries, characterized in that: include: An interface calling module, used for calling an interface of an accounting engine, wherein the interface of the accounting engine includes a plurality of static fields and a plurality of dynamic fields, wherein the static fields are used to characterize a first attribute of a transaction, and the dynamic fields are used to characterize a second attribute of a transaction; the static fields include a tenant number, an account book name, a business type, a business number, a business source, a summary, a business date, and an accounting date; the dynamic fields include an institution, a currency, an amount, and an element, wherein the element is used to characterize a sub-business type; the value of the static field is preset by the caller, and the value of the dynamic field is obtained based on the accounting standards of the caller's business; An accounting auxiliary code module, used for the accounting engine to match the accounting auxiliary code corresponding to the transaction in the accounting auxiliary setting table according to a field combination of the interface, wherein the accounting auxiliary setting table includes a plurality of accounting auxiliary codes, each of which matches a specified field combination; An accounting entry module, used to determine entry information in an accounting entry setting table according to the matched accounting auxiliary code; replace the value in the entry information with the value of a specified field in the interface of the accounting engine to obtain an accounting entry, wherein the entry information includes a tenant number, an account book name, a debit and credit identifier, an account number, an organization field, a currency field, and an amount field; Replacing the value in the entry information with the value of the specified field in the interface of the accounting engine to obtain the accounting entry, including: replacing the value of the organization field, the value of the currency field, and the value of the amount field in the entry information with the value of the organization, the value of the currency, and the value of the amount in the dynamic field of the accounting engine, respectively, to obtain the accounting entry.

5. An electronic device, characterized in that: comprising a memory and a processor, wherein the processor is communicatively connected to the memory; The memory stores a computer program, and when the computer program is executed by the processor, the method for automatically generating accounting entries according to any one of claims 1 to 3 is implemented.

6. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for automatically generating accounting entries according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Transaction data processing method and device

    CN109255703A

  • Bank accounting entry generation method

    CN110766545A