[go: up one dir, main page]

WO2020098366A1 - Method, apparatus and device for adjusting accounting tail error in foreign currency accounting - Google Patents

Method, apparatus and device for adjusting accounting tail error in foreign currency accounting Download PDF

Info

Publication number
WO2020098366A1
WO2020098366A1 PCT/CN2019/106018 CN2019106018W WO2020098366A1 WO 2020098366 A1 WO2020098366 A1 WO 2020098366A1 CN 2019106018 W CN2019106018 W CN 2019106018W WO 2020098366 A1 WO2020098366 A1 WO 2020098366A1
Authority
WO
WIPO (PCT)
Prior art keywords
amount
currency
entry
accounting
entry set
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2019/106018
Other languages
French (fr)
Chinese (zh)
Inventor
胡嵩
屈潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of WO2020098366A1 publication Critical patent/WO2020098366A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the present application relates to the technical field of data processing, and in particular, to a method, device, and equipment for adjusting the accounting tail difference in foreign currency accounting.
  • the debit and credit bookkeeping method uses debit and credit as the accounting symbols, and abides by the accounting rules of "there must be a loan and the loan must be equal”.
  • Accounting entries are also called “accounting formulas", or “entry entries” for short. It is a record that lists the accounts of both parties and their amounts for each economic business according to the requirements of the double entry accounting principle.
  • Multi-currency bookkeeping is a relatively common business in accounting business. Among them, the bookkeeping standard currency is a unit of measurement used as the basic standard for accounting measurement used by an accounting entity based on the characteristics of its business operations. After determining the accounting standard currency, the other currencies are all non-accounting standard currencies, that is, foreign currencies in the accounting concept.
  • the foreign currency accounting business in multi-currency accounting involves the step of converting foreign currency accounting entries to the standard currency accounting entries. Since each line of transaction records in the foreign currency accounting entries is accounted for in foreign currencies to obtain the standard currency accounting entries, The actual standard currency amount of both borrowers and lenders needs to be saved according to the preset standard currency precision and the rounding count retention method. Therefore, the actual standard currency of the standard currency accounting entry is converted from the multi-currency accounting entry to the standard currency accounting entry The total amount is not equal to the total amount of the equivalent standard currency of the multi-currency accounting entry, and there is a tailing difference in accounting. In response to the above-mentioned problems, the tail difference is usually adjusted manually, and the efficiency is low.
  • the embodiments of the present application provide a method, device and equipment for adjusting the accounting tail difference in foreign currency accounting to improve the efficiency of adjusting the accounting tail difference in foreign currency accounting.
  • An embodiment of the present specification provides a method for adjusting the trailing difference in accounting in foreign currency accounting, including:
  • the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;
  • the first comparison result includes greater than or less than
  • a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;
  • the second entry set is split by using the split base amount to obtain a third entry set;
  • the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency
  • the foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set;
  • the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.
  • An embodiment of the present specification provides a device for adjusting the trailing difference in accounting in foreign currency accounting, including:
  • the first obtaining module is used to obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;
  • a second obtaining module configured to obtain the total amount of the first actual standard currency of the first entry set
  • a first comparison module for comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain the total amount of the first actual standard currency relative to the total of the first theoretical standard currency
  • the first comparison result of the amount; the first comparison result includes greater than or less than;
  • a second entry set determination module configured to determine a second entry set from the first entry set based on the first comparison result; the second accounting entry in the second entry set
  • the comparison result of the second actual standard currency total amount with respect to the first equivalent standard currency total amount of the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;
  • the splitting module is used to split the second entry set by using the split base amount to obtain a third entry set;
  • the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than
  • the foreign currency amount of the minimum counting unit of the standard currency is preset, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set;
  • the total foreign currency amount of the third entry set and the first The total foreign currency amount of one entry set is equal, and the third actual standard currency total amount of the third entry set is equal to the third theoretical standard currency total amount of the third entry set.
  • An embodiment of the present specification provides a device for adjusting the accounting tail difference in foreign currency accounting, including:
  • At least one processor and,
  • a memory communicatively connected to the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:
  • the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;
  • the first comparison result includes greater than or less than
  • a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;
  • the second entry set is split by using the split base amount to obtain a third entry set;
  • the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency
  • the foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set;
  • the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.
  • the third entry set Since the actual total foreign currency amount of the third entry set is equal to the actual foreign currency total amount of the first entry set, the third entry set is consistent with the actual business; each row of transaction records in the third entry set is converted at the exchange rate
  • the actual standard currency amount is equal to the theoretical standard currency amount, which is in line with the foreign currency accounting principle, avoiding the situation where the actual standard currency amount obtained from the conversion of some transaction records resulting from manual adjustment of the accounting tail difference at the exchange rate is not equal to the theoretical standard currency .
  • FIG. 1 is a schematic flowchart of a method for adjusting a trailing balance in foreign currency accounting provided by an embodiment of the present specification
  • FIG. 2 is a schematic structural diagram of an apparatus for adjusting a billing tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification;
  • FIG. 3 is a schematic structural diagram of an apparatus for adjusting an accounting tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification.
  • Table 1 is the data involved in a foreign currency accounting set for foreign currency accounting. As shown in Table 1:
  • RMB is defined as the standard currency
  • US dollar is the foreign currency
  • the standard currency amount accuracy in the standard currency entry is yuan, that is, the preset standard
  • the minimum unit for counting coins is 1 yuan.
  • the total amount of foreign currency in the debit of the foreign currency entry set in Table 1 is equal to the total amount of foreign currency in the credit, that is, the foreign currency entry set debit balance.
  • the collection of foreign currency entries includes two accounting entries, each of which contains a row of debit transaction records and three rows of credit transaction records.
  • Foreign currency conversion refers to the process of converting different amounts of foreign currency into equivalent standard currencies.
  • the actual standard currency total amount of the actual standard currency entry collection is the sum of the actual standard currency amounts of all transactions, and the actual standard currency total amount of the actual standard currency entry collection is equivalent to the total value of the standard currency.
  • the amount obtained after saving In Table 1, the difference between the actual total amount of the borrower's standard currency and the total amount of the theoretical standard currency of the borrower is +1, that is, the difference between the debit's bookkeeping tailing in foreign currency accounting is +1; Is -1, which means that the credit trailing difference in foreign currency accounting is -1.
  • the first method the staff manually adjusts the debit and credit trailing difference to the same accounting entry, and prompts the accounting entry to make a trailing difference in the description of the accounting entry Adjustment.
  • the second method add a new line of foreign currency accounting entry of 0 amount, adjust the tail difference amount to the standard currency accounting entry corresponding to the newly added 0 gold extra currency accounting record, and in the description of the new accounting entry It is suggested that the entry is introduced due to tail difference adjustment.
  • Table 2 is the data after adjusting the tail difference of the foreign currency entry set in Table 1 using the existing technology.
  • FIG. 1 is a method for adjusting the accounting tail difference in foreign currency accounting provided by an embodiment of the present specification.
  • the execution subject of the process may be a program or an application client mounted on the server.
  • the process can include the following steps:
  • the first entry set may be a single currency foreign currency entry set or a multi-currency foreign currency entry set. Select a designated accounting symbol from a variety of accounting symbols.
  • the first accounting entry in the first entry set is the same foreign currency accounting entry as the designated accounting symbol.
  • the first accounting entry includes At least one transaction record.
  • the total foreign currency amount of the first entry set is the sum of the foreign currency amounts of all transactions in the first entry set, and the total value of the equivalent standard currency of the first entry set is the total foreign currency amount of the first entry set and the exchange rate.
  • Product; the total amount of the first theoretical standard currency of the first entry set is the amount after the equivalent total amount of the standard currency in the first entry set is saved according to the accuracy of the standard currency amount in the standard entry set.
  • the total amount of the first theoretical standard currency of the first entry set is 129 yuan.
  • the equivalent standard currency amount of each row of transaction records in the first entry set is the product of the foreign currency amount of each row of transaction records and the exchange rate; the actual standard currency of each row of transaction records in the first entry set The amount is the amount after saving the equivalent standard currency amount of each transaction record according to the accuracy of the standard currency amount; the total amount of the first actual standard currency in the first entry set is the actual amount of each transaction record in the first entry set The sum of the standard currency amounts.
  • the equivalent standard currency amounts of each row of transaction records in the first entry set are 19.38 yuan, 19.38 yuan, 25.84 yuan, 19.38 yuan, 19.38 yuan and 25.84 yuan
  • the actual standard currency amount of each transaction record is 19 yuan, 19 yuan, 26 yuan, 19 yuan, 19 yuan and 26 yuan
  • the first comparison result includes greater than or less than.
  • the total amount of the first theoretical standard currency of the first entry set is 129 yuan
  • the total amount of the first actual standard currency of the first entry set It is 128, and the total amount of the first actual standard currency is compared with the total amount of the first theoretical standard currency to obtain that the total amount of the first actual standard currency is less than the total amount of the first theoretical standard currency, that is, the first comparison result is less than.
  • S104 Determine a second entry set from the first entry set according to the first comparison result.
  • the second entry set contains at least one accounting entry
  • the total amount of the first equivalent local currency of the accounting entry in the second entry set is the total foreign currency amount and exchange rate of the accounting entry
  • the product of the total of the second actual standard currency of the accounting entries in the second entry set is the sum of the actual standard currency amounts of each transaction record in the accounting entry.
  • the first actual standard currency total amount of the first entry set is greater than the first theoretical standard currency total amount
  • the second actual standard currency total amount of the accounting entries in the second entry set determined according to the first comparison result The total amount of the functional currency greater than the first equivalent.
  • the second actual standard currency total amount of the accounting entries in the second entry set determined according to the first comparison result Less than the total amount of the first equivalent standard currency.
  • the accuracy of the amount of standard currency in the set of standard currency entries is set in advance to obtain the amount of foreign currency in the preset minimum counting unit of standard currency.
  • RMB is defined as the standard currency and Yuan is the storage unit of the standard currency
  • the precision of the amount of the standard currency in the collection of standard currency entries is set to the nearest minute, and then the minimum unit of the standard currency is preset to 0.01 yuan.
  • the split base amount means that the minimum count unit of the base currency amount obtained by foreign currency conversion is less than the foreign currency amount of the preset base currency minimum count unit, and the split base amount is less than any row of transaction records in the second entry set Amount of foreign currency.
  • the second entry set can be split in the following manner: a split base amount is used to split multiple rows of transaction records in the second entry set, and a row of transactions in the second entry set is split
  • the record is split into multiple rows of transaction records; the steps of splitting a row of transaction records are cyclically executed until a third set of entries is obtained.
  • the second entry set is also split in the following manner: multiple split base amounts are used to split the second entry set, for example: the first split base amount is used to split the second entry One line of transaction records in the collection is split into multiple lines of transaction records, and the second base splits the base amount to split the other line of transaction records in the second entry set into multiple line transaction records; by using multiple split base amounts The multiple rows of transaction records in the second entry set are split until a third entry set is obtained.
  • the total foreign currency amount of the third entry set is equal to the total foreign currency amount of the first entry set.
  • the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency, that is, the accounting tail difference of the third entry set obtained after the split Adjust to 0.
  • the method in Figure 1 determines the second entry set to be split based on the total amount of the first actual standard currency of the first entry set relative to the total amount of the first theoretical standard currency;
  • the second entry set is split to obtain a third entry set with the total amount of the third actual standard currency equal to the total amount of the third theoretical standard currency, eliminating the need to manually adjust the accounting tail difference to eliminate foreign currency on the entry set
  • the accounting tail difference existing in accounting improves the efficiency of adjusting the accounting tail difference in foreign currency accounting business.
  • the designated accounting symbol includes debit or credit.
  • the first entry set may be a set containing only debit accounting entries, and the first entry set may also be a set containing only credit accounting entries.
  • “Debit” and “credit” as the accounting symbols in the debit and credit accounting method are not “pure” and “abstract” accounting symbols, but scientific accounting symbols with profound economic connotations.
  • "Borrowing” and “credit” as bookkeeping symbols both have the dual meaning of increase and decrease. When “borrowing" and “crediting” increase or decrease, it must be combined with the specific nature of the account to accurately explain.
  • the expense category is “borrowed” plus “loan” minus, the liability category, the owner's equity category, and the income category is “borrowed” minus “loan” increase.
  • the second entry set is determined from the first entry set according to the first comparison result, which specifically includes:
  • the second actual standard currency total amount in the first entry set is greater than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained.
  • the second entry set may contain one accounting entry or multiple accounting entries.
  • the actual total amount of the standard currency in the first entry set is 130 yuan
  • the total theoretical standard currency in the first entry set is 129 yuan, that is The total amount of the actual standard currency of the first entry set is greater than the total amount of the theoretical standard currency of the first entry set.
  • the debit foreign currency entry contains two identical first accounting entries, of which the total actual currency amount of any one first accounting entry is 65 yuan, and the total equivalent currency amount of any one first accounting entry is 64.6 Yuan, that is, the total amount of the actual standard currency of any first accounting entry is greater than the total amount of the equivalent standard currency.
  • the second entry set can contain a first accounting entry, and the second entry set can also contain Two first accounting entries.
  • determining the second entry set from the first entry set according to the first comparison result specifically includes:
  • the second actual standard currency total amount in the first entry set is less than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained.
  • the second entry set may include one accounting entry or multiple accounting entries.
  • the actual total amount of the standard currency in the first entry set is 128 yuan
  • the theoretical total amount of the theoretical standard currency in the first entry set is 129 yuan, that is The total amount of the actual standard currency of the first entry set is less than the total amount of the theoretical standard currency of the first entry set.
  • the debit foreign currency entry contains two identical first accounting entries, of which the total actual currency amount of any one first accounting entry is 64 yuan, and the total equivalent currency amount of any one first accounting entry is 64.6 Yuan, that is, the total amount of the actual standard currency of any first accounting entry is less than the total amount of the equivalent standard currency.
  • the second entry set may include a first accounting entry, and the second entry set may also include Two first accounting entries.
  • the splitting the base amount to split the second entry set to obtain a third entry set specifically includes:
  • the comparison result of the currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result.
  • the third accounting entry can contain only one accounting entry, or it can contain multiple accounting entries that meet the set conditions;
  • the first transaction record can only contain one row of transaction records in the third accounting entry, or Can contain multiple lines of transaction records in the third accounting entry that meets the setting conditions; among them, the setting conditions that need to be met for the third accounting entry or the first transaction record can be set according to specific circumstances, for example, the second
  • the accounting entries with a tail difference greater than A in the record set are determined as the third accounting entry;
  • the transaction records with the conversion tail difference less than B in the third accounting entry are determined as the first transaction record, either A or B are based on The amount of the standard currency set by the specific situation.
  • the conversion tail difference of a line of transaction records is the difference between the actual standard currency amount of the line of transaction records and the equivalent standard currency amount.
  • the second entry set can be split in the following manner: the third accounting entry is defined as any one of the accounting entries in the second entry set, and only the second entry set The conditional first transaction record is split to obtain the third entry set.
  • the accounting entries and transaction records to be split in the second entry set are further limited by preset conditions, which narrows the scope of the accounting entries to be split and avoids the All accounting entries are split, which improves the operating efficiency of the accounting tail difference adjustment scheme, and at the same time can provide users with personalized splitting methods to better meet user needs.
  • the splitting the basic amount to split the first transaction record in the third accounting entry in the second entry set specifically includes:
  • the split basic amount is used to split the first transaction record into a second transaction record and at least one third transaction record; the initial amount of the third transaction record is The split basic amount; the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records.
  • the first transaction record is split into a row of second transaction records and at least one row of third transaction records using the split base amount, meaning that a row of first transaction records can be split into a row of second transactions
  • the record and a row of third transaction records may also be split into a row of second transaction records and multiple rows of third transaction records.
  • the total foreign currency amount of all transaction records split on the first transaction record of a row is equal to the foreign currency amount of the first transaction record before splitting, and the actual standard currency of all transaction records split on the first transaction record of a row The total amount is not equal to the actual standard currency amount of the first transaction record before the split.
  • the amount of the third transaction record obtained by performing the first split on the first transaction record of a row is the split base amount. If the second transaction record and the third transaction record obtained from the first split do not meet the requirements, The first transaction record is split for the second time until the split transaction record meets the requirements.
  • splitting a row of first transaction records may include:
  • the initial value of the third transaction record is the split basis amount; the first The initial value of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial value of all the third transaction records.
  • the second transaction record set is a collection of all transaction records split from a row of first transaction records.
  • the initial value of the third transaction record is doubled by the split base amount, and the third transaction record with the modified initial value is returned as the updated third transaction record.
  • Divide the first transaction record into a row of second transaction records and at least one row of third transaction records by base amount ".
  • a first implementation method for splitting a row of the first transaction record is provided.
  • the first entry set Assuming that the set of credit foreign currency entries in Table 1 is the first entry set, the first actual standard currency total amount (128 yuan) is less than the first theoretical standard currency total amount (129 yuan), and the first entry set contains two The same first accounting entry, the total amount of the second actual standard currency (6 yuan) of the first accounting entry is less than the total amount of the first equivalent standard currency (64.6 yuan), so the second entry set contains at least one 1. Accounting entries. The preset second entry set contains two first accounting entries, and the third accounting entry is the first accounting entry in the second entry set. At this time, the third accounting entry includes the first row of transaction records, the second row of transaction records, and the third row of transaction records with foreign currency amounts of $ 3, $ 3, and $ 4, respectively.
  • the first actual standard currency amount (19 yuan) in the first transaction record is less than the first equivalent standard currency amount (19.38 yuan) in the first transaction record, and the first actual standard currency amount (26) in the third transaction record Yuan) is greater than the first equivalent of the first line of transaction currency amount (25.84 yuan), it can be seen that the first transaction record can be the first line transaction record or the second line transaction record, but not the third line transaction record.
  • the split base amount is 0.1 USD
  • the first row of transaction records is split, that is, the first transaction record with a foreign currency amount of 3 USD is split into 1 row of third transaction record with a foreign currency amount of 0.1 USD and 1 row Second transaction record with a foreign currency amount of 2.9 USD.
  • the actual total amount of standard currency for obtaining the second transaction record set is 20 yuan.
  • the total amount of actual standard currency (20 yuan) of the second transaction record set is not equal to the actual amount of standard currency (19 yuan) of the first transaction record.
  • Table 3 is data obtained by splitting a row of first transaction records in the first implementation manner. As shown in Table 3, after splitting a row of the first transaction record in the credit foreign currency entry in Table 1, the accounting tail difference of the credit entry set is eliminated.
  • the credit foreign currency entry set in Table 1 is the first entry set.
  • the first split specifically: split the first transaction record with a foreign currency amount of $ 3 into a third transaction record with a foreign currency amount of $ 0.2 on both lines and a second transaction record with a foreign currency amount of $ 2.6 on one line .
  • the actual total amount of currency in the second transaction record set is 19 yuan.
  • the total amount of the actual standard currency in the second transaction record set is equal to the actual amount in the first transaction record, at this time, the foreign currency amount of the third transaction record is modified to 0.4 USD, corresponding to the second transaction record
  • the foreign currency amount is 2.2 USD.
  • the actual total amount of standard currency for obtaining the second transaction record set is 20 yuan.
  • the total amount of the actual standard currency in the second transaction record set is not equal to the actual amount of the standard currency in the first transaction record. At this time, it is considered that the first transaction record in the bank has been split.
  • Table 4 is the data obtained after the first split of a row of the first transaction record in the second implementation manner. As shown in Table 4, after the end of the first split, the accounting tail difference of the credit entry set has not been eliminated.
  • Table 5 is the data obtained after the second split of a row of the first transaction record in the second implementation manner. As shown in Table 5, after the second split, the credit trailing difference of the credit entry set is eliminated.
  • a third implementation method for splitting a row of the first transaction record is provided.
  • the debit foreign currency entry set in Table 1 is used as the first entry set.
  • the second entry set includes two first accounting entries.
  • the first accounting entry is determined as the third accounting entry, and the first row of transaction records in the third accounting entry is determined as the first transaction record.
  • the split base amount is US $ 0.6
  • the first split of the first transaction record is specifically: split the first transaction record with a foreign currency amount of $ 10 into a third transaction with a foreign currency amount of $ 9.4 per row Records and a second transaction record with a foreign currency amount of 0.6 USD in one line.
  • the actual total amount of standard currency for obtaining the second transaction record set is 65 yuan.
  • the total amount of the actual standard currency of the second transaction record set is equal to the actual amount of the standard currency of the first transaction record, at this time, the second transaction record is split for the second time, and the foreign currency of the third transaction record The amount was revised to 1.2 US dollars, the corresponding foreign currency amount of the second transaction record was 8.8 US dollars, and it was determined whether the second split met the requirements.
  • Table 6 shows the data after splitting a row of the first transaction record in the third implementation.
  • the value of the accounting tail difference of the first entry set is usually large. Although splitting a row of transaction records can reduce the accounting tail difference, it cannot eliminate the accounting tail difference. In response to this situation, the first transaction records of multiple lines are split to eliminate the difference in accounting.
  • the following method can be used to eliminate the accounting tail difference of the first entry set:
  • a row of the first transaction record is determined from the second entry set.
  • the first transaction record in the first entry set is replaced with all transaction records split from the first transaction record in a row to obtain a fourth entry set.
  • the second entry set from which the split first transaction record is removed is used as the updated second entry set and returns to the step of “determining a row of the first transaction record from the second entry set”.
  • the following method can also be used to eliminate the accounting tail difference of the first entry set:
  • the difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency is determined.
  • the splitting the basic amount to split the first transaction record in the third accounting entry in the second entry set to obtain the third entry set specifically includes:
  • the first transaction record on line Y is split using the split base amount to obtain the third set of entries.
  • the adjusted first entry set with a difference of 0 eliminates the need to split a row of transaction records, and calculates the actual total currency amount of the adjusted entry set once, streamlining the adjustment steps and reducing the adjustment process. The amount of calculation improves the adjustment efficiency.
  • determining the first transaction record specifically includes:
  • the fourth transaction records are arranged in descending order of the absolute value of the second lost amount.
  • Any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines is determined as the first transaction record, where M is a positive integer.
  • the fourth transaction record is a transaction record in which the comparison result of the first actual standard currency amount relative to the first equivalent standard currency amount in the third accounting entry is the same as the first comparison result.
  • the lost amount of the fourth session of each transaction record means the difference between the first actual standard currency amount and the corresponding first equivalent standard currency amount of the fourth session transaction record of each line.
  • the absolute value refers to the number corresponding to a number on the number line. The distance from the point to the origin. For example, the first row of transaction records in the first accounting entry in the lender's foreign currency entry collection in Table 1 is a row of fourth transaction records, and the foreign currency amount of the fourth transaction record in this row is $ 3.
  • the recorded first equivalent of the standard currency amount is 19.38 yuan
  • the actual standard currency amount of the fourth transaction record of the bank is 19 yuan. Therefore, the lost amount of the fourth transaction record of the bank is -0.38 yuan, and the absolute value of the lost amount is 0.38.
  • the determination of the third accounting entry specifically includes:
  • the lost amount of each second accounting entry means the difference between the total amount of the second actual standard currency and the corresponding total amount of the first equivalent local currency in each second accounting entry.
  • the absolute value refers to a The distance from the corresponding point on the number axis to the origin.
  • the first accounting entry in the set of debit foreign currency entries in Table 1 is the second accounting entry.
  • the total amount of foreign currency in the second accounting entry is $ 10.
  • the second accounting entry The total amount of the equivalent standard currency is 64.6 yuan, and the actual total amount of the second standard accounting entry is 65 yuan. Therefore, the lost amount of the second accounting record is 0.4 yuan, and the absolute value of the lost amount is 0.4 .
  • the accounting entry with the largest absolute value of the lost amount is determined as the third accounting entry, and the accounting entry with the largest lost amount is preferably split and adjusted to reduce the number of accounting entries required
  • the calculation amount of the adjustment of the accounting tail difference improves the adjustment efficiency.
  • FIG. 2 is a schematic structural diagram of an apparatus for adjusting a billing tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification.
  • the device may include:
  • the first obtaining module 201 is used to obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol ;
  • the second obtaining module 202 is used to obtain the first actual total currency amount of the first entry set
  • the first comparison module 203 is configured to compare the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain the total amount of the first actual standard currency relative to the first theoretical standard currency.
  • the first comparison result of the total amount; the first comparison result includes greater than or less than;
  • the second entry set determination module 204 is configured to determine a second entry set from the first entry set based on the first comparison result; a second accounting entry in the second entry set
  • the comparison result of the total amount of the second actual standard currency with respect to the total amount of the first equivalent standard currency of the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;
  • the splitting module 205 is used to split the second entry set by using the split base amount to obtain a third entry set;
  • the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion The foreign currency amount that is less than the preset minimum unit of count for the local currency, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set;
  • the total foreign currency amount of the third entry set and the The total foreign currency amount of the first entry set is equal, and the third actual standard currency total amount of the third entry set is equal to the third theoretical standard currency total amount of the third entry set.
  • the second entry set determination module 204 specifically includes:
  • the first determination unit of the second entry set is used to add the first entry set to the first entry set when the first comparison result indicates that the first actual standard currency total amount is greater than the first theoretical standard currency total amount
  • An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent local currency is determined as the second accounting entry, and the second set of entries is obtained.
  • the second entry set determination module 204 specifically includes:
  • a second determination unit for the second entry set is used to store the first entry set when the first comparison result indicates that the total amount of the first actual standard currency is greater than the total amount of the first theoretical standard currency
  • An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent standard currency is determined as the second accounting entry, and the second set of entries is obtained
  • the splitting module 205 specifically includes:
  • a splitting unit configured to split the first transaction record in the third accounting entry in the second entry set using the split base amount to obtain the third entry set; the first transaction A comparison result of the recorded first actual standard currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result.
  • the splitting unit specifically includes:
  • a first splitting subunit used to split the first transaction record into a row of second transaction records and at least one row of third transaction records using the split basic amount for any row of the first transaction records;
  • the initial amount of the third transaction record is the split basic amount;
  • the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records .
  • the device for adjusting the accounting tail difference in foreign currency accounting also includes:
  • the difference determination module is used to determine the difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency;
  • a module for determining the number of preset minimum units of counting of the functional currency included in the difference is used to determine the number Y of the minimum unit of counting of the predetermined functional currency included in the difference; where Y is a positive integer;
  • the splitting unit specifically includes:
  • the second splitting subunit is used to split the first transaction record in line Y by using the split base amount to obtain the third set of entries.
  • the device for adjusting the accounting tail difference in foreign currency accounting also includes:
  • a third obtaining module configured to obtain the absolute value of the first lost amount of each second accounting entry in the second entry set
  • a first sorting module configured to sort the second accounting entries according to the absolute value of the first lost amount from largest to smallest;
  • the third accounting entry determination module is used to determine any one of the second N accounting entries with the largest absolute value of the first N lost amounts as the third accounting entry, where N is Positive integer.
  • the device for adjusting the accounting tail difference in foreign currency accounting also includes:
  • a fourth obtaining module configured to obtain the absolute value of the second lost amount of each fourth transaction record in the third accounting entry
  • a second sorting module used to sort the fourth transaction records according to the absolute value of the second lost amount from largest to smallest;
  • the first transaction record determination module is configured to determine any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines as the first transaction record, where M is a positive integer.
  • the embodiments of this specification also provide devices corresponding to the above methods.
  • FIG. 3 is a schematic structural diagram of an apparatus and device corresponding to FIG. 1 that adjusts the accounting tail difference in foreign currency accounting according to an embodiment of the present specification.
  • the device 300 may include:
  • At least one processor 310 and,
  • a memory 330 communicatively connected to the at least one processor; wherein,
  • the memory 330 stores instructions 320 executable by the at least one processor 310, and the instructions are executed by the at least one processor 310 to enable the at least one processor 310 to:
  • the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;
  • the first comparison result includes greater than or less than
  • a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;
  • the second entry set is split by using the split base amount to obtain a third entry set;
  • the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency
  • the foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set;
  • the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.
  • the improvement of a technology can be clearly distinguished from the improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, and switches) or the improvement in software (the improvement of the process flow).
  • the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure.
  • Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules.
  • a programmable logic device Programmable Logic Device, PLD
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • HDL Hardware Description Language
  • ABEL Advanced Boolean Expression
  • AHDL AlteraHardwareDescriptionLanguage
  • Confluence a specific programming language
  • CUPL CornellUniversityProgrammingLanguage
  • HDCal JHDL (JavaHardwareDescriptionLanguage)
  • Lava Lola
  • MyHDL PALASM
  • RHDL RubyHardwareDescription
  • the controller may be implemented in any suitable manner, for example, the controller may take a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro) processor , Logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers.
  • Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory.
  • controller in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to logically program method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function is realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the device for implementing various functions included therein can also be regarded as a structure within the hardware component. Or even, the means for realizing various functions can be regarded as both a software module of an implementation method and a structure within a hardware component.
  • the system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function.
  • a typical implementation device is a computer.
  • the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.
  • the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device
  • These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
  • the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
  • the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
  • processors CPUs
  • input / output interfaces output interfaces
  • network interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
  • RAM random access memory
  • ROM read only memory
  • flash RAM flash memory
  • Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
  • the information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
  • the present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules.
  • program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types.
  • the present application may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network.
  • program modules may be located in local and remote computer storage media including storage devices.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

