[
https://issues.apache.org/jira/browse/OFBIZ-13358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18057307#comment-18057307
]
ASF subversion and git services commented on OFBIZ-13358:
---------------------------------------------------------
Commit 70118b9ada2db19a492dd1fd3bfec72be75126d7 in ofbiz-framework's branch
refs/heads/release24.09 from Anahita Goljahani
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=70118b9ada ]
Fixed: incomplete invoice generation when receiving several items from the
'Receive Inventory Against Purchase Order' (OFBIZ-13358) (#959)
As described in the jira ticket
[OFBIZ-13358](https://issues.apache.org/jira/browse/OFBIZ-13358),
currently, when a purchase order contains more than one item and
inventory is received from the ‘Receive Inventory Against Purchase
Order’ screen, the invoice generated by the system reports only the
first item processed, while the remaining items are ignored.
This PR splits the original request-map
'issueOrderItemToShipmentAndReceiveAgainstPO' into two request-maps: the
first creates the shipment items, and the second receives them. Two of
the existing services, 'issueOrderItemToShipment' and
'receiveInventoryProduct' have been used instead of the specialized
service 'issueOrderItemToShipmentAndReceiveAgainstPO', which was causing
the issue with the invoice.
> When receiving inventory from the ‘Receive Inventory Against Purchase Order’
> screen, invoices generated for purchase orders containing more than one item
> are incomplete
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: OFBIZ-13358
> URL: https://issues.apache.org/jira/browse/OFBIZ-13358
> Project: OFBiz
> Issue Type: Bug
> Components: product/facility
> Affects Versions: 24.09.05
> Reporter: Anahita Goljahani
> Assignee: Jacques Le Roux
> Priority: Major
> Attachments: 1_new_shipment_for_shipgroup_annotated.png,
> 2_edit_shipment_annotated.png, 3_receive_items_annotated.png,
> 4_payment_information_section_annotated.png, 5_invoice_annotated.png
>
>
> Currently, when a purchase order contains more than one item and inventory
> is received from the ‘Receive Inventory Against Purchase Order’ screen, the
> invoice generated by the system reports only the first item processed, while
> the remaining items are ignored.
>
> To reproduce the issue, create a purchase order with, for exampel, 9 units of
> GZ-1000 and 13 units of WG-1111, and approve it. From the order details
> screen click 'New Shipment For Ship Group' and, then, 'Receive Against PO'.
> !1_new_shipment_for_shipgroup_annotated.png|width=336,height=235!
> !2_edit_shipment_annotated.png|width=284,height=294!
>
> From the 'Receive Inventory Against Purchase Order' screen, receive the
> ordered units for both items.
> !3_receive_items_annotated.png|width=603,height=300!
>
> After products have been received, the system automatically generates an
> invoice because the shipment status is automatically set to 'Received'.
> From the 'Payment Information' section of the order details page, click the
> invoice number to view it.
> !4_payment_information_section_annotated.png|width=458,height=144!
>
> As shown in the screenshot below, the invoice reports only the 9 units of
> GZ-1000 and the 13 units of WG-1111 are missing.
> !5_invoice_annotated.png|width=931,height=156!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)