Search in sources :

Example 1 with OrderAndLineId

use of de.metas.order.OrderAndLineId in project metasfresh-webui-api by metasfresh.

the class ShipmentCandidateRowsLoader method extractSalesOrderLineNo.

private int extractSalesOrderLineNo(final I_M_ShipmentSchedule record) {
    final OrderAndLineId salesOrderAndLineId = extractSalesOrderAndLineId(record);
    if (salesOrderAndLineId == null) {
        return 0;
    }
    final I_C_OrderLine salesOrderLine = salesOrderLines.get(salesOrderAndLineId);
    if (salesOrderLine == null) {
        return 0;
    }
    return salesOrderLine.getLine();
}
Also used : OrderAndLineId(de.metas.order.OrderAndLineId) I_C_OrderLine(de.metas.interfaces.I_C_OrderLine)

Aggregations

I_C_OrderLine (de.metas.interfaces.I_C_OrderLine)1 OrderAndLineId (de.metas.order.OrderAndLineId)1