Disclosed are a method, apparatus and device for adjusting an accounting tail error in foreign currency accounting. The solution comprises: comparing a first actual total standard-currency amount of a first entry set with a first theoretical total standard-currency amount thereof to obtain a first comparison result of the first actual total standard-currency amount relative to the first theoretical total standard-currency amount; determining, from the first entry set, a second entry set where a comparison result of a second actual total standard-currency amount relative to a first equivalent total standard-currency amount is the same as the first comparison result; and splitting the second entry set by means of a splitting basic amount to obtain a third entry set where a third actual total standard-currency amount is equal to a third theoretical total standard-currency amount.

Description

一种调整外币核算中记账尾差的方法、装置及设备Method, device and equipment for adjusting accounting tail difference in foreign currency accounting 技术领域Technical field

本申请涉及数据处理技术领域,尤其涉及一种调整外币核算中记账尾差的方法、装置及设备。The present application relates to the technical field of data processing, and in particular, to a method, device, and equipment for adjusting the accounting tail difference in foreign currency accounting.

背景技术Background technique

借贷记账法以借、贷作为记账符号,遵守“有借必有贷,借贷必相等”的记账规则。会计分录亦称“记账公式”,简称“分录”,它是根据复式记账原理的要求,对每笔经济业务列出相对应的双方账户及其金额的一种记录。多币种记账是会计业务中比较常见的业务,其中,记账本位币是一个会计主体依据其经营业务的特点而选择的会计核算中所采用的作为会计计量基本尺度的计量单位,会计主体确定记账本位币后,其他的货币均为非记账本位币,即会计概念上的外币。多币种记账中的外币核算业务涉及到将外币会计分录折算到本位币会计分录的步骤,由于将外币会计分录中的每一行交易记录进行外币核算得到本位币会计分录时,需根据预设本位币精度和四舍五入计数保留法对借贷双方的实际本位币金额进行保存,因此,由多币种会计分录折算到本位币会计分录后,本位币会计分录的实际本位币总金额与多币种会计分录的等值本位币总金额不相等,出现记账尾差。针对上述问题,目前通常采用人工方式进行尾差调整,效率较低。The debit and credit bookkeeping method uses debit and credit as the accounting symbols, and abides by the accounting rules of "there must be a loan and the loan must be equal". Accounting entries are also called "accounting formulas", or "entry entries" for short. It is a record that lists the accounts of both parties and their amounts for each economic business according to the requirements of the double entry accounting principle. Multi-currency bookkeeping is a relatively common business in accounting business. Among them, the bookkeeping standard currency is a unit of measurement used as the basic standard for accounting measurement used by an accounting entity based on the characteristics of its business operations. After determining the accounting standard currency, the other currencies are all non-accounting standard currencies, that is, foreign currencies in the accounting concept. The foreign currency accounting business in multi-currency accounting involves the step of converting foreign currency accounting entries to the standard currency accounting entries. Since each line of transaction records in the foreign currency accounting entries is accounted for in foreign currencies to obtain the standard currency accounting entries, The actual standard currency amount of both borrowers and lenders needs to be saved according to the preset standard currency precision and the rounding count retention method. Therefore, the actual standard currency of the standard currency accounting entry is converted from the multi-currency accounting entry to the standard currency accounting entry The total amount is not equal to the total amount of the equivalent standard currency of the multi-currency accounting entry, and there is a tailing difference in accounting. In response to the above-mentioned problems, the tail difference is usually adjusted manually, and the efficiency is low.

