Commodity cost accounting method, device, storage medium and system
By determining the material function condition group and matching objective function in the commodity cost accounting method, distinguishing basic items and dependencies, automatic accounting of commodity costs is realized, solving the problems of low cost accounting accuracy and efficiency in the existing technology, and improving Data sharing and consistency.
Patent Information
- Application Number
- CN202411004996.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-09-17
AI Technical Summary
The accuracy and efficiency of commodity cost accounting in the existing technology are poor, mainly because Excel files are difficult to share and the built-in functions may be incompatible on different computers, resulting in functions being out of sync or being updated late.
Provide a commodity cost accounting method that determines the material function condition group in the commodity project, obtains basic material information and matches the objective function, distinguishes basic items and dependencies, and uses the data values of the objective function and basic items to perform automated accounting to determine Materials and total costs. This method realizes sharing through preset function condition groups, improves the efficiency and flexibility of cost accounting, and reduces manual errors.
It improves the accuracy and efficiency of cost accounting, reduces the probability of accounting errors, enhances the automated processing capabilities of cost accounting, and ensures the data consistency and accuracy of multiple clients.
Smart Images

Figure CN118657572A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a commodity cost accounting method, device, storage medium and system. Background Art
[0002] In the production and operation management of an enterprise, commodity cost calculation is a crucial link. It calculates the cost of the final product by summarizing and allocating the various expenses involved in the production process. The cost of each commodity is composed of multiple components, such as main raw materials, auxiliary materials, process energy consumption, packaging materials, transportation costs, and special expenses. The calculation formulas for these cost items vary depending on the specific situation, which makes traditional offline calculations complicated and error-prone, requiring manual repeated verification.
[0003] In traditional business scenarios, purchasers usually rely on Excel to calculate commodity costs. However, since Excel files are difficult to share, this may lead to multiple results in subsequent cost accounting. In addition, since Excel built-in functions may be incompatible on different computers, this may lead to problems with function asynchrony or untimely updates. Therefore, the accuracy and efficiency of existing commodity cost accounting are poor. Summary of the invention
[0004] The purpose of this application is to solve at least one of the above-mentioned technical defects, especially the technical defects of poor accuracy and efficiency of commodity cost accounting in the prior art.
[0005] In a first aspect, the present application provides a commodity cost accounting method, the method comprising:
[0006] Determine a commodity item, and obtain a function condition group corresponding to each material in the commodity item; wherein the function condition group includes a plurality of functions;
[0007] Obtaining basic information corresponding to each material in the commodity item, and matching the target function in the corresponding function condition group according to the basic information of each material;
[0008] Determine the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material, and determine the data value of the basic item corresponding to each material according to the basic information of each material;
[0009] Using the objective function corresponding to each material and the data value of the basic item, the data value of the dependent item of each material is calculated to determine the cost corresponding to each material;
[0010] Based on the cost corresponding to each material, determine the total cost of the merchandise item.
[0011] In one embodiment, the step of determining the basic items and dependent items of each material in the corresponding objective function according to the basic information of each material includes:
[0012] Perform field extraction on the objective function of each material respectively to determine multiple fields corresponding to the objective function of each material;
[0013] For each material of the commodity item, query each field corresponding to the objective function of the material in the basic information of the material;
[0014] The fields existing in the basic information of the material are determined as basic items, and the fields corresponding to the objective function of the material except the fields corresponding to the basic items are determined as dependent items.
[0015] In one embodiment, the step of calculating the data value of the dependent item of each material by using the objective function corresponding to each material and the data value of the basic item includes:
[0016] Store the data values of the basic items of each material into the preset accounting database;
[0017] Based on the accounting database, determining target dependencies in the dependencies of each material respectively; wherein the target dependencies refer to dependencies whose data values are determined based on the current accounting database;
[0018] According to the calculation database, the target dependency of each material is calculated to determine the data value of the target dependency of each material;
[0019] The data values of the target dependencies of each material are stored in the accounting database, and the step of determining the target dependencies in the dependencies of each material based on the accounting database is returned to continue execution until the dependencies of each material have been calculated.
[0020] In one embodiment, the step of matching the target function in the corresponding function condition group according to the basic information of each material includes:
[0021] Determine the condition field of the function condition group corresponding to each material;
[0022] The data value corresponding to the condition field of the function condition group of each material is determined according to the basic information of each material, so as to determine the target function corresponding to each material in the function condition group of each material.
[0023] In one embodiment, the step of determining the cost corresponding to each material includes:
[0024] For each material of the commodity item, determine the cost summary item of each subclass corresponding to the material in the dependencies of the material;
[0025] The data value of the cost summary item of each subclass corresponding to the material is obtained, and the sum of the data values of the cost summary item of each subclass corresponding to the material is determined as the cost corresponding to the material.
[0026] In one embodiment, the step of obtaining the function condition group corresponding to each material in the commodity item includes:
[0027] Obtain the identification number of each material in the commodity item;
[0028] For each material of the commodity item, a function matching the identification number of the material is determined in a preset function library, and a function condition group corresponding to the material is formed according to the determined function.
[0029] In one embodiment, the method further comprises:
[0030] When an update instruction is received, the update information and update type in the update instruction are obtained; wherein the update type includes addition, deletion and modification;
[0031] The function library is updated according to the update information and the update type.
[0032] In a second aspect, the present application provides a commodity cost accounting device, the device comprising:
[0033] The project determination module is used to determine the commodity project and obtain the function condition group corresponding to each material in the commodity project; wherein the function condition group includes multiple functions;
[0034] A function matching module is used to obtain basic information corresponding to each material in the commodity item, and match the target function in the corresponding function condition group according to the basic information of each material;
[0035] A data value determination module is used to determine the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material, and determine the data value of the basic item corresponding to each material according to the basic information of each material;
[0036] The cost accounting module is used to calculate the data value of the dependent items of each material by using the objective function corresponding to each material and the data value of the basic item to determine the cost corresponding to each material;
[0037] The total cost determination module is used to determine the total cost of the commodity item according to the cost corresponding to each material.
[0038] In a third aspect, the present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the commodity cost accounting method described in any of the above embodiments.
[0039] In a fourth aspect, the present application provides a commodity cost accounting system, comprising: one or more processors, and a memory;
[0040] The memory stores computer-readable instructions, and when the one or more processors execute the computer-readable instructions, the steps of the commodity cost accounting method described in any one of the above embodiments are performed.
[0041] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0042] The commodity cost accounting method, device, storage medium and system provided by the present application include: obtaining a function condition group corresponding to each material in the commodity project, and obtaining basic information corresponding to each material in the commodity project, and then matching the target function in the corresponding function condition group according to the basic information of each material. Through the pre-set function condition group, the corresponding target function can be flexibly determined according to the basic information of the material, and the function condition group of the same material is shared, so that multiple clients can obtain and use it to improve the efficiency and flexibility of cost accounting. Then, the basic items and dependent items of each material are distinguished, and the data values of the basic items corresponding to each material are determined according to the basic information of each material; finally, the data values of the dependent items of each material are calculated using the target function corresponding to each material and the data values of the basic items, so as to determine the cost corresponding to each material, thereby determining the total cost of the commodity project. By distinguishing the basic items and dependent items and using automated processing, the probability of accounting errors can be reduced, and labor costs can be reduced to improve the accuracy and efficiency of cost accounting. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0044] Figure 1 A flowchart of a commodity cost accounting method provided in an embodiment of the present application;
[0045] Figure 2A flowchart of the steps of determining the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of the steps of calculating the data value of the dependent item of each material by using the objective function corresponding to each material and the data value of the basic item provided in the embodiment of the present application;
[0047] Figure 4 A schematic diagram of the structure of a commodity cost accounting device provided in an embodiment of the present application;
[0048] Figure 5 An internal structure diagram of a commodity cost accounting system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] In one embodiment, the present application provides a commodity cost accounting method, and the following embodiment is described by applying the method to a server of a commodity cost accounting system. It can be understood that the commodity cost accounting method can be executed by a single server or a server cluster composed of multiple servers, and the present application does not make specific restrictions on this.
[0051] Specifically, the commodity cost accounting system is a software application system used to calculate and manage commodity costs. A series of function condition groups can be pre-set in the commodity cost accounting system. When the basic information of various materials is input or imported, the commodity cost accounting system can calculate the costs of various materials based on this basic information and in combination with the preset function condition groups.
[0052] like Figure 1 As shown, the present application provides a commodity cost accounting method, the method comprising:
[0053] Step S101: determine a commodity item, and obtain a function condition group corresponding to each material in the commodity item.
[0054] Among them, the function condition group includes multiple functions. The function condition group refers to a collection of function formulas used to calculate the cost of materials. Materials refer to the materials or production capacity consumed when manufacturing goods. For example: packaging materials, process capacity, etc. Commodity items refer to the cost items of the commodities to be costed.
[0055] In this step, the user can determine the commodity item by selection or input through the client of the commodity cost accounting system, and then the server will obtain the function condition group corresponding to each material in the commodity item.
[0056] Furthermore, each function in the function condition group is distinguished by a condition field. For example, for the material packaging material, when the packaging method is a middle bag or an inner bag, the corresponding function is function formula A, and when the packaging method is a carton, the corresponding function is function formula B.
[0057] Step S102: Obtain basic information corresponding to each material in the commodity item, and match the target function in the corresponding function condition group according to the basic information of each material.
[0058] Among them, basic information refers to parameter information used to calculate material costs, including but not limited to packaging method, length, width, height, material, thickness, weight, specifications, unit price, etc.
[0059] In this step, when determining the commodity item, the user can input or batch import the basic information of each material in the commodity item. When the server obtains the basic information of each material, it will match the target function in the function condition group of the corresponding material according to the basic information of each material.
[0060] It is understandable that the basic information corresponding to each material includes at least one data record, and each data record represents a classification of the corresponding material. For example, for the material of packaging material, its basic information X may include data record 1 (packaging method is small package, length, width, height, material, thickness, gram weight, specification, unit price of packaging material), data record 2 (packaging method is carton, length, width, height, material, thickness, gram weight, specification, unit price of packaging material), data record 1 can match function formula A in the example in step S101, and data record 2 can match function formula B in the example in step S101. Therefore, the target functions matched according to the basic information X are function formula A and function formula B.
[0061] Step S103: determining the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material, and determining the data value of the basic item corresponding to each material according to the basic information of each material.
[0062] Among them, the basic term refers to the term whose data value can be directly determined based on the basic information of the material in the objective function. The dependent term refers to the term whose data value cannot be directly determined based on the basic information of the material in the objective function.
[0063] In this step, the basic items and dependent items of each material are determined in the objective function of each material according to its corresponding basic information. Then, the data value of the basic item of each material can be directly determined according to the basic information of each material.
[0064] For example, assuming that the material is packaging material, the packaging method, length, width, height, material, thickness, weight, specification, and unit price can be determined based on the basic information and are basic items, while the packaging material cost cannot be directly determined based on the basic information. Therefore, the packaging material cost is a dependent item. It can be understood that a dependent item refers to an item that needs to be calculated based on the basic item or the basic item of other materials or the dependent item of other materials.
[0065] Step S104: using the objective function corresponding to each material and the data value of the basic item, the data value of the dependent item of each material is calculated to determine the cost corresponding to each material.
[0066] The cost of each material refers to the sum of the costs represented by each data record in the basic information of the material.
[0067] It is understandable that the dependency includes the cost summary item. When the data value of the cost summary item of each data record in the basic information of the material is summed up, the cost corresponding to each material can be determined.
[0068] In this step, when determining the data value of the basic item of each material, the dependent items of each material can be calculated in combination with the objective function corresponding to each material, and then the data value of the summary cost item of each data record corresponding to the basic information of each material can be determined, and finally the cost corresponding to each material can be determined.
[0069] Step S105: Determine the total cost of the merchandise item based on the cost corresponding to each material.
[0070] In this step, the cost corresponding to each material is summed up to obtain the total cost of the commodity item.
[0071] The commodity cost accounting method, device, storage medium and system provided by the present application include: obtaining a function condition group corresponding to each material in the commodity project, and obtaining basic information corresponding to each material in the commodity project, and then matching the target function in the corresponding function condition group according to the basic information of each material. Through the pre-set function condition group, the corresponding target function can be flexibly determined according to the basic information of the material, and the function condition group of the same material is shared, so that multiple clients can obtain and use it to improve the efficiency and flexibility of cost accounting. Then, the basic items and dependent items of each material are distinguished, and the data values of the basic items corresponding to each material are determined according to the basic information of each material; finally, the data values of the dependent items of each material are calculated using the target function corresponding to each material and the data values of the basic items, so as to determine the cost corresponding to each material, thereby determining the total cost of the commodity project. By distinguishing the basic items and dependent items and using automated processing, the probability of accounting errors can be reduced, and labor costs can be reduced to improve the accuracy and efficiency of cost accounting.
[0072] like Figure 2 As shown, in one embodiment, the step of determining the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material includes:
[0073] Step S201: extract fields from the objective function of each material respectively to determine a plurality of fields corresponding to the objective function of each material.
[0074] For example, assuming the objective function is: packaging material cost = length width 2 thickness Unit price of packaging materials, perform feature extraction on it, and obtain fields such as packaging material cost, length, width, thickness and unit price of packaging materials.
[0075] Step S202: for each material of the commodity item, each field corresponding to the objective function of the material is queried in the basic information of the material.
[0076] Step S203: determine the fields existing in the basic information of the material as basic items, and determine the fields corresponding to the objective function of the material except the fields corresponding to the basic items as dependent items.
[0077] For example, assuming the objective function is: packaging material cost = length width 2 thickness The basic information of packaging material A includes length, width, thickness and packaging material unit price. Therefore, length, width, thickness and packaging material unit price are the basic items of the packaging material. The packaging material cost is the dependent item of the packaging material.
[0078] It can be understood that the basic information is used to first determine the items (basic items) in the objective function that can directly determine the data value, and then determine the dependent items. In this way, the items that can be directly obtained can be determined first, and then the dependent items that need to rely on other data to be determined can be calculated, thereby avoiding situations where calculations cannot be made, saving computing resources, and improving the efficiency of commodity cost accounting.
[0079] like Figure 3 As shown, in one embodiment, the step of calculating the data value of the dependent item of each material by using the objective function corresponding to each material and the data value of the basic item includes:
[0080] Step S301: Store the data value of the basic item of each material into a preset accounting database.
[0081] The accounting database refers to a database used to store determined or calculated data values.
[0082] Step S302: Based on the accounting database, determine the target dependency in the dependency of each material respectively.
[0083] The target dependency refers to a dependency whose data value is determined based on the current accounting database.
[0084] In this step, the current accounting database is used to determine the accountable dependencies among the dependencies of each material, and these determined dependencies are determined as target dependencies.
[0085] Before performing step S302, all dependencies to be calculated can be abstracted into a graph matrix. The arrow points to the item that the arrow points to, which depends on the item that the arrow points to during calculation. For example, when b points to a, it means that b is required when calculating a. The purpose of this step is to check whether there is a circular reference problem in the process of calculating the dependencies. When the abstracted graph matrix is a directed acyclic graph, it means that there is no circular reference problem. When the abstracted graph matrix has a loop, it means that there is a circular reference problem, which can be handled by reconstructing the calculation logic.
[0086] For example, assuming that the calculation of a and c both need to rely on b, then the graph matrix is represented by b pointing to a and b pointing to c. To determine whether the abstracted graph matrix is a directed acyclic graph, a preset zero-degree queue Q can be used to eliminate edges. The specific steps are as follows:
[0087] (1) Initialize Q and put all nodes with zero in-degree in the graph matrix into the queue.
[0088] (2) Take out a zero-degree node a from the queue (without putting it back), and remove the outgoing edge associated with node a. If the in-degree of the node associated with the outgoing edge is also zero after the in-degree is removed, then the node also enters Q. Each time a node is processed, the number of processing times increases by one until Q is empty, and then the processing stops.
[0089] (3) If the number of processing times is equal to the number of all nodes, then the graph has no circular references.
[0090] Specifically, the circular reference problem refers to a situation where mutual references lead to deadlock. For example, a=b+1, b=a. At this time, there is no value for the former b, so a cannot be calculated. There is no value for the latter a, so b cannot be determined, resulting in a circular reference problem.
[0091] Step S303: Calculate the target dependency item of each material according to the calculation database to determine the data value of the target dependency item of each material.
[0092] Step S304: Store the data value of the target dependency of each material into the accounting database, and return to the step of determining the target dependency in the dependency of each material based on the accounting database, and continue to execute until the dependency of each material has been calculated.
[0093] In this step, the data value of the calculated target dependency is stored in the accounting database to update the accounting database. The target dependency will be determined based on the new accounting database next time. After the storage, it is determined whether the dependency of each material has been calculated. If not, it returns to the step of determining the target dependency in the dependency of each material based on the accounting database. If yes, it exits the calculation of the dependency.
[0094] It is understandable that since summary data generally depends on other data, when other data is not calculated, calculating summary data will cause accounting to stagnate. Therefore, by introducing the delayed calculation mechanism, the data that can be calculated at present is determined by determining the target dependency, and the data that cannot be calculated is calculated later, thereby improving the accuracy and reliability of commodity cost accounting.
[0095] In one embodiment, the step of matching the target function in the corresponding function condition group according to the basic information of each material includes:
[0096] Determine the condition field of the function condition group corresponding to each material;
[0097] The data value corresponding to the condition field of the function condition group of each material is determined according to the basic information of each material, so as to determine the target function corresponding to each material in the function condition group of each material.
[0098] The condition field is a field used to distinguish different functions in the same function condition group. Each function in a function condition group is distinguished by the condition field.
[0099] In this embodiment, the condition field of the function condition group corresponding to each material is first determined, and then the condition field is matched with the corresponding field in the basic information of the corresponding material to determine the corresponding target function in the function condition group.
[0100] For example, for the material packaging material, when the packaging method is medium bag or inner bag, the corresponding function is function formula A, and when the packaging method is carton, the corresponding function is function formula B. At this time, the function condition group of the material packaging material uses the packaging method as the condition field. When there is only one data record in the basic information, and the packaging method recorded in it is carton, then the matched target function is function formula B.
[0101] It is understandable that by setting the corresponding function condition group for each material in advance, when calculating the total cost of different commodity items, the function condition group of the material involved can be directly obtained, and then the target function to be used can be determined, so as to calculate the cost of each material based on the determined target function. In this way, the corresponding target function can be flexibly determined according to the basic information of the material, and the function condition group of the material is shared, so that multiple clients can obtain and use it to improve the efficiency and flexibility of cost accounting.
[0102] In one embodiment, the step of determining the cost corresponding to each material includes:
[0103] For each material of the merchandise item, determine the cost summary item for each sub-category corresponding to the material in the material's dependencies;
[0104] The data value of the cost summary item of each subclass corresponding to the material is obtained, and the sum of the data values of the cost summary item of each subclass corresponding to the material is determined as the cost corresponding to the material.
[0105] Among them, subclass refers to the material type distinguished by the condition field in the corresponding material, and the subclass corresponds to the data record in the basic information one by one. The cost summary item refers to the cost item of the packaging material represented by the subclass.
[0106] It can be understood that the cost of each material can be determined by summarizing the cost items of each sub-category in the material, which can quickly calculate the cost of goods and improve the efficiency of commodity cost accounting.
[0107] In one embodiment, the step of obtaining the function condition group corresponding to each material in the commodity item includes:
[0108] Get the identification number of each material in the commodity project;
[0109] For each material of the commodity item, a function matching the identification number of the material is determined in a preset function library, and a function condition group corresponding to the material is formed according to the determined function.
[0110] The function library includes a plurality of functions, and when obtaining a function condition group, a function condition group can be formed by selecting from the function library according to an identification number.
[0111] Specifically, when the function library is preset, the identification number of the applicable material can be associated with the function according to the material to which the function is applicable, and the identification number can be stored in the function library.
[0112] It can be understood that the function condition group corresponding to each material is determined by a preset function library. In this way, only the function library needs to be maintained so that each client using the function library can share information. When a user updates the function library, other users can also use the latest function library, thereby improving the efficiency and flexibility of commodity cost accounting.
[0113] In one embodiment, the commodity cost accounting method further includes:
[0114] When receiving an update instruction, obtaining update information and update type in the update instruction; wherein the update type includes addition, deletion and modification;
[0115] Update the function library according to the update information and update type.
[0116] In this embodiment, the user can modify, delete or add functions in the function library. By maintaining the function library, the function library can be updated in time to ensure the accuracy of commodity cost accounting. In addition, visual operations can be performed through the client when adding, modifying or deleting, thereby realizing dynamic adjustment of the function library to improve the flexibility of commodity cost accounting.
[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0118] The commodity cost accounting device provided in an embodiment of the present application is described below. The commodity cost accounting device described below and the commodity cost accounting method described above can be referenced to each other.
[0119] like Figure 4 As shown, the present application provides a commodity cost accounting device 400, the device comprising:
[0120] The project determination module 401 is used to determine the commodity project and obtain the function condition group corresponding to each material in the commodity project; wherein the function condition group includes multiple functions;
[0121] Function matching module 402, used to obtain basic information corresponding to each material in the commodity item, and match the target function in the corresponding function condition group according to the basic information of each material;
[0122] The data value determination module 403 is used to determine the basic items and dependent items of each material in the corresponding objective function according to the basic information of each material, and determine the data value of the basic item corresponding to each material according to the basic information of each material;
[0123] The cost accounting module 404 is used to calculate the data value of the dependent item of each material by using the objective function corresponding to each material and the data value of the basic item to determine the cost corresponding to each material;
[0124] The total cost determination module 405 is used to determine the total cost of the commodity item according to the cost corresponding to each material.
[0125] In one embodiment, the data value determination module includes:
[0126] The field determination submodule is used to extract fields from the objective function of each material to determine multiple fields corresponding to the objective function of each material;
[0127] The information query submodule is used to query each field corresponding to the objective function of each material in the basic information of the material for each material of the commodity item;
[0128] The determination submodule is used to determine the fields existing in the basic information of the material as basic items, and to determine the fields corresponding to the objective function of the material except the fields corresponding to the basic items as dependent items.
[0129] In one embodiment, the cost accounting module includes:
[0130] The first storage submodule is used to store the data value of the basic item of each material into a preset accounting database;
[0131] The dependency determination submodule is used to determine the target dependency in the dependencies of each material based on the accounting database; wherein the target dependency refers to the dependency whose data value is determined based on the current accounting database;
[0132] The calculation submodule is used to calculate the target dependency of each material according to the calculation database to determine the data value of the target dependency of each material;
[0133] The second storage submodule is used to store the data value of the target dependency of each material in the accounting database, and return to the step of determining the target dependency in the dependency of each material based on the accounting database to continue execution until the dependency of each material has been calculated.
[0134] In one embodiment, the function matching module includes:
[0135] The classification determination submodule is used to determine the condition fields of the function condition group corresponding to each material;
[0136] The function determination submodule is used to determine the data value corresponding to the condition field of its function condition group according to the basic information of each material, so as to determine the target function corresponding to each material in the function condition group of each material.
[0137] In one of the embodiments, the cost accounting module includes:
[0138] The summary item determination submodule is used to determine, for each material of the commodity item, the cost summary item of each subcategory corresponding to the material in the dependencies of the material;
[0139] The cost determination submodule is used to obtain the data value of the cost summary item of each subcategory corresponding to the material, and determine the sum of the data values of the cost summary item of each subcategory corresponding to the material as the cost corresponding to the material.
[0140] In one embodiment, the project determination module includes:
[0141] The identification number acquisition submodule is used to obtain the identification number of each material in the commodity project;
[0142] The condition group determination submodule is used to determine, for each material of the commodity item, a function matching the identification number of the material in a preset function library, and form a function condition group corresponding to the material according to the determined function.
[0143] In one embodiment, the commodity cost accounting device further includes:
[0144] The instruction receiving module is used to obtain the update information and update type in the update instruction when receiving the update instruction; wherein the update type includes addition, deletion and modification;
[0145] The function library update module is used to update the function library according to the update information and update type.
[0146] The division of each module in the above-mentioned commodity cost accounting device is only for illustration. In other embodiments, the commodity cost accounting device can be divided into different modules as needed to complete all or part of the functions of the above-mentioned commodity cost accounting device. Each module in the above-mentioned commodity cost accounting device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the commodity cost accounting system in the form of hardware, or can be stored in the memory in the commodity cost accounting system in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0147] In one embodiment, the present application also provides a storage medium, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the commodity cost accounting method described in any of the above embodiments.
[0148] In one embodiment, the present application also provides a commodity cost accounting system, in which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the commodity cost accounting method described in any of the above embodiments.
[0149] Indicatively, Figure 5 As shown, Figure 5 This is a schematic diagram of the internal structure of a commodity cost accounting system provided in an embodiment of the present application. The commodity cost accounting system 500 can be provided as a server. Figure 5The commodity cost accounting system 500 includes a processing component 502, which further includes one or more processors, and a memory resource represented by a memory 501, for storing instructions that can be executed by the processing component 502, such as an application. The application stored in the memory 501 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 502 is configured to execute instructions to perform the commodity cost accounting method of any of the above embodiments.
[0150] The commodity cost accounting system 500 may also include a power supply component 503 configured to perform power management of the commodity cost accounting system 500, a wired or wireless network interface 504 configured to connect the commodity cost accounting system 500 to a network, and an input output (I / O) interface 505. The commodity cost accounting system 500 may operate based on an operating system stored in the memory 501, such as Windows Server TM, Mac OS X TM, Unix TM, Linux TM, Free BSD TM, or the like.
[0151] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the present application scheme, and does not constitute a limitation on the commodity cost accounting system to which the present application scheme is applied. The specific commodity cost accounting system may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0152] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish an entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only include those elements, but also include other elements that are not clearly listed, or also include elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. Herein, the singular "one", "one" and "described / the" may also include plural forms, unless the context clearly indicates another way. It should also be understood that the terms "include / comprise" or "have" etc. specify the existence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the existence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.
[0153] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.
[0154] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A commodity cost accounting method, characterized in that: The method comprises: Determine a commodity item, and obtain a function condition group corresponding to each material in the commodity item; wherein the function condition group includes a plurality of functions; Obtaining basic information corresponding to each material in the commodity item, and matching the target function in the corresponding function condition group according to the basic information of each material; Determine the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material, and determine the data value of the basic item corresponding to each material according to the basic information of each material; Using the objective function corresponding to each material and the data value of the basic item, the data value of the dependent item of each material is calculated to determine the cost corresponding to each material; Based on the cost corresponding to each material, determine the total cost of the merchandise item.
2. The commodity cost accounting method according to claim 1, characterized in that: The step of determining the basic items and dependent items of each material in the corresponding objective function according to the basic information of each material includes: Perform field extraction on the objective function of each material respectively to determine multiple fields corresponding to the objective function of each material; For each material of the commodity item, query each field corresponding to the objective function of the material in the basic information of the material; The fields existing in the basic information of the material are determined as basic items, and the fields corresponding to the objective function of the material except the fields corresponding to the basic items are determined as dependent items.
3. The commodity cost accounting method according to claim 1, characterized in that: The step of calculating the data value of the dependent item of each material by using the objective function corresponding to each material and the data value of the basic item includes: Store the data values of the basic items of each material into the preset accounting database; Based on the accounting database, determining target dependencies in the dependencies of each material respectively; wherein the target dependencies refer to dependencies whose data values are determined based on the current accounting database; According to the calculation database, the target dependency of each material is calculated to determine the data value of the target dependency of each material; The data values of the target dependencies of each material are stored in the accounting database, and the step of determining the target dependencies in the dependencies of each material based on the accounting database is returned to continue execution until the dependencies of each material have been calculated.
4. The commodity cost accounting method according to claim 1, characterized in that: The step of matching the target function in the corresponding function condition group according to the basic information of each material includes: Determine the condition field of the function condition group corresponding to each material; The data value corresponding to the condition field of the function condition group of each material is determined according to the basic information of each material, so as to determine the target function corresponding to each material in the function condition group of each material.
5. The commodity cost accounting method according to claim 1, characterized in that: The step of determining the cost corresponding to each material includes: For each material of the commodity item, determine the cost summary item of each subclass corresponding to the material in the dependencies of the material; The data value of the cost summary item of each subclass corresponding to the material is obtained, and the sum of the data values of the cost summary item of each subclass corresponding to the material is determined as the cost corresponding to the material.
6. The commodity cost accounting method according to any one of claims 1 to 5, characterized in that: The step of obtaining the function condition group corresponding to each material in the commodity item includes: Obtain the identification number of each material in the commodity item; For each material of the commodity item, a function matching the identification number of the material is determined in a preset function library, and a function condition group corresponding to the material is formed according to the determined function.
7. The commodity cost accounting method according to claim 6, characterized in that: The method further comprises: When an update instruction is received, the update information and update type in the update instruction are obtained; wherein the update type includes addition, deletion and modification; The function library is updated according to the update information and the update type.
8. A commodity cost accounting device, characterized in that: The device comprises: The project determination module is used to determine the commodity project and obtain the function condition group corresponding to each material in the commodity project; wherein the function condition group includes multiple functions; A function matching module is used to obtain basic information corresponding to each material in the commodity item, and match the target function in the corresponding function condition group according to the basic information of each material; A data value determination module is used to determine the basic items and dependent items of each material in its corresponding objective function according to the basic information of each material, and determine the data value of the basic item corresponding to each material according to the basic information of each material; The cost accounting module is used to calculate the data value of the dependent items of each material by using the objective function corresponding to each material and the data value of the basic item to determine the cost corresponding to each material; The total cost determination module is used to determine the total cost of the commodity item according to the cost corresponding to each material.
9. A storage medium, characterized in that: The storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the commodity cost accounting method according to any one of claims 1 to 7.
10. A commodity cost accounting system, characterized in that: include: one or more processors, and memory; The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the commodity cost accounting method according to any one of claims 1 to 7 are executed.
