A material detail data adjustment method and related equipment

By merging and adjusting records in the material detail list, the problem of tedious and error-prone financial data processing is solved, and efficient processing and accurate calculation of data from different batches of the same material are achieved.

CN112862579BActive Publication Date: 2024-10-29KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110083739.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-21
Publication Date
2024-10-29
Estimated Expiration
2041-01-21

AI Technical Summary

Technical Problem

In the existing technology, financial data processing relies on manual operations, which makes processing financial data of different batches of the same material cumbersome and error-prone.

Method used

By obtaining material details and record grouping conditions, merging records that meet the conditions, adjusting target field values, and calculating and adjusting other field values ​​based on the adjusted values, batch processing of data from different batches of the same material is achieved.

Benefits of technology

The operation process is simplified, the possibility of manual errors is reduced, and the accuracy of data processing is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112862579B_ABST
    Figure CN112862579B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a material detail data adjustment method and related equipment, which are used to simplify operation and improve accuracy. The method of the embodiment of the present application includes: obtaining a first material detail table containing multiple first records and a record grouping condition containing at least one first field; merging the first records that meet the record grouping condition in the multiple first records to generate a second record in the second detail table; adjusting the field value of the target second field of the target second record; determining at least one target first record for merging to obtain the target second record from the multiple first records, and determining the target first field associated with the target second field from the multiple first fields; calculating the target field value of the target first field of the target first record according to the adjusted field value; adjusting the field value of the target first field of the target first record in the first material detail table to the target field value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing, and in particular to a method for adjusting material detail data and related equipment. Background Art

[0002] During their work, financial workers often face the problem of apportioning financial data of different batches of the same materials generated by both parties at different transaction periods.

[0003] In this process, since the financial data of different batches of the same material are different, for example, the quantity, unit price, tax rate and amount of materials in a transaction are different due to different batches, in the prior art, financial workers first manually summarize the financial data of different batches of the same material in the material detail table, and then manually calculate the detailed data corresponding to each batch of the same material based on the summarized financial data, and finally manually adjust the detailed data of each batch of materials in the material detail table one by one. It can be seen that the processing process of financial data in the prior art is completely dependent on manual operation, which is cumbersome and error-prone. Summary of the invention

[0004] The embodiment of the present application provides a material detail data adjustment method and related equipment for simplifying operation and improving accuracy.

[0005] A first implementation of the first aspect of the embodiments of the present application provides a method for adjusting material detail data, including:

[0006] Acquire a first material list and a record grouping condition, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one of the first fields;

[0007] Merging first records that meet the record grouping condition among the plurality of first records to generate second records in a second detailed list, wherein the second detailed list includes a plurality of second fields;

[0008] Adjusting a field value of a target second field of a target second record, wherein the target second record is any one of the plurality of second records, and the target second field is any one or more of the plurality of second fields;

[0009] Determine at least one target first record for merging to obtain the target second record from among the plurality of first records, and determine a target first field associated with the target second field from among the plurality of first fields;

[0010] Calculate a target field value of the target first field of the target first record according to the adjusted field value;

[0011] The field value of the target first field of the target first record in the first material details table is adjusted to the target field value.

[0012] In combination with the first implementation of the first aspect of the embodiments of the present application, the second implementation of the first aspect of the embodiments of the present application includes:

[0013] Obtaining a field value of a first field associated with the record grouping condition of the plurality of first records;

[0014] Determining a plurality of target first records having the same field value among the plurality of first records;

[0015] The plurality of target first records are merged to generate a second record in the second detail table.

[0016] In combination with the second implementation of the first aspect of the embodiment of the present application, the third implementation of the first aspect of the embodiment of the present application includes:

[0017] Aggregate the field values ​​of at least one first field associated with the preset aggregation rule in the plurality of target first records to obtain an aggregated field value;

[0018] Acquire field values ​​of other first fields except the at least one first field in the plurality of target first records;

[0019] Fill the summary field value and the field values ​​of the other first fields into the second detailed table to generate a second record in the second detailed table.

[0020] In combination with the first implementation of the first aspect of the embodiment of the present application, the fourth implementation of the first aspect of the embodiment of the present application, the target first field includes a first unit price and a first amount, the target second field includes a second amount, and the second field includes a second unit price, then includes:

[0021] Calculating the field value of the second unit price of the target second record according to the field value of the adjusted second amount of the target second record;

[0022] Determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0023] If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price;

[0024] If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0025] In combination with the first implementation of the first aspect of the embodiments of the present application, the fifth implementation of the first aspect of the embodiments of the present application includes:

[0026] Calculating the field value of the second amount of the target second record according to the field value of the adjusted second unit price of the target second record;

[0027] Determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0028] If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price;

[0029] If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0030] In combination with the fifth implementation of the first aspect of the embodiment of the present application, the sixth implementation of the first aspect of the embodiment of the present application, the target second field also includes a second amount, which includes:

[0031] Determine the adjusted second unit price field value of the target second record as the first unit price field value of the target first record;

[0032] If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price;

[0033] If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0034] A first implementation of the second aspect of the embodiments of the present application provides a device for adjusting material detail data, including:

[0035] an acquisition unit, configured to acquire a first material list and a record grouping condition, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one of the first fields;

[0036] a merging unit, configured to merge first records satisfying the record grouping condition among the plurality of first records to generate a second record in a second detailed list, wherein the second detailed list includes a plurality of second fields;

[0037] A first adjustment unit, configured to adjust a field value of a target second field of a target second record, wherein the target second record is any one of the plurality of second records, and the target second field is any one or more of the plurality of second fields;

[0038] a determining unit, configured to determine at least one target first record for merging to obtain the target second record from among the plurality of first records, and to determine a target first field associated with the target second field from among the plurality of first fields;

[0039] a calculation unit, configured to calculate a target field value of the target first field of the target first record according to the adjusted field value;

[0040] The second adjustment unit is used to adjust the field value of the target first field of the target first record in the first material details table to the target field value.

[0041] In combination with the first implementation of the second aspect of the embodiments of the present application, in the second implementation of the second aspect of the embodiments of the present application, the merging unit includes:

[0042] An acquisition subunit, configured to acquire a field value of a first field associated with the record grouping condition of the plurality of first records;

[0043] A first determining subunit, configured to determine a plurality of target first records having the same field value among the plurality of first records;

[0044] A merging subunit is used to merge the multiple target first records to generate a second record in the second detailed list.

[0045] In combination with the second implementation of the second aspect of the embodiments of the present application, the third implementation of the second aspect of the embodiments of the present application, the merging subunit includes:

[0046] A calculation module, used for summarizing the field values ​​of at least one first field associated with a preset aggregation rule in the plurality of target first records to obtain a summary field value;

[0047] An acquisition module, configured to acquire field values ​​of other first fields except the at least one first field in the plurality of target first records;

[0048] The filling module is used to fill the summary field value and the field value of the other first fields into the second detailed list to generate a second record in the second detailed list.

[0049] In combination with the first implementation of the second aspect of the embodiments of the present application, in the fourth implementation of the second aspect of the embodiments of the present application, the target first field includes a first unit price and a first amount, the target second field includes a second amount, the second field includes a second unit price, and the calculation unit includes:

[0050] A first calculation subunit, configured to calculate a field value of the second unit price of the target second record according to a field value of the adjusted second amount of the target second record;

[0051] a second determining subunit, configured to determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0052] A second calculation subunit is used to calculate the field value of the first amount of the target first record according to the field value of the first unit price if the target first record is not a tail difference bearing record;

[0053] The third calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0054] In combination with the first implementation of the second aspect of the embodiments of the present application, in the fifth implementation of the second aspect of the embodiments of the present application, the target first field includes a first unit price and a first amount, the target second field includes a second unit price, and the second field includes a second amount, and the calculation unit includes:

[0055] a fourth calculation subunit, configured to calculate a field value of the second amount of the target second record according to the field value of the adjusted second unit price of the target second record;

[0056] a third determining subunit, configured to determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0057] a fifth calculation subunit, configured to calculate a field value of a first amount of the target first record according to a field value of the first unit price if the target first record is a non-tail difference bearing record;

[0058] The sixth calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0059] In combination with the fifth implementation of the second aspect of the embodiment of the present application, the sixth implementation of the second aspect of the embodiment of the present application, the computing unit includes

[0060] a fourth determining subunit, configured to determine the adjusted second unit price field value of the target second record as the first unit price field value of the target first record;