发明内容Summary of the invention

有鉴于此,本申请实施例提供了一种调整外币核算中记账尾差的方法、装置及设备,用于提高调整外币核算中记账尾差的效率。In view of this, the embodiments of the present application provide a method, device and equipment for adjusting the accounting tail difference in foreign currency accounting to improve the efficiency of adjusting the accounting tail difference in foreign currency accounting.

为解决上述技术问题,本说明书实施例是这样实现的:To solve the above technical problems, the embodiments of this specification are implemented as follows:

本说明书实施例提供的一种调整外币核算中记账尾差的方法,包括:An embodiment of the present specification provides a method for adjusting the trailing difference in accounting in foreign currency accounting, including:

获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;Obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;

获取所述第一分录集合的第一实际本位币总金额;Obtain the total amount of the first actual standard currency of the first entry set;

将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比 较结果包括大于或小于;Comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison result of the total amount of the first actual standard currency relative to the total amount of the first theoretical standard currency; The first comparison result includes greater than or less than;

根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;According to the first comparison result, a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;

采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The second entry set is split by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency The foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.

本说明书实施例提供的一种调整外币核算中记账尾差的装置,包括:An embodiment of the present specification provides a device for adjusting the trailing difference in accounting in foreign currency accounting, including:

第一获取模块,用于获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;The first obtaining module is used to obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;

第二获取模块,用于获取所述第一分录集合的第一实际本位币总金额;A second obtaining module, configured to obtain the total amount of the first actual standard currency of the first entry set;

第一比较模块,用于将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;A first comparison module for comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain the total amount of the first actual standard currency relative to the total of the first theoretical standard currency The first comparison result of the amount; the first comparison result includes greater than or less than;

第二分录集合确定模块,用于根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;A second entry set determination module, configured to determine a second entry set from the first entry set based on the first comparison result; the second accounting entry in the second entry set The comparison result of the second actual standard currency total amount with respect to the first equivalent standard currency total amount of the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;

拆分模块,用于采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The splitting module is used to split the second entry set by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than The foreign currency amount of the minimum counting unit of the standard currency is preset, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the first The total foreign currency amount of one entry set is equal, and the third actual standard currency total amount of the third entry set is equal to the third theoretical standard currency total amount of the third entry set.

本说明书实施例提供的一种调整外币核算中记账尾差的设备,包括:An embodiment of the present specification provides a device for adjusting the accounting tail difference in foreign currency accounting, including:

至少一个处理器;以及,At least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to:

获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;Obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;

获取所述第一分录集合的第一实际本位币总金额;Obtain the total amount of the first actual standard currency of the first entry set;

将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;Comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison result of the total amount of the first actual standard currency relative to the total amount of the first theoretical standard currency; The first comparison result includes greater than or less than;

根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;According to the first comparison result, a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;

采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The second entry set is split by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency The foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.

本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:The above at least one technical solution adopted in the embodiments of the present specification can achieve the following beneficial effects:

根据第一分录集合的第一实际本位币总金额相对于第一理论本位币总金额的大小,确定出待拆分的第二分录集合;采用拆分基础金额对第二分录集合进行拆分,得到第三实际本位币总金额与第三理论本位币总金额相等的第三分录集合,无需人工调整记账尾差,即可消除对分录集合进行外币核算时存在的记账尾差,提高了调整外币核算业务中记账尾差的效率。Determine the second entry set to be split based on the size of the first actual standard currency total amount of the first entry set relative to the first theoretical standard currency total amount; use the split base amount to perform the second entry set Split to obtain a third entry set with the total amount of the third actual standard currency equal to the total amount of the third theoretical standard currency, eliminating the need to manually adjust the accounting tail difference to eliminate the accounting that exists when performing foreign currency accounting on the entry set Tail difference improves the efficiency of adjusting the tail difference in accounting in foreign currency accounting.

由于第三分录集合的实际外币总金额与第一分录集合的实际外币总金额相等,因此,第三分录集合与实际业务相符;第三分录集合中每行交易记录按汇率折算得到的实际本位币金额与理论本位币金额相等,符合外币核算原则,避免了人工调整记账尾差后 导致的部分行交易记录按汇率折算得到的实际本位币金额与理论本位币金额不相等的情况。Since the actual total foreign currency amount of the third entry set is equal to the actual foreign currency total amount of the first entry set, the third entry set is consistent with the actual business; each row of transaction records in the third entry set is converted at the exchange rate The actual standard currency amount is equal to the theoretical standard currency amount, which is in line with the foreign currency accounting principle, avoiding the situation where the actual standard currency amount obtained from the conversion of some transaction records resulting from manual adjustment of the accounting tail difference at the exchange rate is not equal to the theoretical standard currency .

附图说明BRIEF DESCRIPTION

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of the present application and form a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an undue limitation on the present application. In the drawings:

图1为本说明书实施例提供的一种调整外币核算中记账尾差的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for adjusting a trailing balance in foreign currency accounting provided by an embodiment of the present specification;

图2为本说明书实施例提供的对应于图1的一种调整外币核算中记账尾差的装置的结构示意图;FIG. 2 is a schematic structural diagram of an apparatus for adjusting a billing tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification;

图3为本说明书实施例提供的对应于图1的一种调整外币核算中记账尾差的设备的结构示意图。FIG. 3 is a schematic structural diagram of an apparatus for adjusting an accounting tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification.

具体实施方式detailed description

为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application more clear, the technical solutions of the present application will be described clearly and completely in conjunction with specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.

以下结合附图,详细说明本申请各实施例提供的技术方案。The technical solutions provided by the embodiments of the present application will be described in detail below in conjunction with the drawings.

表1为一个外币分录集合进行外币核算业务时涉及的数据。如表1所示:Table 1 is the data involved in a foreign currency accounting set for foreign currency accounting. As shown in Table 1:

表1Table 1

Figure PCTCN2019106018-appb-000001
Figure PCTCN2019106018-appb-000001

表1中将人民币定义为本位币,美元为外币,外币对本位币汇率(以下简称汇率)为:1美元=6.46元人民币,本位币分录中的本位币金额精度为元,即预设本位币最小计数单位为1元。表1中的外币分录集合中借方外币总金额与贷方外币总金额相等,即外币分录集合借贷平衡。外币分录集合包括两条会计分录,每条会计分录中都各包含一行借方交易记录和三行贷方交易记录。外币折算是指把不同的外币金额换算成为等值本位币的过程。对外币分录集合进行外币折算得到等值本位币分录集合,对外币分录集合进行外币核算得到实际本位币分录集合。实际本位币分录集合的实际本位币总金额为全部交易记录的实际本位币金额之和,实际本位币分录集合的理论本位币总金额为对等值本位币总金额按本位币金额精度进行保存后得到的金额。表1中借方实际本位币总金额与借方理论本位币总金额之差为+1,即外币核算中借方记账尾差为+1;贷方实际本位币总金额与贷方理论本位币总金额之差为-1,即外币核算中贷方记账尾差为-1。由于表1中借方本位币实际总金额与贷方本位币实际总金额不相等,可知,对表1中的外币分录集合进行外币核算得到的实际本位币分录集合不仅存在记账尾差问题,还不符合借贷平衡的原则。In Table 1, RMB is defined as the standard currency, the US dollar is the foreign currency, the foreign currency to the standard currency exchange rate (hereinafter referred to as the exchange rate) is: 1 US dollar = 6.46 yuan, the standard currency amount accuracy in the standard currency entry is yuan, that is, the preset standard The minimum unit for counting coins is 1 yuan. The total amount of foreign currency in the debit of the foreign currency entry set in Table 1 is equal to the total amount of foreign currency in the credit, that is, the foreign currency entry set debit balance. The collection of foreign currency entries includes two accounting entries, each of which contains a row of debit transaction records and three rows of credit transaction records. Foreign currency conversion refers to the process of converting different amounts of foreign currency into equivalent standard currencies. Perform foreign currency conversion on the foreign currency entry collection to obtain the equivalent standard currency entry collection, and perform foreign currency accounting on the foreign currency entry collection to obtain the actual standard currency entry collection. The actual standard currency total amount of the actual standard currency entry collection is the sum of the actual standard currency amounts of all transactions, and the actual standard currency total amount of the actual standard currency entry collection is equivalent to the total value of the standard currency. The amount obtained after saving. In Table 1, the difference between the actual total amount of the borrower's standard currency and the total amount of the theoretical standard currency of the borrower is +1, that is, the difference between the debit's bookkeeping tailing in foreign currency accounting is +1; Is -1, which means that the credit trailing difference in foreign currency accounting is -1. Since the actual total amount of the debit standard currency in Table 1 is not equal to the actual total amount of the credit standard currency, it can be seen that the actual standard currency entry set obtained by performing foreign currency accounting on the foreign currency entry set in Table 1 not only has the problem of accounting tail difference, It does not meet the principle of balance of borrowing and lending.

在现有技术中,为消除记账尾差,通常采用两种调整方法。第一种方法:工作人员手动的将借方记账尾差和贷方记账尾差调整到同一条会计分录上,并在该条会计分录的说明中提示该条会计分录做了尾差调整。第二种方法:新增一行0金额的外币会计分录,将尾差金额调整到新增0金额外币会计记录所对应的本位币会计分录上,并在新增的会计分录的说明中提示该分录是由于尾差调整引入的。In the prior art, in order to eliminate the accounting tail difference, two adjustment methods are usually adopted. The first method: the staff manually adjusts the debit and credit trailing difference to the same accounting entry, and prompts the accounting entry to make a trailing difference in the description of the accounting entry Adjustment. The second method: add a new line of foreign currency accounting entry of 0 amount, adjust the tail difference amount to the standard currency accounting entry corresponding to the newly added 0 gold extra currency accounting record, and in the description of the new accounting entry It is suggested that the entry is introduced due to tail difference adjustment.

表2为使用现有技术对表1中的外币分录集合进行尾差调整后的数据。Table 2 is the data after adjusting the tail difference of the foreign currency entry set in Table 1 using the existing technology.

表2Table 2

Figure PCTCN2019106018-appb-000002
Figure PCTCN2019106018-appb-000002

