Accounting voucher generation method and device, storage medium, electronic equipment and product

By decoupling the voucher templates from the accounting engine and adopting configurable business-finance data mapping and voucher compilation rules, the problems of low development efficiency and poor scalability caused by hard-coding accounting voucher templates are solved, and the flexibility and accuracy of accounting voucher generation are achieved.

CN120631338APending Publication Date: 2025-09-12INDUSTRIAL AND COMMERCIAL BANK OF CHINA +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202510747168.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

In the existing technology, accounting voucher templates are hard-coded in the accounting engine source code, which requires frequent code modifications when the books, accounts and accounting scenarios change. This results in a large coding workload, low development efficiency, poor flexibility and insufficient scalability.

Method used

By decoupling the voucher template from the source code of the accounting engine and adopting configurable business-finance data mapping relationships and voucher compilation rules, we can achieve visual configuration and dynamic generation of voucher templates, reduce code modifications, and improve flexibility and development efficiency.

Benefits of technology

It achieves accuracy and flexibility in generating accounting vouchers, reduces coding workload, improves development efficiency, shortens rule update cycles, and enhances the scalability and operational convenience of the accounting engine.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120631338A_ABST
    Figure CN120631338A_ABST
Patent Text Reader

Abstract

The invention discloses an accounting voucher generation method and device, a storage medium, electronic equipment and a product, and the method is executed by an accounting engine, and comprises the steps: in response to a control click operation acting on a voucher generation control in a voucher generation interface, determining a target voucher template matched with a to-be-accounting target business file in candidate voucher templates; wherein at least one business and financial data mapping relation and at least one voucher compiling rule are pre-configured in the target voucher template; determining voucher elements corresponding to the target business file according to the target business file, the business financial data mapping relation and the voucher compiling rule; and generating an accounting voucher for the target business file based on the voucher element. By executing the technical scheme of the invention, the coding workload can be reduced, the development efficiency is improved, and the flexibility and expandability of an accounting engine are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology and can be applied to financial technology scenarios. The present application specifically relates to a method, device, storage medium, electronic device and product for generating accounting vouchers. Background Art

[0002] Business documents, including invoices and contracts, serve as the data basis for generating accounting vouchers. Accounting vouchers are the financial translation of business documents. The accounting engine is configured with corresponding voucher templates for business documents and supports generating corresponding accounting vouchers based on these templates.

[0003] However, in related technologies, accounting voucher templates are hard-coded into the accounting engine source code. However, accounting vouchers are closely related to ledgers, accounts, and accounting scenarios, and different business documents generate different accounting vouchers. Any changes to any item in the ledger, account, accounting scenario, or business document require modifications to the implementation code of the accounting voucher template in the accounting engine. This results in a large coding workload, low development efficiency, poor flexibility, and insufficient scalability. Summary of the Invention

[0004] The present application provides a method, device, storage medium, electronic device and product for generating accounting vouchers, which can reduce coding workload, improve development efficiency, and increase the flexibility and scalability of the accounting engine.

[0005] According to a first aspect of the present application, a method for generating an accounting voucher is provided, which is executed by an accounting engine, and the method includes:

[0006] In response to a click operation on a voucher generation control in a voucher generation interface, a target voucher template matching the target business file to be recorded is determined from candidate voucher templates; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule;

[0007] Determining the voucher element corresponding to the target business document according to the target business document, the business-finance data mapping relationship, and the voucher compilation rule;

[0008] Based on the voucher elements, an accounting voucher is generated for the target business document.

[0009] According to a second aspect of the present application, there is provided an accounting voucher generation device, which is configured in an accounting engine, and the device includes:

[0010] a voucher template matching module, configured to, in response to a click operation on a voucher generation control in a voucher generation interface, determine a target voucher template from candidate voucher templates that matches a target business file to be recorded; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule;

[0011] a voucher element determination module, configured to determine the voucher element corresponding to the target business document based on the target business document, the business-finance data mapping relationship, and the voucher compilation rule;

[0012] An accounting voucher generation module is used to generate an accounting voucher for the target business file based on the voucher elements.

[0013] According to the third aspect of the present invention, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the accounting voucher generation method as described in the embodiment of the present application is implemented.

[0014] According to the fourth aspect of the present invention, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the computer program, the accounting voucher generation method as described in the embodiment of the present application is implemented.

[0015] According to the fifth aspect of the present application, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the accounting voucher generation method as described in the embodiment of the present application.