[0061] a seventh calculation subunit, configured to calculate a field value of a first amount of the target first record according to a field value of the first unit price if the target first record is a non-tail difference bearing record;

[0062] The eighth calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0063] According to a third aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a program is stored. When the computer executes the program, any one of the implementation methods described in the first aspect is executed.

[0064] According to a fourth aspect of the present application, a computer device is provided, including:

[0065] CPU and memory;

[0066] The central processing unit is configured to communicate with the memory and execute instruction operations in the memory on a computer device to perform any implementation method described in the first aspect.

[0067] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0068] In the technical scheme, a first material list including a plurality of first records and a plurality of first fields and a record grouping condition are obtained; first records satisfying the record grouping condition in the plurality of first records are merged to generate a second record in the second list; the field value of the target second field of the target second record is adjusted; at least one target first record for merging to obtain the target second record is determined in the plurality of first records, and a target first field associated with the target second field is determined in the plurality of first fields; the target field value of the target first field of the target first record is calculated according to the adjusted field value; and the field value of the target first field of the target first record in the first material list is adjusted to the target field value. Compared with the prior art, the technical scheme is based on adjusting the field value of the target second field of the target second record, calculating the target field value of the target first field of the target first record according to the adjusted field value, and adjusting the field value of the target first field of the target first record to the target field value, and because the target second record is obtained by merging at least one target first record, it is possible to batch process data of different batches of the same material, reduce the processing volume during the operation, and reduce the possibility of errors caused by manual one-by-one processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Figure 1 A schematic diagram of a flow chart of a method for adjusting material detail data in an embodiment of the present application;

[0070] Figure 2 This is another flow chart of the method for adjusting material detail data in the embodiment of the present application;

[0071] Figure 3 This is another flow chart of the method for adjusting material detail data in the embodiment of the present application;

[0072] Figure 4 This is another flow chart of the method for adjusting material detail data in the embodiment of the present application;

[0073] Figure 5 This is another flow chart of the method for adjusting material detail data in the embodiment of the present application;

[0074] Figure 6 A structural diagram of the adjustment device in the embodiment of the present application;

[0075] Figure 7 It is a structural schematic diagram of a computer device in an embodiment of the present application. DETAILED DESCRIPTION

[0076] The embodiment of the present application provides a material detail data adjustment method and related equipment for simplifying operation and improving accuracy.

[0077] In the prior art, when financial workers allocate and process the detailed data of different batches of the same material, they first need to manually summarize the financial data of different batches of the same material, for example, summarize the detailed data of different batches of the same material into one detailed data, and then manually allocate and calculate the detailed data corresponding to each batch of the same material based on the summarized financial data, for example, by adjusting the summarized detailed data to re-determine part of the detailed data corresponding to each batch of the same material, and finally manually adjust the detailed data of each batch of the material in the material detail table one by one to obtain the allocated detailed data. This embodiment adjusts the target second record in the second detail table formed by merging the first record of the first material detail table through the record grouping condition, thereby achieving the adjustment of the target first record associated with the target second record in the first material detail table.

[0078] Based on the above, please refer to Figure 1 The present application embodiment is an embodiment of a method for adjusting material detail data, including:

[0079] 101. Obtain a first material list and a record grouping condition, wherein the first material list includes multiple first records and multiple first fields, and the record grouping condition includes at least one of the first fields.

[0080] A first material list and a record grouping condition are obtained, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one first field.

[0081] It should be noted that at least one first field of the record grouping condition is composed of multiple first fields of the first material list.

[0082] Exemplarily, the multiple first fields of the first material list may be materials, specifications, auxiliary attributes, units of measurement, quantity, unit price and amount, etc., and the multiple first records of the first material list may be multiple first records formed by the corresponding materials, specifications, auxiliary attributes, units of measurement, quantity, unit price and amount of sweaters from different batches, shirts from the same batch and jackets from the same batch. Among them, the first record of each day can be determined according to the same batch of the same material. For example, taking sweater material as the description object, since there are multiple batches of sweaters, the sweaters form corresponding first records according to the same batch. Therefore, for sweaters of the same material but different batches, there are multiple first records.

[0083] 102. Merge first records that meet the record grouping condition among the multiple first records to generate second records in a second detailed list, where the second detailed list includes multiple second fields.

