|
For all the test cases:
As group admin role:
Set Enable Stock Reservations to Y
Log out and log in
Apply module's dataset
Test Plan 1: Generating PL from an order without stock.
As group admin role:
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse, add a product without stock in the order's warehouse, for example Agua sin Gas 1L and book it.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Not group
Check the following error is shown:
"Error
There is not enough available stock"
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by business partner
Check the following error is shown:
"Error
There is not enough available stock"
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by organization
Check the following error is shown:
"Error
There is not enough available stock"
Test Plan 2: Generating PL from an order with partial stock.
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse.
Add a line with a product without stock in the order's warehouse, for example Agua sin Gas 1L.
Add a line with a product with stock in the order's warehouse, for example Cerveza Ale 0,5L.
Book the order.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Not group
Check the Picking List was partially generated with the line with stock and the following message is shown:
"Picking List created successfully
PL378
There is not enough stock in warehouses to create the whole Picking List. : [PL378]"
Go to Warehouse Picking List window and cancel the previously created picking list, for example 378.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by business partner
Check the Picking List was partially generated with the line with stock and the following message is shown:
"Picking List created successfully
PL379
There is not enough stock in warehouses to create the whole Picking List. : [PL379]"
Go to Warehouse Picking List window and cancel the previously created picking list, for example 379.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by organization
Check the Picking List was partially generated with the line with stock and the following message is shown:
"Picking List created successfully
PL380
There is not enough stock in warehouses to create the whole Picking List. : [PL380]"
Test Plan 3: Generating PL from an order with stock.
As group admin role:
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse, add a product with stock in the order's warehouse, for example Cerveza Ale and book it.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Not group
Check the picking list has been generated successfully, a success message is shown:
"Picking List created successfully
PL381"
Go to Warehouse Picking List window and cancel the previously created picking list, for example 381.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by business partner
Check the picking list has been generated successfully, a success message is shown:
"Picking List created successfully
PL382"
Go to Warehouse Picking List window and cancel the previously created picking list, for example 382.
Select the order and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by organization
Check the picking list has been generated successfully, a success message is shown:
"Picking List created successfully
PL383"
Go to Warehouse Picking List window and cancel the previously created picking list, for example 383.
Test Plan 4: Generating PL from multiple orders without, partial and full stock.
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse, add a product without stock in the order's warehouse, for example Agua sin Gas 1L and book it.
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse.
Add a line with a product without stock in the order's warehouse, for example Agua sin Gas 1L.
Add a line with a product with stock in the order's warehouse, for example Cerveza Ale 0,5L.
Book the order.
Create a sales order for Alimentos y Supermercados, S.A and España Región Norte warehouse, add a product with stock in the order's warehouse, for example Cerveza Lager 0,5L and book it.
Select all previously created orders (first with no stock, second with partial stock and third with stock) and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Not group
Check two picking list have been created, one related to the order with partial stock and the other to the order with stock. Also is explained to the user the order from wich was not possible to generate the Picking List because no available stock. The following message is shown:
"Picking List created successfully
PL385, PL386
There is not enough stock in warehouses to create the whole Picking List. : [PL386]
There is not enough available stock for the following orders: 1000261"
Notice that order 1000261 was the one without stock.
Go to Warehouse Picking List window and cancel the previously created picking lists, for example 385 and 386.
Select all previously created orders (first with no stock, second with partial stock and third with stock) and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by business partner
Check two picking list have been created, one related to the order with partial stock and the other to the order with stock. Also is explained to the user the order from wich was not possible to generate the Picking List because no available stock. The following message is shown:
"Picking List created successfully
PL392
There is not enough stock in warehouses to create the whole Picking List. : [PL392]
There is not enough available stock for the following orders: 1000261"
Notice that order 1000261 was the one without stock.
Notice that all the order lines with stock have been grouped into the PL392 Picking List.
Go to Warehouse Picking List window and cancel the previously created picking lists, for example 392.
Select all previously created orders (first with no stock, second with partial stock and third with stock) and launch Generate Picking List process:
Picking List Type: Direct Picking List to Customer
Grouping criteria: Group by organization
Check two picking list have been created, one related to the order with partial stock and the other to the order with stock. Also is explained to the user the order from wich was not possible to generate the Picking List because no available stock. The following message is shown:
"Picking List created successfully
PL393
There is not enough stock in warehouses to create the whole Picking List. : [PL393]
There is not enough available stock for the following orders: 1000261"
Notice that order 1000261 was the one without stock.
Notice that all the order lines with stock have been grouped into the PL393 Picking List. |
|
(0107934)
|
hgbot
|
2018-11-15 16:15
|
|
Repository: erp/pmods/org.openbravo.warehouse.pickinglist
Changeset: 5991ade1a201ed7a56ca66e2650b93c8d0627a81
Author: Mark <markmm82 <at> gmail.com>
Date: Tue Nov 13 23:59:46 2018 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.warehouse.pickinglist/rev/5991ade1a201ed7a56ca66e2650b93c8d0627a81 [^]
Fixes issue 39485: Cannot Generate Picking List from multiple orders
if there is not stock for one of them and it is grouped by business partner or
organization.
Extracted the order document no and the order business partner name to variables
to avoid the need of refresh the order after be processed.
When an order had any line with enough available stock, the order was added as processed
into the Picking List description. To avoid it, the PL description is updated at the end
of the order processing, this way if a No Stock exception is thrown the description of the picking
list will not include the order.
Only is removed a Picking Lists from the lists if there is not enough available stock and
the PL is generated with "Not Grouping" option, because in the cases of PL creation based
on multiple orders it is possible that next orders can have stock and in this case can be
grouped without problems in the PL.
Was modified the Utilities.processOrder() method to initialize the pickingListObj with
the pickingList been processed, to get it always updated.
---
M src/org/openbravo/warehouse/pickinglist/CreateActionHandler.java
M src/org/openbravo/warehouse/pickinglist/Utilities.java
---
|
|