Voucher cancellation method, device, server and storage medium

By obtaining user information and accounting clearing strategies, and generating and grouping clearable information, the accurate verification of vouchers and high concurrent processing of large data volumes are achieved, and the problem of inability to accurately match user business needs and handle large data volumes in the prior art is solved.

CN113988773BActive Publication Date: 2025-04-01SF TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010656039.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2025-04-01
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

The prior art credential verification method cannot accurately match the user's business needs, and does not support high concurrency processing under large data volumes.

Method used

By obtaining the user's verification request, obtaining the uncleared item information to be verified and the accounting policy information to be verified based on the user information, generating clearable item information, and performing clearing grouping and verification matching comparison based on the preset clearing feature information, supporting high concurrency processing under large data volume.

Benefits of technology

It realizes accurate credential verification based on user business needs, supports high concurrent processing under large data volume, and improves the accuracy and processing capabilities of verification matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113988773B_ABST
    Figure CN113988773B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, server and storage medium for writing off a voucher. The writing off method includes: obtaining a user's writing off request, wherein the writing off request includes user information; obtaining unsettled item information to be written off and clearing policy information for writing off unsettled item information based on the user information; generating clearable item information based on the clearing policy information and the unsettled item information; performing clearing grouping on the clearable item information based on preset clearing feature information to obtain multiple group clearing data; performing writing off, matching and comparison on multiple group clearing data to obtain writing off information. On the one hand, the present application determines the corresponding clearing policy information based on the user information, and the clearing policy is flexible and configurable, and can accurately match the user's business needs. On the other hand, the clearable items of the voucher are grouped according to the clearing feature information and then matched and compared separately, which can support high concurrency processing under large data volumes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network technology, and in particular to a voucher verification method, device, server and storage medium. Background Art

[0002] With the booming development of new economy such as express delivery and e-commerce, corporate management in the new economy has increasingly higher requirements for the refinement of financial accounting. Especially with the promotion and popularization of electronic payments, while the recovery rate of accounts receivable has been improved, the requirements for the accuracy of write-off and matching of accounts receivable have also become higher and higher.

[0003] In the new economy, enterprises have a large number of users with many types, and the business orders and waybills are also huge. Whether from the perspective of cost or the workload of reconciliation, it is impossible to have one order and one voucher in financial accounting. It is necessary to summarize and process step by step from business to settlement and then to accounting and bookkeeping, which makes it difficult to accurately match accounts receivable and receipts, causing great trouble for subsequent reconciliation of receipts and user behavior analysis.

[0004] In the prior art, the voucher verification method cannot accurately match the user's business needs and does not support high-concurrency processing under large data volumes. Summary of the invention

[0005] Based on this, it is necessary to provide a voucher cancellation method, device, server and storage medium to address the technical problems that the voucher cancellation method in the prior art cannot accurately match the user's business needs and does not support high-concurrency processing under large data volumes.

[0006] In one aspect, the present application provides a method for writing off a voucher, the method comprising:

[0007] Obtaining a cancellation request from a user, wherein the cancellation request includes user information;

[0008] According to the user information, information of outstanding items to be written off and information on clearing strategies for writing off the outstanding items are obtained;

[0009] Generate clearable item information according to the clearing strategy information and the uncleared item information;

[0010] The clearable item information is grouped for clearing according to preset clearing characteristic information to obtain a plurality of grouped clearing data;

[0011] Write-off matching and comparison are performed on the multiple group clearing data to obtain write-off information.

[0012] The step of performing write-off matching and comparison on the plurality of grouped account clearing data to obtain write-off information includes:

[0013] According to the transaction virtual resource information in the grouped account clearing data, each grouped account clearing data is divided into a first account clearing group data and a first account to be cleared group data;

[0014] Sort the first account clearing group data and the first account cleared group data respectively according to preset sorting characteristic information to obtain second account clearing group data and second account cleared group data;

[0015] The second account clearing group data and the second account cleared group data under the grouped account clearing data are compared for write-off, matching and comparison to obtain the write-off information.

[0016] The step of performing write-off matching and comparison on the second account clearing group data and the second account cleared group data under the grouped account clearing data to obtain the write-off information includes:

[0017] According to the transaction virtual resource information of the second account clearing group data, the transaction virtual resource information of the second account clearing group data, and the type of the account clearing virtual resource, acquiring the account clearing virtual resource information of the second account clearing group data and the account clearing virtual resource information of the second account clearing group data;

[0018] According to the clearing virtual resource information and the cleared virtual resource information, the second clearing group data and the second cleared group data are compared and written off to obtain the write-off information.

[0019] Wherein, the clearing virtual resource information includes a plurality of clearing virtual resource values; the cleared virtual resource information includes a plurality of clearing virtual resource values;

[0020] The step of performing write-off matching and comparison on the second clearing group data and the second cleared group data according to the clearing virtual resource information and the cleared virtual resource information to obtain the write-off information includes:

[0021] Determining whether the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is equal to the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information;

[0022] If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are equal, then establishing a write-off relationship between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data;

[0023] The second item of the clearing virtual resource value of the clearing virtual resource information and the second item of the clearing virtual resource value of the cleared virtual resource information are compared for cancellation matching.

[0024] The write-off method further includes:

[0025] If the absolute values ​​of the first account clearing virtual resource value in the account clearing virtual resource information and the first account clearing virtual resource value in the account cleared virtual resource information are not equal, determining whether the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information;

[0026] If the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information, splitting the first account clearing virtual resource value in the account clearing virtual resource information into a first sub-account clearing virtual resource value and a second sub-account clearing virtual resource value, wherein the sum of the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account cleared virtual resource information is equal to zero;