[0084] A plurality of first records satisfying the record grouping condition are determined from all the first records in the first material list, and the plurality of first records are merged to obtain a second list, wherein the second list contains a plurality of second records and a plurality of second fields, and each second record of the second list is composed of at least one first record of the first material list.

[0085] Exemplarily, the example of step 101 is also used as a description object. After the record grouping condition is determined, at least one first record group of the record grouping condition is determined based on the record grouping condition. Each first record group has the same record grouping condition. If there are multiple first records in the first record group, the multiple first records are merged into one record, that is, the second record. If there is one first record in the first record group, the first record is determined as the second record, thereby converting the first material list formed by multiple first records into a second list formed by multiple second records, wherein each second record also corresponds to second fields such as material, specification model, auxiliary attributes, unit of measurement, quantity, unit price and amount.

[0086] 103. Adjust a field value of a target second field of a target second record, where the target second record is any one of the multiple second records, and the target second field is any one or more of the multiple second fields.

[0087] A target second record is selected from the second records in the second detailed table, and the field value of the target second field of the target second record is adjusted, or, based on the second detailed table, the field value of the second field of the second record in the second detailed table is adjusted, the second field corresponding to the adjusted field value is also the target second field, and the second record corresponding to the adjusted field value is also the target second record, wherein the target second record is any one of all the second records in the second detailed table, and the target second field is any one or more of all the second fields of the target second record. It can be seen that there can be multiple target second records and multiple target second fields.

[0088] 104. Determine at least one target first record from among the multiple first records for merging to obtain the target second record, and determine a target first field associated with the target second field from among the multiple first fields.

[0089] Since the second record in the second detail list is obtained by merging at least one first record in the first material detail list according to the record grouping condition, after the target second record is determined, there is at least one corresponding target first record for the target second record, and the target first field associated with the target second field is determined among the multiple first fields of each target first record corresponding to the target second record in the first material detail list.

[0090] 105. Calculate a target field value of the target first field of the target first record according to the adjusted field value.

[0091] Calculate a target field value of a target first field of a target first record according to the adjusted field value.

[0092] 106. Adjust the field value of the target first field of the target first record in the first material details table to the target field value.

[0093] Adjust the field value of the target first field of the target first record in the first material details table to the target field value.

[0094] In the embodiment of the present application, based on adjusting the field value of the target second field of the target second record and calculating the target field value of the target first field of the target first record based on the adjusted field value, and adjusting the field value of the target first field of the target first record to the target field value, and because the target second record is obtained by merging at least one target first record, the embodiment of the present application can batch process data of different batches of the same material, reduce the amount of operations generated by manual processing one by one, and also reduce the possibility of errors caused by manual processing one by one.

[0095] based on Figure 1 , see Figure 2 The embodiment of the present application further describes step 102, including:

[0096] 201. Obtain a field value of a first field associated with the record grouping condition of the plurality of first records.

[0097] After obtaining at least one first field of the record grouping condition, the field value under the first field associated with the record grouping condition is obtained from all first records in the first material detail table, wherein the first field associated with the record grouping condition can be at least one first field.

[0098] 202. Determine a plurality of target first records having the same field value from the plurality of first records.

[0099] A plurality of target first records are determined from all first records in the first material detail table, and the field value of at least one first field of the record grouping condition for each of the plurality of target first records is the same field value. In other words, all first records in the first material detail table can be divided according to the field value of at least one first field of the record grouping condition, and those with the same field value can be divided into the same group, that is, the field value of each first field of the record grouping condition for the plurality of first records in the same group is the same.

[0100] Exemplarily, if the record grouping condition is the first field of the material, specification model and auxiliary attribute, and the multiple first records of the first field associated with the record grouping condition are the first record A and the first record B from different batches whose material is a sweater, whose specification model is short and whose auxiliary attribute is red, the first record C from the same batch whose material is a sweater, whose specification model is short and whose auxiliary attribute is blue, the first record D, the first record E and the first record F from different batches whose material is a sweater, whose specification model is long and whose auxiliary attribute is blue, then the multiple target first records with the same field values ​​determined by the multiple first records are three groups, one group is the multiple target first records from different batches whose material is a sweater, whose specification model is short and whose auxiliary attribute is red, namely, the first record A and the first record B; one group is the target first record whose material is a sweater, whose specification model is short and whose auxiliary attribute is blue, namely, the first record C; one group is the multiple target first records from different batches whose material is a sweater, whose specification model is long and whose auxiliary attribute is blue, namely, the first record D, the first record E and the first record F.

