add a function to jude a line item free some goods or not