Inventory management method, electronic device, storage medium and program product
By calculating inventory costs for different inventory types separately, the problem of inaccurate inventory costs of multiple types of goods is solved, and the accuracy and effectiveness of inventory management are improved.
Patent Information
- Application Number
- CN202411365696.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-02-07
AI Technical Summary
When inventory contains multiple types of goods (such as own type and agent type), calculating inventory costs using a unified method will affect its accuracy, which will in turn affect the effectiveness of inventory management.
By obtaining the current inventory volume and unit inventory costs for different inventory types, the current inventory costs for each inventory type are calculated separately and the target inventory is obtained based on these costs to achieve more accurate inventory management.
It improves the accuracy of inventory cost calculation, improves the effectiveness of inventory management, ensures that inventory is balanced with market demand, and reduces inventory costs and risks.
Smart Images

Figure CN119398659A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to technical fields such as warehousing, and more particularly to an inventory management method, electronic equipment, storage medium, and program product. Background Art
[0002] Inventory management is a key link in enterprise operation management. It involves multiple aspects such as inventory planning, procurement, storage, and sales. Its purpose is to ensure that the enterprise's inventory quantity is balanced with market demand to support normal production and sales activities while minimizing inventory costs and risks.
[0003] Inventory cost calculation is one of the core links of inventory management. When calculating the inventory cost of a certain commodity, generally, according to relevant factors, an appropriate method is selected from the methods such as First In First Out (FIFO), Last In First Out (LIFO), weighted average method and moving weighted average method, and then the unit inventory cost of the commodity is calculated based on the selected method, and then the inventory volume of the commodity is multiplied by the unit inventory cost to obtain the inventory cost. Among them, relevant factors may include the nature of the commodity (such as ownership, whether it is perishable, etc.), market conditions, corporate strategy, etc.
[0004] However, when the product includes multiple types (such as own type and agent type), since different types of products perform differently in relevant factors, using a unified method to calculate inventory costs will affect its accuracy and thus affect the effectiveness of inventory management. Summary of the invention
[0005] In order to solve at least one of the above technical problems, the present disclosure provides an inventory management method, an electronic device, a storage medium and a program product.
[0006] According to one aspect of the present disclosure, there is provided an inventory management method, comprising: Obtaining the current inventory quantities corresponding to multiple inventory types of any item to be managed: obtaining the current unit inventory costs corresponding to the multiple inventory types according to the accounting methods corresponding to the multiple inventory types; Multiplying the current inventory quantities corresponding to the multiple inventory types and the current unit inventory costs to obtain the current inventory costs corresponding to the multiple inventory types; Acquire the target inventory of the item to be managed according to the current inventory costs corresponding to the multiple inventory types; The target inventory is used for inventory management of the items to be managed.
[0007] According to at least one embodiment of the present disclosure, the inventory management method further includes, before obtaining the current inventory amounts corresponding to the multiple inventory types of any item to be managed: Receive an inventory change instruction for the item to be managed; Controlling the inventory quantities corresponding to the multiple inventory types of the item to be managed according to the inventory change indication to obtain the changed inventory of the item to be managed; The obtaining of the current inventory quantities corresponding to the multiple inventory types of any to-be-managed item specifically includes: obtaining the current inventory quantities corresponding to the multiple inventory types of the to-be-managed item according to the changed inventory.
[0008] According to the inventory management method of at least one embodiment of the present disclosure, when the inventory change indication includes a warehousing indication, controlling the inventory quantities corresponding to multiple inventory types of the item to be managed according to the inventory change indication includes: Acquire the first inventory type and the storage quantity of the item to be managed according to the storage instruction; Acquire the initial inventory quantity corresponding to the first inventory type of the item to be managed when receiving the warehousing instruction; The inventory quantity corresponding to the first inventory type of the item to be managed is controlled according to the sum of the initial inventory quantity and the warehoused quantity corresponding to the first inventory type.
[0009] According to the inventory management method of at least one embodiment of the present disclosure, when the inventory change indication includes a warehouse-out indication, controlling the inventory quantities corresponding to multiple inventory types of the to-be-managed item according to the inventory change indication includes: According to the outbound instruction, obtain the second inventory type and outbound quantity of the item to be managed; Acquire the initial inventory quantity corresponding to the second inventory type of the item to be managed when receiving the outbound instruction; The inventory quantity corresponding to the second inventory type of the item to be managed is controlled according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity.
[0010] According to the inventory management method of at least one embodiment of the present disclosure, the step of controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity and the outbound quantity corresponding to the second inventory type includes: Determine whether the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity; If it is not less than, the inventory quantity corresponding to the second inventory type of the item to be managed is controlled according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity.
[0011] According to the inventory management method of at least one embodiment of the present disclosure, when the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity, controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity, further includes: Subtract the corresponding initial inventory quantity from the outbound quantity corresponding to the second inventory type to obtain the outbound transfer quantity; converting the inventory corresponding to the third inventory type into the second inventory type according to the outbound transfer amount; Adding the initial inventory quantity corresponding to the second inventory type and the outbound transfer quantity to obtain the outbound initial quantity corresponding to the second inventory type; and controlling the inventory quantity corresponding to the third inventory type of the item to be managed according to the outbound transfer quantity; Controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial outbound quantity and the outbound quantity corresponding to the second inventory type; The third inventory type is an inventory type other than the second inventory type among the multiple inventory types of the item to be managed.
[0012] According to the inventory management method of at least one embodiment of the present disclosure, when the inventory change indication includes a return indication, controlling the inventory quantities corresponding to multiple inventory types of the item to be managed according to the inventory change indication includes: Acquire the fourth inventory type and return quantity of the returned item to be managed according to the return instruction; Acquire the initial inventory quantity corresponding to the fourth inventory type of the item to be managed when receiving the return instruction; Determining whether the return instruction is a consumer return instruction or a factory return instruction; When the return instruction is a consumer return instruction, the inventory quantity corresponding to the fourth inventory type of the item to be managed is controlled according to the sum of the initial inventory quantity corresponding to the fourth inventory type and the return quantity.
[0013] According to another aspect of the present disclosure, an electronic device is provided, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the inventory management method of any one embodiment of the present disclosure.
[0014] According to another aspect of the present disclosure, a readable storage medium is provided, wherein the readable storage medium stores execution instructions, and when the execution instructions are executed by a processor, the inventory management method of any embodiment of the present disclosure is implemented.
[0015] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the inventory management method according to any one of the embodiments of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0017] Figure 1 The process of the inventory management method of one embodiment of the present disclosure is Figure 1 .
[0018] Figure 2 The process of the inventory management method of one embodiment of the present disclosure is Figure 2 .
[0019] Figure 3 yes Figure 2 A flowchart of the inventory management method in the inventory management method shown.
[0020] Figure 4 yes Figure 2 The flowchart of the outbound management method in the inventory management method shown.
[0021] Figure 5 yes Figure 4 The process of the outbound control method in the outbound management method shown Figure 1 .
[0022] Figure 6 yes Figure 4 The process of the outbound control method in the outbound management method shown Figure 2 .
[0023] Figure 7 yes Figure 2 The flow of the return management method in the inventory management method shown Figure 1 .
[0024] Figure 8 yes Figure 2 The flow of the return management method in the inventory management method shown Figure 2 .
[0025] Fig. 9 yes Figure 8 The process of return control method in the return management method shown Figure 1 .
[0026] Fig.10 yes Figure 8 The process of return control method in the return management method shown Figure 2.
[0027] Fig.11 An exemplary flow chart of an inventory management method according to the present disclosure is shown.
[0028] Fig.12 This is a schematic structural diagram of an inventory management device according to another embodiment of the present disclosure. Figure 1 .
[0029] Fig.13 This is a schematic structural diagram of an inventory management device according to another embodiment of the present disclosure. Figure 2 .
[0030] Fig.14 It is a schematic block diagram of the structure of an electronic device equipped with an inventory management device according to another embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The present disclosure is further described in detail below in conjunction with the accompanying drawings and examples. It is understood that the specific examples described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0032] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0033] Inventory management is an indispensable part of an enterprise. By adopting modern inventory management technology and systems, enterprises can maintain their leading position in the fierce market competition, optimize resource allocation and maximize operational efficiency. Taking fast-moving consumer goods enterprises as an example, inventory management is crucial for fast-moving consumer goods enterprises because it is directly related to the profitability, market competitiveness and customer satisfaction of fast-moving consumer goods enterprises. Effective inventory management can help fast-moving consumer goods enterprises reduce costs, improve capital turnover and customer satisfaction. Improper inventory management may lead to inventory backlogs, slow capital turnover, and even cause inventory expiration to damage the interests of the enterprise. According to the accounting-related factors such as commodity ownership, the appropriate inventory cost calculation method is adopted to ensure the accurate accounting of inventory costs, which can solve the problem of difficult cost control in fast-moving consumer goods inventory management; however, when a fast-moving consumer product, such as brand A, type B shampoo, includes both self-owned and agency types in the inventory, due to the different ownership of self-owned and agency-type products, the same inventory cost calculation method for all shampoos will affect the accuracy of inventory cost accounting, and thus affect the effect of fast-moving consumer goods inventory management.
[0034] To this end, the present disclosure proposes an inventory management method, electronic device, storage medium and program product, which calculate the inventory cost of different types of the same commodity respectively, thereby improving the accuracy of inventory cost calculation and improving the effect of inventory management. When a user needs to manage the inventory of a certain commodity, he can send a corresponding instruction to an electronic device such as a server, and the server or other electronic device performs the corresponding inventory management operation after receiving the instruction.
[0035] For the convenience of description and to make the technical solutions of the specific implementation methods of the present disclosure easier to understand, before describing the inventory management method implemented by the present disclosure, the technical terms involved in the specific implementation methods of the present disclosure are defined as follows: Inventory refers to the resources held by an enterprise for sales, manufacturing and use, including raw materials, work-in-progress, finished products and other items used to support production and sales.
[0036] Inventory type is a way of classifying inventory items. It can be classified according to the ownership and transaction mode of the inventory, such as self-owned type (full ownership) and agent type (producers or suppliers entrust other companies to sell on their behalf). It can also be classified according to other types that affect inventory cost accounting.
[0037] Inventory, also known as stock quantity, refers to the quantity of goods or products held by a business or organization and available for sale or use at a specific point in time.
[0038] Unit inventory cost refers to the average cost incurred by a company for storing and holding each unit of inventory item.
[0039] Consumer returns refer to the process in which buyers decide to return goods to retailers for various reasons after purchasing a product.
[0040] Return to Manufacturer (RTM) is the process of returning merchandise from a retailer to a manufacturer.
[0041] Figure 1 FIG. 1 is a schematic diagram showing the overall process of an inventory management method M100 according to an embodiment of the present disclosure. Figure 1 The method shown includes steps S110 to S140. The method can be executed by an electronic device such as a server.
[0042] Specifically, Figure 1 The methods shown include: Step S110: Obtain the current inventory quantities corresponding to multiple inventory types of any item to be managed.
[0043] In some embodiments of the present disclosure, taking the example that the inventory types of the items to be managed in step S110 include the own type and the proxy type, the current inventory corresponding to the own type and the current inventory corresponding to the proxy type can be obtained respectively through step S110. Obtaining the current inventory corresponding to multiple inventory types of any item to be managed through step S110 can facilitate the subsequent management of the items to be managed based on multiple inventory types. The items to be managed can be raw materials (such as iron ore and coal in steel mills; steel, rubber, plastic, etc. in automobile manufacturing plants), work-in-progress (such as partially assembled vehicles on automobile assembly lines, or fabrics being cut and sewn in clothing factories), finished products (such as factory-made refrigerators, washing machines, mobile phones, etc.) and other items used to support production and sales.
[0044] In order to facilitate the inventory management of the items to be managed, the items to be managed are classified and managed according to a plurality of inventory types in step S110.
[0045] Step S120, obtaining current unit inventory costs corresponding to the multiple inventory types according to the accounting methods corresponding to the multiple inventory types.
[0046] In some embodiments of the present disclosure, the accounting method in step S120 can be First In First Out (FIFO), Last In First Out (LIFO), weighted average or moving weighted average, etc. Specifically, when the inventory type is owned, the moving weighted average method can be used; when the inventory type is an agent type, the first-in first-out method can be used. Calculating the inventory cost using the accounting method corresponding to the inventory type in step S120 can improve the accuracy of inventory cost accounting.
[0047] Step S130 , multiplying the current inventory quantities corresponding to the multiple inventory types and the current unit inventory costs to obtain the current inventory costs corresponding to the multiple inventory types.
[0048] In some embodiments of the present disclosure, for a certain inventory type among multiple inventory types, the current inventory cost is obtained through step S130 by multiplying the current inventory quantity corresponding to the inventory type by the current unit inventory cost corresponding to the inventory type to obtain the current inventory cost corresponding to the inventory type.
[0049] Step S140: acquiring the target inventory of the item to be managed according to the current inventory costs corresponding to the multiple inventory types.
[0050] In some embodiments of the present disclosure, a cost benchmark can be pre-set, and the target inventory can be obtained only based on the current inventory cost and the cost benchmark when obtaining the target inventory through step S140; in order to improve the effect of inventory management, in addition to the current inventory cost and the cost benchmark, the target inventory can also be obtained through step S140. Comprehensive consideration of factors such as demand forecasts, inventory turnover, safety inventory levels, and possible future cost changes. The target inventory obtained through step S140 is used for inventory management of the goods to be managed. The current inventory cost used when obtaining the target inventory can be the total inventory cost corresponding to all inventory types, or the inventory cost corresponding to each inventory type.
[0051] Taking the example of obtaining the target inventory based on the current inventory cost and the cost benchmark, the current inventory cost and the cost benchmark can be compared; if the current inventory cost is greater than the cost benchmark, the target inventory obtained is less than the current inventory. When managing inventory through the target inventory, you can reduce the inventory and reduce the inventory cost through sales or factory returns; if the current inventory cost is equal to the cost benchmark, you can consider not taking any action; if the current inventory cost is less than the cost benchmark, the target inventory obtained is greater than the current inventory. When managing inventory through the target inventory, you can consider increasing the inventory.
[0052] The pre-set cost benchmark can be either fixed or variable, depending on the specific method and objectives for setting the cost benchmark. The cost benchmark reflects the expected cost level or cost control target, and its setting is usually based on a variety of historical factors, including historical data, industry standards, budget targets, cost efficiency targets, and market conditions. Among them, the fixed cost benchmark is usually set based on long-term goals or standards. This cost benchmark remains unchanged for a certain period of time unless its long-term goals are actively adjusted or industry standards change significantly; the variable cost benchmark is regularly revised according to changes in the external environment or adjustments to internal strategies. The variable cost benchmark is more flexible and can better adapt to changes in market and economic conditions, helping to adjust cost control strategies in a timely manner.
[0053] The inventory management method provided in this embodiment determines the inventory cost through the accounting method of the commodity to be managed, and then obtains the target inventory of the commodity to be managed, so as to perform inventory management. In this method, the accounting method is related to the inventory type, which solves the problem in the prior art that when the commodity includes multiple types (such as self-owned types and agent types), the use of a unified method to calculate the inventory cost will affect its accuracy, thereby affecting the effect of inventory management, because different types of commodities have different performances in pricing-related factors.
[0054] Furthermore, if Figure 2 As shown, the inventory management method provided by the present disclosure may further include, before step S110: Step S150: receiving an inventory change indication of the item to be managed.
[0055] In some embodiments of the present disclosure, the inventory change indication in step S150 may be one or more of a storage indication, a storage out indication, and a return indication. For example, the inventory change indication may be the storage, storage out and / or return of X type of product X, and / or the return of product X by the consumer.
[0056] Step S160, controlling the inventory quantities corresponding to the multiple inventory types of the item to be managed according to the inventory change indication, and obtaining the changed inventory of the item to be managed.
[0057] At this time, step S110 specifically involves obtaining the current inventory quantities corresponding to multiple inventory types of the item to be managed according to the changed inventory.
[0058] The inventory management method provided by the present disclosure may include multiple inventory change instructions before step S110. The multiple inventory change instructions may be the same or different. When multiple inventory change instructions are included, the process of implementing inventory management is similar to Figure 2 To improve processing efficiency, the control process of step S160 can be executed periodically, that is, all inventory change instructions within the period are uniformly processed and then controlled.
[0059] In some embodiments of the present disclosure, when the inventory change indication is an incoming warehouse indication and / or a consumer return indication, step S160 can be used to control the increase in inventory quantities corresponding to multiple inventory types of the items to be managed; when the inventory change indication is an outgoing warehouse indication and / or a return to factory indication, step S160 can be used to control the reduction in inventory quantities corresponding to multiple inventory types of the items to be managed.
[0060] Specifically, Figure 3 As shown, when the inventory change indication includes a storage indication, step S160 may include: step S161, obtaining the first inventory type and storage quantity of the item to be managed according to the storage indication; step S162, obtaining the initial inventory quantity corresponding to the first inventory type of the item to be managed when the storage indication is received; step S163, controlling the inventory quantity corresponding to the first inventory type of the item to be managed according to the sum of the initial inventory quantity and storage quantity corresponding to the first inventory type. The first inventory type in step S161 is at least one inventory type among multiple inventory types of the item to be managed; the initial inventory quantity obtained by step S162 is the existing quantity of the item to be managed of the first inventory type in the warehouse or storage location when the storage indication is received; before receiving all inventory change indications, the quantity of items stored in the warehouse or storage location may be 0.
[0061] For example, purchase order PO1 purchases 10 self-owned type X commodities, and purchase order PO2 purchases 15 agent type X commodities. Assuming that the initial inventory of self-owned type X commodities is 100, and the initial inventory of agent type X commodities is 200, then through step S163, the inventory of self-owned type X commodities is controlled to be 100+10=110, and the inventory of agent type X commodities is controlled to be 200+15=215.
[0062] Taking the moving weighted average as an example, after each entry into the warehouse, the unit inventory cost can be calculated using the following formula: Unit inventory cost = (original inventory cost + current purchase cost) / (original inventory quantity + current purchase quantity).
[0063] Specifically, Figure 4 As shown, when the inventory change indication includes a delivery indication, step S160 may include: step S164, obtaining the second inventory type and delivery quantity of the item to be managed according to the delivery indication; step S165, obtaining the initial inventory quantity corresponding to the second inventory type of the item to be managed when the delivery indication is received; step S166, controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity and the delivery quantity corresponding to the second inventory type. The second inventory type in step S164 is at least one inventory type among the multiple inventory types of the item to be managed; the delivery policy corresponding to the delivery indication in step S164 may be first-in-first-out, last-in-first-out, random, based on validity period, etc. The initial inventory quantity obtained by step S165 is the existing quantity of the item to be managed of the second inventory type in the warehouse or storage location when the delivery indication is received.
[0064] At this time, if Figure 5 As shown, step S166 may include: step S1661, judging whether the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity; if it is determined through step S1661 that the initial inventory quantity corresponding to the second inventory type is not less than the outbound quantity, executing step S1662; step S1662, controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity. Further, if it is determined through step S1661 that the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity, as Figure 6As shown, step S166 may also include: step S1663, subtracting the corresponding initial inventory from the outbound quantity corresponding to the second inventory type to obtain the outbound transfer quantity; step S1664, converting the inventory corresponding to the third inventory type to the second inventory type according to the outbound transfer quantity; step S1665, adding the initial inventory corresponding to the second inventory type and the outbound transfer quantity to obtain the outbound initial quantity corresponding to the second inventory type; step S1666, controlling the inventory corresponding to the third inventory type of the item to be managed according to the outbound transfer quantity; step S1667, controlling the inventory corresponding to the second inventory type of the item to be managed according to the difference between the outbound initial quantity corresponding to the second inventory type and the outbound quantity; wherein the third inventory type is an inventory type other than the second inventory type among the multiple inventory types of the item to be managed.
[0065] Take the example that sales order S01 sells 15 self-owned type X products and sales order S02 sells 50 agent type X products. Assuming that the initial inventory of self-owned type X products is 60 and the initial inventory of agent type X products is 40, it is determined through step S1661 that the initial inventory of self-owned type X products is greater than the outbound quantity, and the initial inventory of agent type X products is less than the outbound quantity; for self-owned type X products, the inventory of self-owned type X products can be controlled to 6 through step S1662. 0-15=45; for the proxy type of goods, the outbound transfer quantity obtained by step S1663 is 50-40=10; 10 self-type X goods are converted to the proxy type by step S1664; the outbound initial quantity corresponding to the proxy type obtained by step S1665 is 10+40=50; the inventory quantity corresponding to the third inventory type is controlled to 45-10=35 by step S1666; the inventory quantity of the proxy type X goods is controlled to 50-50=0 by step S1667.
[0066] In particular, in order to prevent the inventory quantity corresponding to the third inventory type from not satisfying the inventory conversion, when performing inventory conversion through step S1664, any inventory type other than the second inventory type can be first obtained from the multiple inventory types of the item to be managed as the third inventory type; secondly, it is determined whether the inventory quantity corresponding to the third inventory type is greater than the outbound transfer quantity; if greater, the inventory corresponding to the third inventory type is converted to the second inventory type according to the outbound transfer quantity; if less, the third inventory type acquisition operation is re-executed until the inventory quantity corresponding to all inventory types other than the second inventory type in the multiple inventory types of the item to be managed is less than the outbound transfer quantity, and the inventory management process is terminated. In order to optimize the inventory management process, if the inventory quantity corresponding to all inventory types other than the second inventory type in the multiple inventory types of the item to be managed is less than the outbound transfer quantity, multiple inventory types other than the second inventory type in the multiple inventory types of the item to be managed can also be combined for transfer. Assume that the inventory quantity of type A of commodity X is 8, the inventory quantity of type B is 14, and the inventory quantity of type C is 3. If the outbound quantity of type C of commodity X is 20, since the inventory quantities of type A and type B are both less than the outbound transfer quantity 20-3=17, a portion of type A and type B can be transferred respectively; the transfer rules of type A and type B of commodity X can be pre-set, such as setting that all types with larger quantities are transferred, and the other types transfer the remaining part; type A transfers 30% of the outbound transfer quantity, type B transfers 70% of the outbound transfer quantity, etc. In order to facilitate cost accounting after inventory transfer, transfer records can also be generated to record the inventory cost transfer difference between different types.
[0067] Taking the moving weighted average as an example, after each shipment, the unit inventory cost can be calculated using the following formula: Unit inventory cost = (original inventory cost - current shipment cost) / (original inventory quantity - current shipment quantity). For the self-owned type, the current shipment cost can be calculated by the unit inventory cost before shipment * the current shipment quantity; for the agent type, the current shipment cost can be calculated by the original purchase price of the goods shipped this time * the current shipment quantity.
[0068] Specifically, Figure 7As shown, when the inventory change indication includes a return indication, step S160 may include: step S167, obtaining the fourth inventory type and return quantity of the return of the to-be-managed item according to the return indication; step S168, obtaining the initial inventory quantity corresponding to the fourth inventory type of the to-be-managed item when the return indication is received; step S169, determining whether the return indication is a consumer return indication or a return to factory indication; when it is determined through step S169 that the return indication is a consumer return indication, executing step S170; step S170, controlling the inventory quantity corresponding to the fourth inventory type of the to-be-managed item according to the sum of the initial inventory quantity and the return quantity corresponding to the fourth inventory type. Furthermore, when the return indication is a return to factory indication, as Figure 8 As shown, step S160 may also include: step S171, controlling the inventory corresponding to the fourth inventory type of the item to be managed according to the difference between the initial inventory corresponding to the fourth inventory type and the return quantity. The fourth inventory type in step S167 is at least one inventory type among the multiple inventory types of the item to be managed; the initial inventory corresponding to the fourth inventory type obtained in step S168 is the existing quantity of the item to be managed of the fourth inventory type in the warehouse or storage location when the return instruction is received.
[0069] Among them, Fig. 9 As shown, step S171 may include: step S1711, determining whether the initial inventory quantity corresponding to the fourth inventory type is less than the return quantity; when it is determined by step S1711 that the initial inventory quantity corresponding to the fourth inventory type is not less than the return quantity, executing step S1712; step S1712, controlling the inventory quantity corresponding to the fourth inventory type of the item to be managed according to the difference between the initial inventory quantity corresponding to the fourth inventory type and the return quantity. Further, as Fig.10 As shown, when it is determined through step S1711 that the initial inventory quantity corresponding to the fourth inventory type is less than the return quantity, step S171 may also include: step S1713, subtracting the corresponding initial inventory quantity from the return quantity corresponding to the fourth inventory type to obtain the return transfer quantity; step S1714, converting the inventory corresponding to the fifth inventory type to the fourth inventory type according to the return transfer quantity; step S1715, adding the initial inventory quantity corresponding to the fourth inventory type and the return transfer quantity to obtain the return initial quantity corresponding to the fourth inventory type; step S1716, controlling the inventory quantity corresponding to the fifth inventory type of the item to be managed according to the return transfer quantity; step S1717, controlling the inventory quantity corresponding to the fourth inventory type of the item to be managed according to the difference between the return initial quantity corresponding to the fourth inventory type and the return quantity; wherein the fifth inventory type is an inventory type other than the fourth inventory type among the multiple inventory types of the item to be managed.
[0070] For example, a consumer returns 3 self-owned type X products and 10 agent type X products. Assuming that the initial inventory of the self-owned type X products is 30 and the initial inventory of the agent type X products is 50, the inventory of the self-owned type X products is controlled to be 3+30=33 and the inventory of the agent type X products is controlled to be 10+50=60 through step S170.
[0071] Taking the moving weighted average as an example, after each consumer returns a product, the unit inventory cost can be calculated using the following formula: Unit inventory cost = (original inventory cost + current return cost) / (original inventory quantity + current return quantity); Among them, the current return cost is the outbound cost of the product corresponding to this return when it leaves the warehouse.
[0072] Taking the case of returning 30 self-owned X commodities and 50 agent-owned X commodities to the manufacturer as an example, assuming that the initial inventory of self-owned X commodities is 53 and the initial inventory of agent-owned X commodities is 40, it is determined through step S1711 that the initial inventory of self-owned X commodities is greater than the return quantity, and the initial inventory of agent-owned X commodities is less than the outbound quantity; for self-owned X commodities, the inventory corresponding to the self-owned type is controlled to be 53-30=23 through step S1712; for agent-owned X commodities, the return transfer amount obtained through step S1713 is 50-40=10; 10 self-owned X commodities are converted to agent type through step S1714; the initial return amount corresponding to the agent type obtained through step S1715 is 10+40=50; the inventory corresponding to the fifth inventory obtained through step S1616 is 23-10=13; and the inventory of agent-owned X commodities is controlled to be 50-50=0 through step S1617.
[0073] In some embodiments of the present disclosure, when two or more inventory types of commodity X are shipped out or returned to the factory at the same time, the execution order can be random, or the execution priority can be set and executed according to the priority. The type with an initial inventory quantity greater than the shipment / return quantity can be executed first, and then the type that requires inventory conversion can be executed.
[0074] In some embodiments of the present disclosure, in order to facilitate inventory management, each inventory change, such as purchase information, delivery information, and return information, can be recorded in a record sheet to facilitate subsequent use.
[0075] Fig.11 An exemplary flow chart of an inventory management method according to the present disclosure is shown.
[0076] Fig.11 In the exemplary flow chart shown, the initial inventory quantity of the self-owned type X commodity is 0, and the initial inventory quantity of the agent type X commodity is 130.
[0077] refer to Fig.11 When the server receives the warehousing instruction of the own type warehousing 100, it obtains the warehousing quantity 100 of the own type of the X commodity; obtains the initial inventory quantity 0 corresponding to the own type of the X commodity when receiving the warehousing instruction; and controls the inventory quantity corresponding to the own type of the X commodity to 0+100.
[0078] When the server receives the outbound instruction of the own type outbound 110 and the proxy type outbound 105, it obtains the outbound quantity 110 of the own type and the outbound quantity 105 of the proxy type of the X commodity; obtains the initial inventory 100 of the own type and the initial inventory 130 of the proxy type of the X commodity when receiving the outbound instruction; determines whether the initial inventory 100 corresponding to the own type is less than the outbound quantity 110; if it is less, subtracts the initial inventory 100 from the outbound quantity 110 of the own type to obtain the outbound transfer quantity 10; Convert 10 stocks corresponding to the proxy type to the own type; add the initial inventory quantity 100 of the own type and the outbound transfer quantity 10 to obtain the outbound initial quantity 110 of the own type; control the inventory quantity corresponding to the own type to be the difference between the outbound initial quantity 100 and the outbound quantity 100 to 0; control the inventory quantity corresponding to the proxy type to be 130-10=120; determine whether the inventory quantity 120 corresponding to the proxy type is less than the outbound quantity 105; if not, control the inventory quantity corresponding to the proxy type to be 120-105=15.
[0079] When the server receives a return instruction from a consumer of own type 50 and agent type 30, it obtains the return quantity of own type 50 and the return quantity of agent type 30; obtains the initial inventory of own type 0 and the initial inventory of agent type 15 when receiving the return instruction; determines that the return instruction is a consumer return instruction, controls the inventory corresponding to the own type to 0+50=50 and the inventory corresponding to the agent type to 30+15=45.
[0080] When the server receives a return instruction of the owned type 30 and the agent type 48 to return the manufacturer, the owned type return quantity 30 and the agent type return quantity 48 are obtained; the initial inventory quantity 50 of the owned type and the initial inventory quantity 45 of the agent type are obtained when the return instruction is received; it is determined that the return instruction is a return instruction to the factory, and the initial inventory quantity 50 corresponding to the owned type is greater than the return quantity 30, and the initial inventory quantity 45 corresponding to the agent type is less than the return quantity 48; the inventory quantity corresponding to the owned type is controlled to be 20, which is the difference between the initial inventory quantity 50 and the return quantity 30; the agent type return quantity 48 is subtracted from the initial inventory quantity 45 to obtain the return transfer quantity 3; the owned type inventory is transferred 3 to the agent inventory; the agent type initial inventory quantity 45 is added to the return transfer quantity 3 to obtain the return initial quantity 48; the agent type inventory is controlled to be 0, which is the difference between the return initial quantity 48 and the return quantity 48; the owned type inventory is controlled to be 17, which is the difference between the current inventory quantity 20 and the return transfer quantity 3.
[0081] According to the corresponding accounting methods of the own type and the agent type, the unit inventory cost 5 corresponding to the own type and the unit inventory cost 3 corresponding to the agent type are obtained.
[0082] Multiply the current inventory quantity 17 corresponding to the owned type by the unit inventory cost 5 to obtain the current inventory cost 85 corresponding to the owned type; multiply the current inventory quantity 0 corresponding to the agent type by the unit inventory cost 3 to obtain the current inventory cost 0 corresponding to the agent type.
[0083] The target inventory of the X product is controlled according to the current inventory cost 85 corresponding to the own type and the current inventory cost 0 corresponding to the agent type.
[0084] In some embodiments of the present disclosure, the above process can be used to control the inventory level in real time after each change indication is received. In order to reduce processing costs, periodic control can also be performed; for example, the inventory level can be controlled based on the integration of all change indications received within a day.
[0085] Based on any of the above embodiments, the present disclosure further provides an inventory management device 100 (corresponding to an inventory management method).
[0086] Fig.12 It is a schematic block diagram of the structure of an inventory management device 100 according to an embodiment of the present disclosure.
[0087] like Fig.12 As shown, the inventory management device 100 includes: The inventory quantity acquisition module 110 is used to acquire the current inventory quantity corresponding to multiple inventory types of any item to be managed.
[0088] The inventory cost acquisition module 120 is used to acquire the current unit inventory costs corresponding to multiple inventory types according to the accounting methods corresponding to the multiple inventory types.
[0089] The cost calculation module 130 is used to multiply the current inventory quantities corresponding to the multiple inventory types and the current unit inventory costs to obtain the current inventory costs corresponding to the multiple inventory types.
[0090] The inventory control module 140 is used to obtain the target inventory of the item to be managed according to the current inventory costs corresponding to the multiple inventory types.
[0091] The target inventory is used for inventory management of the items to be managed.
[0092] Each of the above modules can be implemented by a computer program module. Fig.12 The illustrated inventory management device 100 may be implemented based on a computer program module architecture.
[0093] Furthermore, if Fig.13 As shown, the inventory management device provided by the present disclosure may also include: The indication receiving module 150 is used to receive the inventory change indication of the item to be managed.
[0094] The inventory change module 160 is used to control the inventory quantities corresponding to the multiple inventory types of the item to be managed according to the inventory change indication, and obtain the changed inventory of the item to be managed.
[0095] At this time, the inventory quantity acquisition module 110 is specifically used to acquire the current inventory quantity corresponding to multiple inventory types of the item to be managed according to the changed inventory.
[0096] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0097] The execution subject of the inventory management method in the specific implementation manner of the present disclosure may be an electronic device such as a server.
[0098] Therefore, based on any of the above embodiments, the present disclosure also provides an electronic device, which can execute the inventory management method of any of the embodiments described above in the present disclosure, and the inventory management device of any of the embodiments described above can be configured on the electronic device.
[0099] Fig.14 1 is a schematic block diagram of the structure of an electronic device 1000 equipped with an inventory management device 100 according to an embodiment of the present disclosure.
[0100] The hardware structure of the electronic device 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300 and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.
[0101] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.
[0102] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.
[0103] The present disclosure also provides a computer program product. The method of the present disclosure can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part.
[0104] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0105] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0106] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0107] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0108] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0109] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.
[0110] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0111] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. An inventory management method, characterized in that: include: Obtaining the current inventory quantities corresponding to multiple inventory types of any item to be managed: obtaining the current unit inventory costs corresponding to the multiple inventory types according to the accounting methods corresponding to the multiple inventory types; Multiplying the current inventory quantities corresponding to the multiple inventory types and the current unit inventory costs to obtain the current inventory costs corresponding to the multiple inventory types; as well as Acquire the target inventory of the item to be managed according to the current inventory costs corresponding to the multiple inventory types; The target inventory is used for inventory management of the items to be managed.
2. The inventory management method according to claim 1, characterized in that: Before obtaining the current inventory amounts corresponding to the multiple inventory types of any item to be managed, the method further includes: receiving an inventory change instruction of the item to be managed; and Controlling the inventory quantities corresponding to the multiple inventory types of the item to be managed according to the inventory change indication to obtain the changed inventory of the item to be managed; The obtaining of the current inventory quantities corresponding to the multiple inventory types of any to-be-managed item specifically includes: obtaining the current inventory quantities corresponding to the multiple inventory types of the to-be-managed item according to the changed inventory.
3. The inventory management method according to claim 2, characterized in that: When the inventory change indication includes a warehousing indication, controlling the inventory quantities corresponding to the multiple inventory types of the item to be managed according to the inventory change indication includes: Acquire the first inventory type and the storage quantity of the item to be managed according to the storage instruction; Acquire the initial inventory quantity corresponding to the first inventory type of the item to be managed when receiving the warehousing instruction; and The inventory quantity corresponding to the first inventory type of the item to be managed is controlled according to the sum of the initial inventory quantity and the warehoused quantity corresponding to the first inventory type.
4. The inventory management method according to claim 2, characterized in that: When the inventory change instruction includes a warehouse-out instruction, controlling the inventory quantities corresponding to the multiple inventory types of the to-be-managed item according to the inventory change instruction includes: Acquire the second inventory type and outbound quantity of the item to be managed according to the outbound instruction; Acquire the initial inventory quantity corresponding to the second inventory type of the item to be managed when receiving the outbound instruction; and The inventory quantity corresponding to the second inventory type of the item to be managed is controlled according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity.
5. The inventory management method according to claim 4, characterized in that: The controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity includes: Determine whether the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity; and If it is not less than, the inventory quantity corresponding to the second inventory type of the item to be managed is controlled according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity.
6. The inventory management method according to claim 5, characterized in that: When the initial inventory quantity corresponding to the second inventory type is less than the outbound quantity, controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial inventory quantity corresponding to the second inventory type and the outbound quantity further includes: Subtract the corresponding initial inventory quantity from the outbound quantity corresponding to the second inventory type to obtain the outbound transfer quantity; converting the inventory corresponding to the third inventory type into the second inventory type according to the outbound transfer amount; Adding the initial inventory quantity corresponding to the second inventory type and the outbound transfer quantity to obtain the outbound initial quantity corresponding to the second inventory type; controlling the inventory quantity corresponding to the third inventory type of the item to be managed according to the outbound transfer quantity; and Controlling the inventory quantity corresponding to the second inventory type of the item to be managed according to the difference between the initial outbound quantity and the outbound quantity corresponding to the second inventory type; The third inventory type is an inventory type other than the second inventory type among the multiple inventory types of the item to be managed.
7. The inventory management method according to claim 2, characterized in that: When the inventory change instruction includes a return instruction, controlling the inventory quantities corresponding to the multiple inventory types of the to-be-managed item according to the inventory change instruction includes: Acquire the fourth inventory type and return quantity of the returned item to be managed according to the return instruction; Acquire the initial inventory quantity corresponding to the fourth inventory type of the item to be managed when receiving the return instruction; Determining whether the return instruction is a consumer return instruction or a factory return instruction; and When the return instruction is a consumer return instruction, the inventory quantity corresponding to the fourth inventory type of the item to be managed is controlled according to the sum of the initial inventory quantity corresponding to the fourth inventory type and the return quantity.
8. An electronic device, characterized in that: include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instructions stored in the memory so that the processor executes the inventory management method according to any one of claims 1 to 7.
9. A readable storage medium, characterized in that: The readable storage medium stores execution instructions, which are used to implement the inventory management method according to any one of claims 1 to 7 when executed by a processor.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the inventory management method according to any one of claims 1 to 7 is implemented.