A method and device for generating a purchase order for purchasing goods
By automatically calculating and adjusting the purchase order, the problems of manual calculation errors and low efficiency in the existing technology are solved, and efficient generation of purchase orders of goods is achieved, operating costs and resource waste are reduced, and the needs of multiple users are met.
Patent Information
- Application Number
- CN202110968180.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-23
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2041-08-23
AI Technical Summary
In the prior art, the calculation of goods purchase orders depends on manual labor, which is prone to calculation errors, which is time-consuming and inefficient. When multiple buyers purchase at the same time in the wholesale industry, it leads to waste of resources and increased operating costs.
By obtaining user purchase information, judging the inventory of goods, generating purchase orders, automatically calculating out-of-stock quantity, and adjusting purchase orders based on out-of-stock quantity, automatically generating purchase orders and reducing manual intervention.
It improves the processing efficiency and accuracy of purchase orders, reduces operating costs, reduces resource waste, and meets the purchasing needs of multiple users.
Smart Images

Figure CN113763125B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent goods management, and in particular to a method and device for generating a purchase order for purchasing goods. Background Art
[0002] Wholesaling refers to all activities that occur when goods or services are sold to customers who purchase them for the purpose of reselling them or for business use. Since wholesalers' sales prices are lower than the retail prices of businesses, the sales volume of their goods is large, and the transactions and circulation of goods are frequent.
[0003] Due to the large transaction volume and frequency of each commodity, the circulation of commodities is also busy, and merchants need to purchase and restock commodities from time to time so that the inventory of commodities can meet the purchasing needs of users. At present, the commonly used commodity procurement method for merchants is to calculate the out-of-stock quantity of commodities manually based on the purchase information of buyers and the inventory information of merchants when receiving the purchase information of buyers, so as to fill in and generate the corresponding purchase list according to the out-of-stock quantity.
[0004] However, the commonly used method currently has the following technical problems: since the out-of-stock quantity is calculated manually by the user, calculation errors are prone to occur, making it difficult for the purchased goods quantity to meet the user's purchasing needs. In addition, the manual calculation method is time-consuming and inefficient, and each calculation is based on the purchase information of a single buyer. In the wholesale industry, there may often be multiple buyers purchasing at the same time, resulting in a large number of purchase orders being generated for the same product each time a purchase is made to notify multiple purchasing personnel to purchase, which not only causes a waste of resources, but also increases the cost of procurement operations. Summary of the invention
[0005] The present invention proposes a method and device for generating a purchase order for purchasing goods. The method can integrate multiple purchase information to generate a purchase order that meets the user's purchase needs, which can not only improve processing efficiency and accuracy, but also reduce the cost of procurement operations.
[0006] A first aspect of an embodiment of the present invention provides a method for generating a purchase order for purchasing goods, the method comprising:
[0007] Get the purchase information generated after the user completes the purchase operation;
[0008] Determining whether the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity;
[0009] When the purchase quantity of the first commodity included in the purchase information is greater than the inventory of the first commodity, N to-be-purchased lists are obtained, and the out-of-stock quantity of the first commodity is calculated, where N is a positive integer;
[0010] Determine respectively whether each of the to-be-purchased lists contains the first commodity;
[0011] If at least one of the to-be-purchased lists contains the first commodity, adjusting any to-be-purchased list containing the first commodity according to the out-of-stock quantity of the first commodity to generate a purchase order;
[0012] If none of the to-be-purchased lists contains the first commodity, a purchase order is generated according to the out-of-stock quantity of the first commodity.
[0013] In a possible implementation manner of the first aspect, the method further involves a user terminal, and the acquiring purchase information generated after the user performs a purchase operation includes:
[0014] Receiving order information sent by the user terminal, where the order information is generated after the user terminal obtains the purchase quantity of several different commodities input by the user;
[0015] Purchase information is generated based on the purchase quantities of several different commodities included in the order information.
[0016] In a possible implementation of the first aspect, adjusting any to-be-purchased list containing the first commodity according to the out-of-stock quantity of the first commodity to generate a purchase order includes:
[0017] Based on the out-of-stock quantity, the purchase quantity of the first commodity in any to-be-purchased list containing the first commodity is adjusted to obtain a purchase order.
[0018] In a possible implementation manner of the first aspect, the method further includes:
[0019] The purchase order is sent to the user terminal so that the user terminal displays the purchase order and prompts the user to make a purchase.
[0020] A second aspect of an embodiment of the present invention provides a device for generating a purchase order for purchasing goods, the device comprising:
[0021] The acquisition module is used to obtain the purchase information generated after the user performs the purchase operation;
[0022] A determination module, configured to determine whether the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity;
[0023] A list module, configured to obtain N to-be-purchased lists and calculate the out-of-stock quantity of the first commodity when the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity, wherein N is a positive integer;
[0024] A determination module, used to determine whether each of the to-be-purchased lists contains the first commodity;
[0025] an inclusion module, configured to adjust any one of the to-be-purchased lists containing the first commodity according to the out-of-stock quantity of the first commodity, and generate a purchase order if at least one of the to-be-purchased lists contains the first commodity;
[0026] The not-included module is used to generate a purchase order according to the out-of-stock quantity of the first commodity if none of the to-be-purchased lists contains the first commodity.
[0027] In a possible implementation manner of the second aspect, the method further relates to a user terminal, and the acquisition module is further used to:
[0028] Receiving order information sent by the user terminal, where the order information is generated after the user terminal obtains the purchase quantity of several different commodities input by the user;
[0029] Purchase information is generated based on the purchase quantities of several different commodities included in the order information.
[0030] In a possible implementation manner of the second aspect, the including module is further used to:
[0031] Based on the out-of-stock quantity, the purchase quantity of the first commodity in any to-be-purchased list containing the first commodity is adjusted to obtain a purchase order.
[0032] In a possible implementation manner of the second aspect, the apparatus further includes:
[0033] The sending module is used to send the purchase order to the user terminal so that the user terminal can display the purchase order and prompt the user to make a purchase.
[0034] Compared with the prior art, the embodiment of the present invention provides a method and device for generating a purchase order for purchasing goods, which has the beneficial effect that: the present invention can realize the automatic generation of purchase orders, without the need to manually calculate the corresponding purchase quantity, thereby avoiding the problem of inaccurate calculation of out-of-stock quantity caused by manual calculation, and can also shorten the calculation time and improve the processing efficiency. In addition, during the processing, the superposition and update of multiple order data can be realized, which can reduce resource waste while meeting the purchase needs of multiple users and can also shorten the operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flow chart of a method for generating a purchase order for purchasing goods provided by an embodiment of the present invention;
[0036] Figure 2It is a structural schematic diagram of a purchase order generating device for purchasing goods provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0038] The commonly used purchase order generation method currently has the following technical problems: since the out-of-stock quantity is calculated manually by the user, calculation errors are prone to occur, making it difficult for the purchased goods quantity to meet the user's purchasing needs. In addition, the manual calculation method is time-consuming and inefficient, and each calculation is based on the purchase information of a single buyer. In the wholesale industry, there may often be multiple buyers purchasing at the same time, resulting in a large number of purchase orders being generated for the same product each time to notify multiple purchasing personnel to purchase, which not only causes a waste of resources, but also increases the cost of procurement operations.
[0039] In order to solve the above problems, a method for generating a purchase order for purchasing goods provided in an embodiment of the present application will be introduced and explained in detail through the following specific embodiments.
[0040] Reference Figure 1 , showing a flow chart of a method for generating a purchase order for purchasing goods provided by an embodiment of the present invention.
[0041] In one embodiment, the method is applied to a backend server, which can be used to organize cargo data and generate corresponding purchase orders.
[0042] As an example, the method for generating a purchase order for purchasing goods may include:
[0043] S11. Acquire purchase information generated after the user completes the purchase operation.
[0044] In one embodiment, the purchase operation is an operation of purchasing a commodity input by a user. When performing the operation, the user can enter purchase information corresponding to the purchased goods. As an example, the purchase information may include the name of the goods, the type of goods, the quantity, the delivery address, the pickup time, etc.
[0045] To facilitate user operation, in an optional embodiment, the method also involves a user terminal.
[0046] As an example, step S11 may include the following sub-steps:
[0047] S111. Receive order information sent by the user terminal, where the order information is generated after the user terminal obtains purchase quantities of several different commodities input by the user.
[0048] Specifically, the server may receive order information sent by the user terminal, and the order information may be generated after the user terminal receives a plurality of purchase quantities of different goods or commodities input by the user.
[0049] S112: Generate purchase information based on the purchase quantities of several different commodities included in the order information.
[0050] Next, the server may fill the purchase quantities corresponding to the multiple different commodities into the preset commodity categories, thereby generating the purchase information of the user this time.
[0051] S12: Determine whether the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity.
[0052] It should be noted that the first commodity is any one of multiple different commodities in the purchase information.
[0053] Since the purchase information includes purchase quantities of multiple different goods or commodities, the server can compare the purchase quantities of the multiple different commodities with their corresponding inventory quantities one by one according to the arrangement order of the different commodities in the purchase information.
[0054] For example, the purchase information includes three products A, B and C, and the purchase quantities of the three products are 2, 3, and 4 respectively. Then the purchase quantity of product A is compared with the inventory of product A, and then the purchase quantity of product B is compared with the inventory of product B, and so on.
[0055] In actual operation, users can adjust their inventory at regular intervals or after each transaction, and after the adjustment and update, they can obtain the real-time inventory. The server can compare the real-time inventory with the purchase quantity of the goods.
[0056] S13. When the purchase quantity of the first commodity included in the purchase information is greater than the inventory of the first commodity, N to-be-purchased lists are obtained, and the out-of-stock quantity of the first commodity is calculated, where N is a positive integer.
[0057] When the purchase quantity of the first commodity is greater than the inventory of the first commodity, it is determined that the merchant cannot meet the purchase demand of the user and needs to purchase the first commodity in a timely manner.
[0058] Since several different buyers also purchased the first product at the same time point or at a previous time point when the user made the purchase, and the purchase quantity of other buyers may also be greater than the inventory, and corresponding purchase lists are also generated for other buyers, the purchase quantity of this buyer can be added to the generated purchase list for purchase together to reduce multiple purchases.
[0059] It should be noted that the pending purchase list is a purchase order that has been generated previously but has not been purchased.
[0060] The out-of-stock quantity can be obtained by subtracting the inventory quantity from the purchase quantity.
[0061] In an optional embodiment, if there is no to-be-purchased list, a corresponding purchase order may be generated according to the purchase quantity of the first commodity or according to the difference between the purchase quantity of the first commodity and the inventory (i.e., out-of-stock quantity), so that the user can purchase the first commodity according to the purchase order.
[0062] S14: Determine whether each of the to-be-purchased lists contains the first commodity.
[0063] After obtaining N to-be-purchased lists, it may be determined whether each to-be-purchased list contains the first commodity.
[0064] In actual operation, the commodity categories included in each to-be-purchased list may be identified respectively, thereby determining whether each to-be-purchased list includes the first commodity.
[0065] S15. If at least one of the to-be-purchased lists contains the first commodity, any to-be-purchased list containing the first commodity is adjusted according to the out-of-stock quantity of the first commodity to generate a purchase order.
[0066] When it is determined that there is at least one to-be-purchased list containing the first commodity, one of the at least one to-be-purchased lists can be selected at random, and then the purchase quantity of the first commodity in the selected to-be-purchased list is adjusted according to the out-of-stock quantity of the first commodity, thereby generating a corresponding purchase order.
[0067] In actual operation, if too much is purchased, the inventory pressure will increase, and if too little is purchased, it will be difficult to meet the purchase needs of users. In order to reduce the inventory pressure of the warehouse while meeting the purchase needs of users, as an example, step S15 may include the following sub-steps:
[0068] Sub-step S151: adjusting the purchase quantity of the first commodity in any to-be-purchased list containing the first commodity based on the out-of-stock quantity to obtain a purchase order.
[0069] In one embodiment, the out-of-stock quantity may be added to the purchase quantity of the first commodity on the to-be-purchased list to adjust and generate a corresponding purchase order.
[0070] S16: If none of the to-be-purchased lists contains the first commodity, a purchase order is generated according to the out-of-stock quantity of the first commodity.
[0071] When none of the to-be-purchased lists contains the first commodity, a purchase order for the first commodity may also be generated based on the out-of-stock quantity.
[0072] In actual operation, in order to reduce the number of purchase orders, after calculating the out-of-stock quantity, you can select any list to be purchased, then add the purchase column of the first product in the list to be purchased, and add the value of the out-of-stock quantity to the purchase column of the first product to generate a purchase order.
[0073] Since the purchase is performed by the purchase personnel, in order to facilitate the purchase personnel to go out for purchase, the method may further include the following steps as an example:
[0074] S17: Send the purchase order to the user terminal, so that the user terminal displays the purchase order and prompts the user to make a purchase.
[0075] In a specific implementation, the purchase order may be stored in advance, and after storage, the purchase order may be sent to a user terminal, and the user terminal may display the purchase order to remind the purchasing staff to perform corresponding purchasing operations.
[0076] In this embodiment, the embodiment of the present invention provides a method for generating a purchase order for purchasing goods, and its beneficial effects are: the present invention can realize the automatic generation of purchase orders, without the need to manually calculate the corresponding purchase quantity, avoiding the problem of inaccurate calculation of out-of-stock quantity caused by manual calculation, and at the same time can also shorten the calculation time and improve the processing efficiency. In the processing process, the superposition and update of multiple order data can be realized, which can reduce resource waste while meeting the purchase needs of multiple users and can also shorten operating costs.
[0077] The embodiment of the present invention also provides a purchase order generation device for purchasing goods, see Figure 2 , showing a schematic structural diagram of a purchase order generating device for purchasing goods provided by an embodiment of the present invention.
[0078] As an example, the purchase order generation device for purchasing goods may include:
[0079] Acquisition module 201, used to acquire purchase information generated after the user performs a purchase operation;
[0080] A determination module 202 is used to determine whether the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity;
[0081] The list module 203 is used to obtain N to-be-purchased lists and calculate the out-of-stock quantity of the first commodity when the purchase quantity of the first commodity included in the purchase information is greater than the inventory of the first commodity, where N is a positive integer;
[0082] A determination module 204 is used to determine whether each of the to-be-purchased lists contains the first commodity;
[0083] The inclusion module 205 is configured to adjust any one of the to-be-purchased lists containing the first commodity according to the out-of-stock quantity of the first commodity to generate a purchase order if at least one of the to-be-purchased lists contains the first commodity;
[0084] The not-included module 206 is used to generate a purchase order according to the out-of-stock quantity of the first commodity if none of the to-be-purchased lists contains the first commodity.
[0085] Optionally, the method further relates to a user terminal, and the acquisition module is further used for:
[0086] Receiving order information sent by the user terminal, where the order information is generated after the user terminal obtains the purchase quantity of several different commodities input by the user;
[0087] Purchase information is generated based on the purchase quantities of several different commodities included in the order information.
[0088] Optionally, the comprising module is further used for:
[0089] Based on the out-of-stock quantity, the purchase quantity of the first commodity in any to-be-purchased list containing the first commodity is adjusted to obtain a purchase order.
[0090] Optionally, the device further comprises:
[0091] The sending module is used to send the purchase order to the user terminal so that the user terminal can display the purchase order and prompt the user to make a purchase.
[0092] Furthermore, an embodiment of the present application also provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a purchase order for purchasing goods as described in the above embodiment is implemented.
[0093] Furthermore, an embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for generating a purchase order for purchasing goods as described in the above embodiment.
[0094] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for generating a purchase order for purchasing goods, characterized in that: The method comprises: Acquiring purchase information generated after the user completes the purchase operation; wherein the order information sent by the user terminal is received through the server, the order information is generated after the user terminal acquires the purchase quantity of several different commodities input by the user, and the purchase information is generated based on the purchase quantity of several different commodities included in the order information; Determining whether the purchase quantity of the first commodity included in the purchase information is greater than the inventory of the first commodity; wherein, according to the arrangement order of different commodities in the purchase information, the purchase quantities of multiple different commodities are compared with their corresponding inventory one by one; When the purchase quantity of the first commodity included in the purchase information is greater than the inventory of the first commodity, N to-be-purchased lists are obtained, and the out-of-stock quantity of the first commodity is calculated, where N is a positive integer; Determine respectively whether each of the to-be-purchased lists contains the first commodity; If at least one of the to-be-purchased lists contains the first commodity, adjusting any one of the to-be-purchased lists containing the first commodity according to the out-of-stock quantity of the first commodity to generate a purchase order, specifically: adjusting the purchase quantity of the first commodity in any one of the to-be-purchased lists containing the first commodity based on the out-of-stock quantity to obtain a purchase order; If none of the to-be-purchased lists contains the first commodity, generating a purchase order according to the out-of-stock quantity of the first commodity; The purchase order is sent to the user terminal so that the user terminal displays the purchase order and prompts the user to make a purchase.
2. A purchase order generation device for purchasing goods, characterized in that: The device comprises: An acquisition module, used to acquire purchase information generated after the user completes the purchase operation; wherein the server receives order information sent by the user terminal, the order information is generated after the user terminal acquires the purchase quantity of several different commodities input by the user, and the purchase information is generated based on the purchase quantity of several different commodities included in the order information; a judgment module, configured to judge whether the purchase quantity of the first commodity contained in the purchase information is greater than the inventory of the first commodity; wherein, according to the arrangement order of different commodities in the purchase information, the purchase quantities of multiple different commodities are compared with their corresponding inventory one by one; A list module, configured to obtain N to-be-purchased lists and calculate the out-of-stock quantity of the first commodity when the purchase quantity of the first commodity included in the purchase information is greater than the inventory quantity of the first commodity, wherein N is a positive integer; A determination module, used to determine whether each of the to-be-purchased lists contains the first commodity; The inclusion module is used for, if at least one of the to-be-purchased lists includes the first commodity, adjusting any to-be-purchased list including the first commodity according to the out-of-stock quantity of the first commodity to generate a purchase order, specifically: adjusting the purchase quantity of the first commodity in any to-be-purchased list including the first commodity based on the out-of-stock quantity to obtain a purchase order; The module is not included, and is used to generate a purchase order based on the out-of-stock quantity of the first commodity if none of the to-be-purchased lists contains the first commodity; and send the purchase order to the user terminal so that the user terminal displays the purchase order and prompts the user to make a purchase.
3. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for generating a purchase order for purchasing goods as claimed in claim 1 is implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method for generating a purchase order for purchasing goods according to claim 1.
