import { Pipe, PipeTransform } from '@angular/core';
import { OrderItemListItemDTO } from '@generated/swagger/oms-api';

@Pipe({
  name: 'goodsOutItemSelected',
  standalone: false,
})
export class CustomerOrderItemSelectedPipe implements PipeTransform {
  transform(item: OrderItemListItemDTO, selectedOrderItemSubsetIds: number[]): any {
    return selectedOrderItemSubsetIds?.includes(item?.orderItemSubsetId);
  }
}
