An electronic certificate generation method and device, an electronic device, and a storage medium

By parsing and verifying the correlation of electronic vouchers, differentiated accounting process chain information is generated, which solves the problems of inconsistent system parsing and lack of differentiation in accounting processes in traditional electronic voucher processing, and improves the accuracy and standardization of financial data.

CN121414525BActive Publication Date: 2026-03-24GUANGDONG SUYUAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

In traditional electronic voucher processing, inconsistent parsing and single verification dimensions between systems lead to inconsistencies in voucher business information dimensions and a lack of differentiation in the accounting process, which can easily cause financial data distortion and fail to meet the requirements of accuracy and standardization.

Method used

The electronic voucher center parses the target voucher, matches it with business document data for correlation verification, generates first and second electronic vouchers, and generates differentiated accounting process chain information based on different operation modes to adapt to the accounting needs of vouchers in different statuses.

Benefits of technology

It has achieved unified management of electronic vouchers and standardized accounting processes, improved the accuracy and standardization of financial data, avoided data distortion caused by disordered accounting of abnormal vouchers, and met the requirements of accuracy and standardization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121414525B_ABST
    Figure CN121414525B_ABST
Patent Text Reader

Abstract

The application provides an electronic voucher generation method and device, electronic equipment and storage medium, the method comprises the following steps: analyzing a target electronic voucher collected by an electronic voucher center to obtain voucher business information, and performing correlation verification on the voucher business information based on business document data matched based on the voucher business information to obtain a first electronic voucher and a second electronic voucher; performing account entry process analysis based on an account entry operation mode of the first electronic voucher and an abnormal operation mode corresponding to abnormal verification information of the second electronic voucher, in combination with a preset account entry stage logic flow to obtain first account entry process chain information and second account entry process chain information, respectively; performing account entry on the first electronic voucher according to the first account entry process chain information to obtain a first account entry electronic voucher, and performing account entry on the second electronic voucher according to the second account entry process chain information to obtain a second account entry electronic voucher. The application improves the accuracy and standardization of financial processing.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer, in particular to an electronic voucher generation method and device, electronic equipment and storage medium. BACKGROUND

[0002] In the field of enterprise financial digital management, traditional electronic voucher processing adopts system decentralized analysis and verification + fixed process accounting. That is, each business system respectively deploys an independent voucher analysis module. Because the analysis standards between systems are not unified, different channel and format electronic vouchers will be analyzed into different dimensions of business information. At the same time, the verification rules of each system are in the form of fixed code, which can only verify the integrity of the basic fields of the voucher, and cannot associate business documents to complete deep correlation verification. In the accounting link, all vouchers use the same set of fixed accounting processes, and no adaptive process is set according to whether the voucher has data deviation or not. Although there is no manual intervention in the whole process, the data standards between systems are not unified, the verification dimension is single, and the accounting process is not differentiated.

[0003] However, from the perspective of voucher analysis and verification, multi-system heterogeneous analysis leads to non-uniformity of voucher business information dimensions, and single fixed verification rules cannot verify the data consistency of vouchers and business documents, resulting in low accuracy of voucher basic data. From the perspective of the accounting link, the non-differentiated fixed accounting process cannot adapt to the processing needs of different state vouchers, and abnormal vouchers are easy to cause financial data distortion when accounting according to the regular process. At the same time, the independent process logic of each system lacks unified standard constraints, and the format and link of the accounting data cannot be kept consistent. The overall solution cannot meet the precision requirements of electronic voucher whole life cycle management, and does not conform to the standardization specification of financial work. SUMMARY

[0004] The present application provides an electronic voucher generation method, device, electronic equipment and storage medium, aiming to solve the problems of insufficient precision and lack of standardization in financial processing, and to realize the whole process management of electronic vouchers to meet the precision requirements and conform to the standardization specification, and to improve the precision and standardization of financial processing.

[0005] In a first aspect, the present application provides an electronic voucher generation method, comprising:

[0006] analyzing the target electronic voucher collected by the electronic voucher center to obtain voucher business information, and performing correlation verification on the voucher business information based on the business document data matched based on the voucher business information to obtain a first electronic voucher and a second electronic voucher;

[0007] According to the abnormal operation mode corresponding to the check abnormal information of the second electronic voucher and the entry operation mode of the first electronic voucher, entry process analysis is performed in combination with a preset entry stage logical flow, and first entry process chain information and second entry process chain information are obtained respectively.

[0008] The first electronic voucher is entered according to the first entry process chain information, and a first entry electronic voucher is obtained, and the second electronic voucher is entered according to the second entry process chain information, and a second entry electronic voucher is obtained.

[0009] In a second aspect, the present application further provides an electronic voucher generation device for implementing the electronic voucher generation method in the first aspect; the electronic voucher generation device comprises:

[0010] An association check module is configured to analyze a target electronic voucher collected by an electronic voucher center to obtain voucher business information, and perform association check on the voucher business information based on business document data matched by the voucher business information, so as to obtain a first electronic voucher and a second electronic voucher.

[0011] An entry process analysis module is configured to perform entry process analysis in combination with a preset entry stage logical flow based on an abnormal operation mode corresponding to check abnormal information of a second electronic voucher and an entry operation mode of a first electronic voucher, and obtain first entry process chain information and second entry process chain information respectively.

[0012] An electronic voucher generation module is configured to enter the first electronic voucher according to the first entry process chain information to obtain a first entry electronic voucher, and enter the second electronic voucher according to the second entry process chain information to obtain a second entry electronic voucher.

[0013] In a third aspect, the present application further provides an electronic device, which comprises a memory for storing a computer software program, and a processor for reading and executing the computer software program, thereby implementing the electronic voucher generation method as described above.

[0014] In a fourth aspect, the present application further provides a non-transitory computer readable storage medium, wherein the storage medium stores a computer software program, and the computer software program is executed by a processor to implement the electronic voucher generation method as described above.

[0015] In a fifth aspect, the present application further provides a computer program product comprising a computer program, and the computer program is executed by a processor to implement the electronic voucher generation method as described above.

[0016] The electronic voucher generation method provided in this invention is based on the unified parsing of target electronic vouchers by an electronic voucher center to obtain voucher business information. Then, correlation verification is performed through business document data to obtain classified first and second electronic vouchers, achieving unified management of electronic vouchers. Based on different operation modes of the two types of electronic vouchers combined with preset accounting logic, differentiated first and second accounting process chain information is generated. This provides standardized and exclusive accounting processes for vouchers in different states, adapting to differentiated needs and eliminating the need for a unified accounting logic standard, thus ensuring the standardization of the accounting process. Two types of accounting electronic vouchers are generated based on the differentiated process chain information, achieving both efficient and compliant accounting of normal vouchers and standardized special processing of abnormal vouchers. This avoids data distortion caused by disordered accounting of abnormal vouchers, thereby improving the accuracy of financial data and the standardization of the accounting process. It solves the problems of insufficient accuracy and lack of standardization in financial processing, achieving full-process management of electronic vouchers that meets both accuracy requirements and standardization specifications, improving the accuracy and standardization of financial processing. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating the electronic voucher generation method provided in an embodiment of the present invention;

[0018] Figure 2 This is a schematic diagram of the electronic voucher generation device provided in an embodiment of the present invention;

[0019] Figure 3 An embodiment diagram of the electronic device provided in this invention;

[0020] Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with the present invention. Detailed Implementation

