Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Shipment Lineitems

$
0
0

Working on the latest version on Epi/Episerver Commerce.

I am having to create some custom reports for our client. One of the reports requires the following:

  • PO Number
  • Date of order
  • Warehouse
  • Delivery status
  • Payment status
  • Total (item cost in £s)
  • Postage (in £s)
  • Gross (Total + postage)
  • Refunds (in £s)

Each order can have split shipments, so different warehouses (stores) fulfilling orders. Looking at the database schema  https://world.episerver.com/globalassets/sdkdocuments/developers-guide1/episerver-commerce/75/orders/ordersystem.png

I can't see any direct relationship between shipment and lineitem tables. As warehousecode in the LineItems table is now obsolete we would now have to use the Shipment table to find out the warehouse/store.

So the question is, at a database level, how can I found out which split shipment is shipping which lineitem so I can work out which warehouse/store is dealing with that lineitem.


Viewing all articles
Browse latest Browse all 9076

Trending Articles