[
https://issues.apache.org/jira/browse/OFBIZ-6163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366314#comment-14366314 ]
Christian Carlow commented on OFBIZ-6163:
-----------------------------------------
Hey Pierre,
I analyzed webpos because I was trying to find a way to consistently handle relating receipts to returns and thought whatever might need to be implemented for regular orders should also be handled for pos orders. However, since webpos doesn't create shipments or issuances my suggestion to use shipmentId is insufficient. InvoiceId seems to be the only candidate for a consistent receiptId between regular and pos orders but I'm not sure if using it would be correct. Anyways, I think I found another way to generate the return report I was having trouble generating which led to the creation of this issue. If anyone thinks returns should relate back to some receipt than they can reopen. I'm closing for now.
> Create ShipmentReceipt for sales shipment during auto-invoice process
> ---------------------------------------------------------------------
>
> Key: OFBIZ-6163
> URL:
https://issues.apache.org/jira/browse/OFBIZ-6163> Project: OFBiz
> Issue Type: Improvement
> Components: accounting, product
> Reporter: Christian Carlow
>
> ShipmentReceipts seem to only be created for purchase shipments but are also needed for sales shipments. I propose adding functionality to automatically create ShipmentReceipts during the auto-invoicing functionality that happens when Sales Shipment statusId changes to PICKED or PACKED. It also seems more correct to base sales returns on the receiptId rather than the orderId, orderItemSeqId, and orderAdjustmentId. shipmentReceiptId already exists in OrderItemBilling but probably needs to be added to orderAdjustmentBilling also for handling adjustment returns as well.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)