[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

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

[0023] In the description of this invention, the term "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this invention is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary details. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed herein.

[0024] Optionally, see Figure 1 , Figure 1 This is a flowchart illustrating the electronic voucher generation method provided by the present invention. In this embodiment of the invention, the executing entity of the electronic voucher generation method is an electronic voucher generation device. Therefore, the electronic voucher generation method includes:

[0025] Step 10: Parse the target electronic voucher collected by the electronic voucher center to obtain voucher business information, and perform correlation verification on the voucher business information based on the business document data obtained by matching the voucher business information to obtain the first electronic voucher and the second electronic voucher.

[0026] Optionally, the electronic voucher generation device performs parsing operations on the target electronic vouchers collected by the electronic voucher center. The target electronic vouchers refer to various electronic accounting vouchers obtained from external systems and platforms, including but not limited to electronic VAT invoices, electronic railway tickets, electronic air transport itineraries, electronic bank receipts, and electronic bank statements. Specifically, it calls a preset electronic voucher parsing service to identify the file format (such as OFD format, XML format, etc.) of the target electronic voucher, and then extracts all business information contained in the voucher according to the corresponding parsing rules. The voucher business information refers to various data related to business carried on the electronic voucher, including voucher issuing entity information, voucher receiving entity information, voucher amount information, voucher business occurrence time information, and voucher corresponding business type information.

[0027] Furthermore, the electronic voucher generation device retrieves business document data that matches the aforementioned voucher business information from a preset business document database. The business document data refers to the data contained in the internal business processing documents corresponding to the electronic voucher, such as payment application data, electricity purchase settlement data, asset card data, accounting voucher data, etc.

[0028] Furthermore, the electronic voucher generation device initiates a correlation verification mechanism to compare the voucher business information with the matched business document data from multiple dimensions. Optionally, the core dimensions of correlation verification in this embodiment of the invention include, but are not limited to: consistency between the entity that initiated the voucher business and the entity that handled the business document; consistency between the voucher amount and the business document amount; matching between the voucher business occurrence time and the business execution time of the business document; and conformity between the business type corresponding to the voucher and the business type of the business document.

[0029] Furthermore, the electronic voucher generation device classifies the target electronic vouchers based on the correlation verification results: target electronic vouchers that have no deviation or abnormality in each dimension during the verification process are classified as first electronic vouchers; target electronic vouchers that have at least one dimension of data mismatch or abnormality during the verification process are classified as second electronic vouchers.

[0030] In one embodiment, the electronic voucher generation device collects a target electronic voucher in the form of a bank electronic receipt through the electronic voucher center, parses the bank electronic receipt, and extracts the voucher business information as follows: the payer is a power grid branch, the payee is a power equipment supplier, the payment amount is 1 million yuan, the payment date is May 10, 2025, and the business type is equipment purchase payment.

[0031] Furthermore, the electronic voucher generation device matches the corresponding equipment procurement payment application data from the business document database. This application data records that the applicant is a power grid branch, the payee is a power equipment supplier, the requested payment amount is 1 million yuan, the application date is May 10, 2025, and the business type is equipment procurement payment. After correlation verification, the voucher's business information is consistent with the business document data in all dimensions, with no anomalies. Therefore, this bank electronic receipt is classified as the first electronic voucher.

[0032] If the payment amount parsed from the above bank electronic receipt is 1.2 million yuan, while the payment application data matched shows a payment amount of 1 million yuan, the amount data does not match and there is an anomaly, then the bank electronic receipt is classified as a second electronic voucher.

[0033] Step 20: Based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, and combined with the preset accounting stage logic flow, the accounting process is analyzed to obtain the first accounting process chain information and the second accounting process chain information respectively.

[0034] Optionally, the preset accounting stage logic process refers to the standard process for electronic voucher accounting in advance by the enterprise, which covers key stages such as voucher information confirmation, accounting approval, system accounting, and file archiving.

[0035] Optionally, for the first electronic voucher, the electronic voucher generation device determines the accounting operation mode of the first electronic voucher. The accounting operation mode refers to the standardized accounting processing method preset for electronic vouchers without abnormalities, which includes core operation requirements such as voucher information verification, pre-archiving, and automatic accounting by the system.

[0036] Furthermore, the electronic voucher generation device analyzes the accounting process based on the accounting operation mode and the accounting stage logic flow to obtain the first accounting process chain information, as detailed in steps 201 to 204.

[0037] Optionally, for the second electronic voucher, the electronic voucher generating device determines the verification anomaly information of the second electronic voucher and locates the abnormal operation mode corresponding to the verification anomaly information. The abnormal operation mode refers to the preset targeted processing method for different types of verification anomalies, such as initiating a manual review process for abnormal amount and initiating an information correction process for abnormal subject information.

[0038] Furthermore, the electronic voucher generation device analyzes the accounting process based on the abnormal operation mode and the accounting stage logic flow to obtain the second accounting process chain information, as detailed in steps 205 to 208.

[0039] Step 30: Enter the first electronic voucher into the system according to the first accounting process chain information to obtain the first accounting electronic voucher, and enter the second electronic voucher into the system according to the second accounting process chain information to obtain the second accounting electronic voucher.

[0040] Optionally, for the first electronic voucher, the electronic voucher generation device performs the accounting operation on the first electronic voucher according to the information of the first accounting process chain. During the operation, the device sequentially completes the secondary verification of the first electronic voucher information, the entry of accounting information into the accounting system, the automatic generation of accounting vouchers, and the association and binding of accounting information with business document information according to each stage in the information of the first accounting process chain, so as to obtain the first accounting electronic voucher that has completed standardized accounting, and synchronizes the voucher to the electronic voucher database and the accounting file management module.

[0041] Optionally, for the second electronic voucher, the electronic voucher generation device performs the accounting operation on the second electronic voucher based on the information of the second accounting process chain. During the operation, the corresponding exception handling process is triggered according to the information of the second accounting process chain to resolve the exception. For example, for a second electronic voucher with an abnormal amount, a manual review process is initiated. After the review is confirmed and the information is corrected, the subsequent accounting steps are executed. The voucher correction information is entered, the exception handling record is retained, the accounting voucher is generated, and the voucher is associated and bound with the business documents and exception handling documents. After the entire process is completed, a second accounting electronic voucher with targeted accounting is obtained, and the voucher and exception handling related data are synchronized to the electronic voucher database and the accounting file management module.

[0042] In one embodiment, when the first electronic voucher is designated as a bank electronic receipt, the electronic voucher generation device first performs a secondary verification of its voucher business information according to the first accounting process chain information. After confirming that there is no deviation from the business document data, it automatically enters the accounting information of 1 million yuan equipment purchase payment into the accounting system, generates the corresponding accounting voucher at the same time, and associates and binds the bank electronic receipt with the payment application form to finally form the first accounting electronic voucher.

[0043] For bank electronic receipts that are classified as second electronic vouchers due to discrepancies in amount, the electronic voucher generation device first triggers a manual review process for abnormal amounts according to the second accounting process chain information. After the finance personnel review and confirm that there is an error in the bank receipt entry and that the actual amount should be 1 million yuan and complete the information correction, the device enters the corrected accounting information, retains the manual review record, generates the corresponding accounting voucher, and links and binds the bank electronic receipt, payment application form and review record to finally form the second accounting electronic voucher.

[0044] This invention, based on an electronic voucher center, performs unified parsing of target electronic vouchers to obtain voucher business information. Then, it performs correlation verification through business document data to obtain categorized first and second electronic vouchers, achieving unified management of electronic vouchers. Based on different operating modes of the two types of electronic vouchers and pre-set accounting logic, differentiated first and second accounting process chain information is generated. This provides standardized, dedicated accounting processes for vouchers in different states, adapting to differentiated needs and addressing the lack of a unified accounting logic standard, ensuring the standardization of the accounting process. By generating two types of accounting electronic vouchers based on differentiated process chain information, it achieves efficient and compliant accounting of normal vouchers and standardized, specialized handling of abnormal vouchers. This avoids data distortion caused by disordered accounting of abnormal vouchers, thereby improving the accuracy of financial data and the standardization of the accounting process. This achieves full-process management of electronic vouchers that meets both accuracy requirements and standardization specifications, improving the accuracy and standardization of financial processing.

[0045] Optionally, the processes of steps 201 to 204 include:

[0046] Step 201: Based on the entry start phase identifier information of each entry trigger condition corresponding to the entry operation mode, determine the entry start execution node in the entry phase logic flow, and initialize the phase execution sequence with the entry start execution node.

[0047] Optionally, the accounting operation mode includes several accounting trigger conditions. The accounting trigger conditions refer to the prerequisites that must be met to start the electronic voucher accounting process, such as the voucher information has been structured and stored, the voucher has been verified for correlation and there are no abnormalities.

[0048] Each accounting trigger condition corresponds to a unique accounting start-up stage identifier, which is a unique identifier used to mark the starting execution stage in the accounting stage logic flow.

[0049] Optionally, the electronic voucher generation device matches the entry start stage identifier information of each entry trigger condition corresponding to the entry operation mode with the identifiers of each stage execution node in the entry stage logic flow, and locates the corresponding entry start execution node, wherein the entry start execution node refers to the first process step in the entry stage logic flow that starts the entry operation.

[0050] Furthermore, the electronic voucher generation device initializes the stage execution sequence with the initiation execution node as the first element. The stage execution sequence refers to the ordered set of data used to record the execution steps of the initiation process.

[0051] In one embodiment, for the bank electronic receipt of the first electronic voucher, in its corresponding posting operation mode, the posting trigger condition is "the voucher has completed the correlation verification and there are no anomalies, and the voucher business information has been completed and structured storage." The posting start stage identifier information corresponding to this condition is "voucher information secondary verification." The electronic voucher generation device matches this identifier with the node identifier of the posting stage logic flow, determines the posting start execution node as "voucher information secondary verification node," and initializes the stage execution sequence with this node as the first element. At this time, the stage execution sequence only contains "voucher information secondary verification node."

[0052] Step 202: Based on the subsequent stage transfer conditions of the initial execution node in the accounting stage logic flow, and combined with the business attribute fields in the voucher business information of the first electronic voucher, determine the next target stage execution node that meets the subsequent stage transfer conditions.

[0053] Optionally, the electronic voucher generation device retrieves the subsequent stage transfer conditions corresponding to the initial execution node of the accounting stage in the accounting stage logic flow. The subsequent stage transfer conditions refer to the business rules or data standards that need to be met to move from the current stage execution node to the next stage execution node. At the same time, it extracts the business attribute fields from the voucher business information of the first electronic voucher. The business attribute fields refer to the fields in the voucher business information used to characterize core business features such as business type, business subject, and business amount.

[0054] Furthermore, the electronic voucher generation device compares the specific content of the business attribute fields with the subsequent stage transfer conditions one by one to determine whether the business attributes of the current first electronic voucher meet the corresponding transfer conditions, and then selects the next target stage execution node that meets the requirements. The next target stage execution node refers to the next accounting process step that can be entered after the accounting start execution node and meets the transfer conditions.

[0055] In one embodiment, the subsequent stage transfer condition corresponding to the initial execution node of the accounting entry, "Secondary Verification Node of Voucher Information," is "no deviation in the secondary verification of voucher business information, and the business type is a purchase payment business." The business attribute fields of the bank electronic receipt are extracted: the business type field is "equipment purchase payment," the business amount field is 1 million yuan, and the business entity field is a power grid branch and a power equipment supplier. After comparison, the secondary verification of the electronic voucher is found to be without deviation, and the business type meets the transfer condition. Therefore, the next target stage execution node is determined to be the "Purchase Payment Accounting Information Entry Node."

[0056] Step 203: Based on the list of business elements in the accounting logic flow of the next target stage execution node, determine whether the voucher business information of the first electronic voucher is fully covered, and obtain the stage execution status.

[0057] Optionally, the electronic voucher generation device obtains a list of business elements corresponding to the next target stage execution node in the accounting stage logic flow, wherein the list of business elements refers to the set of all core business data items required to complete the operation of the execution node in this stage.

[0058] Furthermore, the electronic voucher generation device matches the data items in the voucher business information of the first electronic voucher with the list item by item to verify whether the voucher business information can completely cover all business elements in the list, and obtain the stage execution status.

[0059] Among them, the stage execution status refers to the status indicator used to characterize whether the next target stage execution node can directly carry out the accounting operation. The stage execution status includes the executable status and the pending supplement status.

[0060] Optionally, if the voucher business information can completely cover all data items in the business element list, the stage execution status is determined to be "executable"; if the voucher business information has missing business elements, the stage execution status is determined to be "to be supplemented".

[0061] In one embodiment, the business element list corresponding to the next target stage execution node, "Purchase Payment Receipt Information Entry Node," includes "Payer Name, Payee Name, Payment Amount, Payment Transaction Type, and Corresponding Purchase Contract Number." Comparing the voucher business information of the bank's electronic receipt with the list reveals that it includes the Payer Name, Payee Name, Payment Amount, and Payment Transaction Type, but lacks the Corresponding Purchase Contract Number. Therefore, the execution status of this stage is determined to be "Pending Supplementation."

[0062] Step 204: Analyze the accounting process based on the stage execution sequence and the stage execution status of the next target stage execution node to obtain the first accounting process chain information.

[0063] Optionally, the accounting process is analyzed based on the stage execution sequence and the stage execution status of the next target stage execution node to obtain the first accounting process chain information, as detailed in steps 2041 to 2044.

[0064] Based on the actual business attributes of the first electronic voucher and combined with the accounting stage logic, this invention achieves dynamic generation of the accounting process chain. Therefore, it ensures that the accounting process chain fully matches the business type and data characteristics of the first electronic voucher, avoiding inconsistencies between the process and the business, and improving the adaptability of the accounting process. On the other hand, by pre-judging the stage execution status, data loss issues during process execution can be identified in advance, enabling proactive risk control of the accounting process and ensuring that subsequent accounting operations for the first electronic voucher can be completed compliantly. Simultaneously, the generated first accounting process chain information can serve as a standardized guide for accounting operations, ensuring that the accounting process for all electronic vouchers without anomalies is uniformly standardized.

[0065] Optionally, the process of steps 2041 to 2044 includes:

[0066] Step 2041: If the stage execution state is in the executable state, then update the next target stage execution node to the stage execution sequence to obtain the first updated stage execution sequence.

[0067] Optionally, if the execution status of this stage is executable, it means that the voucher business information of the first electronic voucher can completely cover the business element list corresponding to the node, and no additional data is needed. At this time, the electronic voucher generation device adds the next target stage execution node to the initialized stage execution sequence, completes the first update of the sequence, and obtains the first updated stage execution sequence. The next target stage execution node refers to the next accounting process step that can be entered after the accounting start execution node and meets the transfer conditions.

[0068] In one embodiment, the next target stage execution node corresponding to the first electronic voucher (a bank electronic receipt for a power grid branch company's payment of 1 million yuan to a power equipment supplier for equipment purchase) is the "Purchase Payment Receipt Information Entry Node," and the stage execution status of this node is determined to be executable (the voucher business information has been fully supplemented with the purchase contract number, covering the business element list). The electronic voucher generation device adds the "Purchase Payment Receipt Information Entry Node" to the initial stage execution sequence (the initial sequence only contains the "Voucher Information Secondary Verification Node"), obtaining the first updated stage execution sequence, which contains two execution nodes: the "Voucher Information Secondary Verification Node" and the "Purchase Payment Receipt Information Entry Node."

[0069] Step 2042: Based on the last execution node in the first updated stage execution sequence, execute the subsequent stage transfer conditions until there is no next stage node that satisfies the subsequent stage transfer conditions, update the first updated stage execution sequence, and obtain the second updated stage execution sequence.

[0070] Optionally, the electronic voucher generation device obtains the last execution node in the execution sequence of the first updated stage and retrieves the subsequent stage transfer conditions corresponding to the last execution node in the accounting stage logic flow.

[0071] Among them, the subsequent stage transfer conditions refer to the business rules or data standards that must be met to move from the current stage execution node to the next stage execution node.

[0072] Furthermore, the electronic voucher generation device, in conjunction with the business attribute fields in the voucher business information of the first electronic voucher, determines whether there is a next-stage node that meets the transfer condition. If there is a next-stage node that meets the condition, the node is updated to the first updated stage execution sequence to form a new updated sequence; the above process is repeated until there is no next-stage node that meets the subsequent stage transfer condition, and the final updated sequence obtained at this time is the second updated stage execution sequence.

[0073] In one embodiment, the final execution node of the first updated stage execution sequence is the "Purchase Payment Receipt Information Entry Node," whose corresponding subsequent stage transfer condition is "the receipt information is entered correctly and the association binding with the business document is completed." The electronic voucher generation device verifies the business attribute fields and entry information of the bank electronic receipt, determines that the transfer condition is met, and the corresponding next stage node is the "Purchase Payment Accounting Voucher Generation Node," so this node is added to the sequence, and the updated sequence contains three nodes. Then, with the "Purchase Payment Accounting Voucher Generation Node" as the final node, its subsequent stage transfer condition is "the accounting voucher is generated correctly and the information is complete." After determining that the condition is met, the next stage node is the "Electronic Voucher Archive Node," and the sequence is updated again. The "Electronic Voucher Archive Node" has no subsequent stage transfer condition and no corresponding next stage node. At this time, the second updated stage execution sequence is obtained, which contains four execution nodes: "Voucher Information Secondary Verification Node," "Purchase Payment Receipt Information Entry Node," "Purchase Payment Accounting Voucher Generation Node," and "Electronic Voucher Archive Node."

[0074] Step 2043: Sort the execution nodes of each stage in the second updated stage execution sequence according to the stage execution order to obtain the sorted stage execution sequence. Then check whether there are any missing intermediate stage nodes in the logical flow of the accounting stage between two adjacent stage execution node pairs in the sorted stage execution sequence, and obtain the stage missing detection results of each stage execution node pair.

[0075] Optionally, the electronic voucher generation device arranges the execution nodes of each stage in the second updated stage execution sequence in an orderly manner according to the execution order of the stages in the accounting stage logic flow, so as to obtain the sorted stage execution sequence.

[0076] Furthermore, the electronic voucher generation device extracts each pair of adjacent execution nodes in the sorted execution sequence and compares each pair of nodes with the standard node links in the accounting stage logic flow. It checks whether there are any missing intermediate stage nodes between the two adjacent nodes that are not included in the sequence as specified in the accounting stage logic flow. Here, a missing intermediate stage node refers to a necessary process node in the accounting stage logic flow that is located between two adjacent nodes but does not appear in the current sequence. For each pair of nodes, a corresponding stage missing detection result is generated. Here, the stage missing detection result refers to the judgment conclusion used to characterize whether there is a missing intermediate stage node between adjacent nodes, including two categories: no missing and missing.

[0077] In one embodiment, the four nodes of the second updated stage execution sequence are sorted according to the chronological order of the accounting stage logic flow to obtain the sorted stage execution sequence (the order is consistent with the second updated sequence). Next, adjacent node pairs are extracted: "Voucher Information Secondary Verification Node" and "Purchase Payment Accounting Information Entry Node," "Purchase Payment Accounting Information Entry Node" and "Purchase Payment Accounting Voucher Generation Node," and "Purchase Payment Accounting Voucher Generation Node" and "Electronic Voucher Archive Node." These node pairs are compared with the standard link of the accounting stage logic flow. It is found that between the "Purchase Payment Accounting Voucher Generation Node" and the "Electronic Voucher Archive Node," the standard link contains an "Accounting Information Cross-Verification Node," which is not included in the current sequence. Therefore, the stage missing detection result for this group of node pairs is "Missing," while the detection results for the other two groups of node pairs are "No Missing."

[0078] Step 2044: Analyze the accounting process based on the stage missing detection results of each stage execution node pair to obtain the first accounting process chain information.

[0079] Optionally, the electronic voucher generation device performs accounting process analysis based on the stage missing detection results of each stage execution node pair to obtain the first accounting process chain information, as specifically in steps 20441 to 20444.

[0080] This invention completes the initial sequence update under the premise that the node is executable, then extends the process link by iteratively determining the subsequent nodes, and then ensures the integrity and compliance of the process by sorting and missing detection. Finally, the process link is corrected and confirmed. Therefore, it can dynamically generate an adapted accounting process link based on the actual business attributes of the first electronic voucher, and also ensure that the generated first accounting process link information is standardized by relying on the standard requirements of the accounting stage logic process, thereby improving the standardization of financial processing.

[0081] Optionally, the process of steps 20441 to 20444 includes:

[0082] Step 20441: If the stage missing detection result for each stage execution node pair is that there is no stage missing, then determine the posting action type for each stage execution node in the posting stage logic flow after sorting. Posting action types include temporary storage, review, posting, and reversal.

[0083] Optionally, if all test results indicate no missing stages, it means the node chain of the sorted stage execution sequence is complete and meets the requirements of the accounting stage logic flow. Therefore, the electronic voucher generation device retrieves the accounting action type corresponding to each stage execution node in the sorted stage execution sequence within the accounting stage logic flow. The accounting action type refers to the core accounting operation category that the stage execution node needs to complete, including four categories: temporary storage, review, posting, and reversal. Temporary storage refers to temporarily saving accounting-related information without formal accounting; review refers to verifying the compliance and accuracy of accounting information; posting refers to formally recording accounting information into the accounting books; and reversal refers to reverse reversing erroneous accounting information. This completes the matching and determination of the accounting action type for each node.

[0084] In one embodiment, the sorted execution sequence corresponding to a certain first electronic voucher (a bank electronic receipt for a power grid branch company's payment of 1 million yuan to a power equipment supplier for equipment purchase) is "Voucher Information Secondary Verification Node", "Purchase Payment Receipt Information Entry Node", "Purchase Payment Accounting Voucher Generation Node", and "Electronic Voucher Archive Node", and the stage missing detection results for all stage execution node pairs are all negative. The recording action type of each node in the recording stage logic flow is retrieved to determine that the "Voucher Information Secondary Verification Node" corresponds to an audit-type recording action type, the "Purchase Payment Receipt Information Entry Node" corresponds to a temporary recording action type, the "Purchase Payment Accounting Voucher Generation Node" corresponds to a posting-type recording action type, and the "Electronic Voucher Archive Node" corresponds to an audit-type recording action type.

[0085] Step 20442: Determine the stage action instruction based on the accounting action type of each stage execution node.

[0086] Optionally, the electronic voucher generation device retrieves a preset mapping relationship library between action types and stage action instructions for each stage execution node, based on the determined accounting action type. The stage action instruction refers to the specific operation instruction that drives the stage execution node to complete the corresponding accounting action, and it has a one-to-one correspondence with the accounting action type. The corresponding stage action instruction is matched for each stage execution node according to the mapping relationship.

[0087] Among them, the temporary storage category corresponds to the stage action instruction of "temporarily saving the relevant data of the current node's accounting entry, generating a temporary storage record and retaining the data modification trace"; the audit category corresponds to the stage action instruction of "verifying the compliance and accuracy of the current node's accounting entry data, generating an audit record and marking the audit result"; the posting category corresponds to the stage action instruction of "officially recording the accounting entry data that has been verified at the current node into the accounting ledger, generating a posting record and updating the ledger data synchronously"; and the reversal category corresponds to the stage action instruction of "reversely reversing the erroneous data that has been entered into the accounting ledger, generating a reversal record and restoring the original data of the ledger".

[0088] In one embodiment, based on the mapping relationship between action type and instruction, stage action instructions are matched for each node: the auditing action of the "Secondary Verification Node for Voucher Information" corresponds to the instruction "verify the consistency between bank electronic receipt business information and business document data, generate a secondary verification record and mark the verification result"; the temporary storage action of the "Purchase Payment Entry Information Entry Node" corresponds to the instruction "temporarily save the entry data of 1 million yuan of equipment purchase payment, generate a temporary storage record and retain data modification traces"; the posting action of the "Purchase Payment Accounting Voucher Generation Node" corresponds to the instruction "formally record the verified purchase payment data into the accounting books, generate a posting record and synchronously update the accounts payable and bank deposit books data"; and the auditing action of the "Electronic Voucher Archive Archiving Node" corresponds to the instruction "verify the integrity of the electronic voucher data after the entry is completed, generate an archive audit record and mark the archive result".

[0089] Step 20443: Based on the stage dependency order of each stage execution node in the sorted stage execution sequence within the logical flow of the accounting stage, construct the stage dependency relationship between stage execution nodes.

[0090] Optionally, the electronic voucher generation device extracts the stage dependency order of each stage execution node in the sorted stage execution sequence in the accounting stage logic flow. The stage dependency order refers to the sequential execution dependency relationship of each node in the accounting stage logic flow, that is, after the preceding node completes its corresponding action, the subsequent node can start. Based on this order, the stage dependency relationship between stage execution nodes is constructed. The stage dependency relationship refers to the logical relationship that characterizes the sequential execution order of each stage execution node and the data flow association.

[0091] Specifically, if node A is the predecessor node of node B, and node B can only start after node A completes the corresponding accounting action, then a one-way dependency relationship of "node A completes action → node B starts action" is established; if there are multiple nodes in series dependency, then a chain dependency relationship is established in sequence to ensure that the execution order of all nodes meets the logical flow requirements of the accounting stage.

[0092] In one embodiment, the stage dependency relationships of each node are constructed according to the stage dependency sequence of the accounting stage logic flow: a dependency relationship of "completion of the second verification of voucher information → initiation of the purchase payment accounting information entry node" is established, that is, the purchase payment accounting information entry operation can only be started after the second verification of voucher information is completed and the verification is passed; a dependency relationship of "completion of the purchase payment accounting information entry node → initiation of the purchase payment accounting voucher generation node" is established, that is, the accounting voucher generation operation can only be started after the accounting information is temporarily stored and the data is correct; a dependency relationship of "completion of the purchase payment accounting voucher generation node → initiation of the electronic voucher archive archiving node" is established, that is, the electronic voucher archive archiving review operation can only be started after the accounting voucher is posted and the ledger data is updated.

[0093] Step 20444: Based on the stage dependency relationship between stage execution nodes, associate the stage action instructions corresponding to each stage execution node to obtain the first accounting process chain information.

[0094] Optionally, the electronic voucher generation device uses the stage dependency relationship between stage execution nodes as a logical link to connect and associate the stage action instructions corresponding to each stage execution node in the order of dependency, forming a complete process link that includes the node execution order, node action type, and node specific instructions, and finally obtains the first accounting process chain information. Therefore, the first accounting process chain information refers to the standardized accounting process guide adapted to the first electronic voucher, which includes the complete node link, the action type of each node, and the specific operation instructions.

[0095] In one embodiment, the electronic voucher generation device links the stage action instructions of each node according to stage dependencies: First, it executes the instruction of the "Voucher Information Secondary Verification Node" to "verify the consistency between the bank electronic receipt business information and the business document data, generate a secondary verification record and mark the verification result". After the instruction is executed and the verification is passed, it starts the instruction of the "Purchase Payment Receipt Information Entry Node" to "temporarily save the entry data of 1 million yuan of equipment purchase payment, generate a temporary record and retain data modification traces". After the instruction is executed and the data is correct, it starts the instruction of the "Purchase Payment Accounting Voucher Generation Node" to "formally record the verified purchase payment data into the accounting books, generate a posting record and synchronously update the accounts payable and bank deposit books". After the instruction is executed and the books are updated, it starts the instruction of the "Electronic Voucher Archive Node" to "verify the integrity of the electronic voucher data after the entry is completed, generate an archive audit record and mark the archive result". The complete instruction chain after the above association is the first entry process chain information corresponding to the first electronic voucher.

[0096] This invention, in its embodiments, identifies the core action types of each node after confirming that no nodes are missing in the process, then matches specific operable action instructions, constructs the execution dependencies between nodes, and finally strings the instructions together to form a complete process chain. This ensures the compliance and adaptation of the process chain with the logical flow of the accounting stage. Furthermore, it provides targeted operation guidance to the process chain based on the actual business attributes of the first electronic voucher. The generated first accounting process chain information is standardized and can be directly used as the standardized execution basis for the accounting operation of the first electronic voucher, ensuring the standardization of the accounting operation and improving the standardization of financial processing.

[0097] Optionally, steps 205 to 208 include:

[0098] Step 205: Based on the abnormal operation mode, perform association matching with each stage node in the accounting stage logic flow to obtain the abnormal entry stage node, and determine the abnormal handling path branch of the abnormal entry stage node in the accounting stage logic flow.

[0099] Optionally, the electronic voucher generation device associates and matches the abnormal operation mode with each stage node in the accounting stage logic flow. The abnormal entry stage node refers to the stage node in the accounting stage logic flow that can be entered into the abnormal handling process. This node is the starting point of the abnormal handling corresponding to the abnormal operation mode. By comparing the features of the mode and the node, the corresponding abnormal entry stage node can be accurately located.

[0100] Optionally, after node matching is completed, the electronic voucher generation device retrieves the preset exception handling path branches in the accounting stage logic flow of the exception entry stage node. The exception handling path branches refer to multiple differentiated handling process links set for the same type of exception but different sub-scenarios, and each branch corresponds to a specific exception sub-scenarios.

[0101] In one embodiment, taking a bank electronic receipt for a power grid branch company's payment to a power equipment supplier as an example, the electronic voucher is judged as a second electronic voucher because the payment amount (parsed as 1.2 million yuan) does not match the matching business document amount (1 million yuan). The abnormal operation mode corresponding to its verification abnormality information is "abnormal handling mode for amount data mismatch". This mode is matched with the stage node of the accounting stage logic flow, and the abnormal entry stage node is determined to be "voucher information secondary verification node". The preset abnormal handling path branches of this node include three paths: "manual review and confirmation of the reason for the amount deviation branch", "business document information correction branch", and "electronic voucher information correction branch". These three abnormal handling path branches are obtained simultaneously.

[0102] Step 206: Based on the abnormal context features in the voucher business information of the second electronic voucher, perform abnormal feature analysis on the abnormal handling path branches to obtain the target abnormal handling path.

[0103] Optionally, the electronic voucher generation device extracts abnormal context features from the voucher business information of the second electronic voucher. These abnormal context features refer to business data features directly related to the verification anomaly, including the specific deviation value of the abnormal data field, the business scenario corresponding to the abnormal field, and the source channel of the abnormal data. The device then compares and analyzes these abnormal context features with the adaptation features of each anomaly handling path branch obtained in step 205. Each anomaly handling path branch has its corresponding adaptation feature range. The algorithm calculates the overlap ratio between the abnormal context features and the adaptation features of each path. The path with the highest overlap ratio is the target path. The path that best matches the current anomaly scenario of the second electronic voucher is selected and determined as the target anomaly handling path.

[0104] In one embodiment, the abnormal context feature of the second electronic voucher is that "the amount recorded on the electronic voucher, RMB 1.2 million, differs from the amount on the business document, RMB 1 million, by RMB 200,000. The electronic voucher data originates from the bank's direct connection system, and the business document is an approved equipment procurement payment application." The electronic voucher generation device compares this feature with the matching features of the three abnormal handling path branches. The matching feature of the "manual review and confirmation of the reason for the amount deviation branch" is that "the electronic voucher data obtained from the external system differs from the internal business document data in terms of amount, and the document has been formally approved." The overlap between the two has the highest proportion, so the device determines that the target abnormal handling path is the "manual review and confirmation of the reason for the amount deviation branch."

[0105] Step 207: Determine whether the voucher business information of the second electronic voucher meets the execution prerequisites of the target abnormal handling path in the initial stage, and obtain the stage activation judgment result of the initial stage.

[0106] Optionally, the electronic voucher generation device retrieves the execution prerequisites for the target anomaly handling path at the initial stage. These prerequisites refer to the basic requirements for initiating the first step of the anomaly handling path, including necessary data support and the completion status of pre-operations. The device then verifies whether the voucher business information of the second electronic voucher completely covers these prerequisites, obtaining the stage activation judgment result for the initial stage. This stage activation judgment result indicates whether the target anomaly handling path can be initiated at its initial stage, including an activatable state and a state requiring supplementation. Optionally, if the voucher business information meets all execution prerequisites, the stage activation judgment result is determined to be "activatable," meaning the target anomaly handling path can be initiated normally. If the voucher business information lacks key data corresponding to some prerequisites, the stage activation judgment result is determined to be "required for supplementation," and data supplementation must be completed before the path can be initiated.

[0107] In one embodiment, the prerequisites for the "manual review and confirmation of the reason for the amount deviation branch" in the initial stage are "the original data of the electronic voucher has been retained, the complete data of the matching business document has been retrieved, and the specific value of the amount deviation has been recorded". Checking the business information of the second electronic voucher reveals that it has stored the original data of the electronic voucher, associated the complete data of the business document, and registered an amount deviation value of 200,000 yuan, fully meeting the execution prerequisites. Therefore, the activation judgment result of the initial stage is determined to be "activatable".

[0108] Step 208: Based on the stage activation judgment result of the target anomaly handling path in the initial stage, perform accounting process analysis to obtain the second accounting process chain information.

[0109] Optionally, the accounting process is analyzed based on the activation judgment result of the target anomaly handling path in the initial stage to obtain the second accounting process chain information, as in steps 2081 to 2084.

[0110] This invention matches the starting node for handling abnormal operation modes and obtains multiple branch paths. Then, it filters out suitable target paths by combining abnormal context features. Next, it verifies the prerequisites for path initiation to ensure the feasibility of the process. Finally, it integrates them to form a complete process chain. Therefore, it can provide exclusive handling processes for different types of abnormal voucher scenarios, ensuring the compliance and accuracy of abnormal voucher accounting.

[0111] Optionally, the process of steps 2081 to 2084 includes:

[0112] Step 2081: If the stage activation judgment result is an activatable state, then initialize the abnormal stage execution sequence with the starting stage as the initial element, and determine the next candidate abnormal stage based on the subsequent abnormal transfer conditions of the starting stage in the accounting stage logic flow.

[0113] Optionally, if it is determined to be in an activatable state, it means that the voucher business information of the second electronic voucher can meet the execution prerequisites of the initial stage and the abnormal handling process can be started normally. At this time, the electronic voucher generation device uses the initial stage as the initial element to initialize the abnormal stage execution sequence, wherein the abnormal stage execution sequence refers to the ordered data set used to record the execution links of the abnormal handling process of the second electronic voucher.

[0114] Furthermore, the electronic voucher generation device retrieves the subsequent abnormal transfer conditions corresponding to the accounting stage logic flow of the initial stage. The subsequent abnormal transfer conditions refer to the business rules or abnormal handling progress standards that must be met to enter the next abnormal handling stage from the current abnormal handling stage. Combining the abnormal context characteristics of the second electronic voucher, the device filters out the next candidate abnormal stage that meets the transfer conditions. The next candidate abnormal stage refers to the next abnormal handling process link that can be entered after the initial stage if the subsequent abnormal transfer conditions are met.

[0115] In one embodiment, taking a bank electronic receipt (second electronic voucher) with a discrepancy in amount from a power grid branch as an example, the target anomaly handling path is "manual review to confirm the reason for the amount deviation branch," with the initial stage being "manual review task assignment stage," and the stage activation judgment result being in an activatable state. The electronic voucher generation device initializes the anomaly stage execution sequence with the "manual review task assignment stage" as the initial element, at which point the sequence only contains this initial stage. Subsequently, the subsequent anomaly transfer condition of this initial stage is retrieved as "the manual review task has been successfully assigned to the corresponding financial review personnel, and the complete data of the electronic voucher and business document has been synchronized." Combined with the anomaly context characteristics of the electronic voucher (complete anomaly data has been retained), it is determined that the transfer condition is met, and the next candidate anomaly stage is determined to be "financial personnel manual verification stage."

[0116] Step 2082: Based on the exception handling action type in the accounting stage logic flow of the next candidate exception stage, determine whether the next candidate exception stage is an exception final state stage, and obtain the final state stage judgment result.

[0117] Optionally, the electronic voucher generation device obtains the type of exception handling action corresponding to the accounting stage logic flow of the next candidate exception stage. The exception handling action type refers to the core operation category that needs to be completed in the exception handling stage, including task assignment, manual verification, data correction, and result confirmation. It also retrieves the preset exception final state stage judgment criteria. The exception final state stage refers to the closing stage in the exception handling process where the exception handling link can be terminated and the normal accounting process can be started. Its exception handling action type has the characteristics of "completing the exception handling result confirmation and being able to connect to the normal accounting process". The device compares the exception handling action type of the next candidate exception stage with the judgment criteria to determine whether it is an exception final state stage and generates a final state stage judgment result. The final state stage judgment result refers to the conclusion used to characterize whether the next candidate exception stage is an exception final state stage, including two categories: termination stage and non-termination stage.

[0118] In one embodiment, the next candidate anomaly stage is the "manual verification stage by finance personnel," and the corresponding anomaly handling action type is "finance personnel verify the reasons for the discrepancy between the electronic voucher and the business document amount, and form a preliminary verification conclusion." Comparing this action type with the anomaly final stage judgment criteria, it is found that it does not possess the core characteristic of "completing the confirmation of anomaly handling results," and cannot be directly connected to the normal accounting process. Therefore, this stage is determined to be a non-termination stage, and the final stage judgment result is "non-termination stage."

[0119] Step 2083: If the abnormal final state stage is a non-termination stage, then update the next candidate abnormal stage to the abnormal stage execution sequence to obtain the first target stage execution sequence, and execute the subsequent abnormal transfer conditions based on the updated last stage in the first target stage execution sequence until the abnormal final state stage of the last stage is a termination stage, then update the first target stage execution sequence to obtain the second target stage execution sequence.

[0120] Optionally, if the next candidate abnormal stage is determined to be a non-termination stage, the electronic voucher generation device adds this stage to the abnormal stage execution sequence, completing the first update of the sequence and obtaining the first target stage execution sequence. Further, the electronic voucher generation device takes the last stage in the first target stage execution sequence as the current stage, retrieves its corresponding subsequent abnormal transition conditions, and, in conjunction with the abnormal handling progress information of the second electronic voucher, determines whether there is a next abnormal stage that meets the conditions. If so, it adds it to the sequence and repeats the above process until the abnormal final state stage determination result of the last stage of the sequence is a termination stage. The final updated sequence obtained at this time is the second target stage execution sequence.

[0121] In one embodiment, since the "manual verification stage by financial personnel" is a non-terminating stage, it is added to the initial abnormal stage execution sequence to obtain the first target stage execution sequence (including the "manual review task assignment stage" and the "manual verification stage by financial personnel"). Then, the "manual verification stage by financial personnel" is the last stage, and its subsequent abnormal transfer condition is "a preliminary conclusion of manual verification has been formed, and the conclusion is that the electronic voucher entry error requires correction of the amount". After determining that the condition is met, the next abnormal stage is the "electronic voucher amount correction stage". This stage is a non-terminating stage, and the device adds it to the sequence. Taking the "electronic voucher amount correction stage" as the final stage, its subsequent abnormal transfer condition is "the electronic voucher amount has been corrected and is consistent with the business document". The corresponding next abnormal stage is the "abnormal handling result confirmation stage". The abnormal handling action type of this stage is "confirm the amount correction is correct and generate an abnormal handling completion record". It meets the abnormal final state stage judgment criteria and is the termination stage. After adding it to the sequence, the iteration stops. At this time, the second target stage execution sequence is obtained, which includes four stages: "manual review task assignment stage", "financial personnel manual verification stage", "electronic voucher amount correction stage" and "abnormal handling result confirmation stage".

[0122] Step 2084: Analyze the accounting process based on the exception handling action types corresponding to each stage in the second target stage execution sequence to obtain the second accounting process chain information.

[0123] Optionally, the electronic voucher generation device performs accounting process analysis based on the exception handling action type corresponding to each stage in the second target stage execution sequence to obtain the second accounting process chain information, specifically as in steps 20841 to 20843.

[0124] In this embodiment of the invention, the exception handling sequence is initialized in an active state and subsequent candidate stages are determined. Then, the exception handling process is extended in an orderly manner through the final stage determination. Finally, a complete exception handling sequence is formed iteratively and integrated with the normal accounting process. Therefore, it can generate exclusive differentiated exception handling links for specific exception scenarios of the second electronic voucher, ensuring that exception problems are resolved in a compliant and accurate manner. It can also standardize the exception handling process and the standard accounting process, thereby improving the standardization of financial processing.

[0125] Optionally, the processes of steps 20841 to 20843 include:

[0126] Step 20841: Identify the scope of accounting impact for the last exception handling action type in the execution sequence of the second target stage to obtain the scope of accounting impact constraints.

[0127] Optionally, the electronic voucher generation device locates the last stage in the second target stage execution sequence, extracts the abnormal handling action type corresponding to this stage, and initiates the accounting impact scope identification process to identify the accounting impact scope. The specific identification logic is as follows: associate the business data corresponding to the abnormal handling action (such as the corrected amount data, the verified business entity data, etc.), and then match the corresponding accounting subjects, ledgers and accounting cycles in the enterprise's financial accounting system to clarify which accounting data and which accounting links will be affected by the abnormal handling action, and finally generate accounting impact scope constraints. Therefore, accounting impact scope constraints refer to the set of rules used to limit the accounting scope that can be involved in the accounting operation after abnormal handling, including a list of accounts that can be affected and the boundaries of accounting data that cannot be touched.

[0128] In one embodiment, taking a bank electronic receipt (second electronic voucher) with a discrepancy in amount from a power grid branch as an example, the last stage of its second target stage execution sequence is the "abnormal handling result confirmation stage," and the corresponding abnormal handling action type is "confirming the amount correction is correct and generating an abnormal handling completion record." After handling, it is confirmed that the electronic voucher amount should be corrected to 1 million yuan, consistent with the business document. The accounting impact scope identification is initiated, linked to the corrected 1 million yuan equipment purchase payment data, and matched with the corresponding financial accounting subjects "Accounts Payable" and "Bank Deposits." The accounting process is "Purchase Payment Accounting," resulting in an accounting impact scope constraint: only the accounting data for this equipment purchase transaction under the "Accounts Payable" and "Bank Deposits" subjects can be entered into the system; it must not affect the accounting data of other subjects or other businesses.

[0129] Step 20842: Based on the accounting impact scope constraint, restrict the accounting effectiveness boundary of each stage in the second target stage execution sequence to obtain the restricted accounting scope.

[0130] Optionally, the electronic voucher generation device limits the accounting validity boundary of each stage in the second target stage execution sequence according to the accounting impact scope constraint. The accounting validity boundary refers to the scope of the accounting operation corresponding to each abnormal handling stage that can produce effect, including data modification permissions, accounting impact level, etc.

[0131] Specifically, the electronic voucher generation device removes the portion of the accounting effect that exceeds the scope of accounting influence in each stage of the accounting process, and clarifies that each stage can only exert accounting-related effects within the scope of constraints. Finally, it integrates these into a restricted accounting scope. The restricted accounting scope refers to the specific area that is subject to accounting constraints and can take effect for the second electronic voucher's abnormal handling and subsequent accounting operations. This includes operable accounting subjects, modifiable data levels, and the scope of business documents that can be associated.

[0132] In one embodiment, the scope of accounting impact is constrained by the restriction that "only accounting data for the equipment purchase transaction under the 'Accounts Payable' and 'Bank Deposits' accounts can be manipulated," thus limiting the boundaries of the recording validity at each stage of the second objective phase execution sequence. For the "manual verification stage by financial personnel," they are limited to verifying only the amount data of the corresponding account for this transaction and are prohibited from verifying data from other business accounts. For the "electronic voucher amount correction stage," they are limited to correcting only the amount data of the electronic vouchers associated with the "Accounts Payable" and "Bank Deposits" accounts for this transaction and are prohibited from modifying data associated with other accounts. The resulting restricted recording scope is that each stage can only perform recording-related operations within the scope of "the accounting data of the 'Accounts Payable' and 'Bank Deposits' accounts corresponding to this RMB 1 million equipment purchase transaction and the associated electronic vouchers and business documents."

[0133] Step 20843: Based on the restricted accounting scope, each stage in the execution sequence of the second target stage is encapsulated according to the abnormal execution contract of the accounting stage logic flow to obtain the second accounting process chain information.

[0134] Optionally, the electronic voucher generation device retrieves the pre-set exception execution contract in the accounting stage logic flow. The exception execution contract refers to the standardized rules formulated for the connection between the exception handling process and the normal accounting process, including stage execution order requirements, validity boundary rules, process connection standards, etc.

[0135] Furthermore, the electronic voucher generation device uses the abnormal execution contract as the encapsulation specification and the restricted accounting scope as the execution range to integrate and encapsulate each stage in the execution sequence of the second target stage, clarifying the execution order, operation boundaries, and connection nodes with the subsequent normal accounting stage of each stage, and finally forming a complete second accounting process chain information. Therefore, the second accounting process chain information refers to the standardized accounting process guide that is adapted to the second electronic voucher and includes abnormal handling and normal accounting links.

[0136] In one embodiment, the rule in the abnormal execution contract that "after the abnormal handling stage is completed, a secondary verification node for voucher information must be connected, and the operation must not exceed the restricted accounting scope" is retrieved. Based on the restricted accounting scope, the four stages of the second target stage execution sequence are encapsulated: the execution order of "manual review task assignment stage - financial personnel manual verification stage - electronic voucher amount correction stage - abnormal handling result confirmation stage" is clarified, and the operation scope of each stage is limited to the corresponding account and documents of the equipment purchase transaction. Simultaneously, it is determined that after the "abnormal handling result confirmation stage" is completed, a "secondary verification node for voucher information" of the normal accounting process must be connected, and the secondary verification is only conducted on the corrected data within the restricted scope. After encapsulation, the second accounting process chain information corresponding to the second electronic voucher is formed.

[0137] This invention identifies the accounting scope of abnormal handling by defining the accounting effect boundary, then defines the operational scope of each stage by limiting the accounting validity, and finally completes the standardized encapsulation of the process by relying on the abnormal execution contract. This ensures that the accounting operation after the abnormal handling of the second electronic voucher is strictly limited to the compliant accounting scope, avoiding disorderly impact on the overall accounting system of the enterprise, and also achieves standardized connection between the abnormal handling process and the normal accounting process. This ensures that the process chain has clear execution standards and operational boundaries, and improves the standardization of financial processing.

[0138] Furthermore, the electronic voucher generation apparatus provided by the present invention will be described below. The electronic voucher generation apparatus described below can be referred to in correspondence with the electronic voucher generation method described above.

[0139] Optionally, refer to Figure 2 , Figure 2 This is a schematic diagram of the electronic voucher generation device provided by the present invention. The electronic voucher generation device includes:

[0140] The correlation verification module 210 is used to parse the target electronic vouchers collected by the electronic voucher center to obtain voucher business information, and to perform correlation verification on the voucher business information based on the business document data obtained by matching the voucher business information to obtain the first electronic voucher and the second electronic voucher.

[0141] The accounting process analysis module 220 is used to analyze the accounting process based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, combined with the preset accounting stage logic process, to obtain the first accounting process chain information and the second accounting process chain information respectively.

[0142] The electronic voucher generation module 230 is used to record the first electronic voucher according to the first accounting process chain information to obtain the first accounting electronic voucher, and to record the second electronic voucher according to the second accounting process chain information to obtain the second accounting electronic voucher.

[0143] This invention, based on an electronic voucher center, performs unified parsing of target electronic vouchers to obtain voucher business information. Then, it verifies the correlation through business document data to obtain categorized first and second electronic vouchers, achieving unified management of electronic vouchers. Based on different operating modes of the two types of electronic vouchers and pre-set accounting logic, it generates differentiated first and second accounting process chain information, providing standardized and exclusive accounting processes for vouchers in different states. This adapts to differentiated needs and eliminates the need for a unified accounting logic, ensuring the standardization of the accounting process. By generating two types of accounting electronic vouchers based on the differentiated process chain information, it achieves efficient and compliant accounting of normal vouchers and standardized special processing of abnormal vouchers, avoiding data distortion caused by disordered accounting of abnormal vouchers. This improves the accuracy of financial data and the standardization of the accounting process, achieving full-process management of electronic vouchers that meets both accuracy requirements and standardization specifications, thus improving the accuracy and standardization of financial processing.

[0144] Please see Figure 3 , Figure 3 An embodiment diagram of an electronic device provided in accordance with the present invention. For example... Figure 3 As shown, this embodiment of the invention provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the computer program 311, it performs the following steps:

[0145] The target electronic vouchers collected by the electronic voucher center are parsed to obtain voucher business information. Based on the business document data obtained by matching the voucher business information, the correlation of the voucher business information is verified to obtain the first electronic voucher and the second electronic voucher.

[0146] Based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, the accounting process is analyzed in combination with the preset accounting stage logic flow to obtain the first accounting process chain information and the second accounting process chain information respectively.

[0147] The first electronic voucher is entered into the system according to the first accounting process chain information to obtain the first accounting electronic voucher, and the second electronic voucher is entered into the system according to the second accounting process chain information to obtain the second accounting electronic voucher.

[0148] Please see Figure 4 , Figure 4 An embodiment diagram of a computer-readable storage medium provided in accordance with an embodiment of the present invention is shown. Figure 4 As shown, this embodiment provides a computer-readable storage medium 400, on which a computer program 311 is stored. When the computer program 311 is executed by a processor, it performs the following steps:

[0149] The target electronic vouchers collected by the electronic voucher center are parsed to obtain voucher business information. Based on the business document data obtained by matching the voucher business information, the correlation of the voucher business information is verified to obtain the first electronic voucher and the second electronic voucher.

[0150] Based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, the accounting process is analyzed in combination with the preset accounting stage logic flow to obtain the first accounting process chain information and the second accounting process chain information respectively.

[0151] The first electronic voucher is entered into the system according to the first accounting process chain information to obtain the first accounting electronic voucher, and the second electronic voucher is entered into the system according to the second accounting process chain information to obtain the second accounting electronic voucher.

[0152] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the electronic voucher generation method provided by the above methods, including:

[0153] The target electronic vouchers collected by the electronic voucher center are parsed to obtain voucher business information. Based on the business document data obtained by matching the voucher business information, the correlation of the voucher business information is verified to obtain the first electronic voucher and the second electronic voucher.

[0154] Based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, the accounting process is analyzed in combination with the preset accounting stage logic flow to obtain the first accounting process chain information and the second accounting process chain information respectively.

[0155] The first electronic voucher is entered into the system according to the first accounting process chain information to obtain the first accounting electronic voucher, and the second electronic voucher is entered into the system according to the second accounting process chain information to obtain the second accounting electronic voucher.

[0156] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0158] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating electronic vouchers, characterized in that, include: The target electronic voucher collected by the electronic voucher center is parsed to obtain voucher business information. Based on the business document data obtained by matching the voucher business information, the correlation of the voucher business information is verified to obtain the first electronic voucher and the second electronic voucher. Based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, the accounting process is analyzed in combination with the preset accounting stage logic flow to obtain the first accounting process chain information and the second accounting process chain information respectively. The first electronic voucher is entered into the account according to the first accounting process chain information to obtain the first accounting electronic voucher, and the second electronic voucher is entered into the account according to the second accounting process chain information to obtain the second accounting electronic voucher. The steps involved in analyzing the accounting process to obtain the information of the first accounting process chain include: Based on the entry start phase identifier information of each entry trigger condition corresponding to the entry operation mode, the entry start execution node in the entry phase logic flow is determined, and the phase execution sequence is initialized with the entry start execution node. Based on the subsequent stage transfer conditions of the accounting start execution node in the accounting stage logic flow, and combined with the business attribute fields in the voucher business information of the first electronic voucher, determine the next target stage execution node that meets the subsequent stage transfer conditions. Based on the list of business elements in the accounting stage logic flow of the next target stage execution node, determine whether the voucher business information of the first electronic voucher is fully covered, and obtain the stage execution status; Based on the stage execution sequence and the stage execution status of the next target stage execution node, the accounting process is analyzed to obtain the first accounting process chain information; The steps involved in analyzing the accounting process to obtain the second accounting process chain information include: Based on the abnormal operation mode, the abnormal entry stage node is obtained by associating and matching it with each stage node in the accounting stage logic flow, and the abnormal handling path branch of the abnormal entry stage node in the accounting stage logic flow is determined. Based on the abnormal context features in the voucher business information of the second electronic voucher, the abnormal handling path branch is analyzed for abnormal features to obtain the target abnormal handling path. Determine whether the voucher business information of the second electronic voucher meets the execution preconditions of the target anomaly handling path in the initial stage, and obtain the stage activation judgment result of the initial stage; Based on the stage activation judgment result of the target anomaly handling path in the initial stage, the accounting process is analyzed to obtain the second accounting process chain information.

2. The electronic voucher generation method according to claim 1, characterized in that, The accounting process analysis based on the stage execution sequence and the stage execution status of the next target stage execution node yields the first accounting process chain information, including: If the stage execution state is in an executable state, then the next target stage execution node is updated to the stage execution sequence to obtain the first updated stage execution sequence; The process of executing the subsequent stage transfer conditions based on the last execution node in the first updated stage execution sequence continues until there is no next stage node that satisfies the subsequent stage transfer conditions. The first updated stage execution sequence is then updated to obtain the second updated stage execution sequence. The execution nodes of each stage in the second updated stage execution sequence are sorted according to the stage execution order to obtain the sorted stage execution sequence. The adjacent two stage execution node pairs in the sorted stage execution sequence are checked to see if there are any missing intermediate stage nodes in the accounting stage logic flow, and the stage missing detection results of each stage execution node pair are obtained. Based on the stage missing detection results of each stage execution node pair, the accounting process is analyzed to obtain the information of the first accounting process chain.

3. The electronic voucher generation method according to claim 2, characterized in that, The process of analyzing the accounting entry flow based on the stage missing detection results of each stage execution node pair yields the first accounting entry flow chain information, including: If the stage missing detection result for each stage execution node pair is that there is no stage missing, then the entry action type of each stage execution node in the sorted stage execution sequence in the entry stage logic flow is determined; the entry action type includes temporary storage, review, posting, and reversal. The stage action instructions are determined based on the type of accounting action at each stage execution node. Based on the stage dependency order of each stage execution node in the sorted stage execution sequence among the logical flow of the accounting stage, a stage dependency relationship between stage execution nodes is constructed. Based on the stage dependencies between stage execution nodes, the stage action instructions corresponding to each stage execution node are associated to obtain the first accounting process chain information.

4. The electronic voucher generation method according to claim 1, characterized in that, The step of performing an accounting process analysis based on the stage activation judgment result of the target anomaly handling path at the initial stage to obtain the second accounting process chain information includes: If the stage activation judgment result is an activatable state, then the abnormal stage execution sequence is initialized with the starting stage as the initial element, and the next candidate abnormal stage is determined based on the subsequent abnormal transfer conditions of the starting stage in the accounting stage logic flow. Based on the type of exception handling action in the logical flow of the accounting stage, determine whether the next candidate exception stage is an exception final stage and obtain the final stage judgment result. If the abnormal final state stage is a non-termination stage, then the next candidate abnormal stage is updated to the abnormal stage execution sequence to obtain the first target stage execution sequence. Then, the subsequent abnormal transfer conditions are executed based on the updated end stage in the first target stage execution sequence until the abnormal final state stage of the end stage is a termination stage. Then, the first target stage execution sequence is updated to obtain the second target stage execution sequence. Based on the exception handling action types corresponding to each stage in the execution sequence of the second target stage, the accounting process is analyzed to obtain the second accounting process chain information.

5. The electronic voucher generation method according to claim 4, characterized in that, The accounting process analysis based on the exception handling action types corresponding to each stage in the execution sequence of the second target stage yields the second accounting process chain information, including: The accounting impact range is identified for the last exception handling action type in the execution sequence of the second target stage, and the accounting impact range constraint is obtained; Based on the aforementioned accounting impact scope constraint, the accounting effectiveness boundary of each stage in the second target stage execution sequence is restricted to obtain the restricted accounting scope. Based on the restricted accounting scope, each stage in the second target stage execution sequence is encapsulated according to the abnormal execution contract of the accounting stage logic flow to obtain the second accounting process chain information.

6. An electronic voucher generation device, characterized in that, For implementing the electronic voucher generation method as described in any one of claims 1 to 5; the electronic voucher generation apparatus includes: The correlation verification module is used to parse the target electronic voucher collected by the electronic voucher center to obtain voucher business information, and to perform correlation verification on the voucher business information based on the business document data matched by the voucher business information to obtain the first electronic voucher and the second electronic voucher. The accounting process analysis module is used to analyze the accounting process based on the accounting operation mode of the first electronic voucher and the abnormal operation mode corresponding to the verification abnormal information of the second electronic voucher, combined with the preset accounting stage logic process, to obtain the first accounting process chain information and the second accounting process chain information respectively. The electronic voucher generation module is used to enter the first electronic voucher into the account according to the first accounting process chain information to obtain the first accounting electronic voucher, and to enter the second electronic voucher into the account according to the second accounting process chain information to obtain the second accounting electronic voucher. The steps involved in analyzing the accounting process to obtain the information of the first accounting process chain include: Based on the entry start phase identifier information of each entry trigger condition corresponding to the entry operation mode, the entry start execution node in the entry phase logic flow is determined, and the phase execution sequence is initialized with the entry start execution node. Based on the subsequent stage transfer conditions of the accounting start execution node in the accounting stage logic flow, and combined with the business attribute fields in the voucher business information of the first electronic voucher, determine the next target stage execution node that meets the subsequent stage transfer conditions. Based on the list of business elements in the accounting stage logic flow of the next target stage execution node, determine whether the voucher business information of the first electronic voucher is fully covered, and obtain the stage execution status; Based on the stage execution sequence and the stage execution status of the next target stage execution node, the accounting process is analyzed to obtain the first accounting process chain information; The steps involved in analyzing the accounting process to obtain the second accounting process chain information include: Based on the abnormal operation mode, the abnormal entry stage node is obtained by associating and matching it with each stage node in the accounting stage logic flow, and the abnormal handling path branch of the abnormal entry stage node in the accounting stage logic flow is determined. Based on the abnormal context features in the voucher business information of the second electronic voucher, the abnormal handling path branch is analyzed for abnormal features to obtain the target abnormal handling path. Determine whether the voucher business information of the second electronic voucher meets the execution preconditions of the target anomaly handling path in the initial stage, and obtain the stage activation judgment result of the initial stage; Based on the stage activation judgment result of the target anomaly handling path in the initial stage, the accounting process is analyzed to obtain the second accounting process chain information.

7. An electronic device, comprising: Memory, used to store computer software programs; A processor for reading and executing the computer software program, characterized in that, when the processor executes the computer software program, it implements the electronic voucher generation method as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium, wherein a computer software program is stored therein, characterized in that, When the computer software program is executed by the processor, it implements the electronic voucher generation method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for improving association rate of bank transaction details and electronic receipts

    CN120931387A