import type { ProcurementMaterial } from '@/types';

export function isKnownTestMaterial(material: ProcurementMaterial) {
  return material.batch_id === 'test-batch-001'
    && material.material_name === '测试物料'
    && material.quantity === 0;
}

export function filterKnownTestMaterials(materials: ProcurementMaterial[]) {
  return materials.filter(material => !isKnownTestMaterial(material));
}