Accounting document generation method and device, equipment and storage medium
By obtaining and analyzing business data and accounting rules engine models, and generating accounting vouchers, the problems of low efficiency and poor universality of accounting vouchers in the prior art are solved, and efficient and accurate accounting vouchers are achieved.
Patent Information
- Application Number
- CN202411357263.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art is inefficient when generating accounting vouchers, requires manual production, and the technical versatility of automatic accounting vouchers is poor, and the funds cannot be directly merged, resulting in the limitation of the efficiency and accuracy of generating accounting vouchers.
By obtaining the pending business data and accounting rules engine model, performing opposite numbers adjustments and analysis, determining the target debit and credit accounts, and flipping the amount to generate accounting vouchers.
It significantly improves the efficiency of accounting vouchers generation, reduces manual processing steps, improves the accuracy of the generation process, is suitable for different types of business scenarios, and enhances the universality of the system.
Smart Images

Figure CN119444389A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of financial technology, and in particular to a method for generating accounting vouchers, an apparatus for generating accounting vouchers, a computer device, and a computer-readable storage medium. Background Art
[0002] In the daily business management of an enterprise, accounting vouchers are an important voucher that needs to be produced in the enterprise work. At present, accounting vouchers basically need to be produced manually, which is time-consuming and labor-intensive, inefficient, and consumes a lot of paper, resulting in a waste of resources.
[0003] In addition, there are related technologies for enabling automatic accounting vouchers. However, the accounting rule engine in the automatic accounting voucher technology usually only defines the accounting subjects of the debit and credit sides of the fees, and the debit and credit directions of the fees and payments are different. The funds cannot be directly merged into the debit or credit side. Therefore, the versatility is poor, resulting in the accounting rule engine being unable to directly generate accounting vouchers. Summary of the invention
[0004] The present application provides a method for generating accounting vouchers, an apparatus for generating accounting vouchers, a computer device and a computer-readable storage medium, aiming to improve the efficiency of generating accounting vouchers and having a certain degree of versatility.
[0005] To achieve the above purpose, the present application provides a method for generating an accounting voucher, comprising:
[0006] Acquire business data to be processed and an accounting rule engine model, wherein the structure of the accounting rule engine model at least includes expense type, payment method, initial debit account, and initial credit account;
[0007] Performing an opposite adjustment on the business data to be processed to obtain adjusted business data;
[0008] Analyzing the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data;
[0009] The amount of the debit account and the amount of the target credit account are reversed to generate an accounting voucher corresponding to the business data to be processed.
[0010] To achieve the above purpose, the present application also provides a device for generating accounting vouchers, comprising:
[0011] An acquisition module, the acquisition module is used to acquire the business data to be processed and the accounting rule engine model, wherein the structure of the accounting rule engine model at least includes the expense type, payment method, initial debit account and initial credit account;
[0012] A reverse number adjustment module, the reverse number adjustment module is used to perform reverse number adjustment on the service data to be processed to obtain adjusted service data;
[0013] An analysis module, the analysis module is used to analyze the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data;
[0014] An accounting voucher generation module is used to reverse the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer device, which includes a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the steps of the method for generating accounting documents provided in any one of the embodiments of the present application when executing the computer program.
[0016] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the steps of the method for generating accounting vouchers as described in any one of the embodiments of the present application.
[0017] The method for generating accounting vouchers, the device for generating accounting vouchers, the computer equipment and the computer-readable storage medium disclosed in the embodiment of the present application. Among them, the method includes obtaining the business data to be processed and the accounting rule engine model, wherein the structure of the accounting rule engine model includes at least the expense type, the payment method, the initial debit account and the initial credit account. Further, the business data to be processed is adjusted by the opposite number to obtain the adjusted business data, and the adjusted business data is analyzed by the accounting rule engine model to obtain the target debit account and the target credit account corresponding to the adjusted business data, thereby, the amount of the debit account and the amount of the target credit account can be reversed to generate the accounting voucher corresponding to the business data to be processed. Through the application of the accounting rule engine model, the present application can automatically generate accounting vouchers according to the business data, reduce the steps of manual processing, and significantly improve the efficiency of accounting processing. Further, by adjusting the business data by the opposite number and automatically analyzing the target debit and target credit accounts, it is possible to reduce errors caused by manual entry or calculation and ensure the accuracy of the voucher generation process. In addition, the accounting rules engine model can flexibly define multiple dimensions (such as expense type, payment method, debit and credit accounts, etc.), so it can adapt to different types of business scenarios, making it convenient for enterprises to configure according to actual needs and has wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 It is a scenario diagram of a method for generating an accounting voucher provided in an embodiment of the present application;
[0020] Figure 2 It is a flowchart of a method for generating an accounting voucher provided in an embodiment of the present application;
[0021] Figure 3 is a schematic block diagram of a device for generating accounting documents provided in an embodiment of the present application;
[0022] Figure 4 It is a schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0024] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions. In addition, although the functional modules are divided in the device schematic, in some cases, the module division can be different from that in the device schematic.
[0025] The term "and / or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0026] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0027] like Figure 1 As shown, the method for generating accounting documents provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. The application environment includes a terminal device 110 and a server 120, wherein the terminal device 110 can communicate with the server 120 through a network. Specifically, the server 120 can obtain the business data to be processed and the accounting rule engine model, wherein the structure of the accounting rule engine model at least includes the expense type, payment method, initial debit account and initial credit account; the business data to be processed is adjusted by the opposite number to obtain the adjusted business data; the adjusted business data is analyzed by the accounting rule engine model to obtain the target debit account and target credit account corresponding to the adjusted business data; the amount of the debit account and the amount of the target credit account are reversed to generate the accounting voucher corresponding to the business data to be processed, thereby sending the accounting voucher to the terminal device 110. Among them, the server 120 can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal device 110 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, and this application does not limit this.
[0028] Please continue reading Figure 2 , Figure 2 Schematic diagram of a method for generating accounting vouchers provided in an embodiment of the present application. Figure 2 As shown, the method for generating accounting vouchers can be implemented through steps S11 to S14.
[0029] Step S11: Obtain the business data to be processed and the accounting rule engine model.
[0030] The structure of the accounting rule engine model at least includes expense type, payment method, initial debit account and initial credit account.
[0031] It should be noted that the expense type refers to the expense category generated in business activities, such as sales expenses, administrative expenses, financial expenses, etc. This factor determines the accounting subject corresponding to the business data and affects the subject selection when generating accounting vouchers later; the payment method refers to the settlement method of business transactions, such as cash payment, bank transfer, credit card payment, etc. Different payment methods may affect the selection of subjects, especially those related to cash, bank deposits, etc.; the initial debit subject refers to the debit subject initially set during the business processing process. Depending on the expense type and payment method, the initial debit subject may change; the initial credit subject corresponds to the initial debit subject and is the credit subject initially set during business processing. It is used to balance the debit and credit relationship in accounting entries.
[0032] Optionally, the structure of the accounting rule engine model also includes fund concentration methods, account borrowing relationships, product classifications, and product business lines.
[0033] It should be noted that the fund concentration method refers to the internal fund management model of an enterprise, such as whether to handle fund settlement through centralized payment. This factor has an impact on the selection of accounting subjects, especially when the enterprise fund management model is different, different fund management subjects may be involved; account borrowing relationship refers to the fund borrowing situation between different accounts, which may affect the source and destination of funds in accounting entries, especially when multiple accounts are operated, the generated vouchers need to reflect this borrowing relationship; product classification refers to the product categories involved in the business, such as physical products, service products, etc. Different product classifications may correspond to different accounting treatments, thereby affecting the selection of subjects in accounting vouchers; business line refers to the business line within the enterprise for different products. For example, different departments or project teams are responsible for the sales or production of specific products. Depending on the business line, the accounting voucher may need to handle the expenses and income of different business lines separately.
[0034] In the above manner, through the definition of the structure of the accounting rule engine model, the accounting rule engine model can flexibly automatically select corresponding accounting subjects according to specific business data, thereby generating accurate accounting vouchers.
[0035] Step S12: Perform a negative adjustment on the business data to be processed to obtain the adjusted business data.
[0036] It should be noted that the opposite adjustment is a way of processing the amount of business data, which is usually used to handle business write-offs, cancellations, or adjustments. In these cases, it may be necessary to process the original business data in the opposite direction. For example, if the original business data represents income, then after the opposite adjustment, the data will represent expenses, and vice versa.
[0037] Through this adjustment, the reverse processing of the original business can be clearly recorded, thereby ensuring that the subsequently generated accounting documents can accurately reflect the actual changes in the business.
[0038] It should be understood that the adjusted business data is new data obtained after processing with opposite numbers. It can be data after business cancellation, adjustment, or business reversal. It is usually data with opposite sign to the original business data amount and can be used to generate target accounting documents in subsequent steps.
[0039] The above method can clearly record the reverse processing of the original business, thereby ensuring that the subsequently generated accounting documents can accurately reflect the actual changes in the business.
[0040] Step S13: Analyze the adjusted business data through the accounting rule engine model to obtain the target debit account and target credit account corresponding to the adjusted business data.
[0041] For example, the accounting rule engine model can be used to analyze the adjusted business data. Since the accounting rule engine model contains preset rules and parameters (such as expense type, payment method, initial debit and credit accounts, etc.), it can analyze the business data according to different characteristics. Further, by analyzing the adjusted business data, new debit and credit accounts, i.e., target debit accounts and target credit accounts, can be determined.
[0042] It should be understood that after the adjusted business data is processed by the accounting rule engine model, the appropriate debit and credit accounts, i.e., the target debit account and the target credit account, can be automatically selected according to the established rules. For example, the original business data involves a certain income, and after the opposite number adjustment, the data may be regarded as an expense, so the system will select the appropriate expense account as the target debit account and the target credit account.
[0043] Step S14: Reverse the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
[0044] For example, the amounts of the target debit account and the target credit account can be reversed, that is, the amount originally on the debit side will be transferred to the credit side, and the amount originally on the credit side will be transferred to the debit side. The reversal operation can be used to accurately record the opposite number adjustment of the business, ensuring that the debit and credit relationship in the voucher correctly reflects the actual status of the business. Furthermore, after the reversal is completed, the amounts and accounts of the debit and credit sides can be filled into the corresponding accounting vouchers to generate the final accounting vouchers. Among them, the generated accounting vouchers can be vouchers for bookkeeping, ensuring that the account balances in the enterprise financial system correctly and completely reflect the adjusted business situation.
[0045] Through the above steps, accounting documents that meet the actual business situation can be automatically generated according to the adjustment of business data and its corresponding accounting rules, ensuring the accuracy and standardization of financial data.
[0046] The method for generating accounting vouchers disclosed in the embodiment of the present application includes obtaining business data to be processed and an accounting rule engine model, wherein the structure of the accounting rule engine model at least includes expense type, payment method, initial debit account and initial credit account. Further, the business data to be processed is adjusted in the opposite number to obtain the adjusted business data, and the adjusted business data is analyzed by the accounting rule engine model to obtain the target debit account and target credit account corresponding to the adjusted business data, thereby, the amount of the debit account and the amount of the target credit account can be reversed to generate the accounting voucher corresponding to the business data to be processed. Through the application of the accounting rule engine model, the present application can automatically generate accounting vouchers according to the business data, reduce the steps of manual processing, and significantly improve the efficiency of accounting processing. Further, by adjusting the business data in the opposite number and automatically analyzing the target debit and target credit accounts, it is possible to reduce errors caused by manual entry or calculation, and ensure the accuracy of the voucher generation process. In addition, the accounting rule engine model can flexibly define multiple dimensions (such as expense type, payment method, debit and credit accounts, etc.), so it can adapt to different types of business scenarios, which is convenient for enterprises to configure according to actual needs and has wide applicability.
[0047] Optionally, the business data to be processed is adjusted in the opposite direction to obtain the adjusted business data, including: in response to the business data to be processed being a collection, adjusting the payment amount in the business data to be processed to a negative number to obtain the adjusted business data; in response to the business data to be processed being a payment, adjusting the collection amount in the business data to be processed to a negative number to obtain the adjusted business data.
[0048] For example, in response to the pending business data being a collection, the pending business data generally relates to the business of the enterprise receiving money. For example, a customer pays for goods or service fees, resulting in an increase in the bank deposit or cash account of the enterprise. Therefore, in accounting processing, such a business is generally recorded as a collection business, with the debit being cash or bank deposits and the credit being accounts receivable or income items. The originally positive collection amount will be adjusted to a negative number, that is, the amount originally received on behalf of the enterprise is now adjusted to represent the enterprise returning or offsetting the amount.
[0049] In this way, the adjusted business data becomes a reverse payment business, reflecting that the company no longer collects payments, and even needs to return or deduct the original amount. This reverse number adjustment is often used to record the return of customer payments or to offset the original receipts for some reason.
[0050] For example, in response to the pending business data being a payment, such as a payment from a company to a supplier for goods or services, the company's cash or bank deposits are reduced. Under normal circumstances, such a business would be recorded as a payment, with the debit being accounts payable or expense accounts, and the credit being cash or bank deposits. Therefore, it is necessary to adjust the amount of money received in the payment business to a negative number. Through this adjustment, the payment business can be processed in reverse, which is equivalent to recording that the company has returned a payment for some reason or offset a previous payment.
[0051] The adjusted transaction data then becomes the company's collection business, indicating that the company is no longer paying, and may even receive a refund for an original payment. For example, the company recovers previously paid payments due to returns or service cancellations.
[0052] The above method can ensure the flexibility of business processing and ensure that accounting documents can accurately reflect the financial activities of the enterprise. In different business scenarios, this adjustment mechanism can help the system automatically generate correct accounting entries, effectively avoiding the tediousness and errors of manual processing.
[0053] Optionally, the adjusted business data is analyzed through an accounting rules engine model to obtain target debit accounts and target credit accounts corresponding to the adjusted business data, including: analyzing the adjusted business data through an accounting rules engine model to determine the target expense type corresponding to the adjusted business data; and obtaining the target debit account and target credit account based on the target expense type matching.
[0054] For example, the accounting rule engine determines the specific expense type to which this business data belongs by analyzing the adjusted business data. Expense types may include: sales expenses, which involve sales-related expenses, such as advertising expenses, marketing expenses, etc.; administrative expenses, which are administrative expenses related to the company's daily operations, such as office supplies, rent, etc.; procurement costs, which are expenses incurred by the company when purchasing goods or services. Among them, the determination of expense types depends on multiple dimensions of business data, such as the nature of the business, payment method, transaction object, etc. The accounting rule engine model automatically infers and matches the corresponding expense type through these data features.
[0055] For example, after determining the target expense type of the adjusted business data, the corresponding accounting account can be matched according to this expense type. Among them, the selection of the target debit account and the target credit account depends on the expense type. The rules in the accounting rule engine predefine the standard accounting accounts corresponding to each expense type. According to the actual business situation, the system automatically selects the appropriate account. For example, if the target expense type is sales expense, the target debit account may be sales expense, and the target credit account may be bank deposits; if the target expense type is administrative expenses, the target debit account may be administrative expenses, and the target credit account may be cash or accounts payable.
[0056] The above embodiments can significantly improve the efficiency of financial processing, reduce errors in manual operations, and ensure the accuracy and compliance of accounting documents through automated processing.
[0057] Optionally, the target debit account and the target credit account are obtained based on the target expense type matching, including: in response to the target expense type being a bank deposit, determining that the target debit account and the target credit account are respectively the debit account and the credit account corresponding to the bank deposit; in response to the target expense type being accounts payable, determining that the target debit account and the target credit account are respectively the debit account and the credit account corresponding to the accounts payable.
[0058] For example, in response to the target expense type being a bank deposit, if the business results in an increase in bank deposits (such as receiving payment from a customer), then the bank deposit will be recorded on the debit side, indicating an increase in assets. Therefore, the debit account may be a bank deposit, indicating an increase in deposits on the company's account. The credit account is determined based on the specific content of the business. If the company's bank deposits increase because of customer payments, then the credit account may be accounts receivable, representing a decrease in the company's accounts receivable. If the increase in bank deposits is due to the company selling assets or providing services, the credit account may be the main business income or other income account.
[0059] For example, in response to the target expense type being accounts payable, if the company pays the accounts payable, this means that the accounts payable (liability) is reduced, and the accounts payable needs to be recorded on the debit side. Because after the payment, the company's liabilities are reduced, which is reflected in the debit side of accounts payable. Therefore, the debit account is accounts payable, indicating that the company has paid the amount originally payable and the liabilities are reduced. The credit account is usually an account related to the payment method, such as bank deposits or cash, indicating that the company has paid the payables through a bank account or cash. If the company pays the supplier through a bank transfer, the credit account is a bank deposit, indicating a decrease in assets.
[0060] The above implementation method can automatically match the correct debit and credit accounts according to different expense types (such as bank deposits or accounts payable). This process ensures that the generation of accounting documents complies with the company's financial rules and actual business conditions.
[0061] Optionally, the amount of the debit account includes the negative amount of the debit account, and the amount of the credit account includes the negative amount of the credit account. The amount of the debit account and the amount of the target credit account are flipped, and an accounting voucher corresponding to the business data to be processed is generated, including: flipping the negative amount of the debit account to credit, and flipping the negative amount of the debit account to the positive amount of the debit account; flipping the negative amount of the credit account to debit, and flipping the negative amount of the credit account to the positive amount of the credit account.
[0062] For example, if the amount of a debit account is negative, it means that the business has changed from a decrease in assets to an increase in liabilities, or from an increase in liabilities to a decrease in liabilities. The reversal of a negative amount on the debit side to a positive amount means that the decrease originally recorded in the debit is converted into an increase. For example, a negative bank deposit amount may represent an expense, which is turned into a positive amount by reversing it, meaning it is readjusted to income.
[0063] For example, if the amount of a credit account is negative, it means that the business has changed from a decrease in liabilities to an increase in assets. A negative amount on the credit side flips to a positive amount, which means that the negative decrease in the credit side is converted into an increase in the credit side. For example, a negative account payable may represent a decrease in debt, but flips to a positive amount, indicating an increase in liabilities.
[0064] After the above-mentioned reversal of debit and credit amounts, the final accounting voucher can be generated, and the processed amount can be recorded in the corresponding accounting subject. This step ensures that the amount in the accounting voucher reflects the adjusted business data, complies with accounting rules, and the positive and negative conversion of the amount is correct.
[0065] Optionally, the amount of the debit account and the amount of the target credit account are reversed to generate an accounting voucher corresponding to the business data to be processed, and also includes: merging the amounts in the same account in the adjusted business data, and reversing the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
[0066] In business processing, the same account may be recorded multiple times. For example, the same business data may involve the same debit or credit account in multiple steps. If these repeated accounts are not merged, the final accounting document may appear lengthy and complex, which is not conducive to understanding and auditing. Therefore, the amounts of these same accounts need to be merged.
[0067] For example, for the same debit account involved in the business data, their amounts are accumulated, and the result after merging is used as the unified debit amount. Similarly, for the same credit account involved in the business data, their amounts are also accumulated, and the result after merging is used as the unified credit amount.
[0068] For example, after merging the amounts of the same account, the amounts of the target debit account and the target credit account need to be reversed to ensure that the positive and negative treatment of the account amounts complies with accounting rules. If the debit account amount after the merger is negative, it will be reversed to a credit amount, that is, the negative amount originally in the debit side reflects a decrease in liabilities or an increase in assets, which is converted to a credit amount after the flip. If the credit account amount after the merger is negative, it will be reversed to a debit amount. Similarly, a negative amount in the credit side indicates a decrease in liabilities or an increase in assets, and the amount will be converted to a debit amount after the flip.
[0069] After the amounts of the same account are merged and the debit and credit amounts are reversed, the corresponding accounting voucher will be finally generated, which will contain optimized and adjusted account information, and the account amounts have been correctly processed in line with actual business conditions and accounting standards.
[0070] The above implementation method ensures the accuracy of accounting documents, especially when dealing with negative amounts, avoiding the risk of erroneous records, and the generated accounting documents can accurately reflect the actual situation of the business, comply with accounting rules, and facilitate subsequent financial audits and management.
[0071] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of a device for generating an accounting voucher provided in an embodiment of the present invention. The device for generating an accounting voucher can be configured in a server to execute the aforementioned method for generating an accounting voucher.
[0072] like Figure 3 As shown, the device 200 for generating an accounting voucher includes: an acquisition module 201 , a reverse number adjustment module 202 , an analysis module 203 and an accounting voucher generation module 204 .
[0073] An acquisition module 201 is used to acquire business data to be processed and an accounting rule engine model, wherein the structure of the accounting rule engine model at least consists of an expense type, a payment method, an initial debit account, and an initial credit account;
[0074] A reverse number adjustment module 202, used to perform reverse number adjustment on the service data to be processed to obtain adjusted service data;
[0075] An analysis module 203 is used to analyze the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data;
[0076] The accounting voucher generation module 204 is used to reverse the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
[0077] The opposite number adjustment module 202 is also used to adjust the payment amount in the business data to be processed to a negative number in response to the business data to be processed being a collection, so as to obtain the adjusted business data; in response to the business data to be processed being a payment, adjust the collection amount in the business data to be processed to a negative number in response to the business data to be processed being a payment, so as to obtain the adjusted business data.
[0078] The analysis module 203 is also used to analyze the adjusted business data through the accounting rule engine model to determine the target expense type corresponding to the adjusted business data; and obtain the target debit account and the target credit account based on the target expense type matching.
[0079] The analysis module 203 is also used to determine that the target debit account and the target credit account are the debit account and credit account corresponding to the bank deposit in response to the target expense type being a bank deposit; and to determine that the target debit account and the target credit account are the debit account and credit account corresponding to the accounts payable in response to the target expense type being an accounts payable.
[0080] The accounting voucher generation module 204 is also used to reverse the negative amount of the debit account to the credit, and at the same time reverse the negative amount of the debit account to the positive amount of the debit account; reverse the negative amount of the credit account to the debit, and at the same time reverse the negative amount of the credit account to the positive amount of the credit account.
[0081] The accounting voucher generation module 204 is further used to merge the amounts in the same account in the adjusted business data, and to reverse the amount of the debit account and the amount of the target credit account, so as to generate an accounting voucher corresponding to the business data to be processed.
[0082] It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0083] The method and apparatus of the present application can be used in many general or special computing system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices.
[0084] Exemplarily, the above method and apparatus may be implemented in the form of a computer program. The computer program may be implemented in the form of a computer program. Figure 4Runs on the computer device shown.
[0085] See also Figure 4 , Figure 4 1 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device may be a server.
[0086] like Figure 4 As shown, the computer device includes a processor, a memory and a network interface connected through a system bus, wherein the memory may include a volatile storage medium, a non-volatile storage medium and an internal memory.
[0087] The non-volatile storage medium can store an operating system and a computer program. The computer program includes program instructions, and when the program instructions are executed, the processor can execute any method for generating accounting documents.
[0088] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.
[0089] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any method of generating accounting documents.
[0090] The network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that the structure of the computer device is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0091] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0092] Among them, in some embodiments, the processor is used to obtain business data to be processed and an accounting rules engine model, wherein the structure of the accounting rules engine model is at least composed of expense type, payment method, initial debit account and initial credit account; the business data to be processed is adjusted in the opposite number to obtain adjusted business data; the adjusted business data is analyzed by the accounting rules engine model to obtain the target debit account and target credit account corresponding to the adjusted business data; the amount of the debit account and the amount of the target credit account are reversed to generate an accounting voucher corresponding to the business data to be processed.
[0093] In some embodiments, the processor is also used to adjust the payment amount in the business data to be processed to a negative number in response to the business data to be processed being a collection, so as to obtain the adjusted business data; in response to the business data to be processed being a payment, adjust the collection amount in the business data to be processed to a negative number, so as to obtain the adjusted business data.
[0094] In some embodiments, the processor is further used to analyze the adjusted business data through the accounting rules engine model to determine the target expense type corresponding to the adjusted business data; and obtain the target debit account and the target credit account based on the target expense type matching.
[0095] In some embodiments, the processor is also used to, in response to the target expense type being a bank deposit, determine that the target debit account and the target credit account are the debit account and credit account corresponding to the bank deposit, respectively; in response to the target expense type being accounts payable, determine that the target debit account and the target credit account are the debit account and credit account corresponding to the accounts payable, respectively.
[0096] In some embodiments, the processor is also used to flip the negative amount of the debit account to credit, and flip the negative amount of the debit account to a positive amount of the debit account; flip the negative amount of the credit account to debit, and flip the negative amount of the credit account to a positive amount of the credit account.
[0097] In some embodiments, the processor is also used to merge the amounts in the same account in the adjusted business data, and reverse the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
[0098] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed, any method for generating accounting vouchers provided in the embodiment of the present application is implemented.
[0099] The computer-readable storage medium may be an internal storage unit of the computer device described in the foregoing embodiment, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc., equipped on the computer device.
[0100] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like.
[0101] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for generating accounting documents, characterized in that: The method comprises: Acquire business data to be processed and an accounting rule engine model, wherein the structure of the accounting rule engine model at least includes expense type, payment method, initial debit account, and initial credit account; Performing an opposite adjustment on the business data to be processed to obtain adjusted business data; Analyzing the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data; The amount of the debit account and the amount of the target credit account are reversed to generate an accounting voucher corresponding to the business data to be processed.
2. The method according to claim 1, characterized in that The step of performing an opposite number adjustment on the service data to be processed to obtain the adjusted service data comprises: In response to the to-be-processed business data being a collection of payment, adjusting the payment amount in the to-be-processed business data to a negative number to obtain the adjusted business data; In response to the to-be-processed business data being a payment, the collection amount in the to-be-processed business data is adjusted to a negative number to obtain the adjusted business data.
3. The method according to claim 1, characterized in that The step of analyzing the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data includes: Analyzing the adjusted business data through the accounting rule engine model to determine the target expense type corresponding to the adjusted business data; The target debit account and the target credit account are obtained based on the target expense type matching.
4. The method according to claim 3, characterized in that The obtaining the target debit account and the target credit account based on the target expense type matching includes: In response to the target expense type being a bank deposit, determining that the target debit account and the target credit account are respectively the debit account and the credit account corresponding to the bank deposit; In response to the target expense type being accounts payable, the target debit account and the target credit account are determined to be the debit account and the credit account corresponding to the accounts payable, respectively.
5. The method according to claim 1, characterized in that The amount of the debit account includes the negative amount of the debit account, the amount of the credit account includes the negative amount of the credit account, the amount of the debit account and the amount of the target credit account are reversed, and an accounting voucher corresponding to the business data to be processed is generated, including: Reverse the negative amount of the debit account to the credit side, and at the same time reverse the negative amount of the debit account to the positive amount of the debit account; The negative amount of the credit account is reversed to the debit side, and the negative amount of the credit account is reversed to the positive amount of the credit account.
6. The method according to claim 1, characterized in that The step of reversing the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed further includes: The amounts in the same account in the adjusted business data are merged, and the amounts of the debit account and the amounts of the target credit account are reversed to generate accounting documents corresponding to the business data to be processed.
7. The method according to claim 1, characterized in that The structure of the accounting rule engine model also includes fund concentration methods, account borrowing relationships, product classifications, and product business lines.
8. A device for generating accounting vouchers, characterized in that: The device for generating accounting documents comprises: An acquisition module, the acquisition module is used to acquire the business data to be processed and the accounting rule engine model, wherein the structure of the accounting rule engine model at least includes the expense type, payment method, initial debit account and initial credit account; A reverse number adjustment module, the reverse number adjustment module is used to perform reverse number adjustment on the service data to be processed to obtain adjusted service data; An analysis module, the analysis module is used to analyze the adjusted business data through the accounting rule engine model to obtain a target debit account and a target credit account corresponding to the adjusted business data; An accounting voucher generation module is used to reverse the amount of the debit account and the amount of the target credit account to generate an accounting voucher corresponding to the business data to be processed.
9. A computer device, characterized in that: include: A memory and a processor; wherein the memory is connected to the processor for storing a program; the processor is used to implement the steps of the method for generating an accounting voucher as described in any one of claims 1 to 7 by running the program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, enables the processor to implement the steps of the method for generating an accounting document according to any one of claims 1 to 7.
Citation Information
Cited By
Accounting method and system based on ocean multi-source business data, and medium
CN120852079A