Method for obtaining raw material inventory change information, electronic equipment and program product
By establishing a finished product information database on the server and checking inventory in real time during finished product consumption events, the problem of poor accuracy in store processing finished product raw materials is solved, and the accuracy of deduction and ordering of raw material system inventory is improved.
Patent Information
- Application Number
- CN202411426661.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-03-11
AI Technical Summary
Under the new retail model, there is a problem of poor accuracy in the inventory management of raw materials for finished products in store processing, resulting in inaccurate ordering of raw materials and affecting inventory management.
By establishing a finished product information database on the server side, recording the identification information and usage information of raw materials required for processing finished products, and when the finished product consumption event occurs, check the inventory in real time, determine the inventory change information of raw materials based on the consumption quantity and usage information, and perform real-time deduction of system inventory.
It improves the accuracy of deduction of raw material system inventory, reduces the quantity difference between physical inventory and system inventory, and ensures the accuracy of raw material ordering.
Smart Images

Figure CN119599576A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to a method and device for obtaining raw material inventory change information, a computer-readable storage medium, an electronic device, and a computer program product. Background Art
[0002] In the "new retail" application model, service providers (retailers or merchants in actual applications) can provide consumer users with commodity purchase services through offline physical stores and online stores corresponding to the physical stores. Among them, the goods on sale provided by the store usually include some processed finished products, that is, goods that need to be processed, cooked or baked in offline stores before being put on the shelves for sale. For example, a dish, a loaf of bread, a cake, etc. can all be regarded as processed finished products in the store.
[0003] For this type of store processed finished products, the inventory management of the corresponding raw materials has always been the focus and difficulty of the store. The so-called raw materials are the raw materials needed to make processed finished products. For example, flour is the raw material for making bread, and bread is the finished product after the flour is fermented and baked.
[0004] At present, most stores correct the system inventory of raw materials at one time through regular inventory counting to solve the problem of inconsistency between the physical inventory of raw materials and the system inventory of raw materials, which causes troubles in raw material ordering. However, in actual applications, the ordering cycle and the inventory counting cycle are often different. In this case, the ordering operation can only be performed based on the corrected system inventory of raw materials in the previous inventory counting cycle, resulting in poor accuracy in raw material ordering. In addition, the accuracy of the corrected system inventory of raw materials depends entirely on the personnel who perform the inventory counting operation. If the corrected system inventory of raw materials is inaccurate, the problem of poor accuracy in raw material ordering will be further aggravated.
[0005] How to accurately manage the inventory of raw materials corresponding to the store's processed finished products has become a technical problem that needs to be solved by technical personnel in this field. Summary of the invention
[0006] The present application provides a method and device for obtaining raw material inventory change information, an information display method and device, a computer-readable storage medium, an electronic device, and a computer program product, which help to improve the accuracy of deductions in the raw material system inventory and reduce the quantity difference between the physical inventory of raw materials and the system inventory.
[0007] This application provides the following solutions:
[0008] A method for obtaining raw material inventory change information is applied to a commodity information service system combining an online application program with an offline physical store, the method comprising:
[0009] The server obtains a finished product information database, which stores identification information of raw materials required for making different types of processed finished products and corresponding raw material usage information;
[0010] According to the finished product consumption event of the processed finished product generated in the offline physical store, the identification information of the consumed first processed finished product and the corresponding consumption quantity information are obtained;
[0011] The finished product information database is queried. If the first raw material required to produce the first processed finished product and the corresponding first usage information are matched, the inventory change information of the first raw material is determined based on the consumption quantity information and the first usage information, so as to perform real-time deductions on the system inventory of the first raw material based on the inventory change information.
[0012] The finished product consumption event includes at least one of the following events:
[0013] When consumers purchase processed finished products through the offline physical store, the offline physical store performs the settlement task;
[0014] After a consumer places an order for a processed finished product through the online application, the offline store performs the delivery task;
[0015] When an operator of the offline physical store requests to experience a processed finished product, the offline physical store performs a free collection task;
[0016] An event in which the offline physical store destroys the finished products after the operator of the offline physical store reports the finished products as damaged.
[0017] Wherein, the method further comprises:
[0018] If the first raw material and the corresponding first usage information required for producing the first processed finished product are not matched in the finished product information library, deduction result information indicating that the deduction failed is sent to the client, and the reason for the failure is that there is no association with the first processed finished product, so that the user associated with the client can update the association between the first processed finished product and the first raw material and the corresponding first usage to the finished product information library.
[0019] Wherein, the method further comprises:
[0020] If the system inventory of the first raw material is not matched during the real-time deduction, the first raw material is determined to be an incorrect raw material, and the incorrect raw material is not the raw material actually used to make the first processed finished product;
[0021] Send deduction result information indicating that the deduction failed, and the reason for the failure is that the system inventory of the erroneous raw materials does not exist, so that the user associated with the client can obtain the correct raw materials required to make the first processed finished product, and use the correct raw materials to replace the erroneous raw materials, and update the finished product information library.
[0022] Wherein, the method further comprises:
[0023] If there is a target raw material in the first raw materials whose deduction fails due to insufficient system inventory, deduction result information indicating the deduction failure is sent to the client, and the reason for the failure is insufficient system inventory remaining of the target raw material, so that when the system inventory remaining of the target raw material meets the actual deduction amount required for the finished product consumption operation, the user associated with the client determines that the first amount corresponding to the target raw material is an erroneous amount, and then replaces the erroneous amount with the correct amount corresponding to the target raw material and updates it to the finished product information library; the erroneous amount is not the amount actually used to make the first processed finished product.
[0024] The finished product information database also stores information on inventory deduction methods associated with different types of processed finished products. The inventory deduction method is to deduct inventory when the finished product is consumed or to deduct inventory when the finished product is produced. The method further includes:
[0025] The inventory deduction method information associated with the first processed finished product is obtained. If the inventory deduction is performed when the finished product is consumed, the finished product information database is queried to match the first raw material required to produce the first processed finished product and the corresponding first usage information.
[0026] Wherein, the method further comprises:
[0027] According to the finished product production event of the processed finished product generated in the offline physical store, the identification information of the produced second processed finished product and the corresponding production quantity information are obtained;
[0028] Determining that the inventory deduction method associated with the second processed finished product is inventory deduction during finished product production, querying the finished product information database to match the second raw material and the corresponding second usage information required for producing the second processed finished product;
[0029] According to the production quantity information and the second usage information, the inventory change information of the second raw material is determined, so as to perform real-time deduction on the system inventory of the second raw material according to the inventory change information.
[0030] Among them, by labeling the commodity categories, the inventory deduction method information associated with the processed finished products belonging to different categories is determined.
[0031] A device for obtaining raw material inventory change information is applied to a server, and the server is deployed in a commodity information service system that combines an online application program with an offline physical store. The device includes:
[0032] An information base obtaining unit, used to obtain a finished product information base, wherein the finished product information base stores identification information of raw materials required for making finished products of different processing types and corresponding raw material usage information;
[0033] A consumption information obtaining unit, configured to obtain identification information of the consumed first processed finished product and corresponding consumption quantity information according to the finished product consumption event of the processed finished product generated in the offline physical store;
[0034] The inventory change information determination unit is used to query the finished product information database. If the first raw material required for producing the first processed finished product and the corresponding first usage information are matched, the inventory change information of the first raw material is determined according to the consumption quantity information and the first usage information, so as to perform real-time deduction of the system inventory of the first raw material according to the inventory change information.
[0035] An information display method, the method comprising:
[0036] The client obtains the system inventory deduction result information sent by the server for the first raw material associated with the first processed finished product, the first processed finished product is produced in an offline physical store, and the deduction result information is a finished product consumption event of the first processed finished product generated in the offline physical store, the server determines the inventory change information of the first raw material according to the consumption quantity of the first processed finished product and the first usage information corresponding to the first raw material when producing the first processed finished product, and obtains it by deducting the system inventory of the first raw material in real time according to the inventory change information;
[0037] The deduction result information is displayed to users associated with the physical store through a target page.
[0038] Wherein, the method further comprises:
[0039] When the deduction result information indicates that the deduction has failed, the reason information for the deduction failure is displayed to the user, and the reason information includes at least one of the following information:
[0040] There is no association relationship between the first processed finished product and the first raw material and the corresponding first usage;
[0041] There is no system inventory of incorrect raw materials, and the incorrect raw materials are not the raw materials actually used to produce the first processed finished product;
[0042] The system inventory of the target raw material is insufficient. The target raw material is the first raw material required to produce the first processed finished product, and the first quantity corresponding to the target raw material is an incorrect quantity, which is not the actual quantity used to produce the first processed finished product.
[0043] Wherein, the method further comprises:
[0044] When it is determined, based on the reason information, that the association relationship between the first processed finished product and the first raw material and the corresponding first usage is abnormal, resulting in a deduction failure, an operation option for updating the association relationship is provided;
[0045] The updated association relationship is obtained through the operation option and submitted to the server so that the server can perform inventory deduction of the raw material system according to the updated association relationship.
[0046] An information display device, applied to a client, comprising:
[0047] A deduction result information obtaining unit is used to obtain system inventory deduction result information sent by a server for a first raw material associated with a first processed finished product, wherein the first processed finished product is produced in an offline physical store, and the deduction result information is a finished product consumption event of the first processed finished product produced in the offline physical store, and the server determines the inventory change information of the first raw material according to the consumption quantity of the first processed finished product and the first usage information corresponding to the first raw material when producing the first processed finished product, and then deducts the system inventory of the first raw material in real time according to the inventory change information to obtain the deduction result information;
[0048] The deduction result information display unit is used to display the deduction result information to users associated with the physical store through a target page.
[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described above.
[0050] An electronic device, comprising:
[0051] one or more processors; and
[0052] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of any of the aforementioned methods.
[0053] A computer program product comprises a computer program / computer executable instructions, wherein the computer program / computer executable instructions implement the steps of any of the aforementioned methods when executed by a processor in an electronic device.
[0054] According to the specific embodiments provided in this application, this application discloses the following technical effects:
[0055] In the embodiment of the present application, a solution that can better reflect the actual consumption of raw materials is provided through objective analysis. Specifically, the consumption scenario of processed finished products can be determined as the time to deduct the inventory of the raw material system. This is because the total amount of finished products consumed in different scenarios is the actual total amount of processing and production. Therefore, each time a consumption event for the finished product is generated, the corresponding raw material system inventory deduction process is started, which helps to improve the accuracy of inventory deduction.
[0056] When deducting the inventory of corresponding raw materials according to the consumption of finished products, on the one hand, the association relationship between finished products and raw materials can be constructed in advance to clarify which raw materials need to be deducted from the system inventory for the currently consumed finished products, as well as the amount of raw materials to be deducted for a single finished product. In this way, based on the consumption quantity of finished products, the inventory change information corresponding to each raw material in this consumption event can be calculated; on the other hand, the system inventory of each raw material can be deducted in real time according to the inventory change information to ensure the immediacy of the deduction processing, which also helps to reduce the quantity difference between the physical inventory of raw materials and the system inventory.
[0057] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] 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 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 work.
[0059] Figure 1 is a schematic diagram of a system for obtaining raw material inventory change information provided by an embodiment of the present application;
[0060] Figure 2 is a flow chart of a method for obtaining raw material inventory change information provided by an embodiment of the present application;
[0061] Figure 3 is a schematic diagram of a device for obtaining raw material inventory change information provided in an embodiment of the present application;
[0062] Figure 4 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0063] 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. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0064] For finished products that need to be made in offline physical stores, inventory management of raw materials has always been a difficult problem in store management. Currently, most of them use inventory counts to periodically make one-time corrections to the raw material system inventory. This method results in that during the inventory count cycle, the sales inventory of finished products has been increasing, that is, the physical inventory of raw materials is in a dynamic reduction state, but the system inventory of raw materials remains unchanged, which will aggravate the quantity difference between the physical inventory of raw materials and the system inventory. In addition, for the raw materials consumed during the inventory count cycle, it is impossible to perceive the consumption method of the raw materials, and it is impossible to achieve refined management loss analysis of the raw materials.
[0065] In addition, in actual applications, there are also plans to update the inventory of the raw material system based on the production plan of the finished products, the inventory quantity of the finished products on the shelves (usually determined based on the predicted sales volume of the finished products), etc. However, these plans all deduct the raw materials based on the manually estimated quantity, resulting in poor accuracy of the raw material deductions, and therefore have not been widely used in actual applications.
[0066] How to determine the actual consumption of raw materials and correctly update the system inventory of raw materials accordingly, so as to minimize the difference between the system inventory and the physical inventory, has become the top priority of raw material inventory management.
[0067] After extensive analysis, the inventors proposed a solution for updating the inventory of a raw material system based on the quantity of finished product consumption in the embodiment of the present application.
[0068] From the perspective of system architecture, see Figure 1 The system for obtaining raw material inventory change information provided by the embodiment of the present application may include a client and a server.
[0069] The server can obtain and maintain a finished product information database, which stores the association between different types of finished products that can be processed and manufactured in physical stores and their corresponding raw materials, that is, the correspondence between finished product identification information, raw material identification information, and raw material usage information. In one example, the association can be reflected as a BOM relationship (Bill of Material, a file that describes the product structure and lists in detail all the raw materials, parts and components required to manufacture a product and their quantities).
[0070] At the same time, when the service end generates a finished product consumption event for these processed finished products in the store, it can determine the finished product consumed, that is, the identification information of the first processed finished product in the embodiment of the present application, and the corresponding finished product consumption quantity. In this way, the inventory change information of the first raw material associated with the first processed finished product can be calculated based on the finished product consumption quantity and the association relationship stored in the finished product information library. That is, when a certain number of finished products are consumed, the corresponding amount of raw materials that need to be consumed, and the amount of raw materials consumed is the system inventory change information of the raw material. Based on this, the real-time deduction of the system inventory is helpful to improve the accuracy and timeliness of the update of the raw material system inventory, thereby reducing the quantity difference between the system inventory and the physical inventory of the raw material.
[0071] In actual applications, the server can be privately deployed for a physical store, that is, the server can only obtain and save the association relationship of the processed finished products provided by the physical store. Alternatively, the server can be publicly owned by multiple stores including the physical store, and can save the association relationship of the processed finished products provided by each of the multiple stores, and distinguish the processed finished products of different stores through store identifiers.
[0072] Correspondingly, the client of the embodiment of the present application can be deployed on a terminal device associated with a physical store, and exists in the form of a web page or an independent application. Alternatively, the client can be integrated into an existing application in the form of a service component as a new functional module of the existing application, for example, the client is integrated into an existing application for implementing store management in the form of an SDK (Software Development Kit).
[0073] Specifically, the client can obtain the system inventory deduction result information of the first raw material associated with the first processed finished product from the server, and display it to users associated with the physical store through the target page, so that users can grasp the system inventory update status of the store's raw materials in a timely and accurate manner.
[0074] The following is an explanation of the implementation process of the method for obtaining raw material inventory change information in the embodiment of the present application with reference to a specific example. Figure 2 The flow chart shown may include:
[0075] S201: The server obtains a finished product information database, in which identification information of raw materials required for making finished products of different types and corresponding raw material usage information are stored.
[0076] The embodiment scheme of the present application can be applied to a commodity information service system that combines an online application with an offline physical store. For processed finished products that need to be produced in a physical store, the raw material inventory change information corresponding to the consumed finished products can be obtained when the finished products are consumed, and the raw material system inventory can be updated in real time accordingly to ensure the accuracy of inventory deductions and minimize the quantity difference between the physical inventory of raw materials and the system inventory.
[0077] In order to avoid the influence of human factors on the accuracy of raw material deduction, the embodiment of the present application realizes the update of raw material inventory in a fully automated manner, and the whole process no longer requires manual operation. First, the service end can obtain a finished product information library for storing the relationship between processed finished products and raw materials. In this way, when a finished product consumption event occurs, the raw material inventory change amount of the consumed finished product can be calculated based on the relationship stored in the information library, that is, the raw material inventory change information mentioned above.
[0078] As an example, the association relationship stored in the finished product information library can be reflected in the association form shown in Table 1 below.
[0079]
[0080] Table 1
[0081] Among them, N represents the type of raw materials required to make finished product 1, and M represents the type of raw materials required to make finished product 2.
[0082] As another example, the finished product information library can be shown in Table 2 below, maintaining the association relationship between the finished product and the raw material by saving the BOM relationship.
[0083] Finished product identification BOM Relationship Finished product 1 BOM1 Finished product 2 BOM2 …… ……
[0084] Table 2
[0085] Among them, BOM1 describes the raw materials 11 to 1N required for making finished product 1 and the corresponding amounts 11 to 1N of different raw materials, and BOM2 describes the raw materials 21 to 2M required for making finished product 2 and the corresponding amounts 21 to 2M of different raw materials.
[0086] The embodiments of the present application do not specifically limit the form of expression of the association relationship between processed finished products and raw materials.
[0087] S202: According to the finished product consumption event of the processed finished product generated in the offline physical store, the identification information of the consumed first processed finished product and the corresponding consumption quantity information are obtained.
[0088] In the embodiment of the present application, finished product consumption can be used as the triggering time for inventory deduction. This is because no matter what the planned production volume of finished products is, what the estimated shelf inventory quantity is, and no matter how the finished products are consumed, as long as the finished product consumption event occurs, that is, the number of finished products consumed is counted, the total number of finished products consumed in the end is the total number of finished products actually produced. Deducting the raw material inventory based on the total number of finished products actually produced helps to ensure the accuracy of the raw material system inventory.
[0089] Comprehensively analyzing the consumption scenarios of processed finished products, the finished product consumption events in the embodiments of the present application may include at least one of the following events:
[0090] 1. When consumers purchase processed finished products through the offline physical store, the offline physical store performs the settlement task, that is, the finished product consumption event generated in the offline sales scenario. In this scenario, after the consumer user performs the settlement operation on the purchased processed finished products through the POS machine in the offline physical store, the finished products are taken away from the store, which will lead to the consumption of the store's finished products.
[0091] 2. After the consumer places an order for processed finished products through the online application, the offline physical store performs the delivery task, which is the finished product consumption event generated in the online sales scenario. In this scenario, the offline physical store can deliver the processed finished products ordered online to the consumer user through the fulfillment delivery method, which will also lead to the consumption of the store's finished products.
[0092] 3. When the operator of the offline physical store requests to experience the processed finished product, the offline physical store performs the free collection task, that is, the finished product consumption event generated in the trial experience scenario. In this scenario, the processed finished product is consumed on the spot or taken away from the store by the consumers who enter the store through trial and tasting, which also leads to the consumption of the store's finished product.
[0093] Taking processed food as an example, the store operator can submit a request for tasting of the food, and after the offline physical store responds to the request and provides the operator with the finished product for free, the operator will cut the finished product into small pieces and distribute them to consumers who come into the store for free tasting, or split the finished product into independent small packages and distribute them to consumers who come into the store for free to take away for tasting, thereby generating consumption of the finished product.
[0094] 4. After the operator of the offline physical store reports the finished product as damaged, the offline physical store executes the finished product destruction task, that is, the finished product consumption event generated in the finished product damage report scenario. In this scenario, the offline physical store will destroy the damaged, expired and other unusable processed finished products, which will also lead to the consumption of the store's finished products.
[0095] In actual applications, users can flexibly configure the finished product consumption scenarios associated with a store through the client according to the store's usage requirements. An example is given below.
[0096] For example, for store 1, its associated finished product consumption scenarios are four situations: offline sales, online sales, tasting and collection, and finished product damage reporting. Therefore, for all processed finished products provided by store 1, when any of the above four situations occurs, the inventory change information of raw materials can be calculated according to the embodiment of the present application.
[0097] For another example, for store 2, the finished product A it provides is for online sales, and the finished product consumption scenario associated with the finished product A can be online sales. That is, when a consumer places an order for finished product A through an online application and store 2 executes the corresponding delivery task, the consumption quantity of finished product A can be determined according to the embodiment of the present application, and the corresponding raw material inventory change information can be calculated.
[0098] For another example, for store 2, the finished product B it provides does not provide a tasting service, so the finished product consumption scenarios associated with the finished product B can be offline sales, online sales, and finished product damage reports. Therefore, these three situations can trigger the processing process of calculating the corresponding raw material inventory change information based on the consumption quantity of finished product B.
[0099] In other words, for the processed finished products provided by the store, a unified consumption scenario configuration can be made for all finished products, or personalized consumption scenario configuration can be made for different finished products, thereby achieving more refined raw material inventory management, which can be determined based on the store's usage needs.
[0100] In one example, a consumer user submits an online order through an APP. Correspondingly, the server can obtain an APP outbound message for the online order, which may include basic information of the order, such as identification information of the purchased goods, the purchased quantity, etc. The server parses the outbound message and determines the finished product 1 included therein as the first processed finished product of the embodiment of the present application, and determines the purchased quantity of the finished product 1 as the corresponding finished product consumption quantity.
[0101] S203: Query the finished product information database. If the first raw material required for producing the first processed finished product and the corresponding first usage information are matched, the inventory change information of the first raw material is determined according to the consumption quantity information and the first usage information, so as to perform real-time deduction of the system inventory of the first raw material according to the inventory change information.
[0102] In the example above, after the server parses the outbound message to obtain the identification information of finished product 1, it can query Table 1 or Table 2, match the raw material information associated with finished product 1, and determine raw materials 11 to 1N as the first raw materials required to make the first processed finished product, and the usage 11 to 1N are the first usage corresponding to each first raw material. In this way, based on the consumption quantity of finished product 1 and usage 11 to 1N, the inventory change information corresponding to raw materials 11 to 1N can be calculated under the finished product consumption operation corresponding to this APP online sales.
[0103] Taking raw material 11 as an example, its inventory change information can be reflected as: usage 11*consumption quantity K of finished product 1. When deducting the system inventory of raw material 11 in real time, the usage 11*consumption quantity K of finished product 1 can be subtracted from the original system inventory of raw material 11 to obtain the latest system inventory of raw material 11. In this way, the system inventory update of raw material 11 under this finished product consumption operation can be completed. In other words, along with the consumption of finished products, the embodiment of the present application will deduct the corresponding raw material inventory in the system inventory in real time. The physical inventory and system inventory of raw materials are both dynamically changing, so the difference between the two can be reduced.
[0104] S204: Sending the system inventory deduction result information to the client associated with the physical store, and displaying it to the user associated with the physical store through a target page provided by the client.
[0105] In the embodiment of the present application, the client can interact with the server to obtain the result of the inventory deduction processing of the first raw material by the server in the finished product consumption scenario, and display it to the user through the target page for viewing, so that the user can timely grasp the inventory update and consumption of the first raw material, and then perform other corresponding processing according to the use requirements. For example, raw material ordering and other processing can be performed according to the inventory consumption situation.
[0106] As an example, the deduction result information displayed to the user may include: whether the raw material deduction is successful, the amount of deduction (i.e., the change in raw material inventory), the latest system inventory of the raw material (i.e., the remaining available amount of the raw material in the system inventory), etc.
[0107] As another example, according to usage requirements, the deduction result information may also include: the type of consumption operation, that is, the consumption path of the finished product, which can be used to achieve refined pipe loss analysis of raw materials.
[0108] In summary, the embodiments of the present application provide a solution that can better reflect the actual consumption of raw materials through objective analysis. Specifically, the consumption scenario of processed finished products can be determined as the time to deduct the inventory of the raw material system. This is because the total amount of finished products consumed in different scenarios is the actual total amount of processing and production. Therefore, each time a consumption event for a finished product is generated, the corresponding raw material system inventory deduction process is started, which helps to improve the accuracy of inventory deduction.
[0109] When deducting the inventory of corresponding raw materials according to the consumption of finished products, on the one hand, the association relationship between finished products and raw materials can be constructed in advance to clarify which raw materials need to be deducted from the system inventory for the currently consumed finished products, as well as the amount of raw materials to be deducted for a single finished product. In this way, based on the consumption quantity of finished products, the inventory change information corresponding to each raw material in this consumption event can be calculated; on the other hand, the system inventory of each raw material can be deducted in real time according to the inventory change information to ensure the immediacy of the deduction processing, which also helps to reduce the quantity difference between the physical inventory of raw materials and the system inventory.
[0110] In practical applications, how to ensure the accuracy of the relationship between finished products and raw materials is the technical basis and technical difficulty for the implementation of this solution. The embodiment of the present application also provides the following relationship update solution to ensure the accuracy of the relationship maintained by the finished product information library.
[0111] In one example, when inventory deduction in the raw material system fails, the user can analyze the cause of the failure to determine whether the deduction failure is caused by a problem with the association relationship, and then update the association relationship in a targeted manner.
[0112] In this example, the deduction failed due to a problem with the association relationship. There may be the following situations:
[0113] Case 1: The association relationship does not exist. That is, the finished product information database does not store the association relationship for the first processing type finished product.
[0114] In this case, the server can sense it when searching and matching in the finished product information database based on the identification information of the first processed finished product. Therefore, the non-existence of the association with the first processed finished product can be used as the reason for the deduction failure, and the deduction result information can be displayed to the user for viewing.
[0115] Correspondingly, the user can update the association relationship of the first processing type finished product to the finished product information database according to the prompt of the deduction result information.
[0116] Case 2: The association relationship exists but is inaccurate, and specifically the first associated raw material is incorrect. That is, the first raw material associated with the first processed finished product includes an incorrect raw material, which is not the raw material actually used to make the first processed finished product.
[0117] Taking finished product 1 as an example, if raw material 11 stored in the finished product information database is an incorrect raw material, and the correct raw material actually used to make finished product 1 is raw material 11′, then the association relationship represented by situation 2 is inaccurate.
[0118] This situation can be divided into the following two specific situations according to whether the wrong raw materials are built in the system:
[0119] Case 21: The wrong raw material is not created in the system. That is, the system inventory of the wrong raw material is not maintained in the inventory management system, so when the inventory is deducted, the system inventory of the wrong raw material cannot be matched, resulting in deduction failure.
[0120] In this case, when the server performs system inventory deductions based on the calculated inventory change information of raw material 11, a deduction failure may occur. Correspondingly, the non-existence of system inventory of raw material 11 may be used as the reason for the deduction failure (or the reason for failure may be marked as raw material 11 not being built in the store), and the deduction result information may be displayed to the user for viewing.
[0121] Correspondingly, the user can check and correct the first raw material associated with the first processed finished product according to the prompt of the deduction result information, replace raw material 11 with raw material 11', and update it to the finished product information library. It can be understood that in order to ensure that the system inventory deduction of raw material 11' can be normally implemented according to the updated association relationship in the future, it is also necessary to ensure that raw material 11' has a product in the store system.
[0122] Case 22, wrong raw material has built-in in the system.
[0123] In this case, the server can perform system inventory deductions normally based on the calculated inventory change information of raw material 11, and if the inventory is sufficient, deduction failures usually do not occur. Therefore, in this case, users can usually view successful deduction results.
[0124] In response to the situation where the deduction is successful, the embodiment of the present application can also provide a corresponding association relationship verification solution, which can be found in the introduction below and will not be described in detail here.
[0125] Case 3: The association relationship exists but is inaccurate, and specifically the first amount of the association is incorrect. That is, the first amount associated with the first processed finished product includes an incorrect amount, which is not the amount actually used to make the first processed finished product.
[0126] Taking finished product 2 as an example, if the amount 21 corresponding to raw material 21 stored in the finished product information database is an incorrect amount, and the correct amount of raw material 21 actually used to make finished product 2 is amount 21′, then the association relationship represented by situation 3 is inaccurate.
[0127] In this case, when the server performs a system inventory deduction based on the inventory change information of raw material 21 calculated by the usage 21, if the deduction fails and the reason for the failure is that the system inventory of raw material 21 is insufficient, the deduction result information can be displayed to the user for viewing. In other words, the user can clearly see through the viewed information that there is a target raw material in the first raw material that fails to be deducted due to insufficient system inventory. In this example, the target raw material is raw material 21.
[0128] Correspondingly, if the user checks the system inventory and determines that the system inventory remaining of raw material 21 can meet the actual deduction required for the current finished product consumption operation (for example, the system inventory remaining is 60g, and the actual deduction corresponding to the current finished product consumption operation is 50g, which means that the inventory remaining can meet the deduction requirements of the actual deduction), then the first usage associated with the first processing type finished product can be checked and corrected, and usage 21 can be replaced with usage 21′ and updated to the finished product information library.
[0129] In this case, if the system inventory of raw material 21 is sufficient, then when the system inventory is deducted according to the inventory change information of raw material 21 calculated by usage 21, the deduction may not fail, that is, the user can view the result of successful deduction. For this successful deduction situation, the embodiment of the present application can also provide a corresponding association verification scheme, which can be specifically referred to in the following introduction, which will not be described in detail here.
[0130] Corresponding to the examples given in Case 21 and Case 3 above, the updated association relationship shown in Table 3 below can be obtained.
[0131]
[0132] Table 3
[0133] In another example, when the inventory deduction of the raw material system is successful, the user can actively check the association relationship maintained in the finished product information library to determine whether there are inaccurate association relationships, and update the association relationship in a targeted manner.
[0134] As in the examples of various situations listed above, there may be a situation where the association relationship is inaccurate but the system inventory deduction is successful. Correspondingly, the user can also actively verify the accuracy of the association relationship through other methods.
[0135] For example, in the case where the raw materials associated with the finished product are incorrect, if during the periodic inventory of raw materials, it is found that both the physical inventory and the system inventory of the erroneous raw materials and the correct raw materials have abnormal deviations, that is, the inventory deviations of the two are large (for example, the deviation is greater than a preset value, which can be flexibly set according to usage requirements), then the association relationship of the finished products related to the erroneous raw materials and the correct raw materials can be actively checked to determine whether there is an inaccurate association relationship, and then the association relationship can be updated in a timely manner.
[0136] Alternatively, data from other application systems can be comprehensively analyzed to identify abnormal inventory deductions. For example, the financial statement data from the financial system can be integrated to determine, based on the sales of finished products, the purchase of raw materials, the inventory consumption of raw materials, etc., when the actual consumption of raw materials is seriously inconsistent with the expected consumption (for example, the difference between the two is greater than the set value, which can be flexibly set according to usage requirements), proactively perform association verification, and perform targeted association updates when necessary.
[0137] In summary, when the raw material system inventory is deducted based on the embodiment of the present application, problems existing in the association relationships maintained by the finished product information database can be discovered, and then the association relationships maintained by the finished product information database can be updated through the above association relationship update scheme, so that the association relationships maintained by the finished product information database can be more comprehensive and accurate. In this way, when the raw material system inventory is deducted based on this more complete association relationship, the execution effect of the scheme can be further optimized, the accuracy of the raw material system inventory deduction can be improved, and the inventory differences can be reduced.
[0138] In addition, considering the wide variety of processed finished products provided by stores in actual applications, the embodiments of the present application can also provide different raw material inventory update plans according to the characteristics of different finished products.
[0139] Correspondingly, the finished product information database can also store the inventory deduction method information associated with different types of processed finished products, which may include: inventory deduction when the finished product is consumed, and inventory deduction when the finished product is made. For example, fast-moving consumer goods, hot-selling products, finished products with high production costs, etc. that need to be processed and produced in the store can be deducted from the inventory when the finished product is consumed, thereby improving the accuracy of the inventory deduction in the raw material system; for finished products that are processed and produced in limited quantities in the store due to seasonal or limited-time activities, inventory deductions can be made when the finished products are processed. In this case, both the planned production volume and the estimated shelf inventory quantity are relatively accurate and controllable, so these finished products can be distinguished, and the inventory of the raw material system can be updated by deducting inventory when the finished product is made.
[0140] As an example, the inventory deduction method information associated with different finished products can be clarified by labeling. For example, for finished products that are deducted when the finished products are consumed, a preset label "1" can be given, and for finished products that are deducted when the finished products are manufactured, a preset label "0" can be given; for another example, for finished products that are deducted when the finished products are consumed, they can be labeled, and for finished products that are deducted when the finished products are manufactured, no labeling is performed.
[0141] In addition, in actual applications, the processed finished products can be used as the basic granularity for labeling, that is, labeling can be performed on different processed finished products to determine their corresponding inventory deduction methods. Alternatively, the commodity category to which the processed finished products belong can be used as the basic granularity for labeling, that is, by labeling the commodity category, the inventory deduction methods associated with the processed finished products belonging to different categories can be determined. In this way, when new processed finished products appear, there is no need to label each new finished product one by one. As long as the label of the category to which the new finished product belongs is used, the inventory deduction method corresponding to the new finished product can be determined.
[0142] The embodiments of the present application do not limit the labeling method, preset label value, label application scope, etc., as long as the inventory deduction methods associated with different finished products can be distinguished.
[0143] Thus, in the above-mentioned solution of performing inventory deduction when the finished product is consumed, after determining the first processing type finished product targeted by the current finished product consumption operation behavior, the inventory deduction method information associated with the first processing type finished product can be obtained. If the inventory deduction is performed when the finished product is consumed, the finished product information library is queried as described above, and the inventory change information of each first raw material is calculated based on the finished product consumption quantity information and the first usage information. Of course, in actual applications, the finished product information library can also be queried first, and then the inventory deduction method information can be obtained. The embodiment of the present application does not specifically limit the execution order of the two steps.
[0144] Correspondingly, the server can also monitor the operation behaviors related to the processing and production of finished products, for example, the material picking operation performed by the store operator for the finished product to be produced, and then obtain the identification information of the produced second processed finished product and the corresponding production quantity information according to the finished product production event of the processed finished product generated in the offline physical store, so that when the inventory deduction method associated with the second processed finished product is the inventory deduction during the production of the finished product, the finished product information library is queried, the second raw material required for the production of the second processed finished product and the corresponding second usage information are matched, and the inventory change information of the second raw material is determined according to the production quantity information and the second usage information. In this way, the purpose of real-time deduction of the raw material system inventory during the production of the finished product can be achieved.
[0145] That is to say, in this solution, the server can monitor both the finished product production scenario and the finished product consumption scenario. When a finished product production event is generated, it can be determined whether to start the system inventory deduction process for the corresponding raw material in this scenario based on the inventory deduction method information associated with the currently produced finished product. If yes, the inventory change information of the required raw materials is calculated in combination with the finished product production quantity; if not, the process is terminated without performing system inventory deduction.
[0146] Similarly, when a finished product consumption event occurs, the server will also determine whether to start the system inventory deduction processing process for the corresponding raw materials in this scenario based on the inventory deduction method information associated with the currently consumed finished product. If so, the inventory change information of the required raw materials will be calculated based on the finished product consumption quantity; if not, the processing process will be terminated and no system inventory deduction will be performed.
[0147] In this solution, the system inventory of raw materials is updated either by real-time deduction when the finished product is produced or by real-time deduction when the finished product is consumed, and there will be no repeated deductions or omissions. Compared with a one-time correction during inventory counting, or a raw material deduction based on an estimated quantity such as planned production volume or estimated shelf inventory quantity, the embodiment of the present application can both improve the accuracy of the raw material system inventory deduction and reduce the difference in quantity between the physical raw material inventory and the system inventory.
[0148] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0149] Corresponding to the above method embodiment, the embodiment of the present application also provides a device for obtaining raw material inventory change information, which is applied to a server, and the server is deployed in a commodity information service system that combines an online application program with an offline physical store. Figure 3 , the device may include: the device includes:
[0150] The information base obtaining unit 301 is used to obtain a finished product information base, in which the identification information of raw materials required for making finished products of different processing types and the corresponding raw material usage information are stored;
[0151] The consumption information obtaining unit 302 is used to obtain the identification information of the consumed first processed finished product and the corresponding consumption quantity information according to the finished product consumption event of the processed finished product generated in the offline physical store;
[0152] The inventory change information determination unit 303 is used to query the finished product information database. If the first raw material required for producing the first processed finished product and the corresponding first usage information are matched, the inventory change information of the first raw material is determined according to the consumption quantity information and the first usage information, so as to perform real-time deduction of the system inventory of the first raw material according to the inventory change information.
[0153] The finished product consumption event includes at least one of the following events:
[0154] When consumers purchase processed finished products through the offline physical store, the offline physical store performs the settlement task;
[0155] After a consumer places an order for a processed finished product through the online application, the offline store performs the delivery task;
[0156] When an operator of the offline physical store requests to experience a processed finished product, the offline physical store performs a free collection task;
[0157] An event in which the offline physical store destroys the finished products after the operator of the offline physical store reports the finished products as damaged.
[0158] Wherein, the device further comprises:
[0159] A deduction result information sending unit is used to send deduction result information indicating a deduction failure to the client when the first raw material and the corresponding first usage information required for producing the first processed finished product are not matched in the finished product information library, and the reason for the failure is that there is no association with the first processed finished product, so that the user associated with the client can update the association between the first processed finished product and the first raw material and the corresponding first usage to the finished product information library.
[0160] Wherein, the device further comprises:
[0161] a deduction result information sending unit, configured to determine the first raw material as an erroneous raw material when the system inventory of the first raw material is not matched during the real-time deduction, and the erroneous raw material is not a raw material actually used to make the first processed finished product;
[0162] Send deduction result information indicating that the deduction failed, and the reason for the failure is that the system inventory of the erroneous raw materials does not exist, so that the user associated with the client can obtain the correct raw materials required to make the first processed finished product, and use the correct raw materials to replace the erroneous raw materials, and update the finished product information library.
[0163] Wherein, the device further comprises:
[0164] The deduction result information sending unit is used to send deduction result information indicating the failure of deduction to the client when there is a target raw material in the first raw material whose deduction fails due to insufficient system inventory, and the reason for the failure is insufficient system inventory remaining of the target raw material, so that when the system inventory remaining of the target raw material meets the actual deduction amount required for the finished product consumption operation, the user associated with the client determines that the first amount corresponding to the target raw material is an erroneous amount, and then replaces the erroneous amount with the correct amount corresponding to the target raw material, and updates it to the finished product information library; the erroneous amount is not the amount actually used to make the first processed finished product.
[0165] The finished product information database also stores information on inventory deduction methods associated with different types of finished products, wherein the inventory deduction method is to deduct inventory when the finished product is consumed or to deduct inventory when the finished product is produced. The device also includes:
[0166] The deduction method information obtaining unit is used to obtain the inventory deduction method information associated with the first processed finished product. If inventory deduction is performed when the finished product is consumed, the finished product information database is queried to match the first raw material required to produce the first processed finished product and the corresponding first usage information.
[0167] Wherein, the device further comprises:
[0168] A processing information obtaining unit, configured to obtain identification information of the produced second processed finished product and corresponding production quantity information according to the finished product production event of the processed finished product generated in the offline physical store;
[0169] It is an inventory change information determination unit, and is also used to determine that the inventory deduction method associated with the second processed finished product is to perform inventory deduction when the finished product is produced. The finished product information database is queried to match the second raw material required to produce the second processed finished product and the corresponding second usage information; based on the production quantity information and the second usage information, the inventory change information of the second raw material is determined to perform real-time deduction of the system inventory of the second raw material based on the inventory change information.
[0170] Wherein, the device further comprises:
[0171] The category marking unit is used to determine the inventory deduction method information associated with each processed finished product belonging to different categories by marking the commodity categories.
[0172] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.
[0173] And an electronic device, comprising:
[0174] one or more processors; and
[0175] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.
[0176] In addition, an embodiment of the present application also provides a computer program product, including a computer program / computer executable instructions, which, when executed by a processor in an electronic device, implements the steps of any of the methods described in the aforementioned method embodiments.
[0177] in, Figure 4 The architecture of an electronic device is exemplarily shown. For example, device 400 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
[0178] Reference Figure 4 , device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0179] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the method provided by the technical solution of the present disclosure. In addition, the processing component 402 may include one or more modules to facilitate the interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate the interaction between the multimedia component 408 and the processing component 402.
[0180] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0181] The power supply component 406 provides power to the various components of the device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.
[0182] The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0183] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0184] Input / output (I / O) interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0185] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of components, such as the display and keypad of the device 400, and the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400, and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0186] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, or a mobile communication network such as 2G, 3G, 4G / LTE, 5G, etc. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0187] In an exemplary embodiment, the device 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0188] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the above instructions can be executed by a processor 420 of a device 400 to complete the method provided by the technical solution of the present disclosure. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0189] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.
[0190] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0191] The above is a detailed introduction to the scheme provided by the present application. The principles and implementation methods of the present application are described in detail using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A method for obtaining raw material inventory change information, characterized in that: A commodity information service system applied to an online application program combined with an offline physical store, the method comprising: The server obtains a finished product information database, which stores identification information of raw materials required for making different types of processed finished products and corresponding raw material usage information; According to the finished product consumption event of the processed finished product generated in the offline physical store, the identification information of the consumed first processed finished product and the corresponding consumption quantity information are obtained; The finished product information database is queried. If the first raw material required to produce the first processed finished product and the corresponding first usage information are matched, the inventory change information of the first raw material is determined based on the consumption quantity information and the first usage information, so as to perform real-time deductions on the system inventory of the first raw material based on the inventory change information.
2. The method according to claim 1, characterized in that The finished product consumption event includes at least one of the following events: When consumers purchase processed finished products through the offline physical store, the offline physical store performs the settlement task; After a consumer places an order for a processed finished product through the online application, the offline store performs the delivery task; When an operator of the offline physical store requests to experience a processed finished product, the offline physical store performs a free collection task; An event in which the offline physical store destroys the finished products after the operator of the offline physical store reports the finished products as damaged.
3. The method according to claim 1, characterized in that The method further comprises: If the first raw material and the corresponding first usage information required for producing the first processed finished product are not matched in the finished product information library, deduction result information indicating that the deduction failed is sent to the client, and the reason for the failure is that there is no association with the first processed finished product, so that the user associated with the client can update the association between the first processed finished product and the first raw material and the corresponding first usage to the finished product information library.
4. The method according to claim 1, characterized in that: The method further comprises: If the system inventory of the first raw material is not matched during the real-time deduction, the first raw material is determined to be an incorrect raw material, and the incorrect raw material is not the raw material actually used to make the first processed finished product; Send deduction result information indicating that the deduction failed, and the reason for the failure is that the system inventory of the erroneous raw materials does not exist, so that the user associated with the client can obtain the correct raw materials required to make the first processed finished product, and use the correct raw materials to replace the erroneous raw materials, and update the finished product information library.
5. The method according to claim 1, characterized in that The method further comprises: If there is a target raw material in the first raw materials whose deduction fails due to insufficient system inventory, deduction result information indicating the deduction failure is sent to the client, and the reason for the failure is insufficient system inventory remaining of the target raw material, so that when the system inventory remaining of the target raw material meets the actual deduction amount required for the finished product consumption operation, the user associated with the client determines that the first amount corresponding to the target raw material is an erroneous amount, and then replaces the erroneous amount with the correct amount corresponding to the target raw material and updates it to the finished product information library; the erroneous amount is not the amount actually used to make the first processed finished product.
6. The method according to any one of claims 1 to 5, characterized in that: The finished product information database also stores information on inventory deduction methods associated with different types of processed finished products. The inventory deduction method is to deduct inventory when the finished product is consumed or to deduct inventory when the finished product is produced. The method further includes: The inventory deduction method information associated with the first processed finished product is obtained. If the inventory deduction is performed when the finished product is consumed, the finished product information database is queried to match the first raw material required to produce the first processed finished product and the corresponding first usage information.
7. The method according to claim 6, characterized in that The method further comprises: According to the finished product production event of the processed finished product generated in the offline physical store, the identification information of the produced second processed finished product and the corresponding production quantity information are obtained; Determining that the inventory deduction method associated with the second processed finished product is inventory deduction during finished product production, querying the finished product information database to match the second raw material and the corresponding second usage information required for producing the second processed finished product; According to the production quantity information and the second usage information, the inventory change information of the second raw material is determined, so as to perform real-time deduction on the system inventory of the second raw material according to the inventory change information.
8. The method according to claim 6, characterized in that By labeling the commodity categories, the inventory deduction method information associated with the processed finished products belonging to different categories is determined.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.
10. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method according to any one of claims 1 to 8.
11. A computer program product comprising a computer program / computer executable instructions, characterized in that: When the computer program / computer executable instructions are executed by a processor in an electronic device, the steps of the method according to any one of claims 1 to 8 are implemented.