[0016] The technical solution of the present application improves the flexibility of the accounting engine by decoupling the voucher template from the source code of the accounting engine and adopting configurable business-finance data mapping relationships and voucher compilation rules. When the business file changes, it is only necessary to adjust the template configuration to complete the adaptation, which gets rid of the dilemma of frequently modifying the engine code, reduces the coding workload, and is conducive to improving development efficiency. The dynamic generation mechanism of voucher elements enables the conversion process of business data to accounting language to maintain both standardization and scenario adaptability. Based on the voucher elements, accounting vouchers are generated to ensure the accuracy of accounting voucher generation. The configuration-driven design of the technical solution of the present application not only improves the maintenance efficiency of the template, but also ensures timely response to changes in compilation rules through built-in voucher compilation rules, greatly shortening the rule update cycle. The technical solution of the present application builds an intelligent middle layer between business definition and financial conversion, which significantly improves the scalability and operation and maintenance convenience of the accounting engine while maintaining accounting accuracy.

[0017] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0019] Figure 1 This is a flow chart of a method for generating accounting vouchers according to the first embodiment;

[0020] Figure 2 This is a flow chart of a method for generating accounting vouchers according to the second embodiment;

[0021] Figure 3 This is a schematic diagram of the structure of the accounting voucher generation device provided in Example 3 of the present application;

[0022] Figure 4 This is a structural diagram of an electronic device provided in Example 4 of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0024] It should be noted that the terms "first", "second", "target" and "candidate" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof 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 necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] Example 1

[0026] Figure 1 This is a flowchart of the method provided in Example 1. This embodiment can be applied to the situation where accounting vouchers are generated based on business documents such as contracts and documents in a business-finance integration scenario. The method can be configured to be executed by a device, which is implemented in the form of hardware and / or software and can be integrated into an electronic device that runs this system.

[0027] like Figure 1 As shown, the method includes:

[0028] S110. In response to a click operation on a voucher generation control in a voucher generation interface, a target voucher template that matches the target business file to be accounted for is determined from candidate voucher templates; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule.

[0029] S120. Determine the voucher element corresponding to the target business file according to the target business file, the business-finance data mapping relationship, and the voucher preparation rule.

[0030] S130. Generate an accounting voucher for the target business file based on the voucher elements.

[0031] Among them, the accounting engine is configured with a voucher generation interface and a template configuration interface. Both the voucher generation interface and the template configuration interface are visual interfaces, supporting the visual configuration of voucher templates and the visual generation of accounting vouchers.

[0032] The voucher generation interface includes a voucher generation control. The accounting engine detects a click on the voucher generation control, indicating a need to generate a voucher. Candidate voucher templates are pre-configured voucher templates in the accounting engine. These voucher templates define the key components of a voucher. There are at least two candidate voucher templates.

[0033] The target voucher template is generated from the candidate voucher templates and is used to generate accounting vouchers for the target business document. Optionally, the target voucher template is determined based on the template selection action applied to the candidate voucher templates in the voucher generation interface. Voucher templates correspond to the project types of the business document. This is because the project types of a business's operations are relatively fixed. By analyzing the project types of the business, voucher templates can be pre-configured for each type of project.

[0034] Target business documents are used to record business activities within a company's operations. Optionally, these documents include contracts, invoices, quotations, and orders. Accounting vouchers are written documentation that records economic transactions and clarifies financial responsibilities in accounting work, serving as the basis for account bookkeeping. Target business documents serve as the basis for accounting vouchers. The business data recorded in target business documents is written in the business language, while accounting vouchers use the accounting language.

[0035] The target voucher template is preconfigured with at least one business-to-financial data mapping relationship and at least one voucher preparation rule. The business-to-financial data mapping relationship is used to convert business data in business documents into accounting language. The voucher preparation rule defines the rules and conditions for generating accounting vouchers, ensuring accuracy and compliance.

[0036] Voucher elements are the basic units of accounting vouchers and their primary components. They belong to the accounting language and conform to voucher compilation rules. Voucher elements are generated by processing the target business document using the business-financial data mapping relationships and voucher compilation rules in the target voucher template. This ensures both accounting language standardization and business scenario compatibility. Once the voucher elements are determined, accounting vouchers can be generated for the target business document based on them. Optional voucher elements include: account elements, ledger elements, accounting scenario elements, summary elements, and time elements.

