Accounting voucher generation management method, device, computer equipment, and storage medium

By obtaining the conversion configuration information and certificate production configuration information that match the business system, the business data is converted into a dynamically configurable interface table, and accounting vouchers are generated. This solves the problem of solidification of certificate production rules in multiple business systems and achieves high flexibility and Versatility.

CN109785092BActive Publication Date: 2024-09-13PING AN TECH (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201811506596.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-10
Publication Date
2024-09-13
Estimated Expiration
2038-12-10

AI Technical Summary

Technical Problem

In the existing technology, the certification rules of multiple business systems are solidified, resulting in low flexibility, poor compatibility, inability to respond to changes in business logic in a timely manner, and lack of unified management capabilities.

Method used

By obtaining the conversion configuration information that matches the business system, the business fields in the business data are converted into column fields and stored in the interface table. During the accounting voucher generation process, the column fields in the interface table are used to obtain the certificate production configuration information and generate Accounting vouchers, conversion configuration information and certificate production configuration information are not scattered and solidified, which facilitates unified management and quick response to business logic changes.

Benefits of technology

It achieves compatibility and flexibility with different business systems, can quickly adapt to changes in business logic, and improves the versatility and flexibility of accounting voucher generation and management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109785092B
    Figure CN109785092B
Patent Text Reader

Abstract

The present invention belongs to the field of big data technology, and relates to an accounting voucher generation management method, device, computer equipment, and storage medium, wherein the method comprises: receiving business data transmitted by a business system; obtaining conversion configuration information corresponding to the business system, converting each business field in the business data into a corresponding column field according to the conversion configuration information, and storing the column field in an interface table; obtaining certificate configuration information, wherein the certificate configuration information is configured with a target field to be displayed in the accounting voucher, based on the target field and the conversion configuration information, reading the value of the column field corresponding to the target field from the interface table as the value of the target field, generating at least one accounting voucher according to the value of the target field, and synchronizing the generated accounting voucher to a general ledger system. The solution provided by the present invention is compatible with business data of different business systems, and can quickly adapt to changes in business logic by adjusting the conversion configuration information and the certificate configuration information, and has strong versatility and high flexibility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention belong to the field of big data technology, and in particular to an accounting voucher generation management method, device, computer equipment, and storage medium. Background Art

[0002] Accounting vouchers are legally binding written proofs that can be used to prove the occurrence of economic business events, clarify economic responsibilities, and register accounts. In financial management, there are situations where business data from multiple business systems are stored in the general ledger system. These business data are converted into accounting vouchers by the business system and uploaded to the general ledger system. However, there are differences in the business document information of different business systems, which leads to different rules for generating accounting vouchers based on these business documents in different business systems. When a general ledger system is connected to multiple business systems, each business system corresponds to a voucher rule corresponding to the general ledger system. This will face the problem of diversified voucher rules and inconvenience in unified management. At the same time, the existing voucher rules are solidified in the processing flow of the business system. When the business logic in the business system changes, the workload of re-modifying the voucher rules is large, resulting in the inability to respond to changes in business logic by timely adjusting the voucher rules, which lacks flexibility. Summary of the invention

[0003] In order to solve the above problems, the embodiments of the present invention provide an accounting voucher generation management method, device, computer equipment, and storage medium based on big data, so as to solve the problem that in the prior art, in the process of synchronizing business data of different business systems to the general ledger system, the voucher making rules in each business system are solidified, the flexibility is low, the compatibility is poor, and it is inconvenient for unified management.

[0004] In a first aspect, an embodiment of the present invention provides an accounting voucher generation management method, comprising:

[0005] Receiving business data transmitted by the business system, wherein the business data includes a plurality of business fields;

[0006] Acquire conversion configuration information corresponding to the business system, convert each business field in the business data into a corresponding column field according to the conversion configuration information, and store the column field in the interface table;

[0007] Obtain certificate making configuration information, in which a target field to be displayed in an accounting voucher is configured; based on the target field and the conversion configuration information, read the value of a column field corresponding to the target field from an interface table as the value of the target field; generate at least one accounting voucher according to the value of the target field; and synchronize the generated at least one accounting voucher to a general ledger system.

[0008] In one embodiment, obtaining conversion configuration information corresponding to the business system includes:

[0009] When the business system corresponds to multiple conversion configuration information, the type information of the business data is obtained, and the required conversion configuration information is matched according to the type information. The conversion configuration information obtained by matching is the conversion configuration information corresponding to the business system.

[0010] In one of the embodiments, before generating at least one accounting document according to the value of the target field, the method includes:

[0011] The configured target field is verified, and when the configured target field passes the verification, at least one quasi-credential is generated according to the value of the verified target field.

[0012] In one embodiment, the step of verifying the configured target field includes:

[0013] Acquire verification configuration information, determine the target field to be verified according to the verification configuration information, and merge multiple voucher entry lines that meet preset conditions in the quasi-voucher;

[0014] Verify the target fields that need to be verified in the quasi-voucher after the voucher entry lines are merged.

[0015] In one of the embodiments, the step of receiving the business data transmitted by the business system specifically includes: verifying the business data after receiving the business data, and performing a conversion operation on the business data if the verification is successful, otherwise not performing a conversion operation.

[0016] In one of the embodiments, the method further includes: receiving a preview instruction sent by a business system, generating one or more quasi-credentials according to the preview instruction, and feeding back the generated quasi-credentials to the business system to implement credential preview.

[0017] In one of the embodiments, after generating at least one accounting document according to the value of the target field, the method further includes:

[0018] Obtain the document information of the business data required to generate the reversal voucher;

[0019] Acquiring, according to the document information, an accounting voucher previously generated according to the required business data;

[0020] Generate a write-off voucher based on the acquired accounting voucher and synchronize the generated write-off voucher to the general ledger system.

[0021] In a second aspect, an embodiment of the present invention provides an accounting voucher generation management device, comprising:

[0022] A data acquisition unit, used to receive business data transmitted by the business system, wherein the business data includes a plurality of business fields;

[0023] A conversion unit, used to obtain conversion configuration information corresponding to the business system, convert the business fields in the business data into corresponding column fields according to the conversion configuration information, and store the column fields in the interface table;

[0024] A voucher generation unit is used to obtain voucher configuration information, wherein the voucher configuration information is configured with a target field to be displayed in the accounting voucher, and based on the target field and the conversion configuration information, reads the value of the column field corresponding to the target field from the interface table as the value of the target field, generates at least one accounting voucher according to the value of the target field, and synchronizes the generated at least one accounting voucher to the general ledger system.

[0025] In a third aspect, an embodiment of the present invention provides a computer device, including:

[0026] at least one processor; and,

[0027] a memory communicatively connected to the at least one processor; wherein,

[0028] The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor is enabled to execute the steps of the accounting voucher generation management method as described above.

[0029] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer-readable instructions stored thereon, and when the computer-readable instructions are executed by at least one processor, the steps of the accounting voucher generation management method as described above are implemented.

[0030] According to the accounting voucher generation management method, device, computer equipment and storage medium based on big data provided by the embodiments of the present invention, by obtaining conversion configuration information matching the business system, the business fields in the business data are converted into corresponding column fields and stored in the interface table. In the accounting voucher generation process, the value of the target field in the certificate making configuration information can be obtained through the column field in the interface table to generate the accounting voucher. Since the value of the column field in the interface table is assigned based on the conversion configuration information, different business systems correspond to different conversion configuration information, and different interface tables will be obtained accordingly, thereby being compatible with different business systems. At the same time, since the conversion configuration information and the certificate making configuration information are not dispersed and solidified in each business system, unified management is convenient, and when the business logic of any business system changes, the corresponding conversion configuration information and the certificate making configuration information can be modified to quickly respond to such changes. Compared with the certificate making rules solidified in the business system in the prior art, this solution has higher flexibility and versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the scheme of the present invention, a brief introduction is given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 A flowchart of an accounting voucher generation management method based on big data provided by an embodiment of the present invention;

[0033] Figure 2 A structural block diagram of an accounting voucher generation management device provided by an embodiment of the present invention;

[0034] Figure 3 A structural block diagram of another accounting voucher generation management device provided by an embodiment of the present invention;

[0035] Figure 4 A hardware structure block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the technical personnel of the technical field better understand the scheme of the present invention, the technical scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by the technical personnel of the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0037] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0038] like Figure 1 As shown, an embodiment of the present invention provides an accounting voucher generation management method based on big data, which is applied to an accounting engine system. The method includes:

[0039] S1. Receive business data transmitted by a business system, wherein the business data includes multiple business fields.

[0040] The process of receiving business data transmitted by the business system may be to actively request the business system to obtain business data, and the business system feeds back business data in response to the request, or passively receive data actively sent by the business system.

[0041] Business data may exist in the form of business documents in the business system. Business documents may include one or more businesses, such as collection business, payment business, procurement business, etc. The business fields included in the business data may be document type, account set, company segment, business segment, cost center, product, account, budget account, reserve, related party, etc. These business fields are the original materials for generating accounting vouchers.

[0042] S2. Acquire conversion configuration information corresponding to the business system, convert each business field in the business data into a corresponding column field according to the conversion configuration information, and store the column field in an interface table. The interface table is an interface for connecting to the business system, and the conversion configuration information is configured and provided by the accounting engine system, and can be stored in a local memory of the accounting engine system, or in a cloud memory connected to the accounting engine system, or the conversion configuration information is provided by the business system or the general ledger system.

[0043] Among them, the processing process of converting each business field in the business data into a corresponding column field according to the conversion configuration information and storing the column field in the interface table includes mapping the data of a business field to a column field or mapping the data of multiple business fields to a column field after calculation, that is, a column field can be divided into two types, one is directly obtained based on a business field, which can be called a source field, and the other is indirectly obtained based on multiple business fields, which can be called a mapping field. For the mapping field, multiple business fields need to be written into the interface table after calculation preprocessing. The following Table 1 shows a possible conversion relationship between business fields and column fields.

[0044] Business data Interface Table Business Field 1 Column Field 1 Business Field 2 Column Field 2 Business field 3 and business field 4 Column Field 3 …… ……

[0045] Table 1

[0046] In this embodiment, the column field is an intermediate field, which does not reflect the specific meaning of the field in the interface table, but only refers to a data value. The actual meaning of each column field is defined by the conversion configuration information (also called conversion rule), that is, the interface table is a general table that can be used in conjunction with different conversion configuration information, that is, there is a unique interface table and at least one conversion configuration information that defines the meaning of the column field in the interface table. Corresponding to different conversion configuration information, the same column field in the interface table will have different field meanings in different conversion configuration information, thereby being compatible with business data of different business systems and having strong versatility.

[0047] In some embodiments, when a business system corresponds to multiple conversion configuration information, the process of obtaining the conversion configuration information corresponding to the business system may include: obtaining type information of the business data, matching the required conversion configuration information according to the type information, and the conversion configuration information obtained by matching is the conversion configuration information corresponding to the business system. In fact, the same type of business data from different sources may correspond to different conversion configuration information, so the conversion configuration information to be obtained can be determined by obtaining the source information of the business data.

