Lines on purchase order but not on drop shipment sales order causes drop shipment process to fail.

Description

How to reproduce:

1. Create a Sales Order with drop shipment marked.
2 Run "Generate PO from Sales Order"

  • Select the order in step 1.

  • Select Drop Shipment = Yes
    3. Lookup the newly created Purchase Order.
    4. Add a freight line/rounding (as a charge) on the purchase order
    5. Complete the Purchase Order.
    6. Do a material receipt on the purchase order and select all lines.
    7. Try to complete the material receipt. This won't work because the charge is not connected to the sales order and iDempiere wants that connection when creating the automatic shipment.

Some questions arises:

  • Should a charge/product without a connection to the sales order be allowed on a drop shipment purchase order?

  • One solution is to not include the non-sales order item in the automatically created shipment (my preferred solution)

  • In my specific case it was a rounding charge. It could be placed on the invoice later.

Suggested solution in development (minor code adjustments needed)

Environment

None

Activity

Show:

Carlos Ruiz June 25, 2020 at 5:35 PM

Closing as lack of interest from community after 7 years.

Patric June 25, 2020 at 4:35 AM

reproduced by Patric Massing

Solution could be to not allow additional lines in the purchase order.

Or transfer charges from sales order to purchase order to get a reference.

Fixed

Details

Assignee

Reporter

Labels

Original estimate

Time tracking

No time logged3h remaining

Components

Affects versions

Priority

Created July 28, 2013 at 10:30 AM
Updated August 1, 2020 at 12:17 PM
Resolved June 25, 2020 at 5:35 PM