通过表2可知,采用人工对外币核算得到的实际本位币分录集合调整后,可消除外币核算后产生的记账尾差。在实际应用中,待调整的分录集合数量一般都较多,采用人工调整记账尾差的方法不但增加了人工成本,且调整效率也较低。结合表1和表2中数据可知,涉及尾差调整的那条会计分录中的某些行的交易记录按汇率折算出的本位币金额与理论本位币金额不相等,即外币核算得到的本位币分录集合与实际业务不符,存在审计风险。It can be seen from Table 2 that the adjustment of the actual standard currency entry collection obtained by manual foreign currency accounting can eliminate the accounting tail difference generated after foreign currency accounting. In practical applications, the number of entry sets to be adjusted is generally large, and the method of manually adjusting the accounting tail difference not only increases labor costs, but also has low adjustment efficiency. Combining the data in Table 1 and Table 2, it can be seen that the amount of the standard currency in the transaction records of some rows in the accounting entry involved in the adjustment of the tail difference is not equal to the theoretical standard currency, that is, the standard of foreign currency accounting The collection of currency entries does not match the actual business and there is an audit risk.

图1为本说明书实施例提供的一种调整外币核算中记账尾差的方法。从程序角度而言,流程的执行主体可以为搭载于服务器的程序或应用客户端。FIG. 1 is a method for adjusting the accounting tail difference in foreign currency accounting provided by an embodiment of the present specification. From the perspective of the program, the execution subject of the process may be a program or an application client mounted on the server.

如图1所示,该流程可以包括以下步骤:As shown in Figure 1, the process can include the following steps:

S101:获取第一分录集合的第一理论本位币总金额。S101: Obtain the total amount of the first theoretical standard currency of the first entry set.

在本说明书实施例中,第一分录集合可以是单币种外币分录集合,也可以是多币种外币分录集合。从多种记账符号中选出一种指定记账符号,第一分录集合中的第一会计分录是与一种指定记账符号相同的外币会计分录,第一会计分录中包括至少一行交易记录。第一分录集合的外币总金额是第一分录集合中全部交易记录的外币金额之和,第一分录集合的等值本位币总金额是第一分录集合的外币总金额与汇率的乘积;第一分录集合的第一理论本位币总金额是按本位币分录集合中本位币金额精度对第一分录集合的等值本位币总金额进行保存后的金额。例如:将表1中的贷方外币分录集合作为第一分录集合时,第一分录集合的外币总金额=3+3+4+3+3+4=20美元,第一分录集合的等值 本位币总金额=20×6.46=129.2元,第一分录集合的第一理论本位币总金额为129元。In the embodiment of the present specification, the first entry set may be a single currency foreign currency entry set or a multi-currency foreign currency entry set. Select a designated accounting symbol from a variety of accounting symbols. The first accounting entry in the first entry set is the same foreign currency accounting entry as the designated accounting symbol. The first accounting entry includes At least one transaction record. The total foreign currency amount of the first entry set is the sum of the foreign currency amounts of all transactions in the first entry set, and the total value of the equivalent standard currency of the first entry set is the total foreign currency amount of the first entry set and the exchange rate. Product; the total amount of the first theoretical standard currency of the first entry set is the amount after the equivalent total amount of the standard currency in the first entry set is saved according to the accuracy of the standard currency amount in the standard entry set. For example: when the credit foreign currency entry set in Table 1 is used as the first entry set, the total foreign currency amount of the first entry set = 3 + 3 + 4 + 3 + 3 + 4 = 20 USD, the first entry set The equivalent total amount of standard currency = 20 × 6.46 = 129.2 yuan, and the total amount of the first theoretical standard currency of the first entry set is 129 yuan.

S102:获取所述第一分录集合的第一实际本位币总金额。S102: Obtain the total amount of the first actual standard currency of the first entry set.

在本说明书实施例中,第一分录集合中每行交易记录的等值本位币金额是每行交易记录的外币金额与汇率的乘积;第一分录集合中每行交易记录的实际本位币金额是按本位币金额精度对每行交易记录的等值本位币金额进行保存后的金额;第一分录集合的第一实际本位币总金额是第一分录集合中每行交易记录的实际本位币金额之和。例如:将表1中的贷方外币分录集合作为第一分录集合时,第一分录集合中每行交易记录的等值本位币金额分别是19.38元、19.38元、25.84元、19.38元、19.38元和25.84元,每行交易记录的实际本位币金额分别是19元、19元、26元、19元、19元和26元,第一分录集合的第一实际本位币总金额=19+19+26+19+19+26=128元。In the embodiment of this specification, the equivalent standard currency amount of each row of transaction records in the first entry set is the product of the foreign currency amount of each row of transaction records and the exchange rate; the actual standard currency of each row of transaction records in the first entry set The amount is the amount after saving the equivalent standard currency amount of each transaction record according to the accuracy of the standard currency amount; the total amount of the first actual standard currency in the first entry set is the actual amount of each transaction record in the first entry set The sum of the standard currency amounts. For example: when the credit foreign currency entry set in Table 1 is used as the first entry set, the equivalent standard currency amounts of each row of transaction records in the first entry set are 19.38 yuan, 19.38 yuan, 25.84 yuan, 19.38 yuan, 19.38 yuan and 25.84 yuan, the actual standard currency amount of each transaction record is 19 yuan, 19 yuan, 26 yuan, 19 yuan, 19 yuan and 26 yuan, the total amount of the first actual standard currency of the first entry set = 19 + 19 + 26 + 19 + 19 + 26 = 128 yuan.

S103:将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果。S103: Compare the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison of the total amount of the first actual standard currency with respect to the total amount of the first theoretical standard currency result.

在本说明书实施例中,第一比较结果包括大于或小于。例如:将表1中的贷方外币分录集合作为第一分录集合时,第一分录集合的第一理论本位币总金额是129元,第一分录集合的第一实际本位币总金额是128,比较第一实际本位币总金额相对于第一理论本位币总金额的大小,得到第一实际本位币总金额小于第一理论本位币总金额,即第一比较结果为小于。In the embodiment of the present specification, the first comparison result includes greater than or less than. For example: when the credit foreign currency entry set in Table 1 is used as the first entry set, the total amount of the first theoretical standard currency of the first entry set is 129 yuan, and the total amount of the first actual standard currency of the first entry set It is 128, and the total amount of the first actual standard currency is compared with the total amount of the first theoretical standard currency to obtain that the total amount of the first actual standard currency is less than the total amount of the first theoretical standard currency, that is, the first comparison result is less than.

S104:根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合。S104: Determine a second entry set from the first entry set according to the first comparison result.

在本说明书实施例中,第二分录集合中至少包含一条会计分录,第二分录集合中会计分录的第一等值本位币总金额是该条会计分录的外币总金额与汇率的乘积,第二分录集合中的会计分录的第二实际本位币总金额是该条会计分录中每行交易记录的实际本位币金额之和。当第一分录集合的第一实际本位币总金额大于第一理论本位币总金额时,根据第一比较结果确定出的第二分录集合中的会计分录的第二实际本位币总金额大于第一等值本位币总金额。当第一分录集合的第一实际本位币总金额小于第一理论本位币总金额时,根据第一比较结果确定出的第二分录集合中的会计分录的第二实际本位币总金额小于第一等值本位币总金额。In the embodiment of the present specification, the second entry set contains at least one accounting entry, and the total amount of the first equivalent local currency of the accounting entry in the second entry set is the total foreign currency amount and exchange rate of the accounting entry The product of the total of the second actual standard currency of the accounting entries in the second entry set is the sum of the actual standard currency amounts of each transaction record in the accounting entry. When the first actual standard currency total amount of the first entry set is greater than the first theoretical standard currency total amount, the second actual standard currency total amount of the accounting entries in the second entry set determined according to the first comparison result The total amount of the functional currency greater than the first equivalent. When the first actual standard currency total amount of the first entry set is less than the first theoretical standard currency total amount, the second actual standard currency total amount of the accounting entries in the second entry set determined according to the first comparison result Less than the total amount of the first equivalent standard currency.

S105:采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合。S105: Split the second entry set by using the split base amount to obtain a third entry set.

在本说明书实施例中,预先设置本位币分录集合中本位币金额精度,可以得到预设本位币最小计数单位的外币金额。例如,将人民币定义为本位币,将元作为本位币的 保存单位,预先设置本位币分录集合中本位币金额精度为精确到分,则预设本位币最小计数单位为0.01元。In the embodiment of the present specification, the accuracy of the amount of standard currency in the set of standard currency entries is set in advance to obtain the amount of foreign currency in the preset minimum counting unit of standard currency. For example, if RMB is defined as the standard currency and Yuan is the storage unit of the standard currency, the precision of the amount of the standard currency in the collection of standard currency entries is set to the nearest minute, and then the minimum unit of the standard currency is preset to 0.01 yuan.

拆分基础金额意为进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额。例如,将表1中的贷方外币分录集合作为第二分录集合,第二分录集合中的交易记录的外币金额最小值为3美元;预先设置本位币分录集合中本位币金额精度为精确到元,将元作为本位币的保存单位,则本位币最小计数单位为1元;对1美元进行外币折算,1(美元)*6.46(汇率)=6.46(元),对1美元进行外币折算得到的本位币金额的最小计数单位为0.01元,由于0.01元小于1元,且1美元小于3美元,因此拆分基础金额可以为1美元。同理,拆分基础金额还可以是0.6美元、0.1美元、0.02美元……The split base amount means that the minimum count unit of the base currency amount obtained by foreign currency conversion is less than the foreign currency amount of the preset base currency minimum count unit, and the split base amount is less than any row of transaction records in the second entry set Amount of foreign currency. For example, the credit foreign currency entry set in Table 1 is used as the second entry set, and the minimum value of the foreign currency amount of the transaction record in the second entry set is $ 3; the accuracy of the local currency amount in the native currency entry set is preset Accurate to yuan, using yuan as the storage unit of the standard currency, the minimum counting unit of the standard currency is 1 yuan; for foreign currency conversion of 1 US dollar, 1 (USD) * 6.46 (exchange rate) = 6.46 (yuan), for 1 US dollar The minimum unit of count for the converted amount of standard currency is 0.01 yuan. Since 0.01 yuan is less than 1 yuan and 1 dollar is less than 3 dollars, the split base amount can be 1 dollar. Similarly, the basic amount of the split can also be 0.6 US dollars, 0.1 US dollars, 0.02 US dollars ...

可以采用以下方式对所述第二分录集合进行拆分:采用一个拆分基础金额对所述第二分录集合中的多行交易记录进行拆分,将第二分录集合中的一行交易记录拆分为多行交易记录;循环执行拆分一行交易记录的步骤,直到得到第三分录集合。The second entry set can be split in the following manner: a split base amount is used to split multiple rows of transaction records in the second entry set, and a row of transactions in the second entry set is split The record is split into multiple rows of transaction records; the steps of splitting a row of transaction records are cyclically executed until a third set of entries is obtained.

还以采用以下方式对所述第二分录集合进行拆分:采用多个拆分基础金额对所述第二分录集合进行拆分,例如:采用第一拆分基础金额将第二分录集合中的一行交易记录拆分为多行交易记录,采用第二基拆分基础金额将第二分录集合中的另一行交易记录拆分为多行交易记录;通过采用多个拆分基础金额对所述第二分录集合中的多行交易记录进行拆分,直到得到第三分录集合。The second entry set is also split in the following manner: multiple split base amounts are used to split the second entry set, for example: the first split base amount is used to split the second entry One line of transaction records in the collection is split into multiple lines of transaction records, and the second base splits the base amount to split the other line of transaction records in the second entry set into multiple line transaction records; by using multiple split base amounts The multiple rows of transaction records in the second entry set are split until a third entry set is obtained.

第三分录集合的外币总金额与第一分录集合的外币总金额相等。对第三分录集合进行外币核算,第三分录集合的第三实际本位币总金额与第三理论本位币总金额相等,即拆分后得到的第三分录集合的记账尾差被调整为0。The total foreign currency amount of the third entry set is equal to the total foreign currency amount of the first entry set. Perform foreign currency accounting on the third entry set, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency, that is, the accounting tail difference of the third entry set obtained after the split Adjust to 0.

图1中的方法,根据第一分录集合的第一实际本位币总金额相对于第一理论本位币总金额的大小,确定出待拆分的第二分录集合;采用拆分基础金额对第二分录集合进行拆分,得到第三实际本位币总金额与第三理论本位币总金额相等的第三分录集合,无需人工调整记账尾差,即可消除对分录集合进行外币核算时存在的记账尾差,提高了调整外币核算业务中记账尾差的效率。The method in Figure 1 determines the second entry set to be split based on the total amount of the first actual standard currency of the first entry set relative to the total amount of the first theoretical standard currency; The second entry set is split to obtain a third entry set with the total amount of the third actual standard currency equal to the total amount of the third theoretical standard currency, eliminating the need to manually adjust the accounting tail difference to eliminate foreign currency on the entry set The accounting tail difference existing in accounting improves the efficiency of adjusting the accounting tail difference in foreign currency accounting business.

图1中的方法,由于第三分录集合的实际外币总金额与第一分录集合的实际外币总金额相等,因此,第三分录集合与实际业务相符;第三分录集合中每行交易记录按汇 率折算得到的实际本位币金额与理论本位币金额相等,符合外币核算原则,避免了人工调整记账尾差后导致的部分行交易记录按汇率折算得到的实际本位币金额与理论本位币金额不相等的情况,降低了审计风险。The method in Figure 1, because the actual total foreign currency amount of the third entry set is equal to the actual foreign currency total amount of the first entry set, therefore, the third entry set is consistent with the actual business; each row in the third entry set The actual standard currency amount obtained by the conversion of the transaction records at the exchange rate is equal to the theoretical standard currency amount, which is in line with the foreign currency accounting principle, avoiding the manual adjustment of the accounting tail difference and the actual standard currency amount obtained by the conversion of the exchange rate. The unequal currency amount reduces the audit risk.

基于图1的方法,本说明书实施例还提供了该方法的一些具体实施方式,下面进行说明。Based on the method of FIG. 1, the embodiments of the present specification also provide some specific implementation manners of the method, which will be described below.

在本说明书实施例中,所述指定记账符号包括借方或贷方。In the embodiment of the present specification, the designated accounting symbol includes debit or credit.