[0101] 203. Merge the multiple target first records to generate a second record in the second detailed list.

[0102] After determining multiple target first records, merge the multiple target first records to generate the second record in the second detailed list. It can be seen that the second records in the second detailed list are different, each second record has and corresponds to at least one first record in the first material detailed list, different second records have at least one first record that uniquely corresponds to them, and different second records do not have the same first record.

[0103] It should be noted that for materials of the same batch, during the merging process, for example, the first record C in step 202, there is no need to merge because the first record of other batches does not exist under the premise of the record grouping condition.

[0104] based on Figure 2 , see Figure 3 The embodiment of the present application further describes step 203, including:

[0105] 301. Aggregate the field values ​​of at least one first field associated with a preset aggregation rule in the plurality of target first records to obtain an aggregated field value.

[0106] At least one first field associated with a preset aggregation rule is determined in at least one target first record, thereby determining the field value of the at least one first field. Since there is at least one target first record, when there are multiple target first records, the field values ​​of the first field under the multiple target first records are aggregated, thereby obtaining the aggregated field values ​​of the multiple target first records under the first field. When there is one target first record, the preset aggregation rule includes a first field for aggregation operation and an aggregation operation, and the number of the first field is at least one, which is not specifically limited here.

[0107] Exemplarily, for the first records of the three targets, the preset aggregation rules include the first fields of quantity and amount, and the first fields of quantity and amount also exist in the first records of the three targets. The field values ​​of the first field of quantity in the first records of the three targets are 5, 50 and 20 respectively, and the field values ​​of the first field of amount in the first records of the three targets are 50, 3300 and 1500 respectively. Then, the aggregation field value of the first field of quantity in the first records of the three targets is 75, and the aggregation field value of the first field of amount in the first records of the three targets is 4850.

[0108] 302. Obtain field values ​​of other first fields except the at least one first field in the multiple target first records.

[0109] Determine other first fields excluding at least one first field of the record grouping condition in multiple target first records, and then obtain field values ​​of the other first fields from the multiple target first records, wherein the obtained field value of the other first field can be the field value under the other first field of one target first record in the multiple target first records in the same group determined by the record grouping condition.

[0110] Exemplarily, also taking the example of step 301 as the description object, the three target first records include not only the first fields of sorting and amount, but also the first fields of material, specification model, auxiliary attributes, tax rate and discount. Therefore, the field values ​​under the first fields of material, specification model, auxiliary attributes, tax rate and discount of one of the three target first records can be obtained.

[0111] 303. Fill the summary field value and the field values ​​of the other first fields into a second detailed table to generate a second record in the second detailed table.

[0112] After the summary field value and the field values ​​of other first fields are determined, the summary field value and the field values ​​of other first fields are filled into the second detailed table, and finally the second record in the second detailed table is generated.

[0113] based on Figure 1 , see Figure 4 This embodiment describes the change of the target first record associated with the target second record after the user adjusts the field value of the target second field of the target second record, including:

[0114] It should be noted that the first field of the target includes the first unit price and the first amount, the first unit price and the first amount correspond to the first record, the second field of the target includes the second amount, the second amount corresponds to the second record, and the first field of the target and the second field of the target are related to each other, specifically the two are related through the second unit price of the second field.

[0115] 401. Calculate the field value of the second unit price of the target second record according to the field value of the adjusted second amount of the target second record.

[0116] After the user adjusts the field value of the second amount of the target second record, the field value of the second unit price of the target second record is calculated.

[0117] Exemplarily, after determining the second detailed list, each second record in the second detailed list has a unit price field, an amount field, a quantity field, and field values ​​for the three fields. After the user adjusts the field value under the amount field of the second record, the field value of the unit price field is re-determined based on the field value of the quantity field and the adjusted field value of the amount field.

[0118] 402. Determine the field value of the second unit price as the field value of the first unit price of the target first record.