[0048] S3. Obtain certificate configuration information, wherein the certificate configuration information is configured with a target field to be displayed in the accounting voucher, based on the target field and the conversion configuration information, read the value of the column field corresponding to the target field from the interface table as the value of the target field, generate at least one accounting voucher according to the value of the target field, and synchronize the generated at least one accounting voucher to the general ledger system. In this embodiment, the certificate configuration information is configured and provided by the accounting engine system, and can be stored in the local memory of the accounting engine system, or in the cloud memory connected to the accounting engine system, or the certificate configuration information is provided by the business system or the general ledger system; the configuration process of the target field can be a process of selecting the fields required for the accounting voucher in a preset field library, and the accounting voucher generally includes a voucher header and a voucher content, then the configuration process of the target field can include two parts: selecting the fields required for the accounting voucher header from the preset field library and selecting the fields required for the voucher content.

[0049] Furthermore, the certificate making configuration information can be specifically embodied as a certificate making rule. In this embodiment, there may be multiple types of business data in the business system. According to the business data of different business types, the certificate making rules may include a rule category and one or more generation rules subordinate to the rule category. In some embodiments, the rule category may further include a parent category and one or more subcategories subordinate to the parent category, and each subcategory corresponds to at least one generation rule. For example, the certificate making rules include three parent categories: expense reimbursement form, payment form, and travel expenses. The expense reimbursement form further includes two subcategories: "Default account set currency: Yes" and "Default account set currency: No". In a specific embodiment, as needed, the subclasses may be further divided into categories, that is, the rule category may contain multiple levels of nodes, so that for different business types, rule screening can be implemented based on the rule category, and the generation rules obtained by screening can be used to generate corresponding accounting vouchers. Therefore, in some embodiments, the process of obtaining the voucher configuration information may specifically include obtaining the business type information, and filtering the corresponding generation rules according to the business type information; it should be noted that for the parent class node, the parent class node only contains the subclass node, and does not directly contain the generation rules, that is, the generation rules must be included in the bottom-level nodes.

[0050] In this embodiment, the target field to be displayed in the accounting voucher is defined in the generation rule, and then based on the conversion configuration information of step S2, the value of the target field is directly obtained through the column field in the interface table. Specifically, because the meaning of the column field is defined in the conversion configuration information, the target field also has a specific meaning. The value acquisition process is to find a column field with the same specific meaning as the target field in the interface table in combination with the conversion configuration information, and then assign the value of this column field to the target field. The following Table 2 shows a possible value assignment process of the target field.

[0051] Business data Interface Table Accounting documents Business Field 1 Column Field 1 Target field 2 Business Field 2 Column Field 2 Target Field 1 Business field 3 and business field 4 Column Field 3 Target field 3 …… …… ……

[0052] Table 2

[0053] Furthermore, in the present embodiment, for the process of synchronizing the accounting vouchers to the general ledger system, the interface table for synchronizing the accounting vouchers can be obtained (different from the interface table for connecting the business system, the interface table here is used to connect the general ledger system), and the accounting vouchers can be imported into the general ledger system through the obtained interface table. In some embodiments, different general ledger systems may correspond to different interface tables for synchronizing accounting vouchers. When multiple general ledger systems are connected, it is necessary to obtain the general ledger system information to be synchronized in advance, and call the corresponding interface table according to the general ledger system information to complete the synchronization operation; in other embodiments, different general ledger systems may also include only one interface table, and each general ledger system corresponds to different synchronization configuration information. The interface table is configured through the synchronization configuration information to synchronize the accounting vouchers to the corresponding general ledger system.

[0054] In the above embodiment, since the conversion configuration information and the certificate making configuration information are not solidified in the business system, they can be managed in a unified manner. For example, a conversion configuration information library including all conversion configuration information and a certificate making configuration information library including all certificate making configuration information can be provided. For different business systems, the corresponding conversion configuration information can be obtained from the conversion configuration information library, and the corresponding certificate making configuration information can also be obtained from the certificate making configuration information library. In addition, the conversion configuration information and the certificate making configuration information can be freely adjusted and configured. By adjusting the conversion configuration information and the certificate making configuration information (such as adding, modifying, deleting, etc.), the changes in business logic can be quickly adapted, which has high flexibility. The interface table is used to cooperate with the conversion configuration information and the certificate making configuration information to convert the original "process of directly generating accounting vouchers according to business fields" solidified in the business system into a non-solidified "process of realizing business data conversion based on dynamically configurable conversion configuration information" and "process of generating accounting vouchers based on converted data based on dynamically configurable certificate making configuration information", so as to be compatible with different business systems, with strong versatility and high flexibility.

[0055] Furthermore, in some embodiments of the present invention, before generating at least one accounting voucher according to the value of the target field, the process includes: verifying the configured target field, such as whether the target field can be assigned a value, whether the assignment type is correct, etc. When the configured target field passes the verification, generating at least one quasi-voucher according to the value of the target field that passes the verification.

[0056] In this embodiment, the quasi-voucher may include a voucher header and row information, wherein the voucher header may include fields such as account set, voucher source, voucher category, currency, document number, header summary, period, etc., and the row information may include fields such as account, debit, credit, row summary, elastic field, etc., wherein the account may be a combination of fields such as company segment, business segment, cost center, product, subject, sub-subject, spare segment, related party, etc., and correspondingly, the verification of the target field may specifically include verification of the voucher header and row information in the quasi-voucher, such as debit and credit balance verification, account set verification, voucher source, voucher category verification, period verification, currency verification, account combination verification, etc. Combined field verification, etc. Specifically, the account set verification process may include obtaining the existing account set information, verifying whether the existing account set information contains the account set in the quasi-voucher, if it does, the verification passes, otherwise the verification fails; the voucher source and voucher category verification process may include respectively obtaining the existing voucher source information and voucher category information, and respectively verifying whether the existing voucher source information and voucher category information contain the voucher source and voucher category in the quasi-voucher, if they do, the verification passes, otherwise the verification fails; the verification process of period verification, currency verification, and account combined field verification is similar to the verification process of account set, voucher source and voucher category.