实际应用中,第一分录集合可以是只包含借方会计分录的集合,第一分录集合也可以是只包含贷方会计分录的集合。“借方”、“贷方”作为借贷记账法中的记账符号,并不是“纯粹的”、“抽象的”记账符号,而是具有深刻经济内涵的科学的记账符号。“借”和“贷”作为记账符号,都具有增加和减少的双重含义。“借”和“贷”何时为增加、何时为减少,必须结合账户的具体性质才能准确说明。资产类,费用类是“借”增“贷”减,负债类,所有者权益类,收入类是“借”减“贷”增。根据会计等式“资产+费用=负债+所有者权益+收入”可知,“借”和“贷”这两个记账符号对会计等式两方的会计要素规定了增减相反的含义。In practical applications, the first entry set may be a set containing only debit accounting entries, and the first entry set may also be a set containing only credit accounting entries. "Debit" and "credit" as the accounting symbols in the debit and credit accounting method are not "pure" and "abstract" accounting symbols, but scientific accounting symbols with profound economic connotations. "Borrowing" and "credit" as bookkeeping symbols both have the dual meaning of increase and decrease. When "borrowing" and "crediting" increase or decrease, it must be combined with the specific nature of the account to accurately explain. In the asset category, the expense category is "borrowed" plus "loan" minus, the liability category, the owner's equity category, and the income category is "borrowed" minus "loan" increase. According to the accounting equation "asset + expense = liability + owner ’s equity + income", we can see that the two bookkeeping symbols "borrow" and "loan" have opposite meanings for the accounting elements of the accounting equation.

在本说明书实施例中,根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合,具体包括:In the embodiment of the present specification, the second entry set is determined from the first entry set according to the first comparison result, which specifically includes:

当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。When the first comparison result indicates that the first actual standard currency total amount is greater than the first theoretical standard currency total amount, the second actual standard currency total amount in the first entry set is greater than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained.

上述步骤中,第二分录集合可以包含一条会计分录,也可以包含多条会计分录。例如:将表1中的借方外币分录集合作为第一分录集合时,第一分录集合的实际本位币总金额为130元,第一分录集合的理论本位币总金额129元,即第一分录集合的实际本位币总金额大于第一分录集合的理论本位币总金额。借方外币分录中包含两条相同的第一会计分录,其中任意一条第一会计分录的实际本位币总金额为65元,任意一条第一会计分录的等值本位币总金额为64.6元,即任意一条第一会计分录的实际本位币总金额大于其等值本位币总金额,此时,第二分录集合可以包含一条第一会计分录,第二分录集合也可以包含两条第一会计分录。In the above steps, the second entry set may contain one accounting entry or multiple accounting entries. For example: when the debit foreign currency entry set in Table 1 is used as the first entry set, the actual total amount of the standard currency in the first entry set is 130 yuan, and the total theoretical standard currency in the first entry set is 129 yuan, that is The total amount of the actual standard currency of the first entry set is greater than the total amount of the theoretical standard currency of the first entry set. The debit foreign currency entry contains two identical first accounting entries, of which the total actual currency amount of any one first accounting entry is 65 yuan, and the total equivalent currency amount of any one first accounting entry is 64.6 Yuan, that is, the total amount of the actual standard currency of any first accounting entry is greater than the total amount of the equivalent standard currency. At this time, the second entry set can contain a first accounting entry, and the second entry set can also contain Two first accounting entries.

在本说明书实施例中,根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合,具体包括:In the embodiment of the present specification, determining the second entry set from the first entry set according to the first comparison result specifically includes:

当所述第一比较结果表示所述第一实际本位币总金额小于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额小于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。When the first comparison result indicates that the first actual standard currency total amount is less than the first theoretical standard currency total amount, the second actual standard currency total amount in the first entry set is less than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained.

上述步骤中,第二分录集合可以包括一条会计分录,也可以包括多条会计分录。例如:将表1中的贷方外币分录集合作为第一分录集合时,第一分录集合的实际本位币总金额为128元,第一分录集合的理论本位币总金额129元,即第一分录集合的实际本位币总金额小于第一分录集合的理论本位币总金额。借方外币分录中包含两条相同的第一会计分录,其中任意一条第一会计分录的实际本位币总金额为64元,任意一条第一会计分录的等值本位币总金额为64.6元,即任意一条第一会计分录的实际本位币总金额小于其等值本位币总金额,此时,第二分录集合可以包括一条第一会计分录,第二分录集合也可以包括两条第一会计分录。In the above steps, the second entry set may include one accounting entry or multiple accounting entries. For example, when the credit foreign currency entry set in Table 1 is used as the first entry set, the actual total amount of the standard currency in the first entry set is 128 yuan, and the theoretical total amount of the theoretical standard currency in the first entry set is 129 yuan, that is The total amount of the actual standard currency of the first entry set is less than the total amount of the theoretical standard currency of the first entry set. The debit foreign currency entry contains two identical first accounting entries, of which the total actual currency amount of any one first accounting entry is 64 yuan, and the total equivalent currency amount of any one first accounting entry is 64.6 Yuan, that is, the total amount of the actual standard currency of any first accounting entry is less than the total amount of the equivalent standard currency. In this case, the second entry set may include a first accounting entry, and the second entry set may also include Two first accounting entries.

在本说明书实施例中,所述采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合,具体包括:In the embodiment of the present specification, the splitting the base amount to split the second entry set to obtain a third entry set specifically includes:

采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合;所述第一交易记录的第一实际本位币金额相对于所述第一交易记录的第一等值本位币金额的比较结果为第三比较结果;所述第三比较结果与所述第一比较结果相同。Using the split base amount to split the first transaction record in the third accounting entry in the second entry set to obtain the third entry set; the first actual standard of the first transaction record The comparison result of the currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result.

上述步骤中,第三会计分录可以仅包含一条会计分录,也可以包含符合设置条件的多条会计分录;第一交易记录可以仅包含第三会计分录中的某一行交易记录,也可以包含符合设置条件的第三会计分录中的多行交易记录;其中,对第三会计分录或第一交易记录所需符合的设置条件可以根据具体情况自行设置,比如,将第二分录集合中记账尾差大于A的会计分录确定为第三会计分录;将第三会计分录中转换尾差金额小于B的交易记录确定为第一交易记录,A或B均为根据具体情况自行设置的本位币金额。一行交易记录的转换尾差为该行交易记录的实际本位币金额与等值本位币金额之差。In the above steps, the third accounting entry can contain only one accounting entry, or it can contain multiple accounting entries that meet the set conditions; the first transaction record can only contain one row of transaction records in the third accounting entry, or Can contain multiple lines of transaction records in the third accounting entry that meets the setting conditions; among them, the setting conditions that need to be met for the third accounting entry or the first transaction record can be set according to specific circumstances, for example, the second The accounting entries with a tail difference greater than A in the record set are determined as the third accounting entry; the transaction records with the conversion tail difference less than B in the third accounting entry are determined as the first transaction record, either A or B are based on The amount of the standard currency set by the specific situation. The conversion tail difference of a line of transaction records is the difference between the actual standard currency amount of the line of transaction records and the equivalent standard currency amount.

具体的,可以采用以下方式对所述第二分录集合进行拆分:定义第三会计分录为第二分录集合中的任意一条会计分录,此时仅对第二分录集合中符合设置条件的第一交易记录进行拆分,得到第三分录集合。Specifically, the second entry set can be split in the following manner: the third accounting entry is defined as any one of the accounting entries in the second entry set, and only the second entry set The conditional first transaction record is split to obtain the third entry set.

还可以采用以下方式对所述第二分录集合进行拆分:预先设置第三会计分录需符合的条件,并预先设置第一交易记录需符合的条件,根据预设条件对第二分录中符合预 设条件的会计分录中的第一交易记录进行拆分。It is also possible to split the second entry set in the following manner: pre-set the conditions that the third accounting entry needs to meet, and pre-set the conditions that the first transaction record needs to meet, and according to the preset conditions, the second entry The first transaction record in the accounting entry that meets the preset conditions is split.

上述步骤中,通过预设条件对第二分录集合中进行拆分的会计分录和交易记录进行进一步限定,缩小了进行拆分的会计分录的范围,避免对第二分录集合中的全部会计分录进行拆分,提高了记账尾差调整方案的运行效率,同时可为用户提供个性化的拆分方法,更好的满足用户需求。In the above steps, the accounting entries and transaction records to be split in the second entry set are further limited by preset conditions, which narrows the scope of the accounting entries to be split and avoids the All accounting entries are split, which improves the operating efficiency of the accounting tail difference adjustment scheme, and at the same time can provide users with personalized splitting methods to better meet user needs.

在本说明书实施例中,所述采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,具体包括:In the embodiment of the present specification, the splitting the basic amount to split the first transaction record in the third accounting entry in the second entry set specifically includes:

对于任意一行所述第一交易记录,采用所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录;所述第三交易记录的初始金额为所述拆分基础金额;所述第二交易记录的初始金额为所述第一交易记录的外币金额与全部的所述第三交易记录的初始金额之和的差。For any row of the first transaction record, the split basic amount is used to split the first transaction record into a second transaction record and at least one third transaction record; the initial amount of the third transaction record is The split basic amount; the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records.

上述步骤中,采用所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录,意为可以将一行第一交易记录拆分为一行第二交易记录和一行第三交易记录,也可以将一行第一交易记录拆分为一行第二交易记录和多行第三交易记录。In the above steps, the first transaction record is split into a row of second transaction records and at least one row of third transaction records using the split base amount, meaning that a row of first transaction records can be split into a row of second transactions The record and a row of third transaction records may also be split into a row of second transaction records and multiple rows of third transaction records.

对一行第一交易记录拆分出的全部的交易记录的外币总金额与拆分前的第一交易记录的外币金额相等,对一行第一交易记录拆分出的全部的交易记录的实际本位币总金额与拆分前的第一交易记录的实际本位币金额不相等。对一行第一交易记录进行第一次拆分得到的第三交易记录的金额为拆分基础金额,若第一次拆分得到的第二交易记录和第三交易记录不符合要求,则需对第一交易记录进行第二次拆分,直至拆分出的交易记录符合要求。The total foreign currency amount of all transaction records split on the first transaction record of a row is equal to the foreign currency amount of the first transaction record before splitting, and the actual standard currency of all transaction records split on the first transaction record of a row The total amount is not equal to the actual standard currency amount of the first transaction record before the split. The amount of the third transaction record obtained by performing the first split on the first transaction record of a row is the split base amount. If the second transaction record and the third transaction record obtained from the first split do not meet the requirements, The first transaction record is split for the second time until the split transaction record meets the requirements.

具体地,对一行第一交易记录进行拆分,可以包括:Specifically, splitting a row of first transaction records may include:

根据所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录;所述第三交易记录的初始值为所述拆分基础金额;所述第二交易记录的初始值为所述第一交易记录的外币金额与全部的第三交易记录的初始值之和的差。Split the first transaction record into a row of second transaction records and at least one row of third transaction records according to the split basis amount; the initial value of the third transaction record is the split basis amount; the first The initial value of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial value of all the third transaction records.

获取第二交易记录集合的实际本位币总金额;第二交易记录集合为由一行第一交易记录拆分出的全部交易记录的集合。Obtain the actual total currency amount of the second transaction record set; the second transaction record set is a collection of all transaction records split from a row of first transaction records.

判断所述第二交易记录集合的实际本位币总金额与所述第一交易记录的实际本位币金额是否相等。It is determined whether the actual total amount of the standard currency of the second transaction record set is equal to the actual amount of the standard currency of the first transaction record.

若是,则对所述第三交易记录的初始值增加一倍的所述拆分基础金额,并将初始值修改后的第三交易记录作为更新后的第三交易记录返回步骤“根据所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录”。If yes, the initial value of the third transaction record is doubled by the split base amount, and the third transaction record with the modified initial value is returned as the updated third transaction record. Divide the first transaction record into a row of second transaction records and at least one row of third transaction records by base amount ".

若否,则结束对该行第一交易记录的拆分。If not, the split of the first transaction record of the line is ended.

在此提供对一行第一交易记录进行拆分的第一种实现方式。Here, a first implementation method for splitting a row of the first transaction record is provided.

假设表1中的贷方外币分录集合为第一分录集合,第一实际本位币总金额(128元)小于第一理论本位币总金额(129元),第一分录集合中包含两条相同的第一会计分录,第一会计分录的第二实际本位币总金额(6元)小于第一等值本位币总金额(64.6元),因此,第二分录集合包含至少一条第一会计分录。预设第二分录集合包含两条第一会计分录,第三会计分录为第二分录集合中的第一条会计分录。此时,第三会计分录包含外币金额分别为3美元、3美元和4美元的第一行交易记录、第二行交易记录和第三行交易记录。第一行交易记录的第一实际本位币金额(19元)小于第一行交易记录的第一等值本位币金额(19.38元),而第三行交易记录的第一实际本位币金额(26元)大于第一行交易记录的第一等值本位币金额(25.84元),可知,第一交易记录可以是第一行交易记录或第二行交易记录,而不能是第三行交易记录。Assuming that the set of credit foreign currency entries in Table 1 is the first entry set, the first actual standard currency total amount (128 yuan) is less than the first theoretical standard currency total amount (129 yuan), and the first entry set contains two The same first accounting entry, the total amount of the second actual standard currency (6 yuan) of the first accounting entry is less than the total amount of the first equivalent standard currency (64.6 yuan), so the second entry set contains at least one 1. Accounting entries. The preset second entry set contains two first accounting entries, and the third accounting entry is the first accounting entry in the second entry set. At this time, the third accounting entry includes the first row of transaction records, the second row of transaction records, and the third row of transaction records with foreign currency amounts of $ 3, $ 3, and $ 4, respectively. The first actual standard currency amount (19 yuan) in the first transaction record is less than the first equivalent standard currency amount (19.38 yuan) in the first transaction record, and the first actual standard currency amount (26) in the third transaction record Yuan) is greater than the first equivalent of the first line of transaction currency amount (25.84 yuan), it can be seen that the first transaction record can be the first line transaction record or the second line transaction record, but not the third line transaction record.

当拆分基础金额为0.1美元时,对第一行交易记录进行拆分,即将一行外币金额为3美元的第一交易记录拆分为1行外币金额为0.1美元的第三交易记录和1行外币金额为2.9美元的第二交易记录。When the split base amount is 0.1 USD, the first row of transaction records is split, that is, the first transaction record with a foreign currency amount of 3 USD is split into 1 row of third transaction record with a foreign currency amount of 0.1 USD and 1 row Second transaction record with a foreign currency amount of 2.9 USD.

获取第二交易记录集合的实际本位币总金额为20元。The actual total amount of standard currency for obtaining the second transaction record set is 20 yuan.