[0119] Since the target second record corresponding to the field value of the second unit price is determined by the corresponding at least one first record, the corresponding at least one first record is also the target first record. Therefore, after the field value of the second unit price is determined, the field value of the first unit price of the target first record is replaced by the field value of the second unit price.

[0120] 403. If the target first record is not a tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price.

[0121] After determining the field value of the first unit price of the target first record, if the target first record is determined to be a non-tail difference undertaking record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price of the target first record. The target first record includes multiple target first records, one type is a non-tail difference undertaking record, and the other type is a paddock undertaking record, among which there is at least one target first record that is a non-tail difference undertaking record.

[0122] 404. If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0123] After determining the field value of the first unit price of the target first record, the target first record is determined to be a tail difference bearing record, and the field value of the first amount of the target first record of the tail difference bearing record is calculated based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0124] Exemplarily, taking the example of step 302 as a description object, after the user adjusts the field value of the second amount of the target second record corresponding to the three target first records, the field value of the second unit price of the target second record is automatically updated, and the updated result replaces the field value of the first unit price of the three target first records, and then the field value of the first amount in the three target first records is updated, wherein the field value of the first amount of the two target first records that are not the tail difference bearing records among the three target first records is determined by the updated field value of the first unit price and the field value of the first quantity corresponding to each other, and the tail difference bearing records among the three target first records are determined by subtracting the adjusted field value of the second amount of the target second record from the first amount of the two target first records.

[0125] based on Figure 1 , see Figure 5 This embodiment also describes the change of the target first record associated with the target second record after the user adjusts the field value of the target second field of the target second record. In this embodiment, the user adjusts the second unit price and the second amount of the target second record, thereby causing the change of the target first record associated with the target second record, including:

[0126] It should be noted that the first field of the target includes the first unit price and the first amount, the first field of the target corresponds to the first record, and the second field includes the second amount.

[0127] 501. Determine the field value of the adjusted second unit price of the target second record as the field value of the first unit price of the target first record.

[0128] After the user adjusts the field value of the second unit price of the target second record, the field value of the first unit price of the target first record associated with the target second record is replaced by the adjusted field value of the second unit price.

[0129] 502. If the target first record is not a tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price.

[0130] This step is similar to step 403 and is not specifically limited here.

[0131] 503. If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

[0132] This step is similar to step 404 and will not be described in detail here.

[0133] It should be noted that, in this embodiment, the user may also only adjust the field value of the second unit price of the target second record, thereby calculating the field value of the second amount of the target second record based on the adjusted field value of the second unit price, and the determination of the field values ​​of the first unit price and the first amount of the target first record of the non-tail difference bearing record associated with the target second record does not need to be changed, and the field value of the first unit price of the target first record of the tail difference bearing record associated with the target second record also does not need to be changed. However, the field value of the first amount of the target first record of the tail difference bearing record associated with the target second record needs to be calculated based on the field value of the second amount of the target second record adjusted by the user and the field value of the first amount of the non-tail difference bearing record.

[0134] It should be noted that Figure 4 and Figure 5 The embodiment may also involve a situation where a tax rate is included, thereby deriving a situation where a tax-inclusive unit price and a tax-inclusive amount are derived. For this situation, the target second record, the second field of the target second record, the target first record corresponding to the target second record, and the first field of the target first record are in accordance with Figure 4 and Figure 5 The content of the code is changed accordingly, specifically, the first unit price is changed to the first tax-inclusive unit price, the first amount is changed to the first tax-inclusive amount, the second amount is changed to the second tax-inclusive amount, and the rest are similar. Figure 4 and Figure 5 .

[0135] See also Figure 6 This embodiment provides a structural diagram of an adjustment device, including:

[0136] An acquisition unit 601 is configured to acquire a first material list and a record grouping condition, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one of the first fields;

[0137] A merging unit 602, configured to merge first records that meet the record grouping condition among the plurality of first records to generate a second record in a second detailed list, wherein the second detailed list includes a plurality of second fields;

[0138] A first adjustment unit 603, configured to adjust a field value of a target second field of a target second record, wherein the target second record is any one of the plurality of second records, and the target second field is any one or more of the plurality of second fields;

[0139] A determining unit 604 is configured to determine at least one target first record for merging to obtain the target second record from among the plurality of first records, and to determine a target first field associated with the target second field from among the plurality of first fields;