[0037] Optionally, after the accounting voucher is generated, the accounting engine supports exporting the generated accounting voucher in a set file format for subsequent viewing and archiving. The file format is determined based on actual business needs and is not limited here. For example, the file format can be Excel format or PDF format.

[0038] The technical solution of the present application improves the flexibility of the accounting engine by decoupling the voucher template from the source code of the accounting engine and adopting configurable business-finance data mapping relationships and voucher compilation rules. When the business file changes, it is only necessary to adjust the template configuration to complete the adaptation, which gets rid of the dilemma of frequently modifying the engine code, reduces the coding workload, and is conducive to improving development efficiency. The dynamic generation mechanism of voucher elements enables the conversion process of business data to accounting language to maintain both standardization and scenario adaptability. Based on the voucher elements, accounting vouchers are generated to ensure the accuracy of accounting voucher generation. The configuration-driven design of the technical solution of the present application not only improves the maintenance efficiency of the template, but also ensures timely response to changes in compilation rules through built-in voucher compilation rules, greatly shortening the rule update cycle. The technical solution of the present application builds an intelligent middle layer between business definition and financial conversion, which significantly improves the scalability and operation and maintenance convenience of the accounting engine while maintaining accounting accuracy.

[0039] In an optional embodiment, the business and financial data mapping relationship includes: at least one of: subject mapping relationship, account book correspondence relationship and accounting scenario association relationship; the voucher preparation rules include: at least one of: debit and credit balance rule, amount rounding rule, summary generation rule, voucher number rule and date rule.

[0040] The account mapping relationship is used to automatically convert accounts in accounting vouchers and determine the corresponding accounting account for a business document based on the corresponding project type and settlement customer. For example, if the settlement customer for a business document is Telecommunications Company A and the project type is a text message purchase contract, the account mapping relationship can determine that the corresponding accounting account for the business document is Accounts Payable.

[0041] Ledger mappings determine the corresponding ledger for business documents. Ledgers in voucher templates are selected from existing ledgers in the financial system. Ledgers are used to record economic transactions, systematically and continuously reflecting a company's financial status and operating results. They are crucial for corporate accounting. Ledgers can be categorized by purpose, including chronological ledgers such as cash journals, classified ledgers such as general ledgers, and reference ledgers. Ledgers are related to business types.

[0042] Accounting scenario relationships are used to identify the accounting scenarios corresponding to business documents. Accounting scenarios refer to the specific business contexts and environments involved in an enterprise's accounting. Accounting scenarios are related to business types. Examples include raw material procurement, production material requisitions, labor costs, and manufacturing expenses. Account mapping relationships, ledger correspondence relationships, and accounting scenario relationships are used to identify account elements, ledger elements, and accounting scenario elements in accounting documents, respectively.

[0043] Optionally, the specific content of the account mapping relationship, account book correspondence relationship, and accounting scenario association relationship is related to specific business needs and is not limited here. It can be determined through communication with financial personnel.

[0044] Among them, the debit-debit balance rule requires that the total debit amount of each accounting entry must equal the total credit amount. This rule ensures that the accounting equation remains balanced in every transaction, thereby ensuring the accuracy and reliability of financial statements. The rounding rule refers to the rounding or other rounding methods used to ensure the accuracy and consistency of amounts in accounting processing. The rounding rule is usually used to process amounts after the decimal point to avoid calculation errors caused by the values ​​after the decimal point. The summary generation rule is used to automatically generate a voucher summary that briefly describes the content of the economic transaction. The voucher numbering rule is used to determine how the voucher number is generated. It is usually numbered in sequence by date, transaction type, etc. to ensure the uniqueness and continuity of the voucher number. The date rule is used to specify how the voucher date is determined. It is usually the date of the transaction or the accounting date to ensure the accuracy and consistency of the voucher date.

[0045] Among them, the summary generation rule is used to determine the summary elements in the accounting voucher, and the date rule is used for the time element in the accounting voucher.

[0046] The above technical solution provides a practical solution for determining the business-financial data mapping relationship and the voucher preparation rules. It supports converting business data into accounting language in multiple dimensions, and supports multi-dimensional constraints on the rules and conditions for generating accounting vouchers. It not only ensures the compliance and accuracy of the generation of accounting vouchers, but also adapts to the personalized needs of enterprises in different industries and of different sizes, which is conducive to improving the efficiency of generating accounting vouchers.