[0057] In some embodiments, the step of verifying the configured target field includes:

[0058] Acquire verification configuration information, determine the target field that needs to be verified according to the verification configuration information, and merge multiple voucher entry lines that meet preset conditions in the quasi-voucher; and verify the target field that needs to be verified in the quasi-voucher after the voucher entry lines are merged.

[0059] Among them, obtaining the target field to be verified according to the verification configuration information is specifically performed by calling the generated verification configuration information and then parsing the target field to be verified. In some embodiments, the verification configuration information can be called from a local storage or a cloud storage, or obtained after requesting the general ledger system; and for the merging of voucher entry lines, for example, the debit and credit balance verification process may include merging the debit amount and the credit amount respectively, and judging whether the merged debit amount and the credit amount are completely consistent. If they are consistent, the verification passes, otherwise the verification fails. The premise of merging the debit amount and the credit amount is that the debit and credit to be merged meet certain merging conditions. For example, one merging condition is as follows:

[0060] The merging conditions for non-foreign currencies can be: the values ​​of voucher batch name (company field-business field-document number), voucher name, account set, voucher source, voucher category, accounting date, currency, exchange rate type, company segment, business segment, document number, and batch number are all the same; those that meet the conditions will be merged.

[0061] The merging conditions for foreign currencies can be: on the basis of non-foreign currencies, the "voucher serial number" field additionally provided by the business system must be the same; vouchers with the same serial number will be merged into one voucher, and vouchers with different serial numbers will be split.

[0062] It should be noted here that the line information in the quasi-voucher can be merged in advance before verification. Since the quasi-voucher includes multiple entry lines, the merging process is specifically reflected in the merging of multiple voucher entry lines that meet the preset conditions, such as the preset conditions can be the same "company field + business field + document number". Specifically, for non-foreign currencies, the entry lines with the same fields except the amount and the same debit and credit directions are merged, and the debit or credit amounts are combined and added after the merger; for foreign currencies, the quasi-voucher is generated based on the voucher serial number provided by the business system, so the merging process is reflected in the merging of the same voucher serial number into one voucher, and the different vouchers are split into different vouchers. Since the entry lines have been merged, it can be directly determined whether the debit amount and the credit amount are completely consistent during verification.

[0063] In addition, in other embodiments, the extended field may be checked as needed.

[0064] Further, in some embodiments of the present invention, the step of receiving the service data transmitted by the service system specifically includes: verifying the service data after receiving the service data, and performing a conversion operation on the service data if the verification succeeds, otherwise not performing a conversion operation;

[0065] The process of verifying the business data includes verifying the necessary business fields in the business data and verifying whether there is matching conversion configuration information and / or certificate preparation configuration information for the business data. In this embodiment, the necessary business fields refer to the fields that must be included in the general accounting vouchers, which are used to display the necessary voucher information. In fact, in a specific business system, for different businesses, the field contents contained in different accounting vouchers may include general fields and some unique fields. These general fields are the necessary business fields.

[0066] Specifically, the verification of necessary business fields may include whether the necessary business fields are assigned values, whether the assigned value type matches the predefined type, etc. In the above embodiments, it is mentioned that the certificate configuration information includes a rule category and one or more generation rules subordinate to the rule category. Therefore, the verification of the certificate configuration information may include the verification of the rule category. For example, if the business data contains fields of the expense category, it is necessary to verify whether the rule category contains expense-related rule categories. In theory, each type of business data must and only matches one rule category. If the business data does not match the corresponding rule category or matches multiple rule categories, it means that the verification has failed; and the verification of the conversion configuration information may be to confirm whether there is conversion configuration information corresponding to the business system; after the verification is completed, whether the verification succeeds or fails, the verification result can be fed back to the business system.

[0067] In some embodiments, the method further includes: receiving a preview instruction sent by a business system, generating one or more quasi-vouchers according to the preview instruction, and feeding back the generated quasi-vouchers to the business system to implement voucher preview. If the quasi-voucher generation fails, an error message is prompted on the preview interface. In other embodiments, the method further includes obtaining a query instruction, and providing accounting voucher information according to the query instruction.

[0068] In some embodiments, when a reversal voucher needs to be generated, after generating at least one accounting voucher according to the value of the target field, the method further includes:

[0069] Obtain the document information of the business data required to generate the reversal voucher;

[0070] Acquiring, according to the document information, an accounting voucher previously generated according to the required business data;

[0071] Generate a write-off voucher based on the acquired accounting voucher and synchronize the generated write-off voucher to the general ledger system.

[0072] Specifically, for documents that have generated vouchers, first obtain the document number, and then use the document number to obtain the accounting voucher previously generated based on the document, then copy the content of the accounting voucher and generate a new voucher, and at the same time reverse the amount or debit and credit items. The processing process may include two forms: red offset and blue offset. Among them, red offset is to convert the amount into positive and negative signs for offset, and blue offset is to reverse the debit and credit amounts. For example, if the debit amount on the accounting voucher entry line of a certain document is 200 and the credit amount is 0, then the operation of red offset is to change the debit amount to -200 and the credit amount remains 0. The operation of blue offset is to change the debit amount to 0 and the credit amount to 200.

[0073] According to the big data-based accounting voucher generation management method provided by an embodiment of the present invention, by obtaining conversion configuration information matching the business system, the business fields in the business data are converted into corresponding column fields and stored in the interface table. In the accounting voucher generation process, the value of the target field in the certificate making configuration information can be obtained through the column field in the interface table to generate the accounting voucher. Since the value of the column field in the interface table is assigned based on the conversion configuration information, different business systems correspond to different conversion configuration information, and correspondingly different interface tables will be obtained, thereby being compatible with different business systems. At the same time, since the conversion configuration information and the certificate making configuration information are not dispersed and solidified in each business system, unified management is convenient, and when the business logic of any business system changes, the corresponding conversion configuration information and the certificate making configuration information can be modified to quickly respond to such changes. Compared with the certificate making rules solidified in the business system in the prior art, this solution has higher flexibility and versatility.