[0027] Establishing a write-off relationship between the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information;

[0028] The second sub-account clearing virtual resource value is compared with the second item of the account clearing virtual resource value in the account clearing virtual resource information.

[0029] The clearing item information is grouped according to the clearing characteristic information to obtain a plurality of group clearing data, including:

[0030] Acquire the type of the account clearing virtual resource from the second account clearing group data;

[0031] Acquire the account clearing virtual resource value according to the account clearing virtual resource type and the transaction virtual resource value;

[0032] Acquire the local currency virtual resource value at the time of clearing the account according to the clearing virtual resource value and the transaction virtual resource value;

[0033] Obtaining the virtual resource value of the group currency at the clearing time point according to the virtual resource value of the local currency at the clearing time point;

[0034] The account clearing virtual resource value, the account clearing time point local currency virtual resource value, and the account clearing time point group currency virtual resource value are added to the plurality of group account clearing data.

[0035] The step of performing write-off matching and comparison on the plurality of group clearing data to obtain write-off information further includes:

[0036] Acquire the split second account clearing group data, the split information of the second account clearing group data, the split second account clearing group data and the split information of the second account clearing group data from the write-off information;

[0037] The write-off information is classified into different voucher items based on the split second clearing group data, the split information of the second clearing group data, the split second cleared group data, and the split information of the second cleared group data.

[0038] On the other hand, the present application provides a voucher cancellation device, the cancellation device comprising:

[0039] A first acquisition unit is used to acquire a cancellation request from a user, wherein the cancellation request includes user information;

[0040] A second acquisition unit is used to acquire, according to the user information, information about unsettled items to be written off and information about clearing strategies for writing off the unsettled items;

[0041] A generating unit, configured to generate clearable item information according to the clearing strategy information and the uncleared item information;

[0042] A clearing grouping unit, used for clearing grouping the clearable item information according to preset clearing characteristic information to obtain a plurality of group clearing data;

[0043] The write-off matching and comparison unit is used to perform write-off matching and comparison on the multiple group clearing data to obtain write-off information.

[0044] The write-off matching and comparison unit is further configured to divide each group of clearing data into first clearing group data and first cleared group data according to the transaction virtual resource information in the group clearing data;

[0045] Sort the first account clearing group data and the first account cleared group data respectively according to preset sorting characteristic information to obtain second account clearing group data and second account cleared group data;

[0046] The second account clearing group data and the second account cleared group data under the grouped account clearing data are compared for write-off, matching and comparison to obtain the write-off information.

[0047] The write-off matching and comparison unit is further configured to obtain the clearing virtual resource information of the second clearing group data and the cleared virtual resource information of the second clearing group data according to the transaction virtual resource information of the second clearing group data, the transaction virtual resource information of the second cleared group data, and the clearing virtual resource type;

[0048] According to the clearing virtual resource information and the cleared virtual resource information, the second clearing group data and the second cleared group data are compared and written off to obtain the write-off information.

[0049] Wherein, the clearing virtual resource information includes a plurality of clearing virtual resource values; the cleared virtual resource information includes a plurality of clearing virtual resource values;

[0050] The write-off matching comparison unit is further used to determine whether the absolute value of the first clearing virtual resource value in the clearing virtual resource information is equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information;

[0051] If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are equal, then establishing a write-off relationship between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data;

[0052] The second item of the clearing virtual resource value of the clearing virtual resource information and the second item of the clearing virtual resource value of the cleared virtual resource information are compared for cancellation matching.

[0053] The write-off matching comparison unit is further configured to determine whether the absolute value of the first clearing virtual resource value in the clearing virtual resource information is greater than the absolute value of the first clearing virtual resource value in the cleared virtual resource information if the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information are not equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information;

[0054] If the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information, splitting the first account clearing virtual resource value in the account clearing virtual resource information into a first sub-account clearing virtual resource value and a second sub-account clearing virtual resource value, wherein the sum of the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account cleared virtual resource information is equal to zero;

[0055] Establishing a write-off relationship between the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information;

[0056] The second sub-account clearing virtual resource value is compared with the second item of the account clearing virtual resource value in the account clearing virtual resource information.

[0057] The clearing grouping unit is further configured to obtain a clearing virtual resource type from the second clearing group data;

[0058] Acquire the account clearing virtual resource value according to the account clearing virtual resource type and the transaction virtual resource value;

[0059] Acquire the local currency virtual resource value at the time of clearing the account according to the clearing virtual resource value and the transaction virtual resource value;

[0060] Obtaining the virtual resource value of the group currency at the clearing time point according to the virtual resource value of the local currency at the clearing time point;

[0061] The account clearing virtual resource value, the account clearing time point local currency virtual resource value, and the account clearing time point group currency virtual resource value are added to the plurality of group account clearing data.

[0062] The write-off device further includes a classification unit, the classification unit being used to obtain the split second account clearing group data, the split information of the second account clearing group data, the split second account cleared group data and the split information of the second account cleared group data from the write-off information;

[0063] The write-off information is classified into different voucher items based on the split second clearing group data, the split information of the second clearing group data, the split second cleared group data, and the split information of the second cleared group data.

[0064] In another aspect, the present application further provides a server, comprising:

[0065] one or more processors;

[0066] Memory; and

[0067] One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the voucher revocation method.

[0068] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is loaded by a processor to execute the steps in the voucher verification method.

[0069] In this application, on the one hand, the corresponding clearing strategy information is determined based on user information, and the clearing strategy is flexible and configurable to accurately match the user's business needs. On the other hand, the clearable items of the voucher are grouped according to the clearing feature information and then matched and compared separately, which can support high-concurrency processing under large data volumes. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] In order to more clearly illustrate the technical solutions in 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 only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0071] Figure 1 It is a scenario diagram of the method for writing off a voucher provided in an embodiment of the present application;