[0047] In an optional embodiment, determining the voucher elements corresponding to the target business file based on the target business file, the business-financial data mapping relationship and the voucher preparation rules includes: determining the business type, project type, settlement customer, expense type and business date corresponding to the target business file; determining the account element corresponding to the target business file based on the project type, the settlement customer and the account mapping relationship; determining the debit and credit elements corresponding to the target business file based on the expense type, the account element and the settlement customer; determining the account book element and accounting scenario element corresponding to the target business file based on the business type and the account book correspondence relationship and the accounting scenario association relationship; determining the time element corresponding to the target business file based on the business date and the date rule; generating the summary element corresponding to the target business file based on the project type, the settlement customer, the expense type and the summary generation rule; and using the account element, the debit and credit element, the account book element, the accounting scenario element, the time element and the summary element as the voucher elements corresponding to the target business file.

[0048] The key fields in a business document, including transaction type, project type, settlement customer, expense type, and transaction date, collectively constitute a complete description of a business activity. The transaction type identifies the essential nature of the transaction; examples include sales, procurement, or services. The project type identifies the specific business line or cost center to which the business document belongs. The settlement customer clarifies the transaction partner. The expense type distinguishes the nature of the expenditure; examples include travel expenses, entertainment expenses, or research and development expenses. The transaction date refers to the date the transaction occurred.

[0049] The project type and settlement customer affect the account elements associated with business documents. If any of these items change, the corresponding account elements in the business document may change. If the project type and settlement customer are fixed, the corresponding account elements in the business document can be determined based on the account mapping relationship.

[0050] Once the account elements are determined, the corresponding debit and credit elements of the target business document are determined based on the expense type, account element, and settlement customer. Debit and credit elements include debit and credit elements. Debit and credit elements must at least identify the borrower, borrower role, and borrower amount. The borrower and borrower role are determined based on the account element and settlement customer, while the expense type determines the borrower amount. The account book elements and accounting scenario elements corresponding to the business document are both related to the business type of the business document. Account book correspondences are used to determine the corresponding account book elements of the target business document, while accounting scenario associations are used to determine the corresponding accounting scenario elements of the target business document.

[0051] Time elements are related to the transaction time of a business document, and date rules specify how the document date is determined. Once the transaction time is determined, the corresponding time element of the target business document can be determined based on the date rules. Summary elements generally include the project type, settlement customer, and expense type. Summary elements typically provide a general description of the economic transaction content involved in accounting documents, ledger records, etc., used to reflect the basic situation and key points of the economic transaction, allowing users of accounting information to quickly understand the business background and content. For example, a summary element might be "Product A sold to Company B, generating revenue of 10,000 yuan."

[0052] Account elements, debit and credit elements, account book elements, accounting scenario elements, time elements and summary elements are used as voucher elements corresponding to the target business document, constituting the main components of the accounting voucher.

[0053] The above technical solution provides a practical solution for determining voucher elements. Based on the business-finance data mapping relationship and voucher compilation rules in the voucher template, the voucher elements corresponding to the target business document are determined, ensuring the accounting language standardization and business scenario compatibility of the voucher elements. Based on the voucher elements, accounting vouchers are generated for the target business document, ensuring the accuracy of the generated accounting vouchers.

[0054] In an optional implementation, after generating an accounting voucher for the target business file based on the voucher element, the method further includes: displaying the voucher content of the accounting voucher through the voucher generation interface and generating a voucher verification notification; obtaining voucher verification feedback for the voucher verification notification, and obtaining voucher modification data when the voucher verification feedback is that the verification fails; determining the target element corresponding to the voucher modification data in the voucher element; modifying the target element based on the voucher modification data, and updating the accounting voucher based on the obtained modification result.

[0055] After the accounting engine generates the accounting voucher for the target business file, the voucher content of the accounting voucher is displayed through the voucher generation interface. The voucher verification notification is generated by the accounting engine after the accounting voucher is generated for the target business file, and is used to notify relevant personnel to verify the voucher content displayed on the voucher generation interface. The voucher verification feedback is used to determine whether the voucher content of the accounting voucher is incorrect. Optionally, the voucher verification feedback includes: verification passed and verification failed. Verification passed indicates that the voucher content of the accounting voucher is correct, and verification failed indicates that the voucher content of the accounting voucher is incorrect. In the case where the voucher feedback is verification failed, the voucher modification data is obtained. Among them, the voucher modification data is used as a data basis to correct the voucher content of the accounting voucher. The voucher elements in the accounting voucher are the main components of the accounting voucher. The voucher content of the accounting voucher is actually to correct the voucher elements in the accounting voucher. Among them, the target element is determined based on the voucher modification data and is the voucher element that needs to be modified in the accounting voucher. Optionally, the voucher modification data records modification opinions on the target elements, the target elements are modified based on the modification opinions to obtain modification results, and the accounting voucher is updated based on the modification results.