[0074] like Figure 2 As shown, an embodiment of the present invention provides an accounting voucher generation management device, which is applied to an accounting engine system, and includes a data acquisition unit 10, a conversion unit 20 and a voucher generation unit 30, wherein:

[0075] The data acquisition unit 10 is used to receive business data transmitted by the business system, and the business data includes multiple business fields. Among them, the data acquisition unit 10 can actively request the business system to obtain business data for the process of receiving business data transmitted by the business system, and the business system can feedback business data after responding to the request, or passively receive data actively sent by the business system. Business data can exist in the form of business documents in the business system, and business documents can include one or more businesses, such as collection business, payment business, procurement business, etc., and the business fields included in the business data can be document type, account set, company segment, business segment, cost center, product, account, budget account, spare, related party, etc. These business fields are the original materials for generating accounting vouchers.

[0076] The conversion unit 20 is used to obtain conversion configuration information corresponding to the business system, convert each business field in the business data into a corresponding column field according to the conversion configuration information, and store the column field in an interface table; the interface table is an interface for connecting to the business system, and the conversion configuration information is configured and provided by the accounting engine system, and can be stored in the local memory of the accounting engine system, or in a cloud storage connected to the accounting engine system, or the conversion configuration information is provided by the business system or the general ledger system.

[0077] Among them, the conversion unit 20 converts each business field in the business data into a corresponding column field according to the conversion configuration information, and stores the column field in the interface table. The processing includes mapping the data of a business field to a column field or mapping the data of multiple business fields to a column field after calculation, that is, a column field can be divided into two types, one is directly obtained based on a business field, which can be called a source field, and the other is indirectly obtained based on multiple business fields, which can be called a mapping field. For the mapping field, multiple business fields need to be written into the interface table after calculation preprocessing. A possible conversion relationship between business fields and column fields can refer to Table 1 in the above method embodiment, which will not be repeated here.

[0078] In this embodiment, the column field is equivalent to an intermediate field, which does not reflect the specific meaning of the field in the interface table, but only refers to a data value. The actual meaning of each column field is defined by the conversion configuration information (also called conversion rule), that is, the interface table is a general table that can be used in conjunction with different conversion configuration information, that is, there is a unique interface table and at least one conversion configuration information that defines the meaning of the column field in the interface table. Corresponding to different conversion configuration information, the same column field in the interface table will have different field meanings in different conversion configuration information, thereby being compatible with business data of different business systems and having strong versatility.

[0079] In some embodiments, when the business system corresponds to multiple conversion configuration information, the process of the conversion unit 20 acquiring the conversion configuration information corresponding to the business system may include: acquiring the type information of the business data, matching the required conversion configuration information according to the type information, and the conversion configuration information obtained by matching is the conversion configuration information corresponding to the business system. In fact, the same type of business data from different sources may also correspond to different conversion configuration information, so the conversion configuration information to be acquired can be determined by acquiring the source information of the business data.

[0080] The voucher generation unit 30 is used to obtain the voucher configuration information, in which the target field to be displayed in the accounting voucher is configured, based on the target field and the conversion configuration information, the value of the column field corresponding to the target field is read from the interface table as the value of the target field, at least one accounting voucher is generated according to the value of the target field, and the generated at least one accounting voucher is synchronized to the general ledger system. In this embodiment, the voucher configuration information is configured and provided by the accounting engine system, and can be stored in the local memory of the accounting engine system, or in the cloud memory connected to the accounting engine system, or the voucher configuration information is provided by the business system or the general ledger system; the configuration process of the target field can be the process of selecting the fields required for the accounting voucher in the preset field library, and the accounting voucher generally includes the voucher header and the voucher content, then the configuration process of the target field can include two parts: selecting the fields required for the accounting voucher header from the preset field library and selecting the fields required for the voucher content.

[0081] Furthermore, the certificate making configuration information can be specifically embodied as a certificate making rule. In this embodiment, there may be multiple types of business data in the business system. According to the business data of different business types, the certificate making rules may include a rule category and one or more generation rules subordinate to the rule category. In some embodiments, the rule category may further include a parent category and one or more subcategories subordinate to the parent category, and each subcategory corresponds to at least one generation rule. For example, the certificate making rules include three parent categories: expense reimbursement form, payment form, and travel expenses. The expense reimbursement form further includes two subcategories: "Default account set currency: Yes" and "Default account set currency: No". In a specific embodiment, as needed, the subclasses may be further divided into categories, that is, the rule category may contain multiple levels of nodes, so that for different business types, rule screening can be implemented based on the rule category, and the generation rules obtained by screening can be used to generate corresponding accounting vouchers. Therefore, in some embodiments, the process of obtaining the voucher configuration information may specifically include obtaining the business type information, and filtering the corresponding generation rules according to the business type information; it should be noted that for the parent class node, the parent class node only contains the subclass node, and does not directly contain the generation rules, that is, the generation rules must be included in the bottom-level nodes.

[0082] In this embodiment, the target field that needs to be displayed in the accounting voucher is defined in the generation rule, and then based on the conversion configuration information obtained by the conversion unit 20, the voucher generation unit 30 directly obtains the value of the target field through the column field in the interface table. Specifically, because the meaning of the field is defined in the conversion configuration information, the target field also has a specific meaning. The value acquisition process is to find the column field with the same specific meaning as the target field in the interface table in combination with the conversion configuration information, and then assign the value of this column field to the target field. A possible assignment process of the target field can refer to Table 2 in the above method embodiment.

