add condition field to Material model
add quantity field to Material model