[0056] The above technical solution provides a fault-tolerant mechanism. After the accounting voucher is generated, relevant personnel are invited to intervene to check and confirm the voucher content of the accounting voucher. If the voucher content is incorrect, the target elements to be modified in the accounting voucher are modified according to the obtained voucher modification data, which is conducive to improving the accuracy of the accounting voucher.

[0057] Example 2

[0058] Figure 2 This is a flow chart of the accounting voucher generation method provided in Example 2. This embodiment is further optimized based on the above embodiment.

[0059] like Figure 2 As shown, the method includes:

[0060] S210. In response to a click operation on a template new control in the template configuration interface, a correspondence between account book elements and business types is configured for the new voucher template.

[0061] The template configuration interface is a visual interface provided by the accounting engine. It supports human-computer interaction, dragging, and clicking, and contains controls for adding templates. If the accounting engine detects a click on a control in the template configuration interface, it indicates that a new voucher template needs to be configured in the accounting engine.

[0062] Configuring a new voucher template essentially involves configuring how to convert business data in business documents into accounting language, as well as the rules and conditions for preparing accounting vouchers. Specifically, you configure the mapping between ledger elements and business types for the new voucher template—that is, the ledger mapping relationship. Optionally, in the template configuration interface, you can select the ledger to use for generating the voucher. The ledger is selected from existing ledgers in the financial system via the drop-down menu. The selected ledger becomes the ledger element, which is associated with at least two candidate accounts.

[0063] S220. In the newly added voucher template, configure the mapping relationship between the account element, the item type, and the settlement customer.

[0064] Project types and settlement customers affect accounting accounts. In new voucher templates, you configure the mapping relationship between account elements and project types and settlement customers, that is, the account mapping relationship. The account determined by the project type and settlement customer in the candidate account list becomes the account element in the accounting voucher.

[0065] S230. In the newly added voucher template, configure the association relationship between the accounting scenario elements and the business type.

[0066] In a new voucher template, you configure the association between accounting scenario elements and business types, also known as accounting scenario associations. Based on these associations, you can determine the accounting scenario elements in the accounting voucher when the business type is determined.

[0067] S240. In the newly added voucher template, configure the expense type, the account element, and the corresponding relationship between the settlement customer and the debit and credit elements.

[0068] Credit and debit elements include debit elements and credit elements. Credit and debit elements must at least define the credit subject, credit role, and credit amount. The credit subject and credit role are determined based on the account element and settlement customer, while the expense type determines the credit amount.

[0069] S250. Configure at least one of the debit / credit balance rule, the amount rounding rule, the summary generation rule, the voucher number rule, and the date rule of the newly added voucher template, and publish the newly added voucher template after the configuration is completed.

[0070] Debit / credit balance rules, amount rounding rules, summary generation rules, voucher numbering rules, and date rules are voucher preparation rules and are used to ensure the accuracy and compliance of voucher generation.

[0071] The debit-credit balance rule requires that the total debit amount of each accounting entry must equal the total credit amount. This rule ensures that the accounting equation remains balanced in every transaction, thereby guaranteeing the accuracy and reliability of financial statements. The rounding rule refers to the rounding or other rounding methods used in accounting to ensure the accuracy and consistency of the amounts. The rounding rule is usually used to process amounts after the decimal point to avoid calculation errors caused by the values ​​after the decimal point. The summary generation rule is used to automatically generate a voucher summary that briefly describes the content of the economic transaction. The voucher numbering rule is used to determine how the voucher number is generated. It is usually numbered in sequence by date, transaction type, etc. to ensure the uniqueness and continuity of the voucher number. The date rule is used to specify how the voucher date is determined. It is usually the date of the transaction or the accounting date to ensure the accuracy and consistency of the voucher date.

[0072] The technical solution of this application provides a practical and feasible solution for configuring accounting templates. By decoupling voucher templates from the accounting engine's source code, it adopts configurable business-finance data mapping relationships and voucher compilation rules, replacing the hard-coded voucher templates in the accounting engine's source code. This significantly reduces the customization cost and development time of a custom accounting engine. It also improves the flexibility and scalability of the accounting engine, allowing the business-finance data mapping relationships and voucher compilation rules to be adjusted and updated in real time according to business needs, thereby improving the automation and accuracy of voucher generation.