[0083] Furthermore, in the present embodiment, the voucher generation unit 30 can synchronize the accounting vouchers to the general ledger system by obtaining an interface table for synchronizing the accounting vouchers (different from the interface table for connecting the business system, the interface table here is used to connect the general ledger system), and importing the accounting vouchers into the general ledger system through the obtained interface table. In some embodiments, different general ledger systems may correspond to different interface tables for synchronizing accounting vouchers. When multiple general ledger systems are connected, the voucher generation unit 30 needs to obtain the general ledger system information to be synchronized in advance, and call the corresponding interface table according to the general ledger system information to complete the synchronization operation; in other embodiments, different general ledger systems may also include only one interface table, and each general ledger system corresponds to different synchronization configuration information. The voucher generation unit 30 configures the interface table through the synchronization configuration information to synchronize the accounting vouchers to the corresponding general ledger system.

[0084] In this embodiment, since the conversion configuration information and the certificate making configuration information are not solidified in the business system, they can be managed in a unified manner. For example, a conversion configuration information library including all conversion configuration information and a certificate making configuration information library including all certificate making configuration information can be provided. For different business systems, the corresponding conversion configuration information can be obtained from the conversion configuration information library, and the corresponding certificate making configuration information can also be obtained from the certificate making configuration information library. In addition, the conversion configuration information and the certificate making configuration information can be freely adjusted and configured. By adjusting the conversion configuration information and the certificate making configuration information (such as adding, modifying, deleting, etc.), the changes in business logic can be quickly adapted, which has high flexibility. In this embodiment, the interface table is used to cooperate with the conversion configuration information and the certificate making configuration information to convert the original "process of directly generating accounting vouchers according to business fields" solidified in the business system into a non-solidified "process of realizing business data conversion based on dynamically configurable conversion configuration information" and "process of generating accounting vouchers based on converted data based on dynamically configurable certificate making configuration information", so as to be compatible with different business systems, with strong versatility and high flexibility.

[0085] In some embodiments, Figure 3 As shown, the accounting voucher generation management device also includes a verification unit 40. The voucher generation unit 30 is also used to verify the configured target field before generating at least one accounting voucher according to the value of the target field. When the configured target field passes the verification, at least one quasi-voucher is generated according to the value of the target field that passes the verification. The verification unit 40 verifies the configured target field, such as whether the target field can be assigned a value, whether the assignment type is correct, etc.

[0086] In this embodiment, the quasi-voucher may include a voucher header and row information, wherein the voucher header may include fields such as an account set, voucher source, voucher category, currency, document number, header summary, period, etc., and the row information may include fields such as account, debit, credit, row summary, elastic field, etc., wherein the account may be a combination of fields such as company segment, business segment, cost center, product, subject, sub-subject, spare segment, related party, etc., and accordingly, the verification unit 40 verifies the target field, which may include verifying the voucher header and row information in the quasi-voucher, such as debit and credit balance verification, account set verification, voucher source, voucher category verification, period verification, currency verification, account combination field verification, etc. The verification process of the verification unit 40 for the account set may include obtaining the existing account set information, verifying whether the existing account set information contains the account set in the quasi-voucher, if it does, the verification passes, otherwise the verification fails; the verification process of the verification unit 40 for the voucher source and voucher category verification may include respectively obtaining the existing voucher source information and voucher category information, and respectively verifying whether the existing voucher source information and voucher category information contain the voucher source and voucher category in the quasi-voucher, if they do, the verification passes, otherwise the verification fails; the verification process of the verification unit 40 for period verification, currency verification, and account combination field verification is similar to the verification process of the account set, voucher source, and voucher category.

[0087] In some embodiments, the process of the verification unit 40 verifying the configured target field includes: obtaining verification configuration information, determining the target field that needs to be verified based on the verification configuration information, and merging multiple voucher entry lines in the quasi-voucher that meet preset conditions; and verifying the target field that needs to be verified in the quasi-voucher after the voucher entry lines are merged.

[0088] The verification unit 40 obtains the target field to be verified according to the verification configuration information, specifically by calling the generated verification configuration information and parsing the target field to be verified. In some embodiments, the verification configuration information can be called from a local storage or a cloud server, or obtained after requesting the general ledger system; and for the merging of voucher entry lines, for example, the verification unit 40 may include merging the debit amount and the credit amount respectively, and judging whether the merged debit amount and the credit amount are completely consistent. If they are consistent, the verification passes, otherwise the verification fails. The premise of merging the debit amount and the credit amount is that the debit and credit to be merged meet certain merging conditions, such as one merging condition is as follows:

[0089] The merging conditions for non-foreign currencies can be: the values ​​of voucher batch name (company field-business field-document number), voucher name, account set, voucher source, voucher category, accounting date, currency, exchange rate type, company segment, business segment, document number, and batch number are all the same; those that meet the conditions will be merged.

[0090] The merging conditions for foreign currencies can be: on the basis of non-foreign currencies, the "voucher serial number" field additionally provided by the business system must be the same; vouchers with the same serial number will be merged into one voucher, and vouchers with different serial numbers will be split.

[0091] It should be noted here that the line information in the quasi-voucher can be merged in advance before verification. Since the quasi-voucher includes multiple entry lines, the merging process is specifically reflected in the merging of multiple voucher entry lines that meet the preset conditions, such as the preset conditions can be the same "company field + business field + document number". Specifically, for non-foreign currencies, the entry lines with the same fields except the amount and the same debit and credit directions are merged, and the debit or credit amounts are combined and added after the merger; for foreign currencies, the quasi-voucher is generated based on the voucher serial number provided by the business system, so the merging process is reflected in the merging of the same voucher serial number into one voucher, and the different vouchers are split into different vouchers. Since the entry lines have been merged, it can be directly determined whether the debit amount and the credit amount are completely consistent during verification.

[0092] In addition, in other embodiments, the verification unit 40 may also perform verification of the extended field as needed.

