A method and device for generating a warehouse delivery form
By receiving and processing the outbound request, the inventory amount of the outbound details and the actual outbound amount are calculated, which solves the problem of data contradiction in the outbound form in the existing technology, and realizes the rationality and consistency of the outbound data.
Patent Information
- Application Number
- CN202010120381.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-02-26
AI Technical Summary
When the existing technology generates an outbound form, the multiple rows of data in the outbound request for goods do not establish the relationship between the requested shipment volume, the actual shipment volume and the available quantity, resulting in data conflicts.
By receiving the item outbound request, we obtain the total inventory and available quantity of the item, and calculate the inventory and actual outbound quantity of each outbound detail based on this information to ensure that the requested outbound quantity of each outbound detail is consistent with the actual outbound quantity. The rationality between inventory and inventory.
It solves the problem of data contradiction in the outbound form, ensuring that the requested outbound quantity of each outbound detail is greater than or equal to the inventory amount, and the inventory amount is greater than or equal to the actual outbound quantity, achieving the rationality and consistency of the data.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for generating a warehouse delivery form. Background Art
[0002] In the e-commerce business involving picking up or returning goods, the supplier submits a request form to the warehouse to extract a certain quantity of goods according to the specific requirements of the business. The warehouse information system summarizes the distributable quantity of the goods in the warehouse based on the supplier's request for the goods to be shipped out, and returns the quantity of the goods to the supplier for the next step of the actual operation of extracting the goods.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] When the form of the goods shipment request contains multiple lines of data for a product, the existing technical means simply allocates the inventory quantity of the goods in the warehouse line by line from top to bottom, and fails to establish a connection between the shipment quantity in each line of data and the actual shipment quantity, resulting in a shipment form with contradictory data. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a method and device for generating a delivery form, which can receive a delivery request for an item, wherein the delivery request for an item includes at least two delivery details, wherein the delivery details at least include an item name and a requested delivery quantity; the item names included in the at least two delivery details are the same, and the attributes of the item in each delivery detail are different; according to the item name, the total inventory and available quantity of the item are obtained; based on the total inventory, the available quantity and the requested delivery quantity of each delivery detail, the inventory and actual delivery quantity corresponding to each delivery detail are calculated respectively; each delivery detail and the inventory and actual delivery quantity corresponding to the delivery detail are collected to generate a delivery form. The method overcomes the problem in the prior art that the requested delivery quantity, actual delivery quantity and available quantity in each row of the delivery item data in the delivery form are inconsistent due to the lack of connection.
[0006] To achieve the above-mentioned purpose, according to one aspect of an embodiment of the present invention, a method for generating an outbound delivery form is provided, characterized in that it includes: receiving an outbound delivery request for an item, the outbound delivery request for an item includes at least two outbound delivery details, the outbound delivery details at least including an item name and a requested outbound delivery quantity; the item names included in the at least two outbound delivery details are the same, and the attributes of the item in each outbound delivery detail are different; according to the item name, the total inventory and available quantity of the item are obtained; based on the total inventory, the available quantity and the requested outbound delivery quantity of each outbound delivery detail, the inventory quantity and actual outbound delivery quantity corresponding to each outbound delivery detail are calculated respectively; and each outbound delivery detail and the inventory quantity and actual outbound delivery quantity corresponding to the outbound delivery detail are collected to generate an outbound delivery form.
[0007] Optionally, the method for generating a delivery form is characterized in that:
[0008] When the available quantity of the item is less than the total inventory quantity, the available quantity is indicated as a difference between the total inventory quantity and the quantity of unavailable items.
[0009] Optionally, the method for generating a delivery form is characterized in that:
[0010] Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including:
[0011] The same initial value is set for the inventory quantity corresponding to each outbound detail; the difference between the total inventory quantity of the item and the sum of the initial inventory quantity values in all outbound details is calculated to obtain the intermediate total inventory quantity;
[0012] The same initial value is set for the actual outbound quantity corresponding to each outbound detail; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity;
[0013] The initial value of the actual shipment quantity is not greater than the initial value of the inventory quantity.
[0014] Optionally, the method for generating a delivery form is characterized in that:
[0015] Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including:
[0016] Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail;
[0017] Based on the total intermediate inventory of the item, the inventory quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the inventory quantity for each outbound detail.
[0018] Optionally, the method for generating a delivery form is characterized in that:
[0019] Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail, including:
[0020] For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity;
[0021] When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly;
[0022] When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity;
[0023] When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
[0024] Optionally, the method for generating a delivery form is characterized in that:
[0025] Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail, including:
[0026] For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the initial inventory quantity;
[0027] When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly;
[0028] When the difference is greater than the total intermediate inventory amount, the sum of the initial inventory amount and the total intermediate inventory amount is calculated as the inventory amount;
[0029] When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
[0030] To achieve the above-mentioned purpose, according to a second aspect of an embodiment of the present invention, there is provided a device for generating an outbound delivery form, characterized in that it comprises: an inventory information acquisition module, an outbound delivery information calculation module and an outbound delivery form generation module; wherein the inventory information acquisition module is used to receive an item outbound delivery request, the item outbound delivery request comprises at least two outbound delivery details, the outbound delivery details at least comprising an item name and a requested outbound delivery quantity; the item names contained in the at least two outbound delivery details are the same, and the attributes of the items in each outbound delivery detail are different; the outbound delivery information calculation module is used to obtain the total inventory and available quantity of the item according to the item name; based on the total inventory, the available quantity and the requested outbound delivery quantity of each outbound delivery detail, the inventory quantity and the actual outbound delivery quantity corresponding to each outbound delivery detail are calculated respectively; the outbound delivery form generation module is used to collect each outbound delivery detail and the inventory quantity and the actual outbound delivery quantity corresponding to the outbound delivery detail to generate an outbound delivery form.
[0031] Optionally, the device for generating a delivery form is characterized in that:
[0032] When the available quantity of the item is less than the total inventory quantity, the available quantity is indicated as a difference between the total inventory quantity and the quantity of unavailable items.
[0033] Optionally, the device for generating a delivery form is characterized in that:
[0034] Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including:
[0035] The same initial value is set for the inventory quantity corresponding to each outbound detail; the difference between the total inventory quantity of the item and the sum of the initial inventory quantity values in all outbound details is calculated to obtain the intermediate total inventory quantity;
[0036] The same initial value is set for the actual outbound quantity corresponding to each outbound detail; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity;
[0037] The initial value of the actual shipment quantity is not greater than the initial value of the inventory quantity.
[0038] Optionally, the device for generating a delivery form is characterized in that:
[0039] Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including:
[0040] Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail;
[0041] Based on the total intermediate inventory of the item, the inventory quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the inventory quantity for each outbound detail.
[0042] Optionally, the device for generating a delivery form is characterized in that:
[0043] Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail, including:
[0044] For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity;
[0045] When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly;
[0046] When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity;
[0047] When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
[0048] Optionally, the device for generating a delivery form is characterized in that:
[0049] Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail, including:
[0050] For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the initial inventory quantity;
[0051] When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly;
[0052] When the difference is greater than the total intermediate inventory amount, the sum of the initial inventory amount and the total intermediate inventory amount is calculated as the inventory amount;
[0053] When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
[0054] To achieve the above-mentioned purpose, according to the third aspect of an embodiment of the present invention, there is provided an electronic device for generating a warehouse delivery form, characterized in that it comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the above-mentioned methods for generating a warehouse delivery form.
[0055] To achieve the above-mentioned purpose, according to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, any method described in the above-mentioned method of generating a warehouse outbound form is implemented.
[0056] An embodiment of the above invention has the following advantages or beneficial effects: receiving an item shipment request, the item shipment request includes at least two shipment details, the shipment details at least include an item name and a requested shipment quantity; the item names included in the at least two shipment details are the same, and the attributes of the item in each shipment detail are different; according to the item name, obtaining the total inventory and available quantity of the item; based on the total inventory, the available quantity and the requested shipment quantity of each shipment detail, respectively calculating the inventory and actual shipment quantity corresponding to each shipment detail; collecting each shipment detail and the inventory and actual shipment quantity corresponding to the shipment detail, and generating a shipment form. It can be seen from this that an embodiment of the present invention overcomes the problem of data inconsistency between the requested shipment quantity, actual shipment quantity, and available quantity of goods in each row of shipment item data in the shipment form in the prior art because no connection is established.
[0057] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0059] Figure 1 It is a flowchart of a method for generating a warehouse delivery form provided by an embodiment of the present invention;
[0060] Figure 2 It is a schematic diagram of a process for calculating the actual outbound quantity in a form provided by an embodiment of the present invention;
[0061] Figure 3 It is a schematic diagram of a flow chart of calculating inventory in a form provided by an embodiment of the present invention;
[0062] Figure 4It is a structural diagram of a system for generating a warehouse delivery form provided by an embodiment of the present invention;
[0063] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0064] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0065] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0066] In the prior art, when a request for goods to be shipped out forms multiple rows of data about one good due to different attributes of the goods, the prior art adopts a simple top-down method to allocate the allocable quantity in the warehouse row by row, and no connection is established between the inventory quantity allocated for each row of data and the actual shipment quantity, thus forming a shipment form with contradictory data. Taking Table 1 as an example, the above calculation method results in a data contradiction that the actual shipment quantity of the first row of data is greater than the requested shipment quantity; in another case, taking Table 2 as an example, the inventory quantity is evenly allocated row by row, resulting in a data contradiction that the inventory quantity is less than the actual shipment quantity.
[0067] Product Name Product attributes Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 30 36 Commodity ABC 2019 Batch 2 15 Commodity ABC 2020 Batch 1 20 Commodity ABC 2020 Batch 2 10
[0068] Table 1
[0069] Product Name Product attributes Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 30 9 Commodity ABC 2019 Batch 2 15 9 Commodity ABC 2020 Batch 1 20 9 Commodity ABC 2020 Batch 2 10 9
[0070] Table 2
[0071] In order to overcome the defects of the prior art, the embodiment of the present invention provides a method for generating a warehouse delivery form, such as Figure 1 As shown, the method may include the following steps:
[0072] Step S101: receiving an item shipment request, wherein the item shipment request includes at least two shipment details, wherein the shipment details at least include an item name and a requested shipment quantity; the item names included in the at least two shipment details are the same, and the attributes of the item in each shipment detail are different.
[0073] Specifically, the above steps are explained using the following Table 3 as an example. As shown in Table 3, "Commodity ABC" is an example of the name of the item, and "2019 Batch 1" is an example of the attributes of the item. It is understandable that for a commodity, due to different packaging, or different batches caused by production time, or different attributes caused by other reasons, the same commodity name in the outbound request form will be presented in the form of multiple rows of data due to different attributes. That is, the item name in each row is the same but the attributes are different, and the requested outbound quantity of the items in each row based on different attributes may also be different. As shown in Table 3, each row of data is an outbound detail, and Table 3 contains 4 outbound details. That is, an outbound request for an item is received, and the outbound request for an item includes at least two outbound details, and the outbound details include at least the item name and the requested outbound quantity; the item name contained in the at least two outbound details is the same, and the attributes of the item in each outbound detail are different;
[0074]
[0075]
[0076] Table 3
[0077] Furthermore, the total inventory and available quantity of the item are obtained according to the item name.
[0078] Specifically, the total inventory and available quantity of the item in the warehouse are obtained according to the item name in the outbound request. This step can be completed through the warehouse information system. It can be understood that the attributes of the product are ignored when obtaining the total inventory and available quantity of the item according to the item name.
[0079] Furthermore, the total inventory of the item is less than or equal to the sum of the requested outbound quantities in each outbound detail. For example, taking the data in Table 3 as an example, the sum of the requested outbound quantities in each outbound detail is 55; the available quantity of the item is the total inventory in the warehouse minus the number of unavailable items. Unavailable items are items that are damaged, incomplete, etc. due to transportation, warehousing or other reasons. In this case, the item is considered unavailable.
[0080] That is, when the available quantity of the item is less than the total inventory quantity, the available quantity is indicated as the difference between the total inventory quantity and the quantity of unavailable items.
[0081] Step S102: Based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively.
[0082] Specifically, as shown in the example in Table 3, it is necessary to calculate the inventory and actual shipment for each row of data, that is, for each outbound detail, that is, based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, calculate the inventory and actual outbound quantity corresponding to each outbound detail. The calculation method is to satisfy the requested outbound quantity from top to bottom. It can be understood that the total inventory of the item is less than or equal to the sum of the requested outbound quantities in each outbound detail, and the available quantity of the item is less than the total inventory; therefore, corresponding to each row, that is, each outbound detail, the inventory value is measured based on the total inventory, and the actual outbound quantity is calculated based on the available quantity;
[0083] Furthermore, the schematic process of calculating the actual outbound quantity based on each outbound detail is as follows: Figure 2 As shown;
[0084] Furthermore, the schematic process of calculating the inventory quantity based on each outbound detail is as follows: Figure 3 As shown;
[0085] Step S103: Gather each outbound delivery detail and the inventory quantity and actual outbound delivery quantity corresponding to the outbound delivery detail to generate an outbound delivery form.
[0086] Specifically, the actual outbound quantity and inventory quantity of each outbound detail are calculated based on step S102, that is, the data of the actual outbound quantity and inventory quantity of each row. Assuming that the total inventory is 40 and the number of damaged items is 4, the available quantity is 36. After the calculation step of step S102, an example as shown in Table 4 is obtained. From the example in Table 4, it can be seen that an example method of calculation is to first set an initial value for each outbound detail. In this example, the initial value is set to 1. Further, the actual outbound quantity and inventory quantity are calculated starting from the first outbound detail. After calculation in sequence, it can be seen that the sum of the actual outbound quantities of all outbound details is the available quantity; the sum of the inventory quantities of all outbound details is the total inventory.
[0087] As can be seen from the example shown in Table 4, by utilizing the method of this embodiment, the problem of data inconsistency among the requested outbound quantity, the actual outbound quantity, and the inventory quantity is overcome, and the rationality of the requested outbound quantity being greater than or equal to the inventory quantity, and the inventory quantity being greater than or equal to the actual outbound quantity in each outbound detail is achieved.
[0088] Item Name Item Properties Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 10 10 Commodity ABC 2019 Batch 2 15 15 15 Commodity ABC 2020 Batch 1 20 10 14 Commodity ABC 2020 Batch 2 10 1 1
[0089] Table 4
[0090] Furthermore, each outbound delivery detail and the inventory quantity and the actual outbound delivery quantity corresponding to the outbound delivery detail are collected to generate an outbound delivery form.
[0091] Specifically, an example of the outbound delivery form is shown in Table 4. It can be understood that the content and form of Table 4 are examples, and the actual scenario contains more information and content related to the items. The present invention does not limit the specific information and content of each collection except the item name and the requested outbound quantity; and does not limit the form of the outbound delivery form.
[0092] like Figure 2 As shown, an embodiment of the present invention provides a method for calculating the actual outbound quantity in a form, and the method may include the following steps:
[0093] Step S201: Assign the same initial value to the actual outbound quantity in each outbound detail.
[0094] Specifically, based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: setting the same initial value for the actual outbound quantity corresponding to each outbound detail;
[0095] Furthermore, the actual outbound quantity initial value is less than or equal to the inventory quantity initial value. It can be understood that the actual outbound quantity is less than or equal to the inventory quantity, so the actual outbound quantity initial value can be set to be less than or equal to the inventory quantity initial value;
[0096] Specifically, taking Table 5 as an example, the process of setting the same initial value for the actual outbound quantity corresponding to each outbound detail is explained. As shown in Table 5, the initial value set for the actual outbound quantity corresponding to each outbound detail is 1. Preferably, the initial value is set to the minimum value 1 so that the actual outbound quantity corresponding to each outbound detail can be a non-zero number.
[0097] Item Name Item Properties Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 1 Commodity ABC 2019 Batch 2 15 1 Commodity ABC 2020 Batch 1 20 1 Commodity ABC 2020 Batch 2 10 1
[0098] Table 5
[0099] Step S202: Calculate the sum of the initial values of the actual outbound quantities of all outbound details.
[0100] Step S203: Obtain the available quantity of items in the warehouse.
[0101] Step S204: Obtain the median value of the actual shipment quantity.
[0102] Steps S202 to S204 describe the steps of calculating the intermediate value of the actual outbound quantity by using the available quantity of items in the warehouse and the sum of the initial values of the actual outbound quantities of all outbound details.
[0103] That is, the same initial value is set for the actual outbound quantity corresponding to each outbound detail; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity;
[0104] Specifically, still taking the data in Table 5 as an example, the sum of the initial values of the actual outbound quantities of all outbound details is calculated to be 4. Assuming that the available quantity of the items in the warehouse is 36, the value obtained by subtracting the sum of the initial values of the actual outbound quantities from the available quantity of the items is 32, and 32 is the intermediate value of the actual outbound quantity, that is, the intermediate actual outbound quantity. It can be understood that the value of the actual outbound quantity in each outbound detail is calculated using this intermediate actual outbound quantity.
[0105] That is, based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory quantity and actual outbound quantity corresponding to each outbound detail are calculated respectively, and it also includes: based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail.
[0106] Step S205: Calculate the difference between the requested shipment quantity and the initial value of a shipment detail, and compare the difference with the middle value of the actual shipment quantity.
[0107] For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity;
[0108] Specifically, still taking the first outbound delivery detail in Table 5 as an example, the difference between the requested outbound quantity of the first outbound delivery detail and the corresponding initial value of the actual outbound quantity is 9; further, the difference and the middle value of the actual outbound quantity are compared, and the following operations are performed according to the comparison result:
[0109] When the median value of the actual outbound quantity is large, execute steps S206 and S209;
[0110] When the actual average value of the outbound quantity is small, execute step S207;
[0111] When the actual delivery quantity intermediate value is 0, execute step S208;
[0112] Step S206: The actual shipment quantity is the requested shipment quantity.
[0113] Step S207: The actual shipment quantity is the requested shipment quantity plus the initial value.
[0114] Step S208: The actual shipment quantity is the initial value.
[0115] Step S209: The value obtained by subtracting the requested shipment quantity and the initial value from the actual shipment quantity.
[0116] The following uses Table 6 as an example to illustrate the process of step S205 to step S209.
[0117] 1) The difference between the requested outbound quantity of the first outbound detail and the corresponding initial value of the actual outbound quantity is 9;
[0118] 2) Assume that the available quantity of items in the warehouse is 36, the sum of the available quantity of items minus the initial value of the actual outbound quantity is 32, 32 is the middle value of the actual outbound quantity, that is, the middle actual outbound quantity, compare the difference and the middle value of the actual outbound quantity, that is, compare 9 and 32;
[0119] 3) When the difference is less than or equal to the intermediate actual outgoing quantity, the requested outgoing quantity is used as the actual outgoing quantity, and the intermediate actual outgoing quantity is reduced by the difference accordingly; that is, the requested outgoing quantity of the first outgoing detail can be satisfied, so the actual outgoing quantity of the first outgoing detail is 10, which is equal to the requested outgoing quantity. Further, by reducing the intermediate actual outgoing quantity by the difference, the value of the intermediate actual outgoing quantity is 32-9=23;
[0120] 4) The actual outbound quantity corresponding to the second outbound detail is the same as steps 1)-3), which will not be repeated here; at this time, the value of the intermediate actual outbound quantity is 23-14=9;
[0121] 5) The third outbound detail compares the difference and the intermediate actual outbound quantity, 19>9, where 19 is the difference and 9 is the intermediate actual outbound quantity; that is, when the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity; the actual outbound quantity is 10; and the intermediate actual outbound quantity becomes 0;
[0122] It can be understood that starting from the first outbound detail, calculation is performed row by row based on the condition that the requested outbound quantity is met until the intermediate actual outbound quantity becomes 0;
[0123] 6) For the fourth outbound delivery detail, when the intermediate actual outbound delivery quantity is zero, the initial value of the actual outbound delivery quantity is used as the actual outbound delivery quantity.
[0124] Using steps 1)-6), the actual outbound quantity of each outbound detail in Table 6 is calculated, as shown in Table 6.
[0125] Item Name Item Properties Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 10(1+9) Commodity ABC 2019 Batch 2 15 15(1+14) Commodity ABC 2020 Batch 1 20 10(1+9) Commodity ABC 2020 Batch 2 10 1
[0126] Table 6
[0127] That is, for each outbound delivery detail, the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity is calculated in turn;
[0128] When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly;
[0129] When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity;
[0130] When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
[0131] like Figure 3 As shown, an embodiment of the present invention provides a method for calculating the inventory in a form, and the method may include the following steps:
[0132] Step S301: Assign the same initial value to the inventory quantity in each outbound detail.
[0133] Specifically, based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: setting the same initial value for the inventory quantity corresponding to each outbound detail;
[0134] Furthermore, the initial value of the actual shipment quantity is smaller than the initial value of the inventory quantity.
[0135] Specifically, taking Table 7 as an example, the process of setting the same initial value for the inventory quantity corresponding to each outbound detail is described. As shown in Table 7, the initial value set for the inventory quantity corresponding to each outbound detail is 1. Preferably, the initial value is set to the minimum value 1 so that the inventory quantity corresponding to each outbound detail can be a non-zero number. The initial value of the inventory quantity can also be set to other values greater than the initial value of the actual inventory quantity, such as 2. The present invention does not limit the specific numbers of the initial value of the actual outbound quantity and the initial value of the inventory quantity.
[0136] Assume that the available outbound quantity in the warehouse is 36 and the total inventory is 40; and the actual outbound quantity of each outbound detail has been calculated, as shown in Table 7.
[0137] Item Name Item Properties Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 10 1 Commodity ABC 2019 Batch 2 15 15 1 Commodity ABC 2020 Batch 1 20 10 1 Commodity ABC 2020 Batch 2 10 1 1
[0138] Table 7
[0139] Step S302: Calculate the sum of the initial values of all outbound detailed inventory quantities.
[0140] Step S303: Obtain the total inventory of items in the warehouse.
[0141] Step S304: Obtain the intermediate value of the inventory.
[0142] Steps S302 to S304 describe the steps of calculating the intermediate value of the inventory by using the total inventory of items in the warehouse and the sum of the initial values of all outbound detailed inventory.
[0143] That is, the difference between the total inventory of the item and the sum of the initial inventory values in all outbound details is calculated to obtain the intermediate total inventory;
[0144] Specifically, still taking the data in Table 7 as an example, the sum of the initial values of the inventory of all outbound details is calculated to be 4. It is known that the total inventory of the items in the warehouse is 40, and the sum of the total inventory of the items minus the initial value of the inventory is 36. 36 is the intermediate value of the inventory, that is, the intermediate total inventory. It can be understood that this intermediate total inventory is used to further calculate the value of the inventory in each outbound detail.
[0145] That is, based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory and the actual outbound quantity corresponding to each outbound detail are calculated respectively, and further comprising: based on the total inventory of the item, sequentially calculating the inventory corresponding to each outbound detail for the requested outbound quantity and the initial value of the inventory;
[0146] Step S305: Calculate the difference between the requested shipment quantity of a shipment detail and the initial value of the inventory quantity, and compare the difference with the middle value of the inventory quantity.
[0147] For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the corresponding initial inventory quantity value;
[0148] Specifically, still taking the first outbound delivery detail in Table 7 as an example, the difference between the requested outbound quantity of the first outbound delivery detail and the corresponding initial value of the inventory quantity is 9; further, the difference and the middle value of the inventory quantity are compared, and the following operations are performed according to the comparison result:
[0149] When the inventory intermediate value is large, execute steps S306 and S309;
[0150] When the inventory median value is small, execute step S307;
[0151] When the inventory intermediate value is 0, execute step S308;
[0152] Step S306: The inventory quantity is the requested outbound quantity.
[0153] Step S307: The inventory quantity is the requested outbound quantity plus the initial value.
[0154] Step S308: The inventory quantity is the initial value.
[0155] Step S309: The difference between the inventory quantity and the requested delivery quantity and the initial value is obtained.
[0156] The following uses Table 8 as an example to illustrate the process of step S305 to step S309.
[0157] 1) The difference between the requested outbound quantity of the first outbound detail and the corresponding initial value of the inventory quantity is 9;
[0158] 2) Assume that the available quantity of the items in the warehouse is 40, the total inventory of the items minus the initial inventory value is 36, 36 is the intermediate total inventory of the inventory, and compare the difference with the intermediate total inventory, that is, compare 9 and 36;
[0159] 3) When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory, and the total intermediate inventory is reduced by the difference accordingly; that is, the requested outbound quantity of the first outbound detail can be satisfied, so the inventory of the first outbound detail is 10, which is equal to the requested outbound quantity. Further, by reducing the total intermediate inventory by the difference, the total intermediate inventory is obtained to be 36-9=27;
[0160] 4) The inventory quantity corresponding to the second outbound detail is the same as steps 1)-3) and will not be repeated here; at this time, the value of the total intermediate inventory is 27-14=13;
[0161] 5) For the third outbound detail, compare the difference and the total intermediate inventory of the inventory, 19>13, that is, when the difference is greater than the total intermediate inventory, calculate the sum of the initial value of the inventory and the total intermediate inventory as the inventory; the inventory is 14; and the inventory becomes 0;
[0162] It can be understood that starting from the first outbound delivery detail, calculation is performed row by row based on the condition that the requested outbound delivery quantity is met until the intermediate total inventory amount becomes 0;
[0163] 6) For the fourth outbound inventory detail, when the total intermediate inventory amount is zero, the initial value of the inventory is used as the inventory amount.
[0164] Using steps 1)-6), the results of calculating the inventory quantity of each outbound detail in Table 8 are shown in Table 8.
[0165] Item Name Item Properties Request outbound quantity Actual outbound quantity Inventory Commodity ABC 2019 Batch 1 10 10 10(1+9) Commodity ABC 2019 Batch 2 15 15 15(1+14) Commodity ABC 2020 Batch 1 20 10 14(1+13) Commodity ABC 2020 Batch 2 10 1 1
[0166] Table 8
[0167] That is, for each outbound delivery detail, the difference between the requested outbound delivery quantity and the corresponding initial inventory value is calculated;
[0168] When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly;
[0169] When the difference is greater than the total intermediate inventory amount, the sum of the initial value of the inventory amount and the total intermediate inventory amount is calculated as the inventory amount;
[0170] When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
[0171] like Figure 4 As shown, the embodiment of the present invention provides a device 400 for generating a delivery form, including: an inventory information acquisition module 401, a delivery information calculation module 402 and a delivery form generation module 403; wherein,
[0172] The module 401 for obtaining inventory information is used to receive an item outbound request, wherein the item outbound request includes at least two outbound details, wherein the outbound details at least include an item name and a requested outbound quantity; the item names included in the at least two outbound details are the same, and the attributes of the item in each outbound detail are different;
[0173] The module 402 for calculating outbound information is used to obtain the total inventory and available quantity of the item according to the item name; and calculate the inventory and actual outbound quantity corresponding to each outbound detail based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail;
[0174] The module 403 for generating a shipment form is used to collect each shipment detail and the inventory quantity and the actual shipment quantity corresponding to the shipment detail to generate a shipment form.
[0175] Optionally, the module 401 for obtaining inventory information includes indicating, when the available quantity of the item is less than the total inventory quantity, that the available quantity is a difference between the total inventory quantity and the quantity of unavailable items.
[0176] Optionally, the module 402 for calculating the outbound information is used to calculate the inventory quantity and the actual outbound quantity corresponding to each outbound detail based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, including:
[0177] The same initial value is set for the inventory quantity corresponding to each outbound detail; the difference between the total inventory quantity of the item and the sum of the initial inventory quantity values in all outbound details is calculated to obtain the intermediate total inventory quantity;
[0178] The same initial value is set for the actual outbound quantity corresponding to each outbound detail; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity;
[0179] The initial value of the actual shipment quantity is not greater than the initial value of the inventory quantity.
[0180] Optionally, the module 402 for calculating the outbound information is used to calculate the inventory quantity and the actual outbound quantity corresponding to each outbound detail based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, including:
[0181] Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail;
[0182] Based on the total intermediate inventory of the item, the inventory quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the inventory quantity for each outbound detail.
[0183] Optionally, the module 402 for calculating the outbound information is used to calculate the actual outbound quantity corresponding to each outbound detail based on the intermediate actual outbound quantity of the item and the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail in turn, including:
[0184] For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity;
[0185] When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly;
[0186] When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity;
[0187] When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
[0188] Optionally, the module 402 for calculating the outbound information is used to calculate the inventory quantity corresponding to each outbound detail based on the total intermediate inventory quantity of the item and the requested outbound quantity and the initial inventory quantity value of each outbound detail in turn, including:
[0189] For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the initial inventory quantity;
[0190] When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly;
[0191] When the difference is greater than the total intermediate inventory amount, the sum of the initial inventory amount and the total intermediate inventory amount is calculated as the inventory amount;
[0192] When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
[0193] An embodiment of the present invention also provides an electronic device for generating a warehouse delivery form, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in any of the above embodiments.
[0194] An embodiment of the present invention further provides a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method provided in any of the above embodiments is implemented.
[0195] Figure 5 An exemplary system architecture 500 is shown to which the method for generating a warehouse delivery form or the apparatus for generating a warehouse delivery form according to the embodiment of the present invention can be applied.
[0196] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0197] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc. Various client applications can be installed on terminal devices 501, 502, 503, such as web browser applications, search applications, instant messaging tools, enterprise management system clients, and email clients.
[0198] The terminal devices 501 , 502 , and 503 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0199] Server 505 may be a server that provides various services, such as a background management server that supports the item outbound requests made by users using terminal devices 501, 502, and 503. The background management server may perform data calculation and processing on the received outbound requests, and feed back the processed form data to the terminal device.
[0200] It should be noted that the method for generating a delivery form provided in the embodiment of the present invention is generally executed by the server 505 , and accordingly, the device for generating a delivery form is generally arranged in the server 505 .
[0201] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0202] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0203] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0204] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0205] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0206] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0207] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0208] The modules and / or units involved in the embodiments of the present invention may be implemented in software or hardware. The modules and / or units described may also be set in a processor. For example, they may be described as: a processor includes a module for obtaining inventory information, a module for calculating outbound information, and a module for generating outbound forms. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the module for calculating outbound information may also be described as "a module for calculating the inventory quantity and actual outbound quantity of each outbound detail according to an outbound request."
[0209] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: receiving an item outbound request, the item outbound request includes at least two outbound details, the outbound details at least include the item name and the requested outbound quantity; the item names included in the at least two outbound details are the same, and the attributes of the item in each outbound detail are different; according to the item name, the total inventory and available quantity of the item are obtained; based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, the inventory and actual outbound quantity corresponding to each outbound detail are calculated respectively; each outbound detail and the inventory and actual outbound quantity corresponding to the outbound detail are collected to generate an outbound form.
[0210] According to the technical solution of the embodiment of the present invention, this implementation method can overcome the problem in the prior art that there are contradictions between the requested shipment quantity, actual shipment quantity, and available quantity in each row of the shipment item data in the shipment form because no connection is established.
[0211] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for generating a warehouse delivery form, characterized in that: include: receiving an item shipment request, the item shipment request including at least two shipment details, the shipment details at least including an item name and a requested shipment quantity; the item names included in the at least two shipment details are the same, and the attributes of the item in each shipment detail are different; According to the item name, obtain the total inventory and available quantity of the item; Based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail, respectively calculate the inventory quantity and the actual outbound quantity corresponding to each outbound detail; Collect each outbound delivery detail and the inventory quantity and actual outbound delivery quantity corresponding to the outbound delivery detail to generate an outbound delivery form, wherein: Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: The same initial value is set for the inventory quantity corresponding to each outbound detail, and the initial value of the inventory quantity makes the inventory quantity corresponding to each outbound detail a non-zero number; the difference between the total inventory quantity of the item and the sum of the initial values of the inventory quantities in all outbound details is calculated to obtain the intermediate total inventory quantity; The same initial value is set for the actual outbound quantity corresponding to each outbound detail, and the initial value of the actual outbound quantity makes the actual outbound quantity corresponding to each outbound detail a non-zero number; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity; The initial value of the actual shipment quantity is not greater than the initial value of the inventory quantity; Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail; Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail; and The requested outbound quantity corresponding to each outbound detail is greater than or equal to the inventory quantity corresponding to the outbound detail, and the inventory quantity corresponding to each outbound detail is greater than or equal to the actual outbound quantity corresponding to the outbound detail.
2. The method according to claim 1, characterized in that When the available quantity of the item is less than the total inventory quantity, the available quantity is indicated as a difference between the total inventory quantity and the quantity of unavailable items.
3. The method according to claim 1, characterized in that: Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail, including: For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity; When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly; When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity; When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
4. The method according to claim 1, characterized in that: Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail, including: For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the initial inventory quantity; When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly; When the difference is greater than the total intermediate inventory amount, the sum of the initial inventory amount and the total intermediate inventory amount is calculated as the inventory amount; When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
5. A device for generating a warehouse delivery form, characterized in that: include: Obtain inventory information module, calculate outbound information module and generate outbound form module; among them, The module for acquiring inventory information is used to receive an item outbound request, wherein the item outbound request includes at least two outbound details, wherein the outbound details at least include an item name and a requested outbound quantity; the item names included in the at least two outbound details are the same, and the attributes of the item in each outbound detail are different; The module for calculating outbound information is used to obtain the total inventory and available quantity of the item according to the item name; and calculate the inventory and actual outbound quantity corresponding to each outbound detail based on the total inventory, the available quantity and the requested outbound quantity of each outbound detail; The module for generating a delivery form is used to collect each delivery detail and the inventory quantity and the actual delivery quantity corresponding to the delivery detail to generate a delivery form, wherein: Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: The same initial value is set for the inventory quantity corresponding to each outbound detail, and the initial value of the inventory quantity makes the inventory quantity corresponding to each outbound detail a non-zero number; the difference between the total inventory quantity of the item and the sum of the initial values of the inventory quantities in all outbound details is calculated to obtain the intermediate total inventory quantity; The same initial value is set for the actual outbound quantity corresponding to each outbound detail, and the initial value of the actual outbound quantity makes the actual outbound quantity corresponding to each outbound detail a non-zero number; the difference between the available quantity of the item and the sum of the initial values of the actual outbound quantities in all outbound details is calculated to obtain the intermediate actual outbound quantity; The initial value of the actual shipment quantity is not greater than the initial value of the inventory quantity; Based on the total inventory, the available quantity, and the requested outbound quantity of each outbound detail, the inventory quantity and the actual outbound quantity corresponding to each outbound detail are calculated respectively, including: Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail; Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail; and The requested outbound quantity corresponding to each outbound detail is greater than or equal to the inventory quantity corresponding to the outbound detail, and the inventory quantity corresponding to each outbound detail is greater than or equal to the actual outbound quantity corresponding to the outbound detail.
6. The device according to claim 5, characterized in that When the available quantity of the item is less than the total inventory quantity, the available quantity is indicated as a difference between the total inventory quantity and the quantity of unavailable items.
7. The device according to claim 5, characterized in that Based on the intermediate actual outbound quantity of the item, the actual outbound quantity corresponding to each outbound detail is calculated in turn for the requested outbound quantity and the initial value of the actual outbound quantity of each outbound detail, including: For each outbound delivery detail, calculate the difference between the requested outbound delivery quantity and the corresponding initial value of the actual outbound delivery quantity; When the difference is less than or equal to the intermediate actual outbound quantity, the requested outbound quantity is used as the actual outbound quantity, and the intermediate actual outbound quantity is reduced by the difference accordingly; When the difference is greater than the intermediate actual outbound quantity, the sum of the initial value of the actual outbound quantity and the intermediate actual outbound quantity is calculated as the actual outbound quantity; When the intermediate actual outbound quantity is zero, the initial value of the actual outbound quantity is used as the actual outbound quantity.
8. The device according to claim 5, characterized in that Based on the total intermediate inventory of the item, the requested outbound quantity and the initial inventory value of each outbound detail are sequentially calculated to calculate the inventory quantity corresponding to each outbound detail, including: For each outbound delivery detail in turn, calculate the difference between the requested outbound delivery quantity and the initial inventory quantity; When the difference is less than or equal to the total intermediate inventory, the requested outbound quantity is used as the inventory quantity, and the total intermediate inventory is reduced by the amount of the difference accordingly; When the difference is greater than the total intermediate inventory amount, the sum of the initial inventory amount and the total intermediate inventory amount is calculated as the inventory amount; When the total intermediate inventory amount is zero, the initial inventory amount value is used as the inventory amount.
9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