[0140] A calculation unit 605, configured to calculate a target field value of the target first field of the target first record according to the adjusted field value;

[0141] The second adjustment unit 606 is used to adjust the field value of the target first field of the target first record in the first material details table to the target field value.

[0142] In one implementation, the merging unit 602 includes:

[0143] An acquisition subunit, configured to acquire a field value of a first field associated with the record grouping condition of the plurality of first records;

[0144] A first determining subunit, configured to determine a plurality of target first records having the same field value among the plurality of first records;

[0145] A merging subunit is used to merge the multiple target first records to generate a second record in the second detailed list.

[0146] In one implementation, the merging subunit includes:

[0147] A calculation module, used for performing a summary operation on the field values ​​of at least one first field associated with a preset summary rule in the plurality of target first records to obtain a summary field value;

[0148] An acquisition module, configured to acquire field values ​​of other first fields except the at least one first field in the plurality of target first records;

[0149] The filling module is used to fill the summary field value and the field value of the other first fields into the second detailed list to generate a second record in the second detailed list.

[0150] In one implementation, the target first field includes a first unit price and a first amount, the target second field includes a second amount, and the second field includes a second unit price, and the calculation unit 605 includes:

[0151] A first calculation subunit, configured to calculate a field value of the second unit price of the target second record according to a field value of the adjusted second amount of the target second record;

[0152] a second determining subunit, configured to determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0153] A second calculation subunit is used to calculate the field value of the first amount of the target first record according to the field value of the first unit price if the target first record is not a tail difference bearing record;

[0154] The third calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0155] In one implementation, the target first field includes a first unit price and a first amount, the target second field includes a second unit price, and the second field includes a second amount, and the calculation unit 605 includes:

[0156] a fourth calculation subunit, configured to calculate a field value of the second amount of the target second record according to the field value of the adjusted second unit price of the target second record;

[0157] a third determining subunit, configured to determine the field value of the second unit price as the field value of the first unit price of the target first record;

[0158] a fifth calculation subunit, configured to calculate a field value of a first amount of the target first record according to a field value of the first unit price if the target first record is a non-tail difference bearing record;

[0159] The sixth calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0160] In one implementation, the computing unit 605 includes

[0161] a fourth determining subunit, configured to determine the adjusted second unit price field value of the target second record as the first unit price field value of the target first record;

[0162] a seventh calculation subunit, configured to calculate a field value of a first amount of the target first record according to a field value of the first unit price if the target first record is a non-tail difference bearing record;

[0163] The eighth calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

[0164] Figure 7 It is a structural diagram of a computer device provided in an embodiment of the present application. The computer device 701 may include one or more central processing units (CPU) 702 and a memory 706. The memory 706 stores one or more application programs or data.

[0165] The memory 706 may be a volatile storage or a persistent storage. The program stored in the memory 706 may include one or more modules, each of which may include a series of instruction operations in the computer device. Furthermore, the central processing unit 702 may be configured to communicate with the memory 706 and execute a series of instruction operations in the memory 706 on the computer device 701.

[0166] The computer device 701 may also include one or more power supplies 703, one or more wired or wireless network interfaces 704, one or more input and output interfaces 705, and / or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0167] It should be noted that the computer device 701 may not necessarily include one or more power supplies 703 , one or more wired or wireless network interfaces 704 , one or more input / output interfaces 705 , and / or one or more operating systems.

[0168] The computer device 701 can execute the aforementioned Figures 1 to 4 The operations in any of the embodiments shown in the figures will not be described in detail here.

[0169] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0170] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0171] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0172] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0173] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for adjusting material detail data, characterized in that: include: Acquire a first material list and a record grouping condition, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one of the first fields; Merging first records that meet the record grouping condition among the plurality of first records to generate second records in a second detailed list, wherein the second detailed list includes a plurality of second fields; The step of merging the first records that meet the record grouping condition in the plurality of first records to generate the second record in the second detailed list includes: Obtaining a field value of a first field associated with the record grouping condition of the plurality of first records; Determining a plurality of target first records having the same field value among the plurality of first records; Merging the plurality of target first records to generate a second record in the second detailed list; Adjusting a field value of a target second field of a target second record, wherein the target second record is any one of the plurality of second records, and the target second field is any one or more of the plurality of second fields; Determine at least one target first record for merging to obtain the target second record from among the plurality of first records, and determine a target first field associated with the target second field from among the plurality of first fields; Calculate a target field value of the target first field of the target first record according to the adjusted field value; The field value of the target first field of the target first record in the first material details table is adjusted to the target field value.

