[ 
https://issues.apache.org/jira/browse/OFBIZ-13376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anahita Goljahani updated OFBIZ-13376:
--------------------------------------
    Description: 
Currently, when a PO is received with zero accepted units (e.g., via the 
‘ReceiveInventory’ screen), the system creates:
 * an inventory item with quantity set to zero
 * a receipt with zero accepted units, even when there are no rejected units.

This behavior is not desirable.

When receiving a PO,
 * if no item units are accepted, the system should not create an inventory 
item with zero quantity
 * if rejected units are also zero, the system should not create a receipt.

 

The issue can be recreated as follows.

 

Create a PO order for, e.g., 10 units of product WG-1111 and approve it from 
the order details screen

!1_Approve_Order.png|width=335,height=279!

 

Click ‘Receive’ in the ‘Actions’ section of the order details screen,

!2_Receive.png|width=457,height=253!

 

select the shipment automatically created by the system and click 'Receive 
Selected Shipment'

!3_Receive_Selected_Shipment.png|width=581,height=325!

 

Set to zero both ‘Qty Received’ and ‘Qty Rejected’ and click ‘Receive Selected 
Product(s)’

!4_Receive_Selected_Product(s).png|width=605,height=274!

 

The receipt with 0 accepted and 0 rejected units is displayed under ‘Receipt(s) 
For Purchase Order …’

!5_Receipt(s)_For_Purchse_Order.png|width=675,height=294!

 

The creation of the inventory item can be assessed by clicking the ‘Inventory 
Items’ tab

!6_Inventory_Items_tab.png|width=649,height=369!

 

and scrolling the list of displayed inventory items

!7_Inventory_Items.png|width=718,height=76!

 

The proposed solution is to:
 * avoid creating a receipt and an inventory item when both accepted and 
rejected quantities are zero
 * create a receipt, but not an inventory item, when the accepted quantity is 
zero, but there are rejected units.

  was:
Currently, when a PO is received with zero accepted units (e.g., via the 
‘ReceiveInventory’ screen), the system creates:

* an inventory item with quantity set to zero
* a receipt with zero accepted units, even when there are no rejected units. 

This behavior is not desirable. 

When receiving a PO, 

* if no item units are accepted, the system should not create an inventory item 
with zero quantity 
* if rejected units are also zero, the system should not create a receipt.

The issue can be recreated as follows.

Create a PO order for, e.g., 10 units of product WG-1111 and approve it from 
the order details screen 

 !1_Approve_Order.png! 
 


Click ‘Receive’ in the ‘Actions’ section of the order details screen

 2_Receive.png 

and select the shipment automatically created by the system

3_Receive_Selected_Shipment.png


Set to zero both ‘Qty Received’ and ‘Qty Rejected’ and click ‘Receive Selected 
Product(s)’

4_Receive_Selected_Product(s).png


The receipt with 0 accepted and 0 rejected units is displayed under ‘Receipt(s) 
For Purchase Order …’

5_Receipt(s)_For_Purchse_Order_10000.png

The creation of the inventory item can be assessed by clicking the ‘Inventory 
Items’ tab 

6_Inventory_Items_tab.png

and scrolling the list of displayed inventory items

7_Inventory_Items.png


The proposed solution is to:
* avoid creating a receipt and an inventory item when both accepted and 
rejected quantities are zero
* create a receipt, but not an inventory item, when the accepted quantity is 
zero, but there are rejected units.






> PO receipts with zero accepted units are not handled correctly
> --------------------------------------------------------------
>
>                 Key: OFBIZ-13376
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13376
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product/facility
>    Affects Versions: 24.09.05
>            Reporter: Anahita Goljahani
>            Assignee: Anahita Goljahani
>            Priority: Minor
>         Attachments: 1_Approve_Order.png, 2_Receive.png, 
> 3_Receive_Selected_Shipment.png, 4_Receive_Selected_Product(s).png, 
> 5_Receipt(s)_For_Purchse_Order.png, 6_Inventory_Items_tab.png, 
> 7_Inventory_Items.png
>
>
> Currently, when a PO is received with zero accepted units (e.g., via the 
> ‘ReceiveInventory’ screen), the system creates:
>  * an inventory item with quantity set to zero
>  * a receipt with zero accepted units, even when there are no rejected units.
> This behavior is not desirable.
> When receiving a PO,
>  * if no item units are accepted, the system should not create an inventory 
> item with zero quantity
>  * if rejected units are also zero, the system should not create a receipt.
>  
> The issue can be recreated as follows.
>  
> Create a PO order for, e.g., 10 units of product WG-1111 and approve it from 
> the order details screen
> !1_Approve_Order.png|width=335,height=279!
>  
> Click ‘Receive’ in the ‘Actions’ section of the order details screen,
> !2_Receive.png|width=457,height=253!
>  
> select the shipment automatically created by the system and click 'Receive 
> Selected Shipment'
> !3_Receive_Selected_Shipment.png|width=581,height=325!
>  
> Set to zero both ‘Qty Received’ and ‘Qty Rejected’ and click ‘Receive 
> Selected Product(s)’
> !4_Receive_Selected_Product(s).png|width=605,height=274!
>  
> The receipt with 0 accepted and 0 rejected units is displayed under 
> ‘Receipt(s) For Purchase Order …’
> !5_Receipt(s)_For_Purchse_Order.png|width=675,height=294!
>  
> The creation of the inventory item can be assessed by clicking the ‘Inventory 
> Items’ tab
> !6_Inventory_Items_tab.png|width=649,height=369!
>  
> and scrolling the list of displayed inventory items
> !7_Inventory_Items.png|width=718,height=76!
>  
> The proposed solution is to:
>  * avoid creating a receipt and an inventory item when both accepted and 
> rejected quantities are zero
>  * create a receipt, but not an inventory item, when the accepted quantity is 
> zero, but there are rejected units.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to