[0093] In some embodiments, Figure 3 As shown, the verification unit 40 receives the business data transmitted by the business system and specifically further includes verifying the business data after receiving the business data. If the verification succeeds, the business data is converted, otherwise, no conversion operation is performed;

[0094] The process of the verification unit 40 verifying the business data may include verifying the necessary business fields in the business data and verifying whether there is matching conversion configuration information and / or certificate preparation configuration information for the business data. In this embodiment, the necessary business fields refer to the fields that must be included in the general accounting vouchers, which are used to display the necessary voucher information. In fact, in a specific business system, for different businesses, the field contents contained in different accounting vouchers may include general fields and some unique fields. These general fields are the necessary business fields.

[0095] Specifically, the verification unit 40's verification of necessary business fields may include whether the necessary business fields are assigned values, whether the assigned value type matches the predefined type, etc. In the above embodiment, it is mentioned that the certificate configuration information includes a rule category and one or more generation rules subordinate to the rule category. Therefore, the verification unit 40's verification of the certificate configuration information may include the verification of the rule category. For example, if the business data contains fields of the expense category, it is necessary to verify whether the rule category contains expense-related rule categories. In theory, each type of business data must and only matches one rule category. If the business data does not match the corresponding rule category or matches multiple rule categories, it means that the verification has failed; and the verification unit 40's verification of the conversion configuration information may be to confirm whether there is conversion configuration information corresponding to the business system; after completing the verification, whether the verification succeeds or fails, the verification unit 40 can feedback the verification result to the business system.

[0096] In some embodiments, Figure 3 As shown, the accounting voucher generation management device also includes a preview unit 50, which is used to receive a preview instruction sent by the business system, generate one or more quasi-vouchers according to the preview instruction, and feed the generated quasi-vouchers back to the business system to implement voucher preview. If the quasi-voucher generation fails, the preview unit 50 outputs an error prompt message to the preview interface of the business system. In other embodiments, the device also includes a query acquisition unit, which is used to provide accounting voucher information according to the query instruction.

[0097] In some embodiments, after the voucher generation unit 30 generates at least one accounting voucher according to the value of the target field, the voucher generation unit 30 is further used to generate a reversal voucher, specifically including obtaining the document information of the business data required for generating the reversal voucher, obtaining the accounting voucher previously generated according to the required business data according to the document information, generating a reversal voucher based on the obtained accounting voucher, and synchronizing the generated re-voucher to the general ledger system. Specifically, for the document for which the accounting voucher has been generated, the voucher generation unit 30 first obtains the document number, then obtains the accounting voucher previously generated according to the document through the document number, then copies the content of the accounting voucher and generates a new voucher, and reversely processes the amount or debit and credit items at the same time. The processing process may include two forms: red reversal and blue reversal, wherein the red reversal is to convert the amount to positive and negative signs for reversal, and the blue reversal is to reverse the debit and credit amounts. For example, if the debit amount on the accounting voucher entry line of a document is 200 and the credit amount is 0, then the operation of the red reversal is to change the debit amount to -200 and keep the credit amount at 0, and the operation of the blue reversal is to change the debit amount to 0 and the credit amount to 200.

[0098] According to the accounting voucher generation management device provided by the embodiment of the present invention, the conversion configuration information matching the business system is obtained through the data acquisition unit 10, and then the business field in the business data is converted into the corresponding column field through the conversion unit 20 and stored in the interface table, so that the voucher generation unit 30 can obtain the value of the target field in the certificate making configuration information through the column field in the interface table to generate the accounting voucher during the accounting voucher generation process. Since the value of the column field in the interface table is assigned based on the conversion configuration information, different business systems correspond to different conversion configuration information, and different interface tables will be obtained accordingly, thereby being compatible with different business systems. At the same time, since the conversion configuration information and the certificate making configuration information are not dispersed and solidified in each business system, they can be conveniently managed in a unified manner, and when the business logic of any business system changes, the corresponding conversion configuration information and the certificate making configuration information can be modified to quickly respond to such changes. Compared with the certificate making rules solidified in the business system in the prior art, this solution has higher flexibility and versatility.

[0099] like Figure 4 As shown, an embodiment of the present invention further provides a computer device, comprising at least one processor 100, and a memory 200 communicatively connected to the at least one processor 100; Figure 4 Taking a processor 100 as an example, the memory 200 stores instructions that can be executed by the at least one processor 100, and the instructions are executed by the at least one processor 100 so that the at least one processor 100 can execute the steps of the accounting voucher generation management method as described above.

[0100] In this embodiment, the computer device for executing the accounting voucher generation management method may further include: an input device 300 and an output device 400; wherein the input device 300 may obtain the operation information of the user on the technical device, and the output device 400 may include a display device such as a display screen. The processor 100, the memory 200, the input device 300 and the output device 400 may be connected via a bus or other means. Figure 4 The example of connecting through bus is taken in the following.

[0101] The memory 200, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the accounting voucher generation management method based on big data in the above-mentioned embodiments of the present application. The processor 100 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 200, that is, the accounting voucher generation management method based on big data described in the above-mentioned method embodiment is realized. The memory 200 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required by at least one function; the data storage area may store data created during the processing of the accounting voucher generation management method based on big data, etc. In addition, the memory 200 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 200 may optionally include a memory remotely arranged relative to the processor 100, and these remote memories may be connected to a computer device that performs domain name filtering processing through a network, and examples of the aforementioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0102] The computer device provided according to an embodiment of the present invention can execute the steps of the accounting voucher generation management method in the above-mentioned embodiment when the processor 100 executes the code in the memory 200, and has the technical effect of the above-mentioned method embodiment. For technical details not fully described in this embodiment, please refer to the technical content provided in the method embodiment of this application.