经过判断,第二交易记录集合的实际本位币总金额(20元)与所述第一交易记录的实际本位币金额(19元)不相等,此时,认为对该行第一交易记录完成了拆分。After judgment, the total amount of actual standard currency (20 yuan) of the second transaction record set is not equal to the actual amount of standard currency (19 yuan) of the first transaction record. Split.

表3为第一种实现方式中对一行第一交易记录进行拆分后得到的数据。如表3所示,对表1中贷方外币分录中的一行第一交易记录进行拆分后,贷方分录集合的记账尾差被消除了。Table 3 is data obtained by splitting a row of first transaction records in the first implementation manner. As shown in Table 3, after splitting a row of the first transaction record in the credit foreign currency entry in Table 1, the accounting tail difference of the credit entry set is eliminated.

表3table 3

Figure PCTCN2019106018-appb-000003
Figure PCTCN2019106018-appb-000003

在此提供对一行第一交易记录进行拆分的第二种实现方式。Here, a second implementation method for splitting a row of first transaction records is provided.

仍旧假设表1中的贷方外币分录集合为第一分录集合,当拆分基础金额为0.2美元,将一行第一交易记录拆分为一行第二交易记录和两行第三交易记录时,第一次拆分,具体为:将一行外币金额为3美元的第一交易记录拆分为2行外币金额都为0.2美元的第三交易记录和1行外币金额为2.6美元的第二交易记录。It is still assumed that the credit foreign currency entry set in Table 1 is the first entry set. When the split base amount is 0.2 USD, when one row of first transaction record is split into one row of second transaction record and two rows of third transaction record, The first split, specifically: split the first transaction record with a foreign currency amount of $ 3 into a third transaction record with a foreign currency amount of $ 0.2 on both lines and a second transaction record with a foreign currency amount of $ 2.6 on one line .

获取第二交易记录集合的实际本位币总金额为19元。The actual total amount of currency in the second transaction record set is 19 yuan.

经过判断,第二交易记录集合的实际本位币总金额与所述第一交易记录的实际本位币金额相等,此时,将第三交易记录的外币金额修改为0.4美元,对应的第二交易记录的外币金额为2.2美元。After judgment, the total amount of the actual standard currency in the second transaction record set is equal to the actual amount in the first transaction record, at this time, the foreign currency amount of the third transaction record is modified to 0.4 USD, corresponding to the second transaction record The foreign currency amount is 2.2 USD.

获取第二交易记录集合的实际本位币总金额为20元。The actual total amount of standard currency for obtaining the second transaction record set is 20 yuan.

经过判断,第二交易记录集合的实际本位币总金额与所述第一交易记录的实际本位币金额不相等,此时,认为对该行第一交易记录完成了拆分。After judgment, the total amount of the actual standard currency in the second transaction record set is not equal to the actual amount of the standard currency in the first transaction record. At this time, it is considered that the first transaction record in the bank has been split.

表4为第二种实现方式中对一行第一交易记录进行第一次拆分后得到的数据。如表4所示,第一次拆分结束后,并未消除贷方分录集合的记账尾差。Table 4 is the data obtained after the first split of a row of the first transaction record in the second implementation manner. As shown in Table 4, after the end of the first split, the accounting tail difference of the credit entry set has not been eliminated.

表4Table 4

Figure PCTCN2019106018-appb-000004
Figure PCTCN2019106018-appb-000004

表5为第二种实现方式中对一行第一交易记录进行第二次拆分后得到的数据。如表5所示,第二次拆分结束后,消除了贷方分录集合的记账尾差。Table 5 is the data obtained after the second split of a row of the first transaction record in the second implementation manner. As shown in Table 5, after the second split, the credit trailing difference of the credit entry set is eliminated.

表5table 5

Figure PCTCN2019106018-appb-000005
Figure PCTCN2019106018-appb-000005

在此提供对一行第一交易记录进行拆分的第三种实现方式。Here, a third implementation method for splitting a row of the first transaction record is provided.

假设已完成对贷方记账尾差的调整,以表1中借方外币分录集合为第一分录集合, 此时,第二分录集合包括两条第一会计分录。将第一条会计分录确定为第三会计分录,将第三会计分录中的第一行交易记录确定为第一交易记录。当拆分基础金额为0.6美元,对第一交易记录的第一次拆分具体为:将一行外币金额为10美元的第一交易记录拆分为1行外币金额都为9.4美元的第三交易记录和1行外币金额为0.6美元的第二交易记录。Assuming that the adjustment of the credit trailing difference has been completed, the debit foreign currency entry set in Table 1 is used as the first entry set. At this time, the second entry set includes two first accounting entries. The first accounting entry is determined as the third accounting entry, and the first row of transaction records in the third accounting entry is determined as the first transaction record. When the split base amount is US $ 0.6, the first split of the first transaction record is specifically: split the first transaction record with a foreign currency amount of $ 10 into a third transaction with a foreign currency amount of $ 9.4 per row Records and a second transaction record with a foreign currency amount of 0.6 USD in one line.

获取第二交易记录集合的实际本位币总金额为65元。The actual total amount of standard currency for obtaining the second transaction record set is 65 yuan.

经过判断,第二交易记录集合的实际本位币总金额与所述第一交易记录的实际本位币金额相等,此时,对第二交易记录进行第二次拆分,将第三交易记录的外币金额修改为1.2美元,对应的第二交易记录的外币金额为8.8美元,并判断第二次拆分是否符合要求。After judgment, the total amount of the actual standard currency of the second transaction record set is equal to the actual amount of the standard currency of the first transaction record, at this time, the second transaction record is split for the second time, and the foreign currency of the third transaction record The amount was revised to 1.2 US dollars, the corresponding foreign currency amount of the second transaction record was 8.8 US dollars, and it was determined whether the second split met the requirements.

经过多次拆分、判断,得到当第三交易记录的外币金额修改为3美元,对应的第二交易记录的外币金额为7美元时,第二交易记录集合的实际本位币总金额与所述第一交易记录的实际本位币金额不相等,此时,认为对该行第一交易记录完成了拆分。After many splits and judgments, it is obtained that when the foreign currency amount of the third transaction record is changed to 3 US dollars and the corresponding foreign currency amount of the second transaction record is 7 US dollars, the actual total currency amount of the second transaction record set and the The actual standard currency amount of the first transaction record is not equal, at this time, it is considered that the first transaction record of the bank has been split.

表6为第三种实现方式中对一行第一交易记录拆分后的数据。Table 6 shows the data after splitting a row of the first transaction record in the third implementation.

表6Table 6

Figure PCTCN2019106018-appb-000006
Figure PCTCN2019106018-appb-000006

如表6所示,当对借方分录集合中的一行交易记录进行拆分后,消除了借方分录集合的记账尾差。当分别对借方分录集合及贷方分录集合进行拆分调整后,分录集合中每行外币交易记录按汇率折算后得到的本位币交易记录的本位币金额是正确的,对借方 外币分录集合或贷方外币分录集合进行外币核算后无记账尾差。As shown in Table 6, when a row of transaction records in the debit entry set is split, the accounting tail difference of the debit entry set is eliminated. When the debit entry set and the credit entry set are split and adjusted separately, the foreign currency transaction records of each line in the entry set are converted to the exchange rate based on the exchange rate of the local currency transaction record is correct, the debit foreign currency entry The collection or credit foreign currency entry collection has no accounting tail difference after foreign currency accounting.

在实际应用中,第一分录集合的记账尾差的数值通常较大,拆分一行交易记录虽然可以减小记账尾差,但无法消除记账尾差。针对这种情况,对多行第一交易记录进行拆分,以消除记账尾差。In practical applications, the value of the accounting tail difference of the first entry set is usually large. Although splitting a row of transaction records can reduce the accounting tail difference, it cannot eliminate the accounting tail difference. In response to this situation, the first transaction records of multiple lines are split to eliminate the difference in accounting.

具体的,可以采用以下方式消除第一分录集合的记账尾差:Specifically, the following method can be used to eliminate the accounting tail difference of the first entry set:

从第二分录集合中确定出一行所述第一交易记录。A row of the first transaction record is determined from the second entry set.

根据拆分基础金额拆分一行所述第一交易记录。Split the first transaction record according to the split base amount.

使用一行所述第一交易记录拆分出的全部交易记录替换所述第一分录集合中的所拆分中的第一交易记录,得到第四分录集合。The first transaction record in the first entry set is replaced with all transaction records split from the first transaction record in a row to obtain a fourth entry set.

判断所述第四分录集合的实际本位币总金额与所述第一分录集合的理论本位币总金额是否相等。It is determined whether the actual total amount of the standard currency of the fourth entry set is equal to the theoretical total amount of the standard currency of the first entry set.

若是,则结束。第一分录集合的记账尾差已被调整为0。If yes, it ends. The accounting tail difference of the first entry set has been adjusted to 0.

若否,将去除了所拆分的第一交易记录的第二分录集合作为更新后的第二分录集合返回步骤“从第二分录集合中确定出一行所述第一交易记录”。If not, the second entry set from which the split first transaction record is removed is used as the updated second entry set and returns to the step of “determining a row of the first transaction record from the second entry set”.

具体的,还可以采用以下方式消除第一分录集合的记账尾差:Specifically, the following method can also be used to eliminate the accounting tail difference of the first entry set:

确定所述第一实际本位币总金额与所述第一理论本位币总金额的差值。The difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency is determined.

确定所述差值所包含的预设本位币最小计数单位的个数Y;其中,Y为正整数。Determine the number Y of the minimum counting units of the preset standard currency included in the difference; where Y is a positive integer.

所述采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合,具体包括:The splitting the basic amount to split the first transaction record in the third accounting entry in the second entry set to obtain the third entry set specifically includes:

采用拆分基础金额对Y行所述第一交易记录进行拆分,得到所述第三分录集合。The first transaction record on line Y is split using the split base amount to obtain the third set of entries.

上述步骤,先确定待拆分的交易记录的个数Y,根据确定的待拆分个数Y,采用拆分基础金额对Y行所述第一交易记录进行拆分,就得到了记账尾差为0的调整后的第一分录集合,无需每拆分一行交易记录,就对调整后的分录集合的实际本位币总金额计算一次,精简了调整步骤,减小了调整过程中的计算量,提高了调整效率。In the above steps, first determine the number Y of transaction records to be split, and according to the determined number Y to be split, use the split base amount to split the first transaction record in row Y, and the accounting tail is obtained The adjusted first entry set with a difference of 0 eliminates the need to split a row of transaction records, and calculates the actual total currency amount of the adjusted entry set once, streamlining the adjustment steps and reducing the adjustment process. The amount of calculation improves the adjustment efficiency.

在本说明书实施例中,确定第一交易记录,具体包括:In the embodiment of the present specification, determining the first transaction record specifically includes:

获取所述第三会计分录中的每行第四交易记录的第二丢失金额的绝对值。Obtain the absolute value of the second lost amount of each fourth transaction record in the third accounting entry.

对各所述第四交易记录按所述第二丢失金额的绝对值从大到小排列。The fourth transaction records are arranged in descending order of the absolute value of the second lost amount.

将前M行所述第二丢失金额的绝对值大的所述第四交易记录中的任意一条确定为所述第一交易记录,其中,M为正整数。Any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines is determined as the first transaction record, where M is a positive integer.

上述步骤中,第四交易记录为第三会计分录中的第一实际本位币金额相对于第一等值本位币金额的比较结果与所述第一比较结果相同的交易记录。每行第四会交易记录的丢失金额意为每行第四会交易记录的第一实际本位币金额与对应的第一等值本位币金额之差,绝对值是指一个数在数轴上所对应点到原点的距离。例如,表1中贷方外币分录集合中的第一条会计分录中的第一行交易记录为一行第四交易记录,该行第四交易记录的外币金额为3美元,该行第四交易记录的第一等值本位币金额为19.38元,该行第四交易记录的实际本位币金额为19元,因此,该行第四交易记录的丢失金额为-0.38元,丢失金额的绝对值为0.38。In the above steps, the fourth transaction record is a transaction record in which the comparison result of the first actual standard currency amount relative to the first equivalent standard currency amount in the third accounting entry is the same as the first comparison result. The lost amount of the fourth session of each transaction record means the difference between the first actual standard currency amount and the corresponding first equivalent standard currency amount of the fourth session transaction record of each line. The absolute value refers to the number corresponding to a number on the number line. The distance from the point to the origin. For example, the first row of transaction records in the first accounting entry in the lender's foreign currency entry collection in Table 1 is a row of fourth transaction records, and the foreign currency amount of the fourth transaction record in this row is $ 3. The recorded first equivalent of the standard currency amount is 19.38 yuan, and the actual standard currency amount of the fourth transaction record of the bank is 19 yuan. Therefore, the lost amount of the fourth transaction record of the bank is -0.38 yuan, and the absolute value of the lost amount is 0.38.

在本说明书实施例中,确定第三会计分录,具体包括:In the embodiment of this specification, the determination of the third accounting entry specifically includes:

获取所述第二分录集合中的每条所述第二会计分录的第一丢失金额的绝对值;Obtaining the absolute value of the first lost amount of each second accounting entry in the second entry set;

对各所述第二会计分录按所述第一丢失金额的绝对值从大到小排列;Sorting the second accounting entries according to the absolute value of the first lost amount from large to small;

将前N条所述第一丢失金额的绝对值大的所述第二会计分录中的任意一条确定为所述第三会计分录,其中,N为正整数。Determine any one of the second N accounting entries with the largest absolute value of the first lost amount as the third N accounting entry, where N is a positive integer.

上述步骤中,每条第二会计分录的丢失金额意为每条第二会计分录的第二实际本位币总金额与对应的第一等值本位币总金额之差,绝对值是指一个数在数轴上所对应点到原点的距离。例如,表1中借方外币分录集合中的第一条会计分录即为第二会计分录,该条第二会计分录的外币总金额为10美元,该条第二会计分录的第一等值本位币总金额为64.6元,该条第二会计分录的实际本位币总金额为65元,因此,该条第二会计记录的丢失金额为0.4元,丢失金额的绝对值为0.4。In the above steps, the lost amount of each second accounting entry means the difference between the total amount of the second actual standard currency and the corresponding total amount of the first equivalent local currency in each second accounting entry. The absolute value refers to a The distance from the corresponding point on the number axis to the origin. For example, the first accounting entry in the set of debit foreign currency entries in Table 1 is the second accounting entry. The total amount of foreign currency in the second accounting entry is $ 10. The second accounting entry The total amount of the equivalent standard currency is 64.6 yuan, and the actual total amount of the second standard accounting entry is 65 yuan. Therefore, the lost amount of the second accounting record is 0.4 yuan, and the absolute value of the lost amount is 0.4 .