[0073] In an optional embodiment, the method further includes: in response to receiving a template modification request, determining an invalid voucher template to be modified in the candidate voucher templates; according to the template modification request, modifying the business-financial data mapping relationship and / or voucher preparation rules in the invalid voucher template to obtain a new voucher template; and using the new voucher template to update the invalid voucher template.

[0074] The template modification request is used to request a modification of an accounting template in the accounting engine. In response to receiving the template modification request, the accounting engine identifies an invalidated voucher template from the candidate voucher templates to be modified. An invalidated voucher template is a voucher template that requires modification. This modification may be due to changes in the business-financial data mapping relationship or voucher compilation rules within the invalidated voucher template. Alternatively, changes in both the business-financial data mapping relationship and the voucher compilation rules may necessitate modification.

[0075] Based on the template modification request, the accounting engine modifies the business-finance data mapping relationship and / or voucher compilation rules in the invalid voucher template to obtain a new voucher template. The invalid voucher template is updated with the new voucher template.

[0076] The above technical solution provides a practical template modification solution, which is suitable for modifying the voucher template in the accounting engine through visual configuration when the business-financial data mapping relationship and / or voucher preparation rules change. There is no need to adjust the source code of the accounting engine, which saves a lot of customized development workload and improves the flexibility of the accounting engine.

[0077] Example 3

[0078] Figure 3 This is a structural diagram of the accounting voucher generation device provided in Example 3 of the present application. This embodiment can be applied to the situation where accounting vouchers are generated based on business documents such as contracts and invoices in a business-finance integration scenario. The device can be implemented by software and / or hardware and can be integrated into electronic devices such as smart terminals.

[0079] like Figure 3 As shown, the accounting voucher generation device, configured in the accounting engine, may include:

[0080] The voucher template matching module 310 is configured to, in response to a click operation on a voucher generation control in the voucher generation interface, determine a target voucher template from candidate voucher templates that matches the target business file to be recorded; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule;

[0081] A voucher element determination module 320 is configured to determine the voucher element corresponding to the target business document based on the target business document, the business-finance data mapping relationship, and the voucher compilation rule;

[0082] The accounting voucher generation module 330 is used to generate an accounting voucher for the target business file based on the voucher elements.

[0083] The technical solution of the present application improves the flexibility of the accounting engine by decoupling the voucher template from the source code of the accounting engine and adopting configurable business-finance data mapping relationships and voucher compilation rules. When the business file changes, it is only necessary to adjust the template configuration to complete the adaptation, which gets rid of the dilemma of frequently modifying the engine code, reduces the coding workload, and is conducive to improving development efficiency. The dynamic generation mechanism of voucher elements enables the conversion process of business data to accounting language to maintain both standardization and scenario adaptability. Based on the voucher elements, accounting vouchers are generated to ensure the accuracy of accounting voucher generation. The configuration-driven design of the technical solution of the present application not only improves the maintenance efficiency of the template, but also ensures timely response to changes in compilation rules through built-in voucher compilation rules, greatly shortening the rule update cycle. The technical solution of the present application builds an intelligent middle layer between business definition and financial conversion, which significantly improves the scalability and operation and maintenance convenience of the accounting engine while maintaining accounting accuracy.

[0084] Optionally, the business and financial data mapping relationship includes: at least one of: subject mapping relationship, account book correspondence relationship and accounting scenario association relationship; the voucher preparation rules include: at least one of: debit and credit balance rule, amount rounding rule, summary generation rule, voucher number rule and date rule.

[0085] Optionally, the voucher element determination module 320 includes: a business data determination submodule, configured to determine the business type, project type, settlement customer, expense type, and business date corresponding to the target business file; an account element determination submodule, configured to determine the account element corresponding to the target business file based on the project type, the settlement customer, and the account mapping relationship; a credit and debit element determination submodule, configured to determine the credit and debit elements corresponding to the target business file based on the expense type, the account element, and the settlement customer; a scenario element determination submodule, configured to determine the account book element and the accounting scenario element corresponding to the target business file based on the business type, the account book correspondence relationship, and the accounting scenario association relationship; a time element determination submodule, configured to determine the time element corresponding to the target business file based on the business date and the date rule; a summary element determination submodule, configured to generate a summary element corresponding to the target business file based on the project type, the settlement customer, the expense type, and the summary generation rule; and a voucher element determination submodule, configured to use the account element, the credit and debit element, the account book element, the accounting scenario element, the time element, and the summary element as the voucher element corresponding to the target business file.