[0072] Figure 2 It is a flowchart of an embodiment of the method for canceling a voucher provided in the embodiments of the present application;

[0073] Figure 3 This is a schematic diagram of an embodiment of S205 in the embodiment of the present application;

[0074] Figure 4 This is a schematic diagram of an embodiment of S303 in the embodiment of the present application;

[0075] Figure 5 This is a schematic diagram of an embodiment of S402 in the embodiment of the present application;

[0076] Figure 6 It is a schematic diagram of the structure of an embodiment of a voucher cancellation device provided in an embodiment of the present application;

[0077] Figure 7 It is a schematic diagram of the structure of an embodiment of the server provided in the embodiments of the present application. DETAILED DESCRIPTION

[0078] 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 only 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 those skilled in the art without creative work are within the scope of protection of this application.

[0079] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are used only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0080] In this application, the word "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described in this application as "exemplary" is not necessarily to be construed as being preferred or advantageous over other embodiments. The following description is given to enable any technician in the field to implement and use the present application. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present application can be implemented without using these specific details. In other instances, well-known structures and processes will not be elaborated in detail to avoid obscuring the description of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.

[0081] The embodiments of the present application provide a voucher cancellation method, device, server and storage medium, which are described in detail below.

[0082] See also Figure 1 , Figure 1 The scenario diagram of the method for revoking vouchers provided in the embodiment of the present application is shown in FIG. The method for revoking vouchers can be applied to a system for revoking vouchers. The system for revoking vouchers includes a user terminal 102 and a server 104. The user terminal 102 can be a desktop terminal or a mobile terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer, and a laptop computer. The server 104 can be implemented as an independent server or a server cluster composed of multiple servers. The user terminal 102 and the server 104 can establish a communication connection through a wide area network, a metropolitan area network, or a local area network.

[0083] like Figure 2 As shown, in one embodiment, a method for writing off a voucher is provided. This embodiment mainly applies the method to the above Figure 1 The server 104 in FIG. Figure 2 The method for writing off the voucher specifically includes the following steps:

[0084] S201. Obtain a cancellation request from a user, wherein the cancellation request includes user information.

[0085] In the embodiment of the present application, the user may send the user's cancellation request through the user terminal 102. The user information may include customer code information and customer contract type information.

[0086] S202. Obtain information on outstanding items to be written off and information on clearing strategies for writing off outstanding items based on user information.

[0087] Each entry is stored in the form of a voucher, and each voucher is retained in the system as a consistent unit until it is archived. Each voucher consists of a voucher header and two or more line items. The voucher header refers to the information valid for the entire voucher, such as four dates, text summary, voucher type, etc. Line items only contain information about specific items, such as accounting code, account code, amount, tax code, cost object, etc., which are determined by the configuration of account, accounting code, etc.

[0088] In the embodiment of the present application, the user's outstanding item information is screened out from the business database based on the user information. Each item of data in the outstanding item information may include the voucher number, item number, sub-item number, company code, settlement agreement, customer code, creation date, transaction amount, local currency amount, group currency amount, etc. Specifically, when the user conducts a transaction, each transaction data will be stored in the business database. The transaction data is the data before the voucher is officially posted, which can also be called the pre-voucher.

[0089] Further, clearing strategy information of the uncleared item information is determined based on the user information. The clearing strategy information may be a clearing variant. The clearing variant corresponds to the user information, and the user may customize the setting according to the needs. Specifically, the clearing strategy information may include clearing features and sorting features. For example, the clearing features may be customer codes and settlement agreements, and the sorting features may be creation dates. The clearing features are used as filtering conditions; the sorting features are used to determine the order of data items during use. For example, data with features such as customer codes or creation dates are filtered out from the uncleared item information to form clearable item information.

[0090] S203. Generate clearable item information according to the clearing strategy information and the uncleared item information.

[0091] In the embodiment of the present application, the uncleared item information is screened according to the clearing strategy information to obtain the clearable item information. Each item of data in the clearable item information can be marked with a clearing characteristic value and a sorting characteristic value while screening, and the clearing characteristic value and sorting characteristic value of each item of data in the clearable item information can be obtained. For example, there are three items of data in the marked clearable item information, each of which has a [customer code] field, a [settlement agreement] field, and a [creation time] field. The customer code value in the first item of the clearable item information is 001, the settlement agreement value is 003, and the creation time value is 20200501; the customer code value in the second item of data is 002, the settlement agreement value is 004, and the creation time is 20200515. The customer code value in the third item of data is 001, the settlement agreement value is 004, and the creation time value is 20200401. Here, [customer code] and [creation time] can be used as clearing characteristics, and [creation time] can be used as sorting characteristics.

[0092] S204. Group the clearable item information according to preset clearing characteristic information to obtain a plurality of group clearing data.

[0093] In the embodiment of the present application, the preset account clearing characteristic information is input by the user and customized according to the user's needs. For example, the preset account clearing characteristic information can be a combination of a settlement agreement value and a customer code value, and the data with a settlement agreement value of 001 and a customer code value of 002 in the clearable item information is used as one group of account clearing data, and the data with a settlement agreement value of 002 and a customer code value of 002 in the clearable item information is used as another group of account clearing data.

[0094] S205: Perform write-off matching and comparison on multiple group clearing data to obtain write-off information.

[0095] like Figure 3 As shown, in one embodiment, multiple group clearing data are compared and matched to obtain the write-off information, which specifically includes the following steps:

[0096] S301. Divide each group of clearing data into first clearing group data and first cleared group data according to transaction virtual resource information in the group clearing data.