上述步骤,将丢失金额的绝对值大的会计分录确定为第三会计分录,优先对丢失金额大的会计分录进行拆分调整,可减少所需调整的会计分录的个数,降低记账尾差调整的运算量,提高调整效率。In the above steps, the accounting entry with the largest absolute value of the lost amount is determined as the third accounting entry, and the accounting entry with the largest lost amount is preferably split and adjusted to reduce the number of accounting entries required The calculation amount of the adjustment of the accounting tail difference improves the adjustment efficiency.

基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图2为本说明书实施例提供的对应于图1的一种调整外币核算中记账尾差的装置的结构示意图。如图2所示,该装置可以包括:Based on the same idea, the embodiments of the present specification also provide a device corresponding to the above method. FIG. 2 is a schematic structural diagram of an apparatus for adjusting a billing tail difference in foreign currency accounting corresponding to FIG. 1 provided by an embodiment of the present specification. As shown in FIG. 2, the device may include:

第一获取模块201,用于获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;The first obtaining module 201 is used to obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol ;

第二获取模块202,用于获取所述第一分录集合的第一实际本位币总金额;The second obtaining module 202 is used to obtain the first actual total currency amount of the first entry set;

第一比较模块203,用于将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;The first comparison module 203 is configured to compare the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain the total amount of the first actual standard currency relative to the first theoretical standard currency The first comparison result of the total amount; the first comparison result includes greater than or less than;

第二分录集合确定模块204,用于根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;The second entry set determination module 204 is configured to determine a second entry set from the first entry set based on the first comparison result; a second accounting entry in the second entry set The comparison result of the total amount of the second actual standard currency with respect to the total amount of the first equivalent standard currency of the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;

拆分模块205,用于采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The splitting module 205 is used to split the second entry set by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion The foreign currency amount that is less than the preset minimum unit of count for the local currency, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the The total foreign currency amount of the first entry set is equal, and the third actual standard currency total amount of the third entry set is equal to the third theoretical standard currency total amount of the third entry set.

可选的,第二分录集合确定模块204,具体包括:Optionally, the second entry set determination module 204 specifically includes:

第二分录集合第一确定单元,用于当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。The first determination unit of the second entry set is used to add the first entry set to the first entry set when the first comparison result indicates that the first actual standard currency total amount is greater than the first theoretical standard currency total amount An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent local currency is determined as the second accounting entry, and the second set of entries is obtained.

可选的,第二分录集合确定模块204,具体包括:Optionally, the second entry set determination module 204 specifically includes:

第二分录集合第二确定单元,用于当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合A second determination unit for the second entry set is used to store the first entry set when the first comparison result indicates that the total amount of the first actual standard currency is greater than the total amount of the first theoretical standard currency An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent standard currency is determined as the second accounting entry, and the second set of entries is obtained

可选的,拆分模块205,具体包括:Optionally, the splitting module 205 specifically includes:

拆分单元,用于采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合;所述第一交易记录的第一实际本位币金额相对于所述第一交易记录的第一等值本位币金额的比较结果为第三比较结果;所述第三比较结果与所述第一比较结果相同。A splitting unit, configured to split the first transaction record in the third accounting entry in the second entry set using the split base amount to obtain the third entry set; the first transaction A comparison result of the recorded first actual standard currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result.

可选的,所述拆分单元,具体包括:Optionally, the splitting unit specifically includes:

第一拆分子单元,用于对于任意一行所述第一交易记录,采用所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录;所述第三交易记录的初始金额为所述拆分基础金额;所述第二交易记录的初始金额为所述第一交易记录的外币金额与全部的所述第三交易记录的初始金额之和的差。A first splitting subunit, used to split the first transaction record into a row of second transaction records and at least one row of third transaction records using the split basic amount for any row of the first transaction records; The initial amount of the third transaction record is the split basic amount; the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records .

可选的,调整外币核算中记账尾差的装置还包括:Optionally, the device for adjusting the accounting tail difference in foreign currency accounting also includes:

差值确定模块,用于确定所述第一实际本位币总金额与所述第一理论本位币总金额的差值;The difference determination module is used to determine the difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency;

差值所包含的预设本位币最小计数单位的个数确定模块,用于确定所述差值所包含的预设本位币最小计数单位的个数Y;其中,Y为正整数;A module for determining the number of preset minimum units of counting of the functional currency included in the difference is used to determine the number Y of the minimum unit of counting of the predetermined functional currency included in the difference; where Y is a positive integer;

所述拆分单元,具体包括:The splitting unit specifically includes:

第二拆分子单元,用于采用拆分基础金额对Y行所述第一交易记录进行拆分,得到所述第三分录集合。The second splitting subunit is used to split the first transaction record in line Y by using the split base amount to obtain the third set of entries.

可选的,调整外币核算中记账尾差的装置还包括:Optionally, the device for adjusting the accounting tail difference in foreign currency accounting also includes:

第三获取模块,用于获取所述第二分录集合中的每条所述第二会计分录的第一丢失金额的绝对值;A third obtaining module, configured to obtain the absolute value of the first lost amount of each second accounting entry in the second entry set;

第一排序模块,用于对各所述第二会计分录按所述第一丢失金额的绝对值从大到小排列;A first sorting module, configured to sort the second accounting entries according to the absolute value of the first lost amount from largest to smallest;

第三会计分录确定模块,用于将前N条所述第一丢失金额的绝对值大的所述第二会计分录中的任意一条确定为所述第三会计分录,其中,N为正整数。The third accounting entry determination module is used to determine any one of the second N accounting entries with the largest absolute value of the first N lost amounts as the third accounting entry, where N is Positive integer.

可选的,调整外币核算中记账尾差的装置还包括:Optionally, the device for adjusting the accounting tail difference in foreign currency accounting also includes:

第四获取模块,用于获取所述第三会计分录中的每行第四交易记录的第二丢失金额的绝对值;A fourth obtaining module, configured to obtain the absolute value of the second lost amount of each fourth transaction record in the third accounting entry;

第二排序模块,用于对各所述第四交易记录按所述第二丢失金额的绝对值从大到小排列;A second sorting module, used to sort the fourth transaction records according to the absolute value of the second lost amount from largest to smallest;

第一交易记录确定模块,用于将前M行所述第二丢失金额的绝对值大的所述第四交易记录中的任意一条确定为所述第一交易记录,其中,M为正整数。The first transaction record determination module is configured to determine any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines as the first transaction record, where M is a positive integer.

基于同样的思路,本说明书实施例还提供了上述方法对应的设备。Based on the same idea, the embodiments of this specification also provide devices corresponding to the above methods.

图3为本说明书实施例提供的对应于图1的一种调整外币核算中记账尾差的装置设备的结构示意图。如图3所示,设备300可以包括:FIG. 3 is a schematic structural diagram of an apparatus and device corresponding to FIG. 1 that adjusts the accounting tail difference in foreign currency accounting according to an embodiment of the present specification. As shown in FIG. 3, the device 300 may include:

至少一个处理器310;以及,At least one processor 310; and,

与所述至少一个处理器通信连接的存储器330;其中,A memory 330 communicatively connected to the at least one processor; wherein,

所述存储器330存储有可被所述至少一个处理器310执行的指令320,所述指令被所述至少一个处理器310执行,以使所述至少一个处理器310能够:The memory 330 stores instructions 320 executable by the at least one processor 310, and the instructions are executed by the at least one processor 310 to enable the at least one processor 310 to:

获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;Obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol;

获取所述第一分录集合的第一实际本位币总金额;Obtain the total amount of the first actual standard currency of the first entry set;

将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;Comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison result of the total amount of the first actual standard currency relative to the total amount of the first theoretical standard currency; The first comparison result includes greater than or less than;

根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;According to the first comparison result, a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is The comparison result of the total amount of the first equivalent of the functional currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result;

采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The second entry set is split by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency The foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field  Programmable Gate Array,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, the improvement of a technology can be clearly distinguished from the improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, and switches) or the improvement in software (the improvement of the process flow). However, with the development of technology, the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure. Designers almost get the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by hardware physical modules. For example, a programmable logic device (Programmable Logic Device, PLD) (such as a field programmable gate array (Field Programmable Gate Array, FPGA)) is such an integrated circuit, and its logic function is determined by the user programming the device. Designers can program themselves to "integrate" a digital system on a PLD without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is also mostly implemented with "logic compiler" software, which is similar to the software compiler used in program development and writing, but before compilation The original code must also be written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), and HDL is not only one, but there are many, such as ABEL (Advanced Boolean Expression) Language , AHDL (AlteraHardwareDescriptionLanguage), Confluence, CUPL (CornellUniversityProgrammingLanguage), HDCal, JHDL (JavaHardwareDescriptionLanguage), Lava, Lola, MyHDL, PALASM, RHDL (RubyHardwareDescription) It is VHDL (Very-High-Speed Integrated Circuit Hardware Description) and Verilog. Those skilled in the art should also be clear that by simply programming the method flow in the above hardware description languages and programming it into the integrated circuit, the hardware circuit that implements the logic method flow can be easily obtained.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro) processor , Logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers and embedded microcontrollers. Examples of controllers include but are not limited to the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicon Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in the form of pure computer-readable program code, it is entirely possible to logically program method steps to make the controller use logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded The same function is realized in the form of a microcontroller or the like. Therefore, such a controller can be regarded as a hardware component, and the device for implementing various functions included therein can also be regarded as a structure within the hardware component. Or even, the means for realizing various functions can be regarded as both a software module of an implementation method and a structure within a hardware component.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The system, device, module or unit explained in the above embodiments may be specifically implemented by a computer chip or entity, or implemented by a product with a certain function. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or A combination of any of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施 本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram and a combination of the flow and / or block in the flowchart and / or block diagram may be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device An apparatus for realizing the functions specified in one block or multiple blocks of one flow or multiple flows of a flowchart and / or one block or multiple blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device The instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储 器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media, including permanent and non-permanent, removable and non-removable media, can store information by any method or technology. The information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices. As defined in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also includes Other elements not explicitly listed, or include elements inherent to this process, method, commodity, or equipment. Without more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, commodity, or equipment that includes the element.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media including storage devices.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The embodiments in this specification are described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant part can be referred to the description of the method embodiment.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above are only examples of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the scope of the claims of this application.

Claims (18)

