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

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