[0097] Specifically, the transaction virtual resource information is the transaction amount of the transaction data. For example, the transaction amount is 10 yuan, -10 yuan, etc. The data with negative transaction amounts in the grouped clearing data are determined as the first clearing group data, and the data with positive transaction amounts in the grouped clearing data are determined as the first cleared group data. For example, there are three data in the first clearing group data, and the transaction amounts of the three data are -80 yuan, -100 yuan, and -50 yuan respectively. There are three data in the first cleared group data, and the transaction amounts of the three data are 80 yuan, 90 yuan, and 50 yuan respectively.

[0098] S302 . Sort the first clearing group data and the first cleared group data respectively according to preset sorting characteristic information to obtain the second clearing group data and the second cleared group data.

[0099] In an embodiment of the present application, the preset sorting feature information is input by the user, for example, the sorting feature information includes sorting features and sorting logic, which can be customized by the user. For example, the sorting feature is [transaction amount], and the sorting logic is to sort from large to small by the absolute value of the transaction amount. The first account clearing group data is sorted according to the preset sorting feature information to obtain the second account clearing group data, that is, the sorted first account clearing group data. The first account clearing group data is sorted according to the preset sorting feature information to obtain the second account clearing group data, that is, the sorted first account clearing group data. For example, the transaction amounts in the second account clearing group data obtained by sorting the first account clearing group data and the first account clearing group data are: -100 yuan, -80 yuan, and -50 yuan, respectively. The transaction amounts of the obtained second account clearing group data are: 90 yuan, 80 yuan, and 50 yuan, respectively.

[0100] S303: Perform write-off matching and comparison on the second account clearing group data and the second account cleared group data under the grouped account clearing data to obtain write-off information.

[0101] like Figure 4 As shown, in one embodiment, performing write-off matching and comparison on the second clearing group data and the second cleared group data under the grouped clearing data to obtain write-off information specifically includes the following steps:

[0102] S401 . Acquire clearing virtual resource information of the second clearing group data and cleared virtual resource information of the second cleared group data according to transaction virtual resource information of the second clearing group data, transaction virtual resource information of the second cleared group data, and clearing virtual resource type.

[0103] In the embodiment of the present application, the transaction virtual resource information is the transaction amount. The clearing virtual resource type is the clearing currency, which can be RMB, USD, EUR, etc. Specifically, the base currency of the first item of data in the second clearing group data is determined as the clearing currency. Specifically, the clearing virtual resource type is obtained from the second clearing group data, and the clearing virtual resource value is obtained according to the clearing virtual resource type and the transaction virtual resource value.

[0104] Furthermore, the clearing amount and the corresponding conversion rate are obtained according to the transaction amount of each data item in the second clearing group data, the transaction amount of each data item in the second cleared group data, and the clearing currency. The conversion logic is as follows:

[0105] By inputting [From Currency]=the transaction currency in the item to be cleared, [To Currency]=the clearing currency in the item to be cleared, [From Currency Amount]=the transaction amount in the item to be cleared, and Foreign Currency Conversion Date = [Posting Date] in the 《Automatic Clearing Identification Table》. Invoke the method <exchangeCurrency Convert Currency> in the class {CurrencyController Currency}, and obtain the return values [To Currency Amount] and [Exchange Rate], which are used as the current [Clearing Amount] and the corresponding [Exchange Rate] for each item to be cleared.

[0106] Furthermore, obtain the virtual resource value in the local currency at the clearing point based on the clearing virtual resource value and the transaction virtual resource value.

[0107] Specifically, obtain the [Local Currency Amount at Clearing Point] and the corresponding conversion [Exchange Rate] based on the [Clearing Amount]. The conversion logic is as follows:

[0108] By inputting [From Currency]=(clearing currency) in the item to be cleared, [To Currency]=(local currency) in the item to be cleared, [From Currency Amount]=(clearing amount) in the item to be cleared, and [Foreign Currency Conversion Date]=[Posting Date] in the 《Automatic Clearing Identification Table》, invoke the method <exchangeCurrency Convert Currency> in the class {CurrencyController Currency}, and obtain the return values [To Currency Amount] and [Exchange Rate], which are used as the current [Local Currency Amount at Clearing Point] and the corresponding [Exchange Rate] for each item to be cleared.

[0109] Furthermore, obtain the virtual resource value in the group currency at the clearing point based on the virtual resource value in the local currency at the clearing point. Specifically, the virtual resource value in the local currency is [Local Currency Amount at Clearing Point], and the virtual resource value in the group currency at the clearing point is [Group Currency Amount at Clearing Point].

[0110] Convert the [Local Currency Amount at Clearing Point] to the [Group Currency Amount at Clearing Point] and the corresponding conversion [Exchange Rate]. The conversion logic is as follows:

[0111] By inputting [From Currency]=(local currency) in the item to be cleared, [To Currency]=(group currency) in the item to be cleared, [From Currency Amount]=(Local Currency Amount at Clearing Point) in the item to be cleared, and [Foreign Currency Conversion Date]=[Posting Date] in the 《Automatic Clearing Identification Table》, invoke the method <exchangeCurrency Convert Currency> in the class {CurrencyController Currency}, and obtain the return values [To Currency Amount] and [Exchange Rate], which are used as the current [Group Currency Amount at Clearing Point] and the corresponding [Exchange Rate] for each item to be cleared.

[0112] After obtaining the account clearing virtual resource value, the account clearing time local currency virtual resource value, and the account clearing time group currency virtual resource value, the account clearing virtual resource value, the account clearing time local currency virtual resource value, and the account clearing time group currency virtual resource value are added to multiple group clearing data.