[0103] An embodiment of the present invention also provides a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by at least one processor, the steps of the accounting voucher generation management method based on big data as described above are implemented. When the steps of the method are executed, the technical effects of the above-mentioned method embodiment are achieved. For technical details not described in detail in this embodiment, please refer to the technical content provided in the method embodiment of this application.

[0104] The embodiment of the present invention also provides a computer program product, which can execute the method provided in the method embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the technical content provided in the method embodiment of the present application.

[0105] It should be noted that the functional modules in the above embodiments of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0106] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or an intelligent terminal device or a processor to perform some steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0107] In the above embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0108] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0109] Obviously, the embodiments described above are only some embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are given in the accompanying drawings, but they do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific embodiments, or to perform equivalent replacements for some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of the present invention, directly or indirectly used in other related technical fields, is also within the scope of patent protection of the present invention.

Claims

1. A method for managing the generation of accounting documents. It is characterized in that include: Receiving business data transmitted by the business system, wherein the business data includes a plurality of business fields; Acquire conversion configuration information corresponding to the business system, convert each business field in the business data into a corresponding column field according to the conversion configuration information, and store the column field in an interface table, wherein the type of the column field includes a source field type and a mapping field type; Acquire certificate making configuration information, wherein the certificate making configuration information is configured with a target field to be displayed in an accounting voucher, read a value of a column field corresponding to the target field from the interface table as a value of the target field based on the target field and the conversion configuration information, generate at least one accounting voucher according to the value of the target field, and synchronize the generated at least one accounting voucher to a general ledger system; The step of obtaining the certificate making configuration information specifically includes: Acquire business type information, and filter corresponding generation rules and rule categories according to the business type information to obtain the certificate making configuration information; The certificate making configuration information is a certificate making rule, which includes the rule category and one or more generation rules subordinate to the rule category, the rule category includes a parent class node and one or more child class nodes subordinate to the parent class node, each child class node corresponds to at least one generation rule, the parent class node only includes the child class node, and the parent class node does not directly include the generation rule, and the generation rule defines the target field that needs to be displayed in the accounting voucher; The obtaining of conversion configuration information corresponding to the business system includes: When the business system corresponds to multiple conversion configuration information, the type information of the business data is obtained, and the required conversion configuration information is matched according to the type information, and the conversion configuration information obtained by matching is the conversion configuration information corresponding to the business system; Before generating at least one accounting document according to the value of the target field, the method includes: Verifying the configured target field, and when the configured target field passes the verification, generating at least one quasi-credential according to the value of the target field that passes the verification; The step of verifying the configured target field includes: Acquire verification configuration information, determine the target field to be verified according to the verification configuration information, and merge multiple voucher entry lines that meet preset conditions in the quasi-voucher; Verify the target fields that need to be verified in the quasi-voucher after the voucher entry lines are merged; The step of verifying the configured target field further includes: When the verification of the configured target field is a debit / credit balance verification, the debit amount and the credit amount are obtained, the debit amount and the credit amount are merged, and it is determined whether the merged debit amount and the credit amount are completely consistent. If they are consistent, the verification passes, otherwise the verification fails; When the verification of the configured target field is an account set verification, the account set information is obtained to verify whether the account set information includes the account set in the quasi-voucher. If it does, the verification passes, otherwise the verification fails; When the verification of the configured target field is performed as credential source and credential category verification, the credential source information and credential category information are obtained respectively, and it is verified respectively whether the credential source information and the credential category information contain the credential source and credential category in the quasi-credential. If they are contained, the verification passes, otherwise the verification fails.

2. The accounting voucher generation management method according to claim 1, It is characterized in that The step of receiving the business data transmitted by the business system specifically includes: After receiving the service data, the service data is verified, and if the verification is successful, a conversion operation is performed on the service data, otherwise, no conversion operation is performed.

3. The accounting voucher generation management method according to claim 1, It is characterized in that The method further comprises: Receive a preview instruction sent by the business system, generate one or more quasi-credentials according to the preview instruction, and feed the generated quasi-credentials back to the business system to implement credential preview.

4. The accounting voucher generation management method according to claim 1, It is characterized in that After generating at least one accounting document according to the value of the target field, the method further includes: Obtain the document information of the business data required to generate the reversal voucher; Acquiring, according to the document information, an accounting voucher previously generated according to the required business data; Generate a write-off voucher based on the acquired accounting voucher and synchronize the generated write-off voucher to the general ledger system.

5. An accounting voucher generation and management device, It is characterized in that When the accounting voucher generation management device is executed, the steps of the accounting voucher generation management method according to any one of claims 1 to 4 are implemented, and the accounting voucher generation management device comprises: A data acquisition unit, used for business data transmitted by the business system, wherein the business data includes a plurality of business fields; A conversion unit, used to obtain conversion configuration information corresponding to the business system, convert each business field in the business data into a corresponding column field according to the conversion configuration information, and store the column field in an interface table; A voucher generation unit is used to obtain voucher configuration information, wherein the voucher configuration information is configured with a target field to be displayed in the accounting voucher, and based on the target field and the conversion configuration information, reads the value of the column field corresponding to the target field from the interface table as the value of the target field, generates at least one accounting voucher according to the value of the target field, and synchronizes the generated at least one accounting voucher to the general ledger system.

6. A computer device, It is characterized in that include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. When the instructions are executed by the at least one processor, the at least one processor executes the steps of the accounting document generation management method as described in any one of claims 1 to 4.

7. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-readable instructions, which, when executed by at least one processor, implement the steps of the accounting voucher generation management method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • SAP park document realization method and system based on service configuration

    CN105404950A

  • Control element-based automatic bookkeeping method for cloud financial platform

    CN107705197A

  • Accrued voucher generation method and device

    CN108074176A

  • Financial data certification method and apparatus, computer device and storage medium

    CN108717429A