A store-oriented allocation engine calculation method and a storage medium
By using an automated store allocation engine to calculate inventory, the problem of low efficiency in manual replenishment in the retail industry has been solved, enabling fast and accurate replenishment decisions and adapting to the needs of time-sensitive businesses.
Patent Information
- Application Number
- CN202611594327.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-15
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the allocation of store replenishment in the retail industry mainly relies on manual calculation or estimation, which is inefficient and slow to respond, making it difficult to adapt to high-time-sensitivity business scenarios such as fresh food direct replenishment.
This paper presents a method for calculating the allocation volume of stores. It automates the process of configuring allocation rules, determining the total allocation volume, identifying stores that can be replenished, calculating the allocation ratio, and executing the allocation, replacing manual calculations and enabling batch processing of massive amounts of goods and numerous stores.
It significantly shortens the replenishment decision-making time, effectively adapts to the needs of time-sensitive business scenarios, and improves the efficiency and accuracy of replenishment decisions.
Smart Images

Figure CN123140844A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of inventory replenishment in the retail supply chain, and more particularly to a method and storage medium for calculating store allocation volume engines. Background Technology
[0002] In the retail industry, store replenishment is a core element in ensuring product supply and maintaining normal sales. With the diversification of retail formats, replenishment targets encompass various types, including traditional supermarkets, fresh food stores, and e-commerce stores without physical locations. Currently, replenishment allocation for these types of stores primarily relies on manual methods. Experienced replenishment personnel manually calculate or estimate the replenishment quantity allocated to each store based on historical sales data, current inventory levels, and their personal assessment of future market conditions. Faced with a massive volume of products and numerous stores, manually calculating and allocating quantities one by one is time-consuming and ill-suited for business scenarios with extremely high timeliness requirements, such as direct replenishment of fresh produce. This can easily lead to delays in replenishment decisions, affecting product stocking timing, resulting in low allocation efficiency and sluggish response times. Summary of the Invention
[0003] Therefore, there is a need to provide a store-oriented quantity allocation engine calculation method and storage medium to solve the problem of low efficiency and slow response of the current manual calculation or estimation of the replenishment quantity to be allocated to each store based on historical sales data, current inventory status and personal judgment of the future market.
[0004] To achieve the above objectives, the present invention provides a method for calculating store-wide allocation volume using an engine, comprising the following steps:
[0005] S1. Distribution rule configuration: Obtain basic configuration information, city orders and distribution rules. The basic information includes configuration name and total quantity calculation method. The distribution rules include replenishment type, planned sales date, replenishment date and replenishment store. The replenishment type includes pre-replenishment or non-pre-replenishment.
[0006] Obtain the allocation rules and binding dimensions associated with the products to be replenished. The binding dimensions include single product dimension or financial category dimension. When multiple allocation rules are associated with the products to be replenished, select the effective allocation rules according to the preset priority.
[0007] S2. Determining the total allocation: Determine the replenishment timing and obtain the total allocation based on the replenishment type;
[0008] S3. Determining Replenishable Stores: Based on the replenishment stores in the allocation rules and the preset screening conditions, the intersection of stores that simultaneously meet all the preset screening conditions is determined as the set of replenishable stores.
[0009] S4. Allocation ratio calculation: For each store in the replenishable store set, the predicted sales level is determined according to the preset strategy.
[0010] Based on the predicted sales tier used, obtain the predicted allocation ratio for each store in the set of replenishable stores.
[0011] S6. Allocation Execution: According to the preset allocation strategy and the predicted allocation ratio, the total allocation amount is allocated to each replenishable store to obtain the allocation amount for each store. The preset allocation strategy is to be executed in the order of inventory warning allocation, sales allocation, and safety stock allocation. When the total allocation amount is completed in the previous stage, the allocation will not be executed in subsequent stages.
[0012] Furthermore, in S2, the calculation of the total allocated amount, determining the replenishment timing and obtaining the total allocated amount based on the replenishment type includes the following steps:
[0013] When the replenishment type is non-pre-replenishment, the arrival status of the central warehouse is checked cyclically at a preset frequency within a preset backup time period. If the central warehouse receives goods during this period, an order is issued, and the total allocation is calculated based on the batch inventory matched with the order arrival. When the backup time period is not configured, it is only calculated once during the replenishment order calculation time.
[0014] When the replenishment type is pre-replenishment, the total allocation is calculated only once during the preset pre-replenishment calculation time, and the total allocation is calculated based on the planned order arrival quantity.
[0015] Furthermore, in the S1 allocation rule configuration, allocation rules bound to a single product dimension take precedence over allocation rules bound to a financial category dimension, and within the same dimension, the allocation rule with the most recent update time is selected.
[0016] Furthermore, in S3, the determination of replenishable stores, after determining the intersection of stores that simultaneously meet all preset screening conditions as the replenishable store set based on the replenishment stores in the allocation rules and preset screening conditions, the following steps are also included:
[0017] The set of stores eligible for restocking is filtered according to the production date rule.
[0018] Furthermore, filtering the set of stores eligible for replenishment based on the production date rule includes the following steps:
[0019] When a production date number rule is configured, the percentage of filtered stores out of the total number of candidate stores is calculated. If this percentage is not less than a preset safety net percentage threshold, the production date number rule is invalidated, and all stores are retained as the replenishable store set. If this percentage is less than the safety net percentage threshold, the production date number rule is effective, and stores with a production date number not less than a preset number and available physical inventory not less than the product of a preset coefficient and the average sales volume over the past N days are filtered out from the candidate stores. The remaining stores constitute the replenishable store set.
[0020] Furthermore, the preset safety net threshold is 20%.
[0021] Furthermore, in S4, the calculation of the allocation ratio, determining the predicted sales level according to the preset strategy includes the following steps;
[0022] Determine whether the percentage of stores with zero predicted sales of products is less than the first threshold. If so, then use the predicted sales of products.
[0023] If not, determine whether the percentage of stores with zero predicted sales for the fourth-level financial category is less than the second threshold. If so, then use the fourth-level financial category to predict sales.
[0024] If not, determine whether the percentage of stores with zero predicted sales for the third-level financial category is less than the third threshold. If so, then use the third-level financial category to predict sales.
[0025] If not, use the second-level financial category to predict sales.
[0026] Furthermore, after S4 and the calculation of the allocation ratio, but before that, the following steps are also included:
[0027] S5. Determining the replenishment coefficient and initial inventory: Obtain the initial inventory and replenishment coefficient of each store in the set of replenishable stores;
[0028] In S6, after obtaining the initial allocation for each store during the allocation execution, the following steps are also included:
[0029] After the allocation is completed, the allocation is carried out in sequence according to the replenishment coefficient and the difference allocation.
[0030] The difference allocation is as follows: calculate the difference, which is the difference between the total allocation amount and the sum of the allocation amounts of each store. If the difference is less than zero, deduct one replenishment coefficient from each store in sequence according to the preset deduction priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero.
[0031] Estimated turnover = (Initial inventory at the store + Replenishment quantity) / Forecasted sales volume during the sales period at the store.
[0032] Furthermore, the replenishment coefficient type includes dynamic replenishment coefficient or product replenishment coefficient;
[0033] If the product to be replenished is bound to a dynamic replenishment coefficient rule, the dynamic replenishment coefficient is calculated according to the dynamic replenishment coefficient rule, and the dynamic replenishment coefficient is used as the replenishment coefficient of the product to be replenished in each replenishable store. The replenishment coefficient is a dynamic replenishment coefficient, and its calculation method is: theoretical replenishment coefficient = total amount allocated this time / (number of replenishment stores * city granularity coefficient). If the theoretical replenishment coefficient is greater than 1, the value of the theoretical replenishment coefficient rounded down is taken as the dynamic replenishment coefficient; if the theoretical replenishment coefficient is less than 1, 1 is taken as the dynamic replenishment coefficient.
[0034] If the product to be replenished is not bound to a dynamic replenishment coefficient rule, then the replenishment coefficient configured in the city product file for the product to be replenished is obtained, and the replenishment coefficient is used as the replenishment coefficient for the product to be replenished in each replenishable store.
[0035] To achieve the above objectives, the present invention also provides a storage medium storing a computer program that, when executed by a processor, implements the store-oriented allocation engine calculation method as described in any of the above embodiments.
[0036] Unlike existing technologies, the above-mentioned technical solution replaces the manual calculation and estimation process by configuring the allocation rules, determining the total allocation amount, identifying the stores that can be replenished, calculating the allocation ratio, and executing the allocation. It can automatically and batch process the allocation calculation of massive amounts of goods and numerous stores, significantly shortening the replenishment decision time and effectively adapting to the needs of high-timeliness business scenarios. Attached Figure Description
[0037] Figure 1 This is a flowchart of the store-based allocation engine calculation method in this application;
[0038] Figure 2 This is a diagram illustrating the preset filtering conditions for the intersection of stores in this application;
[0039] Figure 3 This is one of the schematic diagrams illustrating the logic of pre-replenishment and non-pre-replenishment of expired inventory upon arrival in this application;
[0040] Figure 4 This is the second schematic diagram illustrating the logic of pre-replenishment and non-pre-replenishment of expired inventory upon arrival in this application.
[0041] Figure 5 This is a flowchart for the apportionment execution in this application;
[0042] Figure 6 This is one of the flowcharts for obtaining the replenishment factor in this application;
[0043] Figure 7 This is the second flowchart for obtaining the replenishment coefficient in this application;
[0044] Figure 8 This is the third flowchart for obtaining the replenishment factor in this application;
[0045] Figure 9 This is a schematic diagram of the replenishment switch in this application;
[0046] Figure 10 This is a diagram illustrating the store safety stock in this application. Detailed Implementation
[0047] To explain in detail the technical content, structural features, objectives, and effects of the technical solution, the following description is provided in conjunction with specific embodiments and accompanying drawings.
[0048] In this document, the term "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The term "embodiment" appearing in various places throughout the specification does not necessarily refer to the same embodiment, nor does it specifically limit its independence or connection with other embodiments. In principle, in this application, as long as there are no technical contradictions or conflicts, the technical features mentioned in each embodiment can be combined in any way to form corresponding implementable technical solutions.
[0049] Unless otherwise defined, the technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the use of related terms herein is merely for the purpose of describing particular embodiments and is not intended to limit this application.
[0050] In the description of this application, the term "and / or" is used to describe the logical relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A exists, B exists, and A and B exist simultaneously. Additionally, the character " / " in this document generally indicates that the preceding and following objects have an "or" logical relationship.
[0051] In this application, terms such as “first” and “second” are used only to distinguish one entity or operation from another, and do not necessarily require or imply any actual quantity, hierarchy or order relationship between these entities or operations.
[0052] Without further limitations, the use of terms such as “comprising,” “including,” “having,” or other similar expressions in this application is intended to cover non-exclusive inclusion, which does not exclude the presence of additional elements in a process, method, or product that includes the stated elements, such that a process, method, or product that includes a list of elements may include not only those defined elements but also other elements not expressly listed, or elements inherent to such a process, method, or product.
[0053] Similar to the interpretation in the Patent Examination Guidelines, in this application, expressions such as "greater than," "less than," and "exceeding" are understood to exclude the stated number; expressions such as "above," "below," and "within" are understood to include the stated number. Furthermore, in the description of the embodiments in this application, "multiple" means two or more (including two), and similar expressions related to "multiple" are also interpreted in this way, such as "multiple groups" and "multiple times," unless otherwise explicitly specified.
[0054] In the description of the embodiments of this application, the space-related expressions used, such as "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "vertical," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," and "circumferential," indicate the orientation or positional relationship based on the orientation or positional relationship shown in the specific embodiments or drawings. They are only for the purpose of describing the specific embodiments of this application or for the reader's understanding, and do not indicate or imply that the device or component referred to must have a specific position, a specific orientation, or be constructed or operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.
[0055] Unless otherwise expressly specified or limited, the terms "installation," "connection," "linking," "fixing," and "setting," as used in the description of the embodiments of this application, should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two components or the interaction between two components. For those skilled in the art to which this application pertains, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.
[0056] Please see Figure 1 This invention provides a method for calculating store allocation volume using an engine, comprising the following steps:
[0057] S1. Distribution rule configuration: Obtain basic configuration information, city orders and distribution rules. The basic information includes configuration name and total quantity calculation method. The distribution rules include replenishment type, planned sales date, replenishment date and replenishment store. The replenishment type includes pre-replenishment or non-pre-replenishment.
[0058] Obtain the allocation rules and binding dimensions associated with the products to be replenished. The binding dimensions include single product dimension or financial category dimension. When multiple allocation rules are associated with the products to be replenished, select the effective allocation rules according to preset priority, with the most recently bound rules having higher priority.
[0059] S2. Determining the total allocation: Determine the replenishment timing and obtain the total allocation based on the replenishment type;
[0060] S3. Determining Replenishable Stores: Based on the replenishment stores in the allocation rules and the preset screening conditions, the intersection of stores that simultaneously meet all the preset screening conditions is determined as the set of replenishable stores.
[0061] S4. Allocation ratio calculation: For each store in the replenishable store set, the predicted sales level is determined according to the preset strategy.
[0062] Based on the predicted sales tier used, obtain the predicted allocation ratio for each store in the set of replenishable stores.
[0063] S6. Allocation Execution: According to the preset allocation strategy and the predicted allocation ratio of S4, the total allocation amount of S2 is allocated to each replenishable store determined in S3 to obtain the allocation amount of each store. The preset allocation strategy is to be executed in the order of inventory warning allocation, sales allocation, and safety stock allocation. When the total allocation amount is completed in the previous stage, the allocation will not be executed in subsequent stages.
[0064] The above technical solution has the following beneficial effects:
[0065] By configuring allocation rules, determining the total allocation amount, identifying replenishable stores, calculating the allocation ratio, and executing the allocation, the process of manual calculation and estimation is replaced. It can automatically and batch process the allocation calculation of massive amounts of goods and numerous stores, significantly shortening the replenishment decision time and effectively adapting to the needs of high-timeliness business scenarios.
[0066] In some embodiments, in S2, the calculation of the total allocated amount, determining the replenishment timing and obtaining the total allocated amount based on the replenishment type includes the following steps:
[0067] When the replenishment type is non-pre-replenishment, the arrival status of the central warehouse is checked cyclically at a preset frequency within a preset backup time period. If the central warehouse receives goods during this period, an order is issued, and the total allocation is calculated based on the batch inventory matched with the order arrival. If the backup time period is not configured, the calculation is only performed once during the replenishment order calculation time.
[0068] When the replenishment type is pre-replenishment, the total allocation is calculated only once during the preset pre-replenishment calculation time, and the total allocation is calculated based on the planned order arrival quantity to generate a pre-replenishment order.
[0069] In some embodiments, in S1, the allocation rule configuration, allocation rules bound to a single product dimension take precedence over allocation rules bound to a financial category dimension, and the allocation rule with the most recent update time is selected within the same dimension.
[0070] In some embodiments, after determining the set of replenishable stores in S3, based on the replenishable stores in the distribution rules and the preset filtering conditions, the intersection of stores that simultaneously meet all preset filtering conditions is determined as the set of replenishable stores, the following steps are also included:
[0071] The set of stores eligible for restocking is filtered according to the production date rule.
[0072] In some embodiments, filtering the set of stores eligible for restocking based on production date rules includes the following steps:
[0073] When a production date count rule is configured, the percentage of filtered stores out of the total number of candidate stores is calculated. If this percentage is not less than a preset safety net percentage threshold, the production date count rule is invalidated, and all stores are retained as the replenishable store set. If this percentage is less than the safety net percentage threshold, the production date count rule is effective, and stores with a production date count not less than a preset quantity and available physical inventory not less than the product of a preset coefficient and the average sales volume over the past N days are filtered out from the candidate stores. The remaining stores constitute the replenishable store set. Preferably, the preset safety net percentage threshold is 20%.
[0074] In some embodiments, in S4, the calculation of the allocation ratio, determining the predicted sales level according to a preset strategy includes the following steps;
[0075] Determine whether the percentage of stores with zero predicted sales of products is less than the first threshold. If so, then use the predicted sales of products.
[0076] If not, determine whether the percentage of stores with zero predicted sales for the fourth-level financial category is less than the second threshold. If so, then use the fourth-level financial category to predict sales.
[0077] If not, determine whether the percentage of stores with zero predicted sales for the third-level financial category is less than the third threshold. If so, then use the third-level financial category to predict sales.
[0078] If not, use the second-level financial category to predict sales.
[0079] Financial categories refer to a multi-level product classification system used to categorize products from broad to specific. For example, a first-level financial category could be a fresh produce section, a second-level financial category could be a fruit section, a third-level financial category could be peaches, and a fourth-level financial category could be domestic or imported peaches. The predicted sales volume for the third-level category is the total predicted sales volume for all three levels of categories; that is, the sum of the predicted sales volumes for all these categories.
[0080] In some embodiments, after S4 and before the allocation ratio calculation, the following steps are also included:
[0081] S5. Determining the replenishment coefficient and initial inventory: Obtain the initial inventory and replenishment coefficient of each store in the set of replenishable stores;
[0082] In S6, after obtaining the initial allocation for each store during the allocation execution, the following steps are also included:
[0083] After the allocation is completed, the allocation is carried out in sequence according to the replenishment coefficient and the difference allocation.
[0084] The difference allocation is as follows: calculate the difference, which is the difference between the total allocation amount and the sum of the allocation amounts of each store. If the difference is less than zero, deduct one replenishment coefficient from each store in sequence according to the preset deduction priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero.
[0085] The estimated turnover is calculated as follows: (Initial inventory at the store + Replenishment quantity) / Forecasted sales volume during the store's sales period.
[0086] Preferably, the preset deduction priority is: estimated turnover in descending order is greater than the predicted sales of the store's three-level categories in ascending order.
[0087] A lower projected turnover indicates relatively less stock and faster sales. A higher projected turnover indicates relatively more stock and slower sales. Descending order only occurs when the difference is negative (total excess, deductions will be made), with stores having higher projected turnover being deducted first. Stores with a turnover greater than 1 will be moved to the front for priority deductions. When the difference is positive (total insufficient, replenishment will be made), the order is ascending. Stores with lower projected turnover are given priority for replenishment.
[0088] In some embodiments, the replenishment factor type includes a dynamic replenishment factor or a product replenishment factor;
[0089] If the product to be replenished is bound to a dynamic replenishment coefficient rule, the dynamic replenishment coefficient is calculated according to the dynamic replenishment coefficient rule, and the dynamic replenishment coefficient is used as the replenishment coefficient of the product to be replenished in each replenishable store. The replenishment coefficient is a dynamic replenishment coefficient, and its calculation method is: theoretical replenishment coefficient = total amount allocated this time / (number of replenishment stores * city granularity coefficient). If the theoretical replenishment coefficient is greater than 1, the value of the theoretical replenishment coefficient rounded down is taken as the dynamic replenishment coefficient; if the theoretical replenishment coefficient is less than 1, 1 is taken as the dynamic replenishment coefficient.
[0090] If the product to be replenished is not bound to a dynamic replenishment coefficient rule, then the replenishment coefficient configured in the city's product file for that product is obtained, and this replenishment coefficient is used as the replenishment coefficient for that product in each replenishable store. The city granularity coefficient indicates the impact of distribution volume on the store; a larger city granularity coefficient indicates a smaller impact. It can be preset based on experience or adjusted through software algorithms. For example, based on different inventory consumption rates for different product categories, slower consumption rates indicate a smaller impact from distribution volume, thus requiring a relatively larger coefficient. Specifically, the corresponding city granularity coefficient can be set according to the numerical range of each consumption rate. Thus, determining the current inventory consumption rate for a product category allows for setting a corresponding city granularity coefficient. For example, the city granularity coefficient for Fuzhou can be set to 3, and the city granularity coefficient for Putian can be set to 2.
[0091] Please see Figures 6 to 8 In some other embodiments, the replenishment factor is obtained through the following steps:
[0092] The system determines whether the replenishment coefficient is greater than or equal to the carton size. If the replenishment coefficient is greater than or equal to the carton size, then the replenishment coefficient = carton size. If the replenishment coefficient is less than the carton size, the system determines whether the carton size is a composite number. If the carton size is a composite number, the replenishment coefficient is the largest factor less than the carton size. If the carton size is not a composite number, the system determines whether the carton size is less than a threshold (e.g., 25). If it is less, the actual replenishment coefficient is the theoretical replenishment coefficient. If not, the actual replenishment coefficient = theoretical replenishment coefficient * proportional threshold. Preferably, if the theoretical replenishment coefficient is between 0 and 1000, the actual replenishment coefficient is 5; if the theoretical replenishment coefficient is between 1001 and 2999, the actual replenishment coefficient is 10; and if the theoretical replenishment coefficient is between 3000 and 5000, the actual replenishment coefficient is 20.
[0093] In some embodiments, an ordering switch or a replenishment switch is configured for quick user operation. Stores with the switch turned on will participate in automatic ordering and replenishment calculations for that financial category, while stores with the switch turned off will not participate. The ordering switch and the replenishment switch can be controlled independently, such as... Figure 9 As shown.
[0094] In some embodiments, inventory alerts and replenishment limits are defined according to certain rules. Inventory alerts represent the lower bound of current inventory + in-transit inventory + replenishment quantity; replenishment limits represent the upper bound of current inventory + in-transit inventory + replenishment quantity. These configuration rules include: average daily sales volume of in-stock items over the past 7 / 14 / 30 days; the highest / second highest sales volume over the past 14 days; and the average daily sales volume of in-stock items over the past 7 / 14 / 30 days excluding the highest and lowest sales volumes. For products bound to these rules, the calculation is performed first according to the rules, and then corrected using the upper and lower boundaries.
[0095] In some embodiments, inventory alerts can be imported in bulk through the following entry point:
[0096] City Commodity Files - Order and Replenishment Information: Immediately update the current inventory alert / order and replenishment limit, update the inventory alert value in real time, and also update it if there is an effective date alert value / inventory alert default value / rule execution.
[0097] Batch Import of Inventory Information - Effective Date Warning Value: Configure the effective inventory warning for a specified date within the next 14 days. Multiple individual effective dates can be configured, and both the [Effective Date] and [Effective Inventory Warning Value] must be entered simultaneously. PS: If no default value for inventory warnings is set, the replenishment operation rules will still use the configured effective inventory warning value after the corresponding effective date expires.
[0098] Batch import of inventory information - default value for inventory alerts: Real-time update of all inventory alert values for the past 14 days, import alert values that take effect immediately, and a fallback value for which there are no [effective date inventory alert values] within 14 days.
[0099] Order replenishment operation rules - inventory warning rule execution results: The rules are automatically updated daily at fixed times by configuring the calculation formula. The configuration formula is: MAX([average daily sales of in-stock items in the last 7 days excluding the highest and lowest sales] * [3]). The results are executed once every 2 hours. If multiple identical "single product" and "financial category" rule configuration templates appear, only the one with the latest update time will be effective. If there are batch import details, no update will be made.
[0100] In some embodiments, such as Figure 10As shown, store safety stock includes the following indicators: average daily sales volume of in-stock items over the past 7 / 14 / 30 days, average daily sales volume forecast for the next 7 / 14 / 30 days, average daily sales volume covering the sales period, and sales volume forecast with a delayed sales period. For products with fixed-value binding rules, the safety stock is first calculated by multiplying the coefficient by the indicator value, then corrected using upper and lower limits, and finally the effective time is determined to obtain the safety stock result for allocation calculation. Rules take effect after approval; if the approval is rejected, they can be edited again. Each store's products need to maintain rule details for multiple time periods under the same rule. The effective time can be set to start calculating automatic replenishment one hour after the configured rule.
[0101] This document describes a preferred embodiment of a store-based allocation engine calculation method.
[0102] S1. Distribution rule configuration: Obtain basic configuration information, city orders and distribution rules. The basic information includes configuration name, total quantity calculation method and cycle type. The distribution rules include replenishment type, planned sales date, replenishment date and replenishment store. The replenishment type includes pre-replenishment or non-pre-replenishment.
[0103] Obtain the allocation rules and binding dimensions associated with the products to be replenished.
[0104] The cycle type can be multiple replenishments per day or one replenishment per multiple days. The total replenishment amount per cycle = city order quantity * replenishment ratio. If multiple replenishments are made per day, the replenishment ratio can be accumulated up to 100%. Alternatively, there is another formula for calculating the total replenishment amount per cycle: Total replenishment amount per cycle = order quantity of city orders corresponding to N replenishments. If there are multiple orders on a sales day, multiple replenishments correspond to multiple orders. "N replenishments" must be filled in the city order field; otherwise, it defaults to 1 replenishment. City orders and other information are user-inputted. City orders include the following information: supplier, city, order type, order type, financial category, planned arrival time, order validity period, planned sales time, replenishment wave, etc. The replenishment date in the replenishment rules refers to replenishing the city order n days before the planned sales date, where n is an integer and can be 0, 1, 2, 3, 4, 5 (0 days before: today). Each replenishment wave can be set with different store groups / stores, such as replenishing all stores in wave one, and replenishing key stores in wave two. The planned sales date includes a planned sales period. T is calculated from the replenishment date, with T+0 representing the day of replenishment and T+1 representing the day after replenishment. The replenishment date can be n days before the planned sales date, where n can be 0, 1, 2, 3, 4, or 5 (0 days before: the current day). The order fulfillment rules can also include the replenishment order calculation time, replenishment order review time, planned departure time, planned arrival time, pre-replenishment switch, participating city orders, and pre-replenishment review time. The replenishment order calculation time can be calculated every 5 minutes. For example, if the current time is 8:00, it will start calculating items with the rule "replenishment order calculation time = 8:00~8:04". To expedite order processing, it is recommended to set this value to 20 minutes after the current time. The replenishment order review time means you can obtain the deadline for modifying the replenishment order. The replenishment order deadline for modification = actual replenishment order generation time + replenishment order review time. In the planned departure time, T is calculated from the replenishment date, with T+0 indicating departure on the same day as replenishment and T+1 indicating departure the following day. In the planned arrival time, T is also calculated from the replenishment date, with T+0 indicating arrival on the same day as replenishment and T+1 the following day. When the pre-replenishment switch is selected, it controls whether this order fulfillment wave uses pre-replenishment mode. When enabled, it calculates based on the pre-replenishment calculation time and generates a pre-replenishment order, but it is not calculated during the replenishment order calculation time. The pre-replenishment calculation time can be calculated up to 4 hours before the order arrives at the warehouse, based on the planned arrival quantity of the order, and can be reviewed in advance before the order arrives at the warehouse. For participating city orders, selecting "≥" means selecting all city orders planned for future sales to participate in the calculation; selecting "=" means only selecting city orders for the planned sales date to be replenished to participate in the calculation. In the pre-replenishment review period, the pre-replenishment order modification deadline = the actual generation time of the pre-replenishment order + the pre-replenishment review period.
[0105] When configuring multiple "rule groups" in the order fulfillment rules, the following two points should be noted: 1. Meeting the needs of switching replenishment rules for special scenarios: Support for configuring differentiated rules for different scenarios such as weekends, weekdays, and special holidays, eliminating the need for manual switching of rules, improving operational efficiency, and avoiding replenishment problems caused by forgetting to switch rules. 2. Flexible matching of replenishment calculation logic: The replenishment order will use the corresponding rule group in the rule application calendar for the specified date, ensuring that the replenishment calculation logic accurately matches the preset rules and guaranteeing the effective execution of the replenishment strategy.
[0106] Supports binding allocation rules by [Financial Category / Single Product], with priority: Single Product > Financial Category. Child financial categories without bound allocation rules will be populated according to the rules bound to their parent financial category. Child financial categories with bound allocation rules will have their rules changed if the rules originate from the parent financial category; otherwise, they will remain unchanged. If the rule is inherited from the parent financial category and not configured separately for the child, then changes to the parent financial category's binding rules will also update the child financial category's allocation rules. If the rule is configured separately for the child financial category and not inherited from the parent, then changes to the parent financial category's binding rules will not affect the child financial category's allocation rules, maintaining their original configuration. Single products with bound allocation rules are unaffected by changes to the parent financial category's binding rules. For example, parent financial category = 11-Fruit Department, child financial category = 1121-Peach, single product = 9470529-Sun-Dried Peach.
[0107] S2. Determining the Total Allocation: Based on the replenishment type, determine the replenishment timing and obtain the total allocation. Specifically:
[0108] When the replenishment type is non-pre-replenishment, the arrival status of the central warehouse is checked cyclically at a preset frequency within a preset backup time period. If the central warehouse receives goods during this period, an order is issued, and the total allocation is calculated based on the batch inventory matched with the order arrival. If the backup time period is not configured, the calculation is only performed once during the replenishment order calculation time.
[0109] When the replenishment type is pre-replenishment, the total allocation is calculated only once during the preset pre-replenishment calculation time, and the total allocation is calculated based on the planned order arrival quantity to generate a pre-replenishment order.
[0110] Non-pre-replenishment refers to matching orders first, then matching batches based on order arrivals, and calculating the total allocation amount based on batch inventory and rule logic.
[0111] Pre-replenishment refers to a process where, since the goods haven't actually arrived and there's no batch inventory, only order matching is needed for calculation. Calculations are performed based on the pre-replenishment calculation time and are only done once, with orders generated at 16:30 the day before the planned sales date. The central warehouse can only create waves using pre-replenishment orders during the replenishment order calculation time. The example time period is 18:00-23:00; after this time period, pre-replenishment orders will automatically expire and cannot be used to create waves again.
[0112] When a product is bound to multiple templates, the priority of the single product is higher than that of the financial category. If multiple templates are bound to a single product / financial category, the template with the most recent update time will be used to generate orders based on its configured rules.
[0113] S3. Determining Replenishable Stores: Based on the replenishment stores in the allocation rules and the preset screening conditions, the intersection of stores that simultaneously meet all the preset screening conditions is determined as the set of replenishable stores.
[0114] The set of stores eligible for replenishment is filtered according to the production date rule to obtain the final set of stores eligible for replenishment.
[0115] According to Figure 2 The rules in the table take the intersection of all conditions corresponding to the stores. The conditions include, but are not limited to: replenishment rule details are bound to the store, the order replenishment limit is not -1, the store's product status is replenishable, the union of the supply stores of all suppliers of the product, the supply stores of the supplier corresponding to the order, the stores in the city where the order is located, and the stores that have already placed orders (for the order store type).
[0116] If no production date rule is configured, it is assumed that no store meets the filtering rule, and no store will be filtered. If a production date rule is configured, the rule will not take effect when the number of filtered stores is greater than or equal to the minimum percentage (configurable, e.g., 20%, 15%, 22%, etc.), and no store will be filtered. The old allocation logic for automatic replenishment of fresh produce does not consider the production date, which can result in a large number of production dates in stores. The production date count is one of the procurement and sales performance indicators (a production date count of less than 3 is considered reasonable). A high production date count can cause problems such as: first-in, first-out (FIFO) may result in customers receiving older stock; store staff will need to pay extra attention to the production date when picking goods, affecting picking efficiency and increasing the risk of picking errors. Specifically, the production date number rules include the following: 1. Production date quantity ≥ N; 2. Available physical inventory ≥ coefficient * average sales over the last 7 / 14 / 30 days. During automatic replenishment calculations, if a store's products meet these rules, they are filtered out and not included in the automatic replenishment or pre-replenishment calculations for fresh produce; if a store's products do not meet these rules, they are still included in the calculation. Optionally, when the number of stores meeting the production date number rules exceeds the replenishable store threshold (configurable, e.g., 20%), this rule is skipped, and the stores still participate in the replenishment calculation.
[0117] You can set store items that do not participate in automatic replenishment after meeting certain conditions, based on city + financial category / single product. Production date rules include the following: 1. Production date quantity ≥ N; 2. Available physical inventory ≥ coefficient * average sales over the last 7 / 14 / 30 days. During automatic replenishment (i.e., non-pre-replenishment) calculations, if a store's items meet the rules, those items are filtered out and do not participate in fresh produce automatic replenishment or pre-replenishment calculations; if a store's items do not meet the rules, they still participate in the calculation. When the number of stores meeting the rules exceeds 20% of the number of stores eligible for replenishment (configurable), this rule is skipped, and the items still participate in the replenishment calculation. The effective time can be set to start calculating direct automatic replenishment 0.5 hours after the configuration rule.
[0118] S4. Allocation ratio calculation: For each store in the replenishable store set, the predicted sales level is determined according to the preset strategy.
[0119] Based on the predicted sales level adopted, the predicted allocation ratio of each store in the replenishable store set is obtained. Specifically, it is determined whether the proportion of stores with zero predicted sales of store products is less than the first threshold. If so, the predicted sales of store products are adopted.
[0120] If not, determine whether the percentage of stores with zero predicted sales for the fourth-level financial category is less than the second threshold. If so, then use the fourth-level financial category to predict sales.
[0121] If not, determine whether the percentage of stores with zero predicted sales for the third-level financial category is less than the third threshold. If so, then use the third-level financial category to predict sales.
[0122] If not, use the second-level financial category to predict sales.
[0123] The following four scenarios illustrate the different methods used to predict sales.
[0124] Scenario 1: The percentage of stores with predicted sales of zero is less than 15%, so the allocation ratio is calculated using the predicted sales of stores.
[0125] Scenario 2: If the percentage of store merchandise with a predicted sales volume of 0 is greater than 15%, and the percentage of merchandise with a predicted sales volume of 0 in the fourth-level financial category is less than 10%, the allocation ratio is calculated using the predicted sales volume of the fourth-level financial category.
[0126] Scenario 3: If the percentage of store merchandise with a predicted sales volume of 0 is greater than 15%, and the percentage of merchandise with a predicted sales volume of 0 in the fourth-level financial category is greater than 10%, and the percentage of merchandise with a predicted sales volume of 0 in the third-level financial category is less than 1%, the allocation ratio will be calculated using the predicted sales volume of the third-level financial category.
[0127] Scenario 4: If the percentage of store merchandise with a predicted sales volume of 0 is greater than 15%, and the percentage of merchandise with a predicted sales volume of 0 in the fourth-level financial category is greater than 10%, and the percentage of merchandise with a predicted sales volume of 0 in the third-level financial category is greater than 1%, the allocation ratio will be calculated using the predicted sales volume of the second-level financial category.
[0128] S5. Determining the replenishment coefficient and initial inventory: Obtain the initial inventory and replenishment coefficient of each store in the set of replenishable stores;
[0129] The initial inventory of a store can be calculated using the following formula: Initial inventory of a store = max[(Current available inventory of the store + Inventory of goods in transit for distribution) - Actual demand at the time of delivery, 0].
[0130] Figure 3 and Figure 4 This demonstrates the logic for expired inventory upon arrival for both pre-replenishment and non-pre-replenishment (i.e., automatic replenishment via direct access). It supports defining the initial inventory for the sales period according to certain rules, including: 1. Unconditional initial inventory = 0 for stores; 2. Unconditional expired inventory upon arrival N hours in advance; 3. Expired inventory upon arrival in clearance templates N hours in advance. Expired inventory upon arrival is based on the sales start time; product expiration time is based on the expiration and removal time (batch table). Effective time: Automatic replenishment via direct access begins 0.5 hours after the configuration rules are set. For example, if the expiration date is 24 hours in advance, and product A is bound to the above rules, with 0 items in transit, it will be distributed on August 9th and sold on August 10th. The demand for goods arriving on August 9th is 20. The store's initial inventory = (current inventory + goods in transit) - max(sales upon arrival, inventory expired upon arrival). The original initial inventory = 35 - max(20,0) = 15. Currently, batch A is judged to be expired, and the initial inventory = 35 - max(20,30) = 5.
[0131] The replenishment factor can be calculated using the following formula:
[0132] Theoretical replenishment coefficient = total amount allocated this time / (number of replenishment stores * city granularity coefficient). If the theoretical replenishment coefficient is greater than 1, the value after rounding down the theoretical replenishment coefficient is taken as the dynamic replenishment coefficient; if the theoretical replenishment coefficient is less than 1, 1 is taken as the dynamic replenishment coefficient.
[0133] Please see Figure 6 , Figure 7 and Figure 8 The following example will be used to illustrate this.
[0134] I. The known information is as follows: City: Fuzhou, City granularity coefficient: 3, Number of replenishment stores: 58, Total amount allocated this time: 1000, Box size: 8.
[0135] II. Calculating the replenishment coefficient
[0136] Step 1: Calculate the theoretical replenishment factor
[0137] According to the formula: The initial value of the theoretical replenishment coefficient = total amount allocated this time ÷ (number of replenishment stores * city granularity coefficient)
[0138] Substituting the values: Initial value = 1000 ÷ (58 * 3) = 1000 ÷ 174 ≈ 5.747. Result correction rule: If the result is ≥ 1, round down; if the result is < 1, round up to 1. 5.747 ≥ 1, rounding down gives: Theoretical replenishment coefficient = 5.
[0139] Step 2: Compare the theoretical replenishment coefficient with the box specifications.
[0140] Judgment condition: Theoretical replenishment coefficient ≥ carton size?
[0141] Substituting the value: 5≥8? is not true.
[0142] Proceed to the next level of judgment: Box gauge is composite / prime.
[0143] Step 3: Determine the numerical properties of the box gauge
[0144] The carton size is 8. Its factors are 1, 2, 4, and 8. Besides 1 and itself, there are other factors, therefore the carton size is a composite number. According to the rule: Actual replenishment factor = Theoretical replenishment factor, find the largest factor of the carton size downwards. Factors of carton size 8: 1, 2, 4, 8. Factors not exceeding the theoretical replenishment factor of 5: 1, 2, 4, with the largest factor being 4. Therefore, the actual replenishment factor = 4.
[0145] Setting dynamic replenishment coefficients reduces unreasonable splitting rates at the warehouse level. Replenishment coefficients that are not approximations of box sizes can lead to unreasonable splitting. This reduces unnecessary workload for purchasing and sales. To ensure more reasonable replenishment allocation, purchasing and sales will review the replenishment coefficients for fresh produce daily (equivalent to reviewing approximately 2000 SKUs per city). Dynamic replenishment coefficients are integrated into both the replenishment and wave replenishment processes, providing a WYSIWYG (What You See Is What You Get) experience for purchasing and sales. Dynamically calculated replenishment coefficients are set by city + financial category / product. Users need to set the following values sequentially: city granularity coefficient, calculation parameters, box size threshold, and range. Users can view the specific calculation process on the right side of the page or simulate the calculation results. Products bound to dynamic replenishment coefficient rules will use the dynamically calculated coefficient during automatic replenishment calculations; otherwise, the city-level product replenishment coefficient will be used. The effective time can be set to start automatic replenishment calculation 0.5 hours after the configuration rule is set.
[0146] S6. Allocation Execution: According to the preset allocation strategy and predicted allocation ratio, the total allocation amount is distributed to each replenishable store, resulting in the allocation amount for each store. The preset allocation strategy executes sequentially in the order of inventory warning allocation, sales allocation, and safety stock allocation. When the total allocation amount is completed in the previous stage, subsequent stages will not perform allocation. During the allocation process, if there is insufficient allocation at a certain step, the next allocation process will be skipped. For example, if the inventory warning and sales demand for all stores is 300, but the total allocation amount is only 200, the safety stock allocation stage will not be performed. In the sales allocation stage, allocation is performed according to the predicted sales allocation ratio for each store.
[0147] After allocation, the following steps are performed in sequence: rounding according to the replenishment coefficient, adjusting for the upper limit of replenishment, and allocating the difference. Figure 5 As shown.
[0148] When the allocated quantity is less than the replenishment factor, the replenishment factor is rounded up. When the allocated quantity is greater than or equal to the replenishment factor, the replenishment factor is rounded down.
[0149] The calculation conditions for inventory alerts and replenishment limits can be defined according to certain rules. Inventory alerts represent the lower bound of current inventory + in-transit inventory + replenishment quantity; replenishment limits represent the upper bound of current inventory + in-transit inventory + replenishment quantity. These configuration rules include: average daily sales volume of in-stock items over the past 7 / 14 / 30 days; the highest / second highest sales volume over the past 14 days; and the average daily sales volume of in-stock items over the past 7 / 14 / 30 days excluding the highest and lowest sales volumes. For orders bound to these rules, the calculation is first performed according to the rules, then corrected using the upper and lower boundaries. The effective time can be set to automatic replenishment starting 2 hours after the configuration rules are set.
[0150] The difference allocation is as follows: Calculate the difference, which is the difference between the total allocated amount and the sum of the allocated amounts for each store. Difference = Total Allocation Amount - ∑ Store Allocation Amount. If the difference is less than zero, deduct one replenishment coefficient from each store sequentially according to the preset deduction priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store sequentially according to the preset increase priority until the difference is zero. If the difference is less than zero, add one replenishment coefficient from each store sequentially according to the preset increase priority until the difference is zero. If the difference is less than zero, add one replenishment coefficient from each store sequentially according to the preset increase priority until the difference is zero. If the difference is less than zero, add one replenishment coefficient from each store sequentially according to the preset increase priority. The preset deduction priority is: estimated turnover (descending order) > store's predicted sales volume (ascending order). Estimated turnover = (Store's initial inventory + Replenishment Amount) / Store's predicted sales volume (for the sales period).
[0151] The difference is calculated as follows: Total allocation amount - ∑ Store allocation amount. If the difference is less than 0, it means some stores need to have their current allocation amount reduced. Stores are sorted according to the following priority, and a replenishment coefficient is deducted sequentially (remainder after the last deduction). If the deduction is not completed in one round, the next round continues. The priority can be set as: Estimated turnover (descending order) > Store level 3 category predicted sales (ascending order) (a fallback rule when estimated turnover is the same). The estimated turnover here is the estimated turnover after deducting one replenishment coefficient / remainder; this prevents some stores that originally only had one replenishment coefficient from having it reduced to 0 after the deduction. If the difference is greater than 0, it means there is still excess inventory to be allocated to each store. Stores are also sorted according to the following priority, and a replenishment coefficient is added to each store sequentially (remainder after the last addition). If the allocation is not completed in one round, the next round continues. The priority can be set as: Inventory + In Transit + Store Allocation Amount = 0 > Estimated Turnover (ascending order) > Store level 3 category predicted sales (descending order) (a fallback rule when estimated turnover is the same). Similarly, the estimated turnover here is the estimated turnover after adding a replenishment coefficient / remainder; for example, the estimated turnover of store A is 100 / 10=10; the estimated turnover of store B is 10 / 1=10, the replenishment coefficient is 1, and the estimated turnover of the two stores is the same before the difference is allocated; however, if the estimated turnover after allocation is calculated, then store A=(100+1) / 10=10.1, store B=(10+1) / 1=11, and should be allocated to store A.
[0152] Let's take a 450g fresh-cut Kirin melon (8424 variety) ordered from Fuzhou as an example.
[0153] 1. Replenishment Timing: On May 24th, according to the <Replenishment Calculation Time> in the rules, the backup calculation will be initiated between 01:01 and 21:14. City order information will be obtained based on the <Planned Sales Date> (Planned sales date is May 24th, order type is warehouse replenishment order to the main warehouse / order to a store, status >= pending supplier confirmation).
[0154] 2. Total allocation: Order item 5510548 Fresh-cut 8424 Kirin melon 450g / serving, order quantity 1000, quantity received 998, replenished quantity 0, rule setting ≤ allocation ratio>.
[0155] 3. Stores eligible for replenishment: Based on the following conditions, the stores are bound according to the replenishment rules details, the replenishment limit is not -1, the store's product status is available for replenishment, the union of all suppliers' supply stores for the product, the supply stores of the supplier corresponding to the order, the stores in the city where the order is located, and the stores that have already placed orders (for the order store type), the number of stores eligible for replenishment is 58.
[0156] Calculate the sales forecast for this sales period and obtain the store allocation ratio;
[0157] 4. Calculate the apportionment ratio: According to the rule <Planned Sales Period> T+1, 03:30~T+1 23:59 (T represents the replenishment calculation date), the sales period 5-25 03:30~23:59 is obtained.
[0158] 5. Calculate the dynamic replenishment coefficient: The dynamic replenishment coefficient can be calculated based on the order quantity each time. This product has a corresponding dynamic replenishment coefficient configured, and the calculated replenishment coefficient is 3.
[0159] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method. In this embodiment, the storage medium can be a storage medium disposed in an electronic device, allowing the electronic device to read the contents of the storage medium and achieve the effects of the present invention. Alternatively, the storage medium can be a separate storage medium connected to an electronic device, enabling the electronic device to read the contents of the storage medium and implement the method steps of the present invention.
[0160] It should be noted that although the above embodiments have been described herein, this does not limit the scope of patent protection of the present invention. Therefore, any changes and modifications made to the embodiments described herein based on the innovative concept of the present invention, or equivalent structural or procedural transformations made using the content of the present invention's specification and drawings, directly or indirectly applying the above technical solutions to other related technical fields, are all included within the scope of patent protection of the present invention.
Claims
1. A method for calculating store-wide allocation volume using an engine, characterized in that, Includes the following steps: S1. Distribution rule configuration: Obtain basic configuration information, city orders and distribution rules. The basic information includes configuration name and total quantity calculation method. The distribution rules include replenishment type, planned sales date, replenishment date and replenishment store. The replenishment type includes pre-replenishment or non-pre-replenishment. Obtain the allocation rules and binding dimensions associated with the products to be replenished. The binding dimensions include single product dimension or financial category dimension. When multiple allocation rules are associated with the products to be replenished, select the effective allocation rules according to the preset priority. S2. Determining the total allocation: Determine the replenishment timing and obtain the total allocation based on the replenishment type; S3. Determining Replenishable Stores: Based on the replenishment stores in the allocation rules and the preset screening conditions, the intersection of stores that simultaneously meet all the preset screening conditions is determined as the set of replenishable stores. S4. Allocation ratio calculation: For each store in the replenishable store set, the predicted sales level is determined according to the preset strategy. Based on the predicted sales tier used, obtain the predicted allocation ratio for each store in the set of replenishable stores. S6. Allocation Execution: According to the preset allocation strategy and the predicted allocation ratio, the total allocation amount is allocated to each replenishable store to obtain the allocation amount for each store. The preset allocation strategy is to be executed in the order of inventory warning allocation, sales allocation, and safety stock allocation. When the total allocation amount is completed in the previous stage, the allocation will not be executed in subsequent stages.
2. The method according to claim 1, characterized in that, In S2, the calculation of the total allocated amount, determining the replenishment timing and obtaining the total allocated amount based on the replenishment type includes the following steps: When the replenishment type is non-pre-replenishment, the arrival status of the central warehouse is checked cyclically at a preset frequency within a preset backup time period. If the central warehouse receives goods during this period, an order is issued, and the total allocation is calculated based on the batch inventory matched with the order arrival. When the backup time period is not configured, it is only calculated once during the replenishment order calculation time. When the replenishment type is pre-replenishment, the total allocation is calculated only once during the preset pre-replenishment calculation time, and the total allocation is calculated based on the planned order arrival quantity.
3. The method according to claim 1, characterized in that, In S1, in the allocation rule configuration, allocation rules bound to a single product dimension take precedence over allocation rules bound to a financial category dimension, and within the same dimension, the allocation rule with the most recent update time is selected.
4. The method according to claim 1, characterized in that, In S3, the process of determining replenishable stores involves identifying the intersection of stores that simultaneously meet all preset screening conditions and the replenishable stores based on the replenishment stores in the allocation rules and preset screening criteria. This process then includes the following steps: The set of stores eligible for restocking is filtered according to the production date rule.
5. The method according to claim 4, characterized in that, Filtering the set of stores eligible for restocking based on the production date rule includes the following steps: When a production date number rule is configured, the percentage of filtered stores out of the total number of candidate stores is calculated. If this percentage is not less than a preset safety net percentage threshold, the production date number rule is invalidated, and all stores are retained as a set of replenishable stores. If this percentage is less than the safety net percentage threshold, the production date number rule is effective, and stores with a production date number not less than a preset number and available physical inventory not less than the product of a preset coefficient and the average sales volume over the past N days are filtered out from the candidate stores. The remaining stores constitute the set of replenishable stores.
6. The method according to claim 5, characterized in that, The preset safety net threshold is 20%.
7. The method according to claim 1, characterized in that, In S4, the calculation of the allocation ratio, the determination of the predicted sales level according to the preset strategy includes the following steps; Determine whether the percentage of stores with zero predicted sales of products is less than the first threshold. If so, then use the predicted sales of products. If not, determine whether the percentage of stores with zero predicted sales for the fourth-level financial category is less than the second threshold. If so, then use the fourth-level financial category to predict sales. If not, determine whether the percentage of stores with zero predicted sales for the third-level financial category is less than the third threshold. If so, then use the third-level financial category to predict sales. If not, use the second-level financial category to predict sales.
8. The method according to claim 1, characterized in that, After S4 and the allocation ratio calculation, the following steps are included before: S5. Determining the replenishment coefficient and initial inventory: Obtain the initial inventory and replenishment coefficient of each store in the set of replenishable stores; In S6, after obtaining the initial allocation for each store during the allocation execution, the following steps are also included: After the allocation is completed, the allocation is carried out in sequence according to the replenishment coefficient and the difference allocation. The difference allocation is as follows: calculate the difference, which is the difference between the total allocation amount and the sum of the allocation amounts of each store. If the difference is less than zero, deduct one replenishment coefficient from each store in sequence according to the preset deduction priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. If the difference is greater than zero, add one replenishment coefficient to each store in sequence according to the preset addition priority until the difference is zero. Estimated turnover = (Initial inventory at the store + Replenishment quantity) / Forecasted sales volume during the sales period at the store.
9. The method according to claim 8, characterized in that, The replenishment coefficient types include dynamic replenishment coefficient or product replenishment coefficient; If the product to be replenished is bound to a dynamic replenishment coefficient rule, the dynamic replenishment coefficient is calculated according to the dynamic replenishment coefficient rule, and the dynamic replenishment coefficient is used as the replenishment coefficient of the product to be replenished in each replenishable store. The replenishment coefficient is a dynamic replenishment coefficient, and its calculation method is: theoretical replenishment coefficient = total amount allocated this time / (number of replenishment stores * city granularity coefficient). If the theoretical replenishment coefficient is greater than 1, the value of the theoretical replenishment coefficient rounded down is taken as the dynamic replenishment coefficient; if the theoretical replenishment coefficient is less than 1, 1 is taken as the dynamic replenishment coefficient. If the product to be replenished is not bound to a dynamic replenishment coefficient rule, then the replenishment coefficient configured in the city product file for the product to be replenished is obtained, and the replenishment coefficient is used as the replenishment coefficient for the product to be replenished in each replenishable store.
10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the store-oriented allocation engine calculation method as described in any one of claims 1 to 9.
