Method for automatically generating voucher based on bookkeeping rule configuration general voucher template
Through a general voucher template configured based on accounting rules, variable factors and fixed factors are abstracted and different types of voucher forms are combined to solve the problem of low automation in the traditional accounting voucher generation engine, and efficient accounting voucher automation and multi-scene adaptation are achieved.
Patent Information
- Application Number
- CN202510029279.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-08
- Publication Date
- 2025-05-30
AI Technical Summary
The traditional accounting voucher generation engine has low degree of automation and low checkout efficiency, and it is impossible to achieve automatic adaptation of multi-scenario and multi-business vouchers, resulting in heavy burdens and slow efficiency for accountants.
A general voucher template configured based on accounting rules is adopted, and by abstracting the change factor and fixed factor, it combines the proof-based detailed single head, proof-based single head, summary voucher head and summary voucher single to realize automatic voucher generation.
It has improved the degree of automation of accounting vouchers, reduced the workload of manual accounting, improved the efficiency of checkout, reduced the burden on accountants, and realized the automatic adaptation of multi-scenario and multi-business vouchers.
Smart Images

Figure CN120070071A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of voucher generation based on accounting rules, and more specifically, relates to a method for automatically generating vouchers by configuring a general voucher template based on accounting rules. Background Art
[0002] In financial work, when the business of an enterprise is complex and the data volume is large, relying entirely on manual processing by financial personnel is inefficient and the accuracy rate is difficult to guarantee. To achieve automated accounting processing of business data, an accounting engine is introduced. The purpose of the accounting engine is to achieve accounting automation, that is, to automatically generate accounting vouchers from business data. Vouchers have a certain format, and some content cannot be directly obtained from business data.
[0003] The main functions that the accounting engine should possess are as follows: for those where the corresponding relationship between business data and voucher content can be directly found, mapping is performed according to the rules and direct conversion is carried out. For those where the direct relationship between business data and voucher content cannot be found, the business data needs to be processed and calculated according to the rules to obtain the results required for the vouchers.
[0004] The structure of accounting vouchers generally includes information such as legal entity, account book, accounting period, posting date, abstract, accounting subject, subject auxiliary accounting, amount, etc. Among them, the abstract, accounting subject, and subject auxiliary accounting vary significantly under different accounting planning systems and different business scenarios, which will affect the work efficiency of accounting personnel.
[0005] In summary, the traditional accounting voucher generation engine has low automation and low closing efficiency, and cannot automatically adapt to vouchers in multiple scenarios and multiple businesses, resulting in heavy burdens and slow efficiency for accounting personnel. Summary of the Invention
[0006] The purpose of this part is to outline some aspects of the embodiments of the present invention and briefly introduce some preferred embodiments. Simplifications or omissions may be made in this part, as well as in the abstract and title of the present invention, to avoid obscuring the purpose of this part, the abstract, and the title, and such simplifications or omissions shall not be used to limit the scope of the present invention.
[0007] Therefore, the purpose of the present invention is to provide a method for automatically generating vouchers by configuring a general voucher template based on accounting rules, which can solve the problems of low automation and low closing efficiency of the traditional accounting voucher generation engine, and the heavy burden and slow efficiency of accounting personnel caused by the inability to automatically adapt vouchers in multiple scenarios and multiple businesses.
[0008] To solve the above technical problems, the present invention provides a method for automatically generating vouchers by configuring a general voucher template based on accounting rules, adopting the following scheme: including the following steps: Step S1, input business data into the voucher center of the business system; Step S2: Configure automatic vouchers according to the input business data; S201: Abstract variable factors and fixed factors based on the accounting voucher structure. For those with multiple factors in attributes, use variable factors + fixed factors; S202: For single-variable variable factors, use variable symbol markings to distinguish them from fixed factors so that the system can automatically identify them, and directly configure the fixed factors; S203: Combine variable factors, fixed factors, and multiple factors to form the header of the voucher details list, the body of the voucher details list, the header of the summary voucher, and the body of the summary voucher; Step S3: The automatic voucher generates the header of the voucher details list, the body of the voucher details list, the header of the summary voucher, and the body of the summary voucher, and combines them with each other to form the general ledger; Furthermore, in S202 of step S1, when the variable factor is a multi-variable, it is marked in the way of variable symbol + field name.
[0009] Furthermore, when there are multiple sub-attributes in the variable factor and the fixed factor in S101 of step S1, it is implemented in the way of keyword + value.
[0010] Furthermore, each type of accounting voucher points to a unique business data By adopting the above technical solutions, in this case, through the selection and combination of variable factors and fixed factors, the function of flexible access is achieved, so as to meet different business scenarios, select different variable factors and fixed factors, so as to achieve the purpose of scenarios and multiple services. By combining the header of the voucher details list, the body of the voucher details list, the header of the summary voucher, and the body of the summary voucher, the way of generating vouchers changes from manually recording accounts according to the original business data to the system calling the accounting engine to automatically generate vouchers for accounting after the original business data is generated, improving the automation degree of accounting vouchers; daily accounting changes from the original manual accounting to the system automatically recording accounts according to the original business data, reducing the manual workload. Especially for the accounting of voucher records such as large amounts of income details and receipt details, the system automatically generating vouchers for accounting significantly improves efficiency.
[0011] In summary, the present invention includes at least the following beneficial effects: The method of the present invention uses the block module idea to improve the automation degree of accounting vouchers by combining the header of the voucher details list, the body of the voucher details list, the header of the summary voucher, and the body of the summary voucher; The method of the present invention adopts a specific combination of fixed factors and variable factors, that is, each type of accounting voucher points to a unique data source to realize the automatic adaptation of multi-scenario and multi-service vouchers; The method of the present invention has strong flexibility. It has changed from the original manual bookkeeping to the system automatically recording accounts based on the original business data, reducing the workload of manual bookkeeping, improving the efficiency of closing accounts, reducing the burden on accounting personnel, and enhancing efficiency. Description of the Drawings
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0013] Figure 1 It is a method and mode diagram for automatically generating vouchers based on the configuration of a general voucher template according to bookkeeping rules described in the present invention; Figure 2 It is a schematic diagram of the automatic generation of vouchers for the method of automatically generating vouchers based on the configuration of a general voucher template according to bookkeeping rules described in the present invention. Detailed Embodiments
[0014] The following combines the attached Figure 1-2 to further elaborate on the present invention in detail with the specific embodiments.
[0015] Implementation cases, referring to Figure 1-2 In order to solve the problems of low automation level of the traditional accounting voucher generation engine, low closing efficiency, and heavy burden and slow efficiency of accounting personnel caused by the inability to automatically adapt vouchers for multiple scenarios and multiple businesses, the present invention discloses a method for automatically generating vouchers based on the configuration of a general voucher template according to bookkeeping rules. The steps include, Step S1: Input the original voucher business data into the voucher center of the business system by synchronizing the original voucher business data to the voucher center through a scheduled task. The voucher center obtains the original business data that needs to be recorded generated by the business system through the system scheduled task; Step S2: Perform automatic voucher configuration according to the input business data; S201: Abstract variable factors and fixed factors based on the accounting voucher structure. For those with multiple factors in the attributes, use variable factors + fixed factors. When there are multiple sub-attributes in the variable factors and fixed factors, use the keyword + value method to implement, and manually configure these combined variable factors + fixed factors into the system; S202: Use variable symbol marks to distinguish variable factors with single variables from fixed factors, so that the system can automatically identify them. Fixed factors are directly configured, and when variable factors are multi-variables, use the variable symbol + field name method to mark.
[0016] S203: Combine the variable factors, fixed factors, and multi-factors to form the header of the voucher details (the header of the accounting voucher), the body of the voucher details (the debit and credit details of the voucher), the header of the summary voucher, and the body of the summary voucher. Step S3: The automatic voucher generates the header of the voucher details, the body of the voucher details, the header of the summary voucher, and the body of the summary voucher. That is, the accounting debit and credit line items with the same accounting template, the same accounting period, the same accounting subject, the same debit and credit sides, the same auxiliary accounting, and the same summary text are merged, and the amounts are added up to generate a general ledger accounting voucher. Each type of accounting voucher points to unique business data.
[0017] Specific implementation principle: Based on the accounting voucher structure, the affiliated legal entity, the affiliated accounting set, the accounting period, the posting date, the voucher type, the summary, the debit and credit accounting subjects, the auxiliary accounting, the currency, and the amount, abstract the variable factors and fixed factors. The variable factors + fixed factors are manually configured into the system through manual configuration. The variable factors take variable values according to the business data, and the fixed factors take fixed values according to the accounting plan. For the scenario where the individual attribute values of the accounting voucher contain multiple factors, it is realized through the combination method of variable factors + fixed factors. The implementation method of variable factors: The variable factors are marked by variable symbols for the system to identify. When the attribute value is a multi-variable, it is realized by configuring multiple variable symbols + field name combinations. The fixed factors are directly configured with fixed values. For example, in the summary field example: Invoice date (XX year XX month XX day), invoice number XXX of the issued invoice, it can be configured as: ${d?. Invoice date} issued invoice ${d?. Invoice number}; Among them, "$" is the variable symbol mark, "{d?. Invoice date}" and "{d?. Invoice number}" are field names, and "issued invoice" is a fixed factor.
[0018] For the scenario where the attribute value itself contains multiple sub-attribute values, it is realized through the combination method of keyword + value. The specific values can be regarded as variable factors or fixed factors, abstracting the business scenario to achieve functional generalization.
[0019] For example, the auxiliary accounting configuration example: [{"name": "customer code", "value": "${d?. customer code}", "convertToNccCode": true}, {"name": "product line code", "value": "4"}, {"name": "product category", "value": "04"}] Among them, "name" and "value" are keywords, "customer code" is a fixed factor, and ${d?. customer code} is a variable factor.
[0020] Different business data generate different accounting vouchers, namely, automatic vouchers generate different voucher detail headers, voucher detail bodies, summary voucher headers and summary voucher bodies. The corresponding relationship between vouchers and business data sources is planned, that is, each type of accounting voucher points to a unique data source, realizing automatic adaptation of vouchers for multiple scenarios and multiple businesses.
[0021] The above are all preferred embodiments of the present invention. The protection scope of the invention is not limited by this. Therefore, all equivalent changes made according to the structure, shape, principle and method of the present invention shall be covered within the protection scope of the present invention.
Claims
1. A method for automatically generating vouchers by configuring a general voucher template based on accounting rules, characterized in that: The following steps are involved: Step S1, inputting business data into the credential center of the business system; Step S2: Automatically configure the voucher according to the input business data; S201: Abstract variable factors and fixed factors based on the accounting voucher structure, and use variable factors + fixed factors for attributes containing multiple factors; S202: For the variable factor single variable, variable symbols are used to distinguish it from the fixed factor, so that the system can automatically identify it, and the fixed factor is directly configured; S203: Combining the variable factor, fixed factor and multiple factors to form a voucher detail header, voucher detail note, summary voucher header and summary voucher note; Step S3: Automatically generate a voucher detail header, a voucher detail sheet, a summary voucher header and a summary voucher sheet, and combine them to form a financial general ledger; Step S4: Combining variable factors and fixed factors to generate different vouchers according to different business scenarios.
2. A method for automatically generating vouchers based on the configuration of a general voucher template based on accounting rules according to claim 1, characterized in that: In step S1 and S202, when the variable factor is multi-variable, it is marked in the form of variable symbol + field name.
3. A method for automatically generating vouchers based on the configuration of a general voucher template based on accounting rules according to claim 1, characterized in that: When the variable factor and the fixed factor in S101 of the step S1 have multiple sub-attributes, they are implemented in a keyword+value manner.
4. A method for automatically generating vouchers based on the configuration of a general voucher template based on accounting rules according to claim 1, characterized in that: Each type of accounting document points to unique business data.