[0086] Optionally, the device also includes: a voucher content display module, which is used to display the voucher content of the accounting voucher through the voucher generation interface and generate a voucher verification notification after the accounting voucher is generated for the target business file based on the voucher element; a modification data acquisition module, which is used to obtain voucher verification feedback for the voucher verification notification, and obtain voucher modification data when the voucher verification feedback is verification failure; a target element modification module, which is used to determine the target element corresponding to the voucher modification data in the voucher element; an accounting voucher update module, which is used to modify the target element based on the voucher modification data, and update the accounting voucher based on the obtained modification result.

[0087] Optionally, the device also includes: an invalid template determination module, used to determine the invalid voucher template to be modified in the candidate voucher template in response to receiving a template modification request; a template modification module, used to modify the business and financial data mapping relationship and / or voucher preparation rules in the invalid voucher template according to the template modification request to obtain a new voucher template; a template update module, used to adopt the new voucher template to update the invalid voucher template.

[0088] Optionally, the device also includes: a first relationship configuration module, which is used to configure the correspondence between account book elements and business types for the newly added voucher template in response to a control click operation on a new template control in the template configuration interface; a second relationship configuration module, which is used to configure the mapping relationship between account elements, project types and settlement customers in the newly added voucher template; a third relationship configuration module, which is used to configure the association relationship between accounting scenario elements and business types in the newly added voucher template; a fourth relationship configuration module, which is used to configure the correspondence between expense types, the account elements, the settlement customers and debit and credit elements in the newly added voucher template; a rule configuration module, which is used to configure at least one of the debit and credit balance rules, the amount rounding rules, the summary generation rules, the voucher numbering rules and the date rules of the newly added voucher template, and publish the newly added voucher template after the configuration is completed.

[0089] The accounting voucher generation device provided by the embodiment of the invention can execute the accounting voucher generation method provided by any embodiment of the present application, and has the corresponding performance modules and beneficial effects for executing the accounting voucher generation method.

[0090] In the technical solution of this application, the user data involved is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0091] Example 4

[0092] According to embodiments of the present application, the present application also provides an electronic device, a readable storage medium, and a computer program product.

[0093] Figure 4The structure diagram of the electronic device 410 that can be used to implement the embodiment is shown. The electronic device 410 includes at least one processor 411, and a memory connected to the at least one processor 411 in communication, such as a read-only memory (ROM) 412, a random access memory (RAM) 413, etc., wherein the memory stores a computer program that can be executed by the at least one processor, and the processor 411 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 412 or the computer program loaded from the storage unit 418 into the random access memory (RAM) 413. Various programs and data required for the operation of the electronic device 410 can also be stored in the RAM 413. The processor 411, ROM 412 and RAM 413 are connected to each other via a bus 414. An input / output (I / O) interface 415 is also connected to the bus 414.

[0094] Multiple components in electronic device 410 are connected to I / O interface 415, including an input unit 416, such as a keyboard, mouse, etc.; an output unit 417, such as various types of displays, speakers, etc.; a storage unit 418, such as a magnetic disk, optical disk, etc.; and a communication unit 419, such as a network card, modem, wireless communication transceiver, etc. The communication unit 419 allows electronic device 410 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0095] Processor 411 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of processor 411 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processor, controller, microcontroller, etc. Processor 411 executes the various methods and processes described above, such as the accounting voucher generation method.

[0096] In some embodiments, the accounting voucher generation method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 418. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 410 via ROM 412 and / or communication unit 419. When the computer program is loaded into RAM 413 and executed by processor 411, one or more steps of the accounting voucher generation method described above can be performed. Alternatively, in other embodiments, processor 411 can be configured to execute the accounting voucher generation method in any other appropriate manner (e.g., by means of firmware).

[0097] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0098] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable accounting document generation device, so that when executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0099] In the context of the present application, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0100] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0101] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as an accounting voucher generation server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0102] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.

[0103] The present application also discloses a computer program product comprising a computer program that, when executed by a processor, implements the accounting voucher generation method provided in any of the embodiments of the present application. This program product and the accounting voucher generation method disclosed in each embodiment of the present application share the same inventive concept and are therefore not described in detail here.