[0113] S402: Perform write-off matching and comparison on the second clearing group data and the second cleared group data according to the clearing virtual resource information and the cleared virtual resource information to obtain write-off information.

[0114] like Figure 5 As shown, in one embodiment, according to the clearing virtual resource information and the cleared virtual resource information, the second clearing group data and the second cleared group data are compared and written off to obtain the write-off information, including the following steps:

[0115] S501: Determine whether the absolute value of the first item of clearing virtual resource value in the clearing virtual resource information is equal to the absolute value of the first item of clearing virtual resource value in the cleared virtual resource information.

[0116] The clearing virtual resource information includes a plurality of clearing virtual resource values; the cleared virtual resource information includes a plurality of clearing virtual resource values. The clearing virtual resource value may be a clearing amount. For example, the clearing virtual resource value in the clearing virtual resource information is: -100 yuan, -80 yuan, -50 yuan. The clearing virtual resource values ​​of the second cleared group data obtained are: 90 yuan, 80 yuan, 50 yuan respectively.

[0117] Specifically, if the absolute value of the first clearing virtual resource value in the clearing virtual resource information is equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information, S502 is executed; if the absolute value of the first clearing virtual resource value in the clearing virtual resource information is not equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information, S504 is executed.

[0118] S502: If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are equal, a write-off relationship is established between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data.

[0119] For example, the first clearing virtual resource value of the second clearing group data is -100 yuan, and the first clearing virtual resource value of the second cleared group data is 100 yuan. A write-off relationship is established between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data.

[0120] S503: Compare and write off the second clearing virtual resource value of the second clearing group data with the second clearing virtual resource value of the second cleared group data. The process of comparing and writing off the second clearing virtual resource value of the second clearing group data with the second clearing virtual resource value of the second cleared group data may refer to S501.

[0121] S504. If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are not equal, determine whether the absolute value of the first clearing virtual resource value in the clearing virtual resource information is greater than the absolute value of the first clearing virtual resource value in the cleared virtual resource information.

[0122] S505. If the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information, the first account clearing virtual resource value in the account clearing virtual resource information is split into a first sub-account clearing virtual resource value and a second sub-account clearing virtual resource value, wherein the sum of the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information is equal to zero.

[0123] For example, if the first clearing virtual resource value in the clearing virtual resource information is -100 yuan, and the first clearing virtual resource value in the cleared virtual resource information is 90 yuan, the first clearing virtual resource value in the clearing virtual resource information is split into a first sub-clearing virtual resource value and a second sub-clearing virtual resource value, which are -90 yuan and -10 yuan respectively.

[0124] Further, in S504, if it is determined that the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is not greater than the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information, the first account clearing virtual resource value in the account clearing virtual resource information is split into a third sub-account clearing virtual resource value and a fourth sub-account clearing virtual resource value, wherein the sum of the third sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information is equal to zero. A write-off relationship is established between the third sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information. The fourth sub-account clearing virtual resource value is compared with the second account clearing virtual resource value in the account clearing virtual resource information for write-off matching.

[0125] S506: Establish a write-off relationship between the first sub-clearing virtual resource value and the first clearing virtual resource value in the cleared virtual resource information.

[0126] S507: Compare and match the second sub-account clearing virtual resource value with the second item of account clearing virtual resource value in the account clearing virtual resource information.

[0127] It should be noted that according to the splitting strategy of Clearing Amount, Transaction Amount, Local Currency Amount, Group Currency Amount, Local Currency Amount at Clearing Time, and Group Currency Amount at Clearing Time are split according to the same period of Clearing Amount. During the amount splitting process, it is necessary to ensure that the sum of the amount of the original voucher item before and after the split is consistent. If there is an inconsistency due to the difference in decimal places, the difference needs to be added to the remaining amount item after the split.

[0128] If there are clearable items in the other set of data that can be used for further comparison after the remaining amount entry is newly separated, all fields of the newly separated remaining amount entry except the amount field will be assigned the same field values ​​as the original entry.

[0129] When the newly lent remaining amount continues to participate in the clearing and write-off matching comparison, the Local Currency Amount and Group Currency Amount in the item participating in the clearing comparison need to be compared with the Local Currency Amount and Group Currency Amount remaining before the item participates in the comparison again:

[0130] If the absolute value of the local currency amount involved in the clearing comparison is greater than the absolute value of the local currency amount remaining before the comparison, the local currency amount involved in the clearing comparison will be replaced with the local currency amount remaining before the comparison.

[0131] If the absolute value of the Group Currency Amount involved in the clearing comparison is greater than the absolute value of the Group Currency Amount remaining before the comparison, the Group Currency Amount involved in the clearing comparison will be replaced with the Group Currency Amount remaining before the comparison.

[0132] After the above two amount replacement processes, if the item continues to participate in subsequent clearing due to incomplete clearing of the transaction amount, the local currency amount for each clearing will be 0;

[0133] If there is no clearable item in the other set of data for further comparison after the remaining amount item is newly separated, the [Sub-item Number] of the newly separated remaining amount item = the maximum [Sub-item Number] of the original item + 1, and the [Previous Sub-item Number] = the [Sub-item Number] of the original item. Except for all amount fields, other fields are assigned exactly the same field values ​​as the original item.

[0134] For example, Company Code 1 is the company code in the second clearing group data, and Company Code 2 is the company code in the second cleared group data. In the write-off information, for entries where Company Code 1 and Company Code 2 are not empty, subtract Local Currency Amount 1 from Local Currency Amount 1 at Clearing Time for each entry, and assign the result to the corresponding Local Currency Exchange Difference 1; subtract Local Currency Amount 2 from Local Currency Amount 2 at Clearing Time for each entry, and assign the result to the corresponding Local Currency Exchange Difference 2;