一种调整外币核算中记账尾差的方法,包括:A method for adjusting the accounting tail difference in foreign currency accounting includes: 获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;Obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol; 获取所述第一分录集合的第一实际本位币总金额;Obtain the total amount of the first actual standard currency of the first entry set; 将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;Comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison result of the total amount of the first actual standard currency relative to the total amount of the first theoretical standard currency; The first comparison result includes greater than or less than; 根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于所述第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;Based on the first comparison result, a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is relative to all The comparison result of the first equivalent currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result; 采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The second entry set is split by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency The foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set. 如权利要求1所述的方法,所述指定记账符号包括借方或贷方。The method of claim 1, the designated accounting symbol includes a debit or a credit. 如权利要求1所述的方法,所述从所述第一分录集合中确定出第二分录集合,具体包括:The method of claim 1, the determining a second set of entries from the first set of entries specifically comprises: 当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。When the first comparison result indicates that the first actual standard currency total amount is greater than the first theoretical standard currency total amount, the second actual standard currency total amount in the first entry set is greater than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained. 如权利要求1所述的方法,所述从所述第一分录集合中确定出第二分录集合,具体包括:The method of claim 1, the determining a second set of entries from the first set of entries specifically comprises: 当所述第一比较结果表示所述第一实际本位币总金额小于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额小于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。When the first comparison result indicates that the first actual standard currency total amount is less than the first theoretical standard currency total amount, the second actual standard currency total amount in the first entry set is less than the The accounting entry of the total amount of the first equivalent of the functional currency is determined as the second accounting entry, and the second entry set is obtained. 如权利要求1所述的方法,所述采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合,具体包括:The method of claim 1, the splitting the second entry set by using the split base amount to obtain a third entry set specifically includes: 采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合;所述第一交易记录的第一实际本位币金额相对于所述第一交易记录的第一等值本位币金额的比较结果为第三比较结果;所述第三比较结果与所述第一比较结果相同。Using the split base amount to split the first transaction record in the third accounting entry in the second entry set to obtain the third entry set; the first actual standard of the first transaction record The comparison result of the currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result. 如权利要求5所述的方法,所述采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,具体包括:The method of claim 5, the splitting the first transaction record in the third accounting entry in the second entry set using the split base amount, specifically including: 对于任意一行所述第一交易记录,采用所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录;所述第三交易记录的初始金额为所述拆分基础金额;所述第二交易记录的初始金额为所述第一交易记录的外币金额与全部的所述第三交易记录的初始金额之和的差。For any row of the first transaction record, the split basic amount is used to split the first transaction record into a second transaction record and at least one third transaction record; the initial amount of the third transaction record is The split basic amount; the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records. 如权利要求5所述的方法,还包括:The method of claim 5, further comprising: 确定所述第一实际本位币总金额与所述第一理论本位币总金额的差值;Determine the difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency; 确定所述差值所包含的所述预设本位币最小计数单位的个数Y;其中,Y为正整数;Determine the number Y of the minimum counting unit of the preset standard currency included in the difference; where Y is a positive integer; 所述采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合,具体包括:The splitting the basic amount to split the first transaction record in the third accounting entry in the second entry set to obtain the third entry set specifically includes: 采用拆分基础金额对Y行所述第一交易记录进行拆分,得到所述第三分录集合。The first transaction record on line Y is split using the split base amount to obtain the third set of entries. 如权利要求5所述的方法,还包括:The method of claim 5, further comprising: 获取所述第二分录集合中的每条所述第二会计分录的第一丢失金额的绝对值;Obtaining the absolute value of the first lost amount of each second accounting entry in the second entry set; 对各所述第二会计分录按所述第一丢失金额的绝对值从大到小排列;Sorting the second accounting entries according to the absolute value of the first lost amount from large to small; 将前N条所述第一丢失金额的绝对值大的所述第二会计分录中的任意一条确定为所述第三会计分录,其中,N为正整数。Determine any one of the second N accounting entries with the largest absolute value of the first lost amount as the third N accounting entry, where N is a positive integer. 如权利要求5所述的方法,还包括:The method of claim 5, further comprising: 获取所述第三会计分录中的每行第四交易记录的第二丢失金额的绝对值;Obtain the absolute value of the second lost amount of each fourth transaction record in the third accounting entry; 对各所述第四交易记录按所述第二丢失金额的绝对值从大到小排列;Sorting the fourth transaction records according to the absolute value of the second lost amount from large to small; 将前M行所述第二丢失金额的绝对值大的所述第四交易记录中的任意一条确定为所述第一交易记录,其中,M为正整数。Any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines is determined as the first transaction record, where M is a positive integer. 一种调整外币核算中记账尾差的装置,包括:A device for adjusting the accounting difference in foreign currency accounting, including: 第一获取模块,用于获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;The first obtaining module is used to obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol; 第二获取模块,用于获取所述第一分录集合的第一实际本位币总金额;A second obtaining module, configured to obtain the total amount of the first actual standard currency of the first entry set; 第一比较模块,用于将所述第一实际本位币总金额与所述第一理论本位币总金额进 行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;A first comparison module for comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain the total amount of the first actual standard currency relative to the total of the first theoretical standard currency The first comparison result of the amount; the first comparison result includes greater than or less than; 第二分录集合确定模块,用于根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于所述第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;A second entry set determination module, configured to determine a second entry set from the first entry set based on the first comparison result; the second accounting entry in the second entry set The comparison result of the second actual standard currency total amount with respect to the first equivalent standard currency total amount of the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result; 拆分模块,用于采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The splitting module is used to split the second entry set by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than The foreign currency amount of the minimum counting unit of the standard currency is preset, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the first The total foreign currency amount of one entry set is equal, and the third actual standard currency total amount of the third entry set is equal to the third theoretical standard currency total amount of the third entry set. 如权利要求10所述的装置,所述第二分录集合确定模块,具体包括:The apparatus of claim 10, the second entry set determination module, specifically comprising: 第二分录集合第一确定单元,用于当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。The first determination unit of the second entry set is used to add the first entry set to the first entry set when the first comparison result indicates that the total amount of the first actual standard currency is greater than the total amount of the first theoretical standard currency An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent local currency is determined as the second accounting entry, and the second set of entries is obtained. 如权利要求10所述的装置,所述第二分录集合确定模块,具体包括:The apparatus of claim 10, the second entry set determination module, specifically comprising: 第二分录集合第二确定单元,用于当所述第一比较结果表示所述第一实际本位币总金额大于所述第一理论本位币总金额时,将所述第一分录集合中所述第二实际本位币总金额大于所述第一等值本位币总金额的会计分录确定为所述第二会计分录,得到所述第二分录集合。A second determination unit for the second entry set is used to store the first entry set when the first comparison result indicates that the total amount of the first actual standard currency is greater than the total amount of the first theoretical standard currency An accounting entry where the total amount of the second actual standard currency is greater than the total amount of the first equivalent local currency is determined as the second accounting entry, and the second set of entries is obtained. 如权利要求10所述的装置,所述拆分模块,具体包括:The apparatus of claim 10, the splitting module specifically comprises: 拆分单元,用于采用拆分基础金额对所述第二分录集合中的第三会计分录中的第一交易记录进行拆分,得到所述第三分录集合;所述第一交易记录的第一实际本位币金额相对于所述第一交易记录的第一等值本位币金额的比较结果为第三比较结果;所述第三比较结果与所述第一比较结果相同。A splitting unit, configured to split the first transaction record in the third accounting entry in the second entry set using the split base amount to obtain the third entry set; the first transaction A comparison result of the recorded first actual standard currency amount with respect to the first equivalent standard currency amount of the first transaction record is a third comparison result; the third comparison result is the same as the first comparison result. 如权利要求13所述的装置,所述拆分单元,具体包括:The apparatus of claim 13, the splitting unit specifically comprising: 第一拆分子单元,用于对于任意一行所述第一交易记录,采用所述拆分基础金额将所述第一交易记录拆分为一行第二交易记录和至少一行第三交易记录;所述第三交易记录的初始金额为所述拆分基础金额;所述第二交易记录的初始金额为所述第一交易记录 的外币金额与全部的所述第三交易记录的初始金额之和的差。A first splitting subunit, used to split the first transaction record into a row of second transaction records and at least one row of third transaction records using the split basic amount for any row of the first transaction records; The initial amount of the third transaction record is the split basic amount; the initial amount of the second transaction record is the difference between the sum of the foreign currency amount of the first transaction record and the initial amount of all the third transaction records . 如权利要求13所述的装置,还包括:The apparatus of claim 13, further comprising: 差值确定模块,用于确定所述第一实际本位币总金额与所述第一理论本位币总金额的差值;The difference determination module is used to determine the difference between the total amount of the first actual standard currency and the total amount of the first theoretical standard currency; 差值所包含的预设本位币最小计数单位的个数确定模块,用于确定所述差值所包含的所述预设本位币最小计数单位的个数Y;其中,Y为正整数;The module for determining the number of preset minimum units of counting of the functional currency included in the difference is used to determine the number Y of the minimum counting units of the predetermined functional currency included in the difference; 所述拆分单元,具体包括:The splitting unit specifically includes: 第二拆分子单元,用于采用拆分基础金额对Y行所述第一交易记录进行拆分,得到所述第三分录集合。The second splitting subunit is used to split the first transaction record in line Y by using the split base amount to obtain the third set of entries. 如权利要求13所述的装置,还包括:The apparatus of claim 13, further comprising: 第三获取模块,用于获取所述第二分录集合中的每条所述第二会计分录的第一丢失金额的绝对值;A third obtaining module, configured to obtain the absolute value of the first lost amount of each second accounting entry in the second entry set; 第一排序模块,用于对各所述第二会计分录按所述第一丢失金额的绝对值从大到小排列;A first sorting module, configured to sort the second accounting entries according to the absolute value of the first lost amount from largest to smallest; 第三会计分录确定模块,用于将前N条所述第一丢失金额的绝对值大的所述第二会计分录中的任意一条确定为所述第三会计分录,其中,N为正整数。The third accounting entry determination module is used to determine any one of the second N accounting entries with the largest absolute value of the first N lost amounts as the third accounting entry, where N is Positive integer. 如权利要求13所述的装置,还包括:The apparatus of claim 13, further comprising: 第四获取模块,用于获取所述第三会计分录中的每行第四交易记录的第二丢失金额的绝对值;A fourth obtaining module, configured to obtain the absolute value of the second lost amount of each fourth transaction record in the third accounting entry; 第二排序模块,用于对各所述第四交易记录按所述第二丢失金额的绝对值从大到小排列;A second sorting module, used to sort the fourth transaction records according to the absolute value of the second lost amount from largest to smallest; 第一交易记录确定模块,用于将前M行所述第二丢失金额的绝对值大的所述第四交易记录中的任意一条确定为所述第一交易记录,其中,M为正整数。The first transaction record determination module is configured to determine any one of the fourth transaction records with a large absolute value of the second lost amount in the previous M lines as the first transaction record, where M is a positive integer. 一种调整外币核算中记账尾差的设备,包括:A device for adjusting the accounting tail difference in foreign currency accounting, including: 至少一个处理器;以及,At least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: 获取第一分录集合的第一理论本位币总金额;所述第一分录集合中的第一会计分录是与一种指定记账符号相同的会计分录;Obtain the total amount of the first theoretical standard currency of the first entry set; the first accounting entry in the first entry set is the same accounting entry as a specified accounting symbol; 获取所述第一分录集合的第一实际本位币总金额;Obtain the total amount of the first actual standard currency of the first entry set; 将所述第一实际本位币总金额与所述第一理论本位币总金额进行比较,得到所述第一实际本位币总金额相对于所述第一理论本位币总金额的第一比较结果;所述第一比较结果包括大于或小于;Comparing the total amount of the first actual standard currency with the total amount of the first theoretical standard currency to obtain a first comparison result of the total amount of the first actual standard currency relative to the total amount of the first theoretical standard currency; The first comparison result includes greater than or less than; 根据所述第一比较结果,从所述第一分录集合中确定出第二分录集合;所述第二分录集合中的第二会计分录的第二实际本位币总金额相对于所述第二会计分录的第一等值本位币总金额的比较结果为第二比较结果;所述第二比较结果与所述第一比较结果相同;Based on the first comparison result, a second entry set is determined from the first entry set; the second actual standard currency total amount of the second accounting entry in the second entry set is relative to all The comparison result of the first equivalent currency in the second accounting entry is the second comparison result; the second comparison result is the same as the first comparison result; 采用拆分基础金额对所述第二分录集合进行拆分,得到第三分录集合;所述拆分基础金额是进行外币折算得到的本位币金额的最小计数单位小于预设本位币最小计数单位的外币金额,且所述拆分基础金额小于所述第二分录集合中任意一行交易记录的外币金额;所述第三分录集合的外币总金额与所述第一分录集合的外币总金额相等,所述第三分录集合的第三实际本位币总金额与所述第三分录集合的第三理论本位币总金额相等。The second entry set is split by using the split base amount to obtain a third entry set; the split base amount is the minimum count unit of the amount of the standard currency obtained by foreign currency conversion is less than the preset minimum count of the standard currency The foreign currency amount of the unit, and the split base amount is less than the foreign currency amount of any row of transaction records in the second entry set; the total foreign currency amount of the third entry set and the foreign currency of the first entry set The total amount is equal, the total amount of the third actual standard currency of the third entry set is equal to the total amount of the third theoretical standard currency of the third entry set.
PCT/CN2019/106018 2018-11-13 2019-09-16 Method, apparatus and device for adjusting accounting tail error in foreign currency accounting Ceased WO2020098366A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811344409.XA CN109598600A (en) 2018-11-13 2018-11-13 A kind of method, device and equipment adjusting tail difference of keeping accounts in foreign currency accounting
CN201811344409.X 2018-11-13

Publications (1)

Publication Number Publication Date
WO2020098366A1 true WO2020098366A1 (en) 2020-05-22

Family

ID=65957644

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/106018 Ceased WO2020098366A1 (en) 2018-11-13 2019-09-16 Method, apparatus and device for adjusting accounting tail error in foreign currency accounting

Country Status (3)

Country Link
CN (1) CN109598600A (en)
TW (1) TW202018646A (en)
WO (1) WO2020098366A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109598600A (en) * 2018-11-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of method, device and equipment adjusting tail difference of keeping accounts in foreign currency accounting
CN117372166B (en) * 2023-10-26 2024-03-08 北京开科唯识技术股份有限公司 Efficient tail-end distribution processing method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313096A1 (en) * 2007-06-13 2008-12-18 Hartford Fire Insurance Company System and method for financial product management
CN101645158A (en) * 2009-09-07 2010-02-10 浪潮集团山东通用软件有限公司 Method suitable for parallel computation of multi-currency asset depreciation of multiple assets
CN101901208A (en) * 2009-12-04 2010-12-01 金蝶软件(中国)有限公司 Method and device for processing data
CN107230146A (en) * 2017-05-15 2017-10-03 中国建设银行股份有限公司 Data processing method and device applied to accounting processing
CN107833081A (en) * 2017-09-30 2018-03-23 平安科技(深圳)有限公司 Automatic method for splitting, device, terminal device and the storage medium of a kind of invoice amount
CN107870980A (en) * 2017-09-30 2018-04-03 平安科技(深圳)有限公司 Electronic installation, billing data processing method and computer-readable storage medium
CN109598600A (en) * 2018-11-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of method, device and equipment adjusting tail difference of keeping accounts in foreign currency accounting

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080313096A1 (en) * 2007-06-13 2008-12-18 Hartford Fire Insurance Company System and method for financial product management
CN101645158A (en) * 2009-09-07 2010-02-10 浪潮集团山东通用软件有限公司 Method suitable for parallel computation of multi-currency asset depreciation of multiple assets
CN101901208A (en) * 2009-12-04 2010-12-01 金蝶软件(中国)有限公司 Method and device for processing data
CN107230146A (en) * 2017-05-15 2017-10-03 中国建设银行股份有限公司 Data processing method and device applied to accounting processing
CN107833081A (en) * 2017-09-30 2018-03-23 平安科技(深圳)有限公司 Automatic method for splitting, device, terminal device and the storage medium of a kind of invoice amount
CN107870980A (en) * 2017-09-30 2018-04-03 平安科技(深圳)有限公司 Electronic installation, billing data processing method and computer-readable storage medium
CN109598600A (en) * 2018-11-13 2019-04-09 阿里巴巴集团控股有限公司 A kind of method, device and equipment adjusting tail difference of keeping accounts in foreign currency accounting

Also Published As

Publication number Publication date
TW202018646A (en) 2020-05-16
CN109598600A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN110648138B (en) Transaction query and transaction data processing method, device and equipment based on block chain
CN108305158B (en) A method, device and equipment for training a risk control model and risk control
CN108460523B (en) Method and device for generating wind control rules
WO2020224299A1 (en) Payment channel recommendation method and apparatus, and device
Weber The effect of central bank transparency on exchange rate volatility
CN112015739A (en) Data verification and data query method and device
CN109146148B (en) A method and device for determining the cause of balance forecast deviation
CN110400072A (en) Authorization method, device and equipment for credit service
TWI684944B (en) Accounting method and device
CN110276692B (en) A method and device for processing transaction data
CN108346039B (en) Service processing method, device and equipment of Internet financial settlement system
CN110852503A (en) A payment channel selection method and device, payment channel routing
CN110297837B (en) Data updating method and device and data query method and device
WO2020042764A1 (en) Amount settlement system and method
CN109993646A (en) Accounting entry information determines method and device, accounting data recording method and device
WO2019196257A1 (en) Automatic repayment method and system, and terminal device
TWI721422B (en) Cross-border transaction declaration method and device
WO2020098366A1 (en) Method, apparatus and device for adjusting accounting tail error in foreign currency accounting
CN114817209A (en) Processing method and device, processor and electronic device for monitoring rules
CN111402011B (en) Method and device for commission distribution based on blockchain
WO2020155788A1 (en) Data determination method, apparatus and device, and medium
CN111986021B (en) Cross-border remittance batch paying method, device and equipment
CN117314512A (en) Resource allocation method and device, coupon allocation method and device
WO2025060761A1 (en) Order settlement processing
CN113159912B (en) Method and device for outputting positive and negative rest of reverse rest of stroke executed by electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19884073

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19884073

Country of ref document: EP

Kind code of ref document: A1