[0104] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of this application can be achieved. This is not limited herein.

[0105] The above specific embodiments do not constitute a limitation on the scope of protection of this application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application shall be included within the scope of protection of this application.

Claims

1. A method for generating accounting vouchers, characterized in that: Executed by an accounting engine, the method includes: In response to a click operation on a voucher generation control in a voucher generation interface, a target voucher template matching the target business file to be recorded is determined from candidate voucher templates; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule; Determining the voucher element corresponding to the target business document according to the target business document, the business-finance data mapping relationship, and the voucher compilation rule; Based on the voucher elements, an accounting voucher is generated for the target business document.

2. The method according to claim 1, characterized in that The business and financial data mapping relationship includes: at least one of: subject mapping relationship, account book corresponding relationship and accounting scenario association relationship; the voucher preparation rules include: at least one of: debit and credit balance rule, amount rounding rule, summary generation rule, voucher number rule and date rule.

3. The method according to claim 2, characterized in that The step of determining the voucher element corresponding to the target business file according to the target business file, the business-finance data mapping relationship, and the voucher compilation rule includes: Determine the business type, project type, settlement customer, expense type, and business date corresponding to the target business file; Determining the subject element corresponding to the target business file based on the project type, the settlement customer, and the subject mapping relationship; Determining the debit and credit elements corresponding to the target business file based on the expense type, the account element, and the settlement customer; Determining the account book element and the accounting scenario element corresponding to the target business file based on the business type, the account book correspondence relationship, and the accounting scenario association relationship; Determining a time element corresponding to the target business file based on the business date and the date rule; generating a summary element corresponding to the target business document based on the project type, the settlement customer, the fee type, and the summary generation rule; The subject element, the debit and credit element, the account book element, the accounting scenario element, the time element and the summary element are used as voucher elements corresponding to the target business document.

4. The method according to claim 1, wherein After generating an accounting voucher for the target business file based on the voucher elements, the method further includes: Display the voucher content of the accounting voucher through the voucher generation interface and generate a voucher verification notice; Obtaining credential verification feedback for the credential verification notification, and if the credential verification feedback indicates verification failure, obtaining credential modification data; determining, among the credential elements, a target element corresponding to the credential modification data; The target element is modified based on the voucher modification data, and the accounting voucher is updated based on the obtained modification result.

5. The method according to claim 1, wherein The method further comprises: In response to receiving the template modification request, determining an invalid voucher template to be modified from the candidate voucher templates; According to the template modification request, the business-finance data mapping relationship and / or the voucher preparation rules in the invalid voucher template are modified to obtain a new voucher template; The invalid voucher template is updated using the new voucher template.

6. The method according to claim 2, characterized in that The method further comprises: In response to a click operation on a template new control in the template configuration interface, a correspondence between account book elements and business types is configured for the new voucher template; In the newly added voucher template, configure the mapping relationship between the account element, the item type, and the settlement customer; In the newly added voucher template, configure the association between the accounting scenario elements and the business type; In the newly added voucher template, configure the expense type, the account element, and the corresponding relationship between the settlement customer and the debit and credit elements; At least one of the debit and credit balance rule, the amount rounding rule, the summary generation rule, the voucher number rule and the date rule of the newly added voucher template is configured, and the newly added voucher template is published after the configuration is completed.

7. A device for generating accounting vouchers, characterized in that: Configured in the accounting engine, the device includes: a voucher template matching module, configured to, in response to a click operation on a voucher generation control in a voucher generation interface, determine a target voucher template from candidate voucher templates that matches a target business file to be recorded; wherein the target voucher template is pre-configured with at least one business-finance data mapping relationship and at least one voucher compilation rule; a voucher element determination module, configured to determine the voucher element corresponding to the target business document based on the target business document, the business-finance data mapping relationship, and the voucher compilation rule; An accounting voucher generation module is used to generate an accounting voucher for the target business file based on the voucher elements.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the accounting voucher generation method according to any one of claims 1 to 6 is implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein: When the processor executes the computer program, the accounting voucher generation method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the accounting voucher generation method according to any one of claims 1 to 6.

Citation Information

Cited By

  • Accounting method and system based on ocean multi-source business data, and medium

    CN120852079A

  • Multi-service achievable capacity voucher causal settlement method and device and storage medium

    CN121280178A

  • Universal method and system for visually converting business documents into financial vouchers

    CN121681652A