[0135] Then subtract the Group Currency Amount 1 and the Group Currency Amount 1 at the Time of Clearing for each data item, and assign the result to the corresponding Group Currency Exchange Difference 1. Subtract the Group Currency Amount 2 and the Group Currency Amount 2 at the Time of Clearing for each data item, and assign the result to the corresponding Group Currency Exchange Difference 2.

[0136] If both Company Code 1 and Company Code 2 in the write-off information are not empty and the values ​​of the two fields are different, the value of the Cross-account Set Identifier field is set to Yes (1), otherwise the value is set to No (0).

[0137] Furthermore, after performing write-off matching and comparison on a plurality of group clearing data to obtain write-off information, the following steps are also included:

[0138] (1) Acquire the split second clearing group data, split information of the second clearing group data, split second cleared group data, and split information of the second cleared group data from the write-off information.

[0139] In the embodiment of the present application, the write-off information includes the split second account clearing group data, the split information of the second account clearing group data, the split second account cleared group data, and the split information of the second account cleared group data. The split second account clearing group data and the split second account cleared group data can be combined to obtain the "Account Clearing Matching Comparison Result Table". The split information of the second account clearing group data includes whether each account clearing amount in the second account clearing group data is split. The split information of the second account cleared group data includes whether each account clearing amount in the second account cleared group data is split.

[0140] (2) Classifying the write-off information into different voucher items based on the split second clearing group data, the split information of the second clearing group data, the split second cleared group data, and the split information of the second cleared group data.

[0141] The voucher includes the voucher customer details and the voucher general ledger details. The process before the voucher is officially posted is defined as the pre-voucher, which is mainly used to verify the data standardization before the voucher is officially posted. The pre-voucher includes the pre-voucher customer details and the pre-voucher general ledger details. For example, the pre-voucher customer details are in the Pre-voucher Customer Details table, and the pre-voucher general ledger information is in the Pre-voucher General Ledger Details table.

[0142] 1) Classify the data with Company Code 1 or Company Code 2 blank in the Account Clearing Matching Comparison Result Table as the second voucher item in the customer details of the preceding voucher.

[0143] Assign the write-off information according to the requirements of the second voucher item.

[0144] 2) In the Clearing Matching Comparison Result Table, the data where both Company Code 1 and Company Code 2 are not empty and the clearing amount in the entry is not split is classified as the third voucher item.

[0145] Assign the write-off information according to the requirements of the third voucher item.

[0146] 3) In the Clearing Matching Comparison Result Table, if both Company Code 1 and Company Code 2 are not empty and the data from which the clearing amount is split in the comparison item is classified as the sixth voucher item.

[0147] 4) Re-assign values ​​to the items categorized as the third credential item and the sixth credential item above.

[0148] 5) Classify the voucher items with [Booking Type] = (Clearing Exchange Difference) in the table "Previous Voucher General Ledger Details". Assign the write-off information according to the requirements of the voucher items with [Booking Type] = (Clearing Exchange Difference) in the table "Previous Voucher General Ledger Details".

[0149] 6) Classify the voucher items with [Booking Type] = (Payment or Clearing Internal Transactions) in the table of [Pre-Voucher General Ledger Details]:

[0150] When the [Cross-account set identifier] of a record in the "Account Clearing Matching Comparison Result Table" = 1, it means that the clearing comparison is across account sets, and the general ledger voucher items for internal transactions across account sets need to be accounted for. Note: the general ledger voucher items for internal transactions across account sets must appear in pairs, with opposite amounts, and the trading partners need to be accounted for.

[0151] In order to better implement the method for cancelling the voucher in the embodiment of the present application, on the basis of the method for cancelling the voucher, a device for cancelling the voucher is also provided in the embodiment of the present application. Figure 6 As shown, Figure 6 6 is a schematic diagram of the structure of an embodiment of a voucher cancellation device provided in an embodiment of the present application. The voucher cancellation device includes a first acquisition unit 601, a second acquisition unit 602, a generation unit 603, an account clearing grouping unit 604, and a cancellation matching comparison unit 605:

[0152] A first acquisition unit 601 is used to acquire a cancellation request from a user, wherein the cancellation request includes user information;

[0153] The second acquisition unit 602 is used to acquire the unsettled item information to be written off and the clearing strategy information of the unsettled item information according to the user information;

[0154] A generating unit 603, configured to generate clearable item information according to the clearing strategy information and the uncleared item information;

[0155] The clearing grouping unit 604 is used to group the clearable item information according to preset clearing characteristic information to obtain a plurality of group clearing data;

[0156] The write-off matching and comparison unit 605 is used to perform write-off matching and comparison on a plurality of group clearing data to obtain write-off information.

[0157] The write-off matching comparison unit 605 is further used to divide each group clearing data into a first clearing group data and a first cleared group data according to the transaction virtual resource information in the group clearing data;

[0158] Sort the first clearing group data and the first cleared group data respectively according to the preset sorting characteristic information to obtain the second clearing group data and the second cleared group data;

[0159] The second account clearing group data and the second account cleared group data under the grouped account clearing data are compared and written off to obtain the write-off information.

[0160] The write-off matching comparison unit 605 is further configured to obtain the clearing virtual resource information of the second clearing group data and the cleared virtual resource information of the second clearing group data according to the transaction virtual resource information of the second clearing group data, the transaction virtual resource information of the second cleared group data, and the clearing virtual resource type;

[0161] According to the clearing virtual resource information and the cleared virtual resource information, the second clearing group data and the second cleared group data are compared and written off to obtain the written off information.

[0162] The clearing virtual resource information includes a plurality of clearing virtual resource values; the cleared virtual resource information includes a plurality of clearing virtual resource values;