2. The material detail data adjustment method according to claim 1, characterized in that: The merging of the plurality of target first records comprises: Aggregate the field values ​​of at least one first field associated with the preset aggregation rule in the plurality of target first records to obtain an aggregated field value; Acquire field values ​​of other first fields except the at least one first field in the plurality of target first records; Fill the summary field value and the field values ​​of the other first fields into the second detailed table to generate a second record in the second detailed table.

3. The material detail data adjustment method according to claim 1, characterized in that: The target first field includes a first unit price and a first amount, the target second field includes a second amount, and the second field includes a second unit price, then calculating the target field value of the target first field of the target first record according to the adjusted field value includes: Calculating the field value of the second unit price of the target second record according to the field value of the adjusted second amount of the target second record; Determine the field value of the second unit price as the field value of the first unit price of the target first record; If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price; If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

4. The material detail data adjustment method according to claim 1, characterized in that: The target first field includes a first unit price and a first amount, the target second field includes a second unit price, and the second field includes a second amount, then calculating the target field value of the target first field of the target first record according to the adjusted field value includes: Calculating the field value of the second amount of the target second record according to the field value of the adjusted second unit price of the target second record; Determine the field value of the second unit price as the field value of the first unit price of the target first record; If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price; If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

5. The material detail data adjustment method according to claim 4, characterized in that: The target second field also includes a second amount, and the step of calculating the target field value of the target first field of the target first record according to the adjusted field value includes: Determine the adjusted second unit price field value of the target second record as the first unit price field value of the target first record; If the target first record is a non-tail difference bearing record, the field value of the first amount of the target first record is calculated according to the field value of the first unit price; If the target first record is a tail difference bearing record, the field value of the first amount of the target first record is calculated based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record.

6. An adjustment device, characterized in that: include: an acquisition unit, configured to acquire a first material list and a record grouping condition, wherein the first material list includes a plurality of first records and a plurality of first fields, and the record grouping condition includes at least one of the first fields; a merging unit, configured to merge first records satisfying the record grouping condition among the plurality of first records to generate a second record in a second detailed list, wherein the second detailed list includes a plurality of second fields; The merging unit is specifically configured to obtain a field value of a first field associated with the record grouping condition of the plurality of first records; determine a plurality of target first records having the same field value in the plurality of first records; and merge the plurality of target first records to generate a second record in the second detailed list; A first adjustment unit, configured to adjust a field value of a target second field of a target second record, wherein the target second record is any one of the plurality of second records, and the target second field is any one or more of the plurality of second fields; a determining unit, configured to determine at least one target first record for merging to obtain the target second record from among the plurality of first records, and to determine a target first field associated with the target second field from among the plurality of first fields; a calculation unit, configured to calculate a target field value of the target first field of the target first record according to the adjusted field value; The second adjustment unit is used to adjust the field value of the target first field of the target first record in the first material details table to the target field value.

7. An adjustment device according to claim 6, characterized in that: The target first field includes a first unit price and a first amount, the target second field includes a second unit price, and the second field includes a second amount, and the calculation unit includes: A first calculation subunit, configured to calculate a field value of the second unit price of the target second record according to a field value of the adjusted second amount of the target second record; a second determining subunit, configured to determine the field value of the second unit price as the field value of the first unit price of the target first record; A second calculation subunit is used to calculate the field value of the first amount of the target first record according to the field value of the first unit price if the target first record is not a tail difference bearing record; The third calculation subunit is used to calculate the field value of the first amount of the target first record based on the field value of the adjusted second amount of the target second record and the field value of the first amount of the non-tail difference bearing record if the target first record is a tail difference bearing record.

8. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a computer, the computer is enabled to execute the method according to any one of claims 1 to 5.

9. A computer device, characterized in that: include: CPU and memory; The central processing unit is configured to communicate with the memory, and to call instructions in the memory on the computer device to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Data compression method and device for goods source data, computer equipment and storage medium

    CN110765131A