[0163] The write-off matching comparison unit 605 is further used to determine whether the absolute value of the first clearing virtual resource value in the clearing virtual resource information is equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information;

[0164] If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are equal, a write-off relationship is established between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data;

[0165] The second item of the clearing virtual resource value of the clearing virtual resource information and the second item of the clearing virtual resource value of the cleared virtual resource information are compared for write-off matching.

[0166] The write-off matching comparison unit 605 is further used to determine whether the absolute value of the first clearing virtual resource value in the clearing virtual resource information is greater than the absolute value of the first clearing virtual resource value in the cleared virtual resource information if the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information are not equal to the absolute value of the first clearing virtual resource value in the cleared virtual resource information;

[0167] If the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information, splitting the first account clearing virtual resource value in the account clearing virtual resource information into a first sub-account clearing virtual resource value and a second sub-account clearing virtual resource value, wherein the sum of the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the second account clearing data is equal to zero;

[0168] Establishing a write-off relationship between the first sub-account clearing virtual resource value and the first item of account clearing virtual resource value in the account clearing virtual resource information;

[0169] The second sub-clearing virtual resource value is compared with the second clearing virtual resource value in the cleared virtual resource information.

[0170] The clearing grouping unit 604 is further used to obtain the clearing virtual resource type from the second clearing group data;

[0171] Obtain the account clearing virtual resource value according to the account clearing virtual resource type and the transaction virtual resource value;

[0172] Obtain the local currency virtual resource value at the time of clearing based on the clearing virtual resource value and the transaction virtual resource value;

[0173] Obtain the virtual resource value of the group currency at the time of clearing according to the virtual resource value of the local currency at the time of clearing;

[0174] Add the clearing virtual resource value, the local currency virtual resource value at the clearing time point, and the group currency virtual resource value at the clearing time point to multiple group clearing data.

[0175] The write-off device further includes a classification unit, which is used to obtain the split second account clearing group data, the split information of the second account clearing group data, the split second account cleared group data and the split information of the second account cleared group data from the write-off information;

[0176] The write-off information is classified into different voucher items based on the split second clearing group data, the split information of the second clearing group data, the split second cleared group data and the split information of the second cleared group data.

[0177] The present application also provides a server. Figure 7 As shown, Figure 7This is a schematic diagram of the structure of an embodiment of the server provided in the embodiments of the present application, specifically:

[0178] The server may include one or more processing core processors 701, one or more computer-readable storage media memories 702, a power supply 703, an input unit 704 and other components. Those skilled in the art will appreciate that the server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:

[0179] The processor 701 is the control center of the server, and uses various interfaces and lines to connect various parts of the entire server. By running or executing software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, the processor 701 performs various functions of the server and processes data, thereby monitoring the server as a whole. Optionally, the processor 701 may include one or more processing cores; preferably, the processor 701 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 701.

[0180] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing by running the software programs and modules stored in the memory 702. The memory 702 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the server, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 702 may also include a memory controller to provide the processor 701 with access to the memory 702.

[0181] The server also includes a power supply 703 for supplying power to each component. Preferably, the power supply 703 can be logically connected to the processor 701 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 703 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0182] The server may further include an input unit 704, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0183] Although not shown, the server may further include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 701 in the server will load the executable files corresponding to the processes of one or more applications into the memory 702 according to the following instructions, and the processor 701 will run the application stored in the memory 702, thereby realizing various functions, as follows:

[0184] Obtaining a user's cancellation request, wherein the cancellation request includes user information;

[0185] According to user information, obtain the information of outstanding items to be written off and the clearing strategy information of the outstanding items to be written off;

[0186] Generate clearable item information based on clearing strategy information and open item information;

[0187] The clearable item information is grouped according to the preset clearing characteristic information to obtain multiple group clearing data;

[0188] Write-off matching and comparison are performed on multiple group clearing data to obtain write-off information.

[0189] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0190] To this end, an embodiment of the present application provides a computer-readable storage medium, which may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc. A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in any voucher cancellation method provided in the embodiment of the present application. For example, the computer program loaded by the processor can execute the following steps:

[0191] Obtaining a user's cancellation request, wherein the cancellation request includes user information;

[0192] According to user information, obtain the information of outstanding items to be written off and the clearing strategy information of the outstanding items to be written off;

[0193] Generate clearable item information based on clearing strategy information and open item information;

[0194] The clearable item information is grouped according to the preset clearing characteristic information to obtain multiple group clearing data;

[0195] Write-off matching and comparison are performed on multiple group clearing data to obtain write-off information.

[0196] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the detailed description of other embodiments above, and will not be repeated here.

[0197] In specific implementation, the above units or structures can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units or structures can refer to the previous method embodiments, which will not be repeated here.

[0198] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0199] The above is a detailed introduction to the method, device, server and storage medium for revoking a voucher provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for writing off a voucher, characterized in that: The write-off methods include: Obtaining a cancellation request from a user, wherein the cancellation request includes user information; According to the user information, information of outstanding items to be written off and information on clearing strategies for writing off the outstanding items are obtained; Generate clearable item information according to the clearing strategy information and the uncleared item information; The clearable item information is grouped for clearing according to preset clearing characteristic information to obtain a plurality of grouped clearing data; Performing write-off matching and comparison on the plurality of grouped account clearing data to obtain write-off information; Wherein, obtaining the unsettled item information to be written off and the clearing strategy information for writing off the unsettled item information according to the user information includes: Filtering out the user's outstanding item information from a business database according to the user information, and determining the clearing strategy information of the outstanding item information according to the user information; The generating of clearable item information according to the clearing strategy information and the uncleared item information includes: filtering the uncleared item information according to the clearing strategy information to obtain the clearable item information; The step of performing write-off matching and comparison on the plurality of grouped account clearing data to obtain write-off information includes: According to the transaction virtual resource information in the grouped account clearing data, each grouped account clearing data is divided into a first account clearing group data and a first account to be cleared group data; Sort the first account clearing group data and the first account cleared group data respectively according to preset sorting characteristic information to obtain second account clearing group data and second account cleared group data; The second account clearing group data and the second account cleared group data under the grouped account clearing data are compared for write-off, matching and comparison to obtain the write-off information.

2. The voucher cancellation method according to claim 1, characterized in that: The performing write-off matching and comparison on the second account clearing group data and the second account cleared group data under the grouped account clearing data to obtain the write-off information includes: According to the transaction virtual resource information of the second account clearing group data, the transaction virtual resource information of the second account clearing group data, and the type of the account clearing virtual resource, acquiring the account clearing virtual resource information of the second account clearing group data and the account clearing virtual resource information of the second account clearing group data; According to the clearing virtual resource information and the cleared virtual resource information, the second clearing group data and the second cleared group data are compared and written off to obtain the write-off information.

3. The method for cancelling a voucher as claimed in claim 2, characterized in that: The clearing virtual resource information includes a plurality of clearing virtual resource values; the cleared virtual resource information includes a plurality of clearing virtual resource values; The step of performing write-off matching and comparison on the second clearing group data and the second cleared group data according to the clearing virtual resource information and the cleared virtual resource information to obtain the write-off information includes: Determining whether the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is equal to the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information; If the absolute values ​​of the first clearing virtual resource value in the clearing virtual resource information and the first clearing virtual resource value in the cleared virtual resource information are equal, then establishing a write-off relationship between the first clearing virtual resource value in the second clearing group data and the first clearing virtual resource value in the second cleared group data; The second item of the clearing virtual resource value of the clearing virtual resource information and the second item of the clearing virtual resource value of the cleared virtual resource information are compared for cancellation matching.

4. The method for cancelling a voucher as claimed in claim 3, characterized in that: The write-off method also includes: If the absolute values ​​of the first account clearing virtual resource value in the account clearing virtual resource information and the first account clearing virtual resource value in the account cleared virtual resource information are not equal, determining whether the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information; If the absolute value of the first account clearing virtual resource value in the account clearing virtual resource information is greater than the absolute value of the first account clearing virtual resource value in the account cleared virtual resource information, splitting the first account clearing virtual resource value in the account clearing virtual resource information into a first sub-account clearing virtual resource value and a second sub-account clearing virtual resource value, wherein the sum of the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account cleared virtual resource information is equal to zero; Establishing a write-off relationship between the first sub-account clearing virtual resource value and the first account clearing virtual resource value in the account clearing virtual resource information; The second sub-account clearing virtual resource value is compared with the second item of the account clearing virtual resource value in the account clearing virtual resource information.

5. The voucher cancellation method according to claim 1, characterized in that: The clearing item information is grouped according to the clearing characteristic information to obtain a plurality of group clearing data, including: Acquire the type of the account clearing virtual resource from the second account clearing group data; Acquire the account clearing virtual resource value according to the account clearing virtual resource type and the transaction virtual resource value; Acquire the local currency virtual resource value at the time of clearing the account according to the clearing virtual resource value and the transaction virtual resource value; Obtaining the virtual resource value of the group currency at the clearing time point according to the virtual resource value of the local currency at the clearing time point; The account clearing virtual resource value, the account clearing time point local currency virtual resource value, and the account clearing time point group currency virtual resource value are added to the plurality of group account clearing data.

6. The method for cancelling a voucher as claimed in claim 5, characterized in that: The method of performing write-off matching and comparison on the plurality of grouped account clearing data to obtain write-off information may then include: Acquire the split second account clearing group data, the split information of the second account clearing group data, the split second account clearing group data and the split information of the second account clearing group data from the write-off information; The write-off information is classified into different voucher items based on the split second clearing group data, the split information of the second clearing group data, the split second cleared group data, and the split information of the second cleared group data.

7. A voucher cancellation device, characterized in that: The cancellation device comprises: A first acquisition unit is used to acquire a cancellation request from a user, wherein the cancellation request includes user information; A second acquisition unit is used to acquire, according to the user information, the unsettled item information to be written off and the clearing strategy information for writing off the unsettled item information; specifically, to filter out the unsettled item information of the user from the business database according to the user information, and to determine the clearing strategy information of the unsettled item information according to the user information; A generating unit, configured to generate clearable item information according to the clearing strategy information and the uncleared item information; specifically, filtering the uncleared item information according to the clearing strategy information to obtain the clearable item information; A clearing grouping unit, used for clearing grouping the clearable item information according to preset clearing characteristic information to obtain a plurality of group clearing data; A matching and comparing unit, configured to match and compare the plurality of grouped account clearing data to obtain account clearing matching and comparison information; The write-off matching and comparison unit is further used to divide each group clearing data into first clearing group data and first cleared group data according to the transaction virtual resource information in the group clearing data; sort the first clearing group data and the first cleared group data respectively according to the preset sorting feature information to obtain the second clearing group data and the second cleared group data; and perform write-off matching and comparison on the second clearing group data and the second cleared group data under the group clearing data to obtain write-off information.

8. A server, characterized in that: The server comprises: one or more processors; Memory; and One or more application programs, wherein the one or more application programs are stored in the memory and are configured to be executed by the processor to implement the voucher revocation method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the voucher cancellation method described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Cancel-after-verification realization method and system

    CN102136093A

  • Data processing